1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for CglConic 0.3.
4#
5# Report bugs to <https://github.com/aykutbulut/CGL-CONIC/issues/new>.
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# /* CglConic is developed by Aykut Bulut (aykutblt@gmail.com)                 */
15# /*                                                                           */
16# /* (c) Copyright 2015 Lehigh University. All Rights Reserved.                */
17# /*                                                                           */
18# /* This software is licensed under the Eclipse Public License. Please see    */
19# /* accompanying file for terms.                                              */
20# /*                                                                           */
21# /*===========================================================================*/
22#
23## --------------------- ##
24## M4sh Initialization.  ##
25## --------------------- ##
26
27# Be Bourne compatible
28if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29  emulate sh
30  NULLCMD=:
31  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32  # is contrary to our usage.  Disable this feature.
33  alias -g '${1+"$@"}'='"$@"'
34elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35  set -o posix
36fi
37DUALCASE=1; export DUALCASE # for MKS sh
38
39# Support unset when possible.
40if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41  as_unset=unset
42else
43  as_unset=false
44fi
45
46
47# Work around bugs in pre-3.0 UWIN ksh.
48$as_unset ENV MAIL MAILPATH
49PS1='$ '
50PS2='> '
51PS4='+ '
52
53# NLS nuisances.
54for as_var in \
55  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
56  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
57  LC_TELEPHONE LC_TIME
58do
59  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
60    eval $as_var=C; export $as_var
61  else
62    $as_unset $as_var
63  fi
64done
65
66# Required to use basename.
67if expr a : '\(a\)' >/dev/null 2>&1; then
68  as_expr=expr
69else
70  as_expr=false
71fi
72
73if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
74  as_basename=basename
75else
76  as_basename=false
77fi
78
79
80# Name of the executable.
81as_me=`$as_basename "$0" ||
82$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
83	 X"$0" : 'X\(//\)$' \| \
84	 X"$0" : 'X\(/\)$' \| \
85	 .     : '\(.\)' 2>/dev/null ||
86echo X/"$0" |
87    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
88  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
89  	  /^X\/\(\/\).*/{ s//\1/; q; }
90  	  s/.*/./; q'`
91
92
93# PATH needs CR, and LINENO needs CR and PATH.
94# Avoid depending upon Character Ranges.
95as_cr_letters='abcdefghijklmnopqrstuvwxyz'
96as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
97as_cr_Letters=$as_cr_letters$as_cr_LETTERS
98as_cr_digits='0123456789'
99as_cr_alnum=$as_cr_Letters$as_cr_digits
100
101# The user is always right.
102if test "${PATH_SEPARATOR+set}" != set; then
103  echo "#! /bin/sh" >conf$$.sh
104  echo  "exit 0"   >>conf$$.sh
105  chmod +x conf$$.sh
106  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
107    PATH_SEPARATOR=';'
108  else
109    PATH_SEPARATOR=:
110  fi
111  rm -f conf$$.sh
112fi
113
114
115  as_lineno_1=$LINENO
116  as_lineno_2=$LINENO
117  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
118  test "x$as_lineno_1" != "x$as_lineno_2" &&
119  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
120  # Find who we are.  Look in the path if we contain no path at all
121  # relative or not.
122  case $0 in
123    *[\\/]* ) as_myself=$0 ;;
124    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
125for as_dir in $PATH
126do
127  IFS=$as_save_IFS
128  test -z "$as_dir" && as_dir=.
129  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
130done
131
132       ;;
133  esac
134  # We did not find ourselves, most probably we were run as `sh COMMAND'
135  # in which case we are not to be found in the path.
136  if test "x$as_myself" = x; then
137    as_myself=$0
138  fi
139  if test ! -f "$as_myself"; then
140    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
141   { (exit 1); exit 1; }; }
142  fi
143  case $CONFIG_SHELL in
144  '')
145    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
146for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
147do
148  IFS=$as_save_IFS
149  test -z "$as_dir" && as_dir=.
150  for as_base in sh bash ksh sh5; do
151	 case $as_dir in
152	 /*)
153	   if ("$as_dir/$as_base" -c '
154  as_lineno_1=$LINENO
155  as_lineno_2=$LINENO
156  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
157  test "x$as_lineno_1" != "x$as_lineno_2" &&
158  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
159	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
160	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
161	     CONFIG_SHELL=$as_dir/$as_base
162	     export CONFIG_SHELL
163	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
164	   fi;;
165	 esac
166       done
167done
168;;
169  esac
170
171  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
172  # uniformly replaced by the line number.  The first 'sed' inserts a
173  # line-number line before each line; the second 'sed' does the real
174  # work.  The second script uses 'N' to pair each line-number line
175  # with the numbered line, and appends trailing '-' during
176  # substitution so that $LINENO is not a special case at line end.
177  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
178  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
179  sed '=' <$as_myself |
180    sed '
181      N
182      s,$,-,
183      : loop
184      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
185      t loop
186      s,-$,,
187      s,^['$as_cr_digits']*\n,,
188    ' >$as_me.lineno &&
189  chmod +x $as_me.lineno ||
190    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
191   { (exit 1); exit 1; }; }
192
193  # Don't try to exec as it changes $[0], causing all sort of problems
194  # (the dirname of $[0] is not the place where we might find the
195  # original and so on.  Autoconf is especially sensible to this).
196  . ./$as_me.lineno
197  # Exit status is that of the last command.
198  exit
199}
200
201
202case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
203  *c*,-n*) ECHO_N= ECHO_C='
204' ECHO_T='	' ;;
205  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
206  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
207esac
208
209if expr a : '\(a\)' >/dev/null 2>&1; then
210  as_expr=expr
211else
212  as_expr=false
213fi
214
215rm -f conf$$ conf$$.exe conf$$.file
216echo >conf$$.file
217if ln -s conf$$.file conf$$ 2>/dev/null; then
218  # We could just check for DJGPP; but this test a) works b) is more generic
219  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
220  if test -f conf$$.exe; then
221    # Don't use ln at all; we don't have any links
222    as_ln_s='cp -p'
223  else
224    as_ln_s='ln -s'
225  fi
226elif ln conf$$.file conf$$ 2>/dev/null; then
227  as_ln_s=ln
228else
229  as_ln_s='cp -p'
230fi
231rm -f conf$$ conf$$.exe conf$$.file
232
233if mkdir -p . 2>/dev/null; then
234  as_mkdir_p=:
235else
236  test -d ./-p && rmdir ./-p
237  as_mkdir_p=false
238fi
239
240as_executable_p="test -f"
241
242# Sed expression to map a string onto a valid CPP name.
243as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
244
245# Sed expression to map a string onto a valid variable name.
246as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
247
248
249# IFS
250# We need space, tab and new line, in precisely that order.
251as_nl='
252'
253IFS=" 	$as_nl"
254
255# CDPATH.
256$as_unset CDPATH
257
258
259
260# Check that we are running under the correct shell.
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263case X$ECHO in
264X*--fallback-echo)
265  # Remove one level of quotation (which was required for Make).
266  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267  ;;
268esac
269
270echo=${ECHO-echo}
271if test "X$1" = X--no-reexec; then
272  # Discard the --no-reexec flag, and continue.
273  shift
274elif test "X$1" = X--fallback-echo; then
275  # Avoid inline document here, it may be left over
276  :
277elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
278  # Yippee, $echo works!
279  :
280else
281  # Restart under the correct shell.
282  exec $SHELL "$0" --no-reexec ${1+"$@"}
283fi
284
285if test "X$1" = X--fallback-echo; then
286  # used as fallback echo
287  shift
288  cat <<EOF
289$*
290EOF
291  exit 0
292fi
293
294# The HP-UX ksh and POSIX shell print the target directory to stdout
295# if CDPATH is set.
296(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
297
298if test -z "$ECHO"; then
299if test "X${echo_test_string+set}" != Xset; then
300# find a string as large as possible, as long as the shell can cope with it
301  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
302    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
303    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
304       echo_test_string=`eval $cmd` &&
305       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
306    then
307      break
308    fi
309  done
310fi
311
312if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
313   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
314   test "X$echo_testing_string" = "X$echo_test_string"; then
315  :
316else
317  # The Solaris, AIX, and Digital Unix default echo programs unquote
318  # backslashes.  This makes it impossible to quote backslashes using
319  #   echo "$something" | sed 's/\\/\\\\/g'
320  #
321  # So, first we look for a working echo in the user's PATH.
322
323  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
324  for dir in $PATH /usr/ucb; do
325    IFS="$lt_save_ifs"
326    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
327       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
328       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
329       test "X$echo_testing_string" = "X$echo_test_string"; then
330      echo="$dir/echo"
331      break
332    fi
333  done
334  IFS="$lt_save_ifs"
335
336  if test "X$echo" = Xecho; then
337    # We didn't find a better echo, so look for alternatives.
338    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
339       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
340       test "X$echo_testing_string" = "X$echo_test_string"; then
341      # This shell has a builtin print -r that does the trick.
342      echo='print -r'
343    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
344	 test "X$CONFIG_SHELL" != X/bin/ksh; then
345      # If we have ksh, try running configure again with it.
346      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
347      export ORIGINAL_CONFIG_SHELL
348      CONFIG_SHELL=/bin/ksh
349      export CONFIG_SHELL
350      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
351    else
352      # Try using printf.
353      echo='printf %s\n'
354      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
355	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
356	 test "X$echo_testing_string" = "X$echo_test_string"; then
357	# Cool, printf works
358	:
359      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360	   test "X$echo_testing_string" = 'X\t' &&
361	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362	   test "X$echo_testing_string" = "X$echo_test_string"; then
363	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
364	export CONFIG_SHELL
365	SHELL="$CONFIG_SHELL"
366	export SHELL
367	echo="$CONFIG_SHELL $0 --fallback-echo"
368      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
369	   test "X$echo_testing_string" = 'X\t' &&
370	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
371	   test "X$echo_testing_string" = "X$echo_test_string"; then
372	echo="$CONFIG_SHELL $0 --fallback-echo"
373      else
374	# maybe with a smaller string...
375	prev=:
376
377	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
378	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
379	  then
380	    break
381	  fi
382	  prev="$cmd"
383	done
384
385	if test "$prev" != 'sed 50q "$0"'; then
386	  echo_test_string=`eval $prev`
387	  export echo_test_string
388	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
389	else
390	  # Oops.  We lost completely, so just stick with echo.
391	  echo=echo
392	fi
393      fi
394    fi
395  fi
396fi
397fi
398
399# Copy echo and quote the copy suitably for passing to libtool from
400# the Makefile, instead of quoting the original, which is used later.
401ECHO=$echo
402if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
403   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404fi
405
406
407
408
409tagnames=${tagnames+${tagnames},}CXX
410
411tagnames=${tagnames+${tagnames},}F77
412
413# Name of the host.
414# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
415# so uname gets run too.
416ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
417
418exec 6>&1
419
420#
421# Initializations.
422#
423ac_default_prefix=/usr/local
424ac_config_libobj_dir=.
425cross_compiling=no
426subdirs=
427MFLAGS=
428MAKEFLAGS=
429SHELL=${CONFIG_SHELL-/bin/sh}
430
431# Maximum number of lines to put in a shell here document.
432# This variable seems obsolete.  It should probably be removed, and
433# only ac_max_sed_lines should be used.
434: ${ac_max_here_lines=38}
435
436# Identity of this package.
437PACKAGE_NAME='CglConic'
438PACKAGE_TARNAME='cglconic'
439PACKAGE_VERSION='0.3'
440PACKAGE_STRING='CglConic 0.3'
441PACKAGE_BUGREPORT='https://github.com/aykutbulut/CGL-CONIC/issues/new'
442
443ac_unique_file="src/CglConicCutGenerator.hpp"
444ac_default_prefix=`pwd`
445# Factoring default headers for most tests.
446ac_includes_default="\
447#include <stdio.h>
448#if HAVE_SYS_TYPES_H
449# include <sys/types.h>
450#endif
451#if HAVE_SYS_STAT_H
452# include <sys/stat.h>
453#endif
454#if STDC_HEADERS
455# include <stdlib.h>
456# include <stddef.h>
457#else
458# if HAVE_STDLIB_H
459#  include <stdlib.h>
460# endif
461#endif
462#if HAVE_STRING_H
463# if !STDC_HEADERS && HAVE_MEMORY_H
464#  include <memory.h>
465# endif
466# include <string.h>
467#endif
468#if HAVE_STRINGS_H
469# include <strings.h>
470#endif
471#if HAVE_INTTYPES_H
472# include <inttypes.h>
473#else
474# if HAVE_STDINT_H
475#  include <stdint.h>
476# endif
477#endif
478#if HAVE_UNISTD_H
479# include <unistd.h>
480#endif"
481
482ac_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 CGLCONIC_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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CGLCONICLIB_CFLAGS CGLCONICLIB_LIBS CGLCONICLIB_PCLIBS CGLCONICLIB_PCREQUIRES CGLCONICLIB_DEPENDENCIES CGLCONICLIB_CFLAGS_INSTALLED CGLCONICLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSICLP_LIBS OSICLP_CFLAGS OSICLP_DATA OSICLP_DEPENDENCIES OSICLP_LIBS_INSTALLED OSICLP_CFLAGS_INSTALLED OSICLP_DATA_INSTALLED COIN_HAS_OSICLP_TRUE COIN_HAS_OSICLP_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 OSICONIC_LIBS OSICONIC_CFLAGS OSICONIC_DATA OSICONIC_DEPENDENCIES OSICONIC_LIBS_INSTALLED OSICONIC_CFLAGS_INSTALLED OSICONIC_DATA_INSTALLED COIN_HAS_OSICONIC_TRUE COIN_HAS_OSICONIC_FALSE COLA_LIBS COLA_CFLAGS COLA_DATA COLA_DEPENDENCIES COLA_LIBS_INSTALLED COLA_CFLAGS_INSTALLED COLA_DATA_INSTALLED COIN_HAS_COLA_TRUE COIN_HAS_COLA_FALSE OSIIPOPT_LIBS OSIIPOPT_CFLAGS OSIIPOPT_DATA OSIIPOPT_DEPENDENCIES OSIIPOPT_LIBS_INSTALLED OSIIPOPT_CFLAGS_INSTALLED OSIIPOPT_DATA_INSTALLED COIN_HAS_OSIIPOPT_TRUE COIN_HAS_OSIIPOPT_FALSE OSICPLEX_LIBS OSICPLEX_CFLAGS OSICPLEX_DATA OSICPLEX_DEPENDENCIES OSICPLEX_LIBS_INSTALLED OSICPLEX_CFLAGS_INSTALLED OSICPLEX_DATA_INSTALLED COIN_HAS_OSICPLEX_TRUE COIN_HAS_OSICPLEX_FALSE OSIMOSEK_LIBS OSIMOSEK_CFLAGS OSIMOSEK_DATA OSIMOSEK_DEPENDENCIES OSIMOSEK_LIBS_INSTALLED OSIMOSEK_CFLAGS_INSTALLED OSIMOSEK_DATA_INSTALLED COIN_HAS_OSIMOSEK_TRUE COIN_HAS_OSIMOSEK_FALSE IPOPT_IPM_SOLVER_TRUE IPOPT_IPM_SOLVER_FALSE MOSEK_IPM_SOLVER_TRUE MOSEK_IPM_SOLVER_FALSE CPLEX_IPM_SOLVER_TRUE CPLEX_IPM_SOLVER_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 BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE LAPACK_LIBS LAPACK_CFLAGS LAPACK_DATA LAPACK_DEPENDENCIES LAPACK_LIBS_INSTALLED LAPACK_CFLAGS_INSTALLED LAPACK_DATA_INSTALLED COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE CGLCONIC_SUBDIRS CGLCONIC_SUBLIBS coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
483ac_subst_files=''
484
485# Initialize some variables set by options.
486ac_init_help=
487ac_init_version=false
488# The variables have the same names as the options, with
489# dashes changed to underlines.
490cache_file=/dev/null
491exec_prefix=NONE
492no_create=
493no_recursion=
494prefix=NONE
495program_prefix=NONE
496program_suffix=NONE
497program_transform_name=s,x,x,
498silent=
499site=
500srcdir=
501verbose=
502x_includes=NONE
503x_libraries=NONE
504
505# Installation directory options.
506# These are left unexpanded so users can "make install exec_prefix=/foo"
507# and all the variables that are supposed to be based on exec_prefix
508# by default will actually change.
509# Use braces instead of parens because sh, perl, etc. also accept them.
510bindir='${exec_prefix}/bin'
511sbindir='${exec_prefix}/sbin'
512libexecdir='${exec_prefix}/libexec'
513datadir='${prefix}/share'
514sysconfdir='${prefix}/etc'
515sharedstatedir='${prefix}/com'
516localstatedir='${prefix}/var'
517libdir='${exec_prefix}/lib'
518includedir='${prefix}/include'
519oldincludedir='/usr/include'
520infodir='${prefix}/info'
521mandir='${prefix}/man'
522
523ac_prev=
524for ac_option
525do
526  # If the previous option needs an argument, assign it.
527  if test -n "$ac_prev"; then
528    eval "$ac_prev=\$ac_option"
529    ac_prev=
530    continue
531  fi
532
533  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
534
535  # Accept the important Cygnus configure options, so we can diagnose typos.
536
537  case $ac_option in
538
539  -bindir | --bindir | --bindi | --bind | --bin | --bi)
540    ac_prev=bindir ;;
541  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
542    bindir=$ac_optarg ;;
543
544  -build | --build | --buil | --bui | --bu)
545    ac_prev=build_alias ;;
546  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
547    build_alias=$ac_optarg ;;
548
549  -cache-file | --cache-file | --cache-fil | --cache-fi \
550  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
551    ac_prev=cache_file ;;
552  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
553  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
554    cache_file=$ac_optarg ;;
555
556  --config-cache | -C)
557    cache_file=config.cache ;;
558
559  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
560    ac_prev=datadir ;;
561  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
562  | --da=*)
563    datadir=$ac_optarg ;;
564
565  -disable-* | --disable-*)
566    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
567    # Reject names that are not valid shell variable names.
568    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570   { (exit 1); exit 1; }; }
571    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572    eval "enable_$ac_feature=no" ;;
573
574  -enable-* | --enable-*)
575    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
576    # Reject names that are not valid shell variable names.
577    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
578      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
579   { (exit 1); exit 1; }; }
580    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
581    case $ac_option in
582      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583      *) ac_optarg=yes ;;
584    esac
585    eval "enable_$ac_feature='$ac_optarg'" ;;
586
587  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
588  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
589  | --exec | --exe | --ex)
590    ac_prev=exec_prefix ;;
591  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
592  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
593  | --exec=* | --exe=* | --ex=*)
594    exec_prefix=$ac_optarg ;;
595
596  -gas | --gas | --ga | --g)
597    # Obsolete; use --with-gas.
598    with_gas=yes ;;
599
600  -help | --help | --hel | --he | -h)
601    ac_init_help=long ;;
602  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
603    ac_init_help=recursive ;;
604  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
605    ac_init_help=short ;;
606
607  -host | --host | --hos | --ho)
608    ac_prev=host_alias ;;
609  -host=* | --host=* | --hos=* | --ho=*)
610    host_alias=$ac_optarg ;;
611
612  -includedir | --includedir | --includedi | --included | --include \
613  | --includ | --inclu | --incl | --inc)
614    ac_prev=includedir ;;
615  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
616  | --includ=* | --inclu=* | --incl=* | --inc=*)
617    includedir=$ac_optarg ;;
618
619  -infodir | --infodir | --infodi | --infod | --info | --inf)
620    ac_prev=infodir ;;
621  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
622    infodir=$ac_optarg ;;
623
624  -libdir | --libdir | --libdi | --libd)
625    ac_prev=libdir ;;
626  -libdir=* | --libdir=* | --libdi=* | --libd=*)
627    libdir=$ac_optarg ;;
628
629  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
630  | --libexe | --libex | --libe)
631    ac_prev=libexecdir ;;
632  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
633  | --libexe=* | --libex=* | --libe=*)
634    libexecdir=$ac_optarg ;;
635
636  -localstatedir | --localstatedir | --localstatedi | --localstated \
637  | --localstate | --localstat | --localsta | --localst \
638  | --locals | --local | --loca | --loc | --lo)
639    ac_prev=localstatedir ;;
640  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
641  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
642  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
643    localstatedir=$ac_optarg ;;
644
645  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
646    ac_prev=mandir ;;
647  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648    mandir=$ac_optarg ;;
649
650  -nfp | --nfp | --nf)
651    # Obsolete; use --without-fp.
652    with_fp=no ;;
653
654  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
655  | --no-cr | --no-c | -n)
656    no_create=yes ;;
657
658  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
659  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
660    no_recursion=yes ;;
661
662  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
663  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
664  | --oldin | --oldi | --old | --ol | --o)
665    ac_prev=oldincludedir ;;
666  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
667  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
668  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
669    oldincludedir=$ac_optarg ;;
670
671  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
672    ac_prev=prefix ;;
673  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
674    prefix=$ac_optarg ;;
675
676  -program-prefix | --program-prefix | --program-prefi | --program-pref \
677  | --program-pre | --program-pr | --program-p)
678    ac_prev=program_prefix ;;
679  -program-prefix=* | --program-prefix=* | --program-prefi=* \
680  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
681    program_prefix=$ac_optarg ;;
682
683  -program-suffix | --program-suffix | --program-suffi | --program-suff \
684  | --program-suf | --program-su | --program-s)
685    ac_prev=program_suffix ;;
686  -program-suffix=* | --program-suffix=* | --program-suffi=* \
687  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
688    program_suffix=$ac_optarg ;;
689
690  -program-transform-name | --program-transform-name \
691  | --program-transform-nam | --program-transform-na \
692  | --program-transform-n | --program-transform- \
693  | --program-transform | --program-transfor \
694  | --program-transfo | --program-transf \
695  | --program-trans | --program-tran \
696  | --progr-tra | --program-tr | --program-t)
697    ac_prev=program_transform_name ;;
698  -program-transform-name=* | --program-transform-name=* \
699  | --program-transform-nam=* | --program-transform-na=* \
700  | --program-transform-n=* | --program-transform-=* \
701  | --program-transform=* | --program-transfor=* \
702  | --program-transfo=* | --program-transf=* \
703  | --program-trans=* | --program-tran=* \
704  | --progr-tra=* | --program-tr=* | --program-t=*)
705    program_transform_name=$ac_optarg ;;
706
707  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
708  | -silent | --silent | --silen | --sile | --sil)
709    silent=yes ;;
710
711  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
712    ac_prev=sbindir ;;
713  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
714  | --sbi=* | --sb=*)
715    sbindir=$ac_optarg ;;
716
717  -sharedstatedir | --sharedstatedir | --sharedstatedi \
718  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
719  | --sharedst | --shareds | --shared | --share | --shar \
720  | --sha | --sh)
721    ac_prev=sharedstatedir ;;
722  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
723  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
724  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
725  | --sha=* | --sh=*)
726    sharedstatedir=$ac_optarg ;;
727
728  -site | --site | --sit)
729    ac_prev=site ;;
730  -site=* | --site=* | --sit=*)
731    site=$ac_optarg ;;
732
733  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
734    ac_prev=srcdir ;;
735  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
736    srcdir=$ac_optarg ;;
737
738  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
739  | --syscon | --sysco | --sysc | --sys | --sy)
740    ac_prev=sysconfdir ;;
741  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
742  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
743    sysconfdir=$ac_optarg ;;
744
745  -target | --target | --targe | --targ | --tar | --ta | --t)
746    ac_prev=target_alias ;;
747  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
748    target_alias=$ac_optarg ;;
749
750  -v | -verbose | --verbose | --verbos | --verbo | --verb)
751    verbose=yes ;;
752
753  -version | --version | --versio | --versi | --vers | -V)
754    ac_init_version=: ;;
755
756  -with-* | --with-*)
757    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760      { echo "$as_me: error: invalid package name: $ac_package" >&2
761   { (exit 1); exit 1; }; }
762    ac_package=`echo $ac_package| sed 's/-/_/g'`
763    case $ac_option in
764      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
765      *) ac_optarg=yes ;;
766    esac
767    eval "with_$ac_package='$ac_optarg'" ;;
768
769  -without-* | --without-*)
770    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
771    # Reject names that are not valid shell variable names.
772    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
773      { echo "$as_me: error: invalid package name: $ac_package" >&2
774   { (exit 1); exit 1; }; }
775    ac_package=`echo $ac_package | sed 's/-/_/g'`
776    eval "with_$ac_package=no" ;;
777
778  --x)
779    # Obsolete; use --with-x.
780    with_x=yes ;;
781
782  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
783  | --x-incl | --x-inc | --x-in | --x-i)
784    ac_prev=x_includes ;;
785  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
786  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
787    x_includes=$ac_optarg ;;
788
789  -x-libraries | --x-libraries | --x-librarie | --x-librari \
790  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
791    ac_prev=x_libraries ;;
792  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
793  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
794    x_libraries=$ac_optarg ;;
795
796  -*) { echo "$as_me: error: unrecognized option: $ac_option
797Try \`$0 --help' for more information." >&2
798   { (exit 1); exit 1; }; }
799    ;;
800
801  *=*)
802    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
803    # Reject names that are not valid shell variable names.
804    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
805      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
806   { (exit 1); exit 1; }; }
807    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
808    eval "$ac_envvar='$ac_optarg'"
809    export $ac_envvar ;;
810
811  *)
812    # FIXME: should be removed in autoconf 3.0.
813    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
814    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
815      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
816    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
817    ;;
818
819  esac
820done
821
822if test -n "$ac_prev"; then
823  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
824  { echo "$as_me: error: missing argument to $ac_option" >&2
825   { (exit 1); exit 1; }; }
826fi
827
828# Be sure to have absolute paths.
829for ac_var in exec_prefix prefix
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# Be sure to have absolute paths.
840for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
841	      localstatedir libdir includedir oldincludedir infodir mandir
842do
843  eval ac_val=$`echo $ac_var`
844  case $ac_val in
845    [\\/$]* | ?:[\\/]* ) ;;
846    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
847   { (exit 1); exit 1; }; };;
848  esac
849done
850
851# There might be people who depend on the old broken behavior: `$host'
852# used to hold the argument of --host etc.
853# FIXME: To remove some day.
854build=$build_alias
855host=$host_alias
856target=$target_alias
857
858# FIXME: To remove some day.
859if test "x$host_alias" != x; then
860  if test "x$build_alias" = x; then
861    cross_compiling=maybe
862    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
863    If a cross compiler is detected then cross compile mode will be used." >&2
864  elif test "x$build_alias" != "x$host_alias"; then
865    cross_compiling=yes
866  fi
867fi
868
869ac_tool_prefix=
870test -n "$host_alias" && ac_tool_prefix=$host_alias-
871
872test "$silent" = yes && exec 6>/dev/null
873
874
875# Find the source files, if location was not specified.
876if test -z "$srcdir"; then
877  ac_srcdir_defaulted=yes
878  # Try the directory containing this script, then its parent.
879  ac_confdir=`(dirname "$0") 2>/dev/null ||
880$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
881	 X"$0" : 'X\(//\)[^/]' \| \
882	 X"$0" : 'X\(//\)$' \| \
883	 X"$0" : 'X\(/\)' \| \
884	 .     : '\(.\)' 2>/dev/null ||
885echo X"$0" |
886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
887  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
888  	  /^X\(\/\/\)$/{ s//\1/; q; }
889  	  /^X\(\/\).*/{ s//\1/; q; }
890  	  s/.*/./; q'`
891  srcdir=$ac_confdir
892  if test ! -r $srcdir/$ac_unique_file; then
893    srcdir=..
894  fi
895else
896  ac_srcdir_defaulted=no
897fi
898if test ! -r $srcdir/$ac_unique_file; then
899  if test "$ac_srcdir_defaulted" = yes; then
900    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
901   { (exit 1); exit 1; }; }
902  else
903    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
904   { (exit 1); exit 1; }; }
905  fi
906fi
907(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
908  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
909   { (exit 1); exit 1; }; }
910srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
911ac_env_build_alias_set=${build_alias+set}
912ac_env_build_alias_value=$build_alias
913ac_cv_env_build_alias_set=${build_alias+set}
914ac_cv_env_build_alias_value=$build_alias
915ac_env_host_alias_set=${host_alias+set}
916ac_env_host_alias_value=$host_alias
917ac_cv_env_host_alias_set=${host_alias+set}
918ac_cv_env_host_alias_value=$host_alias
919ac_env_target_alias_set=${target_alias+set}
920ac_env_target_alias_value=$target_alias
921ac_cv_env_target_alias_set=${target_alias+set}
922ac_cv_env_target_alias_value=$target_alias
923ac_env_CDEFS_set=${CDEFS+set}
924ac_env_CDEFS_value=$CDEFS
925ac_cv_env_CDEFS_set=${CDEFS+set}
926ac_cv_env_CDEFS_value=$CDEFS
927ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
928ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
929ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
930ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
931ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
932ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
933ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
934ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
935ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
936ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
937ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
938ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
939ac_env_CC_set=${CC+set}
940ac_env_CC_value=$CC
941ac_cv_env_CC_set=${CC+set}
942ac_cv_env_CC_value=$CC
943ac_env_CFLAGS_set=${CFLAGS+set}
944ac_env_CFLAGS_value=$CFLAGS
945ac_cv_env_CFLAGS_set=${CFLAGS+set}
946ac_cv_env_CFLAGS_value=$CFLAGS
947ac_env_LDFLAGS_set=${LDFLAGS+set}
948ac_env_LDFLAGS_value=$LDFLAGS
949ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
950ac_cv_env_LDFLAGS_value=$LDFLAGS
951ac_env_CPPFLAGS_set=${CPPFLAGS+set}
952ac_env_CPPFLAGS_value=$CPPFLAGS
953ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
954ac_cv_env_CPPFLAGS_value=$CPPFLAGS
955ac_env_MPICC_set=${MPICC+set}
956ac_env_MPICC_value=$MPICC
957ac_cv_env_MPICC_set=${MPICC+set}
958ac_cv_env_MPICC_value=$MPICC
959ac_env_CXXDEFS_set=${CXXDEFS+set}
960ac_env_CXXDEFS_value=$CXXDEFS
961ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
962ac_cv_env_CXXDEFS_value=$CXXDEFS
963ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
964ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
965ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
966ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
967ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
968ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
969ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
970ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
971ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
972ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
973ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
974ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
975ac_env_CXX_set=${CXX+set}
976ac_env_CXX_value=$CXX
977ac_cv_env_CXX_set=${CXX+set}
978ac_cv_env_CXX_value=$CXX
979ac_env_CXXFLAGS_set=${CXXFLAGS+set}
980ac_env_CXXFLAGS_value=$CXXFLAGS
981ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
982ac_cv_env_CXXFLAGS_value=$CXXFLAGS
983ac_env_MPICXX_set=${MPICXX+set}
984ac_env_MPICXX_value=$MPICXX
985ac_cv_env_MPICXX_set=${MPICXX+set}
986ac_cv_env_MPICXX_value=$MPICXX
987ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
988ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
989ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
990ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
991ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
992ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
993ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
994ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
995ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
996ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
997ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
998ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
999ac_env_F77_set=${F77+set}
1000ac_env_F77_value=$F77
1001ac_cv_env_F77_set=${F77+set}
1002ac_cv_env_F77_value=$F77
1003ac_env_FFLAGS_set=${FFLAGS+set}
1004ac_env_FFLAGS_value=$FFLAGS
1005ac_cv_env_FFLAGS_set=${FFLAGS+set}
1006ac_cv_env_FFLAGS_value=$FFLAGS
1007ac_env_MPIF77_set=${MPIF77+set}
1008ac_env_MPIF77_value=$MPIF77
1009ac_cv_env_MPIF77_set=${MPIF77+set}
1010ac_cv_env_MPIF77_value=$MPIF77
1011ac_env_CPP_set=${CPP+set}
1012ac_env_CPP_value=$CPP
1013ac_cv_env_CPP_set=${CPP+set}
1014ac_cv_env_CPP_value=$CPP
1015ac_env_CXXCPP_set=${CXXCPP+set}
1016ac_env_CXXCPP_value=$CXXCPP
1017ac_cv_env_CXXCPP_set=${CXXCPP+set}
1018ac_cv_env_CXXCPP_value=$CXXCPP
1019ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1020ac_env_PKG_CONFIG_value=$PKG_CONFIG
1021ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1022ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1023
1024#
1025# Report the --help message.
1026#
1027if test "$ac_init_help" = "long"; then
1028  # Omit some internal or obsolete options to make the list less imposing.
1029  # This message is too long to be a string in the A/UX 3.1 sh.
1030  cat <<_ACEOF
1031\`configure' configures CglConic 0.3 to adapt to many kinds of systems.
1032
1033Usage: $0 [OPTION]... [VAR=VALUE]...
1034
1035To assign environment variables (e.g., CC, CFLAGS...), specify them as
1036VAR=VALUE.  See below for descriptions of some of the useful variables.
1037
1038Defaults for the options are specified in brackets.
1039
1040Configuration:
1041  -h, --help              display this help and exit
1042      --help=short        display options specific to this package
1043      --help=recursive    display the short help of all the included packages
1044  -V, --version           display version information and exit
1045  -q, --quiet, --silent   do not print \`checking...' messages
1046      --cache-file=FILE   cache test results in FILE [disabled]
1047  -C, --config-cache      alias for \`--cache-file=config.cache'
1048  -n, --no-create         do not create output files
1049      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1050
1051_ACEOF
1052
1053  cat <<_ACEOF
1054Installation directories:
1055  --prefix=PREFIX         install architecture-independent files in PREFIX
1056			  [$ac_default_prefix]
1057  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1058			  [PREFIX]
1059
1060By default, \`make install' will install all the files in
1061\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1062an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1063for instance \`--prefix=\$HOME'.
1064
1065For better control, use the options below.
1066
1067Fine tuning of the installation directories:
1068  --bindir=DIR           user executables [EPREFIX/bin]
1069  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1070  --libexecdir=DIR       program executables [EPREFIX/libexec]
1071  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1072  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1073  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1074  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1075  --libdir=DIR           object code libraries [EPREFIX/lib]
1076  --includedir=DIR       C header files [PREFIX/include]
1077  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1078  --infodir=DIR          info documentation [PREFIX/info]
1079  --mandir=DIR           man documentation [PREFIX/man]
1080_ACEOF
1081
1082  cat <<\_ACEOF
1083
1084Program names:
1085  --program-prefix=PREFIX            prepend PREFIX to installed program names
1086  --program-suffix=SUFFIX            append SUFFIX to installed program names
1087  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1088
1089System types:
1090  --build=BUILD     configure for building on BUILD [guessed]
1091  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1092_ACEOF
1093fi
1094
1095if test -n "$ac_init_help"; then
1096  case $ac_init_help in
1097     short | recursive ) echo "Configuration of CglConic 0.3:";;
1098   esac
1099  cat <<\_ACEOF
1100
1101Optional Features:
1102  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1103  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1104  --enable-debug          compile all projects with debug options tests
1105                          (implies --disable-shared)
1106  --enable-debug-cglconic compile project CglConic with debug compiler flags
1107
1108  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1109  --enable-static[=PKGS]
1110                          build static libraries [default=no]
1111  --disable-dependency-tracking  speeds up one-time build
1112  --enable-dependency-tracking   do not reject slow dependency extractors
1113  --enable-maintainer-mode  enable make rules and dependencies not useful
1114			  (and sometimes confusing) to the casual installer
1115  --enable-shared[=PKGS]
1116                          build shared libraries [default=yes]
1117  --enable-fast-install[=PKGS]
1118                          optimize for fast installation [default=yes]
1119  --disable-libtool-lock  avoid locking (might break parallel builds)
1120  --disable-dependency-linking
1121                          disable linking library dependencies into shared
1122                          libraries
1123  --disable-pkg-config    disable use of pkg-config (if available)
1124  --disable-interpackage-dependencies
1125                          disables deduction of Makefile dependencies from
1126                          package linker flags
1127
1128Optional Packages:
1129  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1130  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1131  --with-cglconic-verbosity
1132                          specify the debug verbosity level for project
1133                          CglConic
1134  --with-cglconic-checklevel
1135                          specify the sanity check level for project CglConic
1136  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1137  --with-pic              try to use only PIC/non-PIC objects [default=use
1138                          both]
1139  --with-tags[=TAGS]
1140                          include additional configurations [automatic]
1141  --with-coin-instdir     prefix of installation directory for precompiled
1142                          COIN packages
1143
1144  --with-coinutils-lib linker flags for using package CoinUtils
1145  --with-coinutils-incdir directory with header files for using package
1146                          CoinUtils
1147  --with-coinutils-datadir
1148                          directory with data files for using package
1149                          CoinUtils
1150  --with-osi-lib linker flags for using package Osi
1151  --with-osi-incdir directory with header files for using package Osi
1152  --with-osi-datadir directory with data files for using package Osi
1153  --with-osiclp-lib linker flags for using package OsiClp
1154  --with-osiclp-incdir directory with header files for using package OsiClp
1155  --with-osiclp-datadir directory with data files for using package OsiClp
1156  --with-cgl-lib linker flags for using package Cgl
1157  --with-cgl-incdir directory with header files for using package Cgl
1158  --with-cgl-datadir directory with data files for using package Cgl
1159  --with-osiconic-lib linker flags for using package OsiConic
1160  --with-osiconic-incdir directory with header files for using package
1161                          OsiConic
1162  --with-osiconic-datadir directory with data files for using package OsiConic
1163  --with-cola-lib linker flags for using package Cola
1164  --with-cola-incdir directory with header files for using package Cola
1165  --with-cola-datadir directory with data files for using package Cola
1166  --with-osiipopt-lib linker flags for using package OsiIpopt
1167  --with-osiipopt-incdir directory with header files for using package
1168                          OsiIpopt
1169  --with-osiipopt-datadir directory with data files for using package OsiIpopt
1170  --with-osicplex-lib linker flags for using package OsiCplex
1171  --with-osicplex-incdir directory with header files for using package
1172                          OsiCplex
1173  --with-osicplex-datadir directory with data files for using package OsiCplex
1174  --with-osimosek-lib linker flags for using package OsiMosek
1175  --with-osimosek-incdir directory with header files for using package
1176                          OsiMosek
1177  --with-osimosek-datadir directory with data files for using package OsiMosek
1178  --with-ipm-solver[=ipmsolver]
1179                          specify the IPM solver in small letters(default
1180                          ipmsolver=ipopt)
1181  --with-sample-lib linker flags for using package Sample
1182  --with-sample-incdir directory with header files for using package Sample
1183  --with-sample-datadir directory with data files for using package Sample
1184  --with-blas             specify BLAS library (or BUILD to enforce use of
1185                          ThirdParty/Blas)
1186  --with-blas-lib linker flags for using package Blas
1187  --with-blas-incdir directory with header files for using package Blas
1188  --with-blas-datadir directory with data files for using package Blas
1189  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1190                          ThirdParty/Lapack)
1191  --with-lapack-lib linker flags for using package Lapack
1192  --with-lapack-incdir directory with header files for using package Lapack
1193  --with-lapack-datadir directory with data files for using package Lapack
1194  --with-dot              use dot (from graphviz) when creating documentation
1195                          with doxygen if available; --without-dot to disable
1196
1197Some influential environment variables:
1198  CDEFS       Additional -D flags to be used when compiling C code.
1199  ADD_CFLAGS  Additional C compiler options
1200  DBG_CFLAGS  Debug C compiler options
1201  OPT_CFLAGS  Optimize C compiler options
1202  CC          C compiler command
1203  CFLAGS      C compiler flags
1204  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1205              nonstandard directory <lib dir>
1206  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1207              headers in a nonstandard directory <include dir>
1208  MPICC       C MPI Compiler
1209  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1210  ADD_CXXFLAGS
1211              Additional C++ compiler options
1212  DBG_CXXFLAGS
1213              Debug C++ compiler options
1214  OPT_CXXFLAGS
1215              Optimize C++ compiler options
1216  CXX         C++ compiler command
1217  CXXFLAGS    C++ compiler flags
1218  MPICXX      C++ MPI Compiler
1219  ADD_FFLAGS  Additional Fortran compiler options
1220  DBG_FFLAGS  Debug Fortran compiler options
1221  OPT_FFLAGS  Optimize Fortran compiler options
1222  F77         Fortran 77 compiler command
1223  FFLAGS      Fortran 77 compiler flags
1224  MPIF77      Fortran MPI Compiler
1225  CPP         C preprocessor
1226  CXXCPP      C++ preprocessor
1227  PKG_CONFIG  path to pkg-config utility
1228
1229Use these variables to override the choices made by `configure' or to help
1230it to find libraries and programs with nonstandard names/locations.
1231
1232Report bugs to <https://github.com/aykutbulut/CGL-CONIC/issues/new>.
1233_ACEOF
1234fi
1235
1236if test "$ac_init_help" = "recursive"; then
1237  # If there are subdirs, report their specific --help.
1238  ac_popdir=`pwd`
1239  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1240    test -d $ac_dir || continue
1241    ac_builddir=.
1242
1243if test "$ac_dir" != .; then
1244  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1245  # A "../" for each directory in $ac_dir_suffix.
1246  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1247else
1248  ac_dir_suffix= ac_top_builddir=
1249fi
1250
1251case $srcdir in
1252  .)  # No --srcdir option.  We are building in place.
1253    ac_srcdir=.
1254    if test -z "$ac_top_builddir"; then
1255       ac_top_srcdir=.
1256    else
1257       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1258    fi ;;
1259  [\\/]* | ?:[\\/]* )  # Absolute path.
1260    ac_srcdir=$srcdir$ac_dir_suffix;
1261    ac_top_srcdir=$srcdir ;;
1262  *) # Relative path.
1263    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1264    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1265esac
1266
1267# Do not use `cd foo && pwd` to compute absolute paths, because
1268# the directories may not exist.
1269case `pwd` in
1270.) ac_abs_builddir="$ac_dir";;
1271*)
1272  case "$ac_dir" in
1273  .) ac_abs_builddir=`pwd`;;
1274  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1275  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1276  esac;;
1277esac
1278case $ac_abs_builddir in
1279.) ac_abs_top_builddir=${ac_top_builddir}.;;
1280*)
1281  case ${ac_top_builddir}. in
1282  .) ac_abs_top_builddir=$ac_abs_builddir;;
1283  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1284  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1285  esac;;
1286esac
1287case $ac_abs_builddir in
1288.) ac_abs_srcdir=$ac_srcdir;;
1289*)
1290  case $ac_srcdir in
1291  .) ac_abs_srcdir=$ac_abs_builddir;;
1292  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1293  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1294  esac;;
1295esac
1296case $ac_abs_builddir in
1297.) ac_abs_top_srcdir=$ac_top_srcdir;;
1298*)
1299  case $ac_top_srcdir in
1300  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1301  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1302  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1303  esac;;
1304esac
1305
1306    cd $ac_dir
1307    # Check for guested configure; otherwise get Cygnus style configure.
1308    if test -f $ac_srcdir/configure.gnu; then
1309      echo
1310      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1311    elif test -f $ac_srcdir/configure; then
1312      echo
1313      $SHELL $ac_srcdir/configure  --help=recursive
1314    elif test -f $ac_srcdir/configure.ac ||
1315	   test -f $ac_srcdir/configure.in; then
1316      echo
1317      $ac_configure --help
1318    else
1319      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1320    fi
1321    cd $ac_popdir
1322  done
1323fi
1324
1325test -n "$ac_init_help" && exit 0
1326if $ac_init_version; then
1327  cat <<\_ACEOF
1328CglConic configure 0.3
1329generated by GNU Autoconf 2.59
1330
1331Copyright (C) 2003 Free Software Foundation, Inc.
1332This configure script is free software; the Free Software Foundation
1333gives unlimited permission to copy, distribute and modify it.
1334
1335
1336/*===========================================================================*/
1337/*                                                                           */
1338/* CglConic is developed by Aykut Bulut (aykutblt@gmail.com)                 */
1339/*                                                                           */
1340/* (c) Copyright 2015 Lehigh University. All Rights Reserved.                */
1341/*                                                                           */
1342/* This software is licensed under the Eclipse Public License. Please see    */
1343/* accompanying file for terms.                                              */
1344/*                                                                           */
1345/*===========================================================================*/
1346
1347_ACEOF
1348  exit 0
1349fi
1350exec 5>config.log
1351cat >&5 <<_ACEOF
1352This file contains any messages produced by compilers while
1353running configure, to aid debugging if configure makes a mistake.
1354
1355It was created by CglConic $as_me 0.3, which was
1356generated by GNU Autoconf 2.59.  Invocation command line was
1357
1358  $ $0 $@
1359
1360_ACEOF
1361{
1362cat <<_ASUNAME
1363## --------- ##
1364## Platform. ##
1365## --------- ##
1366
1367hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1368uname -m = `(uname -m) 2>/dev/null || echo unknown`
1369uname -r = `(uname -r) 2>/dev/null || echo unknown`
1370uname -s = `(uname -s) 2>/dev/null || echo unknown`
1371uname -v = `(uname -v) 2>/dev/null || echo unknown`
1372
1373/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1374/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1375
1376/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1377/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1378/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1379hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1380/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1381/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1382/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1383
1384_ASUNAME
1385
1386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387for as_dir in $PATH
1388do
1389  IFS=$as_save_IFS
1390  test -z "$as_dir" && as_dir=.
1391  echo "PATH: $as_dir"
1392done
1393
1394} >&5
1395
1396cat >&5 <<_ACEOF
1397
1398
1399## ----------- ##
1400## Core tests. ##
1401## ----------- ##
1402
1403_ACEOF
1404
1405
1406# Keep a trace of the command line.
1407# Strip out --no-create and --no-recursion so they do not pile up.
1408# Strip out --silent because we don't want to record it for future runs.
1409# Also quote any args containing shell meta-characters.
1410# Make two passes to allow for proper duplicate-argument suppression.
1411ac_configure_args=
1412ac_configure_args0=
1413ac_configure_args1=
1414ac_sep=
1415ac_must_keep_next=false
1416for ac_pass in 1 2
1417do
1418  for ac_arg
1419  do
1420    case $ac_arg in
1421    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1422    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1423    | -silent | --silent | --silen | --sile | --sil)
1424      continue ;;
1425    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1427    esac
1428    case $ac_pass in
1429    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1430    2)
1431      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1432      if test $ac_must_keep_next = true; then
1433	ac_must_keep_next=false # Got value, back to normal.
1434      else
1435	case $ac_arg in
1436	  *=* | --config-cache | -C | -disable-* | --disable-* \
1437	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1438	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1439	  | -with-* | --with-* | -without-* | --without-* | --x)
1440	    case "$ac_configure_args0 " in
1441	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1442	    esac
1443	    ;;
1444	  -* ) ac_must_keep_next=true ;;
1445	esac
1446      fi
1447      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1448      # Get rid of the leading space.
1449      ac_sep=" "
1450      ;;
1451    esac
1452  done
1453done
1454$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1455$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1456
1457# When interrupted or exit'd, cleanup temporary files, and complete
1458# config.log.  We remove comments because anyway the quotes in there
1459# would cause problems or look ugly.
1460# WARNING: Be sure not to use single quotes in there, as some shells,
1461# such as our DU 5.0 friend, will then `close' the trap.
1462trap 'exit_status=$?
1463  # Save into config.log some information that might help in debugging.
1464  {
1465    echo
1466
1467    cat <<\_ASBOX
1468## ---------------- ##
1469## Cache variables. ##
1470## ---------------- ##
1471_ASBOX
1472    echo
1473    # The following way of writing the cache mishandles newlines in values,
1474{
1475  (set) 2>&1 |
1476    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1477    *ac_space=\ *)
1478      sed -n \
1479	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1480	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1481      ;;
1482    *)
1483      sed -n \
1484	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1485      ;;
1486    esac;
1487}
1488    echo
1489
1490    cat <<\_ASBOX
1491## ----------------- ##
1492## Output variables. ##
1493## ----------------- ##
1494_ASBOX
1495    echo
1496    for ac_var in $ac_subst_vars
1497    do
1498      eval ac_val=$`echo $ac_var`
1499      echo "$ac_var='"'"'$ac_val'"'"'"
1500    done | sort
1501    echo
1502
1503    if test -n "$ac_subst_files"; then
1504      cat <<\_ASBOX
1505## ------------- ##
1506## Output files. ##
1507## ------------- ##
1508_ASBOX
1509      echo
1510      for ac_var in $ac_subst_files
1511      do
1512	eval ac_val=$`echo $ac_var`
1513	echo "$ac_var='"'"'$ac_val'"'"'"
1514      done | sort
1515      echo
1516    fi
1517
1518    if test -s confdefs.h; then
1519      cat <<\_ASBOX
1520## ----------- ##
1521## confdefs.h. ##
1522## ----------- ##
1523_ASBOX
1524      echo
1525      sed "/^$/d" confdefs.h | sort
1526      echo
1527    fi
1528    test "$ac_signal" != 0 &&
1529      echo "$as_me: caught signal $ac_signal"
1530    echo "$as_me: exit $exit_status"
1531  } >&5
1532  rm -f core *.core &&
1533  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1534    exit $exit_status
1535     ' 0
1536for ac_signal in 1 2 13 15; do
1537  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1538done
1539ac_signal=0
1540
1541# confdefs.h avoids OS command line length limits that DEFS can exceed.
1542rm -rf conftest* confdefs.h
1543# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1544echo >confdefs.h
1545
1546# Predefined preprocessor variables.
1547
1548cat >>confdefs.h <<_ACEOF
1549#define PACKAGE_NAME "$PACKAGE_NAME"
1550_ACEOF
1551
1552
1553cat >>confdefs.h <<_ACEOF
1554#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1555_ACEOF
1556
1557
1558cat >>confdefs.h <<_ACEOF
1559#define PACKAGE_VERSION "$PACKAGE_VERSION"
1560_ACEOF
1561
1562
1563cat >>confdefs.h <<_ACEOF
1564#define PACKAGE_STRING "$PACKAGE_STRING"
1565_ACEOF
1566
1567
1568cat >>confdefs.h <<_ACEOF
1569#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1570_ACEOF
1571
1572
1573# Let the site file select an alternate cache file if it wants to.
1574# Prefer explicitly selected file to automatically selected ones.
1575if test -z "$CONFIG_SITE"; then
1576  if test "x$prefix" != xNONE; then
1577    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1578  else
1579    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1580  fi
1581fi
1582for ac_site_file in $CONFIG_SITE; do
1583  if test -r "$ac_site_file"; then
1584    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1585echo "$as_me: loading site script $ac_site_file" >&6;}
1586    sed 's/^/| /' "$ac_site_file" >&5
1587    . "$ac_site_file"
1588  fi
1589done
1590
1591if test -r "$cache_file"; then
1592  # Some versions of bash will fail to source /dev/null (special
1593  # files actually), so we avoid doing that.
1594  if test -f "$cache_file"; then
1595    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1596echo "$as_me: loading cache $cache_file" >&6;}
1597    case $cache_file in
1598      [\\/]* | ?:[\\/]* ) . $cache_file;;
1599      *)                      . ./$cache_file;;
1600    esac
1601  fi
1602else
1603  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1604echo "$as_me: creating cache $cache_file" >&6;}
1605  >$cache_file
1606fi
1607
1608# Check that the precious variables saved in the cache have kept the same
1609# value.
1610ac_cache_corrupted=false
1611for ac_var in `(set) 2>&1 |
1612	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1613  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1614  eval ac_new_set=\$ac_env_${ac_var}_set
1615  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1616  eval ac_new_val="\$ac_env_${ac_var}_value"
1617  case $ac_old_set,$ac_new_set in
1618    set,)
1619      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1620echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1621      ac_cache_corrupted=: ;;
1622    ,set)
1623      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1624echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1625      ac_cache_corrupted=: ;;
1626    ,);;
1627    *)
1628      if test "x$ac_old_val" != "x$ac_new_val"; then
1629	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1630echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1631	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1632echo "$as_me:   former value:  $ac_old_val" >&2;}
1633	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1634echo "$as_me:   current value: $ac_new_val" >&2;}
1635	ac_cache_corrupted=:
1636      fi;;
1637  esac
1638  # Pass precious variables to config.status.
1639  if test "$ac_new_set" = set; then
1640    case $ac_new_val in
1641    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1642      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1643    *) ac_arg=$ac_var=$ac_new_val ;;
1644    esac
1645    case " $ac_configure_args " in
1646      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1647      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1648    esac
1649  fi
1650done
1651if $ac_cache_corrupted; then
1652  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1653echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1654  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1655echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1656   { (exit 1); exit 1; }; }
1657fi
1658
1659ac_ext=c
1660ac_cpp='$CPP $CPPFLAGS'
1661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1663ac_compiler_gnu=$ac_cv_c_compiler_gnu
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694# List one file in the package so that the configure script can test
1695# whether the package is actually there
1696
1697
1698# Where should everything be installed by default?  Here, we want it
1699# to be installed directly in 'bin', 'lib', 'include' subdirectories
1700# of the directory where configure is run.  The default would be
1701# /usr/local.
1702
1703
1704#############################################################################
1705#                         Standard build tool stuff                         #
1706#############################################################################
1707
1708# Get the system type
1709ac_aux_dir=
1710for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1711  if test -f $ac_dir/install-sh; then
1712    ac_aux_dir=$ac_dir
1713    ac_install_sh="$ac_aux_dir/install-sh -c"
1714    break
1715  elif test -f $ac_dir/install.sh; then
1716    ac_aux_dir=$ac_dir
1717    ac_install_sh="$ac_aux_dir/install.sh -c"
1718    break
1719  elif test -f $ac_dir/shtool; then
1720    ac_aux_dir=$ac_dir
1721    ac_install_sh="$ac_aux_dir/shtool install -c"
1722    break
1723  fi
1724done
1725if test -z "$ac_aux_dir"; then
1726  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1727echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1728   { (exit 1); exit 1; }; }
1729fi
1730ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1731ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1732ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1733
1734# Make sure we can run config.sub.
1735$ac_config_sub sun4 >/dev/null 2>&1 ||
1736  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1737echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1738   { (exit 1); exit 1; }; }
1739
1740echo "$as_me:$LINENO: checking build system type" >&5
1741echo $ECHO_N "checking build system type... $ECHO_C" >&6
1742if test "${ac_cv_build+set}" = set; then
1743  echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745  ac_cv_build_alias=$build_alias
1746test -z "$ac_cv_build_alias" &&
1747  ac_cv_build_alias=`$ac_config_guess`
1748test -z "$ac_cv_build_alias" &&
1749  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1750echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1751   { (exit 1); exit 1; }; }
1752ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1753  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1754echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1755   { (exit 1); exit 1; }; }
1756
1757fi
1758echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1759echo "${ECHO_T}$ac_cv_build" >&6
1760build=$ac_cv_build
1761build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1762build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1763build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1764
1765
1766
1767# If this project depends on external projects, the Externals file in
1768# the source root directory contains definition of where to find those
1769# externals.  The following macro ensures that those externals are
1770# retrieved by svn if they are not there yet.
1771
1772# As backup, we make sure we don't loose an FLIBS if it has been set
1773# by the user
1774save_FLIBS="$FLIBS"
1775
1776# A useful makefile conditional that is always false
1777
1778
1779if false; then
1780  ALWAYS_FALSE_TRUE=
1781  ALWAYS_FALSE_FALSE='#'
1782else
1783  ALWAYS_FALSE_TRUE='#'
1784  ALWAYS_FALSE_FALSE=
1785fi
1786
1787
1788# We set the following variable so that we know later in AC_COIN_FINALIZE
1789# that we are in a project main directory
1790coin_projectdir=yes
1791
1792# Set the project's version numbers
1793
1794
1795cat >>confdefs.h <<_ACEOF
1796#define CGLCONIC_VERSION "$PACKAGE_VERSION"
1797_ACEOF
1798
1799
1800  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1801  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1802  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1803  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1804  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1805  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1806
1807cat >>confdefs.h <<_ACEOF
1808#define CGLCONIC_VERSION_MAJOR $coin_majorver
1809_ACEOF
1810
1811
1812cat >>confdefs.h <<_ACEOF
1813#define CGLCONIC_VERSION_MINOR $coin_minorver
1814_ACEOF
1815
1816
1817cat >>confdefs.h <<_ACEOF
1818#define CGLCONIC_VERSION_RELEASE $coin_releasever
1819_ACEOF
1820
1821
1822  # We use the following variable to have a string with the upper case
1823  # version of the project name
1824  COIN_PRJCT=CGLCONIC
1825
1826  # Set the project's SVN revision number. The complicated sed expression
1827  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1828  # as a single number.
1829  # Extract the first word of "svnversion", so it can be a program name with args.
1830set dummy svnversion; ac_word=$2
1831echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833if test "${ac_cv_prog_have_svnversion+set}" = set; then
1834  echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836  if test -n "$have_svnversion"; then
1837  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1838else
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
1842  IFS=$as_save_IFS
1843  test -z "$as_dir" && as_dir=.
1844  for ac_exec_ext in '' $ac_executable_extensions; do
1845  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846    ac_cv_prog_have_svnversion="yes"
1847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848    break 2
1849  fi
1850done
1851done
1852
1853  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1854fi
1855fi
1856have_svnversion=$ac_cv_prog_have_svnversion
1857if test -n "$have_svnversion"; then
1858  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1859echo "${ECHO_T}$have_svnversion" >&6
1860else
1861  echo "$as_me:$LINENO: result: no" >&5
1862echo "${ECHO_T}no" >&6
1863fi
1864
1865  if test "x$have_svnversion" = xyes; then
1866
1867    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1868    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1869      CGLCONIC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1870
1871cat >>confdefs.h <<_ACEOF
1872#define CGLCONIC_SVN_REV $CGLCONIC_SVN_REV
1873_ACEOF
1874
1875    fi
1876  fi
1877
1878
1879
1880# Capture libtool library version, if given.
1881
1882
1883
1884
1885# Check if user wants to produce debugging code
1886
1887echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1888echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1889
1890# Check whether --enable-debug or --disable-debug was given.
1891if test "${enable_debug+set}" = set; then
1892  enableval="$enable_debug"
1893  case "${enableval}" in
1894   yes) coin_debug_compile=true
1895        if test "${enable_shared+set}" = set; then :; else
1896          enable_shared=no
1897        fi
1898        ;;
1899   no)  coin_debug_compile=false
1900        ;;
1901   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1902echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1903   { (exit 1); exit 1; }; }
1904        ;;
1905esac
1906else
1907  coin_debug_compile=false
1908fi;
1909
1910# Check whether --enable-debug-cglconic or --disable-debug-cglconic was given.
1911if test "${enable_debug_cglconic+set}" = set; then
1912  enableval="$enable_debug_cglconic"
1913  case "${enableval}" in
1914    yes) coin_debug_compile=true
1915         ;;
1916    no)  coin_debug_compile=false
1917         ;;
1918    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cglconic" >&5
1919echo "$as_me: error: bad value ${enableval} for --enable-debug-cglconic" >&2;}
1920   { (exit 1); exit 1; }; }
1921         ;;
1922 esac
1923else
1924  :
1925fi;
1926
1927 # m4_ifvaln([CglConic],
1928
1929if test $coin_debug_compile = true; then
1930  echo "$as_me:$LINENO: result: yes" >&5
1931echo "${ECHO_T}yes" >&6
1932else
1933  echo "$as_me:$LINENO: result: no" >&5
1934echo "${ECHO_T}no" >&6
1935fi
1936
1937
1938# Check whether --with-cglconic-verbosity or --without-cglconic-verbosity was given.
1939if test "${with_cglconic_verbosity+set}" = set; then
1940  withval="$with_cglconic_verbosity"
1941  if test "$withval" = yes; then
1942                withval=1
1943              fi
1944              coin_cglconic_verbosity=$withval
1945else
1946  coin_cglconic_verbosity=0
1947fi;
1948
1949cat >>confdefs.h <<_ACEOF
1950#define COIN_CGLCONIC_VERBOSITY $coin_cglconic_verbosity
1951_ACEOF
1952
1953
1954
1955# Check whether --with-cglconic-checklevel or --without-cglconic-checklevel was given.
1956if test "${with_cglconic_checklevel+set}" = set; then
1957  withval="$with_cglconic_checklevel"
1958  if test "$withval" = yes; then
1959                withval=1
1960              fi
1961              coin_cglconic_checklevel=$withval
1962else
1963  coin_cglconic_checklevel=0
1964fi;
1965
1966cat >>confdefs.h <<_ACEOF
1967#define COIN_CGLCONIC_CHECKLEVEL $coin_cglconic_checklevel
1968_ACEOF
1969
1970
1971 # m4_ifvaln([CglConic],
1972
1973
1974
1975# Get the name of the C++ compiler and appropriate compiler options
1976
1977
1978  # for backward compatibility
1979  # Check whether --enable-doscompile or --disable-doscompile was given.
1980if test "${enable_doscompile+set}" = set; then
1981  enableval="$enable_doscompile"
1982  enable_doscompile=$enableval
1983else
1984  enable_doscompile=no
1985fi;
1986
1987  # Check whether --enable-msvc or --disable-msvc was given.
1988if test "${enable_msvc+set}" = set; then
1989  enableval="$enable_msvc"
1990  enable_msvc=$enableval
1991else
1992  enable_msvc=no
1993     if test "$enable_doscompile" = msvc ; then
1994       enable_msvc=yes
1995     elif test "$enable_doscompile" != no ; then
1996       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1997echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1998   { (exit 1); exit 1; }; }
1999     fi
2000
2001fi;
2002
2003  if test "$enable_msvc" = MD; then
2004    enable_shared=yes
2005    enable_msvc=yes
2006  fi
2007
2008  if test "$enable_msvc" = yes; then
2009    case $build in
2010      *-cygwin* | *-mingw*) ;;
2011      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
2012echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
2013   { (exit 1); exit 1; }; } ;;
2014    esac
2015  fi
2016
2017
2018
2019ac_ext=c
2020ac_cpp='$CPP $CPPFLAGS'
2021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024
2025
2026# For consistency, we set the C compiler to the same value of the C++
2027# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2028if test x"$CXX" != x; then
2029  case "$CXX" in
2030    clang* ) ;;
2031    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2032      if test x"$CC" = x; then
2033        CC="$CXX"
2034        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2035echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2036      fi
2037      ;;
2038  esac
2039fi
2040
2041
2042
2043
2044
2045
2046coin_has_cc=yes
2047
2048save_cflags="$CFLAGS"
2049
2050# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2051# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2052# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2053# compiler. In this case, put cc after gcc.
2054
2055case $build in
2056  *-cygwin* | *-mingw*)
2057  	     if test "$enable_msvc" = yes ; then
2058	       comps="icl cl gcc"
2059	     else
2060	       comps="gcc icl cl"
2061	     fi ;;
2062  *-*-solaris*)
2063	     # Extract the first word of "cc", so it can be a program name with args.
2064set dummy cc; ac_word=$2
2065echo "$as_me:$LINENO: checking for $ac_word" >&5
2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2068  echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070  if test -n "$sol_cc_compiler"; then
2071  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2072else
2073  ac_prog_rejected=no
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077  IFS=$as_save_IFS
2078  test -z "$as_dir" && as_dir=.
2079  for ac_exec_ext in '' $ac_executable_extensions; do
2080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2082       ac_prog_rejected=yes
2083       continue
2084     fi
2085    ac_cv_prog_sol_cc_compiler="cc"
2086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087    break 2
2088  fi
2089done
2090done
2091
2092if test $ac_prog_rejected = yes; then
2093  # We found a bogon in the path, so make sure we never use it.
2094  set dummy $ac_cv_prog_sol_cc_compiler
2095  shift
2096  if test $# != 0; then
2097    # We chose a different compiler from the bogus one.
2098    # However, it has the same basename, so the bogon will be chosen
2099    # first if we set sol_cc_compiler to just the basename; use the full file name.
2100    shift
2101    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2102  fi
2103fi
2104fi
2105fi
2106sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2107if test -n "$sol_cc_compiler"; then
2108  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2109echo "${ECHO_T}$sol_cc_compiler" >&6
2110else
2111  echo "$as_me:$LINENO: result: no" >&5
2112echo "${ECHO_T}no" >&6
2113fi
2114
2115	     if test "$sol_cc_compiler" = "cc" ; then
2116	       comps="cc xlc gcc pgcc icc"
2117	     else
2118	       comps="xlc gcc pgcc icc cc"
2119	     fi
2120	     ;;
2121  *-*-darwin*) comps="clang gcc cc" ;;
2122  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2123  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2124  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2125esac
2126
2127# We delete the cached value, since the test might not have been
2128# performed with our choice of compilers earlier
2129$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2130# AC_MSG_NOTICE([C compiler candidates: $comps])
2131ac_ext=c
2132ac_cpp='$CPP $CPPFLAGS'
2133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135ac_compiler_gnu=$ac_cv_c_compiler_gnu
2136if test -n "$ac_tool_prefix"; then
2137  for ac_prog in $comps
2138  do
2139    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2141echo "$as_me:$LINENO: checking for $ac_word" >&5
2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143if test "${ac_cv_prog_CC+set}" = set; then
2144  echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146  if test -n "$CC"; then
2147  ac_cv_prog_CC="$CC" # Let the user override the test.
2148else
2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152  IFS=$as_save_IFS
2153  test -z "$as_dir" && as_dir=.
2154  for ac_exec_ext in '' $ac_executable_extensions; do
2155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158    break 2
2159  fi
2160done
2161done
2162
2163fi
2164fi
2165CC=$ac_cv_prog_CC
2166if test -n "$CC"; then
2167  echo "$as_me:$LINENO: result: $CC" >&5
2168echo "${ECHO_T}$CC" >&6
2169else
2170  echo "$as_me:$LINENO: result: no" >&5
2171echo "${ECHO_T}no" >&6
2172fi
2173
2174    test -n "$CC" && break
2175  done
2176fi
2177if test -z "$CC"; then
2178  ac_ct_CC=$CC
2179  for ac_prog in $comps
2180do
2181  # Extract the first word of "$ac_prog", so it can be a program name with args.
2182set dummy $ac_prog; ac_word=$2
2183echo "$as_me:$LINENO: checking for $ac_word" >&5
2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2185if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2186  echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188  if test -n "$ac_ct_CC"; then
2189  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190else
2191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192for as_dir in $PATH
2193do
2194  IFS=$as_save_IFS
2195  test -z "$as_dir" && as_dir=.
2196  for ac_exec_ext in '' $ac_executable_extensions; do
2197  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2198    ac_cv_prog_ac_ct_CC="$ac_prog"
2199    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200    break 2
2201  fi
2202done
2203done
2204
2205fi
2206fi
2207ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208if test -n "$ac_ct_CC"; then
2209  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210echo "${ECHO_T}$ac_ct_CC" >&6
2211else
2212  echo "$as_me:$LINENO: result: no" >&5
2213echo "${ECHO_T}no" >&6
2214fi
2215
2216  test -n "$ac_ct_CC" && break
2217done
2218
2219  CC=$ac_ct_CC
2220fi
2221
2222
2223test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: no acceptable C compiler found in \$PATH
2226See \`config.log' for more details." >&2;}
2227   { (exit 1); exit 1; }; }
2228
2229# Provide some information about the compiler.
2230echo "$as_me:$LINENO:" \
2231     "checking for C compiler version" >&5
2232ac_compiler=`set X $ac_compile; echo $2`
2233{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2234  (eval $ac_compiler --version </dev/null >&5) 2>&5
2235  ac_status=$?
2236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237  (exit $ac_status); }
2238{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2239  (eval $ac_compiler -v </dev/null >&5) 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }
2243{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2244  (eval $ac_compiler -V </dev/null >&5) 2>&5
2245  ac_status=$?
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); }
2248
2249cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h.  */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h.  */
2255
2256int
2257main ()
2258{
2259
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264ac_clean_files_save=$ac_clean_files
2265ac_clean_files="$ac_clean_files a.out a.exe b.out"
2266# Try to create an executable without -o first, disregard a.out.
2267# It will help us diagnose broken compilers, and finding out an intuition
2268# of exeext.
2269echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2270echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2271ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2272if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2273  (eval $ac_link_default) 2>&5
2274  ac_status=$?
2275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276  (exit $ac_status); }; then
2277  # Find the output, starting from the most likely.  This scheme is
2278# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2279# resort.
2280
2281# Be careful to initialize this variable, since it used to be cached.
2282# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2283ac_cv_exeext=
2284# b.out is created by i960 compilers.
2285for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2286do
2287  test -f "$ac_file" || continue
2288  case $ac_file in
2289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2290	;;
2291    conftest.$ac_ext )
2292	# This is the source file.
2293	;;
2294    [ab].out )
2295	# We found the default executable, but exeext='' is most
2296	# certainly right.
2297	break;;
2298    *.* )
2299	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300	# FIXME: I believe we export ac_cv_exeext for Libtool,
2301	# but it would be cool to find out if it's true.  Does anybody
2302	# maintain Libtool? --akim.
2303	export ac_cv_exeext
2304	break;;
2305    * )
2306	break;;
2307  esac
2308done
2309else
2310  echo "$as_me: failed program was:" >&5
2311sed 's/^/| /' conftest.$ac_ext >&5
2312
2313{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2314See \`config.log' for more details." >&5
2315echo "$as_me: error: C compiler cannot create executables
2316See \`config.log' for more details." >&2;}
2317   { (exit 77); exit 77; }; }
2318fi
2319
2320ac_exeext=$ac_cv_exeext
2321echo "$as_me:$LINENO: result: $ac_file" >&5
2322echo "${ECHO_T}$ac_file" >&6
2323
2324# Check the compiler produces executables we can run.  If not, either
2325# the compiler is broken, or we cross compile.
2326echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2327echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2328# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2329# If not cross compiling, check that we can run a simple program.
2330if test "$cross_compiling" != yes; then
2331  if { ac_try='./$ac_file'
2332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333  (eval $ac_try) 2>&5
2334  ac_status=$?
2335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336  (exit $ac_status); }; }; then
2337    cross_compiling=no
2338  else
2339    if test "$cross_compiling" = maybe; then
2340	cross_compiling=yes
2341    else
2342	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2343If you meant to cross compile, use \`--host'.
2344See \`config.log' for more details." >&5
2345echo "$as_me: error: cannot run C compiled programs.
2346If you meant to cross compile, use \`--host'.
2347See \`config.log' for more details." >&2;}
2348   { (exit 1); exit 1; }; }
2349    fi
2350  fi
2351fi
2352echo "$as_me:$LINENO: result: yes" >&5
2353echo "${ECHO_T}yes" >&6
2354
2355rm -f a.out a.exe conftest$ac_cv_exeext b.out
2356ac_clean_files=$ac_clean_files_save
2357# Check the compiler produces executables we can run.  If not, either
2358# the compiler is broken, or we cross compile.
2359echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2360echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2361echo "$as_me:$LINENO: result: $cross_compiling" >&5
2362echo "${ECHO_T}$cross_compiling" >&6
2363
2364echo "$as_me:$LINENO: checking for suffix of executables" >&5
2365echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2367  (eval $ac_link) 2>&5
2368  ac_status=$?
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); }; then
2371  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2372# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2373# work properly (i.e., refer to `conftest.exe'), while it won't with
2374# `rm'.
2375for ac_file in conftest.exe conftest conftest.*; do
2376  test -f "$ac_file" || continue
2377  case $ac_file in
2378    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2379    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2380	  export ac_cv_exeext
2381	  break;;
2382    * ) break;;
2383  esac
2384done
2385else
2386  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2387See \`config.log' for more details." >&5
2388echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2389See \`config.log' for more details." >&2;}
2390   { (exit 1); exit 1; }; }
2391fi
2392
2393rm -f conftest$ac_cv_exeext
2394echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2395echo "${ECHO_T}$ac_cv_exeext" >&6
2396
2397rm -f conftest.$ac_ext
2398EXEEXT=$ac_cv_exeext
2399ac_exeext=$EXEEXT
2400echo "$as_me:$LINENO: checking for suffix of object files" >&5
2401echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2402if test "${ac_cv_objext+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  cat >conftest.$ac_ext <<_ACEOF
2406/* confdefs.h.  */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h.  */
2411
2412int
2413main ()
2414{
2415
2416  ;
2417  return 0;
2418}
2419_ACEOF
2420rm -f conftest.o conftest.obj
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422  (eval $ac_compile) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }; then
2426  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2427  case $ac_file in
2428    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2429    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2430       break;;
2431  esac
2432done
2433else
2434  echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2438See \`config.log' for more details." >&5
2439echo "$as_me: error: cannot compute suffix of object files: cannot compile
2440See \`config.log' for more details." >&2;}
2441   { (exit 1); exit 1; }; }
2442fi
2443
2444rm -f conftest.$ac_cv_objext conftest.$ac_ext
2445fi
2446echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2447echo "${ECHO_T}$ac_cv_objext" >&6
2448OBJEXT=$ac_cv_objext
2449ac_objext=$OBJEXT
2450echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2451echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2452if test "${ac_cv_c_compiler_gnu+set}" = set; then
2453  echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455  cat >conftest.$ac_ext <<_ACEOF
2456/* confdefs.h.  */
2457_ACEOF
2458cat confdefs.h >>conftest.$ac_ext
2459cat >>conftest.$ac_ext <<_ACEOF
2460/* end confdefs.h.  */
2461
2462int
2463main ()
2464{
2465#ifndef __GNUC__
2466       choke me
2467#endif
2468
2469  ;
2470  return 0;
2471}
2472_ACEOF
2473rm -f conftest.$ac_objext
2474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475  (eval $ac_compile) 2>conftest.er1
2476  ac_status=$?
2477  grep -v '^ *+' conftest.er1 >conftest.err
2478  rm -f conftest.er1
2479  cat conftest.err >&5
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); } &&
2482	 { ac_try='test -z "$ac_c_werror_flag"
2483			 || test ! -s conftest.err'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; } &&
2489	 { ac_try='test -s conftest.$ac_objext'
2490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491  (eval $ac_try) 2>&5
2492  ac_status=$?
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); }; }; then
2495  ac_compiler_gnu=yes
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500ac_compiler_gnu=no
2501fi
2502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503ac_cv_c_compiler_gnu=$ac_compiler_gnu
2504
2505fi
2506echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2507echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2508GCC=`test $ac_compiler_gnu = yes && echo yes`
2509ac_test_CFLAGS=${CFLAGS+set}
2510ac_save_CFLAGS=$CFLAGS
2511CFLAGS="-g"
2512echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2513echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2514if test "${ac_cv_prog_cc_g+set}" = set; then
2515  echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517  cat >conftest.$ac_ext <<_ACEOF
2518/* confdefs.h.  */
2519_ACEOF
2520cat confdefs.h >>conftest.$ac_ext
2521cat >>conftest.$ac_ext <<_ACEOF
2522/* end confdefs.h.  */
2523
2524int
2525main ()
2526{
2527
2528  ;
2529  return 0;
2530}
2531_ACEOF
2532rm -f conftest.$ac_objext
2533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534  (eval $ac_compile) 2>conftest.er1
2535  ac_status=$?
2536  grep -v '^ *+' conftest.er1 >conftest.err
2537  rm -f conftest.er1
2538  cat conftest.err >&5
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); } &&
2541	 { ac_try='test -z "$ac_c_werror_flag"
2542			 || test ! -s conftest.err'
2543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544  (eval $ac_try) 2>&5
2545  ac_status=$?
2546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547  (exit $ac_status); }; } &&
2548	 { ac_try='test -s conftest.$ac_objext'
2549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550  (eval $ac_try) 2>&5
2551  ac_status=$?
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); }; }; then
2554  ac_cv_prog_cc_g=yes
2555else
2556  echo "$as_me: failed program was:" >&5
2557sed 's/^/| /' conftest.$ac_ext >&5
2558
2559ac_cv_prog_cc_g=no
2560fi
2561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2562fi
2563echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2564echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2565if test "$ac_test_CFLAGS" = set; then
2566  CFLAGS=$ac_save_CFLAGS
2567elif test $ac_cv_prog_cc_g = yes; then
2568  if test "$GCC" = yes; then
2569    CFLAGS="-g -O2"
2570  else
2571    CFLAGS="-g"
2572  fi
2573else
2574  if test "$GCC" = yes; then
2575    CFLAGS="-O2"
2576  else
2577    CFLAGS=
2578  fi
2579fi
2580echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2581echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2582if test "${ac_cv_prog_cc_stdc+set}" = set; then
2583  echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585  ac_cv_prog_cc_stdc=no
2586ac_save_CC=$CC
2587cat >conftest.$ac_ext <<_ACEOF
2588/* confdefs.h.  */
2589_ACEOF
2590cat confdefs.h >>conftest.$ac_ext
2591cat >>conftest.$ac_ext <<_ACEOF
2592/* end confdefs.h.  */
2593#include <stdarg.h>
2594#include <stdio.h>
2595#include <sys/types.h>
2596#include <sys/stat.h>
2597/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2598struct buf { int x; };
2599FILE * (*rcsopen) (struct buf *, struct stat *, int);
2600static char *e (p, i)
2601     char **p;
2602     int i;
2603{
2604  return p[i];
2605}
2606static char *f (char * (*g) (char **, int), char **p, ...)
2607{
2608  char *s;
2609  va_list v;
2610  va_start (v,p);
2611  s = g (p, va_arg (v,int));
2612  va_end (v);
2613  return s;
2614}
2615
2616/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2617   function prototypes and stuff, but not '\xHH' hex character constants.
2618   These don't provoke an error unfortunately, instead are silently treated
2619   as 'x'.  The following induces an error, until -std1 is added to get
2620   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2621   array size at least.  It's necessary to write '\x00'==0 to get something
2622   that's true only with -std1.  */
2623int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2624
2625int test (int i, double x);
2626struct s1 {int (*f) (int a);};
2627struct s2 {int (*f) (double a);};
2628int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2629int argc;
2630char **argv;
2631int
2632main ()
2633{
2634return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2635  ;
2636  return 0;
2637}
2638_ACEOF
2639# Don't try gcc -ansi; that turns off useful extensions and
2640# breaks some systems' header files.
2641# AIX			-qlanglvl=ansi
2642# Ultrix and OSF/1	-std1
2643# HP-UX 10.20 and later	-Ae
2644# HP-UX older versions	-Aa -D_HPUX_SOURCE
2645# SVR4			-Xc -D__EXTENSIONS__
2646for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2647do
2648  CC="$ac_save_CC $ac_arg"
2649  rm -f conftest.$ac_objext
2650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2651  (eval $ac_compile) 2>conftest.er1
2652  ac_status=$?
2653  grep -v '^ *+' conftest.er1 >conftest.err
2654  rm -f conftest.er1
2655  cat conftest.err >&5
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); } &&
2658	 { ac_try='test -z "$ac_c_werror_flag"
2659			 || test ! -s conftest.err'
2660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661  (eval $ac_try) 2>&5
2662  ac_status=$?
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); }; } &&
2665	 { ac_try='test -s conftest.$ac_objext'
2666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667  (eval $ac_try) 2>&5
2668  ac_status=$?
2669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670  (exit $ac_status); }; }; then
2671  ac_cv_prog_cc_stdc=$ac_arg
2672break
2673else
2674  echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677fi
2678rm -f conftest.err conftest.$ac_objext
2679done
2680rm -f conftest.$ac_ext conftest.$ac_objext
2681CC=$ac_save_CC
2682
2683fi
2684
2685case "x$ac_cv_prog_cc_stdc" in
2686  x|xno)
2687    echo "$as_me:$LINENO: result: none needed" >&5
2688echo "${ECHO_T}none needed" >&6 ;;
2689  *)
2690    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2691echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2692    CC="$CC $ac_cv_prog_cc_stdc" ;;
2693esac
2694
2695# Some people use a C++ compiler to compile C.  Since we use `exit',
2696# in C++ we need to declare it.  In case someone uses the same compiler
2697# for both compiling C and C++ we need to have the C++ compiler decide
2698# the declaration of exit, since it's the most demanding environment.
2699cat >conftest.$ac_ext <<_ACEOF
2700#ifndef __cplusplus
2701  choke me
2702#endif
2703_ACEOF
2704rm -f conftest.$ac_objext
2705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706  (eval $ac_compile) 2>conftest.er1
2707  ac_status=$?
2708  grep -v '^ *+' conftest.er1 >conftest.err
2709  rm -f conftest.er1
2710  cat conftest.err >&5
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); } &&
2713	 { ac_try='test -z "$ac_c_werror_flag"
2714			 || test ! -s conftest.err'
2715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716  (eval $ac_try) 2>&5
2717  ac_status=$?
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); }; } &&
2720	 { ac_try='test -s conftest.$ac_objext'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; }; then
2726  for ac_declaration in \
2727   '' \
2728   'extern "C" void std::exit (int) throw (); using std::exit;' \
2729   'extern "C" void std::exit (int); using std::exit;' \
2730   'extern "C" void exit (int) throw ();' \
2731   'extern "C" void exit (int);' \
2732   'void exit (int);'
2733do
2734  cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h.  */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h.  */
2740$ac_declaration
2741#include <stdlib.h>
2742int
2743main ()
2744{
2745exit (42);
2746  ;
2747  return 0;
2748}
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752  (eval $ac_compile) 2>conftest.er1
2753  ac_status=$?
2754  grep -v '^ *+' conftest.er1 >conftest.err
2755  rm -f conftest.er1
2756  cat conftest.err >&5
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); } &&
2759	 { ac_try='test -z "$ac_c_werror_flag"
2760			 || test ! -s conftest.err'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; } &&
2766	 { ac_try='test -s conftest.$ac_objext'
2767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768  (eval $ac_try) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; }; then
2772  :
2773else
2774  echo "$as_me: failed program was:" >&5
2775sed 's/^/| /' conftest.$ac_ext >&5
2776
2777continue
2778fi
2779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780  cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h.  */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h.  */
2786$ac_declaration
2787int
2788main ()
2789{
2790exit (42);
2791  ;
2792  return 0;
2793}
2794_ACEOF
2795rm -f conftest.$ac_objext
2796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797  (eval $ac_compile) 2>conftest.er1
2798  ac_status=$?
2799  grep -v '^ *+' conftest.er1 >conftest.err
2800  rm -f conftest.er1
2801  cat conftest.err >&5
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); } &&
2804	 { ac_try='test -z "$ac_c_werror_flag"
2805			 || test ! -s conftest.err'
2806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807  (eval $ac_try) 2>&5
2808  ac_status=$?
2809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810  (exit $ac_status); }; } &&
2811	 { ac_try='test -s conftest.$ac_objext'
2812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813  (eval $ac_try) 2>&5
2814  ac_status=$?
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); }; }; then
2817  break
2818else
2819  echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822fi
2823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824done
2825rm -f conftest*
2826if test -n "$ac_declaration"; then
2827  echo '#ifdef __cplusplus' >>confdefs.h
2828  echo $ac_declaration      >>confdefs.h
2829  echo '#endif'             >>confdefs.h
2830fi
2831
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
2838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
2844if test -z "$CC" ; then
2845  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2846echo "$as_me: error: Failed to find a C compiler!" >&2;}
2847   { (exit 1); exit 1; }; }
2848fi
2849# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2850case "$CC" in
2851  clang* ) ;;
2852  cl* | */cl* | CL* | */CL* )
2853    if test "$ac_cv_prog_cc_g" = yes ; then
2854      ac_cv_prog_cc_g=no
2855      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2856echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2857    fi ;;
2858  * )
2859    if test x"$CYGPATH_W" = x ; then
2860      CYGPATH_W=echo
2861    fi
2862    ;;
2863esac
2864CFLAGS="$save_cflags"
2865
2866# add automake conditional so we can recognize cl compiler in makefile
2867coin_cc_is_cl=false
2868case "$CC" in
2869  clang* ) ;;
2870  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2871    coin_cc_is_cl=true
2872    ;;
2873esac
2874
2875
2876if test $coin_cc_is_cl = true; then
2877  COIN_CC_IS_CL_TRUE=
2878  COIN_CC_IS_CL_FALSE='#'
2879else
2880  COIN_CC_IS_CL_TRUE='#'
2881  COIN_CC_IS_CL_FALSE=
2882fi
2883
2884
2885# Check if a project specific CFLAGS variable has been set
2886if test x$COIN_PRJCT != x; then
2887  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2888  if test x$coin_tmp = xset; then
2889    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2890  fi
2891fi
2892
2893if test x"$CFLAGS" = x; then
2894
2895  coin_add_cflags=
2896  coin_opt_cflags=
2897  coin_dbg_cflags=
2898  coin_warn_cflags=
2899
2900  if test "$GCC" = "yes"; then
2901    case "$CC" in
2902      icc* | */icc*)
2903        ;;
2904      *)
2905        coin_opt_cflags="-O3"
2906        coin_add_cflags="-pipe"
2907        coin_dbg_cflags="-g -O0"
2908        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2909    esac
2910  fi
2911  if test -z "$coin_opt_cflags"; then
2912    case $build in
2913      *-cygwin* | *-mingw*)
2914        case "$CC" in
2915          clang* ) ;;
2916          cl* | */cl* | CL* | */CL*)
2917            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2918              coin_opt_cflags='-MD -O2'
2919              coin_dbg_cflags='-MDd'
2920            else
2921              coin_opt_cflags='-MT -O2'
2922              coin_dbg_cflags='-MTd'
2923            fi
2924            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2925            ;;
2926          icl* | */icl* | ICL* | */ICL*)
2927            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2928              coin_opt_cflags='-MD -Ox'
2929              coin_dbg_cflags='-MDd -debug'
2930            else
2931              coin_opt_cflags='-MT -Ox'
2932              coin_dbg_cflags='-MTd -debug'
2933            fi
2934            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2935            ;;
2936        esac
2937        ;;
2938      *-linux-*)
2939        case "$CC" in
2940          icc* | */icc*)
2941            coin_opt_cflags="-O3 -ip -mp1"
2942            coin_add_cflags=""
2943            coin_dbg_cflags="-g"
2944            # Check if -i_dynamic is necessary (for new glibc library)
2945            CFLAGS=
2946            cat >conftest.$ac_ext <<_ACEOF
2947/* confdefs.h.  */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h.  */
2952
2953int
2954main ()
2955{
2956int i=0; i++;
2957  ;
2958  return 0;
2959}
2960_ACEOF
2961rm -f conftest.$ac_objext conftest$ac_exeext
2962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2963  (eval $ac_link) 2>conftest.er1
2964  ac_status=$?
2965  grep -v '^ *+' conftest.er1 >conftest.err
2966  rm -f conftest.er1
2967  cat conftest.err >&5
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); } &&
2970	 { ac_try='test -z "$ac_c_werror_flag"
2971			 || test ! -s conftest.err'
2972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973  (eval $ac_try) 2>&5
2974  ac_status=$?
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); }; } &&
2977	 { ac_try='test -s conftest$ac_exeext'
2978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979  (eval $ac_try) 2>&5
2980  ac_status=$?
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); }; }; then
2983  :
2984else
2985  echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988coin_add_cflags="-i_dynamic $coin_add_cflags"
2989fi
2990rm -f conftest.err conftest.$ac_objext \
2991      conftest$ac_exeext conftest.$ac_ext
2992            ;;
2993          pgcc* | */pgcc*)
2994            coin_opt_cflags="-fast"
2995            coin_add_cflags="-Kieee -pc 64"
2996            coin_dbg_cflags="-g"
2997            ;;
2998        esac
2999        ;;
3000      *-ibm-*)
3001        case "$CC" in
3002          xlc* | */xlc* | mpxlc* | */mpxlc*)
3003            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3004            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3005            coin_dbg_cflags="-g"
3006          ;;
3007        esac
3008        ;;
3009      *-hp-*)
3010        coin_opt_cflags="-O"
3011        coin_add_cflags="-Ae"
3012        coin_dbg_cflags="-g"
3013        ;;
3014      *-*-solaris*)
3015        coin_opt_cflags="-xO4"
3016        coin_dbg_cflags="-g"
3017        ;;
3018      *-sgi-*)
3019        coin_opt_cflags="-O -OPT:Olimit=0"
3020        coin_dbg_cflags="-g"
3021        ;;
3022    esac
3023  fi
3024
3025  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3026    coin_dbg_cflags="-g"
3027  fi
3028
3029  if test -z "$coin_opt_cflags"; then
3030    # Try if -O option works if nothing else is set
3031    CFLAGS="-O"
3032    cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h.  */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h.  */
3038
3039int
3040main ()
3041{
3042int i=0; i++;
3043  ;
3044  return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext conftest$ac_exeext
3048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049  (eval $ac_link) 2>conftest.er1
3050  ac_status=$?
3051  grep -v '^ *+' conftest.er1 >conftest.err
3052  rm -f conftest.er1
3053  cat conftest.err >&5
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); } &&
3056	 { ac_try='test -z "$ac_c_werror_flag"
3057			 || test ! -s conftest.err'
3058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059  (eval $ac_try) 2>&5
3060  ac_status=$?
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); }; } &&
3063	 { ac_try='test -s conftest$ac_exeext'
3064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065  (eval $ac_try) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); }; }; then
3069  coin_opt_cflags="-O"
3070else
3071  echo "$as_me: failed program was:" >&5
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
3074fi
3075rm -f conftest.err conftest.$ac_objext \
3076      conftest$ac_exeext conftest.$ac_ext
3077  fi
3078
3079  # if PM doesn't want the warning messages, take them out
3080  if test x"$coin_skip_warn_cflags" = xyes; then
3081    coin_warn_cflags=
3082  fi
3083
3084  if test x${DBG_CFLAGS+set} != xset; then
3085    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3086  fi
3087  if test x${OPT_CFLAGS+set} != xset; then
3088    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3089  fi
3090
3091  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3092  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3093
3094  if test "$coin_debug_compile" = "true"; then
3095    CFLAGS="$DBG_CFLAGS"
3096  else
3097    CFLAGS="$OPT_CFLAGS"
3098  fi
3099else
3100  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3101  if test x${DBG_CFLAGS+set} != xset; then
3102    DBG_CFLAGS="$CFLAGS"
3103  fi
3104  if test x${OPT_CFLAGS+set} != xset; then
3105    OPT_CFLAGS="$CFLAGS"
3106  fi
3107fi
3108
3109# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3110if test x$COIN_PRJCT != x; then
3111  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3112fi
3113
3114# Try if CFLAGS works
3115save_CFLAGS="$CFLAGS"
3116cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h.  */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h.  */
3122
3123int
3124main ()
3125{
3126int i=0; i++;
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext conftest$ac_exeext
3132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3133  (eval $ac_link) 2>conftest.er1
3134  ac_status=$?
3135  grep -v '^ *+' conftest.er1 >conftest.err
3136  rm -f conftest.er1
3137  cat conftest.err >&5
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); } &&
3140	 { ac_try='test -z "$ac_c_werror_flag"
3141			 || test ! -s conftest.err'
3142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143  (eval $ac_try) 2>&5
3144  ac_status=$?
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }; } &&
3147	 { ac_try='test -s conftest$ac_exeext'
3148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149  (eval $ac_try) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); }; }; then
3153  :
3154else
3155  echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158CFLAGS=
3159fi
3160rm -f conftest.err conftest.$ac_objext \
3161      conftest$ac_exeext conftest.$ac_ext
3162if test -z "$CFLAGS"; then
3163  { 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
3164echo "$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;}
3165  CFLAGS='-O'
3166  cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h.  */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h.  */
3172
3173int
3174main ()
3175{
3176int i=0; i++;
3177  ;
3178  return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext conftest$ac_exeext
3182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3183  (eval $ac_link) 2>conftest.er1
3184  ac_status=$?
3185  grep -v '^ *+' conftest.er1 >conftest.err
3186  rm -f conftest.er1
3187  cat conftest.err >&5
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); } &&
3190	 { ac_try='test -z "$ac_c_werror_flag"
3191			 || test ! -s conftest.err'
3192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193  (eval $ac_try) 2>&5
3194  ac_status=$?
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }; } &&
3197	 { ac_try='test -s conftest$ac_exeext'
3198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199  (eval $ac_try) 2>&5
3200  ac_status=$?
3201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202  (exit $ac_status); }; }; then
3203  :
3204else
3205  echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208CFLAGS=
3209fi
3210rm -f conftest.err conftest.$ac_objext \
3211      conftest$ac_exeext conftest.$ac_ext
3212  if test -z "$CFLAGS"; then
3213    { 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
3214echo "$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;}
3215  fi
3216fi
3217
3218{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3219echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3220
3221
3222if test x"$MPICC" = x; then :; else
3223  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3224echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3225  CC="$MPICC"
3226fi
3227
3228# Correct the LD variable if we are using the MS or Intel-windows compiler
3229case "$CC" in
3230  clang* ) ;;
3231  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3232    LD=link
3233    ;;
3234esac
3235
3236ac_ext=c
3237ac_cpp='$CPP $CPPFLAGS'
3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242
3243
3244 #Let's try if that overcomes configuration problem with VC++ 6.0
3245
3246ac_ext=cc
3247ac_cpp='$CXXCPP $CPPFLAGS'
3248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3251
3252
3253
3254
3255
3256
3257
3258coin_has_cxx=yes
3259
3260save_cxxflags="$CXXFLAGS"
3261# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3262case $build in
3263  *-cygwin* | *-mingw*)
3264      if test "$enable_msvc" = yes ; then
3265         comps="icl cl g++"
3266      else
3267         comps="g++ icl cl"
3268      fi ;;
3269  *-*-solaris*)
3270  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3271  *-darwin*) comps="clang++ g++ c++ CC" ;;
3272  *-linux-gnu*)
3273             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3274          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3275esac
3276
3277# We delete the cached value, since the test might not have been
3278# performed with our choice of compilers earlier
3279$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3280# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3281ac_ext=cc
3282ac_cpp='$CXXCPP $CPPFLAGS'
3283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3286if test -n "$ac_tool_prefix"; then
3287  for ac_prog in $CCC $comps
3288  do
3289    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3291echo "$as_me:$LINENO: checking for $ac_word" >&5
3292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293if test "${ac_cv_prog_CXX+set}" = set; then
3294  echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296  if test -n "$CXX"; then
3297  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304  for ac_exec_ext in '' $ac_executable_extensions; do
3305  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308    break 2
3309  fi
3310done
3311done
3312
3313fi
3314fi
3315CXX=$ac_cv_prog_CXX
3316if test -n "$CXX"; then
3317  echo "$as_me:$LINENO: result: $CXX" >&5
3318echo "${ECHO_T}$CXX" >&6
3319else
3320  echo "$as_me:$LINENO: result: no" >&5
3321echo "${ECHO_T}no" >&6
3322fi
3323
3324    test -n "$CXX" && break
3325  done
3326fi
3327if test -z "$CXX"; then
3328  ac_ct_CXX=$CXX
3329  for ac_prog in $CCC $comps
3330do
3331  # Extract the first word of "$ac_prog", so it can be a program name with args.
3332set dummy $ac_prog; ac_word=$2
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3336  echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338  if test -n "$ac_ct_CXX"; then
3339  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346  for ac_exec_ext in '' $ac_executable_extensions; do
3347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348    ac_cv_prog_ac_ct_CXX="$ac_prog"
3349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350    break 2
3351  fi
3352done
3353done
3354
3355fi
3356fi
3357ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3358if test -n "$ac_ct_CXX"; then
3359  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3360echo "${ECHO_T}$ac_ct_CXX" >&6
3361else
3362  echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi
3365
3366  test -n "$ac_ct_CXX" && break
3367done
3368test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3369
3370  CXX=$ac_ct_CXX
3371fi
3372
3373
3374# Provide some information about the compiler.
3375echo "$as_me:$LINENO:" \
3376     "checking for C++ compiler version" >&5
3377ac_compiler=`set X $ac_compile; echo $2`
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3379  (eval $ac_compiler --version </dev/null >&5) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3384  (eval $ac_compiler -v </dev/null >&5) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }
3388{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3389  (eval $ac_compiler -V </dev/null >&5) 2>&5
3390  ac_status=$?
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }
3393
3394echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3395echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3396if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3397  echo $ECHO_N "(cached) $ECHO_C" >&6
3398else
3399  cat >conftest.$ac_ext <<_ACEOF
3400/* confdefs.h.  */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409#ifndef __GNUC__
3410       choke me
3411#endif
3412
3413  ;
3414  return 0;
3415}
3416_ACEOF
3417rm -f conftest.$ac_objext
3418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419  (eval $ac_compile) 2>conftest.er1
3420  ac_status=$?
3421  grep -v '^ *+' conftest.er1 >conftest.err
3422  rm -f conftest.er1
3423  cat conftest.err >&5
3424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425  (exit $ac_status); } &&
3426	 { ac_try='test -z "$ac_cxx_werror_flag"
3427			 || test ! -s conftest.err'
3428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429  (eval $ac_try) 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }; } &&
3433	 { ac_try='test -s conftest.$ac_objext'
3434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435  (eval $ac_try) 2>&5
3436  ac_status=$?
3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); }; }; then
3439  ac_compiler_gnu=yes
3440else
3441  echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
3444ac_compiler_gnu=no
3445fi
3446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3447ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3448
3449fi
3450echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3451echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3452GXX=`test $ac_compiler_gnu = yes && echo yes`
3453ac_test_CXXFLAGS=${CXXFLAGS+set}
3454ac_save_CXXFLAGS=$CXXFLAGS
3455CXXFLAGS="-g"
3456echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3457echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3458if test "${ac_cv_prog_cxx_g+set}" = set; then
3459  echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461  cat >conftest.$ac_ext <<_ACEOF
3462/* confdefs.h.  */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h.  */
3467
3468int
3469main ()
3470{
3471
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476rm -f conftest.$ac_objext
3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478  (eval $ac_compile) 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } &&
3485	 { ac_try='test -z "$ac_cxx_werror_flag"
3486			 || test ! -s conftest.err'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; } &&
3492	 { ac_try='test -s conftest.$ac_objext'
3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494  (eval $ac_try) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; }; then
3498  ac_cv_prog_cxx_g=yes
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_cv_prog_cxx_g=no
3504fi
3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506fi
3507echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3508echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3509if test "$ac_test_CXXFLAGS" = set; then
3510  CXXFLAGS=$ac_save_CXXFLAGS
3511elif test $ac_cv_prog_cxx_g = yes; then
3512  if test "$GXX" = yes; then
3513    CXXFLAGS="-g -O2"
3514  else
3515    CXXFLAGS="-g"
3516  fi
3517else
3518  if test "$GXX" = yes; then
3519    CXXFLAGS="-O2"
3520  else
3521    CXXFLAGS=
3522  fi
3523fi
3524for ac_declaration in \
3525   '' \
3526   'extern "C" void std::exit (int) throw (); using std::exit;' \
3527   'extern "C" void std::exit (int); using std::exit;' \
3528   'extern "C" void exit (int) throw ();' \
3529   'extern "C" void exit (int);' \
3530   'void exit (int);'
3531do
3532  cat >conftest.$ac_ext <<_ACEOF
3533/* confdefs.h.  */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
3537/* end confdefs.h.  */
3538$ac_declaration
3539#include <stdlib.h>
3540int
3541main ()
3542{
3543exit (42);
3544  ;
3545  return 0;
3546}
3547_ACEOF
3548rm -f conftest.$ac_objext
3549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550  (eval $ac_compile) 2>conftest.er1
3551  ac_status=$?
3552  grep -v '^ *+' conftest.er1 >conftest.err
3553  rm -f conftest.er1
3554  cat conftest.err >&5
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); } &&
3557	 { ac_try='test -z "$ac_cxx_werror_flag"
3558			 || test ! -s conftest.err'
3559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560  (eval $ac_try) 2>&5
3561  ac_status=$?
3562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563  (exit $ac_status); }; } &&
3564	 { ac_try='test -s conftest.$ac_objext'
3565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566  (eval $ac_try) 2>&5
3567  ac_status=$?
3568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); }; }; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575continue
3576fi
3577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578  cat >conftest.$ac_ext <<_ACEOF
3579/* confdefs.h.  */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h.  */
3584$ac_declaration
3585int
3586main ()
3587{
3588exit (42);
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593rm -f conftest.$ac_objext
3594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595  (eval $ac_compile) 2>conftest.er1
3596  ac_status=$?
3597  grep -v '^ *+' conftest.er1 >conftest.err
3598  rm -f conftest.er1
3599  cat conftest.err >&5
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); } &&
3602	 { ac_try='test -z "$ac_cxx_werror_flag"
3603			 || test ! -s conftest.err'
3604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605  (eval $ac_try) 2>&5
3606  ac_status=$?
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); }; } &&
3609	 { ac_try='test -s conftest.$ac_objext'
3610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611  (eval $ac_try) 2>&5
3612  ac_status=$?
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); }; }; then
3615  break
3616else
3617  echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620fi
3621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622done
3623rm -f conftest*
3624if test -n "$ac_declaration"; then
3625  echo '#ifdef __cplusplus' >>confdefs.h
3626  echo $ac_declaration      >>confdefs.h
3627  echo '#endif'             >>confdefs.h
3628fi
3629
3630ac_ext=cc
3631ac_cpp='$CXXCPP $CPPFLAGS'
3632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3635
3636
3637#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3638#thus, we test here whether $CXX is actually working
3639ac_ext=cc
3640ac_cpp='$CXXCPP $CPPFLAGS'
3641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3644
3645echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3646echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3647cat >conftest.$ac_ext <<_ACEOF
3648/* confdefs.h.  */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657int i=0;
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext
3663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664  (eval $ac_compile) 2>conftest.er1
3665  ac_status=$?
3666  grep -v '^ *+' conftest.er1 >conftest.err
3667  rm -f conftest.er1
3668  cat conftest.err >&5
3669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670  (exit $ac_status); } &&
3671	 { ac_try='test -z "$ac_cxx_werror_flag"
3672			 || test ! -s conftest.err'
3673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674  (eval $ac_try) 2>&5
3675  ac_status=$?
3676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); }; } &&
3678	 { ac_try='test -s conftest.$ac_objext'
3679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680  (eval $ac_try) 2>&5
3681  ac_status=$?
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); }; }; then
3684  echo "$as_me:$LINENO: result: yes" >&5
3685echo "${ECHO_T}yes" >&6
3686else
3687  echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690echo "$as_me:$LINENO: result: no" >&5
3691echo "${ECHO_T}no" >&6
3692   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3693echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3694   { (exit 1); exit 1; }; }
3695
3696fi
3697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3698ac_ext=cc
3699ac_cpp='$CXXCPP $CPPFLAGS'
3700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3703
3704
3705coin_cxx_is_cl=false
3706# It seems that we need to cleanup something here for the Windows
3707case "$CXX" in
3708  clang* | */clang*) ;;
3709  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3710    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3711    mv confdefs.hh confdefs.h
3712    coin_cxx_is_cl=true
3713    ;;
3714esac
3715
3716# add automake conditional so we can recognize cl compiler in makefile
3717
3718
3719if test $coin_cxx_is_cl = true; then
3720  COIN_CXX_IS_CL_TRUE=
3721  COIN_CXX_IS_CL_FALSE='#'
3722else
3723  COIN_CXX_IS_CL_TRUE='#'
3724  COIN_CXX_IS_CL_FALSE=
3725fi
3726
3727
3728# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3729case "$CXX" in
3730  clang* ) ;;
3731  cl* | */cl* | CL* | */CL* )
3732    if test "$ac_cv_prog_cxx_g" = yes ; then
3733      ac_cv_prog_cxx_g=no
3734      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3735echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3736    fi ;;
3737  * )
3738    if test x"$CYGPATH_W" = x ; then
3739      CYGPATH_W=echo
3740    fi
3741    ;;
3742esac
3743CXXFLAGS="$save_cxxflags"
3744
3745# Check if a project specific CXXFLAGS variable has been set
3746if test x$COIN_PRJCT != x; then
3747  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3748  if test x$coin_tmp = xset; then
3749    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3750  fi
3751fi
3752
3753if test x"$CXXFLAGS" = x; then
3754
3755# ToDo decide whether we want -DNDEBUG for optimization
3756  coin_add_cxxflags=
3757  coin_opt_cxxflags=
3758  coin_dbg_cxxflags=
3759  coin_warn_cxxflags=
3760
3761  if test "$GXX" = "yes"; then
3762    case "$CXX" in
3763      icpc* | */icpc*)
3764        ;;
3765      *)
3766# ToDo decide about unroll-loops
3767        coin_opt_cxxflags="-O3"
3768        coin_add_cxxflags="-pipe"
3769        coin_dbg_cxxflags="-g -O0"
3770        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3771    esac
3772  fi
3773
3774# Note that we do not need to cover GCC in the following tests.
3775
3776  if test -z "$coin_opt_cxxflags"; then
3777    case $build in
3778      *-cygwin* | *-mingw*)
3779        case "$CXX" in
3780          clang* ) ;;
3781          cl* | */cl* | CL* | */CL*)
3782            # The MT and MTd options are mutually exclusive
3783            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3784               coin_opt_cxxflags='-MD -O2'
3785               coin_dbg_cxxflags='-MDd'
3786            else
3787               coin_opt_cxxflags='-MT -O2'
3788               coin_dbg_cxxflags='-MTd'
3789            fi
3790            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3791            ;;
3792          icl* | */icl* | ICL* | */ICL*)
3793          # The MT and MTd options are mutually exclusive
3794            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3795              coin_opt_cxxflags='-MD -Ox'
3796              coin_dbg_cxxflags='-MDd -debug'
3797            else
3798              coin_opt_cxxflags='-MT -Ox'
3799              coin_dbg_cxxflags='-MTd -debug'
3800            fi
3801            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3802            ;;
3803        esac
3804        ;;
3805      *-linux-*)
3806        case "$CXX" in
3807          icpc* | */icpc*)
3808            coin_opt_cxxflags="-O3 -ip -mp1"
3809            coin_add_cxxflags=""
3810            coin_dbg_cxxflags="-g"
3811            # Check if -i_dynamic is necessary (for new glibc library)
3812            CXXFLAGS=
3813            cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h.  */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
3818/* end confdefs.h.  */
3819
3820int
3821main ()
3822{
3823int i=0; i++;
3824  ;
3825  return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext conftest$ac_exeext
3829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830  (eval $ac_link) 2>conftest.er1
3831  ac_status=$?
3832  grep -v '^ *+' conftest.er1 >conftest.err
3833  rm -f conftest.er1
3834  cat conftest.err >&5
3835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836  (exit $ac_status); } &&
3837	 { ac_try='test -z "$ac_cxx_werror_flag"
3838			 || test ! -s conftest.err'
3839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840  (eval $ac_try) 2>&5
3841  ac_status=$?
3842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843  (exit $ac_status); }; } &&
3844	 { ac_try='test -s conftest$ac_exeext'
3845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846  (eval $ac_try) 2>&5
3847  ac_status=$?
3848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849  (exit $ac_status); }; }; then
3850  :
3851else
3852  echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3856fi
3857rm -f conftest.err conftest.$ac_objext \
3858      conftest$ac_exeext conftest.$ac_ext
3859            ;;
3860          pgCC* | */pgCC*)
3861            coin_opt_cxxflags="-fast"
3862            coin_add_cxxflags="-Kieee -pc 64"
3863            coin_dbg_cxxflags="-g"
3864            ;;
3865        esac
3866        ;;
3867      *-ibm-*)
3868        case "$CXX" in
3869          xlC* | */xlC* | mpxlC* | */mpxlC*)
3870            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3871            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3872            coin_dbg_cxxflags="-g"
3873            ;;
3874        esac
3875        ;;
3876      *-hp-*)
3877        case "$CXX" in
3878          aCC* | */aCC* )
3879            coin_opt_cxxflags="-O"
3880            coin_add_cxxflags="-AA"
3881            coin_dbg_cxxflags="-g"
3882            ;;
3883        esac
3884        ;;
3885      *-*-solaris*)
3886          coin_opt_cxxflags="-O4"
3887          coin_dbg_cxxflags="-g"
3888        ;;
3889    esac
3890  fi
3891
3892# Generic flag settings. If these don't work, add a case above.
3893
3894  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3895    coin_dbg_cxxflags="-g"
3896  fi
3897
3898  if test -z "$coin_opt_cxxflags"; then
3899    # Try if -O option works if nothing else is set
3900    CXXFLAGS=-O
3901    cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h.  */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h.  */
3907
3908int
3909main ()
3910{
3911int i=0; i++;
3912  ;
3913  return 0;
3914}
3915_ACEOF
3916rm -f conftest.$ac_objext conftest$ac_exeext
3917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918  (eval $ac_link) 2>conftest.er1
3919  ac_status=$?
3920  grep -v '^ *+' conftest.er1 >conftest.err
3921  rm -f conftest.er1
3922  cat conftest.err >&5
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); } &&
3925	 { ac_try='test -z "$ac_cxx_werror_flag"
3926			 || test ! -s conftest.err'
3927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928  (eval $ac_try) 2>&5
3929  ac_status=$?
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); }; } &&
3932	 { ac_try='test -s conftest$ac_exeext'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; }; then
3938  coin_opt_cxxflags="-O"
3939else
3940  echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943fi
3944rm -f conftest.err conftest.$ac_objext \
3945      conftest$ac_exeext conftest.$ac_ext
3946  fi
3947
3948  # if PM doesn't want the warning messages, take them out
3949  if test x"$coin_skip_warn_cxxflags" = xyes; then
3950    coin_warn_cxxflags=
3951  fi
3952
3953# Do final setup of flags based on values determined above.
3954
3955  if test x${DBG_CXXFLAGS+set} != xset; then
3956    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3957  fi
3958  if test x${OPT_CXXFLAGS+set} != xset; then
3959    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3960  fi
3961
3962  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3963  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3964
3965  if test "$coin_debug_compile" = "true"; then
3966    CXXFLAGS="$DBG_CXXFLAGS"
3967  else
3968    CXXFLAGS="$OPT_CXXFLAGS"
3969  fi
3970
3971# Handle the case where CXXFLAGS was set externally.
3972else
3973  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3974  if test x${DBG_CXXFLAGS+set} != xset; then
3975    DBG_CXXFLAGS="$CXXFLAGS"
3976  fi
3977  if test x${OPT_CXXFLAGS+set} != xset; then
3978    OPT_CXXFLAGS="$CXXFLAGS"
3979  fi
3980fi
3981
3982# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3983if test x$COIN_PRJCT != x; then
3984  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3985fi
3986
3987# Try if CXXFLAGS works
3988save_CXXFLAGS="$CXXFLAGS"
3989cat >conftest.$ac_ext <<_ACEOF
3990/* confdefs.h.  */
3991_ACEOF
3992cat confdefs.h >>conftest.$ac_ext
3993cat >>conftest.$ac_ext <<_ACEOF
3994/* end confdefs.h.  */
3995
3996int
3997main ()
3998{
3999int i=0; i++;
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004rm -f conftest.$ac_objext conftest$ac_exeext
4005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006  (eval $ac_link) 2>conftest.er1
4007  ac_status=$?
4008  grep -v '^ *+' conftest.er1 >conftest.err
4009  rm -f conftest.er1
4010  cat conftest.err >&5
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); } &&
4013	 { ac_try='test -z "$ac_cxx_werror_flag"
4014			 || test ! -s conftest.err'
4015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016  (eval $ac_try) 2>&5
4017  ac_status=$?
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); }; } &&
4020	 { ac_try='test -s conftest$ac_exeext'
4021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; }; then
4026  :
4027else
4028  echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031CXXFLAGS=
4032fi
4033rm -f conftest.err conftest.$ac_objext \
4034      conftest$ac_exeext conftest.$ac_ext
4035if test -z "$CXXFLAGS"; then
4036  { 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
4037echo "$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;}
4038  CXXFLAGS='-O'
4039  cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h.  */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h.  */
4045
4046int
4047main ()
4048{
4049int i=0; i++;
4050  ;
4051  return 0;
4052}
4053_ACEOF
4054rm -f conftest.$ac_objext conftest$ac_exeext
4055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4056  (eval $ac_link) 2>conftest.er1
4057  ac_status=$?
4058  grep -v '^ *+' conftest.er1 >conftest.err
4059  rm -f conftest.er1
4060  cat conftest.err >&5
4061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062  (exit $ac_status); } &&
4063	 { ac_try='test -z "$ac_cxx_werror_flag"
4064			 || test ! -s conftest.err'
4065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066  (eval $ac_try) 2>&5
4067  ac_status=$?
4068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069  (exit $ac_status); }; } &&
4070	 { ac_try='test -s conftest$ac_exeext'
4071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072  (eval $ac_try) 2>&5
4073  ac_status=$?
4074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075  (exit $ac_status); }; }; then
4076  :
4077else
4078  echo "$as_me: failed program was:" >&5
4079sed 's/^/| /' conftest.$ac_ext >&5
4080
4081CXXFLAGS=
4082fi
4083rm -f conftest.err conftest.$ac_objext \
4084      conftest$ac_exeext conftest.$ac_ext
4085  if test -z "$CXXFLAGS"; then
4086    { 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
4087echo "$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;}
4088  fi
4089fi
4090
4091{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4092echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4093
4094
4095if test x"$MPICXX" = x; then :; else
4096  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4097echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4098  CXX="$MPICXX"
4099fi
4100
4101# correct the LD variable in a build with MS or Intel-windows compiler
4102case "$CXX" in
4103  clang* ) ;;
4104  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4105    LD=link
4106    ;;
4107esac
4108
4109ac_ext=c
4110ac_cpp='$CPP $CPPFLAGS'
4111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114
4115
4116
4117# Get the name of the Fortran compiler and appropriate compiler options
4118case $build in
4119  *-cygwin* | *-mingw*)
4120     if test "$enable_msvc" = yes ; then
4121       coin_f77_comps="ifort fl32 compile_f2c"
4122     else
4123       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4124     fi ;;
4125  *-*-solaris*)
4126     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4127  *-linux-gnu*)
4128     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4129  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4130 esac
4131
4132
4133
4134
4135
4136ac_ext=f
4137ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4138ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4140
4141
4142
4143
4144
4145
4146coin_has_f77=yes
4147
4148save_fflags="$FFLAGS"
4149
4150# We delete the cached value, since the test might not have been
4151# performed with our choice of compilers earlier
4152$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4153
4154# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4155# coin_f77_comps to see if there's a program that matches one of the names.
4156# If there's no such program, F77 = unavailable. If we match the name,
4157# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4158# compiler.
4159# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4160
4161
4162{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4163echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4164if test -n "$ac_tool_prefix"; then
4165  for ac_prog in $coin_f77_comps
4166  do
4167    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4169echo "$as_me:$LINENO: checking for $ac_word" >&5
4170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4171if test "${ac_cv_prog_F77+set}" = set; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174  if test -n "$F77"; then
4175  ac_cv_prog_F77="$F77" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180  IFS=$as_save_IFS
4181  test -z "$as_dir" && as_dir=.
4182  for ac_exec_ext in '' $ac_executable_extensions; do
4183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186    break 2
4187  fi
4188done
4189done
4190
4191fi
4192fi
4193F77=$ac_cv_prog_F77
4194if test -n "$F77"; then
4195  echo "$as_me:$LINENO: result: $F77" >&5
4196echo "${ECHO_T}$F77" >&6
4197else
4198  echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200fi
4201
4202    test -n "$F77" && break
4203  done
4204fi
4205if test -z "$F77"; then
4206  ac_ct_F77=$F77
4207  for ac_prog in $coin_f77_comps
4208do
4209  # Extract the first word of "$ac_prog", so it can be a program name with args.
4210set dummy $ac_prog; ac_word=$2
4211echo "$as_me:$LINENO: checking for $ac_word" >&5
4212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4213if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4214  echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216  if test -n "$ac_ct_F77"; then
4217  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4218else
4219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222  IFS=$as_save_IFS
4223  test -z "$as_dir" && as_dir=.
4224  for ac_exec_ext in '' $ac_executable_extensions; do
4225  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226    ac_cv_prog_ac_ct_F77="$ac_prog"
4227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231done
4232
4233fi
4234fi
4235ac_ct_F77=$ac_cv_prog_ac_ct_F77
4236if test -n "$ac_ct_F77"; then
4237  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4238echo "${ECHO_T}$ac_ct_F77" >&6
4239else
4240  echo "$as_me:$LINENO: result: no" >&5
4241echo "${ECHO_T}no" >&6
4242fi
4243
4244  test -n "$ac_ct_F77" && break
4245done
4246test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4247
4248  F77=$ac_ct_F77
4249fi
4250
4251
4252if test "$F77" != "unavailable" ; then
4253  ac_ext=f
4254ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4255ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4257if test -n "$ac_tool_prefix"; then
4258  for ac_prog in $coin_f77_comps
4259  do
4260    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264if test "${ac_cv_prog_F77+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  if test -n "$F77"; then
4268  ac_cv_prog_F77="$F77" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273  IFS=$as_save_IFS
4274  test -z "$as_dir" && as_dir=.
4275  for ac_exec_ext in '' $ac_executable_extensions; do
4276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279    break 2
4280  fi
4281done
4282done
4283
4284fi
4285fi
4286F77=$ac_cv_prog_F77
4287if test -n "$F77"; then
4288  echo "$as_me:$LINENO: result: $F77" >&5
4289echo "${ECHO_T}$F77" >&6
4290else
4291  echo "$as_me:$LINENO: result: no" >&5
4292echo "${ECHO_T}no" >&6
4293fi
4294
4295    test -n "$F77" && break
4296  done
4297fi
4298if test -z "$F77"; then
4299  ac_ct_F77=$F77
4300  for ac_prog in $coin_f77_comps
4301do
4302  # Extract the first word of "$ac_prog", so it can be a program name with args.
4303set dummy $ac_prog; ac_word=$2
4304echo "$as_me:$LINENO: checking for $ac_word" >&5
4305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4307  echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309  if test -n "$ac_ct_F77"; then
4310  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315  IFS=$as_save_IFS
4316  test -z "$as_dir" && as_dir=.
4317  for ac_exec_ext in '' $ac_executable_extensions; do
4318  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319    ac_cv_prog_ac_ct_F77="$ac_prog"
4320    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321    break 2
4322  fi
4323done
4324done
4325
4326fi
4327fi
4328ac_ct_F77=$ac_cv_prog_ac_ct_F77
4329if test -n "$ac_ct_F77"; then
4330  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4331echo "${ECHO_T}$ac_ct_F77" >&6
4332else
4333  echo "$as_me:$LINENO: result: no" >&5
4334echo "${ECHO_T}no" >&6
4335fi
4336
4337  test -n "$ac_ct_F77" && break
4338done
4339
4340  F77=$ac_ct_F77
4341fi
4342
4343
4344# Provide some information about the compiler.
4345echo "$as_me:4345:" \
4346     "checking for Fortran 77 compiler version" >&5
4347ac_compiler=`set X $ac_compile; echo $2`
4348{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4349  (eval $ac_compiler --version </dev/null >&5) 2>&5
4350  ac_status=$?
4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352  (exit $ac_status); }
4353{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4354  (eval $ac_compiler -v </dev/null >&5) 2>&5
4355  ac_status=$?
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); }
4358{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4359  (eval $ac_compiler -V </dev/null >&5) 2>&5
4360  ac_status=$?
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); }
4363rm -f a.out
4364
4365# If we don't use `.F' as extension, the preprocessor is not run on the
4366# input file.  (Note that this only needs to work for GNU compilers.)
4367ac_save_ext=$ac_ext
4368ac_ext=F
4369echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4370echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4371if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4372  echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374  cat >conftest.$ac_ext <<_ACEOF
4375      program main
4376#ifndef __GNUC__
4377       choke me
4378#endif
4379
4380      end
4381_ACEOF
4382rm -f conftest.$ac_objext
4383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384  (eval $ac_compile) 2>conftest.er1
4385  ac_status=$?
4386  grep -v '^ *+' conftest.er1 >conftest.err
4387  rm -f conftest.er1
4388  cat conftest.err >&5
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); } &&
4391	 { ac_try='test -z "$ac_f77_werror_flag"
4392			 || test ! -s conftest.err'
4393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394  (eval $ac_try) 2>&5
4395  ac_status=$?
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); }; } &&
4398	 { ac_try='test -s conftest.$ac_objext'
4399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400  (eval $ac_try) 2>&5
4401  ac_status=$?
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); }; }; then
4404  ac_compiler_gnu=yes
4405else
4406  echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409ac_compiler_gnu=no
4410fi
4411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4412ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4413
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4416echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4417ac_ext=$ac_save_ext
4418ac_test_FFLAGS=${FFLAGS+set}
4419ac_save_FFLAGS=$FFLAGS
4420FFLAGS=
4421echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4422echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4423if test "${ac_cv_prog_f77_g+set}" = set; then
4424  echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426  FFLAGS=-g
4427cat >conftest.$ac_ext <<_ACEOF
4428      program main
4429
4430      end
4431_ACEOF
4432rm -f conftest.$ac_objext
4433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434  (eval $ac_compile) 2>conftest.er1
4435  ac_status=$?
4436  grep -v '^ *+' conftest.er1 >conftest.err
4437  rm -f conftest.er1
4438  cat conftest.err >&5
4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440  (exit $ac_status); } &&
4441	 { ac_try='test -z "$ac_f77_werror_flag"
4442			 || test ! -s conftest.err'
4443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444  (eval $ac_try) 2>&5
4445  ac_status=$?
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); }; } &&
4448	 { ac_try='test -s conftest.$ac_objext'
4449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450  (eval $ac_try) 2>&5
4451  ac_status=$?
4452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453  (exit $ac_status); }; }; then
4454  ac_cv_prog_f77_g=yes
4455else
4456  echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4458
4459ac_cv_prog_f77_g=no
4460fi
4461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
4463fi
4464echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4465echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4466if test "$ac_test_FFLAGS" = set; then
4467  FFLAGS=$ac_save_FFLAGS
4468elif test $ac_cv_prog_f77_g = yes; then
4469  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4470    FFLAGS="-g -O2"
4471  else
4472    FFLAGS="-g"
4473  fi
4474else
4475  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4476    FFLAGS="-O2"
4477  else
4478    FFLAGS=
4479  fi
4480fi
4481
4482G77=`test $ac_compiler_gnu = yes && echo yes`
4483ac_ext=f
4484ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4485ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4487
4488else
4489  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4490echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4491fi
4492
4493FFLAGS="$save_fflags"
4494
4495# Check if a project specific FFLAGS variable has been set
4496if test x$COIN_PRJCT != x; then
4497  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4498  if test x$coin_tmp = xset; then
4499    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4500  fi
4501fi
4502
4503if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4504
4505  coin_add_fflags=
4506  coin_opt_fflags=
4507  coin_dbg_fflags=
4508  coin_warn_fflags=
4509
4510  if test "$G77" = "yes"; then
4511    coin_opt_fflags="-O3"
4512    coin_add_fflags="-pipe"
4513    coin_dbg_fflags="-g -O0"
4514  else
4515    case $build in
4516      *-cygwin* | *-mingw*)
4517        case $F77 in
4518          ifort* | */ifort* | IFORT* | */IFORT* )
4519            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4520              coin_opt_fflags='-MD -O3'
4521              coin_dbg_fflags='-MDd -debug'
4522            else
4523              coin_opt_fflags='-MT -O3'
4524              coin_dbg_fflags='-MTd -debug'
4525            fi
4526            coin_add_fflags='-fpp -nologo'
4527          ;;
4528          compile_f2c*)
4529            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4530              coin_opt_fflags='-MD -O2'
4531              coin_dbg_fflags='-MDd'
4532            else
4533              coin_opt_fflags='-MT -O2'
4534              coin_dbg_fflags='-MTd'
4535            fi
4536            coin_add_fflags='-nologo -wd4996'
4537          ;;
4538        esac
4539        ;;
4540      *-linux-*)
4541        case $F77 in
4542          ifc* | */ifc* | ifort* | */ifort*)
4543            coin_opt_fflags="-O3 -ip"
4544            coin_add_fflags="-cm -w90 -w95"
4545            coin_dbg_fflags="-g -CA -CB -CS"
4546            # Check if -i_dynamic is necessary (for new glibc library)
4547            FFLAGS=
4548            cat >conftest.$ac_ext <<_ACEOF
4549      program main
4550      write(*,*) 'Hello world'
4551      end
4552_ACEOF
4553rm -f conftest.$ac_objext conftest$ac_exeext
4554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555  (eval $ac_link) 2>conftest.er1
4556  ac_status=$?
4557  grep -v '^ *+' conftest.er1 >conftest.err
4558  rm -f conftest.er1
4559  cat conftest.err >&5
4560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561  (exit $ac_status); } &&
4562	 { ac_try='test -z "$ac_f77_werror_flag"
4563			 || test ! -s conftest.err'
4564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565  (eval $ac_try) 2>&5
4566  ac_status=$?
4567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568  (exit $ac_status); }; } &&
4569	 { ac_try='test -s conftest$ac_exeext'
4570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571  (eval $ac_try) 2>&5
4572  ac_status=$?
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); }; }; then
4575  :
4576else
4577  echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
4580coin_add_fflags="-i_dynamic $coin_add_fflags"
4581fi
4582rm -f conftest.err conftest.$ac_objext \
4583      conftest$ac_exeext conftest.$ac_ext
4584            ;;
4585          pgf77* | */pgf77* | pgf90* | */pgf90*)
4586            coin_opt_fflags="-fast"
4587            coin_add_fflags="-Kieee -pc 64"
4588            coin_dbg_fflags="-g"
4589          ;;
4590        esac
4591        ;;
4592      *-ibm-*)
4593        case "$F77" in
4594          xlf* | */xlf* | mpxlf* | */mpxlf* )
4595            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4596            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4597            coin_dbg_fflags="-g -C"
4598            ;;
4599        esac
4600        ;;
4601      *-hp-*)
4602        coin_opt_fflags="+O3"
4603        coin_add_fflags="+U77"
4604        coin_dbg_fflags="-C -g"
4605        ;;
4606      *-*-solaris*)
4607        coin_opt_fflags="-O4"
4608        coin_dbg_fflags="-g"
4609        ;;
4610      *-sgi-*)
4611        coin_opt_fflags="-O5 -OPT:Olimit=0"
4612        coin_dbg_fflags="-g"
4613        ;;
4614    esac
4615  fi
4616
4617  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4618    coin_dbg_fflags="-g"
4619  fi
4620
4621  if test -z "$coin_opt_fflags"; then
4622    # Try if -O option works if nothing else is set
4623    FFLAGS=-O
4624    cat >conftest.$ac_ext <<_ACEOF
4625      program main
4626      integer i
4627      end
4628_ACEOF
4629rm -f conftest.$ac_objext conftest$ac_exeext
4630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4631  (eval $ac_link) 2>conftest.er1
4632  ac_status=$?
4633  grep -v '^ *+' conftest.er1 >conftest.err
4634  rm -f conftest.er1
4635  cat conftest.err >&5
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); } &&
4638	 { ac_try='test -z "$ac_f77_werror_flag"
4639			 || test ! -s conftest.err'
4640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641  (eval $ac_try) 2>&5
4642  ac_status=$?
4643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); }; } &&
4645	 { ac_try='test -s conftest$ac_exeext'
4646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647  (eval $ac_try) 2>&5
4648  ac_status=$?
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); }; }; then
4651  coin_opt_fflags="-O"
4652else
4653  echo "$as_me: failed program was:" >&5
4654sed 's/^/| /' conftest.$ac_ext >&5
4655
4656fi
4657rm -f conftest.err conftest.$ac_objext \
4658      conftest$ac_exeext conftest.$ac_ext
4659  fi
4660
4661  # if PM doesn't want the warning messages, take them out
4662  if test x"$coin_skip_warn_fflags" = xyes; then
4663    coin_warn_fflags=
4664  fi
4665
4666  if test x${DBG_FFLAGS+set} != xset; then
4667    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4668  fi
4669  if test x${OPT_FFLAGS+set} != xset; then
4670    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4671  fi
4672
4673  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4674  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4675
4676  if test "$coin_debug_compile" = "true"; then
4677    FFLAGS="$DBG_FFLAGS"
4678  else
4679    FFLAGS="$OPT_FFLAGS"
4680  fi
4681else
4682  FFLAGS="$FFLAGS $ADD_FFLAGS"
4683  if test x${DBG_FFLAGS+set} != xset; then
4684    DBG_FFLAGS="$FFLAGS"
4685  fi
4686  if test x${OPT_FFLAGS+set} != xset; then
4687    OPT_FFLAGS="$FFLAGS"
4688  fi
4689fi
4690
4691# Try if FFLAGS works
4692if test "$F77" != "unavailable" ; then
4693  orig_FFLAGS="FFLAGS"
4694  cat >conftest.$ac_ext <<_ACEOF
4695      program main
4696      integer i
4697      end
4698_ACEOF
4699rm -f conftest.$ac_objext conftest$ac_exeext
4700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701  (eval $ac_link) 2>conftest.er1
4702  ac_status=$?
4703  grep -v '^ *+' conftest.er1 >conftest.err
4704  rm -f conftest.er1
4705  cat conftest.err >&5
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); } &&
4708	 { ac_try='test -z "$ac_f77_werror_flag"
4709			 || test ! -s conftest.err'
4710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711  (eval $ac_try) 2>&5
4712  ac_status=$?
4713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714  (exit $ac_status); }; } &&
4715	 { ac_try='test -s conftest$ac_exeext'
4716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717  (eval $ac_try) 2>&5
4718  ac_status=$?
4719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720  (exit $ac_status); }; }; then
4721  :
4722else
4723  echo "$as_me: failed program was:" >&5
4724sed 's/^/| /' conftest.$ac_ext >&5
4725
4726FFLAGS=
4727fi
4728rm -f conftest.err conftest.$ac_objext \
4729      conftest$ac_exeext conftest.$ac_ext
4730  if test -z "$FFLAGS"; then
4731    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4732echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4733    FFLAGS='-O'
4734    cat >conftest.$ac_ext <<_ACEOF
4735      program main
4736      integer i
4737      end
4738_ACEOF
4739rm -f conftest.$ac_objext conftest$ac_exeext
4740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4741  (eval $ac_link) 2>conftest.er1
4742  ac_status=$?
4743  grep -v '^ *+' conftest.er1 >conftest.err
4744  rm -f conftest.er1
4745  cat conftest.err >&5
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); } &&
4748	 { ac_try='test -z "$ac_f77_werror_flag"
4749			 || test ! -s conftest.err'
4750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751  (eval $ac_try) 2>&5
4752  ac_status=$?
4753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754  (exit $ac_status); }; } &&
4755	 { ac_try='test -s conftest$ac_exeext'
4756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757  (eval $ac_try) 2>&5
4758  ac_status=$?
4759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760  (exit $ac_status); }; }; then
4761  :
4762else
4763  echo "$as_me: failed program was:" >&5
4764sed 's/^/| /' conftest.$ac_ext >&5
4765
4766FFLAGS=
4767fi
4768rm -f conftest.err conftest.$ac_objext \
4769      conftest$ac_exeext conftest.$ac_ext
4770    if test -z "$FFLAGS"; then
4771      { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4772echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4773    fi
4774  fi
4775fi
4776
4777{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4778echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4779
4780
4781if test x"$MPIF77" = x; then :; else
4782  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4783echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4784  F77="$MPIF77"
4785fi
4786
4787# correct the LD variable if we use the intel fortran compiler in windows
4788case $build in
4789  *-cygwin* | *-mingw*)
4790    case "$F77" in
4791      ifort* | */ifort* | IFORT* | */IFORT*)
4792        LD=link
4793      ;;
4794    esac
4795  ;;
4796esac
4797
4798ac_ext=c
4799ac_cpp='$CPP $CPPFLAGS'
4800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803
4804
4805
4806# Find out how to call Fortran from C and determine Fortran runtime libraries
4807if test "x$F77" != xunavailable
4808then
4809
4810# get FLIBS
4811ac_ext=f
4812ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4813ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4815echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4816echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4817if test "${ac_cv_prog_f77_v+set}" = set; then
4818  echo $ECHO_N "(cached) $ECHO_C" >&6
4819else
4820  cat >conftest.$ac_ext <<_ACEOF
4821      program main
4822
4823      end
4824_ACEOF
4825rm -f conftest.$ac_objext
4826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827  (eval $ac_compile) 2>conftest.er1
4828  ac_status=$?
4829  grep -v '^ *+' conftest.er1 >conftest.err
4830  rm -f conftest.er1
4831  cat conftest.err >&5
4832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833  (exit $ac_status); } &&
4834	 { ac_try='test -z "$ac_f77_werror_flag"
4835			 || test ! -s conftest.err'
4836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837  (eval $ac_try) 2>&5
4838  ac_status=$?
4839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840  (exit $ac_status); }; } &&
4841	 { ac_try='test -s conftest.$ac_objext'
4842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843  (eval $ac_try) 2>&5
4844  ac_status=$?
4845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); }; }; then
4847  ac_cv_prog_f77_v=
4848# Try some options frequently used verbose output
4849for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4850  cat >conftest.$ac_ext <<_ACEOF
4851      program main
4852
4853      end
4854_ACEOF
4855
4856# Compile and link our simple test program by passing a flag (argument
4857# 1 to this macro) to the Fortran compiler in order to get
4858# "verbose" output that we can then parse for the Fortran linker
4859# flags.
4860ac_save_FFLAGS=$FFLAGS
4861FFLAGS="$FFLAGS $ac_verb"
4862(eval echo $as_me:4862: \"$ac_link\") >&5
4863ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4864echo "$ac_f77_v_output" >&5
4865FFLAGS=$ac_save_FFLAGS
4866
4867rm -f conftest*
4868
4869# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4870# /foo, /bar, and /baz are search directories for the Fortran linker.
4871# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4872ac_f77_v_output="`echo $ac_f77_v_output |
4873	grep 'LPATH is:' |
4874	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4875
4876case $ac_f77_v_output in
4877  # If we are using xlf then replace all the commas with spaces.
4878  *xlfentry*)
4879    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4880
4881  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4882  # $LIBS confuse us, and the libraries appear later in the output anyway).
4883  *mGLOB_options_string*)
4884    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4885
4886  # If we are using Cray Fortran then delete quotes.
4887  # Use "\"" instead of '"' for font-lock-mode.
4888  # FIXME: a more general fix for quoted arguments with spaces?
4889  *cft90*)
4890    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4891esac
4892
4893
4894  # look for -l* and *.a constructs in the output
4895  for ac_arg in $ac_f77_v_output; do
4896     case $ac_arg in
4897        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4898          ac_cv_prog_f77_v=$ac_verb
4899          break 2 ;;
4900     esac
4901  done
4902done
4903if test -z "$ac_cv_prog_f77_v"; then
4904   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4905echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4906fi
4907else
4908  echo "$as_me: failed program was:" >&5
4909sed 's/^/| /' conftest.$ac_ext >&5
4910
4911{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4912echo "$as_me: WARNING: compilation failed" >&2;}
4913fi
4914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915
4916fi
4917echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4918echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4919echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4920echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4921if test "${ac_cv_f77_libs+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  if test "x$FLIBS" != "x"; then
4925  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4926else
4927
4928cat >conftest.$ac_ext <<_ACEOF
4929      program main
4930
4931      end
4932_ACEOF
4933
4934# Compile and link our simple test program by passing a flag (argument
4935# 1 to this macro) to the Fortran compiler in order to get
4936# "verbose" output that we can then parse for the Fortran linker
4937# flags.
4938ac_save_FFLAGS=$FFLAGS
4939FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4940(eval echo $as_me:4940: \"$ac_link\") >&5
4941ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4942echo "$ac_f77_v_output" >&5
4943FFLAGS=$ac_save_FFLAGS
4944
4945rm -f conftest*
4946
4947# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4948# /foo, /bar, and /baz are search directories for the Fortran linker.
4949# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4950ac_f77_v_output="`echo $ac_f77_v_output |
4951	grep 'LPATH is:' |
4952	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4953
4954case $ac_f77_v_output in
4955  # If we are using xlf then replace all the commas with spaces.
4956  *xlfentry*)
4957    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4958
4959  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4960  # $LIBS confuse us, and the libraries appear later in the output anyway).
4961  *mGLOB_options_string*)
4962    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4963
4964  # If we are using Cray Fortran then delete quotes.
4965  # Use "\"" instead of '"' for font-lock-mode.
4966  # FIXME: a more general fix for quoted arguments with spaces?
4967  *cft90*)
4968    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4969esac
4970
4971
4972
4973ac_cv_f77_libs=
4974
4975# Save positional arguments (if any)
4976ac_save_positional="$@"
4977
4978set X $ac_f77_v_output
4979while test $# != 1; do
4980  shift
4981  ac_arg=$1
4982  case $ac_arg in
4983        [\\/]*.a | ?:[\\/]*.a)
4984            ac_exists=false
4985  for ac_i in $ac_cv_f77_libs; do
4986    if test x"$ac_arg" = x"$ac_i"; then
4987      ac_exists=true
4988      break
4989    fi
4990  done
4991
4992  if test x"$ac_exists" = xtrue; then
4993  :
4994else
4995  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4996fi
4997
4998          ;;
4999        -bI:*)
5000            ac_exists=false
5001  for ac_i in $ac_cv_f77_libs; do
5002    if test x"$ac_arg" = x"$ac_i"; then
5003      ac_exists=true
5004      break
5005    fi
5006  done
5007
5008  if test x"$ac_exists" = xtrue; then
5009  :
5010else
5011  if test "$ac_compiler_gnu" = yes; then
5012  for ac_link_opt in $ac_arg; do
5013    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
5014  done
5015else
5016  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5017fi
5018fi
5019
5020          ;;
5021          # Ignore these flags.
5022        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
5023          ;;
5024        -lkernel32)
5025          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5026          ;;
5027        -[LRuY])
5028          # These flags, when seen by themselves, take an argument.
5029          # We remove the space between option and argument and re-iterate
5030          # unless we find an empty arg or a new option (starting with -)
5031	  case $2 in
5032	     "" | -*);;
5033	     *)
5034		ac_arg="$ac_arg$2"
5035		shift; shift
5036		set X $ac_arg "$@"
5037		;;
5038	  esac
5039          ;;
5040        -YP,*)
5041          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5042              ac_exists=false
5043  for ac_i in $ac_cv_f77_libs; do
5044    if test x"$ac_j" = x"$ac_i"; then
5045      ac_exists=true
5046      break
5047    fi
5048  done
5049
5050  if test x"$ac_exists" = xtrue; then
5051  :
5052else
5053  ac_arg="$ac_arg $ac_j"
5054                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
5055fi
5056
5057          done
5058          ;;
5059        -[lLR]*)
5060            ac_exists=false
5061  for ac_i in $ac_cv_f77_libs; do
5062    if test x"$ac_arg" = x"$ac_i"; then
5063      ac_exists=true
5064      break
5065    fi
5066  done
5067
5068  if test x"$ac_exists" = xtrue; then
5069  :
5070else
5071  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5072fi
5073
5074          ;;
5075          # Ignore everything else.
5076  esac
5077done
5078# restore positional arguments
5079set X $ac_save_positional; shift
5080
5081# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5082# then we insist that the "run path" must be an absolute path (i.e. it
5083# must begin with a "/").
5084case `(uname -sr) 2>/dev/null` in
5085   "SunOS 5"*)
5086      ac_ld_run_path=`echo $ac_f77_v_output |
5087                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5088      test "x$ac_ld_run_path" != x &&
5089        if test "$ac_compiler_gnu" = yes; then
5090  for ac_link_opt in $ac_ld_run_path; do
5091    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
5092  done
5093else
5094  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
5095fi
5096      ;;
5097esac
5098fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5099
5100fi
5101echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
5102echo "${ECHO_T}$ac_cv_f77_libs" >&6
5103FLIBS="$ac_cv_f77_libs"
5104
5105
5106ac_ext=c
5107ac_cpp='$CPP $CPPFLAGS'
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112orig_FLIBS="$FLIBS"
5113
5114# If FLIBS has been set by the user, we just restore its value here
5115if test x"$save_FLIBS" != x; then
5116  FLIBS="$save_FLIBS"
5117else
5118  # This is to correct a missing exclusion in autoconf 2.59
5119  if test x"$FLIBS" != x; then
5120    my_flibs=
5121    for flag in $FLIBS; do
5122      case $flag in
5123        -lcrt*.o) ;;
5124        -lcygwin) ;;
5125        -lgcc*)   ;;
5126               *) my_flibs="$my_flibs $flag" ;;
5127      esac
5128    done
5129    FLIBS="$my_flibs"
5130  fi
5131
5132  case $build in
5133  # The following is a fix to define FLIBS for ifort on Windows
5134  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
5135  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
5136  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
5137  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
5138  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
5139     *-cygwin* | *-mingw*)
5140       case "$F77" in
5141#         ifort* | */ifort* | IFORT* | */IFORT*)
5142#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
5143#           if "$coin_debug_compile" = true ; then
5144#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
5145#           else
5146#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
5147#           fi
5148#           ;;
5149         compile_f2c*)
5150           FLIBS=`$F77 -FLIBS` ;;
5151       esac;;
5152     *-hp-*)
5153         FLIBS="$FLIBS -lm";;
5154     *-ibm-*)
5155         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
5156     *-linux-*)
5157       case "$F77" in
5158         pgf77* | */pgf77* | pgf90* | */pgf90*)
5159# ask linker to go through the archives multiple times
5160# (the Fortran compiler seems to do that automatically...)
5161           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
5162       esac
5163  esac
5164  ac_cv_f77_libs="$FLIBS"
5165fi
5166
5167if test "x$orig_FLIBS" != "x$FLIBS" ; then
5168  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
5169echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
5170fi
5171
5172ac_ext=f
5173ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5174ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5176
5177echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
5178echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
5179if test "${ac_cv_f77_dummy_main+set}" = set; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  ac_f77_dm_save_LIBS=$LIBS
5183 LIBS="$LIBS $FLIBS"
5184 ac_fortran_dm_var=F77_DUMMY_MAIN
5185 ac_ext=c
5186ac_cpp='$CPP $CPPFLAGS'
5187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189ac_compiler_gnu=$ac_cv_c_compiler_gnu
5190
5191 # First, try linking without a dummy main:
5192 cat >conftest.$ac_ext <<_ACEOF
5193/* confdefs.h.  */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h.  */
5198
5199#ifdef F77_DUMMY_MAIN
5200
5201#  ifdef __cplusplus
5202     extern "C"
5203#  endif
5204   int F77_DUMMY_MAIN() { return 1; }
5205
5206#endif
5207int
5208main ()
5209{
5210
5211  ;
5212  return 0;
5213}
5214_ACEOF
5215rm -f conftest.$ac_objext conftest$ac_exeext
5216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217  (eval $ac_link) 2>conftest.er1
5218  ac_status=$?
5219  grep -v '^ *+' conftest.er1 >conftest.err
5220  rm -f conftest.er1
5221  cat conftest.err >&5
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); } &&
5224	 { ac_try='test -z "$ac_c_werror_flag"
5225			 || test ! -s conftest.err'
5226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227  (eval $ac_try) 2>&5
5228  ac_status=$?
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); }; } &&
5231	 { ac_try='test -s conftest$ac_exeext'
5232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233  (eval $ac_try) 2>&5
5234  ac_status=$?
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); }; }; then
5237  ac_cv_fortran_dummy_main=none
5238else
5239  echo "$as_me: failed program was:" >&5
5240sed 's/^/| /' conftest.$ac_ext >&5
5241
5242ac_cv_fortran_dummy_main=unknown
5243fi
5244rm -f conftest.err conftest.$ac_objext \
5245      conftest$ac_exeext conftest.$ac_ext
5246
5247 if test $ac_cv_fortran_dummy_main = unknown; then
5248   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
5249     cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h.  */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h.  */
5255#define $ac_fortran_dm_var $ac_func
5256#ifdef F77_DUMMY_MAIN
5257
5258#  ifdef __cplusplus
5259     extern "C"
5260#  endif
5261   int F77_DUMMY_MAIN() { return 1; }
5262
5263#endif
5264int
5265main ()
5266{
5267
5268  ;
5269  return 0;
5270}
5271_ACEOF
5272rm -f conftest.$ac_objext conftest$ac_exeext
5273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5274  (eval $ac_link) 2>conftest.er1
5275  ac_status=$?
5276  grep -v '^ *+' conftest.er1 >conftest.err
5277  rm -f conftest.er1
5278  cat conftest.err >&5
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); } &&
5281	 { ac_try='test -z "$ac_c_werror_flag"
5282			 || test ! -s conftest.err'
5283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284  (eval $ac_try) 2>&5
5285  ac_status=$?
5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287  (exit $ac_status); }; } &&
5288	 { ac_try='test -s conftest$ac_exeext'
5289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290  (eval $ac_try) 2>&5
5291  ac_status=$?
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); }; }; then
5294  ac_cv_fortran_dummy_main=$ac_func; break
5295else
5296  echo "$as_me: failed program was:" >&5
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
5299fi
5300rm -f conftest.err conftest.$ac_objext \
5301      conftest$ac_exeext conftest.$ac_ext
5302   done
5303 fi
5304 ac_ext=f
5305ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5306ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5308 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
5309 rm -f conftest*
5310 LIBS=$ac_f77_dm_save_LIBS
5311
5312fi
5313echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
5314echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
5315F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
5316if test "$F77_DUMMY_MAIN" != unknown; then
5317  if test $F77_DUMMY_MAIN != none; then
5318
5319cat >>confdefs.h <<_ACEOF
5320#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
5321_ACEOF
5322
5323  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
5324
5325cat >>confdefs.h <<\_ACEOF
5326#define FC_DUMMY_MAIN_EQ_F77 1
5327_ACEOF
5328
5329  fi
5330fi
5331else
5332  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
5333See \`config.log' for more details." >&5
5334echo "$as_me: error: linking to Fortran libraries from C fails
5335See \`config.log' for more details." >&2;}
5336   { (exit 1); exit 1; }; }
5337fi
5338
5339
5340ac_ext=f
5341ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5342ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5344
5345ac_ext=f
5346ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5347ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5349echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
5350echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
5351if test "${ac_cv_f77_mangling+set}" = set; then
5352  echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354  cat >conftest.$ac_ext <<_ACEOF
5355      subroutine foobar()
5356      return
5357      end
5358      subroutine foo_bar()
5359      return
5360      end
5361_ACEOF
5362rm -f conftest.$ac_objext
5363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5364  (eval $ac_compile) 2>conftest.er1
5365  ac_status=$?
5366  grep -v '^ *+' conftest.er1 >conftest.err
5367  rm -f conftest.er1
5368  cat conftest.err >&5
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); } &&
5371	 { ac_try='test -z "$ac_f77_werror_flag"
5372			 || test ! -s conftest.err'
5373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374  (eval $ac_try) 2>&5
5375  ac_status=$?
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); }; } &&
5378	 { ac_try='test -s conftest.$ac_objext'
5379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380  (eval $ac_try) 2>&5
5381  ac_status=$?
5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383  (exit $ac_status); }; }; then
5384  mv conftest.$ac_objext cfortran_test.$ac_objext
5385
5386  ac_save_LIBS=$LIBS
5387  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
5388
5389  ac_ext=c
5390ac_cpp='$CPP $CPPFLAGS'
5391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394  ac_success=no
5395  for ac_foobar in foobar FOOBAR; do
5396    for ac_underscore in "" "_"; do
5397      ac_func="$ac_foobar$ac_underscore"
5398      cat >conftest.$ac_ext <<_ACEOF
5399/* confdefs.h.  */
5400_ACEOF
5401cat confdefs.h >>conftest.$ac_ext
5402cat >>conftest.$ac_ext <<_ACEOF
5403/* end confdefs.h.  */
5404
5405/* Override any gcc2 internal prototype to avoid an error.  */
5406#ifdef __cplusplus
5407extern "C"
5408#endif
5409/* We use char because int might match the return type of a gcc2
5410   builtin and then its argument prototype would still apply.  */
5411char $ac_func ();
5412#ifdef F77_DUMMY_MAIN
5413
5414#  ifdef __cplusplus
5415     extern "C"
5416#  endif
5417   int F77_DUMMY_MAIN() { return 1; }
5418
5419#endif
5420int
5421main ()
5422{
5423$ac_func ();
5424  ;
5425  return 0;
5426}
5427_ACEOF
5428rm -f conftest.$ac_objext conftest$ac_exeext
5429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5430  (eval $ac_link) 2>conftest.er1
5431  ac_status=$?
5432  grep -v '^ *+' conftest.er1 >conftest.err
5433  rm -f conftest.er1
5434  cat conftest.err >&5
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); } &&
5437	 { ac_try='test -z "$ac_c_werror_flag"
5438			 || test ! -s conftest.err'
5439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440  (eval $ac_try) 2>&5
5441  ac_status=$?
5442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443  (exit $ac_status); }; } &&
5444	 { ac_try='test -s conftest$ac_exeext'
5445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446  (eval $ac_try) 2>&5
5447  ac_status=$?
5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449  (exit $ac_status); }; }; then
5450  ac_success=yes; break 2
5451else
5452  echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455fi
5456rm -f conftest.err conftest.$ac_objext \
5457      conftest$ac_exeext conftest.$ac_ext
5458    done
5459  done
5460  ac_ext=f
5461ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5462ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5464
5465  if test "$ac_success" = "yes"; then
5466     case $ac_foobar in
5467	foobar)
5468	   ac_case=lower
5469	   ac_foo_bar=foo_bar
5470	   ;;
5471	FOOBAR)
5472	   ac_case=upper
5473	   ac_foo_bar=FOO_BAR
5474	   ;;
5475     esac
5476
5477     ac_ext=c
5478ac_cpp='$CPP $CPPFLAGS'
5479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482     ac_success_extra=no
5483     for ac_extra in "" "_"; do
5484	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5485	cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h.  */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h.  */
5491
5492/* Override any gcc2 internal prototype to avoid an error.  */
5493#ifdef __cplusplus
5494extern "C"
5495#endif
5496/* We use char because int might match the return type of a gcc2
5497   builtin and then its argument prototype would still apply.  */
5498char $ac_func ();
5499#ifdef F77_DUMMY_MAIN
5500
5501#  ifdef __cplusplus
5502     extern "C"
5503#  endif
5504   int F77_DUMMY_MAIN() { return 1; }
5505
5506#endif
5507int
5508main ()
5509{
5510$ac_func ();
5511  ;
5512  return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext conftest$ac_exeext
5516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517  (eval $ac_link) 2>conftest.er1
5518  ac_status=$?
5519  grep -v '^ *+' conftest.er1 >conftest.err
5520  rm -f conftest.er1
5521  cat conftest.err >&5
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); } &&
5524	 { ac_try='test -z "$ac_c_werror_flag"
5525			 || test ! -s conftest.err'
5526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527  (eval $ac_try) 2>&5
5528  ac_status=$?
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); }; } &&
5531	 { ac_try='test -s conftest$ac_exeext'
5532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533  (eval $ac_try) 2>&5
5534  ac_status=$?
5535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536  (exit $ac_status); }; }; then
5537  ac_success_extra=yes; break
5538else
5539  echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542fi
5543rm -f conftest.err conftest.$ac_objext \
5544      conftest$ac_exeext conftest.$ac_ext
5545     done
5546     ac_ext=f
5547ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5548ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5550
5551     if test "$ac_success_extra" = "yes"; then
5552	ac_cv_f77_mangling="$ac_case case"
5553        if test -z "$ac_underscore"; then
5554           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
5555	else
5556           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
5557        fi
5558        if test -z "$ac_extra"; then
5559           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
5560	else
5561           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
5562        fi
5563      else
5564	ac_cv_f77_mangling="unknown"
5565      fi
5566  else
5567     ac_cv_f77_mangling="unknown"
5568  fi
5569
5570  LIBS=$ac_save_LIBS
5571  rm -f cfortran_test* conftest*
5572else
5573  echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
5577See \`config.log' for more details." >&5
5578echo "$as_me: error: cannot compile a simple Fortran program
5579See \`config.log' for more details." >&2;}
5580   { (exit 1); exit 1; }; }
5581fi
5582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5583
5584fi
5585echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
5586echo "${ECHO_T}$ac_cv_f77_mangling" >&6
5587
5588ac_ext=f
5589ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5590ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5592
5593
5594ac_ext=f
5595ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5596ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5598
5599ac_ext=f
5600ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5601ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5603
5604
5605case $ac_cv_f77_mangling in
5606  "lower case, no underscore, no extra underscore")
5607          cat >>confdefs.h <<\_ACEOF
5608#define F77_FUNC(name,NAME) name
5609_ACEOF
5610
5611          cat >>confdefs.h <<\_ACEOF
5612#define F77_FUNC_(name,NAME) name
5613_ACEOF
5614 ;;
5615  "lower case, no underscore, extra underscore")
5616          cat >>confdefs.h <<\_ACEOF
5617#define F77_FUNC(name,NAME) name
5618_ACEOF
5619
5620          cat >>confdefs.h <<\_ACEOF
5621#define F77_FUNC_(name,NAME) name ## _
5622_ACEOF
5623 ;;
5624  "lower case, underscore, no extra underscore")
5625          cat >>confdefs.h <<\_ACEOF
5626#define F77_FUNC(name,NAME) name ## _
5627_ACEOF
5628
5629          cat >>confdefs.h <<\_ACEOF
5630#define F77_FUNC_(name,NAME) name ## _
5631_ACEOF
5632 ;;
5633  "lower case, underscore, extra underscore")
5634          cat >>confdefs.h <<\_ACEOF
5635#define F77_FUNC(name,NAME) name ## _
5636_ACEOF
5637
5638          cat >>confdefs.h <<\_ACEOF
5639#define F77_FUNC_(name,NAME) name ## __
5640_ACEOF
5641 ;;
5642  "upper case, no underscore, no extra underscore")
5643          cat >>confdefs.h <<\_ACEOF
5644#define F77_FUNC(name,NAME) NAME
5645_ACEOF
5646
5647          cat >>confdefs.h <<\_ACEOF
5648#define F77_FUNC_(name,NAME) NAME
5649_ACEOF
5650 ;;
5651  "upper case, no underscore, extra underscore")
5652          cat >>confdefs.h <<\_ACEOF
5653#define F77_FUNC(name,NAME) NAME
5654_ACEOF
5655
5656          cat >>confdefs.h <<\_ACEOF
5657#define F77_FUNC_(name,NAME) NAME ## _
5658_ACEOF
5659 ;;
5660  "upper case, underscore, no extra underscore")
5661          cat >>confdefs.h <<\_ACEOF
5662#define F77_FUNC(name,NAME) NAME ## _
5663_ACEOF
5664
5665          cat >>confdefs.h <<\_ACEOF
5666#define F77_FUNC_(name,NAME) NAME ## _
5667_ACEOF
5668 ;;
5669  "upper case, underscore, extra underscore")
5670          cat >>confdefs.h <<\_ACEOF
5671#define F77_FUNC(name,NAME) NAME ## _
5672_ACEOF
5673
5674          cat >>confdefs.h <<\_ACEOF
5675#define F77_FUNC_(name,NAME) NAME ## __
5676_ACEOF
5677 ;;
5678  *)
5679          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5680echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5681          ;;
5682esac
5683
5684ac_ext=f
5685ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5686ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5688
5689ac_ext=c
5690ac_cpp='$CPP $CPPFLAGS'
5691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693ac_compiler_gnu=$ac_cv_c_compiler_gnu
5694
5695
5696
5697fi
5698
5699# Initialize automake and libtool
5700{
5701
5702
5703
5704# START
5705
5706coin_disable_shared=no
5707# Test if force_shared has been set
5708if test "x" = xforce_shared; then
5709  if test x$enable_shared = xno; then
5710    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5711echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5712   { (exit 1); exit 1; }; }
5713  fi
5714  enable_shared=yes;
5715else
5716  case $build in
5717    *-cygwin* | *-mingw*)
5718      coin_disable_shared=yes
5719      if test x"$enable_shared" = xyes; then
5720        case "$CC" in
5721          clang* )
5722            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5723echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5724            ;;
5725          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5726            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
5727echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
5728            ;;
5729          *gcc*)
5730            if test x"$enable_dependency_linking" = xyes; then
5731              coin_disable_shared=no
5732            else
5733              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
5734echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
5735            fi
5736            ;;
5737          *)
5738            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5739echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5740            ;;
5741        esac
5742      fi
5743    ;;
5744    *-aix*)
5745      coin_disable_shared=yes
5746      platform=AIX
5747      if test x"$enable_shared" = xyes; then
5748        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
5749echo "$as_me: WARNING: Shared objects are not supported." >&2;}
5750      fi
5751    ;;
5752  esac
5753fi
5754if test x"$coin_disable_shared" = xyes; then
5755  if test x"$enable_shared" = xyes; then
5756    :
5757  else
5758    # we don't disable shared, because it was not selected anyway
5759    coin_disable_shared=no
5760  fi
5761  enable_shared=no
5762fi
5763# By default, we only want the shared objects to be compiled
5764# Check whether --enable-static or --disable-static was given.
5765if test "${enable_static+set}" = set; then
5766  enableval="$enable_static"
5767  p=${PACKAGE-default}
5768    case $enableval in
5769    yes) enable_static=yes ;;
5770    no) enable_static=no ;;
5771    *)
5772     enable_static=no
5773      # Look at the argument we got.  We use all the common list separators.
5774      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5775      for pkg in $enableval; do
5776	IFS="$lt_save_ifs"
5777	if test "X$pkg" = "X$p"; then
5778	  enable_static=yes
5779	fi
5780      done
5781      IFS="$lt_save_ifs"
5782      ;;
5783    esac
5784else
5785  enable_static=no
5786fi;
5787
5788
5789
5790
5791# Initialize automake
5792echo "$as_me:$LINENO: checking for egrep" >&5
5793echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5794if test "${ac_cv_prog_egrep+set}" = set; then
5795  echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5798    then ac_cv_prog_egrep='grep -E'
5799    else ac_cv_prog_egrep='egrep'
5800    fi
5801fi
5802echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5803echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5804 EGREP=$ac_cv_prog_egrep
5805
5806
5807echo "$as_me:$LINENO: checking whether ln -s works" >&5
5808echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5809LN_S=$as_ln_s
5810if test "$LN_S" = "ln -s"; then
5811  echo "$as_me:$LINENO: result: yes" >&5
5812echo "${ECHO_T}yes" >&6
5813else
5814  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5815echo "${ECHO_T}no, using $LN_S" >&6
5816fi
5817
5818am__api_version="1.9"
5819# Find a good install program.  We prefer a C program (faster),
5820# so one script is as good as another.  But avoid the broken or
5821# incompatible versions:
5822# SysV /etc/install, /usr/sbin/install
5823# SunOS /usr/etc/install
5824# IRIX /sbin/install
5825# AIX /bin/install
5826# AmigaOS /C/install, which installs bootblocks on floppy discs
5827# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5828# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5829# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5830# OS/2's system install, which has a completely different semantic
5831# ./install, which can be erroneously created by make from ./install.sh.
5832echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5833echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5834if test -z "$INSTALL"; then
5835if test "${ac_cv_path_install+set}" = set; then
5836  echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841  IFS=$as_save_IFS
5842  test -z "$as_dir" && as_dir=.
5843  # Account for people who put trailing slashes in PATH elements.
5844case $as_dir/ in
5845  ./ | .// | /cC/* | \
5846  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5847  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5848  /usr/ucb/* ) ;;
5849  *)
5850    # OSF1 and SCO ODT 3.0 have their own names for install.
5851    # Don't use installbsd from OSF since it installs stuff as root
5852    # by default.
5853    for ac_prog in ginstall scoinst install; do
5854      for ac_exec_ext in '' $ac_executable_extensions; do
5855	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5856	  if test $ac_prog = install &&
5857	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5858	    # AIX install.  It has an incompatible calling convention.
5859	    :
5860	  elif test $ac_prog = install &&
5861	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5862	    # program-specific install script used by HP pwplus--don't use.
5863	    :
5864	  else
5865	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5866	    break 3
5867	  fi
5868	fi
5869      done
5870    done
5871    ;;
5872esac
5873done
5874
5875
5876fi
5877  if test "${ac_cv_path_install+set}" = set; then
5878    INSTALL=$ac_cv_path_install
5879  else
5880    # As a last resort, use the slow shell script.  We don't cache a
5881    # path for INSTALL within a source directory, because that will
5882    # break other packages using the cache if that directory is
5883    # removed, or if the path is relative.
5884    INSTALL=$ac_install_sh
5885  fi
5886fi
5887echo "$as_me:$LINENO: result: $INSTALL" >&5
5888echo "${ECHO_T}$INSTALL" >&6
5889
5890# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5891# It thinks the first close brace ends the variable substitution.
5892test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5893
5894test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5895
5896test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5897
5898echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5899echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5900# Just in case
5901sleep 1
5902echo timestamp > conftest.file
5903# Do `set' in a subshell so we don't clobber the current shell's
5904# arguments.  Must try -L first in case configure is actually a
5905# symlink; some systems play weird games with the mod time of symlinks
5906# (eg FreeBSD returns the mod time of the symlink's containing
5907# directory).
5908if (
5909   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5910   if test "$*" = "X"; then
5911      # -L didn't work.
5912      set X `ls -t $srcdir/configure conftest.file`
5913   fi
5914   rm -f conftest.file
5915   if test "$*" != "X $srcdir/configure conftest.file" \
5916      && test "$*" != "X conftest.file $srcdir/configure"; then
5917
5918      # If neither matched, then we have a broken ls.  This can happen
5919      # if, for instance, CONFIG_SHELL is bash and it inherits a
5920      # broken ls alias from the environment.  This has actually
5921      # happened.  Such a system could not be considered "sane".
5922      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5923alias in your environment" >&5
5924echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5925alias in your environment" >&2;}
5926   { (exit 1); exit 1; }; }
5927   fi
5928
5929   test "$2" = conftest.file
5930   )
5931then
5932   # Ok.
5933   :
5934else
5935   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5936Check your system clock" >&5
5937echo "$as_me: error: newly created file is older than distributed files!
5938Check your system clock" >&2;}
5939   { (exit 1); exit 1; }; }
5940fi
5941echo "$as_me:$LINENO: result: yes" >&5
5942echo "${ECHO_T}yes" >&6
5943test "$program_prefix" != NONE &&
5944  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5945# Use a double $ so make ignores it.
5946test "$program_suffix" != NONE &&
5947  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5948# Double any \ or $.  echo might interpret backslashes.
5949# By default was `s,x,x', remove it if useless.
5950cat <<\_ACEOF >conftest.sed
5951s/[\\$]/&&/g;s/;s,x,x,$//
5952_ACEOF
5953program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5954rm conftest.sed
5955
5956# expand $ac_aux_dir to an absolute path
5957am_aux_dir=`cd $ac_aux_dir && pwd`
5958
5959test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5960# Use eval to expand $SHELL
5961if eval "$MISSING --run true"; then
5962  am_missing_run="$MISSING --run "
5963else
5964  am_missing_run=
5965  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5966echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5967fi
5968
5969if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5970  # We used to keeping the `.' as first argument, in order to
5971  # allow $(mkdir_p) to be used without argument.  As in
5972  #   $(mkdir_p) $(somedir)
5973  # where $(somedir) is conditionally defined.  However this is wrong
5974  # for two reasons:
5975  #  1. if the package is installed by a user who cannot write `.'
5976  #     make install will fail,
5977  #  2. the above comment should most certainly read
5978  #     $(mkdir_p) $(DESTDIR)$(somedir)
5979  #     so it does not work when $(somedir) is undefined and
5980  #     $(DESTDIR) is not.
5981  #  To support the latter case, we have to write
5982  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5983  #  so the `.' trick is pointless.
5984  mkdir_p='mkdir -p --'
5985else
5986  # On NextStep and OpenStep, the `mkdir' command does not
5987  # recognize any option.  It will interpret all options as
5988  # directories to create, and then abort because `.' already
5989  # exists.
5990  for d in ./-p ./--version;
5991  do
5992    test -d $d && rmdir $d
5993  done
5994  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5995  if test -f "$ac_aux_dir/mkinstalldirs"; then
5996    mkdir_p='$(mkinstalldirs)'
5997  else
5998    mkdir_p='$(install_sh) -d'
5999  fi
6000fi
6001
6002for ac_prog in gawk mawk nawk awk
6003do
6004  # Extract the first word of "$ac_prog", so it can be a program name with args.
6005set dummy $ac_prog; ac_word=$2
6006echo "$as_me:$LINENO: checking for $ac_word" >&5
6007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6008if test "${ac_cv_prog_AWK+set}" = set; then
6009  echo $ECHO_N "(cached) $ECHO_C" >&6
6010else
6011  if test -n "$AWK"; then
6012  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6013else
6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017  IFS=$as_save_IFS
6018  test -z "$as_dir" && as_dir=.
6019  for ac_exec_ext in '' $ac_executable_extensions; do
6020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021    ac_cv_prog_AWK="$ac_prog"
6022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023    break 2
6024  fi
6025done
6026done
6027
6028fi
6029fi
6030AWK=$ac_cv_prog_AWK
6031if test -n "$AWK"; then
6032  echo "$as_me:$LINENO: result: $AWK" >&5
6033echo "${ECHO_T}$AWK" >&6
6034else
6035  echo "$as_me:$LINENO: result: no" >&5
6036echo "${ECHO_T}no" >&6
6037fi
6038
6039  test -n "$AWK" && break
6040done
6041
6042echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6043echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6044set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6045if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6046  echo $ECHO_N "(cached) $ECHO_C" >&6
6047else
6048  cat >conftest.make <<\_ACEOF
6049all:
6050	@echo 'ac_maketemp="$(MAKE)"'
6051_ACEOF
6052# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6053eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6054if test -n "$ac_maketemp"; then
6055  eval ac_cv_prog_make_${ac_make}_set=yes
6056else
6057  eval ac_cv_prog_make_${ac_make}_set=no
6058fi
6059rm -f conftest.make
6060fi
6061if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6062  echo "$as_me:$LINENO: result: yes" >&5
6063echo "${ECHO_T}yes" >&6
6064  SET_MAKE=
6065else
6066  echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068  SET_MAKE="MAKE=${MAKE-make}"
6069fi
6070
6071rm -rf .tst 2>/dev/null
6072mkdir .tst 2>/dev/null
6073if test -d .tst; then
6074  am__leading_dot=.
6075else
6076  am__leading_dot=_
6077fi
6078rmdir .tst 2>/dev/null
6079
6080DEPDIR="${am__leading_dot}deps"
6081
6082          ac_config_commands="$ac_config_commands depfiles"
6083
6084
6085am_make=${MAKE-make}
6086cat > confinc << 'END'
6087am__doit:
6088	@echo done
6089.PHONY: am__doit
6090END
6091# If we don't find an include directive, just comment out the code.
6092echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6093echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6094am__include="#"
6095am__quote=
6096_am_result=none
6097# First try GNU make style include.
6098echo "include confinc" > confmf
6099# We grep out `Entering directory' and `Leaving directory'
6100# messages which can occur if `w' ends up in MAKEFLAGS.
6101# In particular we don't look at `^make:' because GNU make might
6102# be invoked under some other name (usually "gmake"), in which
6103# case it prints its new name instead of `make'.
6104if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6105   am__include=include
6106   am__quote=
6107   _am_result=GNU
6108fi
6109# Now try BSD make style include.
6110if test "$am__include" = "#"; then
6111   echo '.include "confinc"' > confmf
6112   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6113      am__include=.include
6114      am__quote="\""
6115      _am_result=BSD
6116   fi
6117fi
6118
6119
6120echo "$as_me:$LINENO: result: $_am_result" >&5
6121echo "${ECHO_T}$_am_result" >&6
6122rm -f confinc confmf
6123
6124# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6125if test "${enable_dependency_tracking+set}" = set; then
6126  enableval="$enable_dependency_tracking"
6127
6128fi;
6129if test "x$enable_dependency_tracking" != xno; then
6130  am_depcomp="$ac_aux_dir/depcomp"
6131  AMDEPBACKSLASH='\'
6132fi
6133
6134
6135if test "x$enable_dependency_tracking" != xno; then
6136  AMDEP_TRUE=
6137  AMDEP_FALSE='#'
6138else
6139  AMDEP_TRUE='#'
6140  AMDEP_FALSE=
6141fi
6142
6143
6144
6145
6146
6147
6148# AC_MSG_NOTICE([Beginning automake initialisation.])
6149# Stuff for automake
6150# test to see if srcdir already configured
6151if test "`cd $srcdir && pwd`" != "`pwd`" &&
6152   test -f $srcdir/config.status; then
6153  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6154echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6155   { (exit 1); exit 1; }; }
6156fi
6157
6158# test whether we have cygpath
6159if test -z "$CYGPATH_W"; then
6160  if (cygpath --version) >/dev/null 2>/dev/null; then
6161    CYGPATH_W='cygpath -w'
6162  else
6163    CYGPATH_W=echo
6164  fi
6165fi
6166
6167
6168# Define the identity of the package.
6169 PACKAGE='cglconic'
6170 VERSION='0.3'
6171
6172
6173cat >>confdefs.h <<_ACEOF
6174#define PACKAGE "$PACKAGE"
6175_ACEOF
6176
6177
6178cat >>confdefs.h <<_ACEOF
6179#define VERSION "$VERSION"
6180_ACEOF
6181
6182# Some tools Automake needs.
6183
6184ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6185
6186
6187AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6188
6189
6190AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6191
6192
6193AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6194
6195
6196MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6197
6198install_sh=${install_sh-"$am_aux_dir/install-sh"}
6199
6200# Installed binaries are usually stripped using `strip' when the user
6201# run `make install-strip'.  However `strip' might not be the right
6202# tool to use in cross-compilation environments, therefore Automake
6203# will honor the `STRIP' environment variable to overrule this program.
6204if test "$cross_compiling" != no; then
6205  if test -n "$ac_tool_prefix"; then
6206  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6207set dummy ${ac_tool_prefix}strip; ac_word=$2
6208echo "$as_me:$LINENO: checking for $ac_word" >&5
6209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210if test "${ac_cv_prog_STRIP+set}" = set; then
6211  echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213  if test -n "$STRIP"; then
6214  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219  IFS=$as_save_IFS
6220  test -z "$as_dir" && as_dir=.
6221  for ac_exec_ext in '' $ac_executable_extensions; do
6222  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6224    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225    break 2
6226  fi
6227done
6228done
6229
6230fi
6231fi
6232STRIP=$ac_cv_prog_STRIP
6233if test -n "$STRIP"; then
6234  echo "$as_me:$LINENO: result: $STRIP" >&5
6235echo "${ECHO_T}$STRIP" >&6
6236else
6237  echo "$as_me:$LINENO: result: no" >&5
6238echo "${ECHO_T}no" >&6
6239fi
6240
6241fi
6242if test -z "$ac_cv_prog_STRIP"; then
6243  ac_ct_STRIP=$STRIP
6244  # Extract the first word of "strip", so it can be a program name with args.
6245set dummy strip; ac_word=$2
6246echo "$as_me:$LINENO: checking for $ac_word" >&5
6247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6248if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6249  echo $ECHO_N "(cached) $ECHO_C" >&6
6250else
6251  if test -n "$ac_ct_STRIP"; then
6252  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257  IFS=$as_save_IFS
6258  test -z "$as_dir" && as_dir=.
6259  for ac_exec_ext in '' $ac_executable_extensions; do
6260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261    ac_cv_prog_ac_ct_STRIP="strip"
6262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263    break 2
6264  fi
6265done
6266done
6267
6268  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6269fi
6270fi
6271ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6272if test -n "$ac_ct_STRIP"; then
6273  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6274echo "${ECHO_T}$ac_ct_STRIP" >&6
6275else
6276  echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
6278fi
6279
6280  STRIP=$ac_ct_STRIP
6281else
6282  STRIP="$ac_cv_prog_STRIP"
6283fi
6284
6285fi
6286INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6287
6288# We need awk for the "check" target.  The system "awk" is bad on
6289# some platforms.
6290# Always define AMTAR for backward compatibility.
6291
6292AMTAR=${AMTAR-"${am_missing_run}tar"}
6293
6294am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6295
6296
6297
6298
6299depcc="$CC"   am_compiler_list=
6300
6301echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6302echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6303if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6304  echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6307  # We make a subdir and do the tests there.  Otherwise we can end up
6308  # making bogus files that we don't know about and never remove.  For
6309  # instance it was reported that on HP-UX the gcc test will end up
6310  # making a dummy file named `D' -- because `-MD' means `put the output
6311  # in D'.
6312  mkdir conftest.dir
6313  # Copy depcomp to subdir because otherwise we won't find it if we're
6314  # using a relative directory.
6315  cp "$am_depcomp" conftest.dir
6316  cd conftest.dir
6317  # We will build objects and dependencies in a subdirectory because
6318  # it helps to detect inapplicable dependency modes.  For instance
6319  # both Tru64's cc and ICC support -MD to output dependencies as a
6320  # side effect of compilation, but ICC will put the dependencies in
6321  # the current directory while Tru64 will put them in the object
6322  # directory.
6323  mkdir sub
6324
6325  am_cv_CC_dependencies_compiler_type=none
6326  if test "$am_compiler_list" = ""; then
6327     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6328  fi
6329  for depmode in $am_compiler_list; do
6330    # Setup a source with many dependencies, because some compilers
6331    # like to wrap large dependency lists on column 80 (with \), and
6332    # we should not choose a depcomp mode which is confused by this.
6333    #
6334    # We need to recreate these files for each test, as the compiler may
6335    # overwrite some of them when testing with obscure command lines.
6336    # This happens at least with the AIX C compiler.
6337    : > sub/conftest.c
6338    for i in 1 2 3 4 5 6; do
6339      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6340      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6341      # Solaris 8's {/usr,}/bin/sh.
6342      touch sub/conftst$i.h
6343    done
6344    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6345
6346    case $depmode in
6347    nosideeffect)
6348      # after this tag, mechanisms are not by side-effect, so they'll
6349      # only be used when explicitly requested
6350      if test "x$enable_dependency_tracking" = xyes; then
6351	continue
6352      else
6353	break
6354      fi
6355      ;;
6356    none) break ;;
6357    esac
6358    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6359    # mode.  It turns out that the SunPro C++ compiler does not properly
6360    # handle `-M -o', and we need to detect this.
6361    if depmode=$depmode \
6362       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6363       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6364       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6365         >/dev/null 2>conftest.err &&
6366       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6367       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6368       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6369      # icc doesn't choke on unknown options, it will just issue warnings
6370      # or remarks (even with -Werror).  So we grep stderr for any message
6371      # that says an option was ignored or not supported.
6372      # When given -MP, icc 7.0 and 7.1 complain thusly:
6373      #   icc: Command line warning: ignoring option '-M'; no argument required
6374      # The diagnosis changed in icc 8.0:
6375      #   icc: Command line remark: option '-MP' not supported
6376      if (grep 'ignoring option' conftest.err ||
6377          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6378        am_cv_CC_dependencies_compiler_type=$depmode
6379        break
6380      fi
6381    fi
6382  done
6383
6384  cd ..
6385  rm -rf conftest.dir
6386else
6387  am_cv_CC_dependencies_compiler_type=none
6388fi
6389
6390fi
6391echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6392echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6393CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6394
6395
6396
6397if
6398  test "x$enable_dependency_tracking" != xno \
6399  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6400  am__fastdepCC_TRUE=
6401  am__fastdepCC_FALSE='#'
6402else
6403  am__fastdepCC_TRUE='#'
6404  am__fastdepCC_FALSE=
6405fi
6406
6407
6408depcc="$CXX"  am_compiler_list=
6409
6410echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6411echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6412if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6413  echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6416  # We make a subdir and do the tests there.  Otherwise we can end up
6417  # making bogus files that we don't know about and never remove.  For
6418  # instance it was reported that on HP-UX the gcc test will end up
6419  # making a dummy file named `D' -- because `-MD' means `put the output
6420  # in D'.
6421  mkdir conftest.dir
6422  # Copy depcomp to subdir because otherwise we won't find it if we're
6423  # using a relative directory.
6424  cp "$am_depcomp" conftest.dir
6425  cd conftest.dir
6426  # We will build objects and dependencies in a subdirectory because
6427  # it helps to detect inapplicable dependency modes.  For instance
6428  # both Tru64's cc and ICC support -MD to output dependencies as a
6429  # side effect of compilation, but ICC will put the dependencies in
6430  # the current directory while Tru64 will put them in the object
6431  # directory.
6432  mkdir sub
6433
6434  am_cv_CXX_dependencies_compiler_type=none
6435  if test "$am_compiler_list" = ""; then
6436     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6437  fi
6438  for depmode in $am_compiler_list; do
6439    # Setup a source with many dependencies, because some compilers
6440    # like to wrap large dependency lists on column 80 (with \), and
6441    # we should not choose a depcomp mode which is confused by this.
6442    #
6443    # We need to recreate these files for each test, as the compiler may
6444    # overwrite some of them when testing with obscure command lines.
6445    # This happens at least with the AIX C compiler.
6446    : > sub/conftest.c
6447    for i in 1 2 3 4 5 6; do
6448      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6449      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6450      # Solaris 8's {/usr,}/bin/sh.
6451      touch sub/conftst$i.h
6452    done
6453    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6454
6455    case $depmode in
6456    nosideeffect)
6457      # after this tag, mechanisms are not by side-effect, so they'll
6458      # only be used when explicitly requested
6459      if test "x$enable_dependency_tracking" = xyes; then
6460	continue
6461      else
6462	break
6463      fi
6464      ;;
6465    none) break ;;
6466    esac
6467    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6468    # mode.  It turns out that the SunPro C++ compiler does not properly
6469    # handle `-M -o', and we need to detect this.
6470    if depmode=$depmode \
6471       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6472       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6473       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6474         >/dev/null 2>conftest.err &&
6475       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6476       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6477       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6478      # icc doesn't choke on unknown options, it will just issue warnings
6479      # or remarks (even with -Werror).  So we grep stderr for any message
6480      # that says an option was ignored or not supported.
6481      # When given -MP, icc 7.0 and 7.1 complain thusly:
6482      #   icc: Command line warning: ignoring option '-M'; no argument required
6483      # The diagnosis changed in icc 8.0:
6484      #   icc: Command line remark: option '-MP' not supported
6485      if (grep 'ignoring option' conftest.err ||
6486          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6487        am_cv_CXX_dependencies_compiler_type=$depmode
6488        break
6489      fi
6490    fi
6491  done
6492
6493  cd ..
6494  rm -rf conftest.dir
6495else
6496  am_cv_CXX_dependencies_compiler_type=none
6497fi
6498
6499fi
6500echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6501echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6502CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6503
6504
6505
6506if
6507  test "x$enable_dependency_tracking" != xno \
6508  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6509  am__fastdepCXX_TRUE=
6510  am__fastdepCXX_FALSE='#'
6511else
6512  am__fastdepCXX_TRUE='#'
6513  am__fastdepCXX_FALSE=
6514fi
6515
6516
6517
6518echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6519echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6520    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6521if test "${enable_maintainer_mode+set}" = set; then
6522  enableval="$enable_maintainer_mode"
6523  USE_MAINTAINER_MODE=$enableval
6524else
6525  USE_MAINTAINER_MODE=no
6526fi;
6527  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6528echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6529
6530
6531if test $USE_MAINTAINER_MODE = yes; then
6532  MAINTAINER_MODE_TRUE=
6533  MAINTAINER_MODE_FALSE='#'
6534else
6535  MAINTAINER_MODE_TRUE='#'
6536  MAINTAINER_MODE_FALSE=
6537fi
6538
6539  MAINT=$MAINTAINER_MODE_TRUE
6540
6541
6542
6543coin_have_externals=no
6544if test "$enable_maintainer_mode" = yes; then
6545
6546  # If maintainer mode is chosen, we make sure that the correct versions
6547  # of the tools are used, and that we know where libtool.m4 is (to
6548  # recreate acinclude.m4)
6549
6550
6551  LIBTOOLM4=
6552  # Normally, $HOME
6553  AUTOTOOLS_DFLT=$HOME
6554
6555  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6556echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6557if test "${ac_cv_use_correct_autotools+set}" = set; then
6558  echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560  ac_cv_use_correct_autotools=check
6561fi
6562echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6563echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6564
6565  if test $ac_cv_use_correct_autotools = check; then
6566    ac_cv_use_correct_autotools=yes
6567    # Check if we have autoconf
6568    # Extract the first word of "autoconf", so it can be a program name with args.
6569set dummy autoconf; ac_word=$2
6570echo "$as_me:$LINENO: checking for $ac_word" >&5
6571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6572if test "${ac_cv_prog_have_autoconf+set}" = set; then
6573  echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575  if test -n "$have_autoconf"; then
6576  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581  IFS=$as_save_IFS
6582  test -z "$as_dir" && as_dir=.
6583  for ac_exec_ext in '' $ac_executable_extensions; do
6584  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6585    ac_cv_prog_have_autoconf="yes"
6586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587    break 2
6588  fi
6589done
6590done
6591
6592  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6593fi
6594fi
6595have_autoconf=$ac_cv_prog_have_autoconf
6596if test -n "$have_autoconf"; then
6597  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6598echo "${ECHO_T}$have_autoconf" >&6
6599else
6600  echo "$as_me:$LINENO: result: no" >&5
6601echo "${ECHO_T}no" >&6
6602fi
6603
6604    if test $have_autoconf = no; then
6605      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6606echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6607   { (exit 1); exit 1; }; }
6608    fi
6609
6610    # Check whether autoconf is the correct version
6611    correct_version='2.59'
6612    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6613    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6614echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6615    autoconf --version > confauto.out 2>&1
6616    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6617      echo "$as_me:$LINENO: result: yes" >&5
6618echo "${ECHO_T}yes" >&6
6619    else
6620      rm -f confauto.out
6621      echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
6623      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6624echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6625   { (exit 1); exit 1; }; }
6626    fi
6627    rm -f confauto.out
6628
6629    # Check if the executable autoconf is picked up from the correct location
6630    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6631echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6632    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6633    autoconf_dir=`cd $autoconf_dir; pwd`
6634    if test x$AUTOTOOLS_DIR = x; then
6635      want_dir=$AUTOTOOLS_DFLT/bin
6636    else
6637      want_dir=$AUTOTOOLS_DIR/bin
6638    fi
6639    if test $autoconf_dir = `cd $want_dir; pwd`; then
6640      echo "$as_me:$LINENO: result: yes" >&5
6641echo "${ECHO_T}yes" >&6
6642    else
6643      rm -f confauto.out
6644      echo "$as_me:$LINENO: result: no" >&5
6645echo "${ECHO_T}no" >&6
6646      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6647echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6648   { (exit 1); exit 1; }; }
6649    fi
6650
6651    # Check if we have automake
6652    # Extract the first word of "automake", so it can be a program name with args.
6653set dummy automake; ac_word=$2
6654echo "$as_me:$LINENO: checking for $ac_word" >&5
6655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6656if test "${ac_cv_prog_have_automake+set}" = set; then
6657  echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659  if test -n "$have_automake"; then
6660  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665  IFS=$as_save_IFS
6666  test -z "$as_dir" && as_dir=.
6667  for ac_exec_ext in '' $ac_executable_extensions; do
6668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669    ac_cv_prog_have_automake="yes"
6670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671    break 2
6672  fi
6673done
6674done
6675
6676  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6677fi
6678fi
6679have_automake=$ac_cv_prog_have_automake
6680if test -n "$have_automake"; then
6681  echo "$as_me:$LINENO: result: $have_automake" >&5
6682echo "${ECHO_T}$have_automake" >&6
6683else
6684  echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6
6686fi
6687
6688    if test $have_automake = no; then
6689      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6690echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6691   { (exit 1); exit 1; }; }
6692    fi
6693
6694    # Check whether automake is the correct version
6695    correct_version='1.9.6'
6696    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6697    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6698echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6699    automake --version > confauto.out 2>&1
6700    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6701      echo "$as_me:$LINENO: result: yes" >&5
6702echo "${ECHO_T}yes" >&6
6703    else
6704      rm -f confauto.out
6705      echo "$as_me:$LINENO: result: no" >&5
6706echo "${ECHO_T}no" >&6
6707      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6708echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6709   { (exit 1); exit 1; }; }
6710    fi
6711    rm -f confauto.out
6712
6713    # Check if the executable automake is picked up from the correct location
6714    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6715echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6716    automake_dir=`which automake | sed -e 's=/automake=='`
6717    automake_dir=`cd $automake_dir; pwd`
6718    if test x$AUTOTOOLS_DIR = x; then
6719      want_dir=$AUTOTOOLS_DFLT/bin
6720    else
6721      want_dir=$AUTOTOOLS_DIR/bin
6722    fi
6723    if test $automake_dir = `cd $want_dir; pwd`; then
6724      echo "$as_me:$LINENO: result: yes" >&5
6725echo "${ECHO_T}yes" >&6
6726    else
6727      rm -f confauto.out
6728      echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6
6730      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6731echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6732   { (exit 1); exit 1; }; }
6733    fi
6734
6735    # Check if this is the correct version of libtool (with escaped dots)
6736    if test x$AUTOTOOLS_DIR = x; then
6737      want_dir=$AUTOTOOLS_DFLT/share
6738    else
6739      want_dir=$AUTOTOOLS_DIR/share
6740    fi
6741    correct_version='1.5.22'
6742    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6743    if test -r $want_dir/libtool/ltmain.sh; then
6744  have_ltmain=yes
6745  :
6746else
6747  have_ltmain=no
6748  :
6749fi
6750
6751    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6752echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6753    if test $have_ltmain = yes; then
6754    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6755        echo "$as_me:$LINENO: result: yes" >&5
6756echo "${ECHO_T}yes" >&6
6757      else
6758        echo "$as_me:$LINENO: result: no" >&5
6759echo "${ECHO_T}no" >&6
6760        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6761echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6762   { (exit 1); exit 1; }; }
6763      fi
6764    else
6765      echo "$as_me:$LINENO: result: no" >&5
6766echo "${ECHO_T}no" >&6
6767      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6768echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6769   { (exit 1); exit 1; }; }
6770    fi
6771  fi
6772
6773  # Check if we can find the libtool file
6774  if test x$AUTOTOOLS_DIR = x; then
6775    want_dir=$AUTOTOOLS_DFLT/share
6776  else
6777    want_dir=$AUTOTOOLS_DIR/share
6778  fi
6779  if test -r $want_dir/aclocal/libtool.m4; then
6780  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6781  :
6782else
6783  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6784echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6785   { (exit 1); exit 1; }; }
6786  :
6787fi
6788
6789
6790  # Check if we have an Dependencies file
6791  if test -r $srcdir/Dependencies; then
6792    coin_have_externals=yes
6793  fi
6794  # Check if subversion is installed and understands https
6795  # Extract the first word of "svn", so it can be a program name with args.
6796set dummy svn; ac_word=$2
6797echo "$as_me:$LINENO: checking for $ac_word" >&5
6798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6799if test "${ac_cv_prog_have_svn+set}" = set; then
6800  echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802  if test -n "$have_svn"; then
6803  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808  IFS=$as_save_IFS
6809  test -z "$as_dir" && as_dir=.
6810  for ac_exec_ext in '' $ac_executable_extensions; do
6811  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812    ac_cv_prog_have_svn="yes"
6813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814    break 2
6815  fi
6816done
6817done
6818
6819  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6820fi
6821fi
6822have_svn=$ac_cv_prog_have_svn
6823if test -n "$have_svn"; then
6824  echo "$as_me:$LINENO: result: $have_svn" >&5
6825echo "${ECHO_T}$have_svn" >&6
6826else
6827  echo "$as_me:$LINENO: result: no" >&5
6828echo "${ECHO_T}no" >&6
6829fi
6830
6831  if test x$have_svn = xyes; then
6832    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6833echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6834if test "${ac_cv_svn_understands_https+set}" = set; then
6835  echo $ECHO_N "(cached) $ECHO_C" >&6
6836else
6837  svn --version > confauto.out 2>&1
6838                    if $EGREP https confauto.out >/dev/null 2>&1; then
6839                      ac_cv_svn_understands_https=yes
6840                    else
6841                      ac_cv_svn_understands_https=no
6842                      have_svn=no
6843                      ac_cv_prog_have_svn=no
6844                    fi
6845                    rm -f confauto.out
6846fi
6847echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6848echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6849  fi
6850
6851  # Find the location of the BuildTools directory
6852  BUILDTOOLSDIR=
6853  if test -r $srcdir/BuildTools/coin.m4; then
6854    BUILDTOOLSDIR=$srcdir/BuildTools
6855  else
6856    if test -r $srcdir/../BuildTools/coin.m4; then
6857      BUILDTOOLSDIR=$srcdir/../BuildTools
6858    else
6859      if test -r $srcdir/../../BuildTools/coin.m4; then
6860        BUILDTOOLSDIR=$srcdir/../../BuildTools
6861      else
6862        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6863echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6864   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6865      fi
6866    fi
6867  fi
6868
6869
6870  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6871  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6872    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6873  fi
6874
6875  # The following variable is set to the name of the directory where
6876  # the autotool scripts are located
6877
6878  AUX_DIR=$ac_aux_dir
6879fi
6880
6881# helpful variable for the base directory of this package
6882abs_source_dir=`cd $srcdir; pwd`
6883
6884
6885# Stuff for example Makefiles
6886if test x$prefix = xNONE; then
6887  full_prefix=$ac_default_prefix
6888else
6889  full_prefix=$prefix
6890fi
6891full_prefix=`cd $full_prefix ; pwd`
6892
6893abs_lib_dir=$full_prefix/lib
6894
6895abs_include_dir=$full_prefix/include
6896
6897abs_bin_dir=$full_prefix/bin
6898
6899
6900
6901if test $coin_have_externals = yes && test x$have_svn = xyes; then
6902  HAVE_EXTERNALS_TRUE=
6903  HAVE_EXTERNALS_FALSE='#'
6904else
6905  HAVE_EXTERNALS_TRUE='#'
6906  HAVE_EXTERNALS_FALSE=
6907fi
6908
6909
6910# AC_MSG_NOTICE([End automake initialisation.])
6911
6912
6913
6914LIBTOOL=
6915if test -f ../libtool; then
6916  coin_config_dir=..
6917  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6918fi
6919if test "x$LIBTOOL" = x; then
6920  if test -f ../../libtool; then
6921    coin_config_dir=../..
6922    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6923  fi
6924fi
6925
6926if test "x$LIBTOOL" = x; then
6927# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6928  # Stuff for libtool
6929  # Check whether --enable-shared or --disable-shared was given.
6930if test "${enable_shared+set}" = set; then
6931  enableval="$enable_shared"
6932  p=${PACKAGE-default}
6933    case $enableval in
6934    yes) enable_shared=yes ;;
6935    no) enable_shared=no ;;
6936    *)
6937      enable_shared=no
6938      # Look at the argument we got.  We use all the common list separators.
6939      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6940      for pkg in $enableval; do
6941	IFS="$lt_save_ifs"
6942	if test "X$pkg" = "X$p"; then
6943	  enable_shared=yes
6944	fi
6945      done
6946      IFS="$lt_save_ifs"
6947      ;;
6948    esac
6949else
6950  enable_shared=yes
6951fi;
6952
6953# Check whether --enable-fast-install or --disable-fast-install was given.
6954if test "${enable_fast_install+set}" = set; then
6955  enableval="$enable_fast_install"
6956  p=${PACKAGE-default}
6957    case $enableval in
6958    yes) enable_fast_install=yes ;;
6959    no) enable_fast_install=no ;;
6960    *)
6961      enable_fast_install=no
6962      # Look at the argument we got.  We use all the common list separators.
6963      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6964      for pkg in $enableval; do
6965	IFS="$lt_save_ifs"
6966	if test "X$pkg" = "X$p"; then
6967	  enable_fast_install=yes
6968	fi
6969      done
6970      IFS="$lt_save_ifs"
6971      ;;
6972    esac
6973else
6974  enable_fast_install=yes
6975fi;
6976
6977echo "$as_me:$LINENO: checking host system type" >&5
6978echo $ECHO_N "checking host system type... $ECHO_C" >&6
6979if test "${ac_cv_host+set}" = set; then
6980  echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982  ac_cv_host_alias=$host_alias
6983test -z "$ac_cv_host_alias" &&
6984  ac_cv_host_alias=$ac_cv_build_alias
6985ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6986  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6987echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6988   { (exit 1); exit 1; }; }
6989
6990fi
6991echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6992echo "${ECHO_T}$ac_cv_host" >&6
6993host=$ac_cv_host
6994host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6995host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6996host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6997
6998
6999echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7000echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
7001if test "${lt_cv_path_SED+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  # Loop through the user's path and test for sed and gsed.
7005# Then use that list of sed's as ones to test for truncation.
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 lt_ac_prog in sed gsed; do
7012    for ac_exec_ext in '' $ac_executable_extensions; do
7013      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7014        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7015      fi
7016    done
7017  done
7018done
7019lt_ac_max=0
7020lt_ac_count=0
7021# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7022# along with /bin/sed that truncates output.
7023for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7024  test ! -f $lt_ac_sed && continue
7025  cat /dev/null > conftest.in
7026  lt_ac_count=0
7027  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7028  # Check for GNU sed and select it if it is found.
7029  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7030    lt_cv_path_SED=$lt_ac_sed
7031    break
7032  fi
7033  while true; do
7034    cat conftest.in conftest.in >conftest.tmp
7035    mv conftest.tmp conftest.in
7036    cp conftest.in conftest.nl
7037    echo >>conftest.nl
7038    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7039    cmp -s conftest.out conftest.nl || break
7040    # 10000 chars as input seems more than enough
7041    test $lt_ac_count -gt 10 && break
7042    lt_ac_count=`expr $lt_ac_count + 1`
7043    if test $lt_ac_count -gt $lt_ac_max; then
7044      lt_ac_max=$lt_ac_count
7045      lt_cv_path_SED=$lt_ac_sed
7046    fi
7047  done
7048done
7049
7050fi
7051
7052SED=$lt_cv_path_SED
7053echo "$as_me:$LINENO: result: $SED" >&5
7054echo "${ECHO_T}$SED" >&6
7055
7056
7057# Check whether --with-gnu-ld or --without-gnu-ld was given.
7058if test "${with_gnu_ld+set}" = set; then
7059  withval="$with_gnu_ld"
7060  test "$withval" = no || with_gnu_ld=yes
7061else
7062  with_gnu_ld=no
7063fi;
7064ac_prog=ld
7065if test "$GCC" = yes; then
7066  # Check if gcc -print-prog-name=ld gives a path.
7067  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7068echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7069  case $host in
7070  *-*-mingw*)
7071    # gcc leaves a trailing carriage return which upsets mingw
7072    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7073  *)
7074    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7075  esac
7076  case $ac_prog in
7077    # Accept absolute paths.
7078    [\\/]* | ?:[\\/]*)
7079      re_direlt='/[^/][^/]*/\.\./'
7080      # Canonicalize the pathname of ld
7081      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7082      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7083	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7084      done
7085      test -z "$LD" && LD="$ac_prog"
7086      ;;
7087  "")
7088    # If it fails, then pretend we aren't using GCC.
7089    ac_prog=ld
7090    ;;
7091  *)
7092    # If it is relative, then search for the first ld in PATH.
7093    with_gnu_ld=unknown
7094    ;;
7095  esac
7096elif test "$with_gnu_ld" = yes; then
7097  echo "$as_me:$LINENO: checking for GNU ld" >&5
7098echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7099else
7100  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7101echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7102fi
7103if test "${lt_cv_path_LD+set}" = set; then
7104  echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106  if test -z "$LD"; then
7107  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7108  for ac_dir in $PATH; do
7109    IFS="$lt_save_ifs"
7110    test -z "$ac_dir" && ac_dir=.
7111    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7112      lt_cv_path_LD="$ac_dir/$ac_prog"
7113      # Check to see if the program is GNU ld.  I'd rather use --version,
7114      # but apparently some variants of GNU ld only accept -v.
7115      # Break only if it was the GNU/non-GNU ld that we prefer.
7116      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7117      *GNU* | *'with BFD'*)
7118	test "$with_gnu_ld" != no && break
7119	;;
7120      *)
7121	test "$with_gnu_ld" != yes && break
7122	;;
7123      esac
7124    fi
7125  done
7126  IFS="$lt_save_ifs"
7127else
7128  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7129fi
7130fi
7131
7132LD="$lt_cv_path_LD"
7133if test -n "$LD"; then
7134  echo "$as_me:$LINENO: result: $LD" >&5
7135echo "${ECHO_T}$LD" >&6
7136else
7137  echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6
7139fi
7140test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7141echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7142   { (exit 1); exit 1; }; }
7143echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7144echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7145if test "${lt_cv_prog_gnu_ld+set}" = set; then
7146  echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7149case `$LD -v 2>&1 </dev/null` in
7150*GNU* | *'with BFD'*)
7151  lt_cv_prog_gnu_ld=yes
7152  ;;
7153*)
7154  lt_cv_prog_gnu_ld=no
7155  ;;
7156esac
7157fi
7158echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7159echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7160with_gnu_ld=$lt_cv_prog_gnu_ld
7161
7162
7163echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7164echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7165if test "${lt_cv_ld_reload_flag+set}" = set; then
7166  echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168  lt_cv_ld_reload_flag='-r'
7169fi
7170echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7171echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7172reload_flag=$lt_cv_ld_reload_flag
7173case $reload_flag in
7174"" | " "*) ;;
7175*) reload_flag=" $reload_flag" ;;
7176esac
7177reload_cmds='$LD$reload_flag -o $output$reload_objs'
7178case $host_os in
7179  darwin*)
7180    if test "$GCC" = yes; then
7181      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7182    else
7183      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7184    fi
7185    ;;
7186esac
7187
7188echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7189echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7190if test "${lt_cv_path_NM+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193  if test -n "$NM"; then
7194  # Let the user override the test.
7195  lt_cv_path_NM="$NM"
7196else
7197  lt_nm_to_check="${ac_tool_prefix}nm"
7198  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7199    lt_nm_to_check="$lt_nm_to_check nm"
7200  fi
7201  for lt_tmp_nm in $lt_nm_to_check; do
7202    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7203    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7204      IFS="$lt_save_ifs"
7205      test -z "$ac_dir" && ac_dir=.
7206      tmp_nm="$ac_dir/$lt_tmp_nm"
7207      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7208	# Check to see if the nm accepts a BSD-compat flag.
7209	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7210	#   nm: unknown option "B" ignored
7211	# Tru64's nm complains that /dev/null is an invalid object file
7212	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7213	*/dev/null* | *'Invalid file or object type'*)
7214	  lt_cv_path_NM="$tmp_nm -B"
7215	  break
7216	  ;;
7217	*)
7218	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7219	  */dev/null*)
7220	    lt_cv_path_NM="$tmp_nm -p"
7221	    break
7222	    ;;
7223	  *)
7224	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7225	    continue # so that we can try to find one that supports BSD flags
7226	    ;;
7227	  esac
7228	  ;;
7229	esac
7230      fi
7231    done
7232    IFS="$lt_save_ifs"
7233  done
7234  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7235fi
7236fi
7237echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7238echo "${ECHO_T}$lt_cv_path_NM" >&6
7239NM="$lt_cv_path_NM"
7240
7241echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7242echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7243if test "${lt_cv_deplibs_check_method+set}" = set; then
7244  echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246  lt_cv_file_magic_cmd='$MAGIC_CMD'
7247lt_cv_file_magic_test_file=
7248lt_cv_deplibs_check_method='unknown'
7249# Need to set the preceding variable on all platforms that support
7250# interlibrary dependencies.
7251# 'none' -- dependencies not supported.
7252# `unknown' -- same as none, but documents that we really don't know.
7253# 'pass_all' -- all dependencies passed with no checks.
7254# 'test_compile' -- check by making test program.
7255# 'file_magic [[regex]]' -- check by looking for files in library path
7256# which responds to the $file_magic_cmd with a given extended regex.
7257# If you have `file' or equivalent on your system and you're not sure
7258# whether `pass_all' will *always* work, you probably want this one.
7259
7260case $host_os in
7261aix4* | aix5*)
7262  lt_cv_deplibs_check_method=pass_all
7263  ;;
7264
7265beos*)
7266  lt_cv_deplibs_check_method=pass_all
7267  ;;
7268
7269bsdi[45]*)
7270  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7271  lt_cv_file_magic_cmd='/usr/bin/file -L'
7272  lt_cv_file_magic_test_file=/shlib/libc.so
7273  ;;
7274
7275cygwin*)
7276  # func_win32_libid is a shell function defined in ltmain.sh
7277  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7278  lt_cv_file_magic_cmd='func_win32_libid'
7279  ;;
7280
7281mingw* | pw32*)
7282  # Base MSYS/MinGW do not provide the 'file' command needed by
7283  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7284  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7285  lt_cv_file_magic_cmd='$OBJDUMP -f'
7286  ;;
7287
7288darwin* | rhapsody*)
7289  lt_cv_deplibs_check_method=pass_all
7290  ;;
7291
7292freebsd* | kfreebsd*-gnu | dragonfly*)
7293  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7294    case $host_cpu in
7295    i*86 )
7296      # Not sure whether the presence of OpenBSD here was a mistake.
7297      # Let's accept both of them until this is cleared up.
7298      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7299      lt_cv_file_magic_cmd=/usr/bin/file
7300      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7301      ;;
7302    esac
7303  else
7304    lt_cv_deplibs_check_method=pass_all
7305  fi
7306  ;;
7307
7308gnu*)
7309  lt_cv_deplibs_check_method=pass_all
7310  ;;
7311
7312hpux10.20* | hpux11*)
7313  lt_cv_file_magic_cmd=/usr/bin/file
7314  case $host_cpu in
7315  ia64*)
7316    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7317    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7318    ;;
7319  hppa*64*)
7320    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]'
7321    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7322    ;;
7323  *)
7324    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7325    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7326    ;;
7327  esac
7328  ;;
7329
7330interix3*)
7331  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7332  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7333  ;;
7334
7335irix5* | irix6* | nonstopux*)
7336  case $LD in
7337  *-32|*"-32 ") libmagic=32-bit;;
7338  *-n32|*"-n32 ") libmagic=N32;;
7339  *-64|*"-64 ") libmagic=64-bit;;
7340  *) libmagic=never-match;;
7341  esac
7342  lt_cv_deplibs_check_method=pass_all
7343  ;;
7344
7345# This must be Linux ELF.
7346linux*)
7347  lt_cv_deplibs_check_method=pass_all
7348  ;;
7349
7350netbsd*)
7351  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7352    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7353  else
7354    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7355  fi
7356  ;;
7357
7358newos6*)
7359  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7360  lt_cv_file_magic_cmd=/usr/bin/file
7361  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7362  ;;
7363
7364nto-qnx*)
7365  lt_cv_deplibs_check_method=unknown
7366  ;;
7367
7368openbsd*)
7369  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7370    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7371  else
7372    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7373  fi
7374  ;;
7375
7376osf3* | osf4* | osf5*)
7377  lt_cv_deplibs_check_method=pass_all
7378  ;;
7379
7380solaris*)
7381  lt_cv_deplibs_check_method=pass_all
7382  ;;
7383
7384sysv4 | sysv4.3*)
7385  case $host_vendor in
7386  motorola)
7387    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]'
7388    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7389    ;;
7390  ncr)
7391    lt_cv_deplibs_check_method=pass_all
7392    ;;
7393  sequent)
7394    lt_cv_file_magic_cmd='/bin/file'
7395    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7396    ;;
7397  sni)
7398    lt_cv_file_magic_cmd='/bin/file'
7399    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7400    lt_cv_file_magic_test_file=/lib/libc.so
7401    ;;
7402  siemens)
7403    lt_cv_deplibs_check_method=pass_all
7404    ;;
7405  pc)
7406    lt_cv_deplibs_check_method=pass_all
7407    ;;
7408  esac
7409  ;;
7410
7411sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7412  lt_cv_deplibs_check_method=pass_all
7413  ;;
7414esac
7415
7416fi
7417echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7418echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7419file_magic_cmd=$lt_cv_file_magic_cmd
7420deplibs_check_method=$lt_cv_deplibs_check_method
7421test -z "$deplibs_check_method" && deplibs_check_method=unknown
7422
7423
7424
7425
7426# If no C compiler was specified, use CC.
7427LTCC=${LTCC-"$CC"}
7428
7429# If no C compiler flags were specified, use CFLAGS.
7430LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7431
7432# Allow CC to be a program name with arguments.
7433compiler=$CC
7434
7435# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7436if test "${enable_libtool_lock+set}" = set; then
7437  enableval="$enable_libtool_lock"
7438
7439fi;
7440test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7441
7442# Some flags need to be propagated to the compiler or linker for good
7443# libtool support.
7444case $host in
7445ia64-*-hpux*)
7446  # Find out which ABI we are using.
7447  echo 'int i;' > conftest.$ac_ext
7448  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449  (eval $ac_compile) 2>&5
7450  ac_status=$?
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); }; then
7453    case `/usr/bin/file conftest.$ac_objext` in
7454    *ELF-32*)
7455      HPUX_IA64_MODE="32"
7456      ;;
7457    *ELF-64*)
7458      HPUX_IA64_MODE="64"
7459      ;;
7460    esac
7461  fi
7462  rm -rf conftest*
7463  ;;
7464*-*-irix6*)
7465  # Find out which ABI we are using.
7466  echo '#line 7466 "configure"' > conftest.$ac_ext
7467  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468  (eval $ac_compile) 2>&5
7469  ac_status=$?
7470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471  (exit $ac_status); }; then
7472   if test "$lt_cv_prog_gnu_ld" = yes; then
7473    case `/usr/bin/file conftest.$ac_objext` in
7474    *32-bit*)
7475      LD="${LD-ld} -melf32bsmip"
7476      ;;
7477    *N32*)
7478      LD="${LD-ld} -melf32bmipn32"
7479      ;;
7480    *64-bit*)
7481      LD="${LD-ld} -melf64bmip"
7482      ;;
7483    esac
7484   else
7485    case `/usr/bin/file conftest.$ac_objext` in
7486    *32-bit*)
7487      LD="${LD-ld} -32"
7488      ;;
7489    *N32*)
7490      LD="${LD-ld} -n32"
7491      ;;
7492    *64-bit*)
7493      LD="${LD-ld} -64"
7494      ;;
7495    esac
7496   fi
7497  fi
7498  rm -rf conftest*
7499  ;;
7500
7501x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7502  # Find out which ABI we are using.
7503  echo 'int i;' > conftest.$ac_ext
7504  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505  (eval $ac_compile) 2>&5
7506  ac_status=$?
7507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508  (exit $ac_status); }; then
7509    case `/usr/bin/file conftest.o` in
7510    *32-bit*)
7511      case $host in
7512        x86_64-*linux*)
7513          LD="${LD-ld} -m elf_i386"
7514          ;;
7515        ppc64-*linux*|powerpc64-*linux*)
7516          LD="${LD-ld} -m elf32ppclinux"
7517          ;;
7518        s390x-*linux*)
7519          LD="${LD-ld} -m elf_s390"
7520          ;;
7521        sparc64-*linux*)
7522          LD="${LD-ld} -m elf32_sparc"
7523          ;;
7524      esac
7525      ;;
7526    *64-bit*)
7527      case $host in
7528        x86_64-*linux*)
7529          LD="${LD-ld} -m elf_x86_64"
7530          ;;
7531        ppc*-*linux*|powerpc*-*linux*)
7532          LD="${LD-ld} -m elf64ppc"
7533          ;;
7534        s390*-*linux*)
7535          LD="${LD-ld} -m elf64_s390"
7536          ;;
7537        sparc*-*linux*)
7538          LD="${LD-ld} -m elf64_sparc"
7539          ;;
7540      esac
7541      ;;
7542    esac
7543  fi
7544  rm -rf conftest*
7545  ;;
7546
7547*-*-sco3.2v5*)
7548  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7549  SAVE_CFLAGS="$CFLAGS"
7550  CFLAGS="$CFLAGS -belf"
7551  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7552echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7553if test "${lt_cv_cc_needs_belf+set}" = set; then
7554  echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556  ac_ext=c
7557ac_cpp='$CPP $CPPFLAGS'
7558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7560ac_compiler_gnu=$ac_cv_c_compiler_gnu
7561
7562     cat >conftest.$ac_ext <<_ACEOF
7563/* confdefs.h.  */
7564_ACEOF
7565cat confdefs.h >>conftest.$ac_ext
7566cat >>conftest.$ac_ext <<_ACEOF
7567/* end confdefs.h.  */
7568
7569#ifdef F77_DUMMY_MAIN
7570
7571#  ifdef __cplusplus
7572     extern "C"
7573#  endif
7574   int F77_DUMMY_MAIN() { return 1; }
7575
7576#endif
7577int
7578main ()
7579{
7580
7581  ;
7582  return 0;
7583}
7584_ACEOF
7585rm -f conftest.$ac_objext conftest$ac_exeext
7586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587  (eval $ac_link) 2>conftest.er1
7588  ac_status=$?
7589  grep -v '^ *+' conftest.er1 >conftest.err
7590  rm -f conftest.er1
7591  cat conftest.err >&5
7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593  (exit $ac_status); } &&
7594	 { ac_try='test -z "$ac_c_werror_flag"
7595			 || test ! -s conftest.err'
7596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597  (eval $ac_try) 2>&5
7598  ac_status=$?
7599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600  (exit $ac_status); }; } &&
7601	 { ac_try='test -s conftest$ac_exeext'
7602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603  (eval $ac_try) 2>&5
7604  ac_status=$?
7605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606  (exit $ac_status); }; }; then
7607  lt_cv_cc_needs_belf=yes
7608else
7609  echo "$as_me: failed program was:" >&5
7610sed 's/^/| /' conftest.$ac_ext >&5
7611
7612lt_cv_cc_needs_belf=no
7613fi
7614rm -f conftest.err conftest.$ac_objext \
7615      conftest$ac_exeext conftest.$ac_ext
7616     ac_ext=c
7617ac_cpp='$CPP $CPPFLAGS'
7618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621
7622fi
7623echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7624echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7625  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7626    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7627    CFLAGS="$SAVE_CFLAGS"
7628  fi
7629  ;;
7630sparc*-*solaris*)
7631  # Find out which ABI we are using.
7632  echo 'int i;' > conftest.$ac_ext
7633  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7634  (eval $ac_compile) 2>&5
7635  ac_status=$?
7636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637  (exit $ac_status); }; then
7638    case `/usr/bin/file conftest.o` in
7639    *64-bit*)
7640      case $lt_cv_prog_gnu_ld in
7641      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7642      *)    LD="${LD-ld} -64" ;;
7643      esac
7644      ;;
7645    esac
7646  fi
7647  rm -rf conftest*
7648  ;;
7649
7650
7651esac
7652
7653need_locks="$enable_libtool_lock"
7654
7655
7656ac_ext=c
7657ac_cpp='$CPP $CPPFLAGS'
7658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7662echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7663# On Suns, sometimes $CPP names a directory.
7664if test -n "$CPP" && test -d "$CPP"; then
7665  CPP=
7666fi
7667if test -z "$CPP"; then
7668  if test "${ac_cv_prog_CPP+set}" = set; then
7669  echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671      # Double quotes because CPP needs to be expanded
7672    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7673    do
7674      ac_preproc_ok=false
7675for ac_c_preproc_warn_flag in '' yes
7676do
7677  # Use a header file that comes with gcc, so configuring glibc
7678  # with a fresh cross-compiler works.
7679  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7680  # <limits.h> exists even on freestanding compilers.
7681  # On the NeXT, cc -E runs the code through the compiler's parser,
7682  # not just through cpp. "Syntax error" is here to catch this case.
7683  cat >conftest.$ac_ext <<_ACEOF
7684/* confdefs.h.  */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h.  */
7689#ifdef __STDC__
7690# include <limits.h>
7691#else
7692# include <assert.h>
7693#endif
7694		     Syntax error
7695_ACEOF
7696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7697  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7698  ac_status=$?
7699  grep -v '^ *+' conftest.er1 >conftest.err
7700  rm -f conftest.er1
7701  cat conftest.err >&5
7702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703  (exit $ac_status); } >/dev/null; then
7704  if test -s conftest.err; then
7705    ac_cpp_err=$ac_c_preproc_warn_flag
7706    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7707  else
7708    ac_cpp_err=
7709  fi
7710else
7711  ac_cpp_err=yes
7712fi
7713if test -z "$ac_cpp_err"; then
7714  :
7715else
7716  echo "$as_me: failed program was:" >&5
7717sed 's/^/| /' conftest.$ac_ext >&5
7718
7719  # Broken: fails on valid input.
7720continue
7721fi
7722rm -f conftest.err conftest.$ac_ext
7723
7724  # OK, works on sane cases.  Now check whether non-existent headers
7725  # can be detected and how.
7726  cat >conftest.$ac_ext <<_ACEOF
7727/* confdefs.h.  */
7728_ACEOF
7729cat confdefs.h >>conftest.$ac_ext
7730cat >>conftest.$ac_ext <<_ACEOF
7731/* end confdefs.h.  */
7732#include <ac_nonexistent.h>
7733_ACEOF
7734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7736  ac_status=$?
7737  grep -v '^ *+' conftest.er1 >conftest.err
7738  rm -f conftest.er1
7739  cat conftest.err >&5
7740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741  (exit $ac_status); } >/dev/null; then
7742  if test -s conftest.err; then
7743    ac_cpp_err=$ac_c_preproc_warn_flag
7744    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7745  else
7746    ac_cpp_err=
7747  fi
7748else
7749  ac_cpp_err=yes
7750fi
7751if test -z "$ac_cpp_err"; then
7752  # Broken: success on invalid input.
7753continue
7754else
7755  echo "$as_me: failed program was:" >&5
7756sed 's/^/| /' conftest.$ac_ext >&5
7757
7758  # Passes both tests.
7759ac_preproc_ok=:
7760break
7761fi
7762rm -f conftest.err conftest.$ac_ext
7763
7764done
7765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7766rm -f conftest.err conftest.$ac_ext
7767if $ac_preproc_ok; then
7768  break
7769fi
7770
7771    done
7772    ac_cv_prog_CPP=$CPP
7773
7774fi
7775  CPP=$ac_cv_prog_CPP
7776else
7777  ac_cv_prog_CPP=$CPP
7778fi
7779echo "$as_me:$LINENO: result: $CPP" >&5
7780echo "${ECHO_T}$CPP" >&6
7781ac_preproc_ok=false
7782for ac_c_preproc_warn_flag in '' yes
7783do
7784  # Use a header file that comes with gcc, so configuring glibc
7785  # with a fresh cross-compiler works.
7786  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7787  # <limits.h> exists even on freestanding compilers.
7788  # On the NeXT, cc -E runs the code through the compiler's parser,
7789  # not just through cpp. "Syntax error" is here to catch this case.
7790  cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h.  */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h.  */
7796#ifdef __STDC__
7797# include <limits.h>
7798#else
7799# include <assert.h>
7800#endif
7801		     Syntax error
7802_ACEOF
7803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7804  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7805  ac_status=$?
7806  grep -v '^ *+' conftest.er1 >conftest.err
7807  rm -f conftest.er1
7808  cat conftest.err >&5
7809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810  (exit $ac_status); } >/dev/null; then
7811  if test -s conftest.err; then
7812    ac_cpp_err=$ac_c_preproc_warn_flag
7813    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7814  else
7815    ac_cpp_err=
7816  fi
7817else
7818  ac_cpp_err=yes
7819fi
7820if test -z "$ac_cpp_err"; then
7821  :
7822else
7823  echo "$as_me: failed program was:" >&5
7824sed 's/^/| /' conftest.$ac_ext >&5
7825
7826  # Broken: fails on valid input.
7827continue
7828fi
7829rm -f conftest.err conftest.$ac_ext
7830
7831  # OK, works on sane cases.  Now check whether non-existent headers
7832  # can be detected and how.
7833  cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h.  */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h.  */
7839#include <ac_nonexistent.h>
7840_ACEOF
7841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7842  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7843  ac_status=$?
7844  grep -v '^ *+' conftest.er1 >conftest.err
7845  rm -f conftest.er1
7846  cat conftest.err >&5
7847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848  (exit $ac_status); } >/dev/null; then
7849  if test -s conftest.err; then
7850    ac_cpp_err=$ac_c_preproc_warn_flag
7851    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7852  else
7853    ac_cpp_err=
7854  fi
7855else
7856  ac_cpp_err=yes
7857fi
7858if test -z "$ac_cpp_err"; then
7859  # Broken: success on invalid input.
7860continue
7861else
7862  echo "$as_me: failed program was:" >&5
7863sed 's/^/| /' conftest.$ac_ext >&5
7864
7865  # Passes both tests.
7866ac_preproc_ok=:
7867break
7868fi
7869rm -f conftest.err conftest.$ac_ext
7870
7871done
7872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7873rm -f conftest.err conftest.$ac_ext
7874if $ac_preproc_ok; then
7875  :
7876else
7877  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7878See \`config.log' for more details." >&5
7879echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7880See \`config.log' for more details." >&2;}
7881   { (exit 1); exit 1; }; }
7882fi
7883
7884ac_ext=c
7885ac_cpp='$CPP $CPPFLAGS'
7886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888ac_compiler_gnu=$ac_cv_c_compiler_gnu
7889
7890
7891echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7892echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7893if test "${ac_cv_header_stdc+set}" = set; then
7894  echo $ECHO_N "(cached) $ECHO_C" >&6
7895else
7896  cat >conftest.$ac_ext <<_ACEOF
7897/* confdefs.h.  */
7898_ACEOF
7899cat confdefs.h >>conftest.$ac_ext
7900cat >>conftest.$ac_ext <<_ACEOF
7901/* end confdefs.h.  */
7902#include <stdlib.h>
7903#include <stdarg.h>
7904#include <string.h>
7905#include <float.h>
7906
7907#ifdef F77_DUMMY_MAIN
7908
7909#  ifdef __cplusplus
7910     extern "C"
7911#  endif
7912   int F77_DUMMY_MAIN() { return 1; }
7913
7914#endif
7915int
7916main ()
7917{
7918
7919  ;
7920  return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext
7924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7925  (eval $ac_compile) 2>conftest.er1
7926  ac_status=$?
7927  grep -v '^ *+' conftest.er1 >conftest.err
7928  rm -f conftest.er1
7929  cat conftest.err >&5
7930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931  (exit $ac_status); } &&
7932	 { ac_try='test -z "$ac_c_werror_flag"
7933			 || test ! -s conftest.err'
7934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935  (eval $ac_try) 2>&5
7936  ac_status=$?
7937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938  (exit $ac_status); }; } &&
7939	 { ac_try='test -s conftest.$ac_objext'
7940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941  (eval $ac_try) 2>&5
7942  ac_status=$?
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); }; }; then
7945  ac_cv_header_stdc=yes
7946else
7947  echo "$as_me: failed program was:" >&5
7948sed 's/^/| /' conftest.$ac_ext >&5
7949
7950ac_cv_header_stdc=no
7951fi
7952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7953
7954if test $ac_cv_header_stdc = yes; then
7955  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7956  cat >conftest.$ac_ext <<_ACEOF
7957/* confdefs.h.  */
7958_ACEOF
7959cat confdefs.h >>conftest.$ac_ext
7960cat >>conftest.$ac_ext <<_ACEOF
7961/* end confdefs.h.  */
7962#include <string.h>
7963
7964_ACEOF
7965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7966  $EGREP "memchr" >/dev/null 2>&1; then
7967  :
7968else
7969  ac_cv_header_stdc=no
7970fi
7971rm -f conftest*
7972
7973fi
7974
7975if test $ac_cv_header_stdc = yes; then
7976  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7977  cat >conftest.$ac_ext <<_ACEOF
7978/* confdefs.h.  */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h.  */
7983#include <stdlib.h>
7984
7985_ACEOF
7986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7987  $EGREP "free" >/dev/null 2>&1; then
7988  :
7989else
7990  ac_cv_header_stdc=no
7991fi
7992rm -f conftest*
7993
7994fi
7995
7996if test $ac_cv_header_stdc = yes; then
7997  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7998  if test "$cross_compiling" = yes; then
7999  :
8000else
8001  cat >conftest.$ac_ext <<_ACEOF
8002/* confdefs.h.  */
8003_ACEOF
8004cat confdefs.h >>conftest.$ac_ext
8005cat >>conftest.$ac_ext <<_ACEOF
8006/* end confdefs.h.  */
8007#include <ctype.h>
8008#if ((' ' & 0x0FF) == 0x020)
8009# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8010# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8011#else
8012# define ISLOWER(c) \
8013		   (('a' <= (c) && (c) <= 'i') \
8014		     || ('j' <= (c) && (c) <= 'r') \
8015		     || ('s' <= (c) && (c) <= 'z'))
8016# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8017#endif
8018
8019#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8020int
8021main ()
8022{
8023  int i;
8024  for (i = 0; i < 256; i++)
8025    if (XOR (islower (i), ISLOWER (i))
8026	|| toupper (i) != TOUPPER (i))
8027      exit(2);
8028  exit (0);
8029}
8030_ACEOF
8031rm -f conftest$ac_exeext
8032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033  (eval $ac_link) 2>&5
8034  ac_status=$?
8035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038  (eval $ac_try) 2>&5
8039  ac_status=$?
8040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041  (exit $ac_status); }; }; then
8042  :
8043else
8044  echo "$as_me: program exited with status $ac_status" >&5
8045echo "$as_me: failed program was:" >&5
8046sed 's/^/| /' conftest.$ac_ext >&5
8047
8048( exit $ac_status )
8049ac_cv_header_stdc=no
8050fi
8051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8052fi
8053fi
8054fi
8055echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8056echo "${ECHO_T}$ac_cv_header_stdc" >&6
8057if test $ac_cv_header_stdc = yes; then
8058
8059cat >>confdefs.h <<\_ACEOF
8060#define STDC_HEADERS 1
8061_ACEOF
8062
8063fi
8064
8065# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8076		  inttypes.h stdint.h unistd.h
8077do
8078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8079echo "$as_me:$LINENO: checking for $ac_header" >&5
8080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8081if eval "test \"\${$as_ac_Header+set}\" = set"; then
8082  echo $ECHO_N "(cached) $ECHO_C" >&6
8083else
8084  cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h.  */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h.  */
8090$ac_includes_default
8091
8092#include <$ac_header>
8093_ACEOF
8094rm -f conftest.$ac_objext
8095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8096  (eval $ac_compile) 2>conftest.er1
8097  ac_status=$?
8098  grep -v '^ *+' conftest.er1 >conftest.err
8099  rm -f conftest.er1
8100  cat conftest.err >&5
8101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102  (exit $ac_status); } &&
8103	 { ac_try='test -z "$ac_c_werror_flag"
8104			 || test ! -s conftest.err'
8105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106  (eval $ac_try) 2>&5
8107  ac_status=$?
8108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109  (exit $ac_status); }; } &&
8110	 { ac_try='test -s conftest.$ac_objext'
8111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112  (eval $ac_try) 2>&5
8113  ac_status=$?
8114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115  (exit $ac_status); }; }; then
8116  eval "$as_ac_Header=yes"
8117else
8118  echo "$as_me: failed program was:" >&5
8119sed 's/^/| /' conftest.$ac_ext >&5
8120
8121eval "$as_ac_Header=no"
8122fi
8123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8124fi
8125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8127if test `eval echo '${'$as_ac_Header'}'` = yes; then
8128  cat >>confdefs.h <<_ACEOF
8129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8130_ACEOF
8131
8132fi
8133
8134done
8135
8136
8137
8138for ac_header in dlfcn.h
8139do
8140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8141if eval "test \"\${$as_ac_Header+set}\" = set"; then
8142  echo "$as_me:$LINENO: checking for $ac_header" >&5
8143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8144if eval "test \"\${$as_ac_Header+set}\" = set"; then
8145  echo $ECHO_N "(cached) $ECHO_C" >&6
8146fi
8147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8149else
8150  # Is the header compilable?
8151echo "$as_me:$LINENO: checking $ac_header usability" >&5
8152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8153cat >conftest.$ac_ext <<_ACEOF
8154/* confdefs.h.  */
8155_ACEOF
8156cat confdefs.h >>conftest.$ac_ext
8157cat >>conftest.$ac_ext <<_ACEOF
8158/* end confdefs.h.  */
8159$ac_includes_default
8160#include <$ac_header>
8161_ACEOF
8162rm -f conftest.$ac_objext
8163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8164  (eval $ac_compile) 2>conftest.er1
8165  ac_status=$?
8166  grep -v '^ *+' conftest.er1 >conftest.err
8167  rm -f conftest.er1
8168  cat conftest.err >&5
8169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170  (exit $ac_status); } &&
8171	 { ac_try='test -z "$ac_c_werror_flag"
8172			 || test ! -s conftest.err'
8173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174  (eval $ac_try) 2>&5
8175  ac_status=$?
8176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177  (exit $ac_status); }; } &&
8178	 { ac_try='test -s conftest.$ac_objext'
8179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180  (eval $ac_try) 2>&5
8181  ac_status=$?
8182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183  (exit $ac_status); }; }; then
8184  ac_header_compiler=yes
8185else
8186  echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189ac_header_compiler=no
8190fi
8191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8192echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8193echo "${ECHO_T}$ac_header_compiler" >&6
8194
8195# Is the header present?
8196echo "$as_me:$LINENO: checking $ac_header presence" >&5
8197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8198cat >conftest.$ac_ext <<_ACEOF
8199/* confdefs.h.  */
8200_ACEOF
8201cat confdefs.h >>conftest.$ac_ext
8202cat >>conftest.$ac_ext <<_ACEOF
8203/* end confdefs.h.  */
8204#include <$ac_header>
8205_ACEOF
8206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8207  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8208  ac_status=$?
8209  grep -v '^ *+' conftest.er1 >conftest.err
8210  rm -f conftest.er1
8211  cat conftest.err >&5
8212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213  (exit $ac_status); } >/dev/null; then
8214  if test -s conftest.err; then
8215    ac_cpp_err=$ac_c_preproc_warn_flag
8216    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8217  else
8218    ac_cpp_err=
8219  fi
8220else
8221  ac_cpp_err=yes
8222fi
8223if test -z "$ac_cpp_err"; then
8224  ac_header_preproc=yes
8225else
8226  echo "$as_me: failed program was:" >&5
8227sed 's/^/| /' conftest.$ac_ext >&5
8228
8229  ac_header_preproc=no
8230fi
8231rm -f conftest.err conftest.$ac_ext
8232echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8233echo "${ECHO_T}$ac_header_preproc" >&6
8234
8235# So?  What about this header?
8236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8237  yes:no: )
8238    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8240    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8242    ac_header_preproc=yes
8243    ;;
8244  no:yes:* )
8245    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8247    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8248echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8249    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8251    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8252echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8253    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8255    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8257    (
8258      cat <<\_ASBOX
8259## ----------------------------------------------------------------- ##
8260## Report this to https://github.com/aykutbulut/CGL-CONIC/issues/new ##
8261## ----------------------------------------------------------------- ##
8262_ASBOX
8263    ) |
8264      sed "s/^/$as_me: WARNING:     /" >&2
8265    ;;
8266esac
8267echo "$as_me:$LINENO: checking for $ac_header" >&5
8268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8269if eval "test \"\${$as_ac_Header+set}\" = set"; then
8270  echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272  eval "$as_ac_Header=\$ac_header_preproc"
8273fi
8274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8276
8277fi
8278if test `eval echo '${'$as_ac_Header'}'` = yes; then
8279  cat >>confdefs.h <<_ACEOF
8280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8281_ACEOF
8282
8283fi
8284
8285done
8286
8287
8288
8289if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8290    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8291    (test "X$CXX" != "Xg++"))) ; then
8292  ac_ext=cc
8293ac_cpp='$CXXCPP $CPPFLAGS'
8294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8297echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8298echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8299if test -z "$CXXCPP"; then
8300  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8301  echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303      # Double quotes because CXXCPP needs to be expanded
8304    for CXXCPP in "$CXX -E" "/lib/cpp"
8305    do
8306      ac_preproc_ok=false
8307for ac_cxx_preproc_warn_flag in '' yes
8308do
8309  # Use a header file that comes with gcc, so configuring glibc
8310  # with a fresh cross-compiler works.
8311  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8312  # <limits.h> exists even on freestanding compilers.
8313  # On the NeXT, cc -E runs the code through the compiler's parser,
8314  # not just through cpp. "Syntax error" is here to catch this case.
8315  cat >conftest.$ac_ext <<_ACEOF
8316/* confdefs.h.  */
8317_ACEOF
8318cat confdefs.h >>conftest.$ac_ext
8319cat >>conftest.$ac_ext <<_ACEOF
8320/* end confdefs.h.  */
8321#ifdef __STDC__
8322# include <limits.h>
8323#else
8324# include <assert.h>
8325#endif
8326		     Syntax error
8327_ACEOF
8328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8329  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8330  ac_status=$?
8331  grep -v '^ *+' conftest.er1 >conftest.err
8332  rm -f conftest.er1
8333  cat conftest.err >&5
8334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335  (exit $ac_status); } >/dev/null; then
8336  if test -s conftest.err; then
8337    ac_cpp_err=$ac_cxx_preproc_warn_flag
8338    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8339  else
8340    ac_cpp_err=
8341  fi
8342else
8343  ac_cpp_err=yes
8344fi
8345if test -z "$ac_cpp_err"; then
8346  :
8347else
8348  echo "$as_me: failed program was:" >&5
8349sed 's/^/| /' conftest.$ac_ext >&5
8350
8351  # Broken: fails on valid input.
8352continue
8353fi
8354rm -f conftest.err conftest.$ac_ext
8355
8356  # OK, works on sane cases.  Now check whether non-existent headers
8357  # can be detected and how.
8358  cat >conftest.$ac_ext <<_ACEOF
8359/* confdefs.h.  */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h.  */
8364#include <ac_nonexistent.h>
8365_ACEOF
8366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8367  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8368  ac_status=$?
8369  grep -v '^ *+' conftest.er1 >conftest.err
8370  rm -f conftest.er1
8371  cat conftest.err >&5
8372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373  (exit $ac_status); } >/dev/null; then
8374  if test -s conftest.err; then
8375    ac_cpp_err=$ac_cxx_preproc_warn_flag
8376    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8377  else
8378    ac_cpp_err=
8379  fi
8380else
8381  ac_cpp_err=yes
8382fi
8383if test -z "$ac_cpp_err"; then
8384  # Broken: success on invalid input.
8385continue
8386else
8387  echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390  # Passes both tests.
8391ac_preproc_ok=:
8392break
8393fi
8394rm -f conftest.err conftest.$ac_ext
8395
8396done
8397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8398rm -f conftest.err conftest.$ac_ext
8399if $ac_preproc_ok; then
8400  break
8401fi
8402
8403    done
8404    ac_cv_prog_CXXCPP=$CXXCPP
8405
8406fi
8407  CXXCPP=$ac_cv_prog_CXXCPP
8408else
8409  ac_cv_prog_CXXCPP=$CXXCPP
8410fi
8411echo "$as_me:$LINENO: result: $CXXCPP" >&5
8412echo "${ECHO_T}$CXXCPP" >&6
8413ac_preproc_ok=false
8414for ac_cxx_preproc_warn_flag in '' yes
8415do
8416  # Use a header file that comes with gcc, so configuring glibc
8417  # with a fresh cross-compiler works.
8418  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8419  # <limits.h> exists even on freestanding compilers.
8420  # On the NeXT, cc -E runs the code through the compiler's parser,
8421  # not just through cpp. "Syntax error" is here to catch this case.
8422  cat >conftest.$ac_ext <<_ACEOF
8423/* confdefs.h.  */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h.  */
8428#ifdef __STDC__
8429# include <limits.h>
8430#else
8431# include <assert.h>
8432#endif
8433		     Syntax error
8434_ACEOF
8435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8436  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8437  ac_status=$?
8438  grep -v '^ *+' conftest.er1 >conftest.err
8439  rm -f conftest.er1
8440  cat conftest.err >&5
8441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442  (exit $ac_status); } >/dev/null; then
8443  if test -s conftest.err; then
8444    ac_cpp_err=$ac_cxx_preproc_warn_flag
8445    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8446  else
8447    ac_cpp_err=
8448  fi
8449else
8450  ac_cpp_err=yes
8451fi
8452if test -z "$ac_cpp_err"; then
8453  :
8454else
8455  echo "$as_me: failed program was:" >&5
8456sed 's/^/| /' conftest.$ac_ext >&5
8457
8458  # Broken: fails on valid input.
8459continue
8460fi
8461rm -f conftest.err conftest.$ac_ext
8462
8463  # OK, works on sane cases.  Now check whether non-existent headers
8464  # can be detected and how.
8465  cat >conftest.$ac_ext <<_ACEOF
8466/* confdefs.h.  */
8467_ACEOF
8468cat confdefs.h >>conftest.$ac_ext
8469cat >>conftest.$ac_ext <<_ACEOF
8470/* end confdefs.h.  */
8471#include <ac_nonexistent.h>
8472_ACEOF
8473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8474  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8475  ac_status=$?
8476  grep -v '^ *+' conftest.er1 >conftest.err
8477  rm -f conftest.er1
8478  cat conftest.err >&5
8479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480  (exit $ac_status); } >/dev/null; then
8481  if test -s conftest.err; then
8482    ac_cpp_err=$ac_cxx_preproc_warn_flag
8483    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8484  else
8485    ac_cpp_err=
8486  fi
8487else
8488  ac_cpp_err=yes
8489fi
8490if test -z "$ac_cpp_err"; then
8491  # Broken: success on invalid input.
8492continue
8493else
8494  echo "$as_me: failed program was:" >&5
8495sed 's/^/| /' conftest.$ac_ext >&5
8496
8497  # Passes both tests.
8498ac_preproc_ok=:
8499break
8500fi
8501rm -f conftest.err conftest.$ac_ext
8502
8503done
8504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8505rm -f conftest.err conftest.$ac_ext
8506if $ac_preproc_ok; then
8507  :
8508else
8509  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8510See \`config.log' for more details." >&5
8511echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8512See \`config.log' for more details." >&2;}
8513   { (exit 1); exit 1; }; }
8514fi
8515
8516ac_ext=cc
8517ac_cpp='$CXXCPP $CPPFLAGS'
8518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8521
8522fi
8523
8524
8525# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8526
8527# find the maximum length of command line arguments
8528echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8529echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8530if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8531  echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533    i=0
8534  teststring="ABCD"
8535
8536  case $build_os in
8537  msdosdjgpp*)
8538    # On DJGPP, this test can blow up pretty badly due to problems in libc
8539    # (any single argument exceeding 2000 bytes causes a buffer overrun
8540    # during glob expansion).  Even if it were fixed, the result of this
8541    # check would be larger than it should be.
8542    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8543    ;;
8544
8545  gnu*)
8546    # Under GNU Hurd, this test is not required because there is
8547    # no limit to the length of command line arguments.
8548    # Libtool will interpret -1 as no limit whatsoever
8549    lt_cv_sys_max_cmd_len=-1;
8550    ;;
8551
8552  cygwin* | mingw*)
8553    # On Win9x/ME, this test blows up -- it succeeds, but takes
8554    # about 5 minutes as the teststring grows exponentially.
8555    # Worse, since 9x/ME are not pre-emptively multitasking,
8556    # you end up with a "frozen" computer, even though with patience
8557    # the test eventually succeeds (with a max line length of 256k).
8558    # Instead, let's just punt: use the minimum linelength reported by
8559    # all of the supported platforms: 8192 (on NT/2K/XP).
8560    lt_cv_sys_max_cmd_len=8192;
8561    ;;
8562
8563  amigaos*)
8564    # On AmigaOS with pdksh, this test takes hours, literally.
8565    # So we just punt and use a minimum line length of 8192.
8566    lt_cv_sys_max_cmd_len=8192;
8567    ;;
8568
8569  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8570    # This has been around since 386BSD, at least.  Likely further.
8571    if test -x /sbin/sysctl; then
8572      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8573    elif test -x /usr/sbin/sysctl; then
8574      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8575    else
8576      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8577    fi
8578    # And add a safety zone
8579    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8580    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8581    ;;
8582
8583  interix*)
8584    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8585    lt_cv_sys_max_cmd_len=196608
8586    ;;
8587
8588  osf*)
8589    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8590    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8591    # nice to cause kernel panics so lets avoid the loop below.
8592    # First set a reasonable default.
8593    lt_cv_sys_max_cmd_len=16384
8594    #
8595    if test -x /sbin/sysconfig; then
8596      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8597        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8598      esac
8599    fi
8600    ;;
8601  sco3.2v5*)
8602    lt_cv_sys_max_cmd_len=102400
8603    ;;
8604  sysv5* | sco5v6* | sysv4.2uw2*)
8605    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8606    if test -n "$kargmax"; then
8607      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
8608    else
8609      lt_cv_sys_max_cmd_len=32768
8610    fi
8611    ;;
8612  *)
8613    # If test is not a shell built-in, we'll probably end up computing a
8614    # maximum length that is only half of the actual maximum length, but
8615    # we can't tell.
8616    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8617    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8618	       = "XX$teststring") >/dev/null 2>&1 &&
8619	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
8620	    lt_cv_sys_max_cmd_len=$new_result &&
8621	    test $i != 17 # 1/2 MB should be enough
8622    do
8623      i=`expr $i + 1`
8624      teststring=$teststring$teststring
8625    done
8626    teststring=
8627    # Add a significant safety factor because C++ compilers can tack on massive
8628    # amounts of additional arguments before passing them to the linker.
8629    # It appears as though 1/2 is a usable value.
8630    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8631    ;;
8632  esac
8633
8634fi
8635
8636if test -n $lt_cv_sys_max_cmd_len ; then
8637  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8638echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8639else
8640  echo "$as_me:$LINENO: result: none" >&5
8641echo "${ECHO_T}none" >&6
8642fi
8643
8644
8645
8646
8647# Check for command to grab the raw symbol name followed by C symbol from nm.
8648echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8649echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8650if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8651  echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653
8654# These are sane defaults that work on at least a few old systems.
8655# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8656
8657# Character class describing NM global symbol codes.
8658symcode='[BCDEGRST]'
8659
8660# Regexp to match symbols that can be accessed directly from C.
8661sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8662
8663# Transform an extracted symbol line into a proper C declaration
8664lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8665
8666# Transform an extracted symbol line into symbol name and symbol address
8667lt_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'"
8668
8669# Define system-specific variables.
8670case $host_os in
8671aix*)
8672  symcode='[BCDT]'
8673  ;;
8674cygwin* | mingw* | pw32*)
8675  symcode='[ABCDGISTW]'
8676  ;;
8677hpux*) # Its linker distinguishes data from code symbols
8678  if test "$host_cpu" = ia64; then
8679    symcode='[ABCDEGRST]'
8680  fi
8681  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8682  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'"
8683  ;;
8684linux*)
8685  if test "$host_cpu" = ia64; then
8686    symcode='[ABCDGIRSTW]'
8687    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8688    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'"
8689  fi
8690  ;;
8691irix* | nonstopux*)
8692  symcode='[BCDEGRST]'
8693  ;;
8694osf*)
8695  symcode='[BCDEGQRST]'
8696  ;;
8697solaris*)
8698  symcode='[BDRT]'
8699  ;;
8700sco3.2v5*)
8701  symcode='[DT]'
8702  ;;
8703sysv4.2uw2*)
8704  symcode='[DT]'
8705  ;;
8706sysv5* | sco5v6* | unixware* | OpenUNIX*)
8707  symcode='[ABDT]'
8708  ;;
8709sysv4)
8710  symcode='[DFNSTU]'
8711  ;;
8712esac
8713
8714# Handle CRLF in mingw tool chain
8715opt_cr=
8716case $build_os in
8717mingw*)
8718  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8719  ;;
8720esac
8721
8722# If we're using GNU nm, then use its standard symbol codes.
8723case `$NM -V 2>&1` in
8724*GNU* | *'with BFD'*)
8725  symcode='[ABCDGIRSTW]' ;;
8726esac
8727
8728# Try without a prefix undercore, then with it.
8729for ac_symprfx in "" "_"; do
8730
8731  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8732  symxfrm="\\1 $ac_symprfx\\2 \\2"
8733
8734  # Write the raw and C identifiers.
8735  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8736
8737  # Check to see that the pipe works correctly.
8738  pipe_works=no
8739
8740  rm -f conftest*
8741  cat > conftest.$ac_ext <<EOF
8742#ifdef __cplusplus
8743extern "C" {
8744#endif
8745char nm_test_var;
8746void nm_test_func(){}
8747#ifdef __cplusplus
8748}
8749#endif
8750int main(){nm_test_var='a';nm_test_func();return(0);}
8751EOF
8752
8753  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754  (eval $ac_compile) 2>&5
8755  ac_status=$?
8756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757  (exit $ac_status); }; then
8758    # Now try to grab the symbols.
8759    nlist=conftest.nm
8760    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8761  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8762  ac_status=$?
8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); } && test -s "$nlist"; then
8765      # Try sorting and uniquifying the output.
8766      if sort "$nlist" | uniq > "$nlist"T; then
8767	mv -f "$nlist"T "$nlist"
8768      else
8769	rm -f "$nlist"T
8770      fi
8771
8772      # Make sure that we snagged all the symbols we need.
8773      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8774	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8775	  cat <<EOF > conftest.$ac_ext
8776#ifdef __cplusplus
8777extern "C" {
8778#endif
8779
8780EOF
8781	  # Now generate the symbol file.
8782	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8783
8784	  cat <<EOF >> conftest.$ac_ext
8785#if defined (__STDC__) && __STDC__
8786# define lt_ptr_t void *
8787#else
8788# define lt_ptr_t char *
8789# define const
8790#endif
8791
8792/* The mapping between symbol names and symbols. */
8793const struct {
8794  const char *name;
8795  lt_ptr_t address;
8796}
8797lt_preloaded_symbols[] =
8798{
8799EOF
8800	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8801	  cat <<\EOF >> conftest.$ac_ext
8802  {0, (lt_ptr_t) 0}
8803};
8804
8805#ifdef __cplusplus
8806}
8807#endif
8808EOF
8809	  # Now try linking the two files.
8810	  mv conftest.$ac_objext conftstm.$ac_objext
8811	  lt_save_LIBS="$LIBS"
8812	  lt_save_CFLAGS="$CFLAGS"
8813	  LIBS="conftstm.$ac_objext"
8814	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8815	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816  (eval $ac_link) 2>&5
8817  ac_status=$?
8818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8820	    pipe_works=yes
8821	  fi
8822	  LIBS="$lt_save_LIBS"
8823	  CFLAGS="$lt_save_CFLAGS"
8824	else
8825	  echo "cannot find nm_test_func in $nlist" >&5
8826	fi
8827      else
8828	echo "cannot find nm_test_var in $nlist" >&5
8829      fi
8830    else
8831      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8832    fi
8833  else
8834    echo "$progname: failed program was:" >&5
8835    cat conftest.$ac_ext >&5
8836  fi
8837  rm -f conftest* conftst*
8838
8839  # Do not use the global_symbol_pipe unless it works.
8840  if test "$pipe_works" = yes; then
8841    break
8842  else
8843    lt_cv_sys_global_symbol_pipe=
8844  fi
8845done
8846
8847fi
8848
8849if test -z "$lt_cv_sys_global_symbol_pipe"; then
8850  lt_cv_sys_global_symbol_to_cdecl=
8851fi
8852if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8853  echo "$as_me:$LINENO: result: failed" >&5
8854echo "${ECHO_T}failed" >&6
8855else
8856  echo "$as_me:$LINENO: result: ok" >&5
8857echo "${ECHO_T}ok" >&6
8858fi
8859
8860echo "$as_me:$LINENO: checking for objdir" >&5
8861echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8862if test "${lt_cv_objdir+set}" = set; then
8863  echo $ECHO_N "(cached) $ECHO_C" >&6
8864else
8865  rm -f .libs 2>/dev/null
8866mkdir .libs 2>/dev/null
8867if test -d .libs; then
8868  lt_cv_objdir=.libs
8869else
8870  # MS-DOS does not allow filenames that begin with a dot.
8871  lt_cv_objdir=_libs
8872fi
8873rmdir .libs 2>/dev/null
8874fi
8875echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8876echo "${ECHO_T}$lt_cv_objdir" >&6
8877objdir=$lt_cv_objdir
8878
8879
8880
8881
8882
8883case $host_os in
8884aix3*)
8885  # AIX sometimes has problems with the GCC collect2 program.  For some
8886  # reason, if we set the COLLECT_NAMES environment variable, the problems
8887  # vanish in a puff of smoke.
8888  if test "X${COLLECT_NAMES+set}" != Xset; then
8889    COLLECT_NAMES=
8890    export COLLECT_NAMES
8891  fi
8892  ;;
8893esac
8894
8895# Sed substitution that helps us do robust quoting.  It backslashifies
8896# metacharacters that are still active within double-quoted strings.
8897Xsed='sed -e 1s/^X//'
8898sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8899
8900# Same as above, but do not quote variable references.
8901double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8902
8903# Sed substitution to delay expansion of an escaped shell variable in a
8904# double_quote_subst'ed string.
8905delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8906
8907# Sed substitution to avoid accidental globbing in evaled expressions
8908no_glob_subst='s/\*/\\\*/g'
8909
8910# Constants:
8911rm="rm -f"
8912
8913# Global variables:
8914default_ofile=libtool
8915can_build_shared=yes
8916
8917# All known linkers require a `.a' archive for static linking (except MSVC,
8918# which needs '.lib').
8919libext=a
8920ltmain="$ac_aux_dir/ltmain.sh"
8921ofile="$default_ofile"
8922with_gnu_ld="$lt_cv_prog_gnu_ld"
8923
8924if test -n "$ac_tool_prefix"; then
8925  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8926set dummy ${ac_tool_prefix}ar; ac_word=$2
8927echo "$as_me:$LINENO: checking for $ac_word" >&5
8928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8929if test "${ac_cv_prog_AR+set}" = set; then
8930  echo $ECHO_N "(cached) $ECHO_C" >&6
8931else
8932  if test -n "$AR"; then
8933  ac_cv_prog_AR="$AR" # Let the user override the test.
8934else
8935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936for as_dir in $PATH
8937do
8938  IFS=$as_save_IFS
8939  test -z "$as_dir" && as_dir=.
8940  for ac_exec_ext in '' $ac_executable_extensions; do
8941  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8942    ac_cv_prog_AR="${ac_tool_prefix}ar"
8943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8944    break 2
8945  fi
8946done
8947done
8948
8949fi
8950fi
8951AR=$ac_cv_prog_AR
8952if test -n "$AR"; then
8953  echo "$as_me:$LINENO: result: $AR" >&5
8954echo "${ECHO_T}$AR" >&6
8955else
8956  echo "$as_me:$LINENO: result: no" >&5
8957echo "${ECHO_T}no" >&6
8958fi
8959
8960fi
8961if test -z "$ac_cv_prog_AR"; then
8962  ac_ct_AR=$AR
8963  # Extract the first word of "ar", so it can be a program name with args.
8964set dummy ar; ac_word=$2
8965echo "$as_me:$LINENO: checking for $ac_word" >&5
8966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8967if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8968  echo $ECHO_N "(cached) $ECHO_C" >&6
8969else
8970  if test -n "$ac_ct_AR"; then
8971  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8972else
8973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974for as_dir in $PATH
8975do
8976  IFS=$as_save_IFS
8977  test -z "$as_dir" && as_dir=.
8978  for ac_exec_ext in '' $ac_executable_extensions; do
8979  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980    ac_cv_prog_ac_ct_AR="ar"
8981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8982    break 2
8983  fi
8984done
8985done
8986
8987  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8988fi
8989fi
8990ac_ct_AR=$ac_cv_prog_ac_ct_AR
8991if test -n "$ac_ct_AR"; then
8992  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8993echo "${ECHO_T}$ac_ct_AR" >&6
8994else
8995  echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997fi
8998
8999  AR=$ac_ct_AR
9000else
9001  AR="$ac_cv_prog_AR"
9002fi
9003
9004if test -n "$ac_tool_prefix"; then
9005  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9006set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9007echo "$as_me:$LINENO: checking for $ac_word" >&5
9008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9009if test "${ac_cv_prog_RANLIB+set}" = set; then
9010  echo $ECHO_N "(cached) $ECHO_C" >&6
9011else
9012  if test -n "$RANLIB"; then
9013  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9014else
9015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016for as_dir in $PATH
9017do
9018  IFS=$as_save_IFS
9019  test -z "$as_dir" && as_dir=.
9020  for ac_exec_ext in '' $ac_executable_extensions; do
9021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9022    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9024    break 2
9025  fi
9026done
9027done
9028
9029fi
9030fi
9031RANLIB=$ac_cv_prog_RANLIB
9032if test -n "$RANLIB"; then
9033  echo "$as_me:$LINENO: result: $RANLIB" >&5
9034echo "${ECHO_T}$RANLIB" >&6
9035else
9036  echo "$as_me:$LINENO: result: no" >&5
9037echo "${ECHO_T}no" >&6
9038fi
9039
9040fi
9041if test -z "$ac_cv_prog_RANLIB"; then
9042  ac_ct_RANLIB=$RANLIB
9043  # Extract the first word of "ranlib", so it can be a program name with args.
9044set dummy ranlib; ac_word=$2
9045echo "$as_me:$LINENO: checking for $ac_word" >&5
9046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9047if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9048  echo $ECHO_N "(cached) $ECHO_C" >&6
9049else
9050  if test -n "$ac_ct_RANLIB"; then
9051  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9052else
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056  IFS=$as_save_IFS
9057  test -z "$as_dir" && as_dir=.
9058  for ac_exec_ext in '' $ac_executable_extensions; do
9059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060    ac_cv_prog_ac_ct_RANLIB="ranlib"
9061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062    break 2
9063  fi
9064done
9065done
9066
9067  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9068fi
9069fi
9070ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9071if test -n "$ac_ct_RANLIB"; then
9072  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9073echo "${ECHO_T}$ac_ct_RANLIB" >&6
9074else
9075  echo "$as_me:$LINENO: result: no" >&5
9076echo "${ECHO_T}no" >&6
9077fi
9078
9079  RANLIB=$ac_ct_RANLIB
9080else
9081  RANLIB="$ac_cv_prog_RANLIB"
9082fi
9083
9084if test -n "$ac_tool_prefix"; then
9085  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9086set dummy ${ac_tool_prefix}strip; ac_word=$2
9087echo "$as_me:$LINENO: checking for $ac_word" >&5
9088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9089if test "${ac_cv_prog_STRIP+set}" = set; then
9090  echo $ECHO_N "(cached) $ECHO_C" >&6
9091else
9092  if test -n "$STRIP"; then
9093  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9094else
9095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096for as_dir in $PATH
9097do
9098  IFS=$as_save_IFS
9099  test -z "$as_dir" && as_dir=.
9100  for ac_exec_ext in '' $ac_executable_extensions; do
9101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9102    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9104    break 2
9105  fi
9106done
9107done
9108
9109fi
9110fi
9111STRIP=$ac_cv_prog_STRIP
9112if test -n "$STRIP"; then
9113  echo "$as_me:$LINENO: result: $STRIP" >&5
9114echo "${ECHO_T}$STRIP" >&6
9115else
9116  echo "$as_me:$LINENO: result: no" >&5
9117echo "${ECHO_T}no" >&6
9118fi
9119
9120fi
9121if test -z "$ac_cv_prog_STRIP"; then
9122  ac_ct_STRIP=$STRIP
9123  # Extract the first word of "strip", so it can be a program name with args.
9124set dummy strip; ac_word=$2
9125echo "$as_me:$LINENO: checking for $ac_word" >&5
9126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9127if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9128  echo $ECHO_N "(cached) $ECHO_C" >&6
9129else
9130  if test -n "$ac_ct_STRIP"; then
9131  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9132else
9133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134for as_dir in $PATH
9135do
9136  IFS=$as_save_IFS
9137  test -z "$as_dir" && as_dir=.
9138  for ac_exec_ext in '' $ac_executable_extensions; do
9139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9140    ac_cv_prog_ac_ct_STRIP="strip"
9141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9142    break 2
9143  fi
9144done
9145done
9146
9147  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9148fi
9149fi
9150ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9151if test -n "$ac_ct_STRIP"; then
9152  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9153echo "${ECHO_T}$ac_ct_STRIP" >&6
9154else
9155  echo "$as_me:$LINENO: result: no" >&5
9156echo "${ECHO_T}no" >&6
9157fi
9158
9159  STRIP=$ac_ct_STRIP
9160else
9161  STRIP="$ac_cv_prog_STRIP"
9162fi
9163
9164
9165old_CC="$CC"
9166old_CFLAGS="$CFLAGS"
9167
9168# Set sane defaults for various variables
9169test -z "$AR" && AR=ar
9170test -z "$AR_FLAGS" && AR_FLAGS=cru
9171test -z "$AS" && AS=as
9172test -z "$CC" && CC=cc
9173test -z "$LTCC" && LTCC=$CC
9174test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9175test -z "$DLLTOOL" && DLLTOOL=dlltool
9176test -z "$LD" && LD=ld
9177test -z "$LN_S" && LN_S="ln -s"
9178test -z "$MAGIC_CMD" && MAGIC_CMD=file
9179test -z "$NM" && NM=nm
9180test -z "$SED" && SED=sed
9181test -z "$OBJDUMP" && OBJDUMP=objdump
9182test -z "$RANLIB" && RANLIB=:
9183test -z "$STRIP" && STRIP=:
9184test -z "$ac_objext" && ac_objext=o
9185
9186# Determine commands to create old-style static archives.
9187old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9188old_postinstall_cmds='chmod 644 $oldlib'
9189old_postuninstall_cmds=
9190
9191if test -n "$RANLIB"; then
9192  case $host_os in
9193  openbsd*)
9194    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9195    ;;
9196  *)
9197    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9198    ;;
9199  esac
9200  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9201fi
9202
9203for cc_temp in $compiler""; do
9204  case $cc_temp in
9205    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9206    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9207    \-*) ;;
9208    *) break;;
9209  esac
9210done
9211cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9212
9213
9214# Only perform the check for file, if the check method requires it
9215case $deplibs_check_method in
9216file_magic*)
9217  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9218    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9219echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9220if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9221  echo $ECHO_N "(cached) $ECHO_C" >&6
9222else
9223  case $MAGIC_CMD in
9224[\\/*] |  ?:[\\/]*)
9225  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9226  ;;
9227*)
9228  lt_save_MAGIC_CMD="$MAGIC_CMD"
9229  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9230  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9231  for ac_dir in $ac_dummy; do
9232    IFS="$lt_save_ifs"
9233    test -z "$ac_dir" && ac_dir=.
9234    if test -f $ac_dir/${ac_tool_prefix}file; then
9235      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9236      if test -n "$file_magic_test_file"; then
9237	case $deplibs_check_method in
9238	"file_magic "*)
9239	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9240	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9241	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9242	    $EGREP "$file_magic_regex" > /dev/null; then
9243	    :
9244	  else
9245	    cat <<EOF 1>&2
9246
9247*** Warning: the command libtool uses to detect shared libraries,
9248*** $file_magic_cmd, produces output that libtool cannot recognize.
9249*** The result is that libtool may fail to recognize shared libraries
9250*** as such.  This will affect the creation of libtool libraries that
9251*** depend on shared libraries, but programs linked with such libtool
9252*** libraries will work regardless of this problem.  Nevertheless, you
9253*** may want to report the problem to your system manager and/or to
9254*** bug-libtool@gnu.org
9255
9256EOF
9257	  fi ;;
9258	esac
9259      fi
9260      break
9261    fi
9262  done
9263  IFS="$lt_save_ifs"
9264  MAGIC_CMD="$lt_save_MAGIC_CMD"
9265  ;;
9266esac
9267fi
9268
9269MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9270if test -n "$MAGIC_CMD"; then
9271  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9272echo "${ECHO_T}$MAGIC_CMD" >&6
9273else
9274  echo "$as_me:$LINENO: result: no" >&5
9275echo "${ECHO_T}no" >&6
9276fi
9277
9278if test -z "$lt_cv_path_MAGIC_CMD"; then
9279  if test -n "$ac_tool_prefix"; then
9280    echo "$as_me:$LINENO: checking for file" >&5
9281echo $ECHO_N "checking for file... $ECHO_C" >&6
9282if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9283  echo $ECHO_N "(cached) $ECHO_C" >&6
9284else
9285  case $MAGIC_CMD in
9286[\\/*] |  ?:[\\/]*)
9287  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9288  ;;
9289*)
9290  lt_save_MAGIC_CMD="$MAGIC_CMD"
9291  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9292  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9293  for ac_dir in $ac_dummy; do
9294    IFS="$lt_save_ifs"
9295    test -z "$ac_dir" && ac_dir=.
9296    if test -f $ac_dir/file; then
9297      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9298      if test -n "$file_magic_test_file"; then
9299	case $deplibs_check_method in
9300	"file_magic "*)
9301	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9302	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9303	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9304	    $EGREP "$file_magic_regex" > /dev/null; then
9305	    :
9306	  else
9307	    cat <<EOF 1>&2
9308
9309*** Warning: the command libtool uses to detect shared libraries,
9310*** $file_magic_cmd, produces output that libtool cannot recognize.
9311*** The result is that libtool may fail to recognize shared libraries
9312*** as such.  This will affect the creation of libtool libraries that
9313*** depend on shared libraries, but programs linked with such libtool
9314*** libraries will work regardless of this problem.  Nevertheless, you
9315*** may want to report the problem to your system manager and/or to
9316*** bug-libtool@gnu.org
9317
9318EOF
9319	  fi ;;
9320	esac
9321      fi
9322      break
9323    fi
9324  done
9325  IFS="$lt_save_ifs"
9326  MAGIC_CMD="$lt_save_MAGIC_CMD"
9327  ;;
9328esac
9329fi
9330
9331MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9332if test -n "$MAGIC_CMD"; then
9333  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9334echo "${ECHO_T}$MAGIC_CMD" >&6
9335else
9336  echo "$as_me:$LINENO: result: no" >&5
9337echo "${ECHO_T}no" >&6
9338fi
9339
9340  else
9341    MAGIC_CMD=:
9342  fi
9343fi
9344
9345  fi
9346  ;;
9347esac
9348
9349enable_dlopen=no
9350enable_win32_dll=no
9351
9352# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9353if test "${enable_libtool_lock+set}" = set; then
9354  enableval="$enable_libtool_lock"
9355
9356fi;
9357test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9358
9359
9360# Check whether --with-pic or --without-pic was given.
9361if test "${with_pic+set}" = set; then
9362  withval="$with_pic"
9363  pic_mode="$withval"
9364else
9365  pic_mode=default
9366fi;
9367test -z "$pic_mode" && pic_mode=default
9368
9369# Use C for the default configuration in the libtool script
9370tagname=
9371lt_save_CC="$CC"
9372ac_ext=c
9373ac_cpp='$CPP $CPPFLAGS'
9374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376ac_compiler_gnu=$ac_cv_c_compiler_gnu
9377
9378
9379# Source file extension for C test sources.
9380ac_ext=c
9381
9382# Object file extension for compiled C test sources.
9383objext=o
9384objext=$objext
9385
9386# Code to be used in simple compile tests
9387lt_simple_compile_test_code="int some_variable = 0;\n"
9388
9389# Code to be used in simple link tests
9390lt_simple_link_test_code='int main(){return(0);}\n'
9391
9392
9393# If no C compiler was specified, use CC.
9394LTCC=${LTCC-"$CC"}
9395
9396# If no C compiler flags were specified, use CFLAGS.
9397LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9398
9399# Allow CC to be a program name with arguments.
9400compiler=$CC
9401
9402
9403# save warnings/boilerplate of simple test code
9404ac_outfile=conftest.$ac_objext
9405printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9406eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9407_lt_compiler_boilerplate=`cat conftest.err`
9408$rm conftest*
9409
9410ac_outfile=conftest.$ac_objext
9411printf "$lt_simple_link_test_code" >conftest.$ac_ext
9412eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9413_lt_linker_boilerplate=`cat conftest.err`
9414$rm conftest*
9415
9416
9417## CAVEAT EMPTOR:
9418## There is no encapsulation within the following macros, do not change
9419## the running order or otherwise move them around unless you know exactly
9420## what you are doing...
9421
9422lt_prog_compiler_no_builtin_flag=
9423
9424if test "$GCC" = yes; then
9425  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9426
9427
9428echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9429echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9430if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9431  echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433  lt_cv_prog_compiler_rtti_exceptions=no
9434  ac_outfile=conftest.$ac_objext
9435   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9436   lt_compiler_flag="-fno-rtti -fno-exceptions"
9437   # Insert the option either (1) after the last *FLAGS variable, or
9438   # (2) before a word containing "conftest.", or (3) at the end.
9439   # Note that $ac_compile itself does not contain backslashes and begins
9440   # with a dollar sign (not a hyphen), so the echo should work correctly.
9441   # The option is referenced via a variable to avoid confusing sed.
9442   lt_compile=`echo "$ac_compile" | $SED \
9443   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9445   -e 's:$: $lt_compiler_flag:'`
9446   (eval echo "\"\$as_me:9446: $lt_compile\"" >&5)
9447   (eval "$lt_compile" 2>conftest.err)
9448   ac_status=$?
9449   cat conftest.err >&5
9450   echo "$as_me:9450: \$? = $ac_status" >&5
9451   if (exit $ac_status) && test -s "$ac_outfile"; then
9452     # The compiler can only warn and ignore the option if not recognized
9453     # So say no if there are warnings other than the usual output.
9454     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9455     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9456     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9457       lt_cv_prog_compiler_rtti_exceptions=yes
9458     fi
9459   fi
9460   $rm conftest*
9461
9462fi
9463echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9464echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9465
9466if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9467    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9468else
9469    :
9470fi
9471
9472fi
9473
9474lt_prog_compiler_wl=
9475lt_prog_compiler_pic=
9476lt_prog_compiler_static=
9477
9478echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9479echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9480
9481  if test "$GCC" = yes; then
9482    lt_prog_compiler_wl='-Wl,'
9483    lt_prog_compiler_static='-static'
9484
9485    case $host_os in
9486      aix*)
9487      # All AIX code is PIC.
9488      if test "$host_cpu" = ia64; then
9489	# AIX 5 now supports IA64 processor
9490	lt_prog_compiler_static='-Bstatic'
9491      fi
9492      ;;
9493
9494    amigaos*)
9495      # FIXME: we need at least 68020 code to build shared libraries, but
9496      # adding the `-m68020' flag to GCC prevents building anything better,
9497      # like `-m68040'.
9498      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9499      ;;
9500
9501    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9502      # PIC is the default for these OSes.
9503      ;;
9504
9505    mingw* | pw32* | os2*)
9506      # This hack is so that the source file can tell whether it is being
9507      # built for inclusion in a dll (and should export symbols for example).
9508      lt_prog_compiler_pic='-DDLL_EXPORT'
9509      ;;
9510
9511    darwin* | rhapsody*)
9512      # PIC is the default on this platform
9513      # Common symbols not allowed in MH_DYLIB files
9514      lt_prog_compiler_pic='-fno-common'
9515      ;;
9516
9517    interix3*)
9518      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9519      # Instead, we relocate shared libraries at runtime.
9520      ;;
9521
9522    msdosdjgpp*)
9523      # Just because we use GCC doesn't mean we suddenly get shared libraries
9524      # on systems that don't support them.
9525      lt_prog_compiler_can_build_shared=no
9526      enable_shared=no
9527      ;;
9528
9529    sysv4*MP*)
9530      if test -d /usr/nec; then
9531	lt_prog_compiler_pic=-Kconform_pic
9532      fi
9533      ;;
9534
9535    hpux*)
9536      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9537      # not for PA HP-UX.
9538      case $host_cpu in
9539      hppa*64*|ia64*)
9540	# +Z the default
9541	;;
9542      *)
9543	lt_prog_compiler_pic='-fPIC'
9544	;;
9545      esac
9546      ;;
9547
9548    *)
9549      lt_prog_compiler_pic='-fPIC'
9550      ;;
9551    esac
9552  else
9553    # PORTME Check for flag to pass linker flags through the system compiler.
9554    case $host_os in
9555    aix*)
9556      lt_prog_compiler_wl='-Wl,'
9557      if test "$host_cpu" = ia64; then
9558	# AIX 5 now supports IA64 processor
9559	lt_prog_compiler_static='-Bstatic'
9560      else
9561	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9562      fi
9563      ;;
9564      darwin*)
9565        # PIC is the default on this platform
9566        # Common symbols not allowed in MH_DYLIB files
9567       case $cc_basename in
9568         xlc*)
9569         lt_prog_compiler_pic='-qnocommon'
9570         lt_prog_compiler_wl='-Wl,'
9571         ;;
9572       esac
9573       ;;
9574
9575    mingw* | pw32* | os2*)
9576      # This hack is so that the source file can tell whether it is being
9577      # built for inclusion in a dll (and should export symbols for example).
9578      lt_prog_compiler_pic='-DDLL_EXPORT'
9579      ;;
9580
9581    hpux9* | hpux10* | hpux11*)
9582      lt_prog_compiler_wl='-Wl,'
9583      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9584      # not for PA HP-UX.
9585      case $host_cpu in
9586      hppa*64*|ia64*)
9587	# +Z the default
9588	;;
9589      *)
9590	lt_prog_compiler_pic='+Z'
9591	;;
9592      esac
9593      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9594      lt_prog_compiler_static='${wl}-a ${wl}archive'
9595      ;;
9596
9597    irix5* | irix6* | nonstopux*)
9598      lt_prog_compiler_wl='-Wl,'
9599      # PIC (with -KPIC) is the default.
9600      lt_prog_compiler_static='-non_shared'
9601      ;;
9602
9603    newsos6)
9604      lt_prog_compiler_pic='-KPIC'
9605      lt_prog_compiler_static='-Bstatic'
9606      ;;
9607
9608    linux*)
9609      case $cc_basename in
9610      icc* | ecc*)
9611	lt_prog_compiler_wl='-Wl,'
9612	lt_prog_compiler_pic='-KPIC'
9613	lt_prog_compiler_static='-static'
9614        ;;
9615      pgcc* | pgf77* | pgf90* | pgf95*)
9616        # Portland Group compilers (*not* the Pentium gcc compiler,
9617	# which looks to be a dead project)
9618	lt_prog_compiler_wl='-Wl,'
9619	lt_prog_compiler_pic='-fpic'
9620	lt_prog_compiler_static='-Bstatic'
9621        ;;
9622      ccc*)
9623        lt_prog_compiler_wl='-Wl,'
9624        # All Alpha code is PIC.
9625        lt_prog_compiler_static='-non_shared'
9626        ;;
9627      esac
9628      ;;
9629
9630    osf3* | osf4* | osf5*)
9631      lt_prog_compiler_wl='-Wl,'
9632      # All OSF/1 code is PIC.
9633      lt_prog_compiler_static='-non_shared'
9634      ;;
9635
9636    solaris*)
9637      lt_prog_compiler_pic='-KPIC'
9638      lt_prog_compiler_static='-Bstatic'
9639      case $cc_basename in
9640      f77* | f90* | f95*)
9641	lt_prog_compiler_wl='-Qoption ld ';;
9642      *)
9643	lt_prog_compiler_wl='-Wl,';;
9644      esac
9645      ;;
9646
9647    sunos4*)
9648      lt_prog_compiler_wl='-Qoption ld '
9649      lt_prog_compiler_pic='-PIC'
9650      lt_prog_compiler_static='-Bstatic'
9651      ;;
9652
9653    sysv4 | sysv4.2uw2* | sysv4.3*)
9654      lt_prog_compiler_wl='-Wl,'
9655      lt_prog_compiler_pic='-KPIC'
9656      lt_prog_compiler_static='-Bstatic'
9657      ;;
9658
9659    sysv4*MP*)
9660      if test -d /usr/nec ;then
9661	lt_prog_compiler_pic='-Kconform_pic'
9662	lt_prog_compiler_static='-Bstatic'
9663      fi
9664      ;;
9665
9666    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9667      lt_prog_compiler_wl='-Wl,'
9668      lt_prog_compiler_pic='-KPIC'
9669      lt_prog_compiler_static='-Bstatic'
9670      ;;
9671
9672    unicos*)
9673      lt_prog_compiler_wl='-Wl,'
9674      lt_prog_compiler_can_build_shared=no
9675      ;;
9676
9677    uts4*)
9678      lt_prog_compiler_pic='-pic'
9679      lt_prog_compiler_static='-Bstatic'
9680      ;;
9681
9682    *)
9683      lt_prog_compiler_can_build_shared=no
9684      ;;
9685    esac
9686  fi
9687
9688echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9689echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9690
9691#
9692# Check to make sure the PIC flag actually works.
9693#
9694if test -n "$lt_prog_compiler_pic"; then
9695
9696echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9697echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9698if test "${lt_prog_compiler_pic_works+set}" = set; then
9699  echo $ECHO_N "(cached) $ECHO_C" >&6
9700else
9701  lt_prog_compiler_pic_works=no
9702  ac_outfile=conftest.$ac_objext
9703   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9704   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9705   # Insert the option either (1) after the last *FLAGS variable, or
9706   # (2) before a word containing "conftest.", or (3) at the end.
9707   # Note that $ac_compile itself does not contain backslashes and begins
9708   # with a dollar sign (not a hyphen), so the echo should work correctly.
9709   # The option is referenced via a variable to avoid confusing sed.
9710   lt_compile=`echo "$ac_compile" | $SED \
9711   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9712   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9713   -e 's:$: $lt_compiler_flag:'`
9714   (eval echo "\"\$as_me:9714: $lt_compile\"" >&5)
9715   (eval "$lt_compile" 2>conftest.err)
9716   ac_status=$?
9717   cat conftest.err >&5
9718   echo "$as_me:9718: \$? = $ac_status" >&5
9719   if (exit $ac_status) && test -s "$ac_outfile"; then
9720     # The compiler can only warn and ignore the option if not recognized
9721     # So say no if there are warnings other than the usual output.
9722     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9723     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9724     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9725       lt_prog_compiler_pic_works=yes
9726     fi
9727   fi
9728   $rm conftest*
9729
9730fi
9731echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9732echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9733
9734if test x"$lt_prog_compiler_pic_works" = xyes; then
9735    case $lt_prog_compiler_pic in
9736     "" | " "*) ;;
9737     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9738     esac
9739else
9740    lt_prog_compiler_pic=
9741     lt_prog_compiler_can_build_shared=no
9742fi
9743
9744fi
9745case $host_os in
9746  # For platforms which do not support PIC, -DPIC is meaningless:
9747  *djgpp*)
9748    lt_prog_compiler_pic=
9749    ;;
9750  *)
9751    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9752    ;;
9753esac
9754
9755#
9756# Check to make sure the static flag actually works.
9757#
9758wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9759echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9760echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9761if test "${lt_prog_compiler_static_works+set}" = set; then
9762  echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764  lt_prog_compiler_static_works=no
9765   save_LDFLAGS="$LDFLAGS"
9766   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9767   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9768   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9769     # The linker can only warn and ignore the option if not recognized
9770     # So say no if there are warnings
9771     if test -s conftest.err; then
9772       # Append any errors to the config.log.
9773       cat conftest.err 1>&5
9774       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9775       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9776       if diff conftest.exp conftest.er2 >/dev/null; then
9777         lt_prog_compiler_static_works=yes
9778       fi
9779     else
9780       lt_prog_compiler_static_works=yes
9781     fi
9782   fi
9783   $rm conftest*
9784   LDFLAGS="$save_LDFLAGS"
9785
9786fi
9787echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9788echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9789
9790if test x"$lt_prog_compiler_static_works" = xyes; then
9791    :
9792else
9793    lt_prog_compiler_static=
9794fi
9795
9796
9797echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9798echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9799if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9800  echo $ECHO_N "(cached) $ECHO_C" >&6
9801else
9802  lt_cv_prog_compiler_c_o=no
9803   $rm -r conftest 2>/dev/null
9804   mkdir conftest
9805   cd conftest
9806   mkdir out
9807   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9808
9809   lt_compiler_flag="-o out/conftest2.$ac_objext"
9810   # Insert the option either (1) after the last *FLAGS variable, or
9811   # (2) before a word containing "conftest.", or (3) at the end.
9812   # Note that $ac_compile itself does not contain backslashes and begins
9813   # with a dollar sign (not a hyphen), so the echo should work correctly.
9814   lt_compile=`echo "$ac_compile" | $SED \
9815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9817   -e 's:$: $lt_compiler_flag:'`
9818   (eval echo "\"\$as_me:9818: $lt_compile\"" >&5)
9819   (eval "$lt_compile" 2>out/conftest.err)
9820   ac_status=$?
9821   cat out/conftest.err >&5
9822   echo "$as_me:9822: \$? = $ac_status" >&5
9823   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9824   then
9825     # The compiler can only warn and ignore the option if not recognized
9826     # So say no if there are warnings
9827     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9828     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9829     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9830       lt_cv_prog_compiler_c_o=yes
9831     fi
9832   fi
9833   chmod u+w . 2>&5
9834   $rm conftest*
9835   # SGI C++ compiler will create directory out/ii_files/ for
9836   # template instantiation
9837   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9838   $rm out/* && rmdir out
9839   cd ..
9840   rmdir conftest
9841   $rm conftest*
9842
9843fi
9844echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9845echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9846
9847
9848hard_links="nottested"
9849if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9850  # do not overwrite the value of need_locks provided by the user
9851  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9852echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9853  hard_links=yes
9854  $rm conftest*
9855  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9856  touch conftest.a
9857  ln conftest.a conftest.b 2>&5 || hard_links=no
9858  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9859  echo "$as_me:$LINENO: result: $hard_links" >&5
9860echo "${ECHO_T}$hard_links" >&6
9861  if test "$hard_links" = no; then
9862    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9863echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9864    need_locks=warn
9865  fi
9866else
9867  need_locks=no
9868fi
9869
9870echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9871echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9872
9873  runpath_var=
9874  allow_undefined_flag=
9875  enable_shared_with_static_runtimes=no
9876  archive_cmds=
9877  archive_expsym_cmds=
9878  old_archive_From_new_cmds=
9879  old_archive_from_expsyms_cmds=
9880  export_dynamic_flag_spec=
9881  whole_archive_flag_spec=
9882  thread_safe_flag_spec=
9883  hardcode_libdir_flag_spec=
9884  hardcode_libdir_flag_spec_ld=
9885  hardcode_libdir_separator=
9886  hardcode_direct=no
9887  hardcode_minus_L=no
9888  hardcode_shlibpath_var=unsupported
9889  link_all_deplibs=unknown
9890  hardcode_automatic=no
9891  module_cmds=
9892  module_expsym_cmds=
9893  always_export_symbols=no
9894  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9895  # include_expsyms should be a list of space-separated symbols to be *always*
9896  # included in the symbol list
9897  include_expsyms=
9898  # exclude_expsyms can be an extended regexp of symbols to exclude
9899  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9900  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9901  # as well as any symbol that contains `d'.
9902  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9903  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9904  # platforms (ab)use it in PIC code, but their linkers get confused if
9905  # the symbol is explicitly referenced.  Since portable code cannot
9906  # rely on this symbol name, it's probably fine to never include it in
9907  # preloaded symbol tables.
9908  extract_expsyms_cmds=
9909  # Just being paranoid about ensuring that cc_basename is set.
9910  for cc_temp in $compiler""; do
9911  case $cc_temp in
9912    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9913    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9914    \-*) ;;
9915    *) break;;
9916  esac
9917done
9918cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9919
9920  case $host_os in
9921  cygwin* | mingw* | pw32*)
9922    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9923    # When not using gcc, we currently assume that we are using
9924    # Microsoft Visual C++.
9925    if test "$GCC" != yes; then
9926      with_gnu_ld=no
9927    fi
9928    ;;
9929  interix*)
9930    # we just hope/assume this is gcc and not c89 (= MSVC++)
9931    with_gnu_ld=yes
9932    ;;
9933  openbsd*)
9934    with_gnu_ld=no
9935    ;;
9936  esac
9937
9938  ld_shlibs=yes
9939  if test "$with_gnu_ld" = yes; then
9940    # If archive_cmds runs LD, not CC, wlarc should be empty
9941    wlarc='${wl}'
9942
9943    # Set some defaults for GNU ld with shared library support. These
9944    # are reset later if shared libraries are not supported. Putting them
9945    # here allows them to be overridden if necessary.
9946    runpath_var=LD_RUN_PATH
9947    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9948    export_dynamic_flag_spec='${wl}--export-dynamic'
9949    # ancient GNU ld didn't support --whole-archive et. al.
9950    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9951	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9952      else
9953  	whole_archive_flag_spec=
9954    fi
9955    supports_anon_versioning=no
9956    case `$LD -v 2>/dev/null` in
9957      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9958      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9959      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9960      *\ 2.11.*) ;; # other 2.11 versions
9961      *) supports_anon_versioning=yes ;;
9962    esac
9963
9964    # See if GNU ld supports shared libraries.
9965    case $host_os in
9966    aix3* | aix4* | aix5*)
9967      # On AIX/PPC, the GNU linker is very broken
9968      if test "$host_cpu" != ia64; then
9969	ld_shlibs=no
9970	cat <<EOF 1>&2
9971
9972*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9973*** to be unable to reliably create shared libraries on AIX.
9974*** Therefore, libtool is disabling shared libraries support.  If you
9975*** really care for shared libraries, you may want to modify your PATH
9976*** so that a non-GNU linker is found, and then restart.
9977
9978EOF
9979      fi
9980      ;;
9981
9982    amigaos*)
9983      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)'
9984      hardcode_libdir_flag_spec='-L$libdir'
9985      hardcode_minus_L=yes
9986
9987      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9988      # that the semantics of dynamic libraries on AmigaOS, at least up
9989      # to version 4, is to share data among multiple programs linked
9990      # with the same dynamic library.  Since this doesn't match the
9991      # behavior of shared libraries on other platforms, we can't use
9992      # them.
9993      ld_shlibs=no
9994      ;;
9995
9996    beos*)
9997      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9998	allow_undefined_flag=unsupported
9999	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10000	# support --undefined.  This deserves some investigation.  FIXME
10001	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002      else
10003	ld_shlibs=no
10004      fi
10005      ;;
10006
10007    cygwin* | mingw* | pw32*)
10008      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10009      # as there is no search path for DLLs.
10010      hardcode_libdir_flag_spec='-L$libdir'
10011      allow_undefined_flag=unsupported
10012      always_export_symbols=no
10013      enable_shared_with_static_runtimes=yes
10014      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10015
10016      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10017        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10018	# If the export-symbols file already is a .def file (1st line
10019	# is EXPORTS), use it as is; otherwise, prepend...
10020	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10021	  cp $export_symbols $output_objdir/$soname.def;
10022	else
10023	  echo EXPORTS > $output_objdir/$soname.def;
10024	  cat $export_symbols >> $output_objdir/$soname.def;
10025	fi~
10026	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10027      else
10028	ld_shlibs=no
10029      fi
10030      ;;
10031
10032    interix3*)
10033      hardcode_direct=no
10034      hardcode_shlibpath_var=no
10035      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10036      export_dynamic_flag_spec='${wl}-E'
10037      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10038      # Instead, shared libraries are loaded at an image base (0x10000000 by
10039      # default) and relocated if they conflict, which is a slow very memory
10040      # consuming and fragmenting process.  To avoid this, we pick a random,
10041      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10042      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10043      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10044      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'
10045      ;;
10046
10047    linux*)
10048      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10049	tmp_addflag=
10050	case $cc_basename,$host_cpu in
10051	pgcc*)				# Portland Group C compiler
10052	  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'
10053	  tmp_addflag=' $pic_flag'
10054	  ;;
10055	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10056	  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'
10057	  tmp_addflag=' $pic_flag -Mnomain' ;;
10058	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
10059	  tmp_addflag=' -i_dynamic' ;;
10060	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10061	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10062	ifc* | ifort*)			# Intel Fortran compiler
10063	  tmp_addflag=' -nofor_main' ;;
10064	esac
10065	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066
10067	if test $supports_anon_versioning = yes; then
10068	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10069  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10070  $echo "local: *; };" >> $output_objdir/$libname.ver~
10071	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10072	fi
10073      else
10074	ld_shlibs=no
10075      fi
10076      ;;
10077
10078    netbsd*)
10079      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10080	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10081	wlarc=
10082      else
10083	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10085      fi
10086      ;;
10087
10088    solaris*)
10089      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10090	ld_shlibs=no
10091	cat <<EOF 1>&2
10092
10093*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10094*** create shared libraries on Solaris systems.  Therefore, libtool
10095*** is disabling shared libraries support.  We urge you to upgrade GNU
10096*** binutils to release 2.9.1 or newer.  Another option is to modify
10097*** your PATH or compiler configuration so that the native linker is
10098*** used, and then restart.
10099
10100EOF
10101      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10102	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10104      else
10105	ld_shlibs=no
10106      fi
10107      ;;
10108
10109    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10110      case `$LD -v 2>&1` in
10111        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10112	ld_shlibs=no
10113	cat <<_LT_EOF 1>&2
10114
10115*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10116*** reliably create shared libraries on SCO systems.  Therefore, libtool
10117*** is disabling shared libraries support.  We urge you to upgrade GNU
10118*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10119*** your PATH or compiler configuration so that the native linker is
10120*** used, and then restart.
10121
10122_LT_EOF
10123	;;
10124	*)
10125	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10126	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10127	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10128	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10129	  else
10130	    ld_shlibs=no
10131	  fi
10132	;;
10133      esac
10134      ;;
10135
10136    sunos4*)
10137      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10138      wlarc=
10139      hardcode_direct=yes
10140      hardcode_shlibpath_var=no
10141      ;;
10142
10143    *)
10144      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10145	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10147      else
10148	ld_shlibs=no
10149      fi
10150      ;;
10151    esac
10152
10153    if test "$ld_shlibs" = no; then
10154      runpath_var=
10155      hardcode_libdir_flag_spec=
10156      export_dynamic_flag_spec=
10157      whole_archive_flag_spec=
10158    fi
10159  else
10160    # PORTME fill in a description of your system's linker (not GNU ld)
10161    case $host_os in
10162    aix3*)
10163      allow_undefined_flag=unsupported
10164      always_export_symbols=yes
10165      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'
10166      # Note: this linker hardcodes the directories in LIBPATH if there
10167      # are no directories specified by -L.
10168      hardcode_minus_L=yes
10169      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10170	# Neither direct hardcoding nor static linking is supported with a
10171	# broken collect2.
10172	hardcode_direct=unsupported
10173      fi
10174      ;;
10175
10176    aix4* | aix5*)
10177      if test "$host_cpu" = ia64; then
10178	# On IA64, the linker does run time linking by default, so we don't
10179	# have to do anything special.
10180	aix_use_runtimelinking=no
10181	exp_sym_flag='-Bexport'
10182	no_entry_flag=""
10183      else
10184	# If we're using GNU nm, then we don't want the "-C" option.
10185	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10186	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10187	  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'
10188	else
10189	  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'
10190	fi
10191	aix_use_runtimelinking=no
10192
10193	# Test if we are trying to use run time linking or normal
10194	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10195	# need to do runtime linking.
10196	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10197	  for ld_flag in $LDFLAGS; do
10198  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10199  	    aix_use_runtimelinking=yes
10200  	    break
10201  	  fi
10202	  done
10203	  ;;
10204	esac
10205
10206	exp_sym_flag='-bexport'
10207	no_entry_flag='-bnoentry'
10208      fi
10209
10210      # When large executables or shared objects are built, AIX ld can
10211      # have problems creating the table of contents.  If linking a library
10212      # or program results in "error TOC overflow" add -mminimal-toc to
10213      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10214      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10215
10216      archive_cmds=''
10217      hardcode_direct=yes
10218      hardcode_libdir_separator=':'
10219      link_all_deplibs=yes
10220
10221      if test "$GCC" = yes; then
10222	case $host_os in aix4.[012]|aix4.[012].*)
10223	# We only want to do this on AIX 4.2 and lower, the check
10224	# below for broken collect2 doesn't work under 4.3+
10225	  collect2name=`${CC} -print-prog-name=collect2`
10226	  if test -f "$collect2name" && \
10227  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10228	  then
10229  	  # We have reworked collect2
10230  	  hardcode_direct=yes
10231	  else
10232  	  # We have old collect2
10233  	  hardcode_direct=unsupported
10234  	  # It fails to find uninstalled libraries when the uninstalled
10235  	  # path is not listed in the libpath.  Setting hardcode_minus_L
10236  	  # to unsupported forces relinking
10237  	  hardcode_minus_L=yes
10238  	  hardcode_libdir_flag_spec='-L$libdir'
10239  	  hardcode_libdir_separator=
10240	  fi
10241	  ;;
10242	esac
10243	shared_flag='-shared'
10244	if test "$aix_use_runtimelinking" = yes; then
10245	  shared_flag="$shared_flag "'${wl}-G'
10246	fi
10247      else
10248	# not using gcc
10249	if test "$host_cpu" = ia64; then
10250  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10251  	# chokes on -Wl,-G. The following line is correct:
10252	  shared_flag='-G'
10253	else
10254	  if test "$aix_use_runtimelinking" = yes; then
10255	    shared_flag='${wl}-G'
10256	  else
10257	    shared_flag='${wl}-bM:SRE'
10258	  fi
10259	fi
10260      fi
10261
10262      # It seems that -bexpall does not export symbols beginning with
10263      # underscore (_), so it is better to generate a list of symbols to export.
10264      always_export_symbols=yes
10265      if test "$aix_use_runtimelinking" = yes; then
10266	# Warning - without using the other runtime loading flags (-brtl),
10267	# -berok will link without error, but may produce a broken library.
10268	allow_undefined_flag='-berok'
10269       # Determine the default libpath from the value encoded in an empty executable.
10270       cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h.  */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h.  */
10276
10277#ifdef F77_DUMMY_MAIN
10278
10279#  ifdef __cplusplus
10280     extern "C"
10281#  endif
10282   int F77_DUMMY_MAIN() { return 1; }
10283
10284#endif
10285int
10286main ()
10287{
10288
10289  ;
10290  return 0;
10291}
10292_ACEOF
10293rm -f conftest.$ac_objext conftest$ac_exeext
10294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295  (eval $ac_link) 2>conftest.er1
10296  ac_status=$?
10297  grep -v '^ *+' conftest.er1 >conftest.err
10298  rm -f conftest.er1
10299  cat conftest.err >&5
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); } &&
10302	 { ac_try='test -z "$ac_c_werror_flag"
10303			 || test ! -s conftest.err'
10304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305  (eval $ac_try) 2>&5
10306  ac_status=$?
10307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308  (exit $ac_status); }; } &&
10309	 { ac_try='test -s conftest$ac_exeext'
10310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311  (eval $ac_try) 2>&5
10312  ac_status=$?
10313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314  (exit $ac_status); }; }; then
10315
10316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10317}'`
10318# Check for a 64-bit object if we didn't find anything.
10319if 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; }
10320}'`; fi
10321else
10322  echo "$as_me: failed program was:" >&5
10323sed 's/^/| /' conftest.$ac_ext >&5
10324
10325fi
10326rm -f conftest.err conftest.$ac_objext \
10327      conftest$ac_exeext conftest.$ac_ext
10328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10329
10330       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10331	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"
10332       else
10333	if test "$host_cpu" = ia64; then
10334	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10335	  allow_undefined_flag="-z nodefs"
10336	  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"
10337	else
10338	 # Determine the default libpath from the value encoded in an empty executable.
10339	 cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h.  */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h.  */
10345
10346#ifdef F77_DUMMY_MAIN
10347
10348#  ifdef __cplusplus
10349     extern "C"
10350#  endif
10351   int F77_DUMMY_MAIN() { return 1; }
10352
10353#endif
10354int
10355main ()
10356{
10357
10358  ;
10359  return 0;
10360}
10361_ACEOF
10362rm -f conftest.$ac_objext conftest$ac_exeext
10363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364  (eval $ac_link) 2>conftest.er1
10365  ac_status=$?
10366  grep -v '^ *+' conftest.er1 >conftest.err
10367  rm -f conftest.er1
10368  cat conftest.err >&5
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); } &&
10371	 { ac_try='test -z "$ac_c_werror_flag"
10372			 || test ! -s conftest.err'
10373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374  (eval $ac_try) 2>&5
10375  ac_status=$?
10376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); }; } &&
10378	 { ac_try='test -s conftest$ac_exeext'
10379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380  (eval $ac_try) 2>&5
10381  ac_status=$?
10382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383  (exit $ac_status); }; }; then
10384
10385aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10386}'`
10387# Check for a 64-bit object if we didn't find anything.
10388if 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; }
10389}'`; fi
10390else
10391  echo "$as_me: failed program was:" >&5
10392sed 's/^/| /' conftest.$ac_ext >&5
10393
10394fi
10395rm -f conftest.err conftest.$ac_objext \
10396      conftest$ac_exeext conftest.$ac_ext
10397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10398
10399	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10400	  # Warning - without using the other run time loading flags,
10401	  # -berok will link without error, but may produce a broken library.
10402	  no_undefined_flag=' ${wl}-bernotok'
10403	  allow_undefined_flag=' ${wl}-berok'
10404	  # Exported symbols can be pulled into shared objects from archives
10405	  whole_archive_flag_spec='$convenience'
10406	  archive_cmds_need_lc=yes
10407	  # This is similar to how AIX traditionally builds its shared libraries.
10408	  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'
10409	fi
10410      fi
10411      ;;
10412
10413    amigaos*)
10414      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)'
10415      hardcode_libdir_flag_spec='-L$libdir'
10416      hardcode_minus_L=yes
10417      # see comment about different semantics on the GNU ld section
10418      ld_shlibs=no
10419      ;;
10420
10421    bsdi[45]*)
10422      export_dynamic_flag_spec=-rdynamic
10423      ;;
10424
10425    cygwin* | mingw* | pw32*)
10426      # When not using gcc, we currently assume that we are using
10427      # Microsoft Visual C++.
10428      # hardcode_libdir_flag_spec is actually meaningless, as there is
10429      # no search path for DLLs.
10430      hardcode_libdir_flag_spec=' '
10431      allow_undefined_flag=unsupported
10432      # Tell ltmain to make .lib files, not .a files.
10433      libext=lib
10434      # Tell ltmain to make .dll files, not .so files.
10435      shrext_cmds=".dll"
10436      # FIXME: Setting linknames here is a bad hack.
10437      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10438      # The linker will automatically build a .lib file if we build a DLL.
10439      old_archive_From_new_cmds='true'
10440      # FIXME: Should let the user specify the lib program.
10441      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10442      fix_srcfile_path='`cygpath -w "$srcfile"`'
10443      enable_shared_with_static_runtimes=yes
10444      ;;
10445
10446    darwin* | rhapsody*)
10447      case $host_os in
10448        rhapsody* | darwin1.[012])
10449         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10450         ;;
10451       *) # Darwin 1.3 on
10452         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10453           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10454         else
10455           case ${MACOSX_DEPLOYMENT_TARGET} in
10456             10.[012])
10457               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10458               ;;
10459             10.*)
10460               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10461               ;;
10462           esac
10463         fi
10464         ;;
10465      esac
10466      archive_cmds_need_lc=no
10467      hardcode_direct=no
10468      hardcode_automatic=yes
10469      hardcode_shlibpath_var=unsupported
10470      whole_archive_flag_spec=''
10471      link_all_deplibs=yes
10472    if test "$GCC" = yes ; then
10473    	output_verbose_link_cmd='echo'
10474        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10475      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10476      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10477      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}'
10478      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}'
10479    else
10480      case $cc_basename in
10481        xlc*)
10482         output_verbose_link_cmd='echo'
10483         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10484         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10485          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10486         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}'
10487          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}'
10488          ;;
10489       *)
10490         ld_shlibs=no
10491          ;;
10492      esac
10493    fi
10494      ;;
10495
10496    dgux*)
10497      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10498      hardcode_libdir_flag_spec='-L$libdir'
10499      hardcode_shlibpath_var=no
10500      ;;
10501
10502    freebsd1*)
10503      ld_shlibs=no
10504      ;;
10505
10506    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10507    # support.  Future versions do this automatically, but an explicit c++rt0.o
10508    # does not break anything, and helps significantly (at the cost of a little
10509    # extra space).
10510    freebsd2.2*)
10511      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10512      hardcode_libdir_flag_spec='-R$libdir'
10513      hardcode_direct=yes
10514      hardcode_shlibpath_var=no
10515      ;;
10516
10517    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10518    freebsd2*)
10519      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10520      hardcode_direct=yes
10521      hardcode_minus_L=yes
10522      hardcode_shlibpath_var=no
10523      ;;
10524
10525    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10526    freebsd* | kfreebsd*-gnu | dragonfly*)
10527      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10528      hardcode_libdir_flag_spec='-R$libdir'
10529      hardcode_direct=yes
10530      hardcode_shlibpath_var=no
10531      ;;
10532
10533    hpux9*)
10534      if test "$GCC" = yes; then
10535	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'
10536      else
10537	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'
10538      fi
10539      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10540      hardcode_libdir_separator=:
10541      hardcode_direct=yes
10542
10543      # hardcode_minus_L: Not really in the search PATH,
10544      # but as the default location of the library.
10545      hardcode_minus_L=yes
10546      export_dynamic_flag_spec='${wl}-E'
10547      ;;
10548
10549    hpux10*)
10550      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10551	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10552      else
10553	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10554      fi
10555      if test "$with_gnu_ld" = no; then
10556	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10557	hardcode_libdir_separator=:
10558
10559	hardcode_direct=yes
10560	export_dynamic_flag_spec='${wl}-E'
10561
10562	# hardcode_minus_L: Not really in the search PATH,
10563	# but as the default location of the library.
10564	hardcode_minus_L=yes
10565      fi
10566      ;;
10567
10568    hpux11*)
10569      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10570	case $host_cpu in
10571	hppa*64*)
10572	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10573	  ;;
10574	ia64*)
10575	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10576	  ;;
10577	*)
10578	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10579	  ;;
10580	esac
10581      else
10582	case $host_cpu in
10583	hppa*64*)
10584	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10585	  ;;
10586	ia64*)
10587	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10588	  ;;
10589	*)
10590	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10591	  ;;
10592	esac
10593      fi
10594      if test "$with_gnu_ld" = no; then
10595	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10596	hardcode_libdir_separator=:
10597
10598	case $host_cpu in
10599	hppa*64*|ia64*)
10600	  hardcode_libdir_flag_spec_ld='+b $libdir'
10601	  hardcode_direct=no
10602	  hardcode_shlibpath_var=no
10603	  ;;
10604	*)
10605	  hardcode_direct=yes
10606	  export_dynamic_flag_spec='${wl}-E'
10607
10608	  # hardcode_minus_L: Not really in the search PATH,
10609	  # but as the default location of the library.
10610	  hardcode_minus_L=yes
10611	  ;;
10612	esac
10613      fi
10614      ;;
10615
10616    irix5* | irix6* | nonstopux*)
10617      if test "$GCC" = yes; then
10618	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'
10619      else
10620	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'
10621	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10622      fi
10623      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10624      hardcode_libdir_separator=:
10625      link_all_deplibs=yes
10626      ;;
10627
10628    netbsd*)
10629      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10630	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10631      else
10632	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10633      fi
10634      hardcode_libdir_flag_spec='-R$libdir'
10635      hardcode_direct=yes
10636      hardcode_shlibpath_var=no
10637      ;;
10638
10639    newsos6)
10640      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641      hardcode_direct=yes
10642      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10643      hardcode_libdir_separator=:
10644      hardcode_shlibpath_var=no
10645      ;;
10646
10647    openbsd*)
10648      hardcode_direct=yes
10649      hardcode_shlibpath_var=no
10650      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10651	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10652	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10653	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10654	export_dynamic_flag_spec='${wl}-E'
10655      else
10656       case $host_os in
10657	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10658	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10659	   hardcode_libdir_flag_spec='-R$libdir'
10660	   ;;
10661	 *)
10662	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10663	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10664	   ;;
10665       esac
10666      fi
10667      ;;
10668
10669    os2*)
10670      hardcode_libdir_flag_spec='-L$libdir'
10671      hardcode_minus_L=yes
10672      allow_undefined_flag=unsupported
10673      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'
10674      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10675      ;;
10676
10677    osf3*)
10678      if test "$GCC" = yes; then
10679	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10680	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'
10681      else
10682	allow_undefined_flag=' -expect_unresolved \*'
10683	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'
10684      fi
10685      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10686      hardcode_libdir_separator=:
10687      ;;
10688
10689    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10690      if test "$GCC" = yes; then
10691	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10692	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'
10693	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10694      else
10695	allow_undefined_flag=' -expect_unresolved \*'
10696	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'
10697	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10698	$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'
10699
10700	# Both c and cxx compiler support -rpath directly
10701	hardcode_libdir_flag_spec='-rpath $libdir'
10702      fi
10703      hardcode_libdir_separator=:
10704      ;;
10705
10706    solaris*)
10707      no_undefined_flag=' -z text'
10708      if test "$GCC" = yes; then
10709	wlarc='${wl}'
10710	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10711	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10712	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10713      else
10714	wlarc=''
10715	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10717  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10718      fi
10719      hardcode_libdir_flag_spec='-R$libdir'
10720      hardcode_shlibpath_var=no
10721      case $host_os in
10722      solaris2.[0-5] | solaris2.[0-5].*) ;;
10723      *)
10724 	# The compiler driver will combine linker options so we
10725 	# cannot just pass the convience library names through
10726 	# without $wl, iff we do not link with $LD.
10727 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10728 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10729 	case $wlarc in
10730 	'')
10731 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10732 	*)
10733 	  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' ;;
10734 	esac ;;
10735      esac
10736      link_all_deplibs=yes
10737      ;;
10738
10739    sunos4*)
10740      if test "x$host_vendor" = xsequent; then
10741	# Use $CC to link under sequent, because it throws in some extra .o
10742	# files that make .init and .fini sections work.
10743	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10744      else
10745	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10746      fi
10747      hardcode_libdir_flag_spec='-L$libdir'
10748      hardcode_direct=yes
10749      hardcode_minus_L=yes
10750      hardcode_shlibpath_var=no
10751      ;;
10752
10753    sysv4)
10754      case $host_vendor in
10755	sni)
10756	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757	  hardcode_direct=yes # is this really true???
10758	;;
10759	siemens)
10760	  ## LD is ld it makes a PLAMLIB
10761	  ## CC just makes a GrossModule.
10762	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10763	  reload_cmds='$CC -r -o $output$reload_objs'
10764	  hardcode_direct=no
10765        ;;
10766	motorola)
10767	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10769	;;
10770      esac
10771      runpath_var='LD_RUN_PATH'
10772      hardcode_shlibpath_var=no
10773      ;;
10774
10775    sysv4.3*)
10776      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10777      hardcode_shlibpath_var=no
10778      export_dynamic_flag_spec='-Bexport'
10779      ;;
10780
10781    sysv4*MP*)
10782      if test -d /usr/nec; then
10783	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784	hardcode_shlibpath_var=no
10785	runpath_var=LD_RUN_PATH
10786	hardcode_runpath_var=yes
10787	ld_shlibs=yes
10788      fi
10789      ;;
10790
10791    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10792      no_undefined_flag='${wl}-z,text'
10793      archive_cmds_need_lc=no
10794      hardcode_shlibpath_var=no
10795      runpath_var='LD_RUN_PATH'
10796
10797      if test "$GCC" = yes; then
10798	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10800      else
10801	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10802	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10803      fi
10804      ;;
10805
10806    sysv5* | sco3.2v5* | sco5v6*)
10807      # Note: We can NOT use -z defs as we might desire, because we do not
10808      # link with -lc, and that would cause any symbols used from libc to
10809      # always be unresolved, which means just about no library would
10810      # ever link correctly.  If we're not using GNU ld we use -z text
10811      # though, which does catch some bad symbols but isn't as heavy-handed
10812      # as -z defs.
10813      no_undefined_flag='${wl}-z,text'
10814      allow_undefined_flag='${wl}-z,nodefs'
10815      archive_cmds_need_lc=no
10816      hardcode_shlibpath_var=no
10817      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10818      hardcode_libdir_separator=':'
10819      link_all_deplibs=yes
10820      export_dynamic_flag_spec='${wl}-Bexport'
10821      runpath_var='LD_RUN_PATH'
10822
10823      if test "$GCC" = yes; then
10824	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10825	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10826      else
10827	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10828	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10829      fi
10830      ;;
10831
10832    uts4*)
10833      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10834      hardcode_libdir_flag_spec='-L$libdir'
10835      hardcode_shlibpath_var=no
10836      ;;
10837
10838    *)
10839      ld_shlibs=no
10840      ;;
10841    esac
10842  fi
10843
10844echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10845echo "${ECHO_T}$ld_shlibs" >&6
10846test "$ld_shlibs" = no && can_build_shared=no
10847
10848#
10849# Do we need to explicitly link libc?
10850#
10851case "x$archive_cmds_need_lc" in
10852x|xyes)
10853  # Assume -lc should be added
10854  archive_cmds_need_lc=yes
10855
10856  if test "$enable_shared" = yes && test "$GCC" = yes; then
10857    case $archive_cmds in
10858    *'~'*)
10859      # FIXME: we may have to deal with multi-command sequences.
10860      ;;
10861    '$CC '*)
10862      # Test whether the compiler implicitly links with -lc since on some
10863      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10864      # to ld, don't add -lc before -lgcc.
10865      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10866echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10867      $rm conftest*
10868      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10869
10870      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871  (eval $ac_compile) 2>&5
10872  ac_status=$?
10873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874  (exit $ac_status); } 2>conftest.err; then
10875        soname=conftest
10876        lib=conftest
10877        libobjs=conftest.$ac_objext
10878        deplibs=
10879        wl=$lt_prog_compiler_wl
10880	pic_flag=$lt_prog_compiler_pic
10881        compiler_flags=-v
10882        linker_flags=-v
10883        verstring=
10884        output_objdir=.
10885        libname=conftest
10886        lt_save_allow_undefined_flag=$allow_undefined_flag
10887        allow_undefined_flag=
10888        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10889  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10890  ac_status=$?
10891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892  (exit $ac_status); }
10893        then
10894	  archive_cmds_need_lc=no
10895        else
10896	  archive_cmds_need_lc=yes
10897        fi
10898        allow_undefined_flag=$lt_save_allow_undefined_flag
10899      else
10900        cat conftest.err 1>&5
10901      fi
10902      $rm conftest*
10903      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10904echo "${ECHO_T}$archive_cmds_need_lc" >&6
10905      ;;
10906    esac
10907  fi
10908  ;;
10909esac
10910
10911echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10912echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10913library_names_spec=
10914libname_spec='lib$name'
10915soname_spec=
10916shrext_cmds=".so"
10917postinstall_cmds=
10918postuninstall_cmds=
10919finish_cmds=
10920finish_eval=
10921shlibpath_var=
10922shlibpath_overrides_runpath=unknown
10923version_type=none
10924dynamic_linker="$host_os ld.so"
10925sys_lib_dlsearch_path_spec="/lib /usr/lib"
10926if test "$GCC" = yes; then
10927  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10928  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10929    # if the path contains ";" then we assume it to be the separator
10930    # otherwise default to the standard path separator (i.e. ":") - it is
10931    # assumed that no part of a normal pathname contains ";" but that should
10932    # okay in the real world where ";" in dirpaths is itself problematic.
10933    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10934  else
10935    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10936  fi
10937else
10938  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10939fi
10940need_lib_prefix=unknown
10941hardcode_into_libs=no
10942
10943# when you set need_version to no, make sure it does not cause -set_version
10944# flags to be left without arguments
10945need_version=unknown
10946
10947case $host_os in
10948aix3*)
10949  version_type=linux
10950  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10951  shlibpath_var=LIBPATH
10952
10953  # AIX 3 has no versioning support, so we append a major version to the name.
10954  soname_spec='${libname}${release}${shared_ext}$major'
10955  ;;
10956
10957aix4* | aix5*)
10958  version_type=linux
10959  need_lib_prefix=no
10960  need_version=no
10961  hardcode_into_libs=yes
10962  if test "$host_cpu" = ia64; then
10963    # AIX 5 supports IA64
10964    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10965    shlibpath_var=LD_LIBRARY_PATH
10966  else
10967    # With GCC up to 2.95.x, collect2 would create an import file
10968    # for dependence libraries.  The import file would start with
10969    # the line `#! .'.  This would cause the generated library to
10970    # depend on `.', always an invalid library.  This was fixed in
10971    # development snapshots of GCC prior to 3.0.
10972    case $host_os in
10973      aix4 | aix4.[01] | aix4.[01].*)
10974      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10975	   echo ' yes '
10976	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10977	:
10978      else
10979	can_build_shared=no
10980      fi
10981      ;;
10982    esac
10983    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10984    # soname into executable. Probably we can add versioning support to
10985    # collect2, so additional links can be useful in future.
10986    if test "$aix_use_runtimelinking" = yes; then
10987      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10988      # instead of lib<name>.a to let people know that these are not
10989      # typical AIX shared libraries.
10990      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991    else
10992      # We preserve .a as extension for shared libraries through AIX4.2
10993      # and later when we are not doing run time linking.
10994      library_names_spec='${libname}${release}.a $libname.a'
10995      soname_spec='${libname}${release}${shared_ext}$major'
10996    fi
10997    shlibpath_var=LIBPATH
10998  fi
10999  ;;
11000
11001amigaos*)
11002  library_names_spec='$libname.ixlibrary $libname.a'
11003  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11004  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'
11005  ;;
11006
11007beos*)
11008  library_names_spec='${libname}${shared_ext}'
11009  dynamic_linker="$host_os ld.so"
11010  shlibpath_var=LIBRARY_PATH
11011  ;;
11012
11013bsdi[45]*)
11014  version_type=linux
11015  need_version=no
11016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017  soname_spec='${libname}${release}${shared_ext}$major'
11018  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11019  shlibpath_var=LD_LIBRARY_PATH
11020  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11021  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11022  # the default ld.so.conf also contains /usr/contrib/lib and
11023  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11024  # libtool to hard-code these into programs
11025  ;;
11026
11027cygwin* | mingw* | pw32*)
11028  version_type=windows
11029  shrext_cmds=".dll"
11030  need_version=no
11031  need_lib_prefix=no
11032
11033  case $GCC,$host_os in
11034  yes,cygwin* | yes,mingw* | yes,pw32*)
11035    library_names_spec='$libname.dll.a'
11036    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11037    postinstall_cmds='base_file=`basename \${file}`~
11038      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11039      dldir=$destdir/`dirname \$dlpath`~
11040      test -d \$dldir || mkdir -p \$dldir~
11041      $install_prog $dir/$dlname \$dldir/$dlname~
11042      chmod a+x \$dldir/$dlname'
11043    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11044      dlpath=$dir/\$dldll~
11045       $rm \$dlpath'
11046    shlibpath_overrides_runpath=yes
11047
11048    case $host_os in
11049    cygwin*)
11050      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11051      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11052      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11053      ;;
11054    mingw*)
11055      # MinGW DLLs use traditional 'lib' prefix
11056      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11057      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11058      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11059        # It is most probably a Windows format PATH printed by
11060        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11061        # path with ; separators, and with drive letters. We can handle the
11062        # drive letters (cygwin fileutils understands them), so leave them,
11063        # especially as we might pass files found there to a mingw objdump,
11064        # which wouldn't understand a cygwinified path. Ahh.
11065        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11066      else
11067        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11068      fi
11069      ;;
11070    pw32*)
11071      # pw32 DLLs use 'pw' prefix rather than 'lib'
11072      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11073      ;;
11074    esac
11075    ;;
11076
11077  *)
11078    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11079    ;;
11080  esac
11081  dynamic_linker='Win32 ld.exe'
11082  # FIXME: first we should search . and the directory the executable is in
11083  shlibpath_var=PATH
11084  ;;
11085
11086darwin* | rhapsody*)
11087  dynamic_linker="$host_os dyld"
11088  version_type=darwin
11089  need_lib_prefix=no
11090  need_version=no
11091  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11092  soname_spec='${libname}${release}${major}$shared_ext'
11093  shlibpath_overrides_runpath=yes
11094  shlibpath_var=DYLD_LIBRARY_PATH
11095  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11096  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11097  if test "$GCC" = yes; then
11098    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"`
11099  else
11100    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11101  fi
11102  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11103  ;;
11104
11105dgux*)
11106  version_type=linux
11107  need_lib_prefix=no
11108  need_version=no
11109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11110  soname_spec='${libname}${release}${shared_ext}$major'
11111  shlibpath_var=LD_LIBRARY_PATH
11112  ;;
11113
11114freebsd1*)
11115  dynamic_linker=no
11116  ;;
11117
11118kfreebsd*-gnu)
11119  version_type=linux
11120  need_lib_prefix=no
11121  need_version=no
11122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11123  soname_spec='${libname}${release}${shared_ext}$major'
11124  shlibpath_var=LD_LIBRARY_PATH
11125  shlibpath_overrides_runpath=no
11126  hardcode_into_libs=yes
11127  dynamic_linker='GNU ld.so'
11128  ;;
11129
11130freebsd* | dragonfly*)
11131  # DragonFly does not have aout.  When/if they implement a new
11132  # versioning mechanism, adjust this.
11133  if test -x /usr/bin/objformat; then
11134    objformat=`/usr/bin/objformat`
11135  else
11136    case $host_os in
11137    freebsd[123]*) objformat=aout ;;
11138    *) objformat=elf ;;
11139    esac
11140  fi
11141  version_type=freebsd-$objformat
11142  case $version_type in
11143    freebsd-elf*)
11144      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11145      need_version=no
11146      need_lib_prefix=no
11147      ;;
11148    freebsd-*)
11149      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11150      need_version=yes
11151      ;;
11152  esac
11153  shlibpath_var=LD_LIBRARY_PATH
11154  case $host_os in
11155  freebsd2*)
11156    shlibpath_overrides_runpath=yes
11157    ;;
11158  freebsd3.[01]* | freebsdelf3.[01]*)
11159    shlibpath_overrides_runpath=yes
11160    hardcode_into_libs=yes
11161    ;;
11162  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11163  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11164    shlibpath_overrides_runpath=no
11165    hardcode_into_libs=yes
11166    ;;
11167  freebsd*) # from 4.6 on
11168    shlibpath_overrides_runpath=yes
11169    hardcode_into_libs=yes
11170    ;;
11171  esac
11172  ;;
11173
11174gnu*)
11175  version_type=linux
11176  need_lib_prefix=no
11177  need_version=no
11178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11179  soname_spec='${libname}${release}${shared_ext}$major'
11180  shlibpath_var=LD_LIBRARY_PATH
11181  hardcode_into_libs=yes
11182  ;;
11183
11184hpux9* | hpux10* | hpux11*)
11185  # Give a soname corresponding to the major version so that dld.sl refuses to
11186  # link against other versions.
11187  version_type=sunos
11188  need_lib_prefix=no
11189  need_version=no
11190  case $host_cpu in
11191  ia64*)
11192    shrext_cmds='.so'
11193    hardcode_into_libs=yes
11194    dynamic_linker="$host_os dld.so"
11195    shlibpath_var=LD_LIBRARY_PATH
11196    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11197    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198    soname_spec='${libname}${release}${shared_ext}$major'
11199    if test "X$HPUX_IA64_MODE" = X32; then
11200      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11201    else
11202      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11203    fi
11204    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11205    ;;
11206   hppa*64*)
11207     shrext_cmds='.sl'
11208     hardcode_into_libs=yes
11209     dynamic_linker="$host_os dld.sl"
11210     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11211     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213     soname_spec='${libname}${release}${shared_ext}$major'
11214     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11215     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11216     ;;
11217   *)
11218    shrext_cmds='.sl'
11219    dynamic_linker="$host_os dld.sl"
11220    shlibpath_var=SHLIB_PATH
11221    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223    soname_spec='${libname}${release}${shared_ext}$major'
11224    ;;
11225  esac
11226  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11227  postinstall_cmds='chmod 555 $lib'
11228  ;;
11229
11230interix3*)
11231  version_type=linux
11232  need_lib_prefix=no
11233  need_version=no
11234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11235  soname_spec='${libname}${release}${shared_ext}$major'
11236  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11237  shlibpath_var=LD_LIBRARY_PATH
11238  shlibpath_overrides_runpath=no
11239  hardcode_into_libs=yes
11240  ;;
11241
11242irix5* | irix6* | nonstopux*)
11243  case $host_os in
11244    nonstopux*) version_type=nonstopux ;;
11245    *)
11246	if test "$lt_cv_prog_gnu_ld" = yes; then
11247		version_type=linux
11248	else
11249		version_type=irix
11250	fi ;;
11251  esac
11252  need_lib_prefix=no
11253  need_version=no
11254  soname_spec='${libname}${release}${shared_ext}$major'
11255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11256  case $host_os in
11257  irix5* | nonstopux*)
11258    libsuff= shlibsuff=
11259    ;;
11260  *)
11261    case $LD in # libtool.m4 will add one of these switches to LD
11262    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11263      libsuff= shlibsuff= libmagic=32-bit;;
11264    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11265      libsuff=32 shlibsuff=N32 libmagic=N32;;
11266    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11267      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11268    *) libsuff= shlibsuff= libmagic=never-match;;
11269    esac
11270    ;;
11271  esac
11272  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11273  shlibpath_overrides_runpath=no
11274  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11275  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11276  hardcode_into_libs=yes
11277  ;;
11278
11279# No shared lib support for Linux oldld, aout, or coff.
11280linux*oldld* | linux*aout* | linux*coff*)
11281  dynamic_linker=no
11282  ;;
11283
11284# This must be Linux ELF.
11285linux*)
11286  version_type=linux
11287  need_lib_prefix=no
11288  need_version=no
11289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290  soname_spec='${libname}${release}${shared_ext}$major'
11291  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11292  shlibpath_var=LD_LIBRARY_PATH
11293  shlibpath_overrides_runpath=no
11294  # This implies no fast_install, which is unacceptable.
11295  # Some rework will be needed to allow for fast_install
11296  # before this can be enabled.
11297  hardcode_into_libs=yes
11298
11299  # Append ld.so.conf contents to the search path
11300  if test -f /etc/ld.so.conf; then
11301    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' ' '`
11302    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11303  fi
11304
11305  # We used to test for /lib/ld.so.1 and disable shared libraries on
11306  # powerpc, because MkLinux only supported shared libraries with the
11307  # GNU dynamic linker.  Since this was broken with cross compilers,
11308  # most powerpc-linux boxes support dynamic linking these days and
11309  # people can always --disable-shared, the test was removed, and we
11310  # assume the GNU/Linux dynamic linker is in use.
11311  dynamic_linker='GNU/Linux ld.so'
11312  ;;
11313
11314knetbsd*-gnu)
11315  version_type=linux
11316  need_lib_prefix=no
11317  need_version=no
11318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11319  soname_spec='${libname}${release}${shared_ext}$major'
11320  shlibpath_var=LD_LIBRARY_PATH
11321  shlibpath_overrides_runpath=no
11322  hardcode_into_libs=yes
11323  dynamic_linker='GNU ld.so'
11324  ;;
11325
11326netbsd*)
11327  version_type=sunos
11328  need_lib_prefix=no
11329  need_version=no
11330  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11331    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11332    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11333    dynamic_linker='NetBSD (a.out) ld.so'
11334  else
11335    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11336    soname_spec='${libname}${release}${shared_ext}$major'
11337    dynamic_linker='NetBSD ld.elf_so'
11338  fi
11339  shlibpath_var=LD_LIBRARY_PATH
11340  shlibpath_overrides_runpath=yes
11341  hardcode_into_libs=yes
11342  ;;
11343
11344newsos6)
11345  version_type=linux
11346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347  shlibpath_var=LD_LIBRARY_PATH
11348  shlibpath_overrides_runpath=yes
11349  ;;
11350
11351nto-qnx*)
11352  version_type=linux
11353  need_lib_prefix=no
11354  need_version=no
11355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356  soname_spec='${libname}${release}${shared_ext}$major'
11357  shlibpath_var=LD_LIBRARY_PATH
11358  shlibpath_overrides_runpath=yes
11359  ;;
11360
11361openbsd*)
11362  version_type=sunos
11363  sys_lib_dlsearch_path_spec="/usr/lib"
11364  need_lib_prefix=no
11365  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11366  case $host_os in
11367    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11368    *)                         need_version=no  ;;
11369  esac
11370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11371  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11372  shlibpath_var=LD_LIBRARY_PATH
11373  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11374    case $host_os in
11375      openbsd2.[89] | openbsd2.[89].*)
11376	shlibpath_overrides_runpath=no
11377	;;
11378      *)
11379	shlibpath_overrides_runpath=yes
11380	;;
11381      esac
11382  else
11383    shlibpath_overrides_runpath=yes
11384  fi
11385  ;;
11386
11387os2*)
11388  libname_spec='$name'
11389  shrext_cmds=".dll"
11390  need_lib_prefix=no
11391  library_names_spec='$libname${shared_ext} $libname.a'
11392  dynamic_linker='OS/2 ld.exe'
11393  shlibpath_var=LIBPATH
11394  ;;
11395
11396osf3* | osf4* | osf5*)
11397  version_type=osf
11398  need_lib_prefix=no
11399  need_version=no
11400  soname_spec='${libname}${release}${shared_ext}$major'
11401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402  shlibpath_var=LD_LIBRARY_PATH
11403  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11404  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11405  ;;
11406
11407solaris*)
11408  version_type=linux
11409  need_lib_prefix=no
11410  need_version=no
11411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412  soname_spec='${libname}${release}${shared_ext}$major'
11413  shlibpath_var=LD_LIBRARY_PATH
11414  shlibpath_overrides_runpath=yes
11415  hardcode_into_libs=yes
11416  # ldd complains unless libraries are executable
11417  postinstall_cmds='chmod +x $lib'
11418  ;;
11419
11420sunos4*)
11421  version_type=sunos
11422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11423  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11424  shlibpath_var=LD_LIBRARY_PATH
11425  shlibpath_overrides_runpath=yes
11426  if test "$with_gnu_ld" = yes; then
11427    need_lib_prefix=no
11428  fi
11429  need_version=yes
11430  ;;
11431
11432sysv4 | sysv4.3*)
11433  version_type=linux
11434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435  soname_spec='${libname}${release}${shared_ext}$major'
11436  shlibpath_var=LD_LIBRARY_PATH
11437  case $host_vendor in
11438    sni)
11439      shlibpath_overrides_runpath=no
11440      need_lib_prefix=no
11441      export_dynamic_flag_spec='${wl}-Blargedynsym'
11442      runpath_var=LD_RUN_PATH
11443      ;;
11444    siemens)
11445      need_lib_prefix=no
11446      ;;
11447    motorola)
11448      need_lib_prefix=no
11449      need_version=no
11450      shlibpath_overrides_runpath=no
11451      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11452      ;;
11453  esac
11454  ;;
11455
11456sysv4*MP*)
11457  if test -d /usr/nec ;then
11458    version_type=linux
11459    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11460    soname_spec='$libname${shared_ext}.$major'
11461    shlibpath_var=LD_LIBRARY_PATH
11462  fi
11463  ;;
11464
11465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11466  version_type=freebsd-elf
11467  need_lib_prefix=no
11468  need_version=no
11469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11470  soname_spec='${libname}${release}${shared_ext}$major'
11471  shlibpath_var=LD_LIBRARY_PATH
11472  hardcode_into_libs=yes
11473  if test "$with_gnu_ld" = yes; then
11474    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11475    shlibpath_overrides_runpath=no
11476  else
11477    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11478    shlibpath_overrides_runpath=yes
11479    case $host_os in
11480      sco3.2v5*)
11481        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11482	;;
11483    esac
11484  fi
11485  sys_lib_dlsearch_path_spec='/usr/lib'
11486  ;;
11487
11488uts4*)
11489  version_type=linux
11490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491  soname_spec='${libname}${release}${shared_ext}$major'
11492  shlibpath_var=LD_LIBRARY_PATH
11493  ;;
11494
11495*)
11496  dynamic_linker=no
11497  ;;
11498esac
11499echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11500echo "${ECHO_T}$dynamic_linker" >&6
11501test "$dynamic_linker" = no && can_build_shared=no
11502
11503variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11504if test "$GCC" = yes; then
11505  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11506fi
11507
11508echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11509echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11510hardcode_action=
11511if test -n "$hardcode_libdir_flag_spec" || \
11512   test -n "$runpath_var" || \
11513   test "X$hardcode_automatic" = "Xyes" ; then
11514
11515  # We can hardcode non-existant directories.
11516  if test "$hardcode_direct" != no &&
11517     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11518     # have to relink, otherwise we might link with an installed library
11519     # when we should be linking with a yet-to-be-installed one
11520     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11521     test "$hardcode_minus_L" != no; then
11522    # Linking always hardcodes the temporary library directory.
11523    hardcode_action=relink
11524  else
11525    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11526    hardcode_action=immediate
11527  fi
11528else
11529  # We cannot hardcode anything, or else we can only hardcode existing
11530  # directories.
11531  hardcode_action=unsupported
11532fi
11533echo "$as_me:$LINENO: result: $hardcode_action" >&5
11534echo "${ECHO_T}$hardcode_action" >&6
11535
11536if test "$hardcode_action" = relink; then
11537  # Fast installation is not supported
11538  enable_fast_install=no
11539elif test "$shlibpath_overrides_runpath" = yes ||
11540     test "$enable_shared" = no; then
11541  # Fast installation is not necessary
11542  enable_fast_install=needless
11543fi
11544
11545striplib=
11546old_striplib=
11547echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11548echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11549if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11550  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11551  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11552  echo "$as_me:$LINENO: result: yes" >&5
11553echo "${ECHO_T}yes" >&6
11554else
11555# FIXME - insert some real tests, host_os isn't really good enough
11556  case $host_os in
11557   darwin*)
11558       if test -n "$STRIP" ; then
11559         striplib="$STRIP -x"
11560         echo "$as_me:$LINENO: result: yes" >&5
11561echo "${ECHO_T}yes" >&6
11562       else
11563  echo "$as_me:$LINENO: result: no" >&5
11564echo "${ECHO_T}no" >&6
11565fi
11566       ;;
11567   *)
11568  echo "$as_me:$LINENO: result: no" >&5
11569echo "${ECHO_T}no" >&6
11570    ;;
11571  esac
11572fi
11573
11574if test "x$enable_dlopen" != xyes; then
11575  enable_dlopen=unknown
11576  enable_dlopen_self=unknown
11577  enable_dlopen_self_static=unknown
11578else
11579  lt_cv_dlopen=no
11580  lt_cv_dlopen_libs=
11581
11582  case $host_os in
11583  beos*)
11584    lt_cv_dlopen="load_add_on"
11585    lt_cv_dlopen_libs=
11586    lt_cv_dlopen_self=yes
11587    ;;
11588
11589  mingw* | pw32*)
11590    lt_cv_dlopen="LoadLibrary"
11591    lt_cv_dlopen_libs=
11592   ;;
11593
11594  cygwin*)
11595    lt_cv_dlopen="dlopen"
11596    lt_cv_dlopen_libs=
11597   ;;
11598
11599  darwin*)
11600  # if libdl is installed we need to link against it
11601    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11602echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11603if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11604  echo $ECHO_N "(cached) $ECHO_C" >&6
11605else
11606  ac_check_lib_save_LIBS=$LIBS
11607LIBS="-ldl  $LIBS"
11608cat >conftest.$ac_ext <<_ACEOF
11609/* confdefs.h.  */
11610_ACEOF
11611cat confdefs.h >>conftest.$ac_ext
11612cat >>conftest.$ac_ext <<_ACEOF
11613/* end confdefs.h.  */
11614
11615/* Override any gcc2 internal prototype to avoid an error.  */
11616#ifdef __cplusplus
11617extern "C"
11618#endif
11619/* We use char because int might match the return type of a gcc2
11620   builtin and then its argument prototype would still apply.  */
11621char dlopen ();
11622#ifdef F77_DUMMY_MAIN
11623
11624#  ifdef __cplusplus
11625     extern "C"
11626#  endif
11627   int F77_DUMMY_MAIN() { return 1; }
11628
11629#endif
11630int
11631main ()
11632{
11633dlopen ();
11634  ;
11635  return 0;
11636}
11637_ACEOF
11638rm -f conftest.$ac_objext conftest$ac_exeext
11639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11640  (eval $ac_link) 2>conftest.er1
11641  ac_status=$?
11642  grep -v '^ *+' conftest.er1 >conftest.err
11643  rm -f conftest.er1
11644  cat conftest.err >&5
11645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646  (exit $ac_status); } &&
11647	 { ac_try='test -z "$ac_c_werror_flag"
11648			 || test ! -s conftest.err'
11649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650  (eval $ac_try) 2>&5
11651  ac_status=$?
11652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653  (exit $ac_status); }; } &&
11654	 { ac_try='test -s conftest$ac_exeext'
11655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656  (eval $ac_try) 2>&5
11657  ac_status=$?
11658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); }; }; then
11660  ac_cv_lib_dl_dlopen=yes
11661else
11662  echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665ac_cv_lib_dl_dlopen=no
11666fi
11667rm -f conftest.err conftest.$ac_objext \
11668      conftest$ac_exeext conftest.$ac_ext
11669LIBS=$ac_check_lib_save_LIBS
11670fi
11671echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11672echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11673if test $ac_cv_lib_dl_dlopen = yes; then
11674  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11675else
11676
11677    lt_cv_dlopen="dyld"
11678    lt_cv_dlopen_libs=
11679    lt_cv_dlopen_self=yes
11680
11681fi
11682
11683   ;;
11684
11685  *)
11686    echo "$as_me:$LINENO: checking for shl_load" >&5
11687echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11688if test "${ac_cv_func_shl_load+set}" = set; then
11689  echo $ECHO_N "(cached) $ECHO_C" >&6
11690else
11691  cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h.  */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h.  */
11697/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11698   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11699#define shl_load innocuous_shl_load
11700
11701/* System header to define __stub macros and hopefully few prototypes,
11702    which can conflict with char shl_load (); below.
11703    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11704    <limits.h> exists even on freestanding compilers.  */
11705
11706#ifdef __STDC__
11707# include <limits.h>
11708#else
11709# include <assert.h>
11710#endif
11711
11712#undef shl_load
11713
11714/* Override any gcc2 internal prototype to avoid an error.  */
11715#ifdef __cplusplus
11716extern "C"
11717{
11718#endif
11719/* We use char because int might match the return type of a gcc2
11720   builtin and then its argument prototype would still apply.  */
11721char shl_load ();
11722/* The GNU C library defines this for functions which it implements
11723    to always fail with ENOSYS.  Some functions are actually named
11724    something starting with __ and the normal name is an alias.  */
11725#if defined (__stub_shl_load) || defined (__stub___shl_load)
11726choke me
11727#else
11728char (*f) () = shl_load;
11729#endif
11730#ifdef __cplusplus
11731}
11732#endif
11733
11734#ifdef F77_DUMMY_MAIN
11735
11736#  ifdef __cplusplus
11737     extern "C"
11738#  endif
11739   int F77_DUMMY_MAIN() { return 1; }
11740
11741#endif
11742int
11743main ()
11744{
11745return f != shl_load;
11746  ;
11747  return 0;
11748}
11749_ACEOF
11750rm -f conftest.$ac_objext conftest$ac_exeext
11751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752  (eval $ac_link) 2>conftest.er1
11753  ac_status=$?
11754  grep -v '^ *+' conftest.er1 >conftest.err
11755  rm -f conftest.er1
11756  cat conftest.err >&5
11757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758  (exit $ac_status); } &&
11759	 { ac_try='test -z "$ac_c_werror_flag"
11760			 || test ! -s conftest.err'
11761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762  (eval $ac_try) 2>&5
11763  ac_status=$?
11764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765  (exit $ac_status); }; } &&
11766	 { ac_try='test -s conftest$ac_exeext'
11767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768  (eval $ac_try) 2>&5
11769  ac_status=$?
11770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771  (exit $ac_status); }; }; then
11772  ac_cv_func_shl_load=yes
11773else
11774  echo "$as_me: failed program was:" >&5
11775sed 's/^/| /' conftest.$ac_ext >&5
11776
11777ac_cv_func_shl_load=no
11778fi
11779rm -f conftest.err conftest.$ac_objext \
11780      conftest$ac_exeext conftest.$ac_ext
11781fi
11782echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11783echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11784if test $ac_cv_func_shl_load = yes; then
11785  lt_cv_dlopen="shl_load"
11786else
11787  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11789if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11790  echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792  ac_check_lib_save_LIBS=$LIBS
11793LIBS="-ldld  $LIBS"
11794cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h.  */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h.  */
11800
11801/* Override any gcc2 internal prototype to avoid an error.  */
11802#ifdef __cplusplus
11803extern "C"
11804#endif
11805/* We use char because int might match the return type of a gcc2
11806   builtin and then its argument prototype would still apply.  */
11807char shl_load ();
11808#ifdef F77_DUMMY_MAIN
11809
11810#  ifdef __cplusplus
11811     extern "C"
11812#  endif
11813   int F77_DUMMY_MAIN() { return 1; }
11814
11815#endif
11816int
11817main ()
11818{
11819shl_load ();
11820  ;
11821  return 0;
11822}
11823_ACEOF
11824rm -f conftest.$ac_objext conftest$ac_exeext
11825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11826  (eval $ac_link) 2>conftest.er1
11827  ac_status=$?
11828  grep -v '^ *+' conftest.er1 >conftest.err
11829  rm -f conftest.er1
11830  cat conftest.err >&5
11831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832  (exit $ac_status); } &&
11833	 { ac_try='test -z "$ac_c_werror_flag"
11834			 || test ! -s conftest.err'
11835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836  (eval $ac_try) 2>&5
11837  ac_status=$?
11838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839  (exit $ac_status); }; } &&
11840	 { ac_try='test -s conftest$ac_exeext'
11841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842  (eval $ac_try) 2>&5
11843  ac_status=$?
11844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845  (exit $ac_status); }; }; then
11846  ac_cv_lib_dld_shl_load=yes
11847else
11848  echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
11851ac_cv_lib_dld_shl_load=no
11852fi
11853rm -f conftest.err conftest.$ac_objext \
11854      conftest$ac_exeext conftest.$ac_ext
11855LIBS=$ac_check_lib_save_LIBS
11856fi
11857echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11858echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11859if test $ac_cv_lib_dld_shl_load = yes; then
11860  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11861else
11862  echo "$as_me:$LINENO: checking for dlopen" >&5
11863echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11864if test "${ac_cv_func_dlopen+set}" = set; then
11865  echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867  cat >conftest.$ac_ext <<_ACEOF
11868/* confdefs.h.  */
11869_ACEOF
11870cat confdefs.h >>conftest.$ac_ext
11871cat >>conftest.$ac_ext <<_ACEOF
11872/* end confdefs.h.  */
11873/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11874   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11875#define dlopen innocuous_dlopen
11876
11877/* System header to define __stub macros and hopefully few prototypes,
11878    which can conflict with char dlopen (); below.
11879    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880    <limits.h> exists even on freestanding compilers.  */
11881
11882#ifdef __STDC__
11883# include <limits.h>
11884#else
11885# include <assert.h>
11886#endif
11887
11888#undef dlopen
11889
11890/* Override any gcc2 internal prototype to avoid an error.  */
11891#ifdef __cplusplus
11892extern "C"
11893{
11894#endif
11895/* We use char because int might match the return type of a gcc2
11896   builtin and then its argument prototype would still apply.  */
11897char dlopen ();
11898/* The GNU C library defines this for functions which it implements
11899    to always fail with ENOSYS.  Some functions are actually named
11900    something starting with __ and the normal name is an alias.  */
11901#if defined (__stub_dlopen) || defined (__stub___dlopen)
11902choke me
11903#else
11904char (*f) () = dlopen;
11905#endif
11906#ifdef __cplusplus
11907}
11908#endif
11909
11910#ifdef F77_DUMMY_MAIN
11911
11912#  ifdef __cplusplus
11913     extern "C"
11914#  endif
11915   int F77_DUMMY_MAIN() { return 1; }
11916
11917#endif
11918int
11919main ()
11920{
11921return f != dlopen;
11922  ;
11923  return 0;
11924}
11925_ACEOF
11926rm -f conftest.$ac_objext conftest$ac_exeext
11927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928  (eval $ac_link) 2>conftest.er1
11929  ac_status=$?
11930  grep -v '^ *+' conftest.er1 >conftest.err
11931  rm -f conftest.er1
11932  cat conftest.err >&5
11933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934  (exit $ac_status); } &&
11935	 { ac_try='test -z "$ac_c_werror_flag"
11936			 || test ! -s conftest.err'
11937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938  (eval $ac_try) 2>&5
11939  ac_status=$?
11940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941  (exit $ac_status); }; } &&
11942	 { ac_try='test -s conftest$ac_exeext'
11943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944  (eval $ac_try) 2>&5
11945  ac_status=$?
11946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947  (exit $ac_status); }; }; then
11948  ac_cv_func_dlopen=yes
11949else
11950  echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
11953ac_cv_func_dlopen=no
11954fi
11955rm -f conftest.err conftest.$ac_objext \
11956      conftest$ac_exeext conftest.$ac_ext
11957fi
11958echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11959echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11960if test $ac_cv_func_dlopen = yes; then
11961  lt_cv_dlopen="dlopen"
11962else
11963  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11964echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11965if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11966  echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968  ac_check_lib_save_LIBS=$LIBS
11969LIBS="-ldl  $LIBS"
11970cat >conftest.$ac_ext <<_ACEOF
11971/* confdefs.h.  */
11972_ACEOF
11973cat confdefs.h >>conftest.$ac_ext
11974cat >>conftest.$ac_ext <<_ACEOF
11975/* end confdefs.h.  */
11976
11977/* Override any gcc2 internal prototype to avoid an error.  */
11978#ifdef __cplusplus
11979extern "C"
11980#endif
11981/* We use char because int might match the return type of a gcc2
11982   builtin and then its argument prototype would still apply.  */
11983char dlopen ();
11984#ifdef F77_DUMMY_MAIN
11985
11986#  ifdef __cplusplus
11987     extern "C"
11988#  endif
11989   int F77_DUMMY_MAIN() { return 1; }
11990
11991#endif
11992int
11993main ()
11994{
11995dlopen ();
11996  ;
11997  return 0;
11998}
11999_ACEOF
12000rm -f conftest.$ac_objext conftest$ac_exeext
12001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002  (eval $ac_link) 2>conftest.er1
12003  ac_status=$?
12004  grep -v '^ *+' conftest.er1 >conftest.err
12005  rm -f conftest.er1
12006  cat conftest.err >&5
12007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008  (exit $ac_status); } &&
12009	 { ac_try='test -z "$ac_c_werror_flag"
12010			 || test ! -s conftest.err'
12011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012  (eval $ac_try) 2>&5
12013  ac_status=$?
12014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015  (exit $ac_status); }; } &&
12016	 { ac_try='test -s conftest$ac_exeext'
12017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018  (eval $ac_try) 2>&5
12019  ac_status=$?
12020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021  (exit $ac_status); }; }; then
12022  ac_cv_lib_dl_dlopen=yes
12023else
12024  echo "$as_me: failed program was:" >&5
12025sed 's/^/| /' conftest.$ac_ext >&5
12026
12027ac_cv_lib_dl_dlopen=no
12028fi
12029rm -f conftest.err conftest.$ac_objext \
12030      conftest$ac_exeext conftest.$ac_ext
12031LIBS=$ac_check_lib_save_LIBS
12032fi
12033echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12034echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12035if test $ac_cv_lib_dl_dlopen = yes; then
12036  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12037else
12038  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12039echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12040if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12041  echo $ECHO_N "(cached) $ECHO_C" >&6
12042else
12043  ac_check_lib_save_LIBS=$LIBS
12044LIBS="-lsvld  $LIBS"
12045cat >conftest.$ac_ext <<_ACEOF
12046/* confdefs.h.  */
12047_ACEOF
12048cat confdefs.h >>conftest.$ac_ext
12049cat >>conftest.$ac_ext <<_ACEOF
12050/* end confdefs.h.  */
12051
12052/* Override any gcc2 internal prototype to avoid an error.  */
12053#ifdef __cplusplus
12054extern "C"
12055#endif
12056/* We use char because int might match the return type of a gcc2
12057   builtin and then its argument prototype would still apply.  */
12058char dlopen ();
12059#ifdef F77_DUMMY_MAIN
12060
12061#  ifdef __cplusplus
12062     extern "C"
12063#  endif
12064   int F77_DUMMY_MAIN() { return 1; }
12065
12066#endif
12067int
12068main ()
12069{
12070dlopen ();
12071  ;
12072  return 0;
12073}
12074_ACEOF
12075rm -f conftest.$ac_objext conftest$ac_exeext
12076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12077  (eval $ac_link) 2>conftest.er1
12078  ac_status=$?
12079  grep -v '^ *+' conftest.er1 >conftest.err
12080  rm -f conftest.er1
12081  cat conftest.err >&5
12082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083  (exit $ac_status); } &&
12084	 { ac_try='test -z "$ac_c_werror_flag"
12085			 || test ! -s conftest.err'
12086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087  (eval $ac_try) 2>&5
12088  ac_status=$?
12089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090  (exit $ac_status); }; } &&
12091	 { ac_try='test -s conftest$ac_exeext'
12092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093  (eval $ac_try) 2>&5
12094  ac_status=$?
12095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096  (exit $ac_status); }; }; then
12097  ac_cv_lib_svld_dlopen=yes
12098else
12099  echo "$as_me: failed program was:" >&5
12100sed 's/^/| /' conftest.$ac_ext >&5
12101
12102ac_cv_lib_svld_dlopen=no
12103fi
12104rm -f conftest.err conftest.$ac_objext \
12105      conftest$ac_exeext conftest.$ac_ext
12106LIBS=$ac_check_lib_save_LIBS
12107fi
12108echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12109echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12110if test $ac_cv_lib_svld_dlopen = yes; then
12111  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12112else
12113  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12114echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12115if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12116  echo $ECHO_N "(cached) $ECHO_C" >&6
12117else
12118  ac_check_lib_save_LIBS=$LIBS
12119LIBS="-ldld  $LIBS"
12120cat >conftest.$ac_ext <<_ACEOF
12121/* confdefs.h.  */
12122_ACEOF
12123cat confdefs.h >>conftest.$ac_ext
12124cat >>conftest.$ac_ext <<_ACEOF
12125/* end confdefs.h.  */
12126
12127/* Override any gcc2 internal prototype to avoid an error.  */
12128#ifdef __cplusplus
12129extern "C"
12130#endif
12131/* We use char because int might match the return type of a gcc2
12132   builtin and then its argument prototype would still apply.  */
12133char dld_link ();
12134#ifdef F77_DUMMY_MAIN
12135
12136#  ifdef __cplusplus
12137     extern "C"
12138#  endif
12139   int F77_DUMMY_MAIN() { return 1; }
12140
12141#endif
12142int
12143main ()
12144{
12145dld_link ();
12146  ;
12147  return 0;
12148}
12149_ACEOF
12150rm -f conftest.$ac_objext conftest$ac_exeext
12151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152  (eval $ac_link) 2>conftest.er1
12153  ac_status=$?
12154  grep -v '^ *+' conftest.er1 >conftest.err
12155  rm -f conftest.er1
12156  cat conftest.err >&5
12157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158  (exit $ac_status); } &&
12159	 { ac_try='test -z "$ac_c_werror_flag"
12160			 || test ! -s conftest.err'
12161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162  (eval $ac_try) 2>&5
12163  ac_status=$?
12164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165  (exit $ac_status); }; } &&
12166	 { ac_try='test -s conftest$ac_exeext'
12167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168  (eval $ac_try) 2>&5
12169  ac_status=$?
12170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171  (exit $ac_status); }; }; then
12172  ac_cv_lib_dld_dld_link=yes
12173else
12174  echo "$as_me: failed program was:" >&5
12175sed 's/^/| /' conftest.$ac_ext >&5
12176
12177ac_cv_lib_dld_dld_link=no
12178fi
12179rm -f conftest.err conftest.$ac_objext \
12180      conftest$ac_exeext conftest.$ac_ext
12181LIBS=$ac_check_lib_save_LIBS
12182fi
12183echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12184echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12185if test $ac_cv_lib_dld_dld_link = yes; then
12186  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12187fi
12188
12189
12190fi
12191
12192
12193fi
12194
12195
12196fi
12197
12198
12199fi
12200
12201
12202fi
12203
12204    ;;
12205  esac
12206
12207  if test "x$lt_cv_dlopen" != xno; then
12208    enable_dlopen=yes
12209  else
12210    enable_dlopen=no
12211  fi
12212
12213  case $lt_cv_dlopen in
12214  dlopen)
12215    save_CPPFLAGS="$CPPFLAGS"
12216    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12217
12218    save_LDFLAGS="$LDFLAGS"
12219    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12220
12221    save_LIBS="$LIBS"
12222    LIBS="$lt_cv_dlopen_libs $LIBS"
12223
12224    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12225echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12226if test "${lt_cv_dlopen_self+set}" = set; then
12227  echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229  	  if test "$cross_compiling" = yes; then :
12230  lt_cv_dlopen_self=cross
12231else
12232  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233  lt_status=$lt_dlunknown
12234  cat > conftest.$ac_ext <<EOF
12235#line 12235 "configure"
12236#include "confdefs.h"
12237
12238#if HAVE_DLFCN_H
12239#include <dlfcn.h>
12240#endif
12241
12242#include <stdio.h>
12243
12244#ifdef RTLD_GLOBAL
12245#  define LT_DLGLOBAL		RTLD_GLOBAL
12246#else
12247#  ifdef DL_GLOBAL
12248#    define LT_DLGLOBAL		DL_GLOBAL
12249#  else
12250#    define LT_DLGLOBAL		0
12251#  endif
12252#endif
12253
12254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255   find out it does not work in some platform. */
12256#ifndef LT_DLLAZY_OR_NOW
12257#  ifdef RTLD_LAZY
12258#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12259#  else
12260#    ifdef DL_LAZY
12261#      define LT_DLLAZY_OR_NOW		DL_LAZY
12262#    else
12263#      ifdef RTLD_NOW
12264#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12265#      else
12266#        ifdef DL_NOW
12267#          define LT_DLLAZY_OR_NOW	DL_NOW
12268#        else
12269#          define LT_DLLAZY_OR_NOW	0
12270#        endif
12271#      endif
12272#    endif
12273#  endif
12274#endif
12275
12276#ifdef __cplusplus
12277extern "C" void exit (int);
12278#endif
12279
12280void fnord() { int i=42;}
12281int main ()
12282{
12283  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12284  int status = $lt_dlunknown;
12285
12286  if (self)
12287    {
12288      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12289      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12290      /* dlclose (self); */
12291    }
12292  else
12293    puts (dlerror ());
12294
12295    exit (status);
12296}
12297EOF
12298  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299  (eval $ac_link) 2>&5
12300  ac_status=$?
12301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12303    (./conftest; exit; ) >&5 2>/dev/null
12304    lt_status=$?
12305    case x$lt_status in
12306      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12307      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12308      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12309    esac
12310  else :
12311    # compilation failed
12312    lt_cv_dlopen_self=no
12313  fi
12314fi
12315rm -fr conftest*
12316
12317
12318fi
12319echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12320echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12321
12322    if test "x$lt_cv_dlopen_self" = xyes; then
12323      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12324      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12325echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12326if test "${lt_cv_dlopen_self_static+set}" = set; then
12327  echo $ECHO_N "(cached) $ECHO_C" >&6
12328else
12329  	  if test "$cross_compiling" = yes; then :
12330  lt_cv_dlopen_self_static=cross
12331else
12332  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12333  lt_status=$lt_dlunknown
12334  cat > conftest.$ac_ext <<EOF
12335#line 12335 "configure"
12336#include "confdefs.h"
12337
12338#if HAVE_DLFCN_H
12339#include <dlfcn.h>
12340#endif
12341
12342#include <stdio.h>
12343
12344#ifdef RTLD_GLOBAL
12345#  define LT_DLGLOBAL		RTLD_GLOBAL
12346#else
12347#  ifdef DL_GLOBAL
12348#    define LT_DLGLOBAL		DL_GLOBAL
12349#  else
12350#    define LT_DLGLOBAL		0
12351#  endif
12352#endif
12353
12354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12355   find out it does not work in some platform. */
12356#ifndef LT_DLLAZY_OR_NOW
12357#  ifdef RTLD_LAZY
12358#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12359#  else
12360#    ifdef DL_LAZY
12361#      define LT_DLLAZY_OR_NOW		DL_LAZY
12362#    else
12363#      ifdef RTLD_NOW
12364#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12365#      else
12366#        ifdef DL_NOW
12367#          define LT_DLLAZY_OR_NOW	DL_NOW
12368#        else
12369#          define LT_DLLAZY_OR_NOW	0
12370#        endif
12371#      endif
12372#    endif
12373#  endif
12374#endif
12375
12376#ifdef __cplusplus
12377extern "C" void exit (int);
12378#endif
12379
12380void fnord() { int i=42;}
12381int main ()
12382{
12383  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12384  int status = $lt_dlunknown;
12385
12386  if (self)
12387    {
12388      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12389      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12390      /* dlclose (self); */
12391    }
12392  else
12393    puts (dlerror ());
12394
12395    exit (status);
12396}
12397EOF
12398  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12399  (eval $ac_link) 2>&5
12400  ac_status=$?
12401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12403    (./conftest; exit; ) >&5 2>/dev/null
12404    lt_status=$?
12405    case x$lt_status in
12406      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12407      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12408      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12409    esac
12410  else :
12411    # compilation failed
12412    lt_cv_dlopen_self_static=no
12413  fi
12414fi
12415rm -fr conftest*
12416
12417
12418fi
12419echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12420echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12421    fi
12422
12423    CPPFLAGS="$save_CPPFLAGS"
12424    LDFLAGS="$save_LDFLAGS"
12425    LIBS="$save_LIBS"
12426    ;;
12427  esac
12428
12429  case $lt_cv_dlopen_self in
12430  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12431  *) enable_dlopen_self=unknown ;;
12432  esac
12433
12434  case $lt_cv_dlopen_self_static in
12435  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12436  *) enable_dlopen_self_static=unknown ;;
12437  esac
12438fi
12439
12440
12441# Report which library types will actually be built
12442echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12443echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12444echo "$as_me:$LINENO: result: $can_build_shared" >&5
12445echo "${ECHO_T}$can_build_shared" >&6
12446
12447echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12448echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12449test "$can_build_shared" = "no" && enable_shared=no
12450
12451# On AIX, shared libraries and static libraries use the same namespace, and
12452# are all built from PIC.
12453case $host_os in
12454aix3*)
12455  test "$enable_shared" = yes && enable_static=no
12456  if test -n "$RANLIB"; then
12457    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12458    postinstall_cmds='$RANLIB $lib'
12459  fi
12460  ;;
12461
12462aix4* | aix5*)
12463  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12464    test "$enable_shared" = yes && enable_static=no
12465  fi
12466    ;;
12467esac
12468echo "$as_me:$LINENO: result: $enable_shared" >&5
12469echo "${ECHO_T}$enable_shared" >&6
12470
12471echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12472echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12473# Make sure either enable_shared or enable_static is yes.
12474test "$enable_shared" = yes || enable_static=yes
12475echo "$as_me:$LINENO: result: $enable_static" >&5
12476echo "${ECHO_T}$enable_static" >&6
12477
12478# The else clause should only fire when bootstrapping the
12479# libtool distribution, otherwise you forgot to ship ltmain.sh
12480# with your package, and you will get complaints that there are
12481# no rules to generate ltmain.sh.
12482if test -f "$ltmain"; then
12483  # See if we are running on zsh, and set the options which allow our commands through
12484  # without removal of \ escapes.
12485  if test -n "${ZSH_VERSION+set}" ; then
12486    setopt NO_GLOB_SUBST
12487  fi
12488  # Now quote all the things that may contain metacharacters while being
12489  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12490  # variables and quote the copies for generation of the libtool script.
12491  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12492    SED SHELL STRIP \
12493    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12494    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12495    deplibs_check_method reload_flag reload_cmds need_locks \
12496    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12497    lt_cv_sys_global_symbol_to_c_name_address \
12498    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12499    old_postinstall_cmds old_postuninstall_cmds \
12500    compiler \
12501    CC \
12502    LD \
12503    lt_prog_compiler_wl \
12504    lt_prog_compiler_pic \
12505    lt_prog_compiler_static \
12506    lt_prog_compiler_no_builtin_flag \
12507    export_dynamic_flag_spec \
12508    thread_safe_flag_spec \
12509    whole_archive_flag_spec \
12510    enable_shared_with_static_runtimes \
12511    old_archive_cmds \
12512    old_archive_from_new_cmds \
12513    predep_objects \
12514    postdep_objects \
12515    predeps \
12516    postdeps \
12517    compiler_lib_search_path \
12518    archive_cmds \
12519    archive_expsym_cmds \
12520    postinstall_cmds \
12521    postuninstall_cmds \
12522    old_archive_from_expsyms_cmds \
12523    allow_undefined_flag \
12524    no_undefined_flag \
12525    export_symbols_cmds \
12526    hardcode_libdir_flag_spec \
12527    hardcode_libdir_flag_spec_ld \
12528    hardcode_libdir_separator \
12529    hardcode_automatic \
12530    module_cmds \
12531    module_expsym_cmds \
12532    lt_cv_prog_compiler_c_o \
12533    exclude_expsyms \
12534    include_expsyms; do
12535
12536    case $var in
12537    old_archive_cmds | \
12538    old_archive_from_new_cmds | \
12539    archive_cmds | \
12540    archive_expsym_cmds | \
12541    module_cmds | \
12542    module_expsym_cmds | \
12543    old_archive_from_expsyms_cmds | \
12544    export_symbols_cmds | \
12545    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12546    postinstall_cmds | postuninstall_cmds | \
12547    old_postinstall_cmds | old_postuninstall_cmds | \
12548    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12549      # Double-quote double-evaled strings.
12550      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12551      ;;
12552    *)
12553      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12554      ;;
12555    esac
12556  done
12557
12558  case $lt_echo in
12559  *'\$0 --fallback-echo"')
12560    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12561    ;;
12562  esac
12563
12564cfgfile="${ofile}T"
12565  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12566  $rm -f "$cfgfile"
12567  { echo "$as_me:$LINENO: creating $ofile" >&5
12568echo "$as_me: creating $ofile" >&6;}
12569
12570  cat <<__EOF__ >> "$cfgfile"
12571#! $SHELL
12572
12573# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12574# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12575# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12576#
12577# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12578# Free Software Foundation, Inc.
12579#
12580# This file is part of GNU Libtool:
12581# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12582#
12583# This program is free software; you can redistribute it and/or modify
12584# it under the terms of the GNU General Public License as published by
12585# the Free Software Foundation; either version 2 of the License, or
12586# (at your option) any later version.
12587#
12588# This program is distributed in the hope that it will be useful, but
12589# WITHOUT ANY WARRANTY; without even the implied warranty of
12590# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12591# General Public License for more details.
12592#
12593# You should have received a copy of the GNU General Public License
12594# along with this program; if not, write to the Free Software
12595# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12596#
12597# As a special exception to the GNU General Public License, if you
12598# distribute this file as part of a program that contains a
12599# configuration script generated by Autoconf, you may include it under
12600# the same distribution terms that you use for the rest of that program.
12601
12602# A sed program that does not truncate output.
12603SED=$lt_SED
12604
12605# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12606Xsed="$SED -e 1s/^X//"
12607
12608# The HP-UX ksh and POSIX shell print the target directory to stdout
12609# if CDPATH is set.
12610(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12611
12612# The names of the tagged configurations supported by this script.
12613available_tags=
12614
12615# ### BEGIN LIBTOOL CONFIG
12616
12617# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12618
12619# Shell to use when invoking shell scripts.
12620SHELL=$lt_SHELL
12621
12622# Whether or not to build shared libraries.
12623build_libtool_libs=$enable_shared
12624
12625# Whether or not to build static libraries.
12626build_old_libs=$enable_static
12627
12628# Whether or not to add -lc for building shared libraries.
12629build_libtool_need_lc=$archive_cmds_need_lc
12630
12631# Whether or not to disallow shared libs when runtime libs are static
12632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12633
12634# Whether or not to optimize for fast installation.
12635fast_install=$enable_fast_install
12636
12637# The host system.
12638host_alias=$host_alias
12639host=$host
12640host_os=$host_os
12641
12642# The build system.
12643build_alias=$build_alias
12644build=$build
12645build_os=$build_os
12646
12647# An echo program that does not interpret backslashes.
12648echo=$lt_echo
12649
12650# The archiver.
12651AR=$lt_AR
12652AR_FLAGS=$lt_AR_FLAGS
12653
12654# A C compiler.
12655LTCC=$lt_LTCC
12656
12657# LTCC compiler flags.
12658LTCFLAGS=$lt_LTCFLAGS
12659
12660# A language-specific compiler.
12661CC=$lt_compiler
12662
12663# Is the compiler the GNU C compiler?
12664with_gcc=$GCC
12665
12666# An ERE matcher.
12667EGREP=$lt_EGREP
12668
12669# The linker used to build libraries.
12670LD=$lt_LD
12671
12672# Whether we need hard or soft links.
12673LN_S=$lt_LN_S
12674
12675# A BSD-compatible nm program.
12676NM=$lt_NM
12677
12678# A symbol stripping program
12679STRIP=$lt_STRIP
12680
12681# Used to examine libraries when file_magic_cmd begins "file"
12682MAGIC_CMD=$MAGIC_CMD
12683
12684# Used on cygwin: DLL creation program.
12685DLLTOOL="$DLLTOOL"
12686
12687# Used on cygwin: object dumper.
12688OBJDUMP="$OBJDUMP"
12689
12690# Used on cygwin: assembler.
12691AS="$AS"
12692
12693# The name of the directory that contains temporary libtool files.
12694objdir=$objdir
12695
12696# How to create reloadable object files.
12697reload_flag=$lt_reload_flag
12698reload_cmds=$lt_reload_cmds
12699
12700# How to pass a linker flag through the compiler.
12701wl=$lt_lt_prog_compiler_wl
12702
12703# Object file suffix (normally "o").
12704objext="$ac_objext"
12705
12706# Old archive suffix (normally "a").
12707libext="$libext"
12708
12709# Shared library suffix (normally ".so").
12710shrext_cmds='$shrext_cmds'
12711
12712# Executable file suffix (normally "").
12713exeext="$exeext"
12714
12715# Additional compiler flags for building library objects.
12716pic_flag=$lt_lt_prog_compiler_pic
12717pic_mode=$pic_mode
12718
12719# What is the maximum length of a command?
12720max_cmd_len=$lt_cv_sys_max_cmd_len
12721
12722# Does compiler simultaneously support -c and -o options?
12723compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12724
12725# Must we lock files when doing compilation?
12726need_locks=$lt_need_locks
12727
12728# Do we need the lib prefix for modules?
12729need_lib_prefix=$need_lib_prefix
12730
12731# Do we need a version for libraries?
12732need_version=$need_version
12733
12734# Whether dlopen is supported.
12735dlopen_support=$enable_dlopen
12736
12737# Whether dlopen of programs is supported.
12738dlopen_self=$enable_dlopen_self
12739
12740# Whether dlopen of statically linked programs is supported.
12741dlopen_self_static=$enable_dlopen_self_static
12742
12743# Compiler flag to prevent dynamic linking.
12744link_static_flag=$lt_lt_prog_compiler_static
12745
12746# Compiler flag to turn off builtin functions.
12747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12748
12749# Compiler flag to allow reflexive dlopens.
12750export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12751
12752# Compiler flag to generate shared objects directly from archives.
12753whole_archive_flag_spec=$lt_whole_archive_flag_spec
12754
12755# Compiler flag to generate thread-safe objects.
12756thread_safe_flag_spec=$lt_thread_safe_flag_spec
12757
12758# Library versioning type.
12759version_type=$version_type
12760
12761# Format of library name prefix.
12762libname_spec=$lt_libname_spec
12763
12764# List of archive names.  First name is the real one, the rest are links.
12765# The last name is the one that the linker finds with -lNAME.
12766library_names_spec=$lt_library_names_spec
12767
12768# The coded name of the library, if different from the real name.
12769soname_spec=$lt_soname_spec
12770
12771# Commands used to build and install an old-style archive.
12772RANLIB=$lt_RANLIB
12773old_archive_cmds=$lt_old_archive_cmds
12774old_postinstall_cmds=$lt_old_postinstall_cmds
12775old_postuninstall_cmds=$lt_old_postuninstall_cmds
12776
12777# Create an old-style archive from a shared archive.
12778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12779
12780# Create a temporary old-style archive to link instead of a shared archive.
12781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12782
12783# Commands used to build and install a shared archive.
12784archive_cmds=$lt_archive_cmds
12785archive_expsym_cmds=$lt_archive_expsym_cmds
12786postinstall_cmds=$lt_postinstall_cmds
12787postuninstall_cmds=$lt_postuninstall_cmds
12788
12789# Commands used to build a loadable module (assumed same as above if empty)
12790module_cmds=$lt_module_cmds
12791module_expsym_cmds=$lt_module_expsym_cmds
12792
12793# Commands to strip libraries.
12794old_striplib=$lt_old_striplib
12795striplib=$lt_striplib
12796
12797# Dependencies to place before the objects being linked to create a
12798# shared library.
12799predep_objects=$lt_predep_objects
12800
12801# Dependencies to place after the objects being linked to create a
12802# shared library.
12803postdep_objects=$lt_postdep_objects
12804
12805# Dependencies to place before the objects being linked to create a
12806# shared library.
12807predeps=$lt_predeps
12808
12809# Dependencies to place after the objects being linked to create a
12810# shared library.
12811postdeps=$lt_postdeps
12812
12813# The library search path used internally by the compiler when linking
12814# a shared library.
12815compiler_lib_search_path=$lt_compiler_lib_search_path
12816
12817# Method to check whether dependent libraries are shared objects.
12818deplibs_check_method=$lt_deplibs_check_method
12819
12820# Command to use when deplibs_check_method == file_magic.
12821file_magic_cmd=$lt_file_magic_cmd
12822
12823# Flag that allows shared libraries with undefined symbols to be built.
12824allow_undefined_flag=$lt_allow_undefined_flag
12825
12826# Flag that forces no undefined symbols.
12827no_undefined_flag=$lt_no_undefined_flag
12828
12829# Commands used to finish a libtool library installation in a directory.
12830finish_cmds=$lt_finish_cmds
12831
12832# Same as above, but a single script fragment to be evaled but not shown.
12833finish_eval=$lt_finish_eval
12834
12835# Take the output of nm and produce a listing of raw symbols and C names.
12836global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12837
12838# Transform the output of nm in a proper C declaration
12839global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12840
12841# Transform the output of nm in a C name address pair
12842global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12843
12844# This is the shared library runtime path variable.
12845runpath_var=$runpath_var
12846
12847# This is the shared library path variable.
12848shlibpath_var=$shlibpath_var
12849
12850# Is shlibpath searched before the hard-coded library search path?
12851shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12852
12853# How to hardcode a shared library path into an executable.
12854hardcode_action=$hardcode_action
12855
12856# Whether we should hardcode library paths into libraries.
12857hardcode_into_libs=$hardcode_into_libs
12858
12859# Flag to hardcode \$libdir into a binary during linking.
12860# This must work even if \$libdir does not exist.
12861hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12862
12863# If ld is used when linking, flag to hardcode \$libdir into
12864# a binary during linking. This must work even if \$libdir does
12865# not exist.
12866hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12867
12868# Whether we need a single -rpath flag with a separated argument.
12869hardcode_libdir_separator=$lt_hardcode_libdir_separator
12870
12871# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12872# resulting binary.
12873hardcode_direct=$hardcode_direct
12874
12875# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12876# resulting binary.
12877hardcode_minus_L=$hardcode_minus_L
12878
12879# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12880# the resulting binary.
12881hardcode_shlibpath_var=$hardcode_shlibpath_var
12882
12883# Set to yes if building a shared library automatically hardcodes DIR into the library
12884# and all subsequent libraries and executables linked against it.
12885hardcode_automatic=$hardcode_automatic
12886
12887# Variables whose values should be saved in libtool wrapper scripts and
12888# restored at relink time.
12889variables_saved_for_relink="$variables_saved_for_relink"
12890
12891# Whether libtool must link a program against all its dependency libraries.
12892link_all_deplibs=$link_all_deplibs
12893
12894# Compile-time system search path for libraries
12895sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12896
12897# Run-time system search path for libraries
12898sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12899
12900# Fix the shell variable \$srcfile for the compiler.
12901fix_srcfile_path="$fix_srcfile_path"
12902
12903# Set to yes if exported symbols are required.
12904always_export_symbols=$always_export_symbols
12905
12906# The commands to list exported symbols.
12907export_symbols_cmds=$lt_export_symbols_cmds
12908
12909# The commands to extract the exported symbol list from a shared archive.
12910extract_expsyms_cmds=$lt_extract_expsyms_cmds
12911
12912# Symbols that should not be listed in the preloaded symbols.
12913exclude_expsyms=$lt_exclude_expsyms
12914
12915# Symbols that must always be exported.
12916include_expsyms=$lt_include_expsyms
12917
12918# ### END LIBTOOL CONFIG
12919
12920__EOF__
12921
12922
12923  case $host_os in
12924  aix3*)
12925    cat <<\EOF >> "$cfgfile"
12926
12927# AIX sometimes has problems with the GCC collect2 program.  For some
12928# reason, if we set the COLLECT_NAMES environment variable, the problems
12929# vanish in a puff of smoke.
12930if test "X${COLLECT_NAMES+set}" != Xset; then
12931  COLLECT_NAMES=
12932  export COLLECT_NAMES
12933fi
12934EOF
12935    ;;
12936  esac
12937
12938  # We use sed instead of cat because bash on DJGPP gets confused if
12939  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12940  # text mode, it properly converts lines to CR/LF.  This bash problem
12941  # is reportedly fixed, but why not run on old versions too?
12942  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12943
12944  mv -f "$cfgfile" "$ofile" || \
12945    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12946  chmod +x "$ofile"
12947
12948else
12949  # If there is no Makefile yet, we rely on a make rule to execute
12950  # `config.status --recheck' to rerun these tests and create the
12951  # libtool script then.
12952  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12953  if test -f "$ltmain_in"; then
12954    test -f Makefile && make "$ltmain"
12955  fi
12956fi
12957
12958
12959ac_ext=c
12960ac_cpp='$CPP $CPPFLAGS'
12961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964
12965CC="$lt_save_CC"
12966
12967
12968# Check whether --with-tags or --without-tags was given.
12969if test "${with_tags+set}" = set; then
12970  withval="$with_tags"
12971  tagnames="$withval"
12972fi;
12973
12974if test -f "$ltmain" && test -n "$tagnames"; then
12975  if test ! -f "${ofile}"; then
12976    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12977echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12978  fi
12979
12980  if test -z "$LTCC"; then
12981    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12982    if test -z "$LTCC"; then
12983      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12984echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12985    else
12986      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12987echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12988    fi
12989  fi
12990  if test -z "$LTCFLAGS"; then
12991    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12992  fi
12993
12994  # Extract list of available tagged configurations in $ofile.
12995  # Note that this assumes the entire list is on one line.
12996  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12997
12998  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12999  for tagname in $tagnames; do
13000    IFS="$lt_save_ifs"
13001    # Check whether tagname contains only valid characters
13002    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13003    "") ;;
13004    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13005echo "$as_me: error: invalid tag name: $tagname" >&2;}
13006   { (exit 1); exit 1; }; }
13007	;;
13008    esac
13009
13010    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13011    then
13012      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13013echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13014   { (exit 1); exit 1; }; }
13015    fi
13016
13017    # Update the list of available tags.
13018    if test -n "$tagname"; then
13019      echo appending configuration tag \"$tagname\" to $ofile
13020
13021      case $tagname in
13022      CXX)
13023	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13024	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13025	    (test "X$CXX" != "Xg++"))) ; then
13026	  ac_ext=cc
13027ac_cpp='$CXXCPP $CPPFLAGS'
13028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13031
13032
13033
13034
13035archive_cmds_need_lc_CXX=no
13036allow_undefined_flag_CXX=
13037always_export_symbols_CXX=no
13038archive_expsym_cmds_CXX=
13039export_dynamic_flag_spec_CXX=
13040hardcode_direct_CXX=no
13041hardcode_libdir_flag_spec_CXX=
13042hardcode_libdir_flag_spec_ld_CXX=
13043hardcode_libdir_separator_CXX=
13044hardcode_minus_L_CXX=no
13045hardcode_shlibpath_var_CXX=unsupported
13046hardcode_automatic_CXX=no
13047module_cmds_CXX=
13048module_expsym_cmds_CXX=
13049link_all_deplibs_CXX=unknown
13050old_archive_cmds_CXX=$old_archive_cmds
13051no_undefined_flag_CXX=
13052whole_archive_flag_spec_CXX=
13053enable_shared_with_static_runtimes_CXX=no
13054
13055# Dependencies to place before and after the object being linked:
13056predep_objects_CXX=
13057postdep_objects_CXX=
13058predeps_CXX=
13059postdeps_CXX=
13060compiler_lib_search_path_CXX=
13061
13062# Source file extension for C++ test sources.
13063ac_ext=cpp
13064
13065# Object file extension for compiled C++ test sources.
13066objext=o
13067objext_CXX=$objext
13068
13069# Code to be used in simple compile tests
13070lt_simple_compile_test_code="int some_variable = 0;\n"
13071
13072# Code to be used in simple link tests
13073lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
13074
13075# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13076
13077# If no C compiler was specified, use CC.
13078LTCC=${LTCC-"$CC"}
13079
13080# If no C compiler flags were specified, use CFLAGS.
13081LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13082
13083# Allow CC to be a program name with arguments.
13084compiler=$CC
13085
13086
13087# save warnings/boilerplate of simple test code
13088ac_outfile=conftest.$ac_objext
13089printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13090eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13091_lt_compiler_boilerplate=`cat conftest.err`
13092$rm conftest*
13093
13094ac_outfile=conftest.$ac_objext
13095printf "$lt_simple_link_test_code" >conftest.$ac_ext
13096eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13097_lt_linker_boilerplate=`cat conftest.err`
13098$rm conftest*
13099
13100
13101# Allow CC to be a program name with arguments.
13102lt_save_CC=$CC
13103lt_save_LD=$LD
13104lt_save_GCC=$GCC
13105GCC=$GXX
13106lt_save_with_gnu_ld=$with_gnu_ld
13107lt_save_path_LD=$lt_cv_path_LD
13108if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13109  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13110else
13111  $as_unset lt_cv_prog_gnu_ld
13112fi
13113if test -n "${lt_cv_path_LDCXX+set}"; then
13114  lt_cv_path_LD=$lt_cv_path_LDCXX
13115else
13116  $as_unset lt_cv_path_LD
13117fi
13118test -z "${LDCXX+set}" || LD=$LDCXX
13119CC=${CXX-"c++"}
13120compiler=$CC
13121compiler_CXX=$CC
13122for cc_temp in $compiler""; do
13123  case $cc_temp in
13124    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13125    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13126    \-*) ;;
13127    *) break;;
13128  esac
13129done
13130cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13131
13132
13133# We don't want -fno-exception wen compiling C++ code, so set the
13134# no_builtin_flag separately
13135if test "$GXX" = yes; then
13136  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13137else
13138  lt_prog_compiler_no_builtin_flag_CXX=
13139fi
13140
13141if test "$GXX" = yes; then
13142  # Set up default GNU C++ configuration
13143
13144
13145# Check whether --with-gnu-ld or --without-gnu-ld was given.
13146if test "${with_gnu_ld+set}" = set; then
13147  withval="$with_gnu_ld"
13148  test "$withval" = no || with_gnu_ld=yes
13149else
13150  with_gnu_ld=no
13151fi;
13152ac_prog=ld
13153if test "$GCC" = yes; then
13154  # Check if gcc -print-prog-name=ld gives a path.
13155  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13156echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13157  case $host in
13158  *-*-mingw*)
13159    # gcc leaves a trailing carriage return which upsets mingw
13160    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13161  *)
13162    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13163  esac
13164  case $ac_prog in
13165    # Accept absolute paths.
13166    [\\/]* | ?:[\\/]*)
13167      re_direlt='/[^/][^/]*/\.\./'
13168      # Canonicalize the pathname of ld
13169      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13170      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13171	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13172      done
13173      test -z "$LD" && LD="$ac_prog"
13174      ;;
13175  "")
13176    # If it fails, then pretend we aren't using GCC.
13177    ac_prog=ld
13178    ;;
13179  *)
13180    # If it is relative, then search for the first ld in PATH.
13181    with_gnu_ld=unknown
13182    ;;
13183  esac
13184elif test "$with_gnu_ld" = yes; then
13185  echo "$as_me:$LINENO: checking for GNU ld" >&5
13186echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13187else
13188  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13189echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13190fi
13191if test "${lt_cv_path_LD+set}" = set; then
13192  echo $ECHO_N "(cached) $ECHO_C" >&6
13193else
13194  if test -z "$LD"; then
13195  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13196  for ac_dir in $PATH; do
13197    IFS="$lt_save_ifs"
13198    test -z "$ac_dir" && ac_dir=.
13199    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13200      lt_cv_path_LD="$ac_dir/$ac_prog"
13201      # Check to see if the program is GNU ld.  I'd rather use --version,
13202      # but apparently some variants of GNU ld only accept -v.
13203      # Break only if it was the GNU/non-GNU ld that we prefer.
13204      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13205      *GNU* | *'with BFD'*)
13206	test "$with_gnu_ld" != no && break
13207	;;
13208      *)
13209	test "$with_gnu_ld" != yes && break
13210	;;
13211      esac
13212    fi
13213  done
13214  IFS="$lt_save_ifs"
13215else
13216  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13217fi
13218fi
13219
13220LD="$lt_cv_path_LD"
13221if test -n "$LD"; then
13222  echo "$as_me:$LINENO: result: $LD" >&5
13223echo "${ECHO_T}$LD" >&6
13224else
13225  echo "$as_me:$LINENO: result: no" >&5
13226echo "${ECHO_T}no" >&6
13227fi
13228test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13229echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13230   { (exit 1); exit 1; }; }
13231echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13232echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13233if test "${lt_cv_prog_gnu_ld+set}" = set; then
13234  echo $ECHO_N "(cached) $ECHO_C" >&6
13235else
13236  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13237case `$LD -v 2>&1 </dev/null` in
13238*GNU* | *'with BFD'*)
13239  lt_cv_prog_gnu_ld=yes
13240  ;;
13241*)
13242  lt_cv_prog_gnu_ld=no
13243  ;;
13244esac
13245fi
13246echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13247echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13248with_gnu_ld=$lt_cv_prog_gnu_ld
13249
13250
13251
13252  # Check if GNU C++ uses GNU ld as the underlying linker, since the
13253  # archiving commands below assume that GNU ld is being used.
13254  if test "$with_gnu_ld" = yes; then
13255    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13256    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'
13257
13258    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13259    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13260
13261    # If archive_cmds runs LD, not CC, wlarc should be empty
13262    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13263    #     investigate it a little bit more. (MM)
13264    wlarc='${wl}'
13265
13266    # ancient GNU ld didn't support --whole-archive et. al.
13267    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13268	grep 'no-whole-archive' > /dev/null; then
13269      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13270    else
13271      whole_archive_flag_spec_CXX=
13272    fi
13273  else
13274    with_gnu_ld=no
13275    wlarc=
13276
13277    # A generic and very simple default shared library creation
13278    # command for GNU C++ for the case where it uses the native
13279    # linker, instead of GNU ld.  If possible, this setting should
13280    # overridden to take advantage of the native linker features on
13281    # the platform it is being used on.
13282    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13283  fi
13284
13285  # Commands to make compiler produce verbose output that lists
13286  # what "hidden" libraries, object files and flags are used when
13287  # linking a shared library.
13288  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13289
13290else
13291  GXX=no
13292  with_gnu_ld=no
13293  wlarc=
13294fi
13295
13296# PORTME: fill in a description of your system's C++ link characteristics
13297echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13298echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13299ld_shlibs_CXX=yes
13300case $host_os in
13301  aix3*)
13302    # FIXME: insert proper C++ library support
13303    ld_shlibs_CXX=no
13304    ;;
13305  aix4* | aix5*)
13306    if test "$host_cpu" = ia64; then
13307      # On IA64, the linker does run time linking by default, so we don't
13308      # have to do anything special.
13309      aix_use_runtimelinking=no
13310      exp_sym_flag='-Bexport'
13311      no_entry_flag=""
13312    else
13313      aix_use_runtimelinking=no
13314
13315      # Test if we are trying to use run time linking or normal
13316      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13317      # need to do runtime linking.
13318      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13319	for ld_flag in $LDFLAGS; do
13320	  case $ld_flag in
13321	  *-brtl*)
13322	    aix_use_runtimelinking=yes
13323	    break
13324	    ;;
13325	  esac
13326	done
13327	;;
13328      esac
13329
13330      exp_sym_flag='-bexport'
13331      no_entry_flag='-bnoentry'
13332    fi
13333
13334    # When large executables or shared objects are built, AIX ld can
13335    # have problems creating the table of contents.  If linking a library
13336    # or program results in "error TOC overflow" add -mminimal-toc to
13337    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13338    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13339
13340    archive_cmds_CXX=''
13341    hardcode_direct_CXX=yes
13342    hardcode_libdir_separator_CXX=':'
13343    link_all_deplibs_CXX=yes
13344
13345    if test "$GXX" = yes; then
13346      case $host_os in aix4.[012]|aix4.[012].*)
13347      # We only want to do this on AIX 4.2 and lower, the check
13348      # below for broken collect2 doesn't work under 4.3+
13349	collect2name=`${CC} -print-prog-name=collect2`
13350	if test -f "$collect2name" && \
13351	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13352	then
13353	  # We have reworked collect2
13354	  hardcode_direct_CXX=yes
13355	else
13356	  # We have old collect2
13357	  hardcode_direct_CXX=unsupported
13358	  # It fails to find uninstalled libraries when the uninstalled
13359	  # path is not listed in the libpath.  Setting hardcode_minus_L
13360	  # to unsupported forces relinking
13361	  hardcode_minus_L_CXX=yes
13362	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13363	  hardcode_libdir_separator_CXX=
13364	fi
13365	;;
13366      esac
13367      shared_flag='-shared'
13368      if test "$aix_use_runtimelinking" = yes; then
13369	shared_flag="$shared_flag "'${wl}-G'
13370      fi
13371    else
13372      # not using gcc
13373      if test "$host_cpu" = ia64; then
13374	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13375	# chokes on -Wl,-G. The following line is correct:
13376	shared_flag='-G'
13377      else
13378	if test "$aix_use_runtimelinking" = yes; then
13379	  shared_flag='${wl}-G'
13380	else
13381	  shared_flag='${wl}-bM:SRE'
13382	fi
13383      fi
13384    fi
13385
13386    # It seems that -bexpall does not export symbols beginning with
13387    # underscore (_), so it is better to generate a list of symbols to export.
13388    always_export_symbols_CXX=yes
13389    if test "$aix_use_runtimelinking" = yes; then
13390      # Warning - without using the other runtime loading flags (-brtl),
13391      # -berok will link without error, but may produce a broken library.
13392      allow_undefined_flag_CXX='-berok'
13393      # Determine the default libpath from the value encoded in an empty executable.
13394      cat >conftest.$ac_ext <<_ACEOF
13395/* confdefs.h.  */
13396_ACEOF
13397cat confdefs.h >>conftest.$ac_ext
13398cat >>conftest.$ac_ext <<_ACEOF
13399/* end confdefs.h.  */
13400
13401#ifdef F77_DUMMY_MAIN
13402
13403#  ifdef __cplusplus
13404     extern "C"
13405#  endif
13406   int F77_DUMMY_MAIN() { return 1; }
13407
13408#endif
13409int
13410main ()
13411{
13412
13413  ;
13414  return 0;
13415}
13416_ACEOF
13417rm -f conftest.$ac_objext conftest$ac_exeext
13418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419  (eval $ac_link) 2>conftest.er1
13420  ac_status=$?
13421  grep -v '^ *+' conftest.er1 >conftest.err
13422  rm -f conftest.er1
13423  cat conftest.err >&5
13424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425  (exit $ac_status); } &&
13426	 { ac_try='test -z "$ac_cxx_werror_flag"
13427			 || test ! -s conftest.err'
13428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429  (eval $ac_try) 2>&5
13430  ac_status=$?
13431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432  (exit $ac_status); }; } &&
13433	 { ac_try='test -s conftest$ac_exeext'
13434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435  (eval $ac_try) 2>&5
13436  ac_status=$?
13437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438  (exit $ac_status); }; }; then
13439
13440aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13441}'`
13442# Check for a 64-bit object if we didn't find anything.
13443if 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; }
13444}'`; fi
13445else
13446  echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449fi
13450rm -f conftest.err conftest.$ac_objext \
13451      conftest$ac_exeext conftest.$ac_ext
13452if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13453
13454      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13455
13456      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"
13457     else
13458      if test "$host_cpu" = ia64; then
13459	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13460	allow_undefined_flag_CXX="-z nodefs"
13461	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"
13462      else
13463	# Determine the default libpath from the value encoded in an empty executable.
13464	cat >conftest.$ac_ext <<_ACEOF
13465/* confdefs.h.  */
13466_ACEOF
13467cat confdefs.h >>conftest.$ac_ext
13468cat >>conftest.$ac_ext <<_ACEOF
13469/* end confdefs.h.  */
13470
13471#ifdef F77_DUMMY_MAIN
13472
13473#  ifdef __cplusplus
13474     extern "C"
13475#  endif
13476   int F77_DUMMY_MAIN() { return 1; }
13477
13478#endif
13479int
13480main ()
13481{
13482
13483  ;
13484  return 0;
13485}
13486_ACEOF
13487rm -f conftest.$ac_objext conftest$ac_exeext
13488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489  (eval $ac_link) 2>conftest.er1
13490  ac_status=$?
13491  grep -v '^ *+' conftest.er1 >conftest.err
13492  rm -f conftest.er1
13493  cat conftest.err >&5
13494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495  (exit $ac_status); } &&
13496	 { ac_try='test -z "$ac_cxx_werror_flag"
13497			 || test ! -s conftest.err'
13498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499  (eval $ac_try) 2>&5
13500  ac_status=$?
13501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502  (exit $ac_status); }; } &&
13503	 { ac_try='test -s conftest$ac_exeext'
13504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505  (eval $ac_try) 2>&5
13506  ac_status=$?
13507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508  (exit $ac_status); }; }; then
13509
13510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13511}'`
13512# Check for a 64-bit object if we didn't find anything.
13513if 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; }
13514}'`; fi
13515else
13516  echo "$as_me: failed program was:" >&5
13517sed 's/^/| /' conftest.$ac_ext >&5
13518
13519fi
13520rm -f conftest.err conftest.$ac_objext \
13521      conftest$ac_exeext conftest.$ac_ext
13522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13523
13524	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13525	# Warning - without using the other run time loading flags,
13526	# -berok will link without error, but may produce a broken library.
13527	no_undefined_flag_CXX=' ${wl}-bernotok'
13528	allow_undefined_flag_CXX=' ${wl}-berok'
13529	# Exported symbols can be pulled into shared objects from archives
13530	whole_archive_flag_spec_CXX='$convenience'
13531	archive_cmds_need_lc_CXX=yes
13532	# This is similar to how AIX traditionally builds its shared libraries.
13533	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'
13534      fi
13535    fi
13536    ;;
13537
13538  beos*)
13539    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13540      allow_undefined_flag_CXX=unsupported
13541      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13542      # support --undefined.  This deserves some investigation.  FIXME
13543      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544    else
13545      ld_shlibs_CXX=no
13546    fi
13547    ;;
13548
13549  chorus*)
13550    case $cc_basename in
13551      *)
13552	# FIXME: insert proper C++ library support
13553	ld_shlibs_CXX=no
13554	;;
13555    esac
13556    ;;
13557
13558  cygwin* | mingw* | pw32*)
13559    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13560    # as there is no search path for DLLs.
13561    hardcode_libdir_flag_spec_CXX='-L$libdir'
13562    allow_undefined_flag_CXX=unsupported
13563    always_export_symbols_CXX=no
13564    enable_shared_with_static_runtimes_CXX=yes
13565
13566    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13567      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'
13568      # If the export-symbols file already is a .def file (1st line
13569      # is EXPORTS), use it as is; otherwise, prepend...
13570      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13571	cp $export_symbols $output_objdir/$soname.def;
13572      else
13573	echo EXPORTS > $output_objdir/$soname.def;
13574	cat $export_symbols >> $output_objdir/$soname.def;
13575      fi~
13576      $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'
13577    else
13578      ld_shlibs_CXX=no
13579    fi
13580  ;;
13581      darwin* | rhapsody*)
13582        case $host_os in
13583        rhapsody* | darwin1.[012])
13584         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13585         ;;
13586       *) # Darwin 1.3 on
13587         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13588           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13589         else
13590           case ${MACOSX_DEPLOYMENT_TARGET} in
13591             10.[012])
13592               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13593               ;;
13594             10.*)
13595               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13596               ;;
13597           esac
13598         fi
13599         ;;
13600        esac
13601      archive_cmds_need_lc_CXX=no
13602      hardcode_direct_CXX=no
13603      hardcode_automatic_CXX=yes
13604      hardcode_shlibpath_var_CXX=unsupported
13605      whole_archive_flag_spec_CXX=''
13606      link_all_deplibs_CXX=yes
13607
13608    if test "$GXX" = yes ; then
13609      lt_int_apple_cc_single_mod=no
13610      output_verbose_link_cmd='echo'
13611      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13612       lt_int_apple_cc_single_mod=yes
13613      fi
13614      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13615       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13616      else
13617          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'
13618        fi
13619        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13620        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13621          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13622            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}'
13623          else
13624            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}'
13625          fi
13626            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}'
13627      else
13628      case $cc_basename in
13629        xlc*)
13630         output_verbose_link_cmd='echo'
13631          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'
13632          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13633          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13634          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}'
13635          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}'
13636          ;;
13637       *)
13638         ld_shlibs_CXX=no
13639          ;;
13640      esac
13641      fi
13642        ;;
13643
13644  dgux*)
13645    case $cc_basename in
13646      ec++*)
13647	# FIXME: insert proper C++ library support
13648	ld_shlibs_CXX=no
13649	;;
13650      ghcx*)
13651	# Green Hills C++ Compiler
13652	# FIXME: insert proper C++ library support
13653	ld_shlibs_CXX=no
13654	;;
13655      *)
13656	# FIXME: insert proper C++ library support
13657	ld_shlibs_CXX=no
13658	;;
13659    esac
13660    ;;
13661  freebsd[12]*)
13662    # C++ shared libraries reported to be fairly broken before switch to ELF
13663    ld_shlibs_CXX=no
13664    ;;
13665  freebsd-elf*)
13666    archive_cmds_need_lc_CXX=no
13667    ;;
13668  freebsd* | kfreebsd*-gnu | dragonfly*)
13669    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13670    # conventions
13671    ld_shlibs_CXX=yes
13672    ;;
13673  gnu*)
13674    ;;
13675  hpux9*)
13676    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13677    hardcode_libdir_separator_CXX=:
13678    export_dynamic_flag_spec_CXX='${wl}-E'
13679    hardcode_direct_CXX=yes
13680    hardcode_minus_L_CXX=yes # Not in the search PATH,
13681				# but as the default
13682				# location of the library.
13683
13684    case $cc_basename in
13685    CC*)
13686      # FIXME: insert proper C++ library support
13687      ld_shlibs_CXX=no
13688      ;;
13689    aCC*)
13690      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'
13691      # Commands to make compiler produce verbose output that lists
13692      # what "hidden" libraries, object files and flags are used when
13693      # linking a shared library.
13694      #
13695      # There doesn't appear to be a way to prevent this compiler from
13696      # explicitly linking system object files so we need to strip them
13697      # from the output so that they don't get included in the library
13698      # dependencies.
13699      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'
13700      ;;
13701    *)
13702      if test "$GXX" = yes; then
13703        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'
13704      else
13705        # FIXME: insert proper C++ library support
13706        ld_shlibs_CXX=no
13707      fi
13708      ;;
13709    esac
13710    ;;
13711  hpux10*|hpux11*)
13712    if test $with_gnu_ld = no; then
13713      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13714      hardcode_libdir_separator_CXX=:
13715
13716      case $host_cpu in
13717      hppa*64*|ia64*)
13718	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13719        ;;
13720      *)
13721	export_dynamic_flag_spec_CXX='${wl}-E'
13722        ;;
13723      esac
13724    fi
13725    case $host_cpu in
13726    hppa*64*|ia64*)
13727      hardcode_direct_CXX=no
13728      hardcode_shlibpath_var_CXX=no
13729      ;;
13730    *)
13731      hardcode_direct_CXX=yes
13732      hardcode_minus_L_CXX=yes # Not in the search PATH,
13733					      # but as the default
13734					      # location of the library.
13735      ;;
13736    esac
13737
13738    case $cc_basename in
13739      CC*)
13740	# FIXME: insert proper C++ library support
13741	ld_shlibs_CXX=no
13742	;;
13743      aCC*)
13744	case $host_cpu in
13745	hppa*64*)
13746	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13747	  ;;
13748	ia64*)
13749	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13750	  ;;
13751	*)
13752	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13753	  ;;
13754	esac
13755	# Commands to make compiler produce verbose output that lists
13756	# what "hidden" libraries, object files and flags are used when
13757	# linking a shared library.
13758	#
13759	# There doesn't appear to be a way to prevent this compiler from
13760	# explicitly linking system object files so we need to strip them
13761	# from the output so that they don't get included in the library
13762	# dependencies.
13763	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'
13764	;;
13765      *)
13766	if test "$GXX" = yes; then
13767	  if test $with_gnu_ld = no; then
13768	    case $host_cpu in
13769	    hppa*64*)
13770	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13771	      ;;
13772	    ia64*)
13773	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13774	      ;;
13775	    *)
13776	      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'
13777	      ;;
13778	    esac
13779	  fi
13780	else
13781	  # FIXME: insert proper C++ library support
13782	  ld_shlibs_CXX=no
13783	fi
13784	;;
13785    esac
13786    ;;
13787  interix3*)
13788    hardcode_direct_CXX=no
13789    hardcode_shlibpath_var_CXX=no
13790    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13791    export_dynamic_flag_spec_CXX='${wl}-E'
13792    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13793    # Instead, shared libraries are loaded at an image base (0x10000000 by
13794    # default) and relocated if they conflict, which is a slow very memory
13795    # consuming and fragmenting process.  To avoid this, we pick a random,
13796    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13797    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13798    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'
13799    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'
13800    ;;
13801  irix5* | irix6*)
13802    case $cc_basename in
13803      CC*)
13804	# SGI C++
13805	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'
13806
13807	# Archives containing C++ object files must be created using
13808	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13809	# necessary to make sure instantiated templates are included
13810	# in the archive.
13811	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13812	;;
13813      *)
13814	if test "$GXX" = yes; then
13815	  if test "$with_gnu_ld" = no; then
13816	    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'
13817	  else
13818	    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'
13819	  fi
13820	fi
13821	link_all_deplibs_CXX=yes
13822	;;
13823    esac
13824    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13825    hardcode_libdir_separator_CXX=:
13826    ;;
13827  linux*)
13828    case $cc_basename in
13829      KCC*)
13830	# Kuck and Associates, Inc. (KAI) C++ Compiler
13831
13832	# KCC will only create a shared library if the output file
13833	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13834	# to its proper name (with version) after linking.
13835	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'
13836	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'
13837	# Commands to make compiler produce verbose output that lists
13838	# what "hidden" libraries, object files and flags are used when
13839	# linking a shared library.
13840	#
13841	# There doesn't appear to be a way to prevent this compiler from
13842	# explicitly linking system object files so we need to strip them
13843	# from the output so that they don't get included in the library
13844	# dependencies.
13845	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'
13846
13847	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13848	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13849
13850	# Archives containing C++ object files must be created using
13851	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13852	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13853	;;
13854      icpc*)
13855	# Intel C++
13856	with_gnu_ld=yes
13857	# version 8.0 and above of icpc choke on multiply defined symbols
13858	# if we add $predep_objects and $postdep_objects, however 7.1 and
13859	# earlier do not add the objects themselves.
13860	case `$CC -V 2>&1` in
13861	*"Version 7."*)
13862  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13863  	  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'
13864	  ;;
13865	*)  # Version 8.0 or newer
13866	  tmp_idyn=
13867	  case $host_cpu in
13868	    ia64*) tmp_idyn=' -i_dynamic';;
13869	  esac
13870  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871	  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'
13872	  ;;
13873	esac
13874	archive_cmds_need_lc_CXX=no
13875	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13876	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13877	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13878	;;
13879      pgCC*)
13880        # Portland Group C++ compiler
13881	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13882  	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'
13883
13884	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13885	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13886	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'
13887        ;;
13888      cxx*)
13889	# Compaq C++
13890	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891	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'
13892
13893	runpath_var=LD_RUN_PATH
13894	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13895	hardcode_libdir_separator_CXX=:
13896
13897	# Commands to make compiler produce verbose output that lists
13898	# what "hidden" libraries, object files and flags are used when
13899	# linking a shared library.
13900	#
13901	# There doesn't appear to be a way to prevent this compiler from
13902	# explicitly linking system object files so we need to strip them
13903	# from the output so that they don't get included in the library
13904	# dependencies.
13905	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'
13906	;;
13907    esac
13908    ;;
13909  lynxos*)
13910    # FIXME: insert proper C++ library support
13911    ld_shlibs_CXX=no
13912    ;;
13913  m88k*)
13914    # FIXME: insert proper C++ library support
13915    ld_shlibs_CXX=no
13916    ;;
13917  mvs*)
13918    case $cc_basename in
13919      cxx*)
13920	# FIXME: insert proper C++ library support
13921	ld_shlibs_CXX=no
13922	;;
13923      *)
13924	# FIXME: insert proper C++ library support
13925	ld_shlibs_CXX=no
13926	;;
13927    esac
13928    ;;
13929  netbsd*)
13930    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13931      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13932      wlarc=
13933      hardcode_libdir_flag_spec_CXX='-R$libdir'
13934      hardcode_direct_CXX=yes
13935      hardcode_shlibpath_var_CXX=no
13936    fi
13937    # Workaround some broken pre-1.5 toolchains
13938    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13939    ;;
13940  openbsd2*)
13941    # C++ shared libraries are fairly broken
13942    ld_shlibs_CXX=no
13943    ;;
13944  openbsd*)
13945    hardcode_direct_CXX=yes
13946    hardcode_shlibpath_var_CXX=no
13947    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13948    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13949    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13950      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13951      export_dynamic_flag_spec_CXX='${wl}-E'
13952      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13953    fi
13954    output_verbose_link_cmd='echo'
13955    ;;
13956  osf3*)
13957    case $cc_basename in
13958      KCC*)
13959	# Kuck and Associates, Inc. (KAI) C++ Compiler
13960
13961	# KCC will only create a shared library if the output file
13962	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13963	# to its proper name (with version) after linking.
13964	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'
13965
13966	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13967	hardcode_libdir_separator_CXX=:
13968
13969	# Archives containing C++ object files must be created using
13970	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13971	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13972
13973	;;
13974      RCC*)
13975	# Rational C++ 2.4.1
13976	# FIXME: insert proper C++ library support
13977	ld_shlibs_CXX=no
13978	;;
13979      cxx*)
13980	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13981	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'
13982
13983	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13984	hardcode_libdir_separator_CXX=:
13985
13986	# Commands to make compiler produce verbose output that lists
13987	# what "hidden" libraries, object files and flags are used when
13988	# linking a shared library.
13989	#
13990	# There doesn't appear to be a way to prevent this compiler from
13991	# explicitly linking system object files so we need to strip them
13992	# from the output so that they don't get included in the library
13993	# dependencies.
13994	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'
13995	;;
13996      *)
13997	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13998	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13999	  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'
14000
14001	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14002	  hardcode_libdir_separator_CXX=:
14003
14004	  # Commands to make compiler produce verbose output that lists
14005	  # what "hidden" libraries, object files and flags are used when
14006	  # linking a shared library.
14007	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14008
14009	else
14010	  # FIXME: insert proper C++ library support
14011	  ld_shlibs_CXX=no
14012	fi
14013	;;
14014    esac
14015    ;;
14016  osf4* | osf5*)
14017    case $cc_basename in
14018      KCC*)
14019	# Kuck and Associates, Inc. (KAI) C++ Compiler
14020
14021	# KCC will only create a shared library if the output file
14022	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14023	# to its proper name (with version) after linking.
14024	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'
14025
14026	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14027	hardcode_libdir_separator_CXX=:
14028
14029	# Archives containing C++ object files must be created using
14030	# the KAI C++ compiler.
14031	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14032	;;
14033      RCC*)
14034	# Rational C++ 2.4.1
14035	# FIXME: insert proper C++ library support
14036	ld_shlibs_CXX=no
14037	;;
14038      cxx*)
14039	allow_undefined_flag_CXX=' -expect_unresolved \*'
14040	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'
14041	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14042	  echo "-hidden">> $lib.exp~
14043	  $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~
14044	  $rm $lib.exp'
14045
14046	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14047	hardcode_libdir_separator_CXX=:
14048
14049	# Commands to make compiler produce verbose output that lists
14050	# what "hidden" libraries, object files and flags are used when
14051	# linking a shared library.
14052	#
14053	# There doesn't appear to be a way to prevent this compiler from
14054	# explicitly linking system object files so we need to strip them
14055	# from the output so that they don't get included in the library
14056	# dependencies.
14057	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'
14058	;;
14059      *)
14060	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14061	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14062	 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'
14063
14064	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14065	  hardcode_libdir_separator_CXX=:
14066
14067	  # Commands to make compiler produce verbose output that lists
14068	  # what "hidden" libraries, object files and flags are used when
14069	  # linking a shared library.
14070	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14071
14072	else
14073	  # FIXME: insert proper C++ library support
14074	  ld_shlibs_CXX=no
14075	fi
14076	;;
14077    esac
14078    ;;
14079  psos*)
14080    # FIXME: insert proper C++ library support
14081    ld_shlibs_CXX=no
14082    ;;
14083  sunos4*)
14084    case $cc_basename in
14085      CC*)
14086	# Sun C++ 4.x
14087	# FIXME: insert proper C++ library support
14088	ld_shlibs_CXX=no
14089	;;
14090      lcc*)
14091	# Lucid
14092	# FIXME: insert proper C++ library support
14093	ld_shlibs_CXX=no
14094	;;
14095      *)
14096	# FIXME: insert proper C++ library support
14097	ld_shlibs_CXX=no
14098	;;
14099    esac
14100    ;;
14101  solaris*)
14102    case $cc_basename in
14103      CC*)
14104	# Sun C++ 4.2, 5.x and Centerline C++
14105        archive_cmds_need_lc_CXX=yes
14106	no_undefined_flag_CXX=' -zdefs'
14107	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14108	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14109	$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'
14110
14111	hardcode_libdir_flag_spec_CXX='-R$libdir'
14112	hardcode_shlibpath_var_CXX=no
14113	case $host_os in
14114	  solaris2.[0-5] | solaris2.[0-5].*) ;;
14115	  *)
14116	    # The C++ compiler is used as linker so we must use $wl
14117	    # flag to pass the commands to the underlying system
14118	    # linker. We must also pass each convience library through
14119	    # to the system linker between allextract/defaultextract.
14120	    # The C++ compiler will combine linker options so we
14121	    # cannot just pass the convience library names through
14122	    # without $wl.
14123	    # Supported since Solaris 2.6 (maybe 2.5.1?)
14124	    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'
14125	    ;;
14126	esac
14127	link_all_deplibs_CXX=yes
14128
14129	output_verbose_link_cmd='echo'
14130
14131	# Archives containing C++ object files must be created using
14132	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
14133	# necessary to make sure instantiated templates are included
14134	# in the archive.
14135	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14136	;;
14137      gcx*)
14138	# Green Hills C++ Compiler
14139	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14140
14141	# The C++ compiler must be used to create the archive.
14142	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14143	;;
14144      *)
14145	# GNU C++ compiler with Solaris linker
14146	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14147	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14148	  if $CC --version | grep -v '^2\.7' > /dev/null; then
14149	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14150	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14151		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14152
14153	    # Commands to make compiler produce verbose output that lists
14154	    # what "hidden" libraries, object files and flags are used when
14155	    # linking a shared library.
14156	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14157	  else
14158	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
14159	    # platform.
14160	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14161	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14162		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14163
14164	    # Commands to make compiler produce verbose output that lists
14165	    # what "hidden" libraries, object files and flags are used when
14166	    # linking a shared library.
14167	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14168	  fi
14169
14170	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14171	fi
14172	;;
14173    esac
14174    ;;
14175  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14176    no_undefined_flag_CXX='${wl}-z,text'
14177    archive_cmds_need_lc_CXX=no
14178    hardcode_shlibpath_var_CXX=no
14179    runpath_var='LD_RUN_PATH'
14180
14181    case $cc_basename in
14182      CC*)
14183	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185	;;
14186      *)
14187	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14188	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14189	;;
14190    esac
14191    ;;
14192  sysv5* | sco3.2v5* | sco5v6*)
14193    # Note: We can NOT use -z defs as we might desire, because we do not
14194    # link with -lc, and that would cause any symbols used from libc to
14195    # always be unresolved, which means just about no library would
14196    # ever link correctly.  If we're not using GNU ld we use -z text
14197    # though, which does catch some bad symbols but isn't as heavy-handed
14198    # as -z defs.
14199    # For security reasons, it is highly recommended that you always
14200    # use absolute paths for naming shared libraries, and exclude the
14201    # DT_RUNPATH tag from executables and libraries.  But doing so
14202    # requires that you compile everything twice, which is a pain.
14203    # So that behaviour is only enabled if SCOABSPATH is set to a
14204    # non-empty value in the environment.  Most likely only useful for
14205    # creating official distributions of packages.
14206    # This is a hack until libtool officially supports absolute path
14207    # names for shared libraries.
14208    no_undefined_flag_CXX='${wl}-z,text'
14209    allow_undefined_flag_CXX='${wl}-z,nodefs'
14210    archive_cmds_need_lc_CXX=no
14211    hardcode_shlibpath_var_CXX=no
14212    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14213    hardcode_libdir_separator_CXX=':'
14214    link_all_deplibs_CXX=yes
14215    export_dynamic_flag_spec_CXX='${wl}-Bexport'
14216    runpath_var='LD_RUN_PATH'
14217
14218    case $cc_basename in
14219      CC*)
14220	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14222	;;
14223      *)
14224	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14225	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14226	;;
14227    esac
14228    ;;
14229  tandem*)
14230    case $cc_basename in
14231      NCC*)
14232	# NonStop-UX NCC 3.20
14233	# FIXME: insert proper C++ library support
14234	ld_shlibs_CXX=no
14235	;;
14236      *)
14237	# FIXME: insert proper C++ library support
14238	ld_shlibs_CXX=no
14239	;;
14240    esac
14241    ;;
14242  vxworks*)
14243    # FIXME: insert proper C++ library support
14244    ld_shlibs_CXX=no
14245    ;;
14246  *)
14247    # FIXME: insert proper C++ library support
14248    ld_shlibs_CXX=no
14249    ;;
14250esac
14251echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14252echo "${ECHO_T}$ld_shlibs_CXX" >&6
14253test "$ld_shlibs_CXX" = no && can_build_shared=no
14254
14255GCC_CXX="$GXX"
14256LD_CXX="$LD"
14257
14258## CAVEAT EMPTOR:
14259## There is no encapsulation within the following macros, do not change
14260## the running order or otherwise move them around unless you know exactly
14261## what you are doing...
14262
14263cat > conftest.$ac_ext <<EOF
14264class Foo
14265{
14266public:
14267  Foo (void) { a = 0; }
14268private:
14269  int a;
14270};
14271EOF
14272
14273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274  (eval $ac_compile) 2>&5
14275  ac_status=$?
14276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277  (exit $ac_status); }; then
14278  # Parse the compiler output and extract the necessary
14279  # objects, libraries and library flags.
14280
14281  # Sentinel used to keep track of whether or not we are before
14282  # the conftest object file.
14283  pre_test_object_deps_done=no
14284
14285  # The `*' in the case matches for architectures that use `case' in
14286  # $output_verbose_cmd can trigger glob expansion during the loop
14287  # eval without this substitution.
14288  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14289
14290  for p in `eval $output_verbose_link_cmd`; do
14291    case $p in
14292
14293    -L* | -R* | -l*)
14294       # Some compilers place space between "-{L,R}" and the path.
14295       # Remove the space.
14296       if test $p = "-L" \
14297	  || test $p = "-R"; then
14298	 prev=$p
14299	 continue
14300       else
14301	 prev=
14302       fi
14303
14304       if test "$pre_test_object_deps_done" = no; then
14305	 case $p in
14306	 -L* | -R*)
14307	   # Internal compiler library paths should come after those
14308	   # provided the user.  The postdeps already come after the
14309	   # user supplied libs so there is no need to process them.
14310	   if test -z "$compiler_lib_search_path_CXX"; then
14311	     compiler_lib_search_path_CXX="${prev}${p}"
14312	   else
14313	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14314	   fi
14315	   ;;
14316	 # The "-l" case would never come before the object being
14317	 # linked, so don't bother handling this case.
14318	 esac
14319       else
14320	 if test -z "$postdeps_CXX"; then
14321	   postdeps_CXX="${prev}${p}"
14322	 else
14323	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14324	 fi
14325       fi
14326       ;;
14327
14328    *.$objext)
14329       # This assumes that the test object file only shows up
14330       # once in the compiler output.
14331       if test "$p" = "conftest.$objext"; then
14332	 pre_test_object_deps_done=yes
14333	 continue
14334       fi
14335
14336       if test "$pre_test_object_deps_done" = no; then
14337	 if test -z "$predep_objects_CXX"; then
14338	   predep_objects_CXX="$p"
14339	 else
14340	   predep_objects_CXX="$predep_objects_CXX $p"
14341	 fi
14342       else
14343	 if test -z "$postdep_objects_CXX"; then
14344	   postdep_objects_CXX="$p"
14345	 else
14346	   postdep_objects_CXX="$postdep_objects_CXX $p"
14347	 fi
14348       fi
14349       ;;
14350
14351    *) ;; # Ignore the rest.
14352
14353    esac
14354  done
14355
14356  # Clean up.
14357  rm -f a.out a.exe
14358else
14359  echo "libtool.m4: error: problem compiling CXX test program"
14360fi
14361
14362$rm -f confest.$objext
14363
14364# PORTME: override above test on systems where it is broken
14365case $host_os in
14366interix3*)
14367  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14368  # hack all around it, let's just trust "g++" to DTRT.
14369  predep_objects_CXX=
14370  postdep_objects_CXX=
14371  postdeps_CXX=
14372  ;;
14373
14374solaris*)
14375  case $cc_basename in
14376  CC*)
14377    # Adding this requires a known-good setup of shared libraries for
14378    # Sun compiler versions before 5.6, else PIC objects from an old
14379    # archive will be linked into the output, leading to subtle bugs.
14380    postdeps_CXX='-lCstd -lCrun'
14381    ;;
14382  esac
14383  ;;
14384esac
14385
14386
14387case " $postdeps_CXX " in
14388*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14389esac
14390
14391lt_prog_compiler_wl_CXX=
14392lt_prog_compiler_pic_CXX=
14393lt_prog_compiler_static_CXX=
14394
14395echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14396echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14397
14398  # C++ specific cases for pic, static, wl, etc.
14399  if test "$GXX" = yes; then
14400    lt_prog_compiler_wl_CXX='-Wl,'
14401    lt_prog_compiler_static_CXX='-static'
14402
14403    case $host_os in
14404    aix*)
14405      # All AIX code is PIC.
14406      if test "$host_cpu" = ia64; then
14407	# AIX 5 now supports IA64 processor
14408	lt_prog_compiler_static_CXX='-Bstatic'
14409      fi
14410      ;;
14411    amigaos*)
14412      # FIXME: we need at least 68020 code to build shared libraries, but
14413      # adding the `-m68020' flag to GCC prevents building anything better,
14414      # like `-m68040'.
14415      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14416      ;;
14417    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14418      # PIC is the default for these OSes.
14419      ;;
14420    mingw* | os2* | pw32*)
14421      # This hack is so that the source file can tell whether it is being
14422      # built for inclusion in a dll (and should export symbols for example).
14423      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14424      ;;
14425    darwin* | rhapsody*)
14426      # PIC is the default on this platform
14427      # Common symbols not allowed in MH_DYLIB files
14428      lt_prog_compiler_pic_CXX='-fno-common'
14429      ;;
14430    *djgpp*)
14431      # DJGPP does not support shared libraries at all
14432      lt_prog_compiler_pic_CXX=
14433      ;;
14434    interix3*)
14435      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14436      # Instead, we relocate shared libraries at runtime.
14437      ;;
14438    sysv4*MP*)
14439      if test -d /usr/nec; then
14440	lt_prog_compiler_pic_CXX=-Kconform_pic
14441      fi
14442      ;;
14443    hpux*)
14444      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14445      # not for PA HP-UX.
14446      case $host_cpu in
14447      hppa*64*|ia64*)
14448	;;
14449      *)
14450	lt_prog_compiler_pic_CXX='-fPIC'
14451	;;
14452      esac
14453      ;;
14454    *)
14455      lt_prog_compiler_pic_CXX='-fPIC'
14456      ;;
14457    esac
14458  else
14459    case $host_os in
14460      aix4* | aix5*)
14461	# All AIX code is PIC.
14462	if test "$host_cpu" = ia64; then
14463	  # AIX 5 now supports IA64 processor
14464	  lt_prog_compiler_static_CXX='-Bstatic'
14465	else
14466	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14467	fi
14468	;;
14469      chorus*)
14470	case $cc_basename in
14471	cxch68*)
14472	  # Green Hills C++ Compiler
14473	  # _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"
14474	  ;;
14475	esac
14476	;;
14477       darwin*)
14478         # PIC is the default on this platform
14479         # Common symbols not allowed in MH_DYLIB files
14480         case $cc_basename in
14481           xlc*)
14482           lt_prog_compiler_pic_CXX='-qnocommon'
14483           lt_prog_compiler_wl_CXX='-Wl,'
14484           ;;
14485         esac
14486       ;;
14487      dgux*)
14488	case $cc_basename in
14489	  ec++*)
14490	    lt_prog_compiler_pic_CXX='-KPIC'
14491	    ;;
14492	  ghcx*)
14493	    # Green Hills C++ Compiler
14494	    lt_prog_compiler_pic_CXX='-pic'
14495	    ;;
14496	  *)
14497	    ;;
14498	esac
14499	;;
14500      freebsd* | kfreebsd*-gnu | dragonfly*)
14501	# FreeBSD uses GNU C++
14502	;;
14503      hpux9* | hpux10* | hpux11*)
14504	case $cc_basename in
14505	  CC*)
14506	    lt_prog_compiler_wl_CXX='-Wl,'
14507	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14508	    if test "$host_cpu" != ia64; then
14509	      lt_prog_compiler_pic_CXX='+Z'
14510	    fi
14511	    ;;
14512	  aCC*)
14513	    lt_prog_compiler_wl_CXX='-Wl,'
14514	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14515	    case $host_cpu in
14516	    hppa*64*|ia64*)
14517	      # +Z the default
14518	      ;;
14519	    *)
14520	      lt_prog_compiler_pic_CXX='+Z'
14521	      ;;
14522	    esac
14523	    ;;
14524	  *)
14525	    ;;
14526	esac
14527	;;
14528      interix*)
14529	# This is c89, which is MS Visual C++ (no shared libs)
14530	# Anyone wants to do a port?
14531	;;
14532      irix5* | irix6* | nonstopux*)
14533	case $cc_basename in
14534	  CC*)
14535	    lt_prog_compiler_wl_CXX='-Wl,'
14536	    lt_prog_compiler_static_CXX='-non_shared'
14537	    # CC pic flag -KPIC is the default.
14538	    ;;
14539	  *)
14540	    ;;
14541	esac
14542	;;
14543      linux*)
14544	case $cc_basename in
14545	  KCC*)
14546	    # KAI C++ Compiler
14547	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14548	    lt_prog_compiler_pic_CXX='-fPIC'
14549	    ;;
14550	  icpc* | ecpc*)
14551	    # Intel C++
14552	    lt_prog_compiler_wl_CXX='-Wl,'
14553	    lt_prog_compiler_pic_CXX='-KPIC'
14554	    lt_prog_compiler_static_CXX='-static'
14555	    ;;
14556	  pgCC*)
14557	    # Portland Group C++ compiler.
14558	    lt_prog_compiler_wl_CXX='-Wl,'
14559	    lt_prog_compiler_pic_CXX='-fpic'
14560	    lt_prog_compiler_static_CXX='-Bstatic'
14561	    ;;
14562	  cxx*)
14563	    # Compaq C++
14564	    # Make sure the PIC flag is empty.  It appears that all Alpha
14565	    # Linux and Compaq Tru64 Unix objects are PIC.
14566	    lt_prog_compiler_pic_CXX=
14567	    lt_prog_compiler_static_CXX='-non_shared'
14568	    ;;
14569	  *)
14570	    ;;
14571	esac
14572	;;
14573      lynxos*)
14574	;;
14575      m88k*)
14576	;;
14577      mvs*)
14578	case $cc_basename in
14579	  cxx*)
14580	    lt_prog_compiler_pic_CXX='-W c,exportall'
14581	    ;;
14582	  *)
14583	    ;;
14584	esac
14585	;;
14586      netbsd*)
14587	;;
14588      osf3* | osf4* | osf5*)
14589	case $cc_basename in
14590	  KCC*)
14591	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14592	    ;;
14593	  RCC*)
14594	    # Rational C++ 2.4.1
14595	    lt_prog_compiler_pic_CXX='-pic'
14596	    ;;
14597	  cxx*)
14598	    # Digital/Compaq C++
14599	    lt_prog_compiler_wl_CXX='-Wl,'
14600	    # Make sure the PIC flag is empty.  It appears that all Alpha
14601	    # Linux and Compaq Tru64 Unix objects are PIC.
14602	    lt_prog_compiler_pic_CXX=
14603	    lt_prog_compiler_static_CXX='-non_shared'
14604	    ;;
14605	  *)
14606	    ;;
14607	esac
14608	;;
14609      psos*)
14610	;;
14611      solaris*)
14612	case $cc_basename in
14613	  CC*)
14614	    # Sun C++ 4.2, 5.x and Centerline C++
14615	    lt_prog_compiler_pic_CXX='-KPIC'
14616	    lt_prog_compiler_static_CXX='-Bstatic'
14617	    lt_prog_compiler_wl_CXX='-Qoption ld '
14618	    ;;
14619	  gcx*)
14620	    # Green Hills C++ Compiler
14621	    lt_prog_compiler_pic_CXX='-PIC'
14622	    ;;
14623	  *)
14624	    ;;
14625	esac
14626	;;
14627      sunos4*)
14628	case $cc_basename in
14629	  CC*)
14630	    # Sun C++ 4.x
14631	    lt_prog_compiler_pic_CXX='-pic'
14632	    lt_prog_compiler_static_CXX='-Bstatic'
14633	    ;;
14634	  lcc*)
14635	    # Lucid
14636	    lt_prog_compiler_pic_CXX='-pic'
14637	    ;;
14638	  *)
14639	    ;;
14640	esac
14641	;;
14642      tandem*)
14643	case $cc_basename in
14644	  NCC*)
14645	    # NonStop-UX NCC 3.20
14646	    lt_prog_compiler_pic_CXX='-KPIC'
14647	    ;;
14648	  *)
14649	    ;;
14650	esac
14651	;;
14652      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14653	case $cc_basename in
14654	  CC*)
14655	    lt_prog_compiler_wl_CXX='-Wl,'
14656	    lt_prog_compiler_pic_CXX='-KPIC'
14657	    lt_prog_compiler_static_CXX='-Bstatic'
14658	    ;;
14659	esac
14660	;;
14661      vxworks*)
14662	;;
14663      *)
14664	lt_prog_compiler_can_build_shared_CXX=no
14665	;;
14666    esac
14667  fi
14668
14669echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14670echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14671
14672#
14673# Check to make sure the PIC flag actually works.
14674#
14675if test -n "$lt_prog_compiler_pic_CXX"; then
14676
14677echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14678echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14679if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14680  echo $ECHO_N "(cached) $ECHO_C" >&6
14681else
14682  lt_prog_compiler_pic_works_CXX=no
14683  ac_outfile=conftest.$ac_objext
14684   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14685   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14686   # Insert the option either (1) after the last *FLAGS variable, or
14687   # (2) before a word containing "conftest.", or (3) at the end.
14688   # Note that $ac_compile itself does not contain backslashes and begins
14689   # with a dollar sign (not a hyphen), so the echo should work correctly.
14690   # The option is referenced via a variable to avoid confusing sed.
14691   lt_compile=`echo "$ac_compile" | $SED \
14692   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14693   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14694   -e 's:$: $lt_compiler_flag:'`
14695   (eval echo "\"\$as_me:14695: $lt_compile\"" >&5)
14696   (eval "$lt_compile" 2>conftest.err)
14697   ac_status=$?
14698   cat conftest.err >&5
14699   echo "$as_me:14699: \$? = $ac_status" >&5
14700   if (exit $ac_status) && test -s "$ac_outfile"; then
14701     # The compiler can only warn and ignore the option if not recognized
14702     # So say no if there are warnings other than the usual output.
14703     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14704     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14705     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14706       lt_prog_compiler_pic_works_CXX=yes
14707     fi
14708   fi
14709   $rm conftest*
14710
14711fi
14712echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14713echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14714
14715if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14716    case $lt_prog_compiler_pic_CXX in
14717     "" | " "*) ;;
14718     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14719     esac
14720else
14721    lt_prog_compiler_pic_CXX=
14722     lt_prog_compiler_can_build_shared_CXX=no
14723fi
14724
14725fi
14726case $host_os in
14727  # For platforms which do not support PIC, -DPIC is meaningless:
14728  *djgpp*)
14729    lt_prog_compiler_pic_CXX=
14730    ;;
14731  *)
14732    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14733    ;;
14734esac
14735
14736#
14737# Check to make sure the static flag actually works.
14738#
14739wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14740echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14741echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14742if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14743  echo $ECHO_N "(cached) $ECHO_C" >&6
14744else
14745  lt_prog_compiler_static_works_CXX=no
14746   save_LDFLAGS="$LDFLAGS"
14747   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14748   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14749   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14750     # The linker can only warn and ignore the option if not recognized
14751     # So say no if there are warnings
14752     if test -s conftest.err; then
14753       # Append any errors to the config.log.
14754       cat conftest.err 1>&5
14755       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14756       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14757       if diff conftest.exp conftest.er2 >/dev/null; then
14758         lt_prog_compiler_static_works_CXX=yes
14759       fi
14760     else
14761       lt_prog_compiler_static_works_CXX=yes
14762     fi
14763   fi
14764   $rm conftest*
14765   LDFLAGS="$save_LDFLAGS"
14766
14767fi
14768echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14769echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14770
14771if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14772    :
14773else
14774    lt_prog_compiler_static_CXX=
14775fi
14776
14777
14778echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14779echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14780if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14781  echo $ECHO_N "(cached) $ECHO_C" >&6
14782else
14783  lt_cv_prog_compiler_c_o_CXX=no
14784   $rm -r conftest 2>/dev/null
14785   mkdir conftest
14786   cd conftest
14787   mkdir out
14788   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14789
14790   lt_compiler_flag="-o out/conftest2.$ac_objext"
14791   # Insert the option either (1) after the last *FLAGS variable, or
14792   # (2) before a word containing "conftest.", or (3) at the end.
14793   # Note that $ac_compile itself does not contain backslashes and begins
14794   # with a dollar sign (not a hyphen), so the echo should work correctly.
14795   lt_compile=`echo "$ac_compile" | $SED \
14796   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14797   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14798   -e 's:$: $lt_compiler_flag:'`
14799   (eval echo "\"\$as_me:14799: $lt_compile\"" >&5)
14800   (eval "$lt_compile" 2>out/conftest.err)
14801   ac_status=$?
14802   cat out/conftest.err >&5
14803   echo "$as_me:14803: \$? = $ac_status" >&5
14804   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14805   then
14806     # The compiler can only warn and ignore the option if not recognized
14807     # So say no if there are warnings
14808     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14809     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14810     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14811       lt_cv_prog_compiler_c_o_CXX=yes
14812     fi
14813   fi
14814   chmod u+w . 2>&5
14815   $rm conftest*
14816   # SGI C++ compiler will create directory out/ii_files/ for
14817   # template instantiation
14818   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14819   $rm out/* && rmdir out
14820   cd ..
14821   rmdir conftest
14822   $rm conftest*
14823
14824fi
14825echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14826echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14827
14828
14829hard_links="nottested"
14830if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14831  # do not overwrite the value of need_locks provided by the user
14832  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14833echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14834  hard_links=yes
14835  $rm conftest*
14836  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14837  touch conftest.a
14838  ln conftest.a conftest.b 2>&5 || hard_links=no
14839  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14840  echo "$as_me:$LINENO: result: $hard_links" >&5
14841echo "${ECHO_T}$hard_links" >&6
14842  if test "$hard_links" = no; then
14843    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14844echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14845    need_locks=warn
14846  fi
14847else
14848  need_locks=no
14849fi
14850
14851echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14852echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14853
14854  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14855  case $host_os in
14856  aix4* | aix5*)
14857    # If we're using GNU nm, then we don't want the "-C" option.
14858    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14859    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14860      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'
14861    else
14862      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'
14863    fi
14864    ;;
14865  pw32*)
14866    export_symbols_cmds_CXX="$ltdll_cmds"
14867  ;;
14868  cygwin* | mingw*)
14869    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'
14870  ;;
14871  *)
14872    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14873  ;;
14874  esac
14875
14876echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14877echo "${ECHO_T}$ld_shlibs_CXX" >&6
14878test "$ld_shlibs_CXX" = no && can_build_shared=no
14879
14880#
14881# Do we need to explicitly link libc?
14882#
14883case "x$archive_cmds_need_lc_CXX" in
14884x|xyes)
14885  # Assume -lc should be added
14886  archive_cmds_need_lc_CXX=yes
14887
14888  if test "$enable_shared" = yes && test "$GCC" = yes; then
14889    case $archive_cmds_CXX in
14890    *'~'*)
14891      # FIXME: we may have to deal with multi-command sequences.
14892      ;;
14893    '$CC '*)
14894      # Test whether the compiler implicitly links with -lc since on some
14895      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14896      # to ld, don't add -lc before -lgcc.
14897      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14898echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14899      $rm conftest*
14900      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14901
14902      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903  (eval $ac_compile) 2>&5
14904  ac_status=$?
14905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906  (exit $ac_status); } 2>conftest.err; then
14907        soname=conftest
14908        lib=conftest
14909        libobjs=conftest.$ac_objext
14910        deplibs=
14911        wl=$lt_prog_compiler_wl_CXX
14912	pic_flag=$lt_prog_compiler_pic_CXX
14913        compiler_flags=-v
14914        linker_flags=-v
14915        verstring=
14916        output_objdir=.
14917        libname=conftest
14918        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14919        allow_undefined_flag_CXX=
14920        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14921  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14922  ac_status=$?
14923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924  (exit $ac_status); }
14925        then
14926	  archive_cmds_need_lc_CXX=no
14927        else
14928	  archive_cmds_need_lc_CXX=yes
14929        fi
14930        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14931      else
14932        cat conftest.err 1>&5
14933      fi
14934      $rm conftest*
14935      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14936echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14937      ;;
14938    esac
14939  fi
14940  ;;
14941esac
14942
14943echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14944echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14945library_names_spec=
14946libname_spec='lib$name'
14947soname_spec=
14948shrext_cmds=".so"
14949postinstall_cmds=
14950postuninstall_cmds=
14951finish_cmds=
14952finish_eval=
14953shlibpath_var=
14954shlibpath_overrides_runpath=unknown
14955version_type=none
14956dynamic_linker="$host_os ld.so"
14957sys_lib_dlsearch_path_spec="/lib /usr/lib"
14958if test "$GCC" = yes; then
14959  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14960  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14961    # if the path contains ";" then we assume it to be the separator
14962    # otherwise default to the standard path separator (i.e. ":") - it is
14963    # assumed that no part of a normal pathname contains ";" but that should
14964    # okay in the real world where ";" in dirpaths is itself problematic.
14965    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14966  else
14967    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14968  fi
14969else
14970  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14971fi
14972need_lib_prefix=unknown
14973hardcode_into_libs=no
14974
14975# when you set need_version to no, make sure it does not cause -set_version
14976# flags to be left without arguments
14977need_version=unknown
14978
14979case $host_os in
14980aix3*)
14981  version_type=linux
14982  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14983  shlibpath_var=LIBPATH
14984
14985  # AIX 3 has no versioning support, so we append a major version to the name.
14986  soname_spec='${libname}${release}${shared_ext}$major'
14987  ;;
14988
14989aix4* | aix5*)
14990  version_type=linux
14991  need_lib_prefix=no
14992  need_version=no
14993  hardcode_into_libs=yes
14994  if test "$host_cpu" = ia64; then
14995    # AIX 5 supports IA64
14996    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14997    shlibpath_var=LD_LIBRARY_PATH
14998  else
14999    # With GCC up to 2.95.x, collect2 would create an import file
15000    # for dependence libraries.  The import file would start with
15001    # the line `#! .'.  This would cause the generated library to
15002    # depend on `.', always an invalid library.  This was fixed in
15003    # development snapshots of GCC prior to 3.0.
15004    case $host_os in
15005      aix4 | aix4.[01] | aix4.[01].*)
15006      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15007	   echo ' yes '
15008	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15009	:
15010      else
15011	can_build_shared=no
15012      fi
15013      ;;
15014    esac
15015    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15016    # soname into executable. Probably we can add versioning support to
15017    # collect2, so additional links can be useful in future.
15018    if test "$aix_use_runtimelinking" = yes; then
15019      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15020      # instead of lib<name>.a to let people know that these are not
15021      # typical AIX shared libraries.
15022      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023    else
15024      # We preserve .a as extension for shared libraries through AIX4.2
15025      # and later when we are not doing run time linking.
15026      library_names_spec='${libname}${release}.a $libname.a'
15027      soname_spec='${libname}${release}${shared_ext}$major'
15028    fi
15029    shlibpath_var=LIBPATH
15030  fi
15031  ;;
15032
15033amigaos*)
15034  library_names_spec='$libname.ixlibrary $libname.a'
15035  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15036  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'
15037  ;;
15038
15039beos*)
15040  library_names_spec='${libname}${shared_ext}'
15041  dynamic_linker="$host_os ld.so"
15042  shlibpath_var=LIBRARY_PATH
15043  ;;
15044
15045bsdi[45]*)
15046  version_type=linux
15047  need_version=no
15048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049  soname_spec='${libname}${release}${shared_ext}$major'
15050  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15051  shlibpath_var=LD_LIBRARY_PATH
15052  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15053  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15054  # the default ld.so.conf also contains /usr/contrib/lib and
15055  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15056  # libtool to hard-code these into programs
15057  ;;
15058
15059cygwin* | mingw* | pw32*)
15060  version_type=windows
15061  shrext_cmds=".dll"
15062  need_version=no
15063  need_lib_prefix=no
15064
15065  case $GCC,$host_os in
15066  yes,cygwin* | yes,mingw* | yes,pw32*)
15067    library_names_spec='$libname.dll.a'
15068    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15069    postinstall_cmds='base_file=`basename \${file}`~
15070      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15071      dldir=$destdir/`dirname \$dlpath`~
15072      test -d \$dldir || mkdir -p \$dldir~
15073      $install_prog $dir/$dlname \$dldir/$dlname~
15074      chmod a+x \$dldir/$dlname'
15075    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15076      dlpath=$dir/\$dldll~
15077       $rm \$dlpath'
15078    shlibpath_overrides_runpath=yes
15079
15080    case $host_os in
15081    cygwin*)
15082      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15083      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15084      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15085      ;;
15086    mingw*)
15087      # MinGW DLLs use traditional 'lib' prefix
15088      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15089      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15090      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15091        # It is most probably a Windows format PATH printed by
15092        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15093        # path with ; separators, and with drive letters. We can handle the
15094        # drive letters (cygwin fileutils understands them), so leave them,
15095        # especially as we might pass files found there to a mingw objdump,
15096        # which wouldn't understand a cygwinified path. Ahh.
15097        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15098      else
15099        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15100      fi
15101      ;;
15102    pw32*)
15103      # pw32 DLLs use 'pw' prefix rather than 'lib'
15104      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15105      ;;
15106    esac
15107    ;;
15108
15109  *)
15110    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15111    ;;
15112  esac
15113  dynamic_linker='Win32 ld.exe'
15114  # FIXME: first we should search . and the directory the executable is in
15115  shlibpath_var=PATH
15116  ;;
15117
15118darwin* | rhapsody*)
15119  dynamic_linker="$host_os dyld"
15120  version_type=darwin
15121  need_lib_prefix=no
15122  need_version=no
15123  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15124  soname_spec='${libname}${release}${major}$shared_ext'
15125  shlibpath_overrides_runpath=yes
15126  shlibpath_var=DYLD_LIBRARY_PATH
15127  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15128  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15129  if test "$GCC" = yes; then
15130    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"`
15131  else
15132    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15133  fi
15134  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15135  ;;
15136
15137dgux*)
15138  version_type=linux
15139  need_lib_prefix=no
15140  need_version=no
15141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15142  soname_spec='${libname}${release}${shared_ext}$major'
15143  shlibpath_var=LD_LIBRARY_PATH
15144  ;;
15145
15146freebsd1*)
15147  dynamic_linker=no
15148  ;;
15149
15150kfreebsd*-gnu)
15151  version_type=linux
15152  need_lib_prefix=no
15153  need_version=no
15154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15155  soname_spec='${libname}${release}${shared_ext}$major'
15156  shlibpath_var=LD_LIBRARY_PATH
15157  shlibpath_overrides_runpath=no
15158  hardcode_into_libs=yes
15159  dynamic_linker='GNU ld.so'
15160  ;;
15161
15162freebsd* | dragonfly*)
15163  # DragonFly does not have aout.  When/if they implement a new
15164  # versioning mechanism, adjust this.
15165  if test -x /usr/bin/objformat; then
15166    objformat=`/usr/bin/objformat`
15167  else
15168    case $host_os in
15169    freebsd[123]*) objformat=aout ;;
15170    *) objformat=elf ;;
15171    esac
15172  fi
15173  version_type=freebsd-$objformat
15174  case $version_type in
15175    freebsd-elf*)
15176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15177      need_version=no
15178      need_lib_prefix=no
15179      ;;
15180    freebsd-*)
15181      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15182      need_version=yes
15183      ;;
15184  esac
15185  shlibpath_var=LD_LIBRARY_PATH
15186  case $host_os in
15187  freebsd2*)
15188    shlibpath_overrides_runpath=yes
15189    ;;
15190  freebsd3.[01]* | freebsdelf3.[01]*)
15191    shlibpath_overrides_runpath=yes
15192    hardcode_into_libs=yes
15193    ;;
15194  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15195  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15196    shlibpath_overrides_runpath=no
15197    hardcode_into_libs=yes
15198    ;;
15199  freebsd*) # from 4.6 on
15200    shlibpath_overrides_runpath=yes
15201    hardcode_into_libs=yes
15202    ;;
15203  esac
15204  ;;
15205
15206gnu*)
15207  version_type=linux
15208  need_lib_prefix=no
15209  need_version=no
15210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15211  soname_spec='${libname}${release}${shared_ext}$major'
15212  shlibpath_var=LD_LIBRARY_PATH
15213  hardcode_into_libs=yes
15214  ;;
15215
15216hpux9* | hpux10* | hpux11*)
15217  # Give a soname corresponding to the major version so that dld.sl refuses to
15218  # link against other versions.
15219  version_type=sunos
15220  need_lib_prefix=no
15221  need_version=no
15222  case $host_cpu in
15223  ia64*)
15224    shrext_cmds='.so'
15225    hardcode_into_libs=yes
15226    dynamic_linker="$host_os dld.so"
15227    shlibpath_var=LD_LIBRARY_PATH
15228    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230    soname_spec='${libname}${release}${shared_ext}$major'
15231    if test "X$HPUX_IA64_MODE" = X32; then
15232      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15233    else
15234      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15235    fi
15236    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15237    ;;
15238   hppa*64*)
15239     shrext_cmds='.sl'
15240     hardcode_into_libs=yes
15241     dynamic_linker="$host_os dld.sl"
15242     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15243     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15245     soname_spec='${libname}${release}${shared_ext}$major'
15246     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15247     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15248     ;;
15249   *)
15250    shrext_cmds='.sl'
15251    dynamic_linker="$host_os dld.sl"
15252    shlibpath_var=SHLIB_PATH
15253    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15254    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255    soname_spec='${libname}${release}${shared_ext}$major'
15256    ;;
15257  esac
15258  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15259  postinstall_cmds='chmod 555 $lib'
15260  ;;
15261
15262interix3*)
15263  version_type=linux
15264  need_lib_prefix=no
15265  need_version=no
15266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15267  soname_spec='${libname}${release}${shared_ext}$major'
15268  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15269  shlibpath_var=LD_LIBRARY_PATH
15270  shlibpath_overrides_runpath=no
15271  hardcode_into_libs=yes
15272  ;;
15273
15274irix5* | irix6* | nonstopux*)
15275  case $host_os in
15276    nonstopux*) version_type=nonstopux ;;
15277    *)
15278	if test "$lt_cv_prog_gnu_ld" = yes; then
15279		version_type=linux
15280	else
15281		version_type=irix
15282	fi ;;
15283  esac
15284  need_lib_prefix=no
15285  need_version=no
15286  soname_spec='${libname}${release}${shared_ext}$major'
15287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15288  case $host_os in
15289  irix5* | nonstopux*)
15290    libsuff= shlibsuff=
15291    ;;
15292  *)
15293    case $LD in # libtool.m4 will add one of these switches to LD
15294    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15295      libsuff= shlibsuff= libmagic=32-bit;;
15296    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15297      libsuff=32 shlibsuff=N32 libmagic=N32;;
15298    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15299      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15300    *) libsuff= shlibsuff= libmagic=never-match;;
15301    esac
15302    ;;
15303  esac
15304  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15305  shlibpath_overrides_runpath=no
15306  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15307  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15308  hardcode_into_libs=yes
15309  ;;
15310
15311# No shared lib support for Linux oldld, aout, or coff.
15312linux*oldld* | linux*aout* | linux*coff*)
15313  dynamic_linker=no
15314  ;;
15315
15316# This must be Linux ELF.
15317linux*)
15318  version_type=linux
15319  need_lib_prefix=no
15320  need_version=no
15321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322  soname_spec='${libname}${release}${shared_ext}$major'
15323  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15324  shlibpath_var=LD_LIBRARY_PATH
15325  shlibpath_overrides_runpath=no
15326  # This implies no fast_install, which is unacceptable.
15327  # Some rework will be needed to allow for fast_install
15328  # before this can be enabled.
15329  hardcode_into_libs=yes
15330
15331  # Append ld.so.conf contents to the search path
15332  if test -f /etc/ld.so.conf; then
15333    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' ' '`
15334    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15335  fi
15336
15337  # We used to test for /lib/ld.so.1 and disable shared libraries on
15338  # powerpc, because MkLinux only supported shared libraries with the
15339  # GNU dynamic linker.  Since this was broken with cross compilers,
15340  # most powerpc-linux boxes support dynamic linking these days and
15341  # people can always --disable-shared, the test was removed, and we
15342  # assume the GNU/Linux dynamic linker is in use.
15343  dynamic_linker='GNU/Linux ld.so'
15344  ;;
15345
15346knetbsd*-gnu)
15347  version_type=linux
15348  need_lib_prefix=no
15349  need_version=no
15350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15351  soname_spec='${libname}${release}${shared_ext}$major'
15352  shlibpath_var=LD_LIBRARY_PATH
15353  shlibpath_overrides_runpath=no
15354  hardcode_into_libs=yes
15355  dynamic_linker='GNU ld.so'
15356  ;;
15357
15358netbsd*)
15359  version_type=sunos
15360  need_lib_prefix=no
15361  need_version=no
15362  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15363    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15364    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15365    dynamic_linker='NetBSD (a.out) ld.so'
15366  else
15367    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15368    soname_spec='${libname}${release}${shared_ext}$major'
15369    dynamic_linker='NetBSD ld.elf_so'
15370  fi
15371  shlibpath_var=LD_LIBRARY_PATH
15372  shlibpath_overrides_runpath=yes
15373  hardcode_into_libs=yes
15374  ;;
15375
15376newsos6)
15377  version_type=linux
15378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379  shlibpath_var=LD_LIBRARY_PATH
15380  shlibpath_overrides_runpath=yes
15381  ;;
15382
15383nto-qnx*)
15384  version_type=linux
15385  need_lib_prefix=no
15386  need_version=no
15387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388  soname_spec='${libname}${release}${shared_ext}$major'
15389  shlibpath_var=LD_LIBRARY_PATH
15390  shlibpath_overrides_runpath=yes
15391  ;;
15392
15393openbsd*)
15394  version_type=sunos
15395  sys_lib_dlsearch_path_spec="/usr/lib"
15396  need_lib_prefix=no
15397  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15398  case $host_os in
15399    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15400    *)                         need_version=no  ;;
15401  esac
15402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15403  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15404  shlibpath_var=LD_LIBRARY_PATH
15405  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15406    case $host_os in
15407      openbsd2.[89] | openbsd2.[89].*)
15408	shlibpath_overrides_runpath=no
15409	;;
15410      *)
15411	shlibpath_overrides_runpath=yes
15412	;;
15413      esac
15414  else
15415    shlibpath_overrides_runpath=yes
15416  fi
15417  ;;
15418
15419os2*)
15420  libname_spec='$name'
15421  shrext_cmds=".dll"
15422  need_lib_prefix=no
15423  library_names_spec='$libname${shared_ext} $libname.a'
15424  dynamic_linker='OS/2 ld.exe'
15425  shlibpath_var=LIBPATH
15426  ;;
15427
15428osf3* | osf4* | osf5*)
15429  version_type=osf
15430  need_lib_prefix=no
15431  need_version=no
15432  soname_spec='${libname}${release}${shared_ext}$major'
15433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434  shlibpath_var=LD_LIBRARY_PATH
15435  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15436  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15437  ;;
15438
15439solaris*)
15440  version_type=linux
15441  need_lib_prefix=no
15442  need_version=no
15443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444  soname_spec='${libname}${release}${shared_ext}$major'
15445  shlibpath_var=LD_LIBRARY_PATH
15446  shlibpath_overrides_runpath=yes
15447  hardcode_into_libs=yes
15448  # ldd complains unless libraries are executable
15449  postinstall_cmds='chmod +x $lib'
15450  ;;
15451
15452sunos4*)
15453  version_type=sunos
15454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15455  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15456  shlibpath_var=LD_LIBRARY_PATH
15457  shlibpath_overrides_runpath=yes
15458  if test "$with_gnu_ld" = yes; then
15459    need_lib_prefix=no
15460  fi
15461  need_version=yes
15462  ;;
15463
15464sysv4 | sysv4.3*)
15465  version_type=linux
15466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467  soname_spec='${libname}${release}${shared_ext}$major'
15468  shlibpath_var=LD_LIBRARY_PATH
15469  case $host_vendor in
15470    sni)
15471      shlibpath_overrides_runpath=no
15472      need_lib_prefix=no
15473      export_dynamic_flag_spec='${wl}-Blargedynsym'
15474      runpath_var=LD_RUN_PATH
15475      ;;
15476    siemens)
15477      need_lib_prefix=no
15478      ;;
15479    motorola)
15480      need_lib_prefix=no
15481      need_version=no
15482      shlibpath_overrides_runpath=no
15483      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15484      ;;
15485  esac
15486  ;;
15487
15488sysv4*MP*)
15489  if test -d /usr/nec ;then
15490    version_type=linux
15491    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15492    soname_spec='$libname${shared_ext}.$major'
15493    shlibpath_var=LD_LIBRARY_PATH
15494  fi
15495  ;;
15496
15497sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15498  version_type=freebsd-elf
15499  need_lib_prefix=no
15500  need_version=no
15501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15502  soname_spec='${libname}${release}${shared_ext}$major'
15503  shlibpath_var=LD_LIBRARY_PATH
15504  hardcode_into_libs=yes
15505  if test "$with_gnu_ld" = yes; then
15506    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15507    shlibpath_overrides_runpath=no
15508  else
15509    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15510    shlibpath_overrides_runpath=yes
15511    case $host_os in
15512      sco3.2v5*)
15513        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15514	;;
15515    esac
15516  fi
15517  sys_lib_dlsearch_path_spec='/usr/lib'
15518  ;;
15519
15520uts4*)
15521  version_type=linux
15522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523  soname_spec='${libname}${release}${shared_ext}$major'
15524  shlibpath_var=LD_LIBRARY_PATH
15525  ;;
15526
15527*)
15528  dynamic_linker=no
15529  ;;
15530esac
15531echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15532echo "${ECHO_T}$dynamic_linker" >&6
15533test "$dynamic_linker" = no && can_build_shared=no
15534
15535variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15536if test "$GCC" = yes; then
15537  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15538fi
15539
15540echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15541echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15542hardcode_action_CXX=
15543if test -n "$hardcode_libdir_flag_spec_CXX" || \
15544   test -n "$runpath_var_CXX" || \
15545   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15546
15547  # We can hardcode non-existant directories.
15548  if test "$hardcode_direct_CXX" != no &&
15549     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15550     # have to relink, otherwise we might link with an installed library
15551     # when we should be linking with a yet-to-be-installed one
15552     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15553     test "$hardcode_minus_L_CXX" != no; then
15554    # Linking always hardcodes the temporary library directory.
15555    hardcode_action_CXX=relink
15556  else
15557    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15558    hardcode_action_CXX=immediate
15559  fi
15560else
15561  # We cannot hardcode anything, or else we can only hardcode existing
15562  # directories.
15563  hardcode_action_CXX=unsupported
15564fi
15565echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15566echo "${ECHO_T}$hardcode_action_CXX" >&6
15567
15568if test "$hardcode_action_CXX" = relink; then
15569  # Fast installation is not supported
15570  enable_fast_install=no
15571elif test "$shlibpath_overrides_runpath" = yes ||
15572     test "$enable_shared" = no; then
15573  # Fast installation is not necessary
15574  enable_fast_install=needless
15575fi
15576
15577
15578# The else clause should only fire when bootstrapping the
15579# libtool distribution, otherwise you forgot to ship ltmain.sh
15580# with your package, and you will get complaints that there are
15581# no rules to generate ltmain.sh.
15582if test -f "$ltmain"; then
15583  # See if we are running on zsh, and set the options which allow our commands through
15584  # without removal of \ escapes.
15585  if test -n "${ZSH_VERSION+set}" ; then
15586    setopt NO_GLOB_SUBST
15587  fi
15588  # Now quote all the things that may contain metacharacters while being
15589  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15590  # variables and quote the copies for generation of the libtool script.
15591  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15592    SED SHELL STRIP \
15593    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15594    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15595    deplibs_check_method reload_flag reload_cmds need_locks \
15596    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15597    lt_cv_sys_global_symbol_to_c_name_address \
15598    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15599    old_postinstall_cmds old_postuninstall_cmds \
15600    compiler_CXX \
15601    CC_CXX \
15602    LD_CXX \
15603    lt_prog_compiler_wl_CXX \
15604    lt_prog_compiler_pic_CXX \
15605    lt_prog_compiler_static_CXX \
15606    lt_prog_compiler_no_builtin_flag_CXX \
15607    export_dynamic_flag_spec_CXX \
15608    thread_safe_flag_spec_CXX \
15609    whole_archive_flag_spec_CXX \
15610    enable_shared_with_static_runtimes_CXX \
15611    old_archive_cmds_CXX \
15612    old_archive_from_new_cmds_CXX \
15613    predep_objects_CXX \
15614    postdep_objects_CXX \
15615    predeps_CXX \
15616    postdeps_CXX \
15617    compiler_lib_search_path_CXX \
15618    archive_cmds_CXX \
15619    archive_expsym_cmds_CXX \
15620    postinstall_cmds_CXX \
15621    postuninstall_cmds_CXX \
15622    old_archive_from_expsyms_cmds_CXX \
15623    allow_undefined_flag_CXX \
15624    no_undefined_flag_CXX \
15625    export_symbols_cmds_CXX \
15626    hardcode_libdir_flag_spec_CXX \
15627    hardcode_libdir_flag_spec_ld_CXX \
15628    hardcode_libdir_separator_CXX \
15629    hardcode_automatic_CXX \
15630    module_cmds_CXX \
15631    module_expsym_cmds_CXX \
15632    lt_cv_prog_compiler_c_o_CXX \
15633    exclude_expsyms_CXX \
15634    include_expsyms_CXX; do
15635
15636    case $var in
15637    old_archive_cmds_CXX | \
15638    old_archive_from_new_cmds_CXX | \
15639    archive_cmds_CXX | \
15640    archive_expsym_cmds_CXX | \
15641    module_cmds_CXX | \
15642    module_expsym_cmds_CXX | \
15643    old_archive_from_expsyms_cmds_CXX | \
15644    export_symbols_cmds_CXX | \
15645    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15646    postinstall_cmds | postuninstall_cmds | \
15647    old_postinstall_cmds | old_postuninstall_cmds | \
15648    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15649      # Double-quote double-evaled strings.
15650      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15651      ;;
15652    *)
15653      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15654      ;;
15655    esac
15656  done
15657
15658  case $lt_echo in
15659  *'\$0 --fallback-echo"')
15660    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15661    ;;
15662  esac
15663
15664cfgfile="$ofile"
15665
15666  cat <<__EOF__ >> "$cfgfile"
15667# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15668
15669# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15670
15671# Shell to use when invoking shell scripts.
15672SHELL=$lt_SHELL
15673
15674# Whether or not to build shared libraries.
15675build_libtool_libs=$enable_shared
15676
15677# Whether or not to build static libraries.
15678build_old_libs=$enable_static
15679
15680# Whether or not to add -lc for building shared libraries.
15681build_libtool_need_lc=$archive_cmds_need_lc_CXX
15682
15683# Whether or not to disallow shared libs when runtime libs are static
15684allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15685
15686# Whether or not to optimize for fast installation.
15687fast_install=$enable_fast_install
15688
15689# The host system.
15690host_alias=$host_alias
15691host=$host
15692host_os=$host_os
15693
15694# The build system.
15695build_alias=$build_alias
15696build=$build
15697build_os=$build_os
15698
15699# An echo program that does not interpret backslashes.
15700echo=$lt_echo
15701
15702# The archiver.
15703AR=$lt_AR
15704AR_FLAGS=$lt_AR_FLAGS
15705
15706# A C compiler.
15707LTCC=$lt_LTCC
15708
15709# LTCC compiler flags.
15710LTCFLAGS=$lt_LTCFLAGS
15711
15712# A language-specific compiler.
15713CC=$lt_compiler_CXX
15714
15715# Is the compiler the GNU C compiler?
15716with_gcc=$GCC_CXX
15717
15718# An ERE matcher.
15719EGREP=$lt_EGREP
15720
15721# The linker used to build libraries.
15722LD=$lt_LD_CXX
15723
15724# Whether we need hard or soft links.
15725LN_S=$lt_LN_S
15726
15727# A BSD-compatible nm program.
15728NM=$lt_NM
15729
15730# A symbol stripping program
15731STRIP=$lt_STRIP
15732
15733# Used to examine libraries when file_magic_cmd begins "file"
15734MAGIC_CMD=$MAGIC_CMD
15735
15736# Used on cygwin: DLL creation program.
15737DLLTOOL="$DLLTOOL"
15738
15739# Used on cygwin: object dumper.
15740OBJDUMP="$OBJDUMP"
15741
15742# Used on cygwin: assembler.
15743AS="$AS"
15744
15745# The name of the directory that contains temporary libtool files.
15746objdir=$objdir
15747
15748# How to create reloadable object files.
15749reload_flag=$lt_reload_flag
15750reload_cmds=$lt_reload_cmds
15751
15752# How to pass a linker flag through the compiler.
15753wl=$lt_lt_prog_compiler_wl_CXX
15754
15755# Object file suffix (normally "o").
15756objext="$ac_objext"
15757
15758# Old archive suffix (normally "a").
15759libext="$libext"
15760
15761# Shared library suffix (normally ".so").
15762shrext_cmds='$shrext_cmds'
15763
15764# Executable file suffix (normally "").
15765exeext="$exeext"
15766
15767# Additional compiler flags for building library objects.
15768pic_flag=$lt_lt_prog_compiler_pic_CXX
15769pic_mode=$pic_mode
15770
15771# What is the maximum length of a command?
15772max_cmd_len=$lt_cv_sys_max_cmd_len
15773
15774# Does compiler simultaneously support -c and -o options?
15775compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15776
15777# Must we lock files when doing compilation?
15778need_locks=$lt_need_locks
15779
15780# Do we need the lib prefix for modules?
15781need_lib_prefix=$need_lib_prefix
15782
15783# Do we need a version for libraries?
15784need_version=$need_version
15785
15786# Whether dlopen is supported.
15787dlopen_support=$enable_dlopen
15788
15789# Whether dlopen of programs is supported.
15790dlopen_self=$enable_dlopen_self
15791
15792# Whether dlopen of statically linked programs is supported.
15793dlopen_self_static=$enable_dlopen_self_static
15794
15795# Compiler flag to prevent dynamic linking.
15796link_static_flag=$lt_lt_prog_compiler_static_CXX
15797
15798# Compiler flag to turn off builtin functions.
15799no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15800
15801# Compiler flag to allow reflexive dlopens.
15802export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15803
15804# Compiler flag to generate shared objects directly from archives.
15805whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15806
15807# Compiler flag to generate thread-safe objects.
15808thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15809
15810# Library versioning type.
15811version_type=$version_type
15812
15813# Format of library name prefix.
15814libname_spec=$lt_libname_spec
15815
15816# List of archive names.  First name is the real one, the rest are links.
15817# The last name is the one that the linker finds with -lNAME.
15818library_names_spec=$lt_library_names_spec
15819
15820# The coded name of the library, if different from the real name.
15821soname_spec=$lt_soname_spec
15822
15823# Commands used to build and install an old-style archive.
15824RANLIB=$lt_RANLIB
15825old_archive_cmds=$lt_old_archive_cmds_CXX
15826old_postinstall_cmds=$lt_old_postinstall_cmds
15827old_postuninstall_cmds=$lt_old_postuninstall_cmds
15828
15829# Create an old-style archive from a shared archive.
15830old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15831
15832# Create a temporary old-style archive to link instead of a shared archive.
15833old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15834
15835# Commands used to build and install a shared archive.
15836archive_cmds=$lt_archive_cmds_CXX
15837archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15838postinstall_cmds=$lt_postinstall_cmds
15839postuninstall_cmds=$lt_postuninstall_cmds
15840
15841# Commands used to build a loadable module (assumed same as above if empty)
15842module_cmds=$lt_module_cmds_CXX
15843module_expsym_cmds=$lt_module_expsym_cmds_CXX
15844
15845# Commands to strip libraries.
15846old_striplib=$lt_old_striplib
15847striplib=$lt_striplib
15848
15849# Dependencies to place before the objects being linked to create a
15850# shared library.
15851predep_objects=$lt_predep_objects_CXX
15852
15853# Dependencies to place after the objects being linked to create a
15854# shared library.
15855postdep_objects=$lt_postdep_objects_CXX
15856
15857# Dependencies to place before the objects being linked to create a
15858# shared library.
15859predeps=$lt_predeps_CXX
15860
15861# Dependencies to place after the objects being linked to create a
15862# shared library.
15863postdeps=$lt_postdeps_CXX
15864
15865# The library search path used internally by the compiler when linking
15866# a shared library.
15867compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15868
15869# Method to check whether dependent libraries are shared objects.
15870deplibs_check_method=$lt_deplibs_check_method
15871
15872# Command to use when deplibs_check_method == file_magic.
15873file_magic_cmd=$lt_file_magic_cmd
15874
15875# Flag that allows shared libraries with undefined symbols to be built.
15876allow_undefined_flag=$lt_allow_undefined_flag_CXX
15877
15878# Flag that forces no undefined symbols.
15879no_undefined_flag=$lt_no_undefined_flag_CXX
15880
15881# Commands used to finish a libtool library installation in a directory.
15882finish_cmds=$lt_finish_cmds
15883
15884# Same as above, but a single script fragment to be evaled but not shown.
15885finish_eval=$lt_finish_eval
15886
15887# Take the output of nm and produce a listing of raw symbols and C names.
15888global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15889
15890# Transform the output of nm in a proper C declaration
15891global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15892
15893# Transform the output of nm in a C name address pair
15894global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15895
15896# This is the shared library runtime path variable.
15897runpath_var=$runpath_var
15898
15899# This is the shared library path variable.
15900shlibpath_var=$shlibpath_var
15901
15902# Is shlibpath searched before the hard-coded library search path?
15903shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15904
15905# How to hardcode a shared library path into an executable.
15906hardcode_action=$hardcode_action_CXX
15907
15908# Whether we should hardcode library paths into libraries.
15909hardcode_into_libs=$hardcode_into_libs
15910
15911# Flag to hardcode \$libdir into a binary during linking.
15912# This must work even if \$libdir does not exist.
15913hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15914
15915# If ld is used when linking, flag to hardcode \$libdir into
15916# a binary during linking. This must work even if \$libdir does
15917# not exist.
15918hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15919
15920# Whether we need a single -rpath flag with a separated argument.
15921hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15922
15923# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15924# resulting binary.
15925hardcode_direct=$hardcode_direct_CXX
15926
15927# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15928# resulting binary.
15929hardcode_minus_L=$hardcode_minus_L_CXX
15930
15931# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15932# the resulting binary.
15933hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15934
15935# Set to yes if building a shared library automatically hardcodes DIR into the library
15936# and all subsequent libraries and executables linked against it.
15937hardcode_automatic=$hardcode_automatic_CXX
15938
15939# Variables whose values should be saved in libtool wrapper scripts and
15940# restored at relink time.
15941variables_saved_for_relink="$variables_saved_for_relink"
15942
15943# Whether libtool must link a program against all its dependency libraries.
15944link_all_deplibs=$link_all_deplibs_CXX
15945
15946# Compile-time system search path for libraries
15947sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15948
15949# Run-time system search path for libraries
15950sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15951
15952# Fix the shell variable \$srcfile for the compiler.
15953fix_srcfile_path="$fix_srcfile_path_CXX"
15954
15955# Set to yes if exported symbols are required.
15956always_export_symbols=$always_export_symbols_CXX
15957
15958# The commands to list exported symbols.
15959export_symbols_cmds=$lt_export_symbols_cmds_CXX
15960
15961# The commands to extract the exported symbol list from a shared archive.
15962extract_expsyms_cmds=$lt_extract_expsyms_cmds
15963
15964# Symbols that should not be listed in the preloaded symbols.
15965exclude_expsyms=$lt_exclude_expsyms_CXX
15966
15967# Symbols that must always be exported.
15968include_expsyms=$lt_include_expsyms_CXX
15969
15970# ### END LIBTOOL TAG CONFIG: $tagname
15971
15972__EOF__
15973
15974
15975else
15976  # If there is no Makefile yet, we rely on a make rule to execute
15977  # `config.status --recheck' to rerun these tests and create the
15978  # libtool script then.
15979  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15980  if test -f "$ltmain_in"; then
15981    test -f Makefile && make "$ltmain"
15982  fi
15983fi
15984
15985
15986ac_ext=c
15987ac_cpp='$CPP $CPPFLAGS'
15988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990ac_compiler_gnu=$ac_cv_c_compiler_gnu
15991
15992CC=$lt_save_CC
15993LDCXX=$LD
15994LD=$lt_save_LD
15995GCC=$lt_save_GCC
15996with_gnu_ldcxx=$with_gnu_ld
15997with_gnu_ld=$lt_save_with_gnu_ld
15998lt_cv_path_LDCXX=$lt_cv_path_LD
15999lt_cv_path_LD=$lt_save_path_LD
16000lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16001lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16002
16003	else
16004	  tagname=""
16005	fi
16006	;;
16007
16008      F77)
16009	if test -n "$F77" && test "X$F77" != "Xno"; then
16010
16011ac_ext=f
16012ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16013ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16015
16016
16017archive_cmds_need_lc_F77=no
16018allow_undefined_flag_F77=
16019always_export_symbols_F77=no
16020archive_expsym_cmds_F77=
16021export_dynamic_flag_spec_F77=
16022hardcode_direct_F77=no
16023hardcode_libdir_flag_spec_F77=
16024hardcode_libdir_flag_spec_ld_F77=
16025hardcode_libdir_separator_F77=
16026hardcode_minus_L_F77=no
16027hardcode_automatic_F77=no
16028module_cmds_F77=
16029module_expsym_cmds_F77=
16030link_all_deplibs_F77=unknown
16031old_archive_cmds_F77=$old_archive_cmds
16032no_undefined_flag_F77=
16033whole_archive_flag_spec_F77=
16034enable_shared_with_static_runtimes_F77=no
16035
16036# Source file extension for f77 test sources.
16037ac_ext=f
16038
16039# Object file extension for compiled f77 test sources.
16040objext=o
16041objext_F77=$objext
16042
16043# Code to be used in simple compile tests
16044lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
16045
16046# Code to be used in simple link tests
16047lt_simple_link_test_code="      program t\n      end\n"
16048
16049# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16050
16051# If no C compiler was specified, use CC.
16052LTCC=${LTCC-"$CC"}
16053
16054# If no C compiler flags were specified, use CFLAGS.
16055LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16056
16057# Allow CC to be a program name with arguments.
16058compiler=$CC
16059
16060
16061# save warnings/boilerplate of simple test code
16062ac_outfile=conftest.$ac_objext
16063printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16064eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16065_lt_compiler_boilerplate=`cat conftest.err`
16066$rm conftest*
16067
16068ac_outfile=conftest.$ac_objext
16069printf "$lt_simple_link_test_code" >conftest.$ac_ext
16070eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16071_lt_linker_boilerplate=`cat conftest.err`
16072$rm conftest*
16073
16074
16075# Allow CC to be a program name with arguments.
16076lt_save_CC="$CC"
16077CC=${F77-"f77"}
16078compiler=$CC
16079compiler_F77=$CC
16080for cc_temp in $compiler""; do
16081  case $cc_temp in
16082    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16083    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16084    \-*) ;;
16085    *) break;;
16086  esac
16087done
16088cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16089
16090
16091echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16092echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16093echo "$as_me:$LINENO: result: $can_build_shared" >&5
16094echo "${ECHO_T}$can_build_shared" >&6
16095
16096echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16097echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16098test "$can_build_shared" = "no" && enable_shared=no
16099
16100# On AIX, shared libraries and static libraries use the same namespace, and
16101# are all built from PIC.
16102case $host_os in
16103aix3*)
16104  test "$enable_shared" = yes && enable_static=no
16105  if test -n "$RANLIB"; then
16106    archive_cmds="$archive_cmds~\$RANLIB \$lib"
16107    postinstall_cmds='$RANLIB $lib'
16108  fi
16109  ;;
16110aix4* | aix5*)
16111  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16112    test "$enable_shared" = yes && enable_static=no
16113  fi
16114  ;;
16115esac
16116echo "$as_me:$LINENO: result: $enable_shared" >&5
16117echo "${ECHO_T}$enable_shared" >&6
16118
16119echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16120echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16121# Make sure either enable_shared or enable_static is yes.
16122test "$enable_shared" = yes || enable_static=yes
16123echo "$as_me:$LINENO: result: $enable_static" >&5
16124echo "${ECHO_T}$enable_static" >&6
16125
16126GCC_F77="$G77"
16127LD_F77="$LD"
16128
16129lt_prog_compiler_wl_F77=
16130lt_prog_compiler_pic_F77=
16131lt_prog_compiler_static_F77=
16132
16133echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16134echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16135
16136  if test "$GCC" = yes; then
16137    lt_prog_compiler_wl_F77='-Wl,'
16138    lt_prog_compiler_static_F77='-static'
16139
16140    case $host_os in
16141      aix*)
16142      # All AIX code is PIC.
16143      if test "$host_cpu" = ia64; then
16144	# AIX 5 now supports IA64 processor
16145	lt_prog_compiler_static_F77='-Bstatic'
16146      fi
16147      ;;
16148
16149    amigaos*)
16150      # FIXME: we need at least 68020 code to build shared libraries, but
16151      # adding the `-m68020' flag to GCC prevents building anything better,
16152      # like `-m68040'.
16153      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16154      ;;
16155
16156    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16157      # PIC is the default for these OSes.
16158      ;;
16159
16160    mingw* | pw32* | os2*)
16161      # This hack is so that the source file can tell whether it is being
16162      # built for inclusion in a dll (and should export symbols for example).
16163      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16164      ;;
16165
16166    darwin* | rhapsody*)
16167      # PIC is the default on this platform
16168      # Common symbols not allowed in MH_DYLIB files
16169      lt_prog_compiler_pic_F77='-fno-common'
16170      ;;
16171
16172    interix3*)
16173      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16174      # Instead, we relocate shared libraries at runtime.
16175      ;;
16176
16177    msdosdjgpp*)
16178      # Just because we use GCC doesn't mean we suddenly get shared libraries
16179      # on systems that don't support them.
16180      lt_prog_compiler_can_build_shared_F77=no
16181      enable_shared=no
16182      ;;
16183
16184    sysv4*MP*)
16185      if test -d /usr/nec; then
16186	lt_prog_compiler_pic_F77=-Kconform_pic
16187      fi
16188      ;;
16189
16190    hpux*)
16191      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16192      # not for PA HP-UX.
16193      case $host_cpu in
16194      hppa*64*|ia64*)
16195	# +Z the default
16196	;;
16197      *)
16198	lt_prog_compiler_pic_F77='-fPIC'
16199	;;
16200      esac
16201      ;;
16202
16203    *)
16204      lt_prog_compiler_pic_F77='-fPIC'
16205      ;;
16206    esac
16207  else
16208    # PORTME Check for flag to pass linker flags through the system compiler.
16209    case $host_os in
16210    aix*)
16211      lt_prog_compiler_wl_F77='-Wl,'
16212      if test "$host_cpu" = ia64; then
16213	# AIX 5 now supports IA64 processor
16214	lt_prog_compiler_static_F77='-Bstatic'
16215      else
16216	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16217      fi
16218      ;;
16219      darwin*)
16220        # PIC is the default on this platform
16221        # Common symbols not allowed in MH_DYLIB files
16222       case $cc_basename in
16223         xlc*)
16224         lt_prog_compiler_pic_F77='-qnocommon'
16225         lt_prog_compiler_wl_F77='-Wl,'
16226         ;;
16227       esac
16228       ;;
16229
16230    mingw* | pw32* | os2*)
16231      # This hack is so that the source file can tell whether it is being
16232      # built for inclusion in a dll (and should export symbols for example).
16233      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16234      ;;
16235
16236    hpux9* | hpux10* | hpux11*)
16237      lt_prog_compiler_wl_F77='-Wl,'
16238      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16239      # not for PA HP-UX.
16240      case $host_cpu in
16241      hppa*64*|ia64*)
16242	# +Z the default
16243	;;
16244      *)
16245	lt_prog_compiler_pic_F77='+Z'
16246	;;
16247      esac
16248      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16249      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16250      ;;
16251
16252    irix5* | irix6* | nonstopux*)
16253      lt_prog_compiler_wl_F77='-Wl,'
16254      # PIC (with -KPIC) is the default.
16255      lt_prog_compiler_static_F77='-non_shared'
16256      ;;
16257
16258    newsos6)
16259      lt_prog_compiler_pic_F77='-KPIC'
16260      lt_prog_compiler_static_F77='-Bstatic'
16261      ;;
16262
16263    linux*)
16264      case $cc_basename in
16265      icc* | ecc*)
16266	lt_prog_compiler_wl_F77='-Wl,'
16267	lt_prog_compiler_pic_F77='-KPIC'
16268	lt_prog_compiler_static_F77='-static'
16269        ;;
16270      pgcc* | pgf77* | pgf90* | pgf95*)
16271        # Portland Group compilers (*not* the Pentium gcc compiler,
16272	# which looks to be a dead project)
16273	lt_prog_compiler_wl_F77='-Wl,'
16274	lt_prog_compiler_pic_F77='-fpic'
16275	lt_prog_compiler_static_F77='-Bstatic'
16276        ;;
16277      ccc*)
16278        lt_prog_compiler_wl_F77='-Wl,'
16279        # All Alpha code is PIC.
16280        lt_prog_compiler_static_F77='-non_shared'
16281        ;;
16282      esac
16283      ;;
16284
16285    osf3* | osf4* | osf5*)
16286      lt_prog_compiler_wl_F77='-Wl,'
16287      # All OSF/1 code is PIC.
16288      lt_prog_compiler_static_F77='-non_shared'
16289      ;;
16290
16291    solaris*)
16292      lt_prog_compiler_pic_F77='-KPIC'
16293      lt_prog_compiler_static_F77='-Bstatic'
16294      case $cc_basename in
16295      f77* | f90* | f95*)
16296	lt_prog_compiler_wl_F77='-Qoption ld ';;
16297      *)
16298	lt_prog_compiler_wl_F77='-Wl,';;
16299      esac
16300      ;;
16301
16302    sunos4*)
16303      lt_prog_compiler_wl_F77='-Qoption ld '
16304      lt_prog_compiler_pic_F77='-PIC'
16305      lt_prog_compiler_static_F77='-Bstatic'
16306      ;;
16307
16308    sysv4 | sysv4.2uw2* | sysv4.3*)
16309      lt_prog_compiler_wl_F77='-Wl,'
16310      lt_prog_compiler_pic_F77='-KPIC'
16311      lt_prog_compiler_static_F77='-Bstatic'
16312      ;;
16313
16314    sysv4*MP*)
16315      if test -d /usr/nec ;then
16316	lt_prog_compiler_pic_F77='-Kconform_pic'
16317	lt_prog_compiler_static_F77='-Bstatic'
16318      fi
16319      ;;
16320
16321    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16322      lt_prog_compiler_wl_F77='-Wl,'
16323      lt_prog_compiler_pic_F77='-KPIC'
16324      lt_prog_compiler_static_F77='-Bstatic'
16325      ;;
16326
16327    unicos*)
16328      lt_prog_compiler_wl_F77='-Wl,'
16329      lt_prog_compiler_can_build_shared_F77=no
16330      ;;
16331
16332    uts4*)
16333      lt_prog_compiler_pic_F77='-pic'
16334      lt_prog_compiler_static_F77='-Bstatic'
16335      ;;
16336
16337    *)
16338      lt_prog_compiler_can_build_shared_F77=no
16339      ;;
16340    esac
16341  fi
16342
16343echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16344echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16345
16346#
16347# Check to make sure the PIC flag actually works.
16348#
16349if test -n "$lt_prog_compiler_pic_F77"; then
16350
16351echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16352echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16353if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16354  echo $ECHO_N "(cached) $ECHO_C" >&6
16355else
16356  lt_prog_compiler_pic_works_F77=no
16357  ac_outfile=conftest.$ac_objext
16358   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16359   lt_compiler_flag="$lt_prog_compiler_pic_F77"
16360   # Insert the option either (1) after the last *FLAGS variable, or
16361   # (2) before a word containing "conftest.", or (3) at the end.
16362   # Note that $ac_compile itself does not contain backslashes and begins
16363   # with a dollar sign (not a hyphen), so the echo should work correctly.
16364   # The option is referenced via a variable to avoid confusing sed.
16365   lt_compile=`echo "$ac_compile" | $SED \
16366   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16367   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16368   -e 's:$: $lt_compiler_flag:'`
16369   (eval echo "\"\$as_me:16369: $lt_compile\"" >&5)
16370   (eval "$lt_compile" 2>conftest.err)
16371   ac_status=$?
16372   cat conftest.err >&5
16373   echo "$as_me:16373: \$? = $ac_status" >&5
16374   if (exit $ac_status) && test -s "$ac_outfile"; then
16375     # The compiler can only warn and ignore the option if not recognized
16376     # So say no if there are warnings other than the usual output.
16377     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16378     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16379     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16380       lt_prog_compiler_pic_works_F77=yes
16381     fi
16382   fi
16383   $rm conftest*
16384
16385fi
16386echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16387echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16388
16389if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16390    case $lt_prog_compiler_pic_F77 in
16391     "" | " "*) ;;
16392     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16393     esac
16394else
16395    lt_prog_compiler_pic_F77=
16396     lt_prog_compiler_can_build_shared_F77=no
16397fi
16398
16399fi
16400case $host_os in
16401  # For platforms which do not support PIC, -DPIC is meaningless:
16402  *djgpp*)
16403    lt_prog_compiler_pic_F77=
16404    ;;
16405  *)
16406    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16407    ;;
16408esac
16409
16410#
16411# Check to make sure the static flag actually works.
16412#
16413wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16414echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16415echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16416if test "${lt_prog_compiler_static_works_F77+set}" = set; then
16417  echo $ECHO_N "(cached) $ECHO_C" >&6
16418else
16419  lt_prog_compiler_static_works_F77=no
16420   save_LDFLAGS="$LDFLAGS"
16421   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16422   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16423   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16424     # The linker can only warn and ignore the option if not recognized
16425     # So say no if there are warnings
16426     if test -s conftest.err; then
16427       # Append any errors to the config.log.
16428       cat conftest.err 1>&5
16429       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16430       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16431       if diff conftest.exp conftest.er2 >/dev/null; then
16432         lt_prog_compiler_static_works_F77=yes
16433       fi
16434     else
16435       lt_prog_compiler_static_works_F77=yes
16436     fi
16437   fi
16438   $rm conftest*
16439   LDFLAGS="$save_LDFLAGS"
16440
16441fi
16442echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16443echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
16444
16445if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16446    :
16447else
16448    lt_prog_compiler_static_F77=
16449fi
16450
16451
16452echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16453echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16454if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16455  echo $ECHO_N "(cached) $ECHO_C" >&6
16456else
16457  lt_cv_prog_compiler_c_o_F77=no
16458   $rm -r conftest 2>/dev/null
16459   mkdir conftest
16460   cd conftest
16461   mkdir out
16462   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16463
16464   lt_compiler_flag="-o out/conftest2.$ac_objext"
16465   # Insert the option either (1) after the last *FLAGS variable, or
16466   # (2) before a word containing "conftest.", or (3) at the end.
16467   # Note that $ac_compile itself does not contain backslashes and begins
16468   # with a dollar sign (not a hyphen), so the echo should work correctly.
16469   lt_compile=`echo "$ac_compile" | $SED \
16470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16472   -e 's:$: $lt_compiler_flag:'`
16473   (eval echo "\"\$as_me:16473: $lt_compile\"" >&5)
16474   (eval "$lt_compile" 2>out/conftest.err)
16475   ac_status=$?
16476   cat out/conftest.err >&5
16477   echo "$as_me:16477: \$? = $ac_status" >&5
16478   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16479   then
16480     # The compiler can only warn and ignore the option if not recognized
16481     # So say no if there are warnings
16482     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16483     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16484     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16485       lt_cv_prog_compiler_c_o_F77=yes
16486     fi
16487   fi
16488   chmod u+w . 2>&5
16489   $rm conftest*
16490   # SGI C++ compiler will create directory out/ii_files/ for
16491   # template instantiation
16492   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16493   $rm out/* && rmdir out
16494   cd ..
16495   rmdir conftest
16496   $rm conftest*
16497
16498fi
16499echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16500echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16501
16502
16503hard_links="nottested"
16504if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16505  # do not overwrite the value of need_locks provided by the user
16506  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16507echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16508  hard_links=yes
16509  $rm conftest*
16510  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16511  touch conftest.a
16512  ln conftest.a conftest.b 2>&5 || hard_links=no
16513  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16514  echo "$as_me:$LINENO: result: $hard_links" >&5
16515echo "${ECHO_T}$hard_links" >&6
16516  if test "$hard_links" = no; then
16517    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16518echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16519    need_locks=warn
16520  fi
16521else
16522  need_locks=no
16523fi
16524
16525echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16526echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16527
16528  runpath_var=
16529  allow_undefined_flag_F77=
16530  enable_shared_with_static_runtimes_F77=no
16531  archive_cmds_F77=
16532  archive_expsym_cmds_F77=
16533  old_archive_From_new_cmds_F77=
16534  old_archive_from_expsyms_cmds_F77=
16535  export_dynamic_flag_spec_F77=
16536  whole_archive_flag_spec_F77=
16537  thread_safe_flag_spec_F77=
16538  hardcode_libdir_flag_spec_F77=
16539  hardcode_libdir_flag_spec_ld_F77=
16540  hardcode_libdir_separator_F77=
16541  hardcode_direct_F77=no
16542  hardcode_minus_L_F77=no
16543  hardcode_shlibpath_var_F77=unsupported
16544  link_all_deplibs_F77=unknown
16545  hardcode_automatic_F77=no
16546  module_cmds_F77=
16547  module_expsym_cmds_F77=
16548  always_export_symbols_F77=no
16549  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16550  # include_expsyms should be a list of space-separated symbols to be *always*
16551  # included in the symbol list
16552  include_expsyms_F77=
16553  # exclude_expsyms can be an extended regexp of symbols to exclude
16554  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16555  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16556  # as well as any symbol that contains `d'.
16557  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16558  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16559  # platforms (ab)use it in PIC code, but their linkers get confused if
16560  # the symbol is explicitly referenced.  Since portable code cannot
16561  # rely on this symbol name, it's probably fine to never include it in
16562  # preloaded symbol tables.
16563  extract_expsyms_cmds=
16564  # Just being paranoid about ensuring that cc_basename is set.
16565  for cc_temp in $compiler""; do
16566  case $cc_temp in
16567    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16568    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16569    \-*) ;;
16570    *) break;;
16571  esac
16572done
16573cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16574
16575  case $host_os in
16576  cygwin* | mingw* | pw32*)
16577    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16578    # When not using gcc, we currently assume that we are using
16579    # Microsoft Visual C++.
16580    if test "$GCC" != yes; then
16581      with_gnu_ld=no
16582    fi
16583    ;;
16584  interix*)
16585    # we just hope/assume this is gcc and not c89 (= MSVC++)
16586    with_gnu_ld=yes
16587    ;;
16588  openbsd*)
16589    with_gnu_ld=no
16590    ;;
16591  esac
16592
16593  ld_shlibs_F77=yes
16594  if test "$with_gnu_ld" = yes; then
16595    # If archive_cmds runs LD, not CC, wlarc should be empty
16596    wlarc='${wl}'
16597
16598    # Set some defaults for GNU ld with shared library support. These
16599    # are reset later if shared libraries are not supported. Putting them
16600    # here allows them to be overridden if necessary.
16601    runpath_var=LD_RUN_PATH
16602    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16603    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16604    # ancient GNU ld didn't support --whole-archive et. al.
16605    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16606	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16607      else
16608  	whole_archive_flag_spec_F77=
16609    fi
16610    supports_anon_versioning=no
16611    case `$LD -v 2>/dev/null` in
16612      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16613      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16614      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16615      *\ 2.11.*) ;; # other 2.11 versions
16616      *) supports_anon_versioning=yes ;;
16617    esac
16618
16619    # See if GNU ld supports shared libraries.
16620    case $host_os in
16621    aix3* | aix4* | aix5*)
16622      # On AIX/PPC, the GNU linker is very broken
16623      if test "$host_cpu" != ia64; then
16624	ld_shlibs_F77=no
16625	cat <<EOF 1>&2
16626
16627*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16628*** to be unable to reliably create shared libraries on AIX.
16629*** Therefore, libtool is disabling shared libraries support.  If you
16630*** really care for shared libraries, you may want to modify your PATH
16631*** so that a non-GNU linker is found, and then restart.
16632
16633EOF
16634      fi
16635      ;;
16636
16637    amigaos*)
16638      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)'
16639      hardcode_libdir_flag_spec_F77='-L$libdir'
16640      hardcode_minus_L_F77=yes
16641
16642      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16643      # that the semantics of dynamic libraries on AmigaOS, at least up
16644      # to version 4, is to share data among multiple programs linked
16645      # with the same dynamic library.  Since this doesn't match the
16646      # behavior of shared libraries on other platforms, we can't use
16647      # them.
16648      ld_shlibs_F77=no
16649      ;;
16650
16651    beos*)
16652      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16653	allow_undefined_flag_F77=unsupported
16654	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16655	# support --undefined.  This deserves some investigation.  FIXME
16656	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16657      else
16658	ld_shlibs_F77=no
16659      fi
16660      ;;
16661
16662    cygwin* | mingw* | pw32*)
16663      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16664      # as there is no search path for DLLs.
16665      hardcode_libdir_flag_spec_F77='-L$libdir'
16666      allow_undefined_flag_F77=unsupported
16667      always_export_symbols_F77=no
16668      enable_shared_with_static_runtimes_F77=yes
16669      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16670
16671      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16672        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16673	# If the export-symbols file already is a .def file (1st line
16674	# is EXPORTS), use it as is; otherwise, prepend...
16675	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16676	  cp $export_symbols $output_objdir/$soname.def;
16677	else
16678	  echo EXPORTS > $output_objdir/$soname.def;
16679	  cat $export_symbols >> $output_objdir/$soname.def;
16680	fi~
16681	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16682      else
16683	ld_shlibs_F77=no
16684      fi
16685      ;;
16686
16687    interix3*)
16688      hardcode_direct_F77=no
16689      hardcode_shlibpath_var_F77=no
16690      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16691      export_dynamic_flag_spec_F77='${wl}-E'
16692      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16693      # Instead, shared libraries are loaded at an image base (0x10000000 by
16694      # default) and relocated if they conflict, which is a slow very memory
16695      # consuming and fragmenting process.  To avoid this, we pick a random,
16696      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16697      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16698      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'
16699      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'
16700      ;;
16701
16702    linux*)
16703      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16704	tmp_addflag=
16705	case $cc_basename,$host_cpu in
16706	pgcc*)				# Portland Group C compiler
16707	  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'
16708	  tmp_addflag=' $pic_flag'
16709	  ;;
16710	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16711	  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'
16712	  tmp_addflag=' $pic_flag -Mnomain' ;;
16713	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16714	  tmp_addflag=' -i_dynamic' ;;
16715	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16716	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16717	ifc* | ifort*)			# Intel Fortran compiler
16718	  tmp_addflag=' -nofor_main' ;;
16719	esac
16720	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16721
16722	if test $supports_anon_versioning = yes; then
16723	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16724  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16725  $echo "local: *; };" >> $output_objdir/$libname.ver~
16726	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16727	fi
16728      else
16729	ld_shlibs_F77=no
16730      fi
16731      ;;
16732
16733    netbsd*)
16734      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16735	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16736	wlarc=
16737      else
16738	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16739	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16740      fi
16741      ;;
16742
16743    solaris*)
16744      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16745	ld_shlibs_F77=no
16746	cat <<EOF 1>&2
16747
16748*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16749*** create shared libraries on Solaris systems.  Therefore, libtool
16750*** is disabling shared libraries support.  We urge you to upgrade GNU
16751*** binutils to release 2.9.1 or newer.  Another option is to modify
16752*** your PATH or compiler configuration so that the native linker is
16753*** used, and then restart.
16754
16755EOF
16756      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16757	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16758	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16759      else
16760	ld_shlibs_F77=no
16761      fi
16762      ;;
16763
16764    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16765      case `$LD -v 2>&1` in
16766        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16767	ld_shlibs_F77=no
16768	cat <<_LT_EOF 1>&2
16769
16770*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16771*** reliably create shared libraries on SCO systems.  Therefore, libtool
16772*** is disabling shared libraries support.  We urge you to upgrade GNU
16773*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16774*** your PATH or compiler configuration so that the native linker is
16775*** used, and then restart.
16776
16777_LT_EOF
16778	;;
16779	*)
16780	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16781	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16782	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16783	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16784	  else
16785	    ld_shlibs_F77=no
16786	  fi
16787	;;
16788      esac
16789      ;;
16790
16791    sunos4*)
16792      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16793      wlarc=
16794      hardcode_direct_F77=yes
16795      hardcode_shlibpath_var_F77=no
16796      ;;
16797
16798    *)
16799      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16800	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16801	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16802      else
16803	ld_shlibs_F77=no
16804      fi
16805      ;;
16806    esac
16807
16808    if test "$ld_shlibs_F77" = no; then
16809      runpath_var=
16810      hardcode_libdir_flag_spec_F77=
16811      export_dynamic_flag_spec_F77=
16812      whole_archive_flag_spec_F77=
16813    fi
16814  else
16815    # PORTME fill in a description of your system's linker (not GNU ld)
16816    case $host_os in
16817    aix3*)
16818      allow_undefined_flag_F77=unsupported
16819      always_export_symbols_F77=yes
16820      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'
16821      # Note: this linker hardcodes the directories in LIBPATH if there
16822      # are no directories specified by -L.
16823      hardcode_minus_L_F77=yes
16824      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16825	# Neither direct hardcoding nor static linking is supported with a
16826	# broken collect2.
16827	hardcode_direct_F77=unsupported
16828      fi
16829      ;;
16830
16831    aix4* | aix5*)
16832      if test "$host_cpu" = ia64; then
16833	# On IA64, the linker does run time linking by default, so we don't
16834	# have to do anything special.
16835	aix_use_runtimelinking=no
16836	exp_sym_flag='-Bexport'
16837	no_entry_flag=""
16838      else
16839	# If we're using GNU nm, then we don't want the "-C" option.
16840	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16841	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16842	  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'
16843	else
16844	  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'
16845	fi
16846	aix_use_runtimelinking=no
16847
16848	# Test if we are trying to use run time linking or normal
16849	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16850	# need to do runtime linking.
16851	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16852	  for ld_flag in $LDFLAGS; do
16853  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16854  	    aix_use_runtimelinking=yes
16855  	    break
16856  	  fi
16857	  done
16858	  ;;
16859	esac
16860
16861	exp_sym_flag='-bexport'
16862	no_entry_flag='-bnoentry'
16863      fi
16864
16865      # When large executables or shared objects are built, AIX ld can
16866      # have problems creating the table of contents.  If linking a library
16867      # or program results in "error TOC overflow" add -mminimal-toc to
16868      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16869      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16870
16871      archive_cmds_F77=''
16872      hardcode_direct_F77=yes
16873      hardcode_libdir_separator_F77=':'
16874      link_all_deplibs_F77=yes
16875
16876      if test "$GCC" = yes; then
16877	case $host_os in aix4.[012]|aix4.[012].*)
16878	# We only want to do this on AIX 4.2 and lower, the check
16879	# below for broken collect2 doesn't work under 4.3+
16880	  collect2name=`${CC} -print-prog-name=collect2`
16881	  if test -f "$collect2name" && \
16882  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16883	  then
16884  	  # We have reworked collect2
16885  	  hardcode_direct_F77=yes
16886	  else
16887  	  # We have old collect2
16888  	  hardcode_direct_F77=unsupported
16889  	  # It fails to find uninstalled libraries when the uninstalled
16890  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16891  	  # to unsupported forces relinking
16892  	  hardcode_minus_L_F77=yes
16893  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16894  	  hardcode_libdir_separator_F77=
16895	  fi
16896	  ;;
16897	esac
16898	shared_flag='-shared'
16899	if test "$aix_use_runtimelinking" = yes; then
16900	  shared_flag="$shared_flag "'${wl}-G'
16901	fi
16902      else
16903	# not using gcc
16904	if test "$host_cpu" = ia64; then
16905  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16906  	# chokes on -Wl,-G. The following line is correct:
16907	  shared_flag='-G'
16908	else
16909	  if test "$aix_use_runtimelinking" = yes; then
16910	    shared_flag='${wl}-G'
16911	  else
16912	    shared_flag='${wl}-bM:SRE'
16913	  fi
16914	fi
16915      fi
16916
16917      # It seems that -bexpall does not export symbols beginning with
16918      # underscore (_), so it is better to generate a list of symbols to export.
16919      always_export_symbols_F77=yes
16920      if test "$aix_use_runtimelinking" = yes; then
16921	# Warning - without using the other runtime loading flags (-brtl),
16922	# -berok will link without error, but may produce a broken library.
16923	allow_undefined_flag_F77='-berok'
16924       # Determine the default libpath from the value encoded in an empty executable.
16925       cat >conftest.$ac_ext <<_ACEOF
16926      program main
16927
16928      end
16929_ACEOF
16930rm -f conftest.$ac_objext conftest$ac_exeext
16931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932  (eval $ac_link) 2>conftest.er1
16933  ac_status=$?
16934  grep -v '^ *+' conftest.er1 >conftest.err
16935  rm -f conftest.er1
16936  cat conftest.err >&5
16937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938  (exit $ac_status); } &&
16939	 { ac_try='test -z "$ac_f77_werror_flag"
16940			 || test ! -s conftest.err'
16941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942  (eval $ac_try) 2>&5
16943  ac_status=$?
16944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945  (exit $ac_status); }; } &&
16946	 { ac_try='test -s conftest$ac_exeext'
16947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948  (eval $ac_try) 2>&5
16949  ac_status=$?
16950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951  (exit $ac_status); }; }; then
16952
16953aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16954}'`
16955# Check for a 64-bit object if we didn't find anything.
16956if 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; }
16957}'`; fi
16958else
16959  echo "$as_me: failed program was:" >&5
16960sed 's/^/| /' conftest.$ac_ext >&5
16961
16962fi
16963rm -f conftest.err conftest.$ac_objext \
16964      conftest$ac_exeext conftest.$ac_ext
16965if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16966
16967       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16968	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"
16969       else
16970	if test "$host_cpu" = ia64; then
16971	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16972	  allow_undefined_flag_F77="-z nodefs"
16973	  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"
16974	else
16975	 # Determine the default libpath from the value encoded in an empty executable.
16976	 cat >conftest.$ac_ext <<_ACEOF
16977      program main
16978
16979      end
16980_ACEOF
16981rm -f conftest.$ac_objext conftest$ac_exeext
16982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16983  (eval $ac_link) 2>conftest.er1
16984  ac_status=$?
16985  grep -v '^ *+' conftest.er1 >conftest.err
16986  rm -f conftest.er1
16987  cat conftest.err >&5
16988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989  (exit $ac_status); } &&
16990	 { ac_try='test -z "$ac_f77_werror_flag"
16991			 || test ! -s conftest.err'
16992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993  (eval $ac_try) 2>&5
16994  ac_status=$?
16995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996  (exit $ac_status); }; } &&
16997	 { ac_try='test -s conftest$ac_exeext'
16998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999  (eval $ac_try) 2>&5
17000  ac_status=$?
17001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002  (exit $ac_status); }; }; then
17003
17004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17005}'`
17006# Check for a 64-bit object if we didn't find anything.
17007if 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; }
17008}'`; fi
17009else
17010  echo "$as_me: failed program was:" >&5
17011sed 's/^/| /' conftest.$ac_ext >&5
17012
17013fi
17014rm -f conftest.err conftest.$ac_objext \
17015      conftest$ac_exeext conftest.$ac_ext
17016if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17017
17018	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17019	  # Warning - without using the other run time loading flags,
17020	  # -berok will link without error, but may produce a broken library.
17021	  no_undefined_flag_F77=' ${wl}-bernotok'
17022	  allow_undefined_flag_F77=' ${wl}-berok'
17023	  # Exported symbols can be pulled into shared objects from archives
17024	  whole_archive_flag_spec_F77='$convenience'
17025	  archive_cmds_need_lc_F77=yes
17026	  # This is similar to how AIX traditionally builds its shared libraries.
17027	  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'
17028	fi
17029      fi
17030      ;;
17031
17032    amigaos*)
17033      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)'
17034      hardcode_libdir_flag_spec_F77='-L$libdir'
17035      hardcode_minus_L_F77=yes
17036      # see comment about different semantics on the GNU ld section
17037      ld_shlibs_F77=no
17038      ;;
17039
17040    bsdi[45]*)
17041      export_dynamic_flag_spec_F77=-rdynamic
17042      ;;
17043
17044    cygwin* | mingw* | pw32*)
17045      # When not using gcc, we currently assume that we are using
17046      # Microsoft Visual C++.
17047      # hardcode_libdir_flag_spec is actually meaningless, as there is
17048      # no search path for DLLs.
17049      hardcode_libdir_flag_spec_F77=' '
17050      allow_undefined_flag_F77=unsupported
17051      # Tell ltmain to make .lib files, not .a files.
17052      libext=lib
17053      # Tell ltmain to make .dll files, not .so files.
17054      shrext_cmds=".dll"
17055      # FIXME: Setting linknames here is a bad hack.
17056      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17057      # The linker will automatically build a .lib file if we build a DLL.
17058      old_archive_From_new_cmds_F77='true'
17059      # FIXME: Should let the user specify the lib program.
17060      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17061      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17062      enable_shared_with_static_runtimes_F77=yes
17063      ;;
17064
17065    darwin* | rhapsody*)
17066      case $host_os in
17067        rhapsody* | darwin1.[012])
17068         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17069         ;;
17070       *) # Darwin 1.3 on
17071         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17072           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17073         else
17074           case ${MACOSX_DEPLOYMENT_TARGET} in
17075             10.[012])
17076               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17077               ;;
17078             10.*)
17079               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17080               ;;
17081           esac
17082         fi
17083         ;;
17084      esac
17085      archive_cmds_need_lc_F77=no
17086      hardcode_direct_F77=no
17087      hardcode_automatic_F77=yes
17088      hardcode_shlibpath_var_F77=unsupported
17089      whole_archive_flag_spec_F77=''
17090      link_all_deplibs_F77=yes
17091    if test "$GCC" = yes ; then
17092    	output_verbose_link_cmd='echo'
17093        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17094      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17095      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17096      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}'
17097      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}'
17098    else
17099      case $cc_basename in
17100        xlc*)
17101         output_verbose_link_cmd='echo'
17102         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17103         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17104          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17105         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}'
17106          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}'
17107          ;;
17108       *)
17109         ld_shlibs_F77=no
17110          ;;
17111      esac
17112    fi
17113      ;;
17114
17115    dgux*)
17116      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117      hardcode_libdir_flag_spec_F77='-L$libdir'
17118      hardcode_shlibpath_var_F77=no
17119      ;;
17120
17121    freebsd1*)
17122      ld_shlibs_F77=no
17123      ;;
17124
17125    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17126    # support.  Future versions do this automatically, but an explicit c++rt0.o
17127    # does not break anything, and helps significantly (at the cost of a little
17128    # extra space).
17129    freebsd2.2*)
17130      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17131      hardcode_libdir_flag_spec_F77='-R$libdir'
17132      hardcode_direct_F77=yes
17133      hardcode_shlibpath_var_F77=no
17134      ;;
17135
17136    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17137    freebsd2*)
17138      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17139      hardcode_direct_F77=yes
17140      hardcode_minus_L_F77=yes
17141      hardcode_shlibpath_var_F77=no
17142      ;;
17143
17144    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17145    freebsd* | kfreebsd*-gnu | dragonfly*)
17146      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17147      hardcode_libdir_flag_spec_F77='-R$libdir'
17148      hardcode_direct_F77=yes
17149      hardcode_shlibpath_var_F77=no
17150      ;;
17151
17152    hpux9*)
17153      if test "$GCC" = yes; then
17154	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'
17155      else
17156	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'
17157      fi
17158      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17159      hardcode_libdir_separator_F77=:
17160      hardcode_direct_F77=yes
17161
17162      # hardcode_minus_L: Not really in the search PATH,
17163      # but as the default location of the library.
17164      hardcode_minus_L_F77=yes
17165      export_dynamic_flag_spec_F77='${wl}-E'
17166      ;;
17167
17168    hpux10*)
17169      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17170	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17171      else
17172	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17173      fi
17174      if test "$with_gnu_ld" = no; then
17175	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17176	hardcode_libdir_separator_F77=:
17177
17178	hardcode_direct_F77=yes
17179	export_dynamic_flag_spec_F77='${wl}-E'
17180
17181	# hardcode_minus_L: Not really in the search PATH,
17182	# but as the default location of the library.
17183	hardcode_minus_L_F77=yes
17184      fi
17185      ;;
17186
17187    hpux11*)
17188      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17189	case $host_cpu in
17190	hppa*64*)
17191	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17192	  ;;
17193	ia64*)
17194	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17195	  ;;
17196	*)
17197	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17198	  ;;
17199	esac
17200      else
17201	case $host_cpu in
17202	hppa*64*)
17203	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17204	  ;;
17205	ia64*)
17206	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17207	  ;;
17208	*)
17209	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17210	  ;;
17211	esac
17212      fi
17213      if test "$with_gnu_ld" = no; then
17214	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17215	hardcode_libdir_separator_F77=:
17216
17217	case $host_cpu in
17218	hppa*64*|ia64*)
17219	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17220	  hardcode_direct_F77=no
17221	  hardcode_shlibpath_var_F77=no
17222	  ;;
17223	*)
17224	  hardcode_direct_F77=yes
17225	  export_dynamic_flag_spec_F77='${wl}-E'
17226
17227	  # hardcode_minus_L: Not really in the search PATH,
17228	  # but as the default location of the library.
17229	  hardcode_minus_L_F77=yes
17230	  ;;
17231	esac
17232      fi
17233      ;;
17234
17235    irix5* | irix6* | nonstopux*)
17236      if test "$GCC" = yes; then
17237	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'
17238      else
17239	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'
17240	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17241      fi
17242      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17243      hardcode_libdir_separator_F77=:
17244      link_all_deplibs_F77=yes
17245      ;;
17246
17247    netbsd*)
17248      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17249	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17250      else
17251	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17252      fi
17253      hardcode_libdir_flag_spec_F77='-R$libdir'
17254      hardcode_direct_F77=yes
17255      hardcode_shlibpath_var_F77=no
17256      ;;
17257
17258    newsos6)
17259      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17260      hardcode_direct_F77=yes
17261      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17262      hardcode_libdir_separator_F77=:
17263      hardcode_shlibpath_var_F77=no
17264      ;;
17265
17266    openbsd*)
17267      hardcode_direct_F77=yes
17268      hardcode_shlibpath_var_F77=no
17269      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17270	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17271	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17272	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17273	export_dynamic_flag_spec_F77='${wl}-E'
17274      else
17275       case $host_os in
17276	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17277	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17278	   hardcode_libdir_flag_spec_F77='-R$libdir'
17279	   ;;
17280	 *)
17281	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17282	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17283	   ;;
17284       esac
17285      fi
17286      ;;
17287
17288    os2*)
17289      hardcode_libdir_flag_spec_F77='-L$libdir'
17290      hardcode_minus_L_F77=yes
17291      allow_undefined_flag_F77=unsupported
17292      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'
17293      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17294      ;;
17295
17296    osf3*)
17297      if test "$GCC" = yes; then
17298	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17299	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'
17300      else
17301	allow_undefined_flag_F77=' -expect_unresolved \*'
17302	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'
17303      fi
17304      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17305      hardcode_libdir_separator_F77=:
17306      ;;
17307
17308    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17309      if test "$GCC" = yes; then
17310	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17311	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'
17312	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17313      else
17314	allow_undefined_flag_F77=' -expect_unresolved \*'
17315	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'
17316	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~
17317	$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'
17318
17319	# Both c and cxx compiler support -rpath directly
17320	hardcode_libdir_flag_spec_F77='-rpath $libdir'
17321      fi
17322      hardcode_libdir_separator_F77=:
17323      ;;
17324
17325    solaris*)
17326      no_undefined_flag_F77=' -z text'
17327      if test "$GCC" = yes; then
17328	wlarc='${wl}'
17329	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17330	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17331	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17332      else
17333	wlarc=''
17334	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17336  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17337      fi
17338      hardcode_libdir_flag_spec_F77='-R$libdir'
17339      hardcode_shlibpath_var_F77=no
17340      case $host_os in
17341      solaris2.[0-5] | solaris2.[0-5].*) ;;
17342      *)
17343 	# The compiler driver will combine linker options so we
17344 	# cannot just pass the convience library names through
17345 	# without $wl, iff we do not link with $LD.
17346 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17347 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17348 	case $wlarc in
17349 	'')
17350 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17351 	*)
17352 	  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' ;;
17353 	esac ;;
17354      esac
17355      link_all_deplibs_F77=yes
17356      ;;
17357
17358    sunos4*)
17359      if test "x$host_vendor" = xsequent; then
17360	# Use $CC to link under sequent, because it throws in some extra .o
17361	# files that make .init and .fini sections work.
17362	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17363      else
17364	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17365      fi
17366      hardcode_libdir_flag_spec_F77='-L$libdir'
17367      hardcode_direct_F77=yes
17368      hardcode_minus_L_F77=yes
17369      hardcode_shlibpath_var_F77=no
17370      ;;
17371
17372    sysv4)
17373      case $host_vendor in
17374	sni)
17375	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17376	  hardcode_direct_F77=yes # is this really true???
17377	;;
17378	siemens)
17379	  ## LD is ld it makes a PLAMLIB
17380	  ## CC just makes a GrossModule.
17381	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17382	  reload_cmds_F77='$CC -r -o $output$reload_objs'
17383	  hardcode_direct_F77=no
17384        ;;
17385	motorola)
17386	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17388	;;
17389      esac
17390      runpath_var='LD_RUN_PATH'
17391      hardcode_shlibpath_var_F77=no
17392      ;;
17393
17394    sysv4.3*)
17395      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17396      hardcode_shlibpath_var_F77=no
17397      export_dynamic_flag_spec_F77='-Bexport'
17398      ;;
17399
17400    sysv4*MP*)
17401      if test -d /usr/nec; then
17402	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403	hardcode_shlibpath_var_F77=no
17404	runpath_var=LD_RUN_PATH
17405	hardcode_runpath_var=yes
17406	ld_shlibs_F77=yes
17407      fi
17408      ;;
17409
17410    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17411      no_undefined_flag_F77='${wl}-z,text'
17412      archive_cmds_need_lc_F77=no
17413      hardcode_shlibpath_var_F77=no
17414      runpath_var='LD_RUN_PATH'
17415
17416      if test "$GCC" = yes; then
17417	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17418	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17419      else
17420	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17421	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17422      fi
17423      ;;
17424
17425    sysv5* | sco3.2v5* | sco5v6*)
17426      # Note: We can NOT use -z defs as we might desire, because we do not
17427      # link with -lc, and that would cause any symbols used from libc to
17428      # always be unresolved, which means just about no library would
17429      # ever link correctly.  If we're not using GNU ld we use -z text
17430      # though, which does catch some bad symbols but isn't as heavy-handed
17431      # as -z defs.
17432      no_undefined_flag_F77='${wl}-z,text'
17433      allow_undefined_flag_F77='${wl}-z,nodefs'
17434      archive_cmds_need_lc_F77=no
17435      hardcode_shlibpath_var_F77=no
17436      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17437      hardcode_libdir_separator_F77=':'
17438      link_all_deplibs_F77=yes
17439      export_dynamic_flag_spec_F77='${wl}-Bexport'
17440      runpath_var='LD_RUN_PATH'
17441
17442      if test "$GCC" = yes; then
17443	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17444	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17445      else
17446	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17447	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17448      fi
17449      ;;
17450
17451    uts4*)
17452      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17453      hardcode_libdir_flag_spec_F77='-L$libdir'
17454      hardcode_shlibpath_var_F77=no
17455      ;;
17456
17457    *)
17458      ld_shlibs_F77=no
17459      ;;
17460    esac
17461  fi
17462
17463echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17464echo "${ECHO_T}$ld_shlibs_F77" >&6
17465test "$ld_shlibs_F77" = no && can_build_shared=no
17466
17467#
17468# Do we need to explicitly link libc?
17469#
17470case "x$archive_cmds_need_lc_F77" in
17471x|xyes)
17472  # Assume -lc should be added
17473  archive_cmds_need_lc_F77=yes
17474
17475  if test "$enable_shared" = yes && test "$GCC" = yes; then
17476    case $archive_cmds_F77 in
17477    *'~'*)
17478      # FIXME: we may have to deal with multi-command sequences.
17479      ;;
17480    '$CC '*)
17481      # Test whether the compiler implicitly links with -lc since on some
17482      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17483      # to ld, don't add -lc before -lgcc.
17484      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17485echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17486      $rm conftest*
17487      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17488
17489      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17490  (eval $ac_compile) 2>&5
17491  ac_status=$?
17492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493  (exit $ac_status); } 2>conftest.err; then
17494        soname=conftest
17495        lib=conftest
17496        libobjs=conftest.$ac_objext
17497        deplibs=
17498        wl=$lt_prog_compiler_wl_F77
17499	pic_flag=$lt_prog_compiler_pic_F77
17500        compiler_flags=-v
17501        linker_flags=-v
17502        verstring=
17503        output_objdir=.
17504        libname=conftest
17505        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17506        allow_undefined_flag_F77=
17507        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17508  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17509  ac_status=$?
17510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511  (exit $ac_status); }
17512        then
17513	  archive_cmds_need_lc_F77=no
17514        else
17515	  archive_cmds_need_lc_F77=yes
17516        fi
17517        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17518      else
17519        cat conftest.err 1>&5
17520      fi
17521      $rm conftest*
17522      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17523echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17524      ;;
17525    esac
17526  fi
17527  ;;
17528esac
17529
17530echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17531echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17532library_names_spec=
17533libname_spec='lib$name'
17534soname_spec=
17535shrext_cmds=".so"
17536postinstall_cmds=
17537postuninstall_cmds=
17538finish_cmds=
17539finish_eval=
17540shlibpath_var=
17541shlibpath_overrides_runpath=unknown
17542version_type=none
17543dynamic_linker="$host_os ld.so"
17544sys_lib_dlsearch_path_spec="/lib /usr/lib"
17545if test "$GCC" = yes; then
17546  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17547  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17548    # if the path contains ";" then we assume it to be the separator
17549    # otherwise default to the standard path separator (i.e. ":") - it is
17550    # assumed that no part of a normal pathname contains ";" but that should
17551    # okay in the real world where ";" in dirpaths is itself problematic.
17552    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17553  else
17554    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17555  fi
17556else
17557  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17558fi
17559need_lib_prefix=unknown
17560hardcode_into_libs=no
17561
17562# when you set need_version to no, make sure it does not cause -set_version
17563# flags to be left without arguments
17564need_version=unknown
17565
17566case $host_os in
17567aix3*)
17568  version_type=linux
17569  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17570  shlibpath_var=LIBPATH
17571
17572  # AIX 3 has no versioning support, so we append a major version to the name.
17573  soname_spec='${libname}${release}${shared_ext}$major'
17574  ;;
17575
17576aix4* | aix5*)
17577  version_type=linux
17578  need_lib_prefix=no
17579  need_version=no
17580  hardcode_into_libs=yes
17581  if test "$host_cpu" = ia64; then
17582    # AIX 5 supports IA64
17583    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17584    shlibpath_var=LD_LIBRARY_PATH
17585  else
17586    # With GCC up to 2.95.x, collect2 would create an import file
17587    # for dependence libraries.  The import file would start with
17588    # the line `#! .'.  This would cause the generated library to
17589    # depend on `.', always an invalid library.  This was fixed in
17590    # development snapshots of GCC prior to 3.0.
17591    case $host_os in
17592      aix4 | aix4.[01] | aix4.[01].*)
17593      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17594	   echo ' yes '
17595	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17596	:
17597      else
17598	can_build_shared=no
17599      fi
17600      ;;
17601    esac
17602    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17603    # soname into executable. Probably we can add versioning support to
17604    # collect2, so additional links can be useful in future.
17605    if test "$aix_use_runtimelinking" = yes; then
17606      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17607      # instead of lib<name>.a to let people know that these are not
17608      # typical AIX shared libraries.
17609      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610    else
17611      # We preserve .a as extension for shared libraries through AIX4.2
17612      # and later when we are not doing run time linking.
17613      library_names_spec='${libname}${release}.a $libname.a'
17614      soname_spec='${libname}${release}${shared_ext}$major'
17615    fi
17616    shlibpath_var=LIBPATH
17617  fi
17618  ;;
17619
17620amigaos*)
17621  library_names_spec='$libname.ixlibrary $libname.a'
17622  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17623  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'
17624  ;;
17625
17626beos*)
17627  library_names_spec='${libname}${shared_ext}'
17628  dynamic_linker="$host_os ld.so"
17629  shlibpath_var=LIBRARY_PATH
17630  ;;
17631
17632bsdi[45]*)
17633  version_type=linux
17634  need_version=no
17635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17636  soname_spec='${libname}${release}${shared_ext}$major'
17637  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17638  shlibpath_var=LD_LIBRARY_PATH
17639  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17640  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17641  # the default ld.so.conf also contains /usr/contrib/lib and
17642  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17643  # libtool to hard-code these into programs
17644  ;;
17645
17646cygwin* | mingw* | pw32*)
17647  version_type=windows
17648  shrext_cmds=".dll"
17649  need_version=no
17650  need_lib_prefix=no
17651
17652  case $GCC,$host_os in
17653  yes,cygwin* | yes,mingw* | yes,pw32*)
17654    library_names_spec='$libname.dll.a'
17655    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17656    postinstall_cmds='base_file=`basename \${file}`~
17657      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17658      dldir=$destdir/`dirname \$dlpath`~
17659      test -d \$dldir || mkdir -p \$dldir~
17660      $install_prog $dir/$dlname \$dldir/$dlname~
17661      chmod a+x \$dldir/$dlname'
17662    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17663      dlpath=$dir/\$dldll~
17664       $rm \$dlpath'
17665    shlibpath_overrides_runpath=yes
17666
17667    case $host_os in
17668    cygwin*)
17669      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17670      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17671      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17672      ;;
17673    mingw*)
17674      # MinGW DLLs use traditional 'lib' prefix
17675      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17676      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17677      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17678        # It is most probably a Windows format PATH printed by
17679        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17680        # path with ; separators, and with drive letters. We can handle the
17681        # drive letters (cygwin fileutils understands them), so leave them,
17682        # especially as we might pass files found there to a mingw objdump,
17683        # which wouldn't understand a cygwinified path. Ahh.
17684        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17685      else
17686        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17687      fi
17688      ;;
17689    pw32*)
17690      # pw32 DLLs use 'pw' prefix rather than 'lib'
17691      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17692      ;;
17693    esac
17694    ;;
17695
17696  *)
17697    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17698    ;;
17699  esac
17700  dynamic_linker='Win32 ld.exe'
17701  # FIXME: first we should search . and the directory the executable is in
17702  shlibpath_var=PATH
17703  ;;
17704
17705darwin* | rhapsody*)
17706  dynamic_linker="$host_os dyld"
17707  version_type=darwin
17708  need_lib_prefix=no
17709  need_version=no
17710  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17711  soname_spec='${libname}${release}${major}$shared_ext'
17712  shlibpath_overrides_runpath=yes
17713  shlibpath_var=DYLD_LIBRARY_PATH
17714  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17715  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17716  if test "$GCC" = yes; then
17717    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"`
17718  else
17719    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17720  fi
17721  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17722  ;;
17723
17724dgux*)
17725  version_type=linux
17726  need_lib_prefix=no
17727  need_version=no
17728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17729  soname_spec='${libname}${release}${shared_ext}$major'
17730  shlibpath_var=LD_LIBRARY_PATH
17731  ;;
17732
17733freebsd1*)
17734  dynamic_linker=no
17735  ;;
17736
17737kfreebsd*-gnu)
17738  version_type=linux
17739  need_lib_prefix=no
17740  need_version=no
17741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17742  soname_spec='${libname}${release}${shared_ext}$major'
17743  shlibpath_var=LD_LIBRARY_PATH
17744  shlibpath_overrides_runpath=no
17745  hardcode_into_libs=yes
17746  dynamic_linker='GNU ld.so'
17747  ;;
17748
17749freebsd* | dragonfly*)
17750  # DragonFly does not have aout.  When/if they implement a new
17751  # versioning mechanism, adjust this.
17752  if test -x /usr/bin/objformat; then
17753    objformat=`/usr/bin/objformat`
17754  else
17755    case $host_os in
17756    freebsd[123]*) objformat=aout ;;
17757    *) objformat=elf ;;
17758    esac
17759  fi
17760  version_type=freebsd-$objformat
17761  case $version_type in
17762    freebsd-elf*)
17763      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17764      need_version=no
17765      need_lib_prefix=no
17766      ;;
17767    freebsd-*)
17768      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17769      need_version=yes
17770      ;;
17771  esac
17772  shlibpath_var=LD_LIBRARY_PATH
17773  case $host_os in
17774  freebsd2*)
17775    shlibpath_overrides_runpath=yes
17776    ;;
17777  freebsd3.[01]* | freebsdelf3.[01]*)
17778    shlibpath_overrides_runpath=yes
17779    hardcode_into_libs=yes
17780    ;;
17781  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17782  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17783    shlibpath_overrides_runpath=no
17784    hardcode_into_libs=yes
17785    ;;
17786  freebsd*) # from 4.6 on
17787    shlibpath_overrides_runpath=yes
17788    hardcode_into_libs=yes
17789    ;;
17790  esac
17791  ;;
17792
17793gnu*)
17794  version_type=linux
17795  need_lib_prefix=no
17796  need_version=no
17797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17798  soname_spec='${libname}${release}${shared_ext}$major'
17799  shlibpath_var=LD_LIBRARY_PATH
17800  hardcode_into_libs=yes
17801  ;;
17802
17803hpux9* | hpux10* | hpux11*)
17804  # Give a soname corresponding to the major version so that dld.sl refuses to
17805  # link against other versions.
17806  version_type=sunos
17807  need_lib_prefix=no
17808  need_version=no
17809  case $host_cpu in
17810  ia64*)
17811    shrext_cmds='.so'
17812    hardcode_into_libs=yes
17813    dynamic_linker="$host_os dld.so"
17814    shlibpath_var=LD_LIBRARY_PATH
17815    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17816    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817    soname_spec='${libname}${release}${shared_ext}$major'
17818    if test "X$HPUX_IA64_MODE" = X32; then
17819      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17820    else
17821      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17822    fi
17823    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17824    ;;
17825   hppa*64*)
17826     shrext_cmds='.sl'
17827     hardcode_into_libs=yes
17828     dynamic_linker="$host_os dld.sl"
17829     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17830     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832     soname_spec='${libname}${release}${shared_ext}$major'
17833     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17834     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17835     ;;
17836   *)
17837    shrext_cmds='.sl'
17838    dynamic_linker="$host_os dld.sl"
17839    shlibpath_var=SHLIB_PATH
17840    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17841    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17842    soname_spec='${libname}${release}${shared_ext}$major'
17843    ;;
17844  esac
17845  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17846  postinstall_cmds='chmod 555 $lib'
17847  ;;
17848
17849interix3*)
17850  version_type=linux
17851  need_lib_prefix=no
17852  need_version=no
17853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17854  soname_spec='${libname}${release}${shared_ext}$major'
17855  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17856  shlibpath_var=LD_LIBRARY_PATH
17857  shlibpath_overrides_runpath=no
17858  hardcode_into_libs=yes
17859  ;;
17860
17861irix5* | irix6* | nonstopux*)
17862  case $host_os in
17863    nonstopux*) version_type=nonstopux ;;
17864    *)
17865	if test "$lt_cv_prog_gnu_ld" = yes; then
17866		version_type=linux
17867	else
17868		version_type=irix
17869	fi ;;
17870  esac
17871  need_lib_prefix=no
17872  need_version=no
17873  soname_spec='${libname}${release}${shared_ext}$major'
17874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17875  case $host_os in
17876  irix5* | nonstopux*)
17877    libsuff= shlibsuff=
17878    ;;
17879  *)
17880    case $LD in # libtool.m4 will add one of these switches to LD
17881    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17882      libsuff= shlibsuff= libmagic=32-bit;;
17883    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17884      libsuff=32 shlibsuff=N32 libmagic=N32;;
17885    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17886      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17887    *) libsuff= shlibsuff= libmagic=never-match;;
17888    esac
17889    ;;
17890  esac
17891  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17892  shlibpath_overrides_runpath=no
17893  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17894  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17895  hardcode_into_libs=yes
17896  ;;
17897
17898# No shared lib support for Linux oldld, aout, or coff.
17899linux*oldld* | linux*aout* | linux*coff*)
17900  dynamic_linker=no
17901  ;;
17902
17903# This must be Linux ELF.
17904linux*)
17905  version_type=linux
17906  need_lib_prefix=no
17907  need_version=no
17908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909  soname_spec='${libname}${release}${shared_ext}$major'
17910  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17911  shlibpath_var=LD_LIBRARY_PATH
17912  shlibpath_overrides_runpath=no
17913  # This implies no fast_install, which is unacceptable.
17914  # Some rework will be needed to allow for fast_install
17915  # before this can be enabled.
17916  hardcode_into_libs=yes
17917
17918  # Append ld.so.conf contents to the search path
17919  if test -f /etc/ld.so.conf; then
17920    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' ' '`
17921    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17922  fi
17923
17924  # We used to test for /lib/ld.so.1 and disable shared libraries on
17925  # powerpc, because MkLinux only supported shared libraries with the
17926  # GNU dynamic linker.  Since this was broken with cross compilers,
17927  # most powerpc-linux boxes support dynamic linking these days and
17928  # people can always --disable-shared, the test was removed, and we
17929  # assume the GNU/Linux dynamic linker is in use.
17930  dynamic_linker='GNU/Linux ld.so'
17931  ;;
17932
17933knetbsd*-gnu)
17934  version_type=linux
17935  need_lib_prefix=no
17936  need_version=no
17937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17938  soname_spec='${libname}${release}${shared_ext}$major'
17939  shlibpath_var=LD_LIBRARY_PATH
17940  shlibpath_overrides_runpath=no
17941  hardcode_into_libs=yes
17942  dynamic_linker='GNU ld.so'
17943  ;;
17944
17945netbsd*)
17946  version_type=sunos
17947  need_lib_prefix=no
17948  need_version=no
17949  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17950    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17951    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17952    dynamic_linker='NetBSD (a.out) ld.so'
17953  else
17954    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17955    soname_spec='${libname}${release}${shared_ext}$major'
17956    dynamic_linker='NetBSD ld.elf_so'
17957  fi
17958  shlibpath_var=LD_LIBRARY_PATH
17959  shlibpath_overrides_runpath=yes
17960  hardcode_into_libs=yes
17961  ;;
17962
17963newsos6)
17964  version_type=linux
17965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966  shlibpath_var=LD_LIBRARY_PATH
17967  shlibpath_overrides_runpath=yes
17968  ;;
17969
17970nto-qnx*)
17971  version_type=linux
17972  need_lib_prefix=no
17973  need_version=no
17974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975  soname_spec='${libname}${release}${shared_ext}$major'
17976  shlibpath_var=LD_LIBRARY_PATH
17977  shlibpath_overrides_runpath=yes
17978  ;;
17979
17980openbsd*)
17981  version_type=sunos
17982  sys_lib_dlsearch_path_spec="/usr/lib"
17983  need_lib_prefix=no
17984  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17985  case $host_os in
17986    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17987    *)                         need_version=no  ;;
17988  esac
17989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17990  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17991  shlibpath_var=LD_LIBRARY_PATH
17992  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17993    case $host_os in
17994      openbsd2.[89] | openbsd2.[89].*)
17995	shlibpath_overrides_runpath=no
17996	;;
17997      *)
17998	shlibpath_overrides_runpath=yes
17999	;;
18000      esac
18001  else
18002    shlibpath_overrides_runpath=yes
18003  fi
18004  ;;
18005
18006os2*)
18007  libname_spec='$name'
18008  shrext_cmds=".dll"
18009  need_lib_prefix=no
18010  library_names_spec='$libname${shared_ext} $libname.a'
18011  dynamic_linker='OS/2 ld.exe'
18012  shlibpath_var=LIBPATH
18013  ;;
18014
18015osf3* | osf4* | osf5*)
18016  version_type=osf
18017  need_lib_prefix=no
18018  need_version=no
18019  soname_spec='${libname}${release}${shared_ext}$major'
18020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021  shlibpath_var=LD_LIBRARY_PATH
18022  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18023  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18024  ;;
18025
18026solaris*)
18027  version_type=linux
18028  need_lib_prefix=no
18029  need_version=no
18030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031  soname_spec='${libname}${release}${shared_ext}$major'
18032  shlibpath_var=LD_LIBRARY_PATH
18033  shlibpath_overrides_runpath=yes
18034  hardcode_into_libs=yes
18035  # ldd complains unless libraries are executable
18036  postinstall_cmds='chmod +x $lib'
18037  ;;
18038
18039sunos4*)
18040  version_type=sunos
18041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18042  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18043  shlibpath_var=LD_LIBRARY_PATH
18044  shlibpath_overrides_runpath=yes
18045  if test "$with_gnu_ld" = yes; then
18046    need_lib_prefix=no
18047  fi
18048  need_version=yes
18049  ;;
18050
18051sysv4 | sysv4.3*)
18052  version_type=linux
18053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054  soname_spec='${libname}${release}${shared_ext}$major'
18055  shlibpath_var=LD_LIBRARY_PATH
18056  case $host_vendor in
18057    sni)
18058      shlibpath_overrides_runpath=no
18059      need_lib_prefix=no
18060      export_dynamic_flag_spec='${wl}-Blargedynsym'
18061      runpath_var=LD_RUN_PATH
18062      ;;
18063    siemens)
18064      need_lib_prefix=no
18065      ;;
18066    motorola)
18067      need_lib_prefix=no
18068      need_version=no
18069      shlibpath_overrides_runpath=no
18070      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18071      ;;
18072  esac
18073  ;;
18074
18075sysv4*MP*)
18076  if test -d /usr/nec ;then
18077    version_type=linux
18078    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18079    soname_spec='$libname${shared_ext}.$major'
18080    shlibpath_var=LD_LIBRARY_PATH
18081  fi
18082  ;;
18083
18084sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18085  version_type=freebsd-elf
18086  need_lib_prefix=no
18087  need_version=no
18088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18089  soname_spec='${libname}${release}${shared_ext}$major'
18090  shlibpath_var=LD_LIBRARY_PATH
18091  hardcode_into_libs=yes
18092  if test "$with_gnu_ld" = yes; then
18093    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18094    shlibpath_overrides_runpath=no
18095  else
18096    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18097    shlibpath_overrides_runpath=yes
18098    case $host_os in
18099      sco3.2v5*)
18100        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18101	;;
18102    esac
18103  fi
18104  sys_lib_dlsearch_path_spec='/usr/lib'
18105  ;;
18106
18107uts4*)
18108  version_type=linux
18109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110  soname_spec='${libname}${release}${shared_ext}$major'
18111  shlibpath_var=LD_LIBRARY_PATH
18112  ;;
18113
18114*)
18115  dynamic_linker=no
18116  ;;
18117esac
18118echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18119echo "${ECHO_T}$dynamic_linker" >&6
18120test "$dynamic_linker" = no && can_build_shared=no
18121
18122variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18123if test "$GCC" = yes; then
18124  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18125fi
18126
18127echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18128echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18129hardcode_action_F77=
18130if test -n "$hardcode_libdir_flag_spec_F77" || \
18131   test -n "$runpath_var_F77" || \
18132   test "X$hardcode_automatic_F77" = "Xyes" ; then
18133
18134  # We can hardcode non-existant directories.
18135  if test "$hardcode_direct_F77" != no &&
18136     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18137     # have to relink, otherwise we might link with an installed library
18138     # when we should be linking with a yet-to-be-installed one
18139     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18140     test "$hardcode_minus_L_F77" != no; then
18141    # Linking always hardcodes the temporary library directory.
18142    hardcode_action_F77=relink
18143  else
18144    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18145    hardcode_action_F77=immediate
18146  fi
18147else
18148  # We cannot hardcode anything, or else we can only hardcode existing
18149  # directories.
18150  hardcode_action_F77=unsupported
18151fi
18152echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18153echo "${ECHO_T}$hardcode_action_F77" >&6
18154
18155if test "$hardcode_action_F77" = relink; then
18156  # Fast installation is not supported
18157  enable_fast_install=no
18158elif test "$shlibpath_overrides_runpath" = yes ||
18159     test "$enable_shared" = no; then
18160  # Fast installation is not necessary
18161  enable_fast_install=needless
18162fi
18163
18164
18165# The else clause should only fire when bootstrapping the
18166# libtool distribution, otherwise you forgot to ship ltmain.sh
18167# with your package, and you will get complaints that there are
18168# no rules to generate ltmain.sh.
18169if test -f "$ltmain"; then
18170  # See if we are running on zsh, and set the options which allow our commands through
18171  # without removal of \ escapes.
18172  if test -n "${ZSH_VERSION+set}" ; then
18173    setopt NO_GLOB_SUBST
18174  fi
18175  # Now quote all the things that may contain metacharacters while being
18176  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18177  # variables and quote the copies for generation of the libtool script.
18178  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18179    SED SHELL STRIP \
18180    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18181    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18182    deplibs_check_method reload_flag reload_cmds need_locks \
18183    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18184    lt_cv_sys_global_symbol_to_c_name_address \
18185    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18186    old_postinstall_cmds old_postuninstall_cmds \
18187    compiler_F77 \
18188    CC_F77 \
18189    LD_F77 \
18190    lt_prog_compiler_wl_F77 \
18191    lt_prog_compiler_pic_F77 \
18192    lt_prog_compiler_static_F77 \
18193    lt_prog_compiler_no_builtin_flag_F77 \
18194    export_dynamic_flag_spec_F77 \
18195    thread_safe_flag_spec_F77 \
18196    whole_archive_flag_spec_F77 \
18197    enable_shared_with_static_runtimes_F77 \
18198    old_archive_cmds_F77 \
18199    old_archive_from_new_cmds_F77 \
18200    predep_objects_F77 \
18201    postdep_objects_F77 \
18202    predeps_F77 \
18203    postdeps_F77 \
18204    compiler_lib_search_path_F77 \
18205    archive_cmds_F77 \
18206    archive_expsym_cmds_F77 \
18207    postinstall_cmds_F77 \
18208    postuninstall_cmds_F77 \
18209    old_archive_from_expsyms_cmds_F77 \
18210    allow_undefined_flag_F77 \
18211    no_undefined_flag_F77 \
18212    export_symbols_cmds_F77 \
18213    hardcode_libdir_flag_spec_F77 \
18214    hardcode_libdir_flag_spec_ld_F77 \
18215    hardcode_libdir_separator_F77 \
18216    hardcode_automatic_F77 \
18217    module_cmds_F77 \
18218    module_expsym_cmds_F77 \
18219    lt_cv_prog_compiler_c_o_F77 \
18220    exclude_expsyms_F77 \
18221    include_expsyms_F77; do
18222
18223    case $var in
18224    old_archive_cmds_F77 | \
18225    old_archive_from_new_cmds_F77 | \
18226    archive_cmds_F77 | \
18227    archive_expsym_cmds_F77 | \
18228    module_cmds_F77 | \
18229    module_expsym_cmds_F77 | \
18230    old_archive_from_expsyms_cmds_F77 | \
18231    export_symbols_cmds_F77 | \
18232    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18233    postinstall_cmds | postuninstall_cmds | \
18234    old_postinstall_cmds | old_postuninstall_cmds | \
18235    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18236      # Double-quote double-evaled strings.
18237      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18238      ;;
18239    *)
18240      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18241      ;;
18242    esac
18243  done
18244
18245  case $lt_echo in
18246  *'\$0 --fallback-echo"')
18247    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18248    ;;
18249  esac
18250
18251cfgfile="$ofile"
18252
18253  cat <<__EOF__ >> "$cfgfile"
18254# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18255
18256# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18257
18258# Shell to use when invoking shell scripts.
18259SHELL=$lt_SHELL
18260
18261# Whether or not to build shared libraries.
18262build_libtool_libs=$enable_shared
18263
18264# Whether or not to build static libraries.
18265build_old_libs=$enable_static
18266
18267# Whether or not to add -lc for building shared libraries.
18268build_libtool_need_lc=$archive_cmds_need_lc_F77
18269
18270# Whether or not to disallow shared libs when runtime libs are static
18271allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18272
18273# Whether or not to optimize for fast installation.
18274fast_install=$enable_fast_install
18275
18276# The host system.
18277host_alias=$host_alias
18278host=$host
18279host_os=$host_os
18280
18281# The build system.
18282build_alias=$build_alias
18283build=$build
18284build_os=$build_os
18285
18286# An echo program that does not interpret backslashes.
18287echo=$lt_echo
18288
18289# The archiver.
18290AR=$lt_AR
18291AR_FLAGS=$lt_AR_FLAGS
18292
18293# A C compiler.
18294LTCC=$lt_LTCC
18295
18296# LTCC compiler flags.
18297LTCFLAGS=$lt_LTCFLAGS
18298
18299# A language-specific compiler.
18300CC=$lt_compiler_F77
18301
18302# Is the compiler the GNU C compiler?
18303with_gcc=$GCC_F77
18304
18305# An ERE matcher.
18306EGREP=$lt_EGREP
18307
18308# The linker used to build libraries.
18309LD=$lt_LD_F77
18310
18311# Whether we need hard or soft links.
18312LN_S=$lt_LN_S
18313
18314# A BSD-compatible nm program.
18315NM=$lt_NM
18316
18317# A symbol stripping program
18318STRIP=$lt_STRIP
18319
18320# Used to examine libraries when file_magic_cmd begins "file"
18321MAGIC_CMD=$MAGIC_CMD
18322
18323# Used on cygwin: DLL creation program.
18324DLLTOOL="$DLLTOOL"
18325
18326# Used on cygwin: object dumper.
18327OBJDUMP="$OBJDUMP"
18328
18329# Used on cygwin: assembler.
18330AS="$AS"
18331
18332# The name of the directory that contains temporary libtool files.
18333objdir=$objdir
18334
18335# How to create reloadable object files.
18336reload_flag=$lt_reload_flag
18337reload_cmds=$lt_reload_cmds
18338
18339# How to pass a linker flag through the compiler.
18340wl=$lt_lt_prog_compiler_wl_F77
18341
18342# Object file suffix (normally "o").
18343objext="$ac_objext"
18344
18345# Old archive suffix (normally "a").
18346libext="$libext"
18347
18348# Shared library suffix (normally ".so").
18349shrext_cmds='$shrext_cmds'
18350
18351# Executable file suffix (normally "").
18352exeext="$exeext"
18353
18354# Additional compiler flags for building library objects.
18355pic_flag=$lt_lt_prog_compiler_pic_F77
18356pic_mode=$pic_mode
18357
18358# What is the maximum length of a command?
18359max_cmd_len=$lt_cv_sys_max_cmd_len
18360
18361# Does compiler simultaneously support -c and -o options?
18362compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18363
18364# Must we lock files when doing compilation?
18365need_locks=$lt_need_locks
18366
18367# Do we need the lib prefix for modules?
18368need_lib_prefix=$need_lib_prefix
18369
18370# Do we need a version for libraries?
18371need_version=$need_version
18372
18373# Whether dlopen is supported.
18374dlopen_support=$enable_dlopen
18375
18376# Whether dlopen of programs is supported.
18377dlopen_self=$enable_dlopen_self
18378
18379# Whether dlopen of statically linked programs is supported.
18380dlopen_self_static=$enable_dlopen_self_static
18381
18382# Compiler flag to prevent dynamic linking.
18383link_static_flag=$lt_lt_prog_compiler_static_F77
18384
18385# Compiler flag to turn off builtin functions.
18386no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18387
18388# Compiler flag to allow reflexive dlopens.
18389export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18390
18391# Compiler flag to generate shared objects directly from archives.
18392whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18393
18394# Compiler flag to generate thread-safe objects.
18395thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18396
18397# Library versioning type.
18398version_type=$version_type
18399
18400# Format of library name prefix.
18401libname_spec=$lt_libname_spec
18402
18403# List of archive names.  First name is the real one, the rest are links.
18404# The last name is the one that the linker finds with -lNAME.
18405library_names_spec=$lt_library_names_spec
18406
18407# The coded name of the library, if different from the real name.
18408soname_spec=$lt_soname_spec
18409
18410# Commands used to build and install an old-style archive.
18411RANLIB=$lt_RANLIB
18412old_archive_cmds=$lt_old_archive_cmds_F77
18413old_postinstall_cmds=$lt_old_postinstall_cmds
18414old_postuninstall_cmds=$lt_old_postuninstall_cmds
18415
18416# Create an old-style archive from a shared archive.
18417old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18418
18419# Create a temporary old-style archive to link instead of a shared archive.
18420old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18421
18422# Commands used to build and install a shared archive.
18423archive_cmds=$lt_archive_cmds_F77
18424archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18425postinstall_cmds=$lt_postinstall_cmds
18426postuninstall_cmds=$lt_postuninstall_cmds
18427
18428# Commands used to build a loadable module (assumed same as above if empty)
18429module_cmds=$lt_module_cmds_F77
18430module_expsym_cmds=$lt_module_expsym_cmds_F77
18431
18432# Commands to strip libraries.
18433old_striplib=$lt_old_striplib
18434striplib=$lt_striplib
18435
18436# Dependencies to place before the objects being linked to create a
18437# shared library.
18438predep_objects=$lt_predep_objects_F77
18439
18440# Dependencies to place after the objects being linked to create a
18441# shared library.
18442postdep_objects=$lt_postdep_objects_F77
18443
18444# Dependencies to place before the objects being linked to create a
18445# shared library.
18446predeps=$lt_predeps_F77
18447
18448# Dependencies to place after the objects being linked to create a
18449# shared library.
18450postdeps=$lt_postdeps_F77
18451
18452# The library search path used internally by the compiler when linking
18453# a shared library.
18454compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18455
18456# Method to check whether dependent libraries are shared objects.
18457deplibs_check_method=$lt_deplibs_check_method
18458
18459# Command to use when deplibs_check_method == file_magic.
18460file_magic_cmd=$lt_file_magic_cmd
18461
18462# Flag that allows shared libraries with undefined symbols to be built.
18463allow_undefined_flag=$lt_allow_undefined_flag_F77
18464
18465# Flag that forces no undefined symbols.
18466no_undefined_flag=$lt_no_undefined_flag_F77
18467
18468# Commands used to finish a libtool library installation in a directory.
18469finish_cmds=$lt_finish_cmds
18470
18471# Same as above, but a single script fragment to be evaled but not shown.
18472finish_eval=$lt_finish_eval
18473
18474# Take the output of nm and produce a listing of raw symbols and C names.
18475global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476
18477# Transform the output of nm in a proper C declaration
18478global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479
18480# Transform the output of nm in a C name address pair
18481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482
18483# This is the shared library runtime path variable.
18484runpath_var=$runpath_var
18485
18486# This is the shared library path variable.
18487shlibpath_var=$shlibpath_var
18488
18489# Is shlibpath searched before the hard-coded library search path?
18490shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18491
18492# How to hardcode a shared library path into an executable.
18493hardcode_action=$hardcode_action_F77
18494
18495# Whether we should hardcode library paths into libraries.
18496hardcode_into_libs=$hardcode_into_libs
18497
18498# Flag to hardcode \$libdir into a binary during linking.
18499# This must work even if \$libdir does not exist.
18500hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18501
18502# If ld is used when linking, flag to hardcode \$libdir into
18503# a binary during linking. This must work even if \$libdir does
18504# not exist.
18505hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18506
18507# Whether we need a single -rpath flag with a separated argument.
18508hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18509
18510# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18511# resulting binary.
18512hardcode_direct=$hardcode_direct_F77
18513
18514# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18515# resulting binary.
18516hardcode_minus_L=$hardcode_minus_L_F77
18517
18518# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18519# the resulting binary.
18520hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18521
18522# Set to yes if building a shared library automatically hardcodes DIR into the library
18523# and all subsequent libraries and executables linked against it.
18524hardcode_automatic=$hardcode_automatic_F77
18525
18526# Variables whose values should be saved in libtool wrapper scripts and
18527# restored at relink time.
18528variables_saved_for_relink="$variables_saved_for_relink"
18529
18530# Whether libtool must link a program against all its dependency libraries.
18531link_all_deplibs=$link_all_deplibs_F77
18532
18533# Compile-time system search path for libraries
18534sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18535
18536# Run-time system search path for libraries
18537sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18538
18539# Fix the shell variable \$srcfile for the compiler.
18540fix_srcfile_path="$fix_srcfile_path_F77"
18541
18542# Set to yes if exported symbols are required.
18543always_export_symbols=$always_export_symbols_F77
18544
18545# The commands to list exported symbols.
18546export_symbols_cmds=$lt_export_symbols_cmds_F77
18547
18548# The commands to extract the exported symbol list from a shared archive.
18549extract_expsyms_cmds=$lt_extract_expsyms_cmds
18550
18551# Symbols that should not be listed in the preloaded symbols.
18552exclude_expsyms=$lt_exclude_expsyms_F77
18553
18554# Symbols that must always be exported.
18555include_expsyms=$lt_include_expsyms_F77
18556
18557# ### END LIBTOOL TAG CONFIG: $tagname
18558
18559__EOF__
18560
18561
18562else
18563  # If there is no Makefile yet, we rely on a make rule to execute
18564  # `config.status --recheck' to rerun these tests and create the
18565  # libtool script then.
18566  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18567  if test -f "$ltmain_in"; then
18568    test -f Makefile && make "$ltmain"
18569  fi
18570fi
18571
18572
18573ac_ext=c
18574ac_cpp='$CPP $CPPFLAGS'
18575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577ac_compiler_gnu=$ac_cv_c_compiler_gnu
18578
18579CC="$lt_save_CC"
18580
18581	else
18582	  tagname=""
18583	fi
18584	;;
18585
18586      GCJ)
18587	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18588
18589
18590
18591# Source file extension for Java test sources.
18592ac_ext=java
18593
18594# Object file extension for compiled Java test sources.
18595objext=o
18596objext_GCJ=$objext
18597
18598# Code to be used in simple compile tests
18599lt_simple_compile_test_code="class foo {}\n"
18600
18601# Code to be used in simple link tests
18602lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18603
18604# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18605
18606# If no C compiler was specified, use CC.
18607LTCC=${LTCC-"$CC"}
18608
18609# If no C compiler flags were specified, use CFLAGS.
18610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18611
18612# Allow CC to be a program name with arguments.
18613compiler=$CC
18614
18615
18616# save warnings/boilerplate of simple test code
18617ac_outfile=conftest.$ac_objext
18618printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18619eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18620_lt_compiler_boilerplate=`cat conftest.err`
18621$rm conftest*
18622
18623ac_outfile=conftest.$ac_objext
18624printf "$lt_simple_link_test_code" >conftest.$ac_ext
18625eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18626_lt_linker_boilerplate=`cat conftest.err`
18627$rm conftest*
18628
18629
18630# Allow CC to be a program name with arguments.
18631lt_save_CC="$CC"
18632CC=${GCJ-"gcj"}
18633compiler=$CC
18634compiler_GCJ=$CC
18635for cc_temp in $compiler""; do
18636  case $cc_temp in
18637    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18638    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18639    \-*) ;;
18640    *) break;;
18641  esac
18642done
18643cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18644
18645
18646# GCJ did not exist at the time GCC didn't implicitly link libc in.
18647archive_cmds_need_lc_GCJ=no
18648
18649old_archive_cmds_GCJ=$old_archive_cmds
18650
18651## CAVEAT EMPTOR:
18652## There is no encapsulation within the following macros, do not change
18653## the running order or otherwise move them around unless you know exactly
18654## what you are doing...
18655
18656lt_prog_compiler_no_builtin_flag_GCJ=
18657
18658if test "$GCC" = yes; then
18659  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18660
18661
18662echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18663echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18664if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18665  echo $ECHO_N "(cached) $ECHO_C" >&6
18666else
18667  lt_cv_prog_compiler_rtti_exceptions=no
18668  ac_outfile=conftest.$ac_objext
18669   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18670   lt_compiler_flag="-fno-rtti -fno-exceptions"
18671   # Insert the option either (1) after the last *FLAGS variable, or
18672   # (2) before a word containing "conftest.", or (3) at the end.
18673   # Note that $ac_compile itself does not contain backslashes and begins
18674   # with a dollar sign (not a hyphen), so the echo should work correctly.
18675   # The option is referenced via a variable to avoid confusing sed.
18676   lt_compile=`echo "$ac_compile" | $SED \
18677   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18678   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18679   -e 's:$: $lt_compiler_flag:'`
18680   (eval echo "\"\$as_me:18680: $lt_compile\"" >&5)
18681   (eval "$lt_compile" 2>conftest.err)
18682   ac_status=$?
18683   cat conftest.err >&5
18684   echo "$as_me:18684: \$? = $ac_status" >&5
18685   if (exit $ac_status) && test -s "$ac_outfile"; then
18686     # The compiler can only warn and ignore the option if not recognized
18687     # So say no if there are warnings other than the usual output.
18688     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18689     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18690     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18691       lt_cv_prog_compiler_rtti_exceptions=yes
18692     fi
18693   fi
18694   $rm conftest*
18695
18696fi
18697echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18698echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18699
18700if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18701    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18702else
18703    :
18704fi
18705
18706fi
18707
18708lt_prog_compiler_wl_GCJ=
18709lt_prog_compiler_pic_GCJ=
18710lt_prog_compiler_static_GCJ=
18711
18712echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18713echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18714
18715  if test "$GCC" = yes; then
18716    lt_prog_compiler_wl_GCJ='-Wl,'
18717    lt_prog_compiler_static_GCJ='-static'
18718
18719    case $host_os in
18720      aix*)
18721      # All AIX code is PIC.
18722      if test "$host_cpu" = ia64; then
18723	# AIX 5 now supports IA64 processor
18724	lt_prog_compiler_static_GCJ='-Bstatic'
18725      fi
18726      ;;
18727
18728    amigaos*)
18729      # FIXME: we need at least 68020 code to build shared libraries, but
18730      # adding the `-m68020' flag to GCC prevents building anything better,
18731      # like `-m68040'.
18732      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18733      ;;
18734
18735    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18736      # PIC is the default for these OSes.
18737      ;;
18738
18739    mingw* | pw32* | os2*)
18740      # This hack is so that the source file can tell whether it is being
18741      # built for inclusion in a dll (and should export symbols for example).
18742      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18743      ;;
18744
18745    darwin* | rhapsody*)
18746      # PIC is the default on this platform
18747      # Common symbols not allowed in MH_DYLIB files
18748      lt_prog_compiler_pic_GCJ='-fno-common'
18749      ;;
18750
18751    interix3*)
18752      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18753      # Instead, we relocate shared libraries at runtime.
18754      ;;
18755
18756    msdosdjgpp*)
18757      # Just because we use GCC doesn't mean we suddenly get shared libraries
18758      # on systems that don't support them.
18759      lt_prog_compiler_can_build_shared_GCJ=no
18760      enable_shared=no
18761      ;;
18762
18763    sysv4*MP*)
18764      if test -d /usr/nec; then
18765	lt_prog_compiler_pic_GCJ=-Kconform_pic
18766      fi
18767      ;;
18768
18769    hpux*)
18770      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18771      # not for PA HP-UX.
18772      case $host_cpu in
18773      hppa*64*|ia64*)
18774	# +Z the default
18775	;;
18776      *)
18777	lt_prog_compiler_pic_GCJ='-fPIC'
18778	;;
18779      esac
18780      ;;
18781
18782    *)
18783      lt_prog_compiler_pic_GCJ='-fPIC'
18784      ;;
18785    esac
18786  else
18787    # PORTME Check for flag to pass linker flags through the system compiler.
18788    case $host_os in
18789    aix*)
18790      lt_prog_compiler_wl_GCJ='-Wl,'
18791      if test "$host_cpu" = ia64; then
18792	# AIX 5 now supports IA64 processor
18793	lt_prog_compiler_static_GCJ='-Bstatic'
18794      else
18795	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18796      fi
18797      ;;
18798      darwin*)
18799        # PIC is the default on this platform
18800        # Common symbols not allowed in MH_DYLIB files
18801       case $cc_basename in
18802         xlc*)
18803         lt_prog_compiler_pic_GCJ='-qnocommon'
18804         lt_prog_compiler_wl_GCJ='-Wl,'
18805         ;;
18806       esac
18807       ;;
18808
18809    mingw* | pw32* | os2*)
18810      # This hack is so that the source file can tell whether it is being
18811      # built for inclusion in a dll (and should export symbols for example).
18812      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18813      ;;
18814
18815    hpux9* | hpux10* | hpux11*)
18816      lt_prog_compiler_wl_GCJ='-Wl,'
18817      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18818      # not for PA HP-UX.
18819      case $host_cpu in
18820      hppa*64*|ia64*)
18821	# +Z the default
18822	;;
18823      *)
18824	lt_prog_compiler_pic_GCJ='+Z'
18825	;;
18826      esac
18827      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18828      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18829      ;;
18830
18831    irix5* | irix6* | nonstopux*)
18832      lt_prog_compiler_wl_GCJ='-Wl,'
18833      # PIC (with -KPIC) is the default.
18834      lt_prog_compiler_static_GCJ='-non_shared'
18835      ;;
18836
18837    newsos6)
18838      lt_prog_compiler_pic_GCJ='-KPIC'
18839      lt_prog_compiler_static_GCJ='-Bstatic'
18840      ;;
18841
18842    linux*)
18843      case $cc_basename in
18844      icc* | ecc*)
18845	lt_prog_compiler_wl_GCJ='-Wl,'
18846	lt_prog_compiler_pic_GCJ='-KPIC'
18847	lt_prog_compiler_static_GCJ='-static'
18848        ;;
18849      pgcc* | pgf77* | pgf90* | pgf95*)
18850        # Portland Group compilers (*not* the Pentium gcc compiler,
18851	# which looks to be a dead project)
18852	lt_prog_compiler_wl_GCJ='-Wl,'
18853	lt_prog_compiler_pic_GCJ='-fpic'
18854	lt_prog_compiler_static_GCJ='-Bstatic'
18855        ;;
18856      ccc*)
18857        lt_prog_compiler_wl_GCJ='-Wl,'
18858        # All Alpha code is PIC.
18859        lt_prog_compiler_static_GCJ='-non_shared'
18860        ;;
18861      esac
18862      ;;
18863
18864    osf3* | osf4* | osf5*)
18865      lt_prog_compiler_wl_GCJ='-Wl,'
18866      # All OSF/1 code is PIC.
18867      lt_prog_compiler_static_GCJ='-non_shared'
18868      ;;
18869
18870    solaris*)
18871      lt_prog_compiler_pic_GCJ='-KPIC'
18872      lt_prog_compiler_static_GCJ='-Bstatic'
18873      case $cc_basename in
18874      f77* | f90* | f95*)
18875	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18876      *)
18877	lt_prog_compiler_wl_GCJ='-Wl,';;
18878      esac
18879      ;;
18880
18881    sunos4*)
18882      lt_prog_compiler_wl_GCJ='-Qoption ld '
18883      lt_prog_compiler_pic_GCJ='-PIC'
18884      lt_prog_compiler_static_GCJ='-Bstatic'
18885      ;;
18886
18887    sysv4 | sysv4.2uw2* | sysv4.3*)
18888      lt_prog_compiler_wl_GCJ='-Wl,'
18889      lt_prog_compiler_pic_GCJ='-KPIC'
18890      lt_prog_compiler_static_GCJ='-Bstatic'
18891      ;;
18892
18893    sysv4*MP*)
18894      if test -d /usr/nec ;then
18895	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18896	lt_prog_compiler_static_GCJ='-Bstatic'
18897      fi
18898      ;;
18899
18900    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18901      lt_prog_compiler_wl_GCJ='-Wl,'
18902      lt_prog_compiler_pic_GCJ='-KPIC'
18903      lt_prog_compiler_static_GCJ='-Bstatic'
18904      ;;
18905
18906    unicos*)
18907      lt_prog_compiler_wl_GCJ='-Wl,'
18908      lt_prog_compiler_can_build_shared_GCJ=no
18909      ;;
18910
18911    uts4*)
18912      lt_prog_compiler_pic_GCJ='-pic'
18913      lt_prog_compiler_static_GCJ='-Bstatic'
18914      ;;
18915
18916    *)
18917      lt_prog_compiler_can_build_shared_GCJ=no
18918      ;;
18919    esac
18920  fi
18921
18922echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18923echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18924
18925#
18926# Check to make sure the PIC flag actually works.
18927#
18928if test -n "$lt_prog_compiler_pic_GCJ"; then
18929
18930echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18931echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18932if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18933  echo $ECHO_N "(cached) $ECHO_C" >&6
18934else
18935  lt_prog_compiler_pic_works_GCJ=no
18936  ac_outfile=conftest.$ac_objext
18937   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18938   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18939   # Insert the option either (1) after the last *FLAGS variable, or
18940   # (2) before a word containing "conftest.", or (3) at the end.
18941   # Note that $ac_compile itself does not contain backslashes and begins
18942   # with a dollar sign (not a hyphen), so the echo should work correctly.
18943   # The option is referenced via a variable to avoid confusing sed.
18944   lt_compile=`echo "$ac_compile" | $SED \
18945   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18946   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18947   -e 's:$: $lt_compiler_flag:'`
18948   (eval echo "\"\$as_me:18948: $lt_compile\"" >&5)
18949   (eval "$lt_compile" 2>conftest.err)
18950   ac_status=$?
18951   cat conftest.err >&5
18952   echo "$as_me:18952: \$? = $ac_status" >&5
18953   if (exit $ac_status) && test -s "$ac_outfile"; then
18954     # The compiler can only warn and ignore the option if not recognized
18955     # So say no if there are warnings other than the usual output.
18956     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18957     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18958     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18959       lt_prog_compiler_pic_works_GCJ=yes
18960     fi
18961   fi
18962   $rm conftest*
18963
18964fi
18965echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18966echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18967
18968if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18969    case $lt_prog_compiler_pic_GCJ in
18970     "" | " "*) ;;
18971     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18972     esac
18973else
18974    lt_prog_compiler_pic_GCJ=
18975     lt_prog_compiler_can_build_shared_GCJ=no
18976fi
18977
18978fi
18979case $host_os in
18980  # For platforms which do not support PIC, -DPIC is meaningless:
18981  *djgpp*)
18982    lt_prog_compiler_pic_GCJ=
18983    ;;
18984  *)
18985    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18986    ;;
18987esac
18988
18989#
18990# Check to make sure the static flag actually works.
18991#
18992wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18993echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18994echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18995if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18996  echo $ECHO_N "(cached) $ECHO_C" >&6
18997else
18998  lt_prog_compiler_static_works_GCJ=no
18999   save_LDFLAGS="$LDFLAGS"
19000   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19001   printf "$lt_simple_link_test_code" > conftest.$ac_ext
19002   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19003     # The linker can only warn and ignore the option if not recognized
19004     # So say no if there are warnings
19005     if test -s conftest.err; then
19006       # Append any errors to the config.log.
19007       cat conftest.err 1>&5
19008       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19009       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19010       if diff conftest.exp conftest.er2 >/dev/null; then
19011         lt_prog_compiler_static_works_GCJ=yes
19012       fi
19013     else
19014       lt_prog_compiler_static_works_GCJ=yes
19015     fi
19016   fi
19017   $rm conftest*
19018   LDFLAGS="$save_LDFLAGS"
19019
19020fi
19021echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
19022echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
19023
19024if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
19025    :
19026else
19027    lt_prog_compiler_static_GCJ=
19028fi
19029
19030
19031echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19032echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19033if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19034  echo $ECHO_N "(cached) $ECHO_C" >&6
19035else
19036  lt_cv_prog_compiler_c_o_GCJ=no
19037   $rm -r conftest 2>/dev/null
19038   mkdir conftest
19039   cd conftest
19040   mkdir out
19041   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19042
19043   lt_compiler_flag="-o out/conftest2.$ac_objext"
19044   # Insert the option either (1) after the last *FLAGS variable, or
19045   # (2) before a word containing "conftest.", or (3) at the end.
19046   # Note that $ac_compile itself does not contain backslashes and begins
19047   # with a dollar sign (not a hyphen), so the echo should work correctly.
19048   lt_compile=`echo "$ac_compile" | $SED \
19049   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19050   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19051   -e 's:$: $lt_compiler_flag:'`
19052   (eval echo "\"\$as_me:19052: $lt_compile\"" >&5)
19053   (eval "$lt_compile" 2>out/conftest.err)
19054   ac_status=$?
19055   cat out/conftest.err >&5
19056   echo "$as_me:19056: \$? = $ac_status" >&5
19057   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19058   then
19059     # The compiler can only warn and ignore the option if not recognized
19060     # So say no if there are warnings
19061     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19062     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19063     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19064       lt_cv_prog_compiler_c_o_GCJ=yes
19065     fi
19066   fi
19067   chmod u+w . 2>&5
19068   $rm conftest*
19069   # SGI C++ compiler will create directory out/ii_files/ for
19070   # template instantiation
19071   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19072   $rm out/* && rmdir out
19073   cd ..
19074   rmdir conftest
19075   $rm conftest*
19076
19077fi
19078echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19079echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19080
19081
19082hard_links="nottested"
19083if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19084  # do not overwrite the value of need_locks provided by the user
19085  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19086echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19087  hard_links=yes
19088  $rm conftest*
19089  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19090  touch conftest.a
19091  ln conftest.a conftest.b 2>&5 || hard_links=no
19092  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19093  echo "$as_me:$LINENO: result: $hard_links" >&5
19094echo "${ECHO_T}$hard_links" >&6
19095  if test "$hard_links" = no; then
19096    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19097echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19098    need_locks=warn
19099  fi
19100else
19101  need_locks=no
19102fi
19103
19104echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19105echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19106
19107  runpath_var=
19108  allow_undefined_flag_GCJ=
19109  enable_shared_with_static_runtimes_GCJ=no
19110  archive_cmds_GCJ=
19111  archive_expsym_cmds_GCJ=
19112  old_archive_From_new_cmds_GCJ=
19113  old_archive_from_expsyms_cmds_GCJ=
19114  export_dynamic_flag_spec_GCJ=
19115  whole_archive_flag_spec_GCJ=
19116  thread_safe_flag_spec_GCJ=
19117  hardcode_libdir_flag_spec_GCJ=
19118  hardcode_libdir_flag_spec_ld_GCJ=
19119  hardcode_libdir_separator_GCJ=
19120  hardcode_direct_GCJ=no
19121  hardcode_minus_L_GCJ=no
19122  hardcode_shlibpath_var_GCJ=unsupported
19123  link_all_deplibs_GCJ=unknown
19124  hardcode_automatic_GCJ=no
19125  module_cmds_GCJ=
19126  module_expsym_cmds_GCJ=
19127  always_export_symbols_GCJ=no
19128  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19129  # include_expsyms should be a list of space-separated symbols to be *always*
19130  # included in the symbol list
19131  include_expsyms_GCJ=
19132  # exclude_expsyms can be an extended regexp of symbols to exclude
19133  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19134  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19135  # as well as any symbol that contains `d'.
19136  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19137  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19138  # platforms (ab)use it in PIC code, but their linkers get confused if
19139  # the symbol is explicitly referenced.  Since portable code cannot
19140  # rely on this symbol name, it's probably fine to never include it in
19141  # preloaded symbol tables.
19142  extract_expsyms_cmds=
19143  # Just being paranoid about ensuring that cc_basename is set.
19144  for cc_temp in $compiler""; do
19145  case $cc_temp in
19146    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19147    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19148    \-*) ;;
19149    *) break;;
19150  esac
19151done
19152cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19153
19154  case $host_os in
19155  cygwin* | mingw* | pw32*)
19156    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19157    # When not using gcc, we currently assume that we are using
19158    # Microsoft Visual C++.
19159    if test "$GCC" != yes; then
19160      with_gnu_ld=no
19161    fi
19162    ;;
19163  interix*)
19164    # we just hope/assume this is gcc and not c89 (= MSVC++)
19165    with_gnu_ld=yes
19166    ;;
19167  openbsd*)
19168    with_gnu_ld=no
19169    ;;
19170  esac
19171
19172  ld_shlibs_GCJ=yes
19173  if test "$with_gnu_ld" = yes; then
19174    # If archive_cmds runs LD, not CC, wlarc should be empty
19175    wlarc='${wl}'
19176
19177    # Set some defaults for GNU ld with shared library support. These
19178    # are reset later if shared libraries are not supported. Putting them
19179    # here allows them to be overridden if necessary.
19180    runpath_var=LD_RUN_PATH
19181    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19182    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19183    # ancient GNU ld didn't support --whole-archive et. al.
19184    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19185	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19186      else
19187  	whole_archive_flag_spec_GCJ=
19188    fi
19189    supports_anon_versioning=no
19190    case `$LD -v 2>/dev/null` in
19191      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19192      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19193      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19194      *\ 2.11.*) ;; # other 2.11 versions
19195      *) supports_anon_versioning=yes ;;
19196    esac
19197
19198    # See if GNU ld supports shared libraries.
19199    case $host_os in
19200    aix3* | aix4* | aix5*)
19201      # On AIX/PPC, the GNU linker is very broken
19202      if test "$host_cpu" != ia64; then
19203	ld_shlibs_GCJ=no
19204	cat <<EOF 1>&2
19205
19206*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19207*** to be unable to reliably create shared libraries on AIX.
19208*** Therefore, libtool is disabling shared libraries support.  If you
19209*** really care for shared libraries, you may want to modify your PATH
19210*** so that a non-GNU linker is found, and then restart.
19211
19212EOF
19213      fi
19214      ;;
19215
19216    amigaos*)
19217      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)'
19218      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19219      hardcode_minus_L_GCJ=yes
19220
19221      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19222      # that the semantics of dynamic libraries on AmigaOS, at least up
19223      # to version 4, is to share data among multiple programs linked
19224      # with the same dynamic library.  Since this doesn't match the
19225      # behavior of shared libraries on other platforms, we can't use
19226      # them.
19227      ld_shlibs_GCJ=no
19228      ;;
19229
19230    beos*)
19231      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19232	allow_undefined_flag_GCJ=unsupported
19233	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19234	# support --undefined.  This deserves some investigation.  FIXME
19235	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236      else
19237	ld_shlibs_GCJ=no
19238      fi
19239      ;;
19240
19241    cygwin* | mingw* | pw32*)
19242      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19243      # as there is no search path for DLLs.
19244      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19245      allow_undefined_flag_GCJ=unsupported
19246      always_export_symbols_GCJ=no
19247      enable_shared_with_static_runtimes_GCJ=yes
19248      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19249
19250      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19251        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19252	# If the export-symbols file already is a .def file (1st line
19253	# is EXPORTS), use it as is; otherwise, prepend...
19254	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19255	  cp $export_symbols $output_objdir/$soname.def;
19256	else
19257	  echo EXPORTS > $output_objdir/$soname.def;
19258	  cat $export_symbols >> $output_objdir/$soname.def;
19259	fi~
19260	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19261      else
19262	ld_shlibs_GCJ=no
19263      fi
19264      ;;
19265
19266    interix3*)
19267      hardcode_direct_GCJ=no
19268      hardcode_shlibpath_var_GCJ=no
19269      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19270      export_dynamic_flag_spec_GCJ='${wl}-E'
19271      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19272      # Instead, shared libraries are loaded at an image base (0x10000000 by
19273      # default) and relocated if they conflict, which is a slow very memory
19274      # consuming and fragmenting process.  To avoid this, we pick a random,
19275      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19276      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19277      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'
19278      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'
19279      ;;
19280
19281    linux*)
19282      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19283	tmp_addflag=
19284	case $cc_basename,$host_cpu in
19285	pgcc*)				# Portland Group C compiler
19286	  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'
19287	  tmp_addflag=' $pic_flag'
19288	  ;;
19289	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
19290	  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'
19291	  tmp_addflag=' $pic_flag -Mnomain' ;;
19292	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
19293	  tmp_addflag=' -i_dynamic' ;;
19294	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
19295	  tmp_addflag=' -i_dynamic -nofor_main' ;;
19296	ifc* | ifort*)			# Intel Fortran compiler
19297	  tmp_addflag=' -nofor_main' ;;
19298	esac
19299	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19300
19301	if test $supports_anon_versioning = yes; then
19302	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19303  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19304  $echo "local: *; };" >> $output_objdir/$libname.ver~
19305	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19306	fi
19307      else
19308	ld_shlibs_GCJ=no
19309      fi
19310      ;;
19311
19312    netbsd*)
19313      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19314	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19315	wlarc=
19316      else
19317	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19318	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19319      fi
19320      ;;
19321
19322    solaris*)
19323      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19324	ld_shlibs_GCJ=no
19325	cat <<EOF 1>&2
19326
19327*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19328*** create shared libraries on Solaris systems.  Therefore, libtool
19329*** is disabling shared libraries support.  We urge you to upgrade GNU
19330*** binutils to release 2.9.1 or newer.  Another option is to modify
19331*** your PATH or compiler configuration so that the native linker is
19332*** used, and then restart.
19333
19334EOF
19335      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19336	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19337	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19338      else
19339	ld_shlibs_GCJ=no
19340      fi
19341      ;;
19342
19343    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19344      case `$LD -v 2>&1` in
19345        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19346	ld_shlibs_GCJ=no
19347	cat <<_LT_EOF 1>&2
19348
19349*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19350*** reliably create shared libraries on SCO systems.  Therefore, libtool
19351*** is disabling shared libraries support.  We urge you to upgrade GNU
19352*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19353*** your PATH or compiler configuration so that the native linker is
19354*** used, and then restart.
19355
19356_LT_EOF
19357	;;
19358	*)
19359	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19360	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19361	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19362	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19363	  else
19364	    ld_shlibs_GCJ=no
19365	  fi
19366	;;
19367      esac
19368      ;;
19369
19370    sunos4*)
19371      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19372      wlarc=
19373      hardcode_direct_GCJ=yes
19374      hardcode_shlibpath_var_GCJ=no
19375      ;;
19376
19377    *)
19378      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19379	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19380	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19381      else
19382	ld_shlibs_GCJ=no
19383      fi
19384      ;;
19385    esac
19386
19387    if test "$ld_shlibs_GCJ" = no; then
19388      runpath_var=
19389      hardcode_libdir_flag_spec_GCJ=
19390      export_dynamic_flag_spec_GCJ=
19391      whole_archive_flag_spec_GCJ=
19392    fi
19393  else
19394    # PORTME fill in a description of your system's linker (not GNU ld)
19395    case $host_os in
19396    aix3*)
19397      allow_undefined_flag_GCJ=unsupported
19398      always_export_symbols_GCJ=yes
19399      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'
19400      # Note: this linker hardcodes the directories in LIBPATH if there
19401      # are no directories specified by -L.
19402      hardcode_minus_L_GCJ=yes
19403      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19404	# Neither direct hardcoding nor static linking is supported with a
19405	# broken collect2.
19406	hardcode_direct_GCJ=unsupported
19407      fi
19408      ;;
19409
19410    aix4* | aix5*)
19411      if test "$host_cpu" = ia64; then
19412	# On IA64, the linker does run time linking by default, so we don't
19413	# have to do anything special.
19414	aix_use_runtimelinking=no
19415	exp_sym_flag='-Bexport'
19416	no_entry_flag=""
19417      else
19418	# If we're using GNU nm, then we don't want the "-C" option.
19419	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19420	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19421	  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'
19422	else
19423	  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'
19424	fi
19425	aix_use_runtimelinking=no
19426
19427	# Test if we are trying to use run time linking or normal
19428	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19429	# need to do runtime linking.
19430	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19431	  for ld_flag in $LDFLAGS; do
19432  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19433  	    aix_use_runtimelinking=yes
19434  	    break
19435  	  fi
19436	  done
19437	  ;;
19438	esac
19439
19440	exp_sym_flag='-bexport'
19441	no_entry_flag='-bnoentry'
19442      fi
19443
19444      # When large executables or shared objects are built, AIX ld can
19445      # have problems creating the table of contents.  If linking a library
19446      # or program results in "error TOC overflow" add -mminimal-toc to
19447      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19448      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19449
19450      archive_cmds_GCJ=''
19451      hardcode_direct_GCJ=yes
19452      hardcode_libdir_separator_GCJ=':'
19453      link_all_deplibs_GCJ=yes
19454
19455      if test "$GCC" = yes; then
19456	case $host_os in aix4.[012]|aix4.[012].*)
19457	# We only want to do this on AIX 4.2 and lower, the check
19458	# below for broken collect2 doesn't work under 4.3+
19459	  collect2name=`${CC} -print-prog-name=collect2`
19460	  if test -f "$collect2name" && \
19461  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19462	  then
19463  	  # We have reworked collect2
19464  	  hardcode_direct_GCJ=yes
19465	  else
19466  	  # We have old collect2
19467  	  hardcode_direct_GCJ=unsupported
19468  	  # It fails to find uninstalled libraries when the uninstalled
19469  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19470  	  # to unsupported forces relinking
19471  	  hardcode_minus_L_GCJ=yes
19472  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
19473  	  hardcode_libdir_separator_GCJ=
19474	  fi
19475	  ;;
19476	esac
19477	shared_flag='-shared'
19478	if test "$aix_use_runtimelinking" = yes; then
19479	  shared_flag="$shared_flag "'${wl}-G'
19480	fi
19481      else
19482	# not using gcc
19483	if test "$host_cpu" = ia64; then
19484  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19485  	# chokes on -Wl,-G. The following line is correct:
19486	  shared_flag='-G'
19487	else
19488	  if test "$aix_use_runtimelinking" = yes; then
19489	    shared_flag='${wl}-G'
19490	  else
19491	    shared_flag='${wl}-bM:SRE'
19492	  fi
19493	fi
19494      fi
19495
19496      # It seems that -bexpall does not export symbols beginning with
19497      # underscore (_), so it is better to generate a list of symbols to export.
19498      always_export_symbols_GCJ=yes
19499      if test "$aix_use_runtimelinking" = yes; then
19500	# Warning - without using the other runtime loading flags (-brtl),
19501	# -berok will link without error, but may produce a broken library.
19502	allow_undefined_flag_GCJ='-berok'
19503       # Determine the default libpath from the value encoded in an empty executable.
19504       cat >conftest.$ac_ext <<_ACEOF
19505/* confdefs.h.  */
19506_ACEOF
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h.  */
19510
19511#ifdef F77_DUMMY_MAIN
19512
19513#  ifdef __cplusplus
19514     extern "C"
19515#  endif
19516   int F77_DUMMY_MAIN() { return 1; }
19517
19518#endif
19519int
19520main ()
19521{
19522
19523  ;
19524  return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext conftest$ac_exeext
19528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19529  (eval $ac_link) 2>conftest.er1
19530  ac_status=$?
19531  grep -v '^ *+' conftest.er1 >conftest.err
19532  rm -f conftest.er1
19533  cat conftest.err >&5
19534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535  (exit $ac_status); } &&
19536	 { ac_try='test -z "$ac_c_werror_flag"
19537			 || test ! -s conftest.err'
19538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539  (eval $ac_try) 2>&5
19540  ac_status=$?
19541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542  (exit $ac_status); }; } &&
19543	 { ac_try='test -s conftest$ac_exeext'
19544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545  (eval $ac_try) 2>&5
19546  ac_status=$?
19547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548  (exit $ac_status); }; }; then
19549
19550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19551}'`
19552# Check for a 64-bit object if we didn't find anything.
19553if 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; }
19554}'`; fi
19555else
19556  echo "$as_me: failed program was:" >&5
19557sed 's/^/| /' conftest.$ac_ext >&5
19558
19559fi
19560rm -f conftest.err conftest.$ac_objext \
19561      conftest$ac_exeext conftest.$ac_ext
19562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19563
19564       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19565	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"
19566       else
19567	if test "$host_cpu" = ia64; then
19568	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19569	  allow_undefined_flag_GCJ="-z nodefs"
19570	  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"
19571	else
19572	 # Determine the default libpath from the value encoded in an empty executable.
19573	 cat >conftest.$ac_ext <<_ACEOF
19574/* confdefs.h.  */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h.  */
19579
19580#ifdef F77_DUMMY_MAIN
19581
19582#  ifdef __cplusplus
19583     extern "C"
19584#  endif
19585   int F77_DUMMY_MAIN() { return 1; }
19586
19587#endif
19588int
19589main ()
19590{
19591
19592  ;
19593  return 0;
19594}
19595_ACEOF
19596rm -f conftest.$ac_objext conftest$ac_exeext
19597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19598  (eval $ac_link) 2>conftest.er1
19599  ac_status=$?
19600  grep -v '^ *+' conftest.er1 >conftest.err
19601  rm -f conftest.er1
19602  cat conftest.err >&5
19603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604  (exit $ac_status); } &&
19605	 { ac_try='test -z "$ac_c_werror_flag"
19606			 || test ! -s conftest.err'
19607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608  (eval $ac_try) 2>&5
19609  ac_status=$?
19610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611  (exit $ac_status); }; } &&
19612	 { ac_try='test -s conftest$ac_exeext'
19613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614  (eval $ac_try) 2>&5
19615  ac_status=$?
19616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617  (exit $ac_status); }; }; then
19618
19619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19620}'`
19621# Check for a 64-bit object if we didn't find anything.
19622if 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; }
19623}'`; fi
19624else
19625  echo "$as_me: failed program was:" >&5
19626sed 's/^/| /' conftest.$ac_ext >&5
19627
19628fi
19629rm -f conftest.err conftest.$ac_objext \
19630      conftest$ac_exeext conftest.$ac_ext
19631if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19632
19633	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19634	  # Warning - without using the other run time loading flags,
19635	  # -berok will link without error, but may produce a broken library.
19636	  no_undefined_flag_GCJ=' ${wl}-bernotok'
19637	  allow_undefined_flag_GCJ=' ${wl}-berok'
19638	  # Exported symbols can be pulled into shared objects from archives
19639	  whole_archive_flag_spec_GCJ='$convenience'
19640	  archive_cmds_need_lc_GCJ=yes
19641	  # This is similar to how AIX traditionally builds its shared libraries.
19642	  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'
19643	fi
19644      fi
19645      ;;
19646
19647    amigaos*)
19648      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)'
19649      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19650      hardcode_minus_L_GCJ=yes
19651      # see comment about different semantics on the GNU ld section
19652      ld_shlibs_GCJ=no
19653      ;;
19654
19655    bsdi[45]*)
19656      export_dynamic_flag_spec_GCJ=-rdynamic
19657      ;;
19658
19659    cygwin* | mingw* | pw32*)
19660      # When not using gcc, we currently assume that we are using
19661      # Microsoft Visual C++.
19662      # hardcode_libdir_flag_spec is actually meaningless, as there is
19663      # no search path for DLLs.
19664      hardcode_libdir_flag_spec_GCJ=' '
19665      allow_undefined_flag_GCJ=unsupported
19666      # Tell ltmain to make .lib files, not .a files.
19667      libext=lib
19668      # Tell ltmain to make .dll files, not .so files.
19669      shrext_cmds=".dll"
19670      # FIXME: Setting linknames here is a bad hack.
19671      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19672      # The linker will automatically build a .lib file if we build a DLL.
19673      old_archive_From_new_cmds_GCJ='true'
19674      # FIXME: Should let the user specify the lib program.
19675      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19676      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19677      enable_shared_with_static_runtimes_GCJ=yes
19678      ;;
19679
19680    darwin* | rhapsody*)
19681      case $host_os in
19682        rhapsody* | darwin1.[012])
19683         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19684         ;;
19685       *) # Darwin 1.3 on
19686         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19687           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19688         else
19689           case ${MACOSX_DEPLOYMENT_TARGET} in
19690             10.[012])
19691               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19692               ;;
19693             10.*)
19694               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19695               ;;
19696           esac
19697         fi
19698         ;;
19699      esac
19700      archive_cmds_need_lc_GCJ=no
19701      hardcode_direct_GCJ=no
19702      hardcode_automatic_GCJ=yes
19703      hardcode_shlibpath_var_GCJ=unsupported
19704      whole_archive_flag_spec_GCJ=''
19705      link_all_deplibs_GCJ=yes
19706    if test "$GCC" = yes ; then
19707    	output_verbose_link_cmd='echo'
19708        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19709      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19710      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19711      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}'
19712      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}'
19713    else
19714      case $cc_basename in
19715        xlc*)
19716         output_verbose_link_cmd='echo'
19717         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19718         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19719          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19720         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}'
19721          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}'
19722          ;;
19723       *)
19724         ld_shlibs_GCJ=no
19725          ;;
19726      esac
19727    fi
19728      ;;
19729
19730    dgux*)
19731      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19732      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19733      hardcode_shlibpath_var_GCJ=no
19734      ;;
19735
19736    freebsd1*)
19737      ld_shlibs_GCJ=no
19738      ;;
19739
19740    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19741    # support.  Future versions do this automatically, but an explicit c++rt0.o
19742    # does not break anything, and helps significantly (at the cost of a little
19743    # extra space).
19744    freebsd2.2*)
19745      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19746      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19747      hardcode_direct_GCJ=yes
19748      hardcode_shlibpath_var_GCJ=no
19749      ;;
19750
19751    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19752    freebsd2*)
19753      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19754      hardcode_direct_GCJ=yes
19755      hardcode_minus_L_GCJ=yes
19756      hardcode_shlibpath_var_GCJ=no
19757      ;;
19758
19759    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19760    freebsd* | kfreebsd*-gnu | dragonfly*)
19761      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19762      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19763      hardcode_direct_GCJ=yes
19764      hardcode_shlibpath_var_GCJ=no
19765      ;;
19766
19767    hpux9*)
19768      if test "$GCC" = yes; then
19769	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'
19770      else
19771	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'
19772      fi
19773      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19774      hardcode_libdir_separator_GCJ=:
19775      hardcode_direct_GCJ=yes
19776
19777      # hardcode_minus_L: Not really in the search PATH,
19778      # but as the default location of the library.
19779      hardcode_minus_L_GCJ=yes
19780      export_dynamic_flag_spec_GCJ='${wl}-E'
19781      ;;
19782
19783    hpux10*)
19784      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19785	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19786      else
19787	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19788      fi
19789      if test "$with_gnu_ld" = no; then
19790	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19791	hardcode_libdir_separator_GCJ=:
19792
19793	hardcode_direct_GCJ=yes
19794	export_dynamic_flag_spec_GCJ='${wl}-E'
19795
19796	# hardcode_minus_L: Not really in the search PATH,
19797	# but as the default location of the library.
19798	hardcode_minus_L_GCJ=yes
19799      fi
19800      ;;
19801
19802    hpux11*)
19803      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19804	case $host_cpu in
19805	hppa*64*)
19806	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19807	  ;;
19808	ia64*)
19809	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19810	  ;;
19811	*)
19812	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19813	  ;;
19814	esac
19815      else
19816	case $host_cpu in
19817	hppa*64*)
19818	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19819	  ;;
19820	ia64*)
19821	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19822	  ;;
19823	*)
19824	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19825	  ;;
19826	esac
19827      fi
19828      if test "$with_gnu_ld" = no; then
19829	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19830	hardcode_libdir_separator_GCJ=:
19831
19832	case $host_cpu in
19833	hppa*64*|ia64*)
19834	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19835	  hardcode_direct_GCJ=no
19836	  hardcode_shlibpath_var_GCJ=no
19837	  ;;
19838	*)
19839	  hardcode_direct_GCJ=yes
19840	  export_dynamic_flag_spec_GCJ='${wl}-E'
19841
19842	  # hardcode_minus_L: Not really in the search PATH,
19843	  # but as the default location of the library.
19844	  hardcode_minus_L_GCJ=yes
19845	  ;;
19846	esac
19847      fi
19848      ;;
19849
19850    irix5* | irix6* | nonstopux*)
19851      if test "$GCC" = yes; then
19852	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'
19853      else
19854	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'
19855	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19856      fi
19857      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19858      hardcode_libdir_separator_GCJ=:
19859      link_all_deplibs_GCJ=yes
19860      ;;
19861
19862    netbsd*)
19863      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19864	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19865      else
19866	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19867      fi
19868      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19869      hardcode_direct_GCJ=yes
19870      hardcode_shlibpath_var_GCJ=no
19871      ;;
19872
19873    newsos6)
19874      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19875      hardcode_direct_GCJ=yes
19876      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19877      hardcode_libdir_separator_GCJ=:
19878      hardcode_shlibpath_var_GCJ=no
19879      ;;
19880
19881    openbsd*)
19882      hardcode_direct_GCJ=yes
19883      hardcode_shlibpath_var_GCJ=no
19884      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19885	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19886	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19887	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19888	export_dynamic_flag_spec_GCJ='${wl}-E'
19889      else
19890       case $host_os in
19891	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19892	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19893	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19894	   ;;
19895	 *)
19896	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19897	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19898	   ;;
19899       esac
19900      fi
19901      ;;
19902
19903    os2*)
19904      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19905      hardcode_minus_L_GCJ=yes
19906      allow_undefined_flag_GCJ=unsupported
19907      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'
19908      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19909      ;;
19910
19911    osf3*)
19912      if test "$GCC" = yes; then
19913	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19914	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'
19915      else
19916	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19917	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'
19918      fi
19919      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19920      hardcode_libdir_separator_GCJ=:
19921      ;;
19922
19923    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19924      if test "$GCC" = yes; then
19925	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19926	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'
19927	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19928      else
19929	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19930	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'
19931	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~
19932	$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'
19933
19934	# Both c and cxx compiler support -rpath directly
19935	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19936      fi
19937      hardcode_libdir_separator_GCJ=:
19938      ;;
19939
19940    solaris*)
19941      no_undefined_flag_GCJ=' -z text'
19942      if test "$GCC" = yes; then
19943	wlarc='${wl}'
19944	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19945	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19946	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19947      else
19948	wlarc=''
19949	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19950	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19951  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19952      fi
19953      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19954      hardcode_shlibpath_var_GCJ=no
19955      case $host_os in
19956      solaris2.[0-5] | solaris2.[0-5].*) ;;
19957      *)
19958 	# The compiler driver will combine linker options so we
19959 	# cannot just pass the convience library names through
19960 	# without $wl, iff we do not link with $LD.
19961 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19962 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19963 	case $wlarc in
19964 	'')
19965 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19966 	*)
19967 	  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' ;;
19968 	esac ;;
19969      esac
19970      link_all_deplibs_GCJ=yes
19971      ;;
19972
19973    sunos4*)
19974      if test "x$host_vendor" = xsequent; then
19975	# Use $CC to link under sequent, because it throws in some extra .o
19976	# files that make .init and .fini sections work.
19977	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19978      else
19979	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19980      fi
19981      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19982      hardcode_direct_GCJ=yes
19983      hardcode_minus_L_GCJ=yes
19984      hardcode_shlibpath_var_GCJ=no
19985      ;;
19986
19987    sysv4)
19988      case $host_vendor in
19989	sni)
19990	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19991	  hardcode_direct_GCJ=yes # is this really true???
19992	;;
19993	siemens)
19994	  ## LD is ld it makes a PLAMLIB
19995	  ## CC just makes a GrossModule.
19996	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19997	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19998	  hardcode_direct_GCJ=no
19999        ;;
20000	motorola)
20001	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20002	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20003	;;
20004      esac
20005      runpath_var='LD_RUN_PATH'
20006      hardcode_shlibpath_var_GCJ=no
20007      ;;
20008
20009    sysv4.3*)
20010      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20011      hardcode_shlibpath_var_GCJ=no
20012      export_dynamic_flag_spec_GCJ='-Bexport'
20013      ;;
20014
20015    sysv4*MP*)
20016      if test -d /usr/nec; then
20017	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20018	hardcode_shlibpath_var_GCJ=no
20019	runpath_var=LD_RUN_PATH
20020	hardcode_runpath_var=yes
20021	ld_shlibs_GCJ=yes
20022      fi
20023      ;;
20024
20025    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
20026      no_undefined_flag_GCJ='${wl}-z,text'
20027      archive_cmds_need_lc_GCJ=no
20028      hardcode_shlibpath_var_GCJ=no
20029      runpath_var='LD_RUN_PATH'
20030
20031      if test "$GCC" = yes; then
20032	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20033	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20034      else
20035	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20036	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20037      fi
20038      ;;
20039
20040    sysv5* | sco3.2v5* | sco5v6*)
20041      # Note: We can NOT use -z defs as we might desire, because we do not
20042      # link with -lc, and that would cause any symbols used from libc to
20043      # always be unresolved, which means just about no library would
20044      # ever link correctly.  If we're not using GNU ld we use -z text
20045      # though, which does catch some bad symbols but isn't as heavy-handed
20046      # as -z defs.
20047      no_undefined_flag_GCJ='${wl}-z,text'
20048      allow_undefined_flag_GCJ='${wl}-z,nodefs'
20049      archive_cmds_need_lc_GCJ=no
20050      hardcode_shlibpath_var_GCJ=no
20051      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20052      hardcode_libdir_separator_GCJ=':'
20053      link_all_deplibs_GCJ=yes
20054      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20055      runpath_var='LD_RUN_PATH'
20056
20057      if test "$GCC" = yes; then
20058	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20059	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20060      else
20061	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20062	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20063      fi
20064      ;;
20065
20066    uts4*)
20067      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20068      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20069      hardcode_shlibpath_var_GCJ=no
20070      ;;
20071
20072    *)
20073      ld_shlibs_GCJ=no
20074      ;;
20075    esac
20076  fi
20077
20078echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20079echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20080test "$ld_shlibs_GCJ" = no && can_build_shared=no
20081
20082#
20083# Do we need to explicitly link libc?
20084#
20085case "x$archive_cmds_need_lc_GCJ" in
20086x|xyes)
20087  # Assume -lc should be added
20088  archive_cmds_need_lc_GCJ=yes
20089
20090  if test "$enable_shared" = yes && test "$GCC" = yes; then
20091    case $archive_cmds_GCJ in
20092    *'~'*)
20093      # FIXME: we may have to deal with multi-command sequences.
20094      ;;
20095    '$CC '*)
20096      # Test whether the compiler implicitly links with -lc since on some
20097      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20098      # to ld, don't add -lc before -lgcc.
20099      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20100echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20101      $rm conftest*
20102      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20103
20104      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105  (eval $ac_compile) 2>&5
20106  ac_status=$?
20107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108  (exit $ac_status); } 2>conftest.err; then
20109        soname=conftest
20110        lib=conftest
20111        libobjs=conftest.$ac_objext
20112        deplibs=
20113        wl=$lt_prog_compiler_wl_GCJ
20114	pic_flag=$lt_prog_compiler_pic_GCJ
20115        compiler_flags=-v
20116        linker_flags=-v
20117        verstring=
20118        output_objdir=.
20119        libname=conftest
20120        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20121        allow_undefined_flag_GCJ=
20122        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20123  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20124  ac_status=$?
20125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126  (exit $ac_status); }
20127        then
20128	  archive_cmds_need_lc_GCJ=no
20129        else
20130	  archive_cmds_need_lc_GCJ=yes
20131        fi
20132        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20133      else
20134        cat conftest.err 1>&5
20135      fi
20136      $rm conftest*
20137      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20138echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20139      ;;
20140    esac
20141  fi
20142  ;;
20143esac
20144
20145echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20146echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20147library_names_spec=
20148libname_spec='lib$name'
20149soname_spec=
20150shrext_cmds=".so"
20151postinstall_cmds=
20152postuninstall_cmds=
20153finish_cmds=
20154finish_eval=
20155shlibpath_var=
20156shlibpath_overrides_runpath=unknown
20157version_type=none
20158dynamic_linker="$host_os ld.so"
20159sys_lib_dlsearch_path_spec="/lib /usr/lib"
20160if test "$GCC" = yes; then
20161  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20162  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20163    # if the path contains ";" then we assume it to be the separator
20164    # otherwise default to the standard path separator (i.e. ":") - it is
20165    # assumed that no part of a normal pathname contains ";" but that should
20166    # okay in the real world where ";" in dirpaths is itself problematic.
20167    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20168  else
20169    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20170  fi
20171else
20172  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20173fi
20174need_lib_prefix=unknown
20175hardcode_into_libs=no
20176
20177# when you set need_version to no, make sure it does not cause -set_version
20178# flags to be left without arguments
20179need_version=unknown
20180
20181case $host_os in
20182aix3*)
20183  version_type=linux
20184  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20185  shlibpath_var=LIBPATH
20186
20187  # AIX 3 has no versioning support, so we append a major version to the name.
20188  soname_spec='${libname}${release}${shared_ext}$major'
20189  ;;
20190
20191aix4* | aix5*)
20192  version_type=linux
20193  need_lib_prefix=no
20194  need_version=no
20195  hardcode_into_libs=yes
20196  if test "$host_cpu" = ia64; then
20197    # AIX 5 supports IA64
20198    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20199    shlibpath_var=LD_LIBRARY_PATH
20200  else
20201    # With GCC up to 2.95.x, collect2 would create an import file
20202    # for dependence libraries.  The import file would start with
20203    # the line `#! .'.  This would cause the generated library to
20204    # depend on `.', always an invalid library.  This was fixed in
20205    # development snapshots of GCC prior to 3.0.
20206    case $host_os in
20207      aix4 | aix4.[01] | aix4.[01].*)
20208      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20209	   echo ' yes '
20210	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20211	:
20212      else
20213	can_build_shared=no
20214      fi
20215      ;;
20216    esac
20217    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20218    # soname into executable. Probably we can add versioning support to
20219    # collect2, so additional links can be useful in future.
20220    if test "$aix_use_runtimelinking" = yes; then
20221      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20222      # instead of lib<name>.a to let people know that these are not
20223      # typical AIX shared libraries.
20224      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20225    else
20226      # We preserve .a as extension for shared libraries through AIX4.2
20227      # and later when we are not doing run time linking.
20228      library_names_spec='${libname}${release}.a $libname.a'
20229      soname_spec='${libname}${release}${shared_ext}$major'
20230    fi
20231    shlibpath_var=LIBPATH
20232  fi
20233  ;;
20234
20235amigaos*)
20236  library_names_spec='$libname.ixlibrary $libname.a'
20237  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20238  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'
20239  ;;
20240
20241beos*)
20242  library_names_spec='${libname}${shared_ext}'
20243  dynamic_linker="$host_os ld.so"
20244  shlibpath_var=LIBRARY_PATH
20245  ;;
20246
20247bsdi[45]*)
20248  version_type=linux
20249  need_version=no
20250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20251  soname_spec='${libname}${release}${shared_ext}$major'
20252  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20253  shlibpath_var=LD_LIBRARY_PATH
20254  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20255  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20256  # the default ld.so.conf also contains /usr/contrib/lib and
20257  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20258  # libtool to hard-code these into programs
20259  ;;
20260
20261cygwin* | mingw* | pw32*)
20262  version_type=windows
20263  shrext_cmds=".dll"
20264  need_version=no
20265  need_lib_prefix=no
20266
20267  case $GCC,$host_os in
20268  yes,cygwin* | yes,mingw* | yes,pw32*)
20269    library_names_spec='$libname.dll.a'
20270    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20271    postinstall_cmds='base_file=`basename \${file}`~
20272      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20273      dldir=$destdir/`dirname \$dlpath`~
20274      test -d \$dldir || mkdir -p \$dldir~
20275      $install_prog $dir/$dlname \$dldir/$dlname~
20276      chmod a+x \$dldir/$dlname'
20277    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20278      dlpath=$dir/\$dldll~
20279       $rm \$dlpath'
20280    shlibpath_overrides_runpath=yes
20281
20282    case $host_os in
20283    cygwin*)
20284      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20285      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20286      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20287      ;;
20288    mingw*)
20289      # MinGW DLLs use traditional 'lib' prefix
20290      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20291      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20292      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20293        # It is most probably a Windows format PATH printed by
20294        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20295        # path with ; separators, and with drive letters. We can handle the
20296        # drive letters (cygwin fileutils understands them), so leave them,
20297        # especially as we might pass files found there to a mingw objdump,
20298        # which wouldn't understand a cygwinified path. Ahh.
20299        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20300      else
20301        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20302      fi
20303      ;;
20304    pw32*)
20305      # pw32 DLLs use 'pw' prefix rather than 'lib'
20306      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20307      ;;
20308    esac
20309    ;;
20310
20311  *)
20312    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20313    ;;
20314  esac
20315  dynamic_linker='Win32 ld.exe'
20316  # FIXME: first we should search . and the directory the executable is in
20317  shlibpath_var=PATH
20318  ;;
20319
20320darwin* | rhapsody*)
20321  dynamic_linker="$host_os dyld"
20322  version_type=darwin
20323  need_lib_prefix=no
20324  need_version=no
20325  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20326  soname_spec='${libname}${release}${major}$shared_ext'
20327  shlibpath_overrides_runpath=yes
20328  shlibpath_var=DYLD_LIBRARY_PATH
20329  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20330  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20331  if test "$GCC" = yes; then
20332    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"`
20333  else
20334    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20335  fi
20336  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20337  ;;
20338
20339dgux*)
20340  version_type=linux
20341  need_lib_prefix=no
20342  need_version=no
20343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20344  soname_spec='${libname}${release}${shared_ext}$major'
20345  shlibpath_var=LD_LIBRARY_PATH
20346  ;;
20347
20348freebsd1*)
20349  dynamic_linker=no
20350  ;;
20351
20352kfreebsd*-gnu)
20353  version_type=linux
20354  need_lib_prefix=no
20355  need_version=no
20356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357  soname_spec='${libname}${release}${shared_ext}$major'
20358  shlibpath_var=LD_LIBRARY_PATH
20359  shlibpath_overrides_runpath=no
20360  hardcode_into_libs=yes
20361  dynamic_linker='GNU ld.so'
20362  ;;
20363
20364freebsd* | dragonfly*)
20365  # DragonFly does not have aout.  When/if they implement a new
20366  # versioning mechanism, adjust this.
20367  if test -x /usr/bin/objformat; then
20368    objformat=`/usr/bin/objformat`
20369  else
20370    case $host_os in
20371    freebsd[123]*) objformat=aout ;;
20372    *) objformat=elf ;;
20373    esac
20374  fi
20375  version_type=freebsd-$objformat
20376  case $version_type in
20377    freebsd-elf*)
20378      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20379      need_version=no
20380      need_lib_prefix=no
20381      ;;
20382    freebsd-*)
20383      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20384      need_version=yes
20385      ;;
20386  esac
20387  shlibpath_var=LD_LIBRARY_PATH
20388  case $host_os in
20389  freebsd2*)
20390    shlibpath_overrides_runpath=yes
20391    ;;
20392  freebsd3.[01]* | freebsdelf3.[01]*)
20393    shlibpath_overrides_runpath=yes
20394    hardcode_into_libs=yes
20395    ;;
20396  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20397  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20398    shlibpath_overrides_runpath=no
20399    hardcode_into_libs=yes
20400    ;;
20401  freebsd*) # from 4.6 on
20402    shlibpath_overrides_runpath=yes
20403    hardcode_into_libs=yes
20404    ;;
20405  esac
20406  ;;
20407
20408gnu*)
20409  version_type=linux
20410  need_lib_prefix=no
20411  need_version=no
20412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20413  soname_spec='${libname}${release}${shared_ext}$major'
20414  shlibpath_var=LD_LIBRARY_PATH
20415  hardcode_into_libs=yes
20416  ;;
20417
20418hpux9* | hpux10* | hpux11*)
20419  # Give a soname corresponding to the major version so that dld.sl refuses to
20420  # link against other versions.
20421  version_type=sunos
20422  need_lib_prefix=no
20423  need_version=no
20424  case $host_cpu in
20425  ia64*)
20426    shrext_cmds='.so'
20427    hardcode_into_libs=yes
20428    dynamic_linker="$host_os dld.so"
20429    shlibpath_var=LD_LIBRARY_PATH
20430    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20431    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432    soname_spec='${libname}${release}${shared_ext}$major'
20433    if test "X$HPUX_IA64_MODE" = X32; then
20434      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20435    else
20436      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20437    fi
20438    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20439    ;;
20440   hppa*64*)
20441     shrext_cmds='.sl'
20442     hardcode_into_libs=yes
20443     dynamic_linker="$host_os dld.sl"
20444     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20445     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20447     soname_spec='${libname}${release}${shared_ext}$major'
20448     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20449     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20450     ;;
20451   *)
20452    shrext_cmds='.sl'
20453    dynamic_linker="$host_os dld.sl"
20454    shlibpath_var=SHLIB_PATH
20455    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20456    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20457    soname_spec='${libname}${release}${shared_ext}$major'
20458    ;;
20459  esac
20460  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20461  postinstall_cmds='chmod 555 $lib'
20462  ;;
20463
20464interix3*)
20465  version_type=linux
20466  need_lib_prefix=no
20467  need_version=no
20468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20469  soname_spec='${libname}${release}${shared_ext}$major'
20470  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20471  shlibpath_var=LD_LIBRARY_PATH
20472  shlibpath_overrides_runpath=no
20473  hardcode_into_libs=yes
20474  ;;
20475
20476irix5* | irix6* | nonstopux*)
20477  case $host_os in
20478    nonstopux*) version_type=nonstopux ;;
20479    *)
20480	if test "$lt_cv_prog_gnu_ld" = yes; then
20481		version_type=linux
20482	else
20483		version_type=irix
20484	fi ;;
20485  esac
20486  need_lib_prefix=no
20487  need_version=no
20488  soname_spec='${libname}${release}${shared_ext}$major'
20489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20490  case $host_os in
20491  irix5* | nonstopux*)
20492    libsuff= shlibsuff=
20493    ;;
20494  *)
20495    case $LD in # libtool.m4 will add one of these switches to LD
20496    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20497      libsuff= shlibsuff= libmagic=32-bit;;
20498    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20499      libsuff=32 shlibsuff=N32 libmagic=N32;;
20500    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20501      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20502    *) libsuff= shlibsuff= libmagic=never-match;;
20503    esac
20504    ;;
20505  esac
20506  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20507  shlibpath_overrides_runpath=no
20508  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20509  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20510  hardcode_into_libs=yes
20511  ;;
20512
20513# No shared lib support for Linux oldld, aout, or coff.
20514linux*oldld* | linux*aout* | linux*coff*)
20515  dynamic_linker=no
20516  ;;
20517
20518# This must be Linux ELF.
20519linux*)
20520  version_type=linux
20521  need_lib_prefix=no
20522  need_version=no
20523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524  soname_spec='${libname}${release}${shared_ext}$major'
20525  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20526  shlibpath_var=LD_LIBRARY_PATH
20527  shlibpath_overrides_runpath=no
20528  # This implies no fast_install, which is unacceptable.
20529  # Some rework will be needed to allow for fast_install
20530  # before this can be enabled.
20531  hardcode_into_libs=yes
20532
20533  # Append ld.so.conf contents to the search path
20534  if test -f /etc/ld.so.conf; then
20535    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' ' '`
20536    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20537  fi
20538
20539  # We used to test for /lib/ld.so.1 and disable shared libraries on
20540  # powerpc, because MkLinux only supported shared libraries with the
20541  # GNU dynamic linker.  Since this was broken with cross compilers,
20542  # most powerpc-linux boxes support dynamic linking these days and
20543  # people can always --disable-shared, the test was removed, and we
20544  # assume the GNU/Linux dynamic linker is in use.
20545  dynamic_linker='GNU/Linux ld.so'
20546  ;;
20547
20548knetbsd*-gnu)
20549  version_type=linux
20550  need_lib_prefix=no
20551  need_version=no
20552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20553  soname_spec='${libname}${release}${shared_ext}$major'
20554  shlibpath_var=LD_LIBRARY_PATH
20555  shlibpath_overrides_runpath=no
20556  hardcode_into_libs=yes
20557  dynamic_linker='GNU ld.so'
20558  ;;
20559
20560netbsd*)
20561  version_type=sunos
20562  need_lib_prefix=no
20563  need_version=no
20564  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20565    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20566    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20567    dynamic_linker='NetBSD (a.out) ld.so'
20568  else
20569    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20570    soname_spec='${libname}${release}${shared_ext}$major'
20571    dynamic_linker='NetBSD ld.elf_so'
20572  fi
20573  shlibpath_var=LD_LIBRARY_PATH
20574  shlibpath_overrides_runpath=yes
20575  hardcode_into_libs=yes
20576  ;;
20577
20578newsos6)
20579  version_type=linux
20580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20581  shlibpath_var=LD_LIBRARY_PATH
20582  shlibpath_overrides_runpath=yes
20583  ;;
20584
20585nto-qnx*)
20586  version_type=linux
20587  need_lib_prefix=no
20588  need_version=no
20589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20590  soname_spec='${libname}${release}${shared_ext}$major'
20591  shlibpath_var=LD_LIBRARY_PATH
20592  shlibpath_overrides_runpath=yes
20593  ;;
20594
20595openbsd*)
20596  version_type=sunos
20597  sys_lib_dlsearch_path_spec="/usr/lib"
20598  need_lib_prefix=no
20599  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20600  case $host_os in
20601    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20602    *)                         need_version=no  ;;
20603  esac
20604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20605  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20606  shlibpath_var=LD_LIBRARY_PATH
20607  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20608    case $host_os in
20609      openbsd2.[89] | openbsd2.[89].*)
20610	shlibpath_overrides_runpath=no
20611	;;
20612      *)
20613	shlibpath_overrides_runpath=yes
20614	;;
20615      esac
20616  else
20617    shlibpath_overrides_runpath=yes
20618  fi
20619  ;;
20620
20621os2*)
20622  libname_spec='$name'
20623  shrext_cmds=".dll"
20624  need_lib_prefix=no
20625  library_names_spec='$libname${shared_ext} $libname.a'
20626  dynamic_linker='OS/2 ld.exe'
20627  shlibpath_var=LIBPATH
20628  ;;
20629
20630osf3* | osf4* | osf5*)
20631  version_type=osf
20632  need_lib_prefix=no
20633  need_version=no
20634  soname_spec='${libname}${release}${shared_ext}$major'
20635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636  shlibpath_var=LD_LIBRARY_PATH
20637  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20638  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20639  ;;
20640
20641solaris*)
20642  version_type=linux
20643  need_lib_prefix=no
20644  need_version=no
20645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646  soname_spec='${libname}${release}${shared_ext}$major'
20647  shlibpath_var=LD_LIBRARY_PATH
20648  shlibpath_overrides_runpath=yes
20649  hardcode_into_libs=yes
20650  # ldd complains unless libraries are executable
20651  postinstall_cmds='chmod +x $lib'
20652  ;;
20653
20654sunos4*)
20655  version_type=sunos
20656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20657  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20658  shlibpath_var=LD_LIBRARY_PATH
20659  shlibpath_overrides_runpath=yes
20660  if test "$with_gnu_ld" = yes; then
20661    need_lib_prefix=no
20662  fi
20663  need_version=yes
20664  ;;
20665
20666sysv4 | sysv4.3*)
20667  version_type=linux
20668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20669  soname_spec='${libname}${release}${shared_ext}$major'
20670  shlibpath_var=LD_LIBRARY_PATH
20671  case $host_vendor in
20672    sni)
20673      shlibpath_overrides_runpath=no
20674      need_lib_prefix=no
20675      export_dynamic_flag_spec='${wl}-Blargedynsym'
20676      runpath_var=LD_RUN_PATH
20677      ;;
20678    siemens)
20679      need_lib_prefix=no
20680      ;;
20681    motorola)
20682      need_lib_prefix=no
20683      need_version=no
20684      shlibpath_overrides_runpath=no
20685      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20686      ;;
20687  esac
20688  ;;
20689
20690sysv4*MP*)
20691  if test -d /usr/nec ;then
20692    version_type=linux
20693    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20694    soname_spec='$libname${shared_ext}.$major'
20695    shlibpath_var=LD_LIBRARY_PATH
20696  fi
20697  ;;
20698
20699sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20700  version_type=freebsd-elf
20701  need_lib_prefix=no
20702  need_version=no
20703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20704  soname_spec='${libname}${release}${shared_ext}$major'
20705  shlibpath_var=LD_LIBRARY_PATH
20706  hardcode_into_libs=yes
20707  if test "$with_gnu_ld" = yes; then
20708    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20709    shlibpath_overrides_runpath=no
20710  else
20711    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20712    shlibpath_overrides_runpath=yes
20713    case $host_os in
20714      sco3.2v5*)
20715        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20716	;;
20717    esac
20718  fi
20719  sys_lib_dlsearch_path_spec='/usr/lib'
20720  ;;
20721
20722uts4*)
20723  version_type=linux
20724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20725  soname_spec='${libname}${release}${shared_ext}$major'
20726  shlibpath_var=LD_LIBRARY_PATH
20727  ;;
20728
20729*)
20730  dynamic_linker=no
20731  ;;
20732esac
20733echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20734echo "${ECHO_T}$dynamic_linker" >&6
20735test "$dynamic_linker" = no && can_build_shared=no
20736
20737variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20738if test "$GCC" = yes; then
20739  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20740fi
20741
20742echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20743echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20744hardcode_action_GCJ=
20745if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20746   test -n "$runpath_var_GCJ" || \
20747   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20748
20749  # We can hardcode non-existant directories.
20750  if test "$hardcode_direct_GCJ" != no &&
20751     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20752     # have to relink, otherwise we might link with an installed library
20753     # when we should be linking with a yet-to-be-installed one
20754     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20755     test "$hardcode_minus_L_GCJ" != no; then
20756    # Linking always hardcodes the temporary library directory.
20757    hardcode_action_GCJ=relink
20758  else
20759    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20760    hardcode_action_GCJ=immediate
20761  fi
20762else
20763  # We cannot hardcode anything, or else we can only hardcode existing
20764  # directories.
20765  hardcode_action_GCJ=unsupported
20766fi
20767echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20768echo "${ECHO_T}$hardcode_action_GCJ" >&6
20769
20770if test "$hardcode_action_GCJ" = relink; then
20771  # Fast installation is not supported
20772  enable_fast_install=no
20773elif test "$shlibpath_overrides_runpath" = yes ||
20774     test "$enable_shared" = no; then
20775  # Fast installation is not necessary
20776  enable_fast_install=needless
20777fi
20778
20779
20780# The else clause should only fire when bootstrapping the
20781# libtool distribution, otherwise you forgot to ship ltmain.sh
20782# with your package, and you will get complaints that there are
20783# no rules to generate ltmain.sh.
20784if test -f "$ltmain"; then
20785  # See if we are running on zsh, and set the options which allow our commands through
20786  # without removal of \ escapes.
20787  if test -n "${ZSH_VERSION+set}" ; then
20788    setopt NO_GLOB_SUBST
20789  fi
20790  # Now quote all the things that may contain metacharacters while being
20791  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20792  # variables and quote the copies for generation of the libtool script.
20793  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20794    SED SHELL STRIP \
20795    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20796    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20797    deplibs_check_method reload_flag reload_cmds need_locks \
20798    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20799    lt_cv_sys_global_symbol_to_c_name_address \
20800    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20801    old_postinstall_cmds old_postuninstall_cmds \
20802    compiler_GCJ \
20803    CC_GCJ \
20804    LD_GCJ \
20805    lt_prog_compiler_wl_GCJ \
20806    lt_prog_compiler_pic_GCJ \
20807    lt_prog_compiler_static_GCJ \
20808    lt_prog_compiler_no_builtin_flag_GCJ \
20809    export_dynamic_flag_spec_GCJ \
20810    thread_safe_flag_spec_GCJ \
20811    whole_archive_flag_spec_GCJ \
20812    enable_shared_with_static_runtimes_GCJ \
20813    old_archive_cmds_GCJ \
20814    old_archive_from_new_cmds_GCJ \
20815    predep_objects_GCJ \
20816    postdep_objects_GCJ \
20817    predeps_GCJ \
20818    postdeps_GCJ \
20819    compiler_lib_search_path_GCJ \
20820    archive_cmds_GCJ \
20821    archive_expsym_cmds_GCJ \
20822    postinstall_cmds_GCJ \
20823    postuninstall_cmds_GCJ \
20824    old_archive_from_expsyms_cmds_GCJ \
20825    allow_undefined_flag_GCJ \
20826    no_undefined_flag_GCJ \
20827    export_symbols_cmds_GCJ \
20828    hardcode_libdir_flag_spec_GCJ \
20829    hardcode_libdir_flag_spec_ld_GCJ \
20830    hardcode_libdir_separator_GCJ \
20831    hardcode_automatic_GCJ \
20832    module_cmds_GCJ \
20833    module_expsym_cmds_GCJ \
20834    lt_cv_prog_compiler_c_o_GCJ \
20835    exclude_expsyms_GCJ \
20836    include_expsyms_GCJ; do
20837
20838    case $var in
20839    old_archive_cmds_GCJ | \
20840    old_archive_from_new_cmds_GCJ | \
20841    archive_cmds_GCJ | \
20842    archive_expsym_cmds_GCJ | \
20843    module_cmds_GCJ | \
20844    module_expsym_cmds_GCJ | \
20845    old_archive_from_expsyms_cmds_GCJ | \
20846    export_symbols_cmds_GCJ | \
20847    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20848    postinstall_cmds | postuninstall_cmds | \
20849    old_postinstall_cmds | old_postuninstall_cmds | \
20850    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20851      # Double-quote double-evaled strings.
20852      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20853      ;;
20854    *)
20855      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20856      ;;
20857    esac
20858  done
20859
20860  case $lt_echo in
20861  *'\$0 --fallback-echo"')
20862    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20863    ;;
20864  esac
20865
20866cfgfile="$ofile"
20867
20868  cat <<__EOF__ >> "$cfgfile"
20869# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20870
20871# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20872
20873# Shell to use when invoking shell scripts.
20874SHELL=$lt_SHELL
20875
20876# Whether or not to build shared libraries.
20877build_libtool_libs=$enable_shared
20878
20879# Whether or not to build static libraries.
20880build_old_libs=$enable_static
20881
20882# Whether or not to add -lc for building shared libraries.
20883build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20884
20885# Whether or not to disallow shared libs when runtime libs are static
20886allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20887
20888# Whether or not to optimize for fast installation.
20889fast_install=$enable_fast_install
20890
20891# The host system.
20892host_alias=$host_alias
20893host=$host
20894host_os=$host_os
20895
20896# The build system.
20897build_alias=$build_alias
20898build=$build
20899build_os=$build_os
20900
20901# An echo program that does not interpret backslashes.
20902echo=$lt_echo
20903
20904# The archiver.
20905AR=$lt_AR
20906AR_FLAGS=$lt_AR_FLAGS
20907
20908# A C compiler.
20909LTCC=$lt_LTCC
20910
20911# LTCC compiler flags.
20912LTCFLAGS=$lt_LTCFLAGS
20913
20914# A language-specific compiler.
20915CC=$lt_compiler_GCJ
20916
20917# Is the compiler the GNU C compiler?
20918with_gcc=$GCC_GCJ
20919
20920# An ERE matcher.
20921EGREP=$lt_EGREP
20922
20923# The linker used to build libraries.
20924LD=$lt_LD_GCJ
20925
20926# Whether we need hard or soft links.
20927LN_S=$lt_LN_S
20928
20929# A BSD-compatible nm program.
20930NM=$lt_NM
20931
20932# A symbol stripping program
20933STRIP=$lt_STRIP
20934
20935# Used to examine libraries when file_magic_cmd begins "file"
20936MAGIC_CMD=$MAGIC_CMD
20937
20938# Used on cygwin: DLL creation program.
20939DLLTOOL="$DLLTOOL"
20940
20941# Used on cygwin: object dumper.
20942OBJDUMP="$OBJDUMP"
20943
20944# Used on cygwin: assembler.
20945AS="$AS"
20946
20947# The name of the directory that contains temporary libtool files.
20948objdir=$objdir
20949
20950# How to create reloadable object files.
20951reload_flag=$lt_reload_flag
20952reload_cmds=$lt_reload_cmds
20953
20954# How to pass a linker flag through the compiler.
20955wl=$lt_lt_prog_compiler_wl_GCJ
20956
20957# Object file suffix (normally "o").
20958objext="$ac_objext"
20959
20960# Old archive suffix (normally "a").
20961libext="$libext"
20962
20963# Shared library suffix (normally ".so").
20964shrext_cmds='$shrext_cmds'
20965
20966# Executable file suffix (normally "").
20967exeext="$exeext"
20968
20969# Additional compiler flags for building library objects.
20970pic_flag=$lt_lt_prog_compiler_pic_GCJ
20971pic_mode=$pic_mode
20972
20973# What is the maximum length of a command?
20974max_cmd_len=$lt_cv_sys_max_cmd_len
20975
20976# Does compiler simultaneously support -c and -o options?
20977compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20978
20979# Must we lock files when doing compilation?
20980need_locks=$lt_need_locks
20981
20982# Do we need the lib prefix for modules?
20983need_lib_prefix=$need_lib_prefix
20984
20985# Do we need a version for libraries?
20986need_version=$need_version
20987
20988# Whether dlopen is supported.
20989dlopen_support=$enable_dlopen
20990
20991# Whether dlopen of programs is supported.
20992dlopen_self=$enable_dlopen_self
20993
20994# Whether dlopen of statically linked programs is supported.
20995dlopen_self_static=$enable_dlopen_self_static
20996
20997# Compiler flag to prevent dynamic linking.
20998link_static_flag=$lt_lt_prog_compiler_static_GCJ
20999
21000# Compiler flag to turn off builtin functions.
21001no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21002
21003# Compiler flag to allow reflexive dlopens.
21004export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21005
21006# Compiler flag to generate shared objects directly from archives.
21007whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21008
21009# Compiler flag to generate thread-safe objects.
21010thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21011
21012# Library versioning type.
21013version_type=$version_type
21014
21015# Format of library name prefix.
21016libname_spec=$lt_libname_spec
21017
21018# List of archive names.  First name is the real one, the rest are links.
21019# The last name is the one that the linker finds with -lNAME.
21020library_names_spec=$lt_library_names_spec
21021
21022# The coded name of the library, if different from the real name.
21023soname_spec=$lt_soname_spec
21024
21025# Commands used to build and install an old-style archive.
21026RANLIB=$lt_RANLIB
21027old_archive_cmds=$lt_old_archive_cmds_GCJ
21028old_postinstall_cmds=$lt_old_postinstall_cmds
21029old_postuninstall_cmds=$lt_old_postuninstall_cmds
21030
21031# Create an old-style archive from a shared archive.
21032old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21033
21034# Create a temporary old-style archive to link instead of a shared archive.
21035old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21036
21037# Commands used to build and install a shared archive.
21038archive_cmds=$lt_archive_cmds_GCJ
21039archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21040postinstall_cmds=$lt_postinstall_cmds
21041postuninstall_cmds=$lt_postuninstall_cmds
21042
21043# Commands used to build a loadable module (assumed same as above if empty)
21044module_cmds=$lt_module_cmds_GCJ
21045module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21046
21047# Commands to strip libraries.
21048old_striplib=$lt_old_striplib
21049striplib=$lt_striplib
21050
21051# Dependencies to place before the objects being linked to create a
21052# shared library.
21053predep_objects=$lt_predep_objects_GCJ
21054
21055# Dependencies to place after the objects being linked to create a
21056# shared library.
21057postdep_objects=$lt_postdep_objects_GCJ
21058
21059# Dependencies to place before the objects being linked to create a
21060# shared library.
21061predeps=$lt_predeps_GCJ
21062
21063# Dependencies to place after the objects being linked to create a
21064# shared library.
21065postdeps=$lt_postdeps_GCJ
21066
21067# The library search path used internally by the compiler when linking
21068# a shared library.
21069compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21070
21071# Method to check whether dependent libraries are shared objects.
21072deplibs_check_method=$lt_deplibs_check_method
21073
21074# Command to use when deplibs_check_method == file_magic.
21075file_magic_cmd=$lt_file_magic_cmd
21076
21077# Flag that allows shared libraries with undefined symbols to be built.
21078allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21079
21080# Flag that forces no undefined symbols.
21081no_undefined_flag=$lt_no_undefined_flag_GCJ
21082
21083# Commands used to finish a libtool library installation in a directory.
21084finish_cmds=$lt_finish_cmds
21085
21086# Same as above, but a single script fragment to be evaled but not shown.
21087finish_eval=$lt_finish_eval
21088
21089# Take the output of nm and produce a listing of raw symbols and C names.
21090global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21091
21092# Transform the output of nm in a proper C declaration
21093global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21094
21095# Transform the output of nm in a C name address pair
21096global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21097
21098# This is the shared library runtime path variable.
21099runpath_var=$runpath_var
21100
21101# This is the shared library path variable.
21102shlibpath_var=$shlibpath_var
21103
21104# Is shlibpath searched before the hard-coded library search path?
21105shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21106
21107# How to hardcode a shared library path into an executable.
21108hardcode_action=$hardcode_action_GCJ
21109
21110# Whether we should hardcode library paths into libraries.
21111hardcode_into_libs=$hardcode_into_libs
21112
21113# Flag to hardcode \$libdir into a binary during linking.
21114# This must work even if \$libdir does not exist.
21115hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21116
21117# If ld is used when linking, flag to hardcode \$libdir into
21118# a binary during linking. This must work even if \$libdir does
21119# not exist.
21120hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21121
21122# Whether we need a single -rpath flag with a separated argument.
21123hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21124
21125# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21126# resulting binary.
21127hardcode_direct=$hardcode_direct_GCJ
21128
21129# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21130# resulting binary.
21131hardcode_minus_L=$hardcode_minus_L_GCJ
21132
21133# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21134# the resulting binary.
21135hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21136
21137# Set to yes if building a shared library automatically hardcodes DIR into the library
21138# and all subsequent libraries and executables linked against it.
21139hardcode_automatic=$hardcode_automatic_GCJ
21140
21141# Variables whose values should be saved in libtool wrapper scripts and
21142# restored at relink time.
21143variables_saved_for_relink="$variables_saved_for_relink"
21144
21145# Whether libtool must link a program against all its dependency libraries.
21146link_all_deplibs=$link_all_deplibs_GCJ
21147
21148# Compile-time system search path for libraries
21149sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21150
21151# Run-time system search path for libraries
21152sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21153
21154# Fix the shell variable \$srcfile for the compiler.
21155fix_srcfile_path="$fix_srcfile_path_GCJ"
21156
21157# Set to yes if exported symbols are required.
21158always_export_symbols=$always_export_symbols_GCJ
21159
21160# The commands to list exported symbols.
21161export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21162
21163# The commands to extract the exported symbol list from a shared archive.
21164extract_expsyms_cmds=$lt_extract_expsyms_cmds
21165
21166# Symbols that should not be listed in the preloaded symbols.
21167exclude_expsyms=$lt_exclude_expsyms_GCJ
21168
21169# Symbols that must always be exported.
21170include_expsyms=$lt_include_expsyms_GCJ
21171
21172# ### END LIBTOOL TAG CONFIG: $tagname
21173
21174__EOF__
21175
21176
21177else
21178  # If there is no Makefile yet, we rely on a make rule to execute
21179  # `config.status --recheck' to rerun these tests and create the
21180  # libtool script then.
21181  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21182  if test -f "$ltmain_in"; then
21183    test -f Makefile && make "$ltmain"
21184  fi
21185fi
21186
21187
21188ac_ext=c
21189ac_cpp='$CPP $CPPFLAGS'
21190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192ac_compiler_gnu=$ac_cv_c_compiler_gnu
21193
21194CC="$lt_save_CC"
21195
21196	else
21197	  tagname=""
21198	fi
21199	;;
21200
21201      RC)
21202
21203
21204
21205# Source file extension for RC test sources.
21206ac_ext=rc
21207
21208# Object file extension for compiled RC test sources.
21209objext=o
21210objext_RC=$objext
21211
21212# Code to be used in simple compile tests
21213lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21214
21215# Code to be used in simple link tests
21216lt_simple_link_test_code="$lt_simple_compile_test_code"
21217
21218# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21219
21220# If no C compiler was specified, use CC.
21221LTCC=${LTCC-"$CC"}
21222
21223# If no C compiler flags were specified, use CFLAGS.
21224LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21225
21226# Allow CC to be a program name with arguments.
21227compiler=$CC
21228
21229
21230# save warnings/boilerplate of simple test code
21231ac_outfile=conftest.$ac_objext
21232printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21233eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21234_lt_compiler_boilerplate=`cat conftest.err`
21235$rm conftest*
21236
21237ac_outfile=conftest.$ac_objext
21238printf "$lt_simple_link_test_code" >conftest.$ac_ext
21239eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21240_lt_linker_boilerplate=`cat conftest.err`
21241$rm conftest*
21242
21243
21244# Allow CC to be a program name with arguments.
21245lt_save_CC="$CC"
21246CC=${RC-"windres"}
21247compiler=$CC
21248compiler_RC=$CC
21249for cc_temp in $compiler""; do
21250  case $cc_temp in
21251    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21252    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21253    \-*) ;;
21254    *) break;;
21255  esac
21256done
21257cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21258
21259lt_cv_prog_compiler_c_o_RC=yes
21260
21261# The else clause should only fire when bootstrapping the
21262# libtool distribution, otherwise you forgot to ship ltmain.sh
21263# with your package, and you will get complaints that there are
21264# no rules to generate ltmain.sh.
21265if test -f "$ltmain"; then
21266  # See if we are running on zsh, and set the options which allow our commands through
21267  # without removal of \ escapes.
21268  if test -n "${ZSH_VERSION+set}" ; then
21269    setopt NO_GLOB_SUBST
21270  fi
21271  # Now quote all the things that may contain metacharacters while being
21272  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21273  # variables and quote the copies for generation of the libtool script.
21274  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21275    SED SHELL STRIP \
21276    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21277    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21278    deplibs_check_method reload_flag reload_cmds need_locks \
21279    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21280    lt_cv_sys_global_symbol_to_c_name_address \
21281    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21282    old_postinstall_cmds old_postuninstall_cmds \
21283    compiler_RC \
21284    CC_RC \
21285    LD_RC \
21286    lt_prog_compiler_wl_RC \
21287    lt_prog_compiler_pic_RC \
21288    lt_prog_compiler_static_RC \
21289    lt_prog_compiler_no_builtin_flag_RC \
21290    export_dynamic_flag_spec_RC \
21291    thread_safe_flag_spec_RC \
21292    whole_archive_flag_spec_RC \
21293    enable_shared_with_static_runtimes_RC \
21294    old_archive_cmds_RC \
21295    old_archive_from_new_cmds_RC \
21296    predep_objects_RC \
21297    postdep_objects_RC \
21298    predeps_RC \
21299    postdeps_RC \
21300    compiler_lib_search_path_RC \
21301    archive_cmds_RC \
21302    archive_expsym_cmds_RC \
21303    postinstall_cmds_RC \
21304    postuninstall_cmds_RC \
21305    old_archive_from_expsyms_cmds_RC \
21306    allow_undefined_flag_RC \
21307    no_undefined_flag_RC \
21308    export_symbols_cmds_RC \
21309    hardcode_libdir_flag_spec_RC \
21310    hardcode_libdir_flag_spec_ld_RC \
21311    hardcode_libdir_separator_RC \
21312    hardcode_automatic_RC \
21313    module_cmds_RC \
21314    module_expsym_cmds_RC \
21315    lt_cv_prog_compiler_c_o_RC \
21316    exclude_expsyms_RC \
21317    include_expsyms_RC; do
21318
21319    case $var in
21320    old_archive_cmds_RC | \
21321    old_archive_from_new_cmds_RC | \
21322    archive_cmds_RC | \
21323    archive_expsym_cmds_RC | \
21324    module_cmds_RC | \
21325    module_expsym_cmds_RC | \
21326    old_archive_from_expsyms_cmds_RC | \
21327    export_symbols_cmds_RC | \
21328    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21329    postinstall_cmds | postuninstall_cmds | \
21330    old_postinstall_cmds | old_postuninstall_cmds | \
21331    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21332      # Double-quote double-evaled strings.
21333      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21334      ;;
21335    *)
21336      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21337      ;;
21338    esac
21339  done
21340
21341  case $lt_echo in
21342  *'\$0 --fallback-echo"')
21343    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21344    ;;
21345  esac
21346
21347cfgfile="$ofile"
21348
21349  cat <<__EOF__ >> "$cfgfile"
21350# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21351
21352# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21353
21354# Shell to use when invoking shell scripts.
21355SHELL=$lt_SHELL
21356
21357# Whether or not to build shared libraries.
21358build_libtool_libs=$enable_shared
21359
21360# Whether or not to build static libraries.
21361build_old_libs=$enable_static
21362
21363# Whether or not to add -lc for building shared libraries.
21364build_libtool_need_lc=$archive_cmds_need_lc_RC
21365
21366# Whether or not to disallow shared libs when runtime libs are static
21367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21368
21369# Whether or not to optimize for fast installation.
21370fast_install=$enable_fast_install
21371
21372# The host system.
21373host_alias=$host_alias
21374host=$host
21375host_os=$host_os
21376
21377# The build system.
21378build_alias=$build_alias
21379build=$build
21380build_os=$build_os
21381
21382# An echo program that does not interpret backslashes.
21383echo=$lt_echo
21384
21385# The archiver.
21386AR=$lt_AR
21387AR_FLAGS=$lt_AR_FLAGS
21388
21389# A C compiler.
21390LTCC=$lt_LTCC
21391
21392# LTCC compiler flags.
21393LTCFLAGS=$lt_LTCFLAGS
21394
21395# A language-specific compiler.
21396CC=$lt_compiler_RC
21397
21398# Is the compiler the GNU C compiler?
21399with_gcc=$GCC_RC
21400
21401# An ERE matcher.
21402EGREP=$lt_EGREP
21403
21404# The linker used to build libraries.
21405LD=$lt_LD_RC
21406
21407# Whether we need hard or soft links.
21408LN_S=$lt_LN_S
21409
21410# A BSD-compatible nm program.
21411NM=$lt_NM
21412
21413# A symbol stripping program
21414STRIP=$lt_STRIP
21415
21416# Used to examine libraries when file_magic_cmd begins "file"
21417MAGIC_CMD=$MAGIC_CMD
21418
21419# Used on cygwin: DLL creation program.
21420DLLTOOL="$DLLTOOL"
21421
21422# Used on cygwin: object dumper.
21423OBJDUMP="$OBJDUMP"
21424
21425# Used on cygwin: assembler.
21426AS="$AS"
21427
21428# The name of the directory that contains temporary libtool files.
21429objdir=$objdir
21430
21431# How to create reloadable object files.
21432reload_flag=$lt_reload_flag
21433reload_cmds=$lt_reload_cmds
21434
21435# How to pass a linker flag through the compiler.
21436wl=$lt_lt_prog_compiler_wl_RC
21437
21438# Object file suffix (normally "o").
21439objext="$ac_objext"
21440
21441# Old archive suffix (normally "a").
21442libext="$libext"
21443
21444# Shared library suffix (normally ".so").
21445shrext_cmds='$shrext_cmds'
21446
21447# Executable file suffix (normally "").
21448exeext="$exeext"
21449
21450# Additional compiler flags for building library objects.
21451pic_flag=$lt_lt_prog_compiler_pic_RC
21452pic_mode=$pic_mode
21453
21454# What is the maximum length of a command?
21455max_cmd_len=$lt_cv_sys_max_cmd_len
21456
21457# Does compiler simultaneously support -c and -o options?
21458compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21459
21460# Must we lock files when doing compilation?
21461need_locks=$lt_need_locks
21462
21463# Do we need the lib prefix for modules?
21464need_lib_prefix=$need_lib_prefix
21465
21466# Do we need a version for libraries?
21467need_version=$need_version
21468
21469# Whether dlopen is supported.
21470dlopen_support=$enable_dlopen
21471
21472# Whether dlopen of programs is supported.
21473dlopen_self=$enable_dlopen_self
21474
21475# Whether dlopen of statically linked programs is supported.
21476dlopen_self_static=$enable_dlopen_self_static
21477
21478# Compiler flag to prevent dynamic linking.
21479link_static_flag=$lt_lt_prog_compiler_static_RC
21480
21481# Compiler flag to turn off builtin functions.
21482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21483
21484# Compiler flag to allow reflexive dlopens.
21485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21486
21487# Compiler flag to generate shared objects directly from archives.
21488whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21489
21490# Compiler flag to generate thread-safe objects.
21491thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21492
21493# Library versioning type.
21494version_type=$version_type
21495
21496# Format of library name prefix.
21497libname_spec=$lt_libname_spec
21498
21499# List of archive names.  First name is the real one, the rest are links.
21500# The last name is the one that the linker finds with -lNAME.
21501library_names_spec=$lt_library_names_spec
21502
21503# The coded name of the library, if different from the real name.
21504soname_spec=$lt_soname_spec
21505
21506# Commands used to build and install an old-style archive.
21507RANLIB=$lt_RANLIB
21508old_archive_cmds=$lt_old_archive_cmds_RC
21509old_postinstall_cmds=$lt_old_postinstall_cmds
21510old_postuninstall_cmds=$lt_old_postuninstall_cmds
21511
21512# Create an old-style archive from a shared archive.
21513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21514
21515# Create a temporary old-style archive to link instead of a shared archive.
21516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21517
21518# Commands used to build and install a shared archive.
21519archive_cmds=$lt_archive_cmds_RC
21520archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21521postinstall_cmds=$lt_postinstall_cmds
21522postuninstall_cmds=$lt_postuninstall_cmds
21523
21524# Commands used to build a loadable module (assumed same as above if empty)
21525module_cmds=$lt_module_cmds_RC
21526module_expsym_cmds=$lt_module_expsym_cmds_RC
21527
21528# Commands to strip libraries.
21529old_striplib=$lt_old_striplib
21530striplib=$lt_striplib
21531
21532# Dependencies to place before the objects being linked to create a
21533# shared library.
21534predep_objects=$lt_predep_objects_RC
21535
21536# Dependencies to place after the objects being linked to create a
21537# shared library.
21538postdep_objects=$lt_postdep_objects_RC
21539
21540# Dependencies to place before the objects being linked to create a
21541# shared library.
21542predeps=$lt_predeps_RC
21543
21544# Dependencies to place after the objects being linked to create a
21545# shared library.
21546postdeps=$lt_postdeps_RC
21547
21548# The library search path used internally by the compiler when linking
21549# a shared library.
21550compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21551
21552# Method to check whether dependent libraries are shared objects.
21553deplibs_check_method=$lt_deplibs_check_method
21554
21555# Command to use when deplibs_check_method == file_magic.
21556file_magic_cmd=$lt_file_magic_cmd
21557
21558# Flag that allows shared libraries with undefined symbols to be built.
21559allow_undefined_flag=$lt_allow_undefined_flag_RC
21560
21561# Flag that forces no undefined symbols.
21562no_undefined_flag=$lt_no_undefined_flag_RC
21563
21564# Commands used to finish a libtool library installation in a directory.
21565finish_cmds=$lt_finish_cmds
21566
21567# Same as above, but a single script fragment to be evaled but not shown.
21568finish_eval=$lt_finish_eval
21569
21570# Take the output of nm and produce a listing of raw symbols and C names.
21571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21572
21573# Transform the output of nm in a proper C declaration
21574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21575
21576# Transform the output of nm in a C name address pair
21577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21578
21579# This is the shared library runtime path variable.
21580runpath_var=$runpath_var
21581
21582# This is the shared library path variable.
21583shlibpath_var=$shlibpath_var
21584
21585# Is shlibpath searched before the hard-coded library search path?
21586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21587
21588# How to hardcode a shared library path into an executable.
21589hardcode_action=$hardcode_action_RC
21590
21591# Whether we should hardcode library paths into libraries.
21592hardcode_into_libs=$hardcode_into_libs
21593
21594# Flag to hardcode \$libdir into a binary during linking.
21595# This must work even if \$libdir does not exist.
21596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21597
21598# If ld is used when linking, flag to hardcode \$libdir into
21599# a binary during linking. This must work even if \$libdir does
21600# not exist.
21601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21602
21603# Whether we need a single -rpath flag with a separated argument.
21604hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21605
21606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21607# resulting binary.
21608hardcode_direct=$hardcode_direct_RC
21609
21610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21611# resulting binary.
21612hardcode_minus_L=$hardcode_minus_L_RC
21613
21614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21615# the resulting binary.
21616hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21617
21618# Set to yes if building a shared library automatically hardcodes DIR into the library
21619# and all subsequent libraries and executables linked against it.
21620hardcode_automatic=$hardcode_automatic_RC
21621
21622# Variables whose values should be saved in libtool wrapper scripts and
21623# restored at relink time.
21624variables_saved_for_relink="$variables_saved_for_relink"
21625
21626# Whether libtool must link a program against all its dependency libraries.
21627link_all_deplibs=$link_all_deplibs_RC
21628
21629# Compile-time system search path for libraries
21630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21631
21632# Run-time system search path for libraries
21633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21634
21635# Fix the shell variable \$srcfile for the compiler.
21636fix_srcfile_path="$fix_srcfile_path_RC"
21637
21638# Set to yes if exported symbols are required.
21639always_export_symbols=$always_export_symbols_RC
21640
21641# The commands to list exported symbols.
21642export_symbols_cmds=$lt_export_symbols_cmds_RC
21643
21644# The commands to extract the exported symbol list from a shared archive.
21645extract_expsyms_cmds=$lt_extract_expsyms_cmds
21646
21647# Symbols that should not be listed in the preloaded symbols.
21648exclude_expsyms=$lt_exclude_expsyms_RC
21649
21650# Symbols that must always be exported.
21651include_expsyms=$lt_include_expsyms_RC
21652
21653# ### END LIBTOOL TAG CONFIG: $tagname
21654
21655__EOF__
21656
21657
21658else
21659  # If there is no Makefile yet, we rely on a make rule to execute
21660  # `config.status --recheck' to rerun these tests and create the
21661  # libtool script then.
21662  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21663  if test -f "$ltmain_in"; then
21664    test -f Makefile && make "$ltmain"
21665  fi
21666fi
21667
21668
21669ac_ext=c
21670ac_cpp='$CPP $CPPFLAGS'
21671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21673ac_compiler_gnu=$ac_cv_c_compiler_gnu
21674
21675CC="$lt_save_CC"
21676
21677	;;
21678
21679      *)
21680	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21681echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21682   { (exit 1); exit 1; }; }
21683	;;
21684      esac
21685
21686      # Append the new tag name to the list of available tags.
21687      if test -n "$tagname" ; then
21688      available_tags="$available_tags $tagname"
21689    fi
21690    fi
21691  done
21692  IFS="$lt_save_ifs"
21693
21694  # Now substitute the updated list of available tags.
21695  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21696    mv "${ofile}T" "$ofile"
21697    chmod +x "$ofile"
21698  else
21699    rm -f "${ofile}T"
21700    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21701echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21702   { (exit 1); exit 1; }; }
21703  fi
21704fi
21705
21706
21707
21708# This can be used to rebuild libtool when needed
21709LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21710
21711# Always use our own libtool.
21712LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21713
21714# Prevent multiple expansion
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
21727 # AC_REQUIRE([AC_COIN_DLFCN_H])
21728
21729# NEW: If libtool exists in the directory higher up, we use that one
21730#      instead of creating a new one
21731
21732# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
21733# out in front of this macro body. You'll notice that LIBTOOL is already
21734# defined here.  We'll have to count on this macro not being called if libtool
21735# already exists, or at least move the libtool fixes outside the conditional.
21736# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
21737# This test is therefore removed.  -- lh, 061214 --
21738# if test "x$LIBTOOL" = x; then
21739
21740# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
21751
21752
21753
21754  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
21755echo "$as_me: Build is \"$build\"." >&6;}
21756  mydos2unix='| dos2unix'
21757  case $build in
21758    *-mingw*)
21759      CYGPATH_W=echo
21760      ;;
21761  esac
21762
21763  case $build in
21764    # Here we need to check if -m32 is specified.  If so, we need to correct
21765    # sys_lib_search_path_spec
21766    *-cygwin* | *-mingw*)
21767       case "$CXX" in
21768    clang* )
21769      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
21770      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
21771echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
21772      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21773	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21774	  -e 's|libext="lib"|libext="a"|' \
21775      libtool > conftest.bla
21776      ;;
21777    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21778      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
21779echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
21780      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21781	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21782	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21783	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21784	  -e 's%lib /OUT:%lib -OUT:%' \
21785	  -e "s%cygpath -w%$CYGPATH_W%" \
21786	  -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%' \
21787	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
21788	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
21789	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
21790	  -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"%' \
21791      libtool > conftest.bla
21792      ;;
21793    *)
21794      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
21795echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
21796      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21797	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21798	  -e 's|libext="lib"|libext="a"|' \
21799      libtool > conftest.bla
21800      ;;
21801  esac
21802  mv conftest.bla libtool
21803  chmod 755 libtool
21804
21805      ;;
21806    *x86_64-*)
21807      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
21808        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
21809echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
21810        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
21811        mv conftest.bla libtool
21812        chmod 755 libtool
21813      fi
21814      ;;
21815
21816    *-solaris*)
21817       if test "$GCC" = yes && \
21818     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
21819    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
21820    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
21821      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
21822echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
21823      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
21824      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
21825      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
21826	# AC_MSG_NOTICE(Compensating for broken gcc)
21827	for lib in $fixlibtmp ; do
21828	  if test -d "${lib}${hdwisa}" ; then
21829	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
21830	  fi
21831	done
21832	syslibpath64="${syslibpath64} ${fixlibtmp}"
21833      else
21834	syslibpath64="$fixlibtmp"
21835      fi
21836      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
21837      mv conftest.bla libtool
21838      chmod 755 libtool
21839    fi
21840    # AC_MSG_NOTICE(Result is )
21841    # $EGREP 'sys_lib_search_path_spec=' libtool
21842  fi
21843      ;;
21844    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
21845    *-darwin*)
21846      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
21847echo "$as_me: Applying patches to libtool for Darwin" >&6;}
21848      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"/' \
21849        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
21850      libtool > conftest.bla
21851
21852      mv conftest.bla libtool
21853      chmod 755 libtool
21854      ;;
21855  esac
21856# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
21857# the macro. -- lh, 061214 --
21858# fi
21859
21860# AC_MSG_NOTICE([End libtool initialisation.])
21861
21862# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
21863  # set RPATH_FLAGS to the compiler link flags required to hardcode location
21864  # of the shared objects
21865  RPATH_FLAGS=
21866
21867if test $enable_shared = yes; then
21868  case $build in
21869    *-linux-*)
21870      if test "$GXX" = "yes"; then
21871        RPATH_FLAGS=
21872        for dir in $abs_lib_dir; do
21873          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
21874        done
21875      fi ;;
21876    *-darwin*)
21877        RPATH_FLAGS=nothing ;;
21878    *-ibm-*)
21879      case "$CXX" in
21880      xlC* | */xlC* | mpxlC* | */mpxlC*)
21881        RPATH_FLAGS=nothing ;;
21882      esac ;;
21883    *-hp-*)
21884        RPATH_FLAGS=nothing ;;
21885    *-mingw32)
21886        RPATH_FLAGS=nothing ;;
21887    *-*-solaris*)
21888        RPATH_FLAGS=
21889        for dir in $abs_lib_dir; do
21890          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
21891        done
21892  esac
21893
21894  if test "$RPATH_FLAGS" = ""; then
21895    { 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
21896echo "$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;}
21897  fi
21898  if test "$RPATH_FLAGS" = "nothing"; then
21899    RPATH_FLAGS=
21900  fi
21901fi
21902
21903
21904
21905
21906else
21907
21908  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
21909echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
21910  # get all missing information from the config.log file
21911
21912  # output variables and defines
21913  as_save_IFS=$IFS
21914  IFS='
21915'
21916  for oneline in `cat $coin_config_dir/config.status`; do
21917    case "$oneline" in
21918         # First some automake conditionals
21919      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
21920      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
21921      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
21922      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
21923        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
21924#        echo "$command"
21925        eval "$command"
21926        ;;
21927      s,@DEFS@* )
21928        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
21929#        echo "$command"
21930        eval "$command"
21931        ;;
21932    esac
21933  done
21934  IFS=$as_save_IFS
21935
21936  # And some defines (assuming here that the packages base dir
21937  # doesn't have a config.h file
21938  for word in $defsline; do
21939#    echo word $word
21940    case $word in
21941      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
21942        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
21943#        echo dd $i
21944        echo $i >>confdefs.h
21945        ;;
21946    esac
21947  done
21948fi
21949
21950# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
21951
21952# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
21953if test "${enable_dependency_linking+set}" = set; then
21954  enableval="$enable_dependency_linking"
21955  dependency_linking="$enableval"
21956else
21957  dependency_linking=auto
21958fi;
21959
21960if test "$dependency_linking" = auto; then
21961  # On Cygwin and AIX, building DLLs doesn't work
21962  dependency_linking=no
21963  if test x"$coin_disable_shared" = xno; then
21964    case $build in
21965      *-cygwin* | *-mingw*)
21966        case "$CC" in
21967          clang* )
21968            dependency_linking=yes
21969            ;;
21970          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21971            dependency_linking=no
21972            ;;
21973          *gcc*)
21974            dependency_linking=yes
21975            ;;
21976          *)
21977            dependency_linking=yes
21978            ;;
21979        esac
21980        ;;
21981      *)
21982        dependency_linking=yes
21983        ;;
21984    esac
21985  fi
21986fi
21987
21988if test "$dependency_linking" = yes ;
21989then
21990  LT_LDFLAGS="-no-undefined"
21991else
21992  LT_LDFLAGS=
21993fi
21994
21995
21996
21997if test "$dependency_linking" = yes; then
21998  DEPENDENCY_LINKING_TRUE=
21999  DEPENDENCY_LINKING_FALSE='#'
22000else
22001  DEPENDENCY_LINKING_TRUE='#'
22002  DEPENDENCY_LINKING_FALSE=
22003fi
22004
22005
22006# Check if we want to set the library version
22007echo "$as_me:$LINENO: checking if library version is set" >&5
22008echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
22009if test x"$coin_libversion" != x; then
22010  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
22011  echo "$as_me:$LINENO: result: $coin_libversion" >&5
22012echo "${ECHO_T}$coin_libversion" >&6
22013else
22014  echo "$as_me:$LINENO: result: no" >&5
22015echo "${ECHO_T}no" >&6
22016fi
22017
22018
22019
22020#END
22021}
22022
22023# Get the EXEXT variable for CYGWIN
22024
22025
22026#############################################################################
22027#                            COIN-OR components                             #
22028#############################################################################
22029
22030
22031# Check whether --enable-pkg-config or --disable-pkg-config was given.
22032if test "${enable_pkg_config+set}" = set; then
22033  enableval="$enable_pkg_config"
22034  use_pkgconfig="$enableval"
22035else
22036  if test x$coin_cc_is_cl = xtrue; then
22037     use_pkgconfig=no
22038   else
22039     use_pkgconfig=yes
22040   fi
22041fi;
22042
22043if test $use_pkgconfig = yes ; then
22044  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22045    if test -n "$ac_tool_prefix"; then
22046  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22047set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22048echo "$as_me:$LINENO: checking for $ac_word" >&5
22049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22050if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
22051  echo $ECHO_N "(cached) $ECHO_C" >&6
22052else
22053  if test -n "$PKG_CONFIG"; then
22054  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
22055else
22056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22057for as_dir in $PATH
22058do
22059  IFS=$as_save_IFS
22060  test -z "$as_dir" && as_dir=.
22061  for ac_exec_ext in '' $ac_executable_extensions; do
22062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22063    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
22064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22065    break 2
22066  fi
22067done
22068done
22069
22070fi
22071fi
22072PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
22073if test -n "$PKG_CONFIG"; then
22074  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22075echo "${ECHO_T}$PKG_CONFIG" >&6
22076else
22077  echo "$as_me:$LINENO: result: no" >&5
22078echo "${ECHO_T}no" >&6
22079fi
22080
22081fi
22082if test -z "$ac_cv_prog_PKG_CONFIG"; then
22083  ac_ct_PKG_CONFIG=$PKG_CONFIG
22084  # Extract the first word of "pkg-config", so it can be a program name with args.
22085set dummy pkg-config; ac_word=$2
22086echo "$as_me:$LINENO: checking for $ac_word" >&5
22087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22088if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
22089  echo $ECHO_N "(cached) $ECHO_C" >&6
22090else
22091  if test -n "$ac_ct_PKG_CONFIG"; then
22092  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
22093else
22094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22095for as_dir in $PATH
22096do
22097  IFS=$as_save_IFS
22098  test -z "$as_dir" && as_dir=.
22099  for ac_exec_ext in '' $ac_executable_extensions; do
22100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22101    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
22102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22103    break 2
22104  fi
22105done
22106done
22107
22108fi
22109fi
22110ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
22111if test -n "$ac_ct_PKG_CONFIG"; then
22112  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
22113echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
22114else
22115  echo "$as_me:$LINENO: result: no" >&5
22116echo "${ECHO_T}no" >&6
22117fi
22118
22119  PKG_CONFIG=$ac_ct_PKG_CONFIG
22120else
22121  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
22122fi
22123
22124  fi
22125  if test -n "$PKG_CONFIG"; then
22126    _pkg_min_version=0.16.0
22127    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22128echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
22129    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22130      echo "$as_me:$LINENO: result: yes" >&5
22131echo "${ECHO_T}yes" >&6
22132    else
22133      echo "$as_me:$LINENO: result: no" >&5
22134echo "${ECHO_T}no" >&6
22135      PKG_CONFIG=""
22136    fi
22137  fi
22138
22139  # check if pkg-config supports the short-errors flag
22140  if test -n "$PKG_CONFIG" && \
22141    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22142    pkg_short_errors=" --short-errors "
22143  else
22144    pkg_short_errors=""
22145  fi
22146fi
22147
22148
22149
22150if test -n "$PKG_CONFIG"; then
22151  COIN_HAS_PKGCONFIG_TRUE=
22152  COIN_HAS_PKGCONFIG_FALSE='#'
22153else
22154  COIN_HAS_PKGCONFIG_TRUE='#'
22155  COIN_HAS_PKGCONFIG_FALSE=
22156fi
22157
22158
22159
22160# assemble pkg-config search path for installed projects
22161COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22162
22163# 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
22164# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
22165# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
22166if test "x${prefix}" = xNONE ; then
22167  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
22168else
22169  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
22170fi
22171
22172
22173# Check whether --with-coin-instdir or --without-coin-instdir was given.
22174if test "${with_coin_instdir+set}" = set; then
22175  withval="$with_coin_instdir"
22176  if test -d "$withval"; then : ; else
22177     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
22178echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
22179   { (exit 1); exit 1; }; }
22180   fi
22181   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
22182
22183fi;
22184
22185
22186
22187# assemble additional pkg-config search paths for uninstalled projects
22188if test x$coin_projectdir = xyes ; then
22189  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
22190  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
22191  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
22192  # 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)
22193  COIN_PKG_CONFIG_PATH_UNINSTALLED=
22194  if test -f ../coin_subdirs.txt ; then
22195    for i in `cat ../coin_subdirs.txt` ; do
22196      if test -d ../$i ; then
22197        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
22198      fi
22199      if test -d ../$i/pkgconfig ; then
22200        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
22201      fi
22202    done
22203  fi
22204
22205  if test -f ../../coin_subdirs.txt ; then
22206    for i in `cat ../../coin_subdirs.txt` ; do
22207      if test -d ../../$i ; then
22208        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
22209      fi
22210      if test -d ../../$i/pkgconfig ; then
22211        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
22212      fi
22213    done
22214  fi
22215
22216
22217fi
22218
22219if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
22220  { 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
22221echo "$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;}
22222fi
22223
22224
22225
22226echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils" >&5
22227echo $ECHO_N "checking for COIN-OR package CoinUtils... $ECHO_C" >&6
22228
22229coin_has_coinutils=notGiven
22230
22231# check if user wants to skip package in any case
22232if test x"$COIN_SKIP_PROJECTS" != x; then
22233  for dir in $COIN_SKIP_PROJECTS; do
22234    if test $dir = "CoinUtils"; then
22235      coin_has_coinutils=skipping
22236    fi
22237  done
22238fi
22239
22240if test "$coin_has_coinutils" != skipping; then
22241
22242# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
22243if test "${with_coinutils+set}" = set; then
22244  withval="$with_coinutils"
22245  if test "$withval" = no ; then
22246       coin_has_coinutils=skipping
22247     fi
22248
22249fi;
22250fi
22251
22252COINUTILS_LIBS=
22253COINUTILS_CFLAGS=
22254COINUTILS_DATA=
22255COINUTILS_DEPENDENCIES=
22256COINUTILS_PCLIBS=
22257COINUTILS_PCREQUIRES=
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22276if test $coin_has_coinutils != skipping; then
22277
22278# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
22279if test "${with_coinutils_lib+set}" = set; then
22280  withval="$with_coinutils_lib"
22281  if test "$withval" = no ; then
22282       coin_has_coinutils=skipping
22283     else
22284       coin_has_coinutils=yes
22285       COINUTILS_LIBS="$withval"
22286       COINUTILS_PCLIBS="$withval"
22287
22288         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
22289         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
22290
22291       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22292       if test -z "$PKG_CONFIG" ; then
22293         COINUTILS_LIBS_INSTALLED="$withval"
22294         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
22295       fi
22296     fi
22297
22298fi;
22299fi
22300
22301if test $coin_has_coinutils != skipping; then
22302
22303# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
22304if test "${with_coinutils_incdir+set}" = set; then
22305  withval="$with_coinutils_incdir"
22306  if test "$withval" = no ; then
22307       coin_has_coinutils=skipping
22308     else
22309       coin_has_coinutils=yes
22310       COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`"
22311       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
22312       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22313       if test -z "$PKG_CONFIG" ; then
22314         COINUTILS_CFLAGS_INSTALLED="$COINUTILS_CFLAGS"
22315         CGLCONICLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
22316       fi
22317     fi
22318
22319fi;
22320fi
22321
22322if test $coin_has_coinutils != skipping; then
22323
22324# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
22325if test "${with_coinutils_datadir+set}" = set; then
22326  withval="$with_coinutils_datadir"
22327  if test "$withval" = no ; then
22328       coin_has_coinutils=skipping
22329     else
22330       coin_has_coinutils=yes
22331       COINUTILS_DATA="$withval"
22332       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22333       if test -z "$PKG_CONFIG" ; then
22334         COINUTILS_DATA_INSTALLED="$withval"
22335       fi
22336     fi
22337
22338fi;
22339fi
22340
22341if test $coin_has_coinutils = notGiven; then
22342  if test -n "$PKG_CONFIG" ; then
22343    # set search path for pkg-config
22344    # need to export variable to be sure that the following pkg-config gets these values
22345    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22346    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22347    export PKG_CONFIG_PATH
22348
22349    # let pkg-config do it's magic
22350
22351
22352
22353if test -n "$PKG_CONFIG" ; then
22354  if $PKG_CONFIG --exists "coinutils"; then
22355    COINUTILS_VERSIONS=`$PKG_CONFIG --modversion "coinutils" 2>/dev/null | tr '\n' ' '`
22356     cflags=`$PKG_CONFIG --cflags "coinutils" 2>/dev/null`
22357    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22358	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22359	# but only do this if is not trivial
22360    if test "$CYGPATH_W" != "echo" ; then
22361      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22362      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22363    fi
22364    COINUTILS_CFLAGS="$cflags"
22365    COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils" 2>/dev/null`
22366    COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils" 2>/dev/null`
22367     coin_has_coinutils=yes
22368        echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5
22369echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6
22370
22371        # adjust linker flags for (i)cl compiler
22372        # 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)
22373        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22374        then
22375          COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22376        fi
22377        COINUTILS_PCREQUIRES="coinutils"
22378
22379        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
22380
22381          CGLCONICLIB_PCREQUIRES="coinutils $CGLCONICLIB_PCREQUIRES"
22382          CGLCONICLIB_CFLAGS="$COINUTILS_CFLAGS $CGLCONICLIB_CFLAGS"
22383          CGLCONICLIB_LIBS="$COINUTILS_LIBS $CGLCONICLIB_LIBS"
22384
22385
22386
22387  else
22388    COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"`
22389      coin_has_coinutils=notGiven
22390        echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5
22391echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6
22392
22393  fi
22394else
22395  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
22396echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
22397   { (exit 1); exit 1; }; }
22398fi
22399
22400
22401
22402
22403    # reset PKG_CONFIG_PATH variable
22404    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22405    export PKG_CONFIG_PATH
22406
22407  else
22408    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22409echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22410
22411echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils (fallback)" >&5
22412echo $ECHO_N "checking for COIN-OR package CoinUtils (fallback)... $ECHO_C" >&6
22413
22414coin_has_coinutils=notGiven
22415COINUTILS_LIBS=
22416COINUTILS_LIBS_INSTALLED=
22417COINUTILS_CFLAGS=
22418COINUTILS_CFLAGS_INSTALLED=
22419COINUTILS_DATA=
22420COINUTILS_DATA_INSTALLED=
22421COINUTILS_PCLIBS=
22422COINUTILS_PCREQUIRES=
22423
22424# initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22425projtoprocess="coinutils"
22426
22427# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22428# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22429# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22430# also, we setup the DATA variable
22431allproj=""
22432allpcfiles=""
22433allpcifiles=""
22434while test "x$projtoprocess" != x ; do
22435
22436  for proj in $projtoprocess ; do
22437    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22438    pcfile=""
22439    save_IFS="$IFS"
22440    IFS=":"
22441    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22442      # 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
22443      if test -r "$dir/${proj}-uninstalled.pc" ; then
22444        pcfile="$dir/$proj-uninstalled.pc"
22445        if test -r "$dir/${proj}.pc" ; then
22446          pcifile="$dir/${proj}.pc"
22447        else
22448          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22449echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22450          pcifile=
22451        fi
22452        break
22453      fi
22454    done
22455    IFS="$save_IFS"
22456
22457    if test "x$pcfile" != x ; then
22458      # read dependencies from $pcfile and filter it
22459      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
22460
22461      # add projrequires to the front of the list of projects that have to be processed next
22462      # at the same time, remove $proj from this list
22463      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22464
22465      # read DATA from $pcfile, if _DATA is still empty
22466      if test "x$COINUTILS_DATA" = x ; then
22467        projdatadir=
22468        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22469        eval `sh -c "$pcfilemod"`
22470        COINUTILS_DATA="$projdatadir"
22471      fi
22472
22473      allproj="$allproj $proj"
22474      allpcfiles="$pcfile:$allpcfiles"
22475
22476    else
22477      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22478echo "${ECHO_T}no, dependency $proj not available" >&6
22479      allproj=fail
22480      break 2
22481    fi
22482
22483    if test "x$pcifile" != x ; then
22484      allpcifiles="$pcifile:$allpcifiles"
22485
22486      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22487      if test "x$COINUTILS_DATA_INSTALLED" = x ; then
22488        projdatadir=
22489        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22490        eval `sh -c "$pcifilemod"`
22491        if test "${CYGPATH_W}" != "echo"; then
22492          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22493        fi
22494        COINUTILS_DATA_INSTALLED="$projdatadir"
22495      fi
22496
22497    fi
22498
22499    break
22500  done
22501
22502  # remove spaces on begin of $projtoprocess
22503  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22504
22505done
22506
22507if test "$allproj" != fail ; then
22508
22509  # now go through the list of .pc files and assemble compiler and linker flags
22510  # important is here to obey the reverse order that has been setup before,
22511  # since then libraries that are required by several others should be after these other libraries
22512  pcfilesprocessed=""
22513
22514  save_IFS="$IFS"
22515  IFS=":"
22516  for pcfile in $allpcfiles ; do
22517
22518    # if $pcfile has been processed already, skip this round
22519    if test "x$pcfilesprocessed" != x ; then
22520      for pcfiledone in $pcfilesprocessed ; do
22521        if test "$pcfiledone" = "$pcfile" ; then
22522          continue 2
22523        fi
22524      done
22525    fi
22526
22527    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22528    #   replace "Libs:" by "echo projlibs="
22529    #   replace "Cflags:" by "echo projcflags="
22530    #   remove every line starting with <some word>:
22531    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22532
22533    # set projcflags and projlibs variables by running $pcfilemod
22534    # 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
22535    projcflags=
22536    projlibs=
22537    IFS="$save_IFS"
22538    eval `sh -c "$pcfilemod"`
22539    IFS=":"
22540
22541    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22542    if test "${CYGPATH_W}" != "echo"; then
22543      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22544    fi
22545    COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS"
22546
22547    # set LIBS variable
22548    COINUTILS_LIBS="$projlibs $COINUTILS_LIBS"
22549
22550    # remember that we have processed $pcfile
22551    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22552
22553  done
22554  IFS="$save_IFS"
22555
22556
22557  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22558  # important is here again to obey the reverse order that has been setup before,
22559  # since then libraries that are required by several others should be after these other libraries
22560  pcfilesprocessed=""
22561
22562  save_IFS="$IFS"
22563  IFS=":"
22564  for pcfile in $allpcifiles ; do
22565
22566    # if $pcfile has been processed already, skip this round
22567    if test "x$pcfilesprocessed" != x ; then
22568      for pcfiledone in $pcfilesprocessed ; do
22569        if test "$pcfiledone" = "$pcfile" ; then
22570          continue 2
22571        fi
22572      done
22573    fi
22574
22575    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22576    #   replace "Libs:" by "echo projlibs="
22577    #   replace "Cflags:" by "echo projcflags="
22578    #   remove every line starting with <some word>:
22579    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22580
22581    # set projcflags and projlibs variables by running $pcfilemod
22582    # 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
22583    projcflags=
22584    projlibs=
22585    IFS="$save_IFS"
22586    eval `sh -c "$pcfilemod"`
22587    IFS=":"
22588
22589    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22590    if test "${CYGPATH_W}" != "echo"; then
22591      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22592    fi
22593    COINUTILS_CFLAGS_INSTALLED="$projcflags $COINUTILS_CFLAGS_INSTALLED"
22594
22595    # set LIBS variable
22596    COINUTILS_LIBS_INSTALLED="$projlibs $COINUTILS_LIBS_INSTALLED"
22597
22598    # remember that we have processed $pcfile
22599    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22600
22601  done
22602  IFS="$save_IFS"
22603
22604
22605  # finish up
22606  coin_has_coinutils=yes
22607  echo "$as_me:$LINENO: result: yes" >&5
22608echo "${ECHO_T}yes" >&6
22609
22610cat >>confdefs.h <<\_ACEOF
22611#define COIN_HAS_COINUTILS 1
22612_ACEOF
22613
22614
22615  # adjust linker flags for (i)cl compiler
22616  # 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),
22617  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22618  #    everything of the form "-lname" by "libname.lib", and
22619  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22620  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22621  then
22622    COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22623    COINUTILS_LIBS_INSTALLED=`echo " $COINUTILS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22624  fi
22625
22626  COINUTILS_PCREQUIRES="coinutils"
22627
22628    CGLCONICLIB_PCREQUIRES="coinutils $CGLCONICLIB_PCREQUIRES"
22629    CGLCONICLIB_CFLAGS="$COINUTILS_CFLAGS $CGLCONICLIB_CFLAGS"
22630    CGLCONICLIB_LIBS="$COINUTILS_LIBS $CGLCONICLIB_LIBS"
22631    CGLCONICLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
22632    CGLCONICLIB_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
22633
22634
22635fi
22636
22637
22638
22639if test $coin_has_coinutils != notGiven &&
22640                test $coin_has_coinutils != skipping; then
22641  COIN_HAS_COINUTILS_TRUE=
22642  COIN_HAS_COINUTILS_FALSE='#'
22643else
22644  COIN_HAS_COINUTILS_TRUE='#'
22645  COIN_HAS_COINUTILS_FALSE=
22646fi
22647
22648
22649
22650  fi
22651
22652else
22653  echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
22654echo "${ECHO_T}$coin_has_coinutils" >&6
22655fi
22656
22657if test $coin_has_coinutils != skipping &&
22658   test $coin_has_coinutils != notGiven ; then
22659
22660cat >>confdefs.h <<\_ACEOF
22661#define COIN_HAS_COINUTILS 1
22662_ACEOF
22663
22664
22665  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22666if test "${enable_interpackage_dependencies+set}" = set; then
22667  enableval="$enable_interpackage_dependencies"
22668
22669else
22670  enable_interpackage_dependencies=yes
22671fi;
22672
22673  if test $enable_interpackage_dependencies = yes ; then
22674     # construct dependencies variables from LIBS variables
22675     # we add an extra space in LIBS so we can substitute out everything starting with " -"
22676     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22677     # then remove everything of the form -xxx
22678     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22679     COINUTILS_DEPENDENCIES=`echo " $COINUTILS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22680
22681       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22682
22683  fi
22684
22685  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
22686    if test -n "$COINUTILS_CFLAGS" ; then
22687      { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
22688echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
22689    fi
22690    if test -n "$COINUTILS_LIBS" ; then
22691      { echo "$as_me:$LINENO: CoinUtils LIBS   are $COINUTILS_LIBS" >&5
22692echo "$as_me: CoinUtils LIBS   are $COINUTILS_LIBS" >&6;}
22693    fi
22694    if test -n "$COINUTILS_DEPENDENCIES" ; then
22695      { echo "$as_me:$LINENO: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&5
22696echo "$as_me: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&6;}
22697    fi
22698    if test -n "$COINUTILS_DATA" ; then
22699      { echo "$as_me:$LINENO: CoinUtils DATA   is  $COINUTILS_DATA" >&5
22700echo "$as_me: CoinUtils DATA   is  $COINUTILS_DATA" >&6;}
22701    fi
22702    if test -n "$COINUTILS_PCLIBS" ; then
22703      { echo "$as_me:$LINENO: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&5
22704echo "$as_me: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&6;}
22705    fi
22706    if test -n "$COINUTILS_PCREQUIRES" ; then
22707      { echo "$as_me:$LINENO: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&5
22708echo "$as_me: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&6;}
22709    fi
22710
22711      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
22712echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
22713      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
22714echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
22715      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
22716echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
22717
22718  fi
22719fi
22720
22721# Define the Makefile conditional
22722
22723
22724if test $coin_has_coinutils != notGiven &&
22725                test $coin_has_coinutils != skipping; then
22726  COIN_HAS_COINUTILS_TRUE=
22727  COIN_HAS_COINUTILS_FALSE='#'
22728else
22729  COIN_HAS_COINUTILS_TRUE='#'
22730  COIN_HAS_COINUTILS_FALSE=
22731fi
22732
22733
22734
22735if test $coin_has_coinutils != yes ; then
22736  { { echo "$as_me:$LINENO: error: Required package CoinUtils is not available." >&5
22737echo "$as_me: error: Required package CoinUtils is not available." >&2;}
22738   { (exit 1); exit 1; }; }
22739fi
22740
22741
22742echo "$as_me:$LINENO: checking for COIN-OR package Osi" >&5
22743echo $ECHO_N "checking for COIN-OR package Osi... $ECHO_C" >&6
22744
22745coin_has_osi=notGiven
22746
22747# check if user wants to skip package in any case
22748if test x"$COIN_SKIP_PROJECTS" != x; then
22749  for dir in $COIN_SKIP_PROJECTS; do
22750    if test $dir = "Osi"; then
22751      coin_has_osi=skipping
22752    fi
22753  done
22754fi
22755
22756if test "$coin_has_osi" != skipping; then
22757
22758# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
22759if test "${with_osi+set}" = set; then
22760  withval="$with_osi"
22761  if test "$withval" = no ; then
22762       coin_has_osi=skipping
22763     fi
22764
22765fi;
22766fi
22767
22768OSI_LIBS=
22769OSI_CFLAGS=
22770OSI_DATA=
22771OSI_DEPENDENCIES=
22772OSI_PCLIBS=
22773OSI_PCREQUIRES=
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22792if test $coin_has_osi != skipping; then
22793
22794# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
22795if test "${with_osi_lib+set}" = set; then
22796  withval="$with_osi_lib"
22797  if test "$withval" = no ; then
22798       coin_has_osi=skipping
22799     else
22800       coin_has_osi=yes
22801       OSI_LIBS="$withval"
22802       OSI_PCLIBS="$withval"
22803
22804         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
22805         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
22806
22807       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22808       if test -z "$PKG_CONFIG" ; then
22809         OSI_LIBS_INSTALLED="$withval"
22810         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
22811       fi
22812     fi
22813
22814fi;
22815fi
22816
22817if test $coin_has_osi != skipping; then
22818
22819# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
22820if test "${with_osi_incdir+set}" = set; then
22821  withval="$with_osi_incdir"
22822  if test "$withval" = no ; then
22823       coin_has_osi=skipping
22824     else
22825       coin_has_osi=yes
22826       OSI_CFLAGS="-I`${CYGPATH_W} $withval`"
22827       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
22828       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22829       if test -z "$PKG_CONFIG" ; then
22830         OSI_CFLAGS_INSTALLED="$OSI_CFLAGS"
22831         CGLCONICLIB_CFLAGS_INSTALLED="$OSI_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
22832       fi
22833     fi
22834
22835fi;
22836fi
22837
22838if test $coin_has_osi != skipping; then
22839
22840# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
22841if test "${with_osi_datadir+set}" = set; then
22842  withval="$with_osi_datadir"
22843  if test "$withval" = no ; then
22844       coin_has_osi=skipping
22845     else
22846       coin_has_osi=yes
22847       OSI_DATA="$withval"
22848       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22849       if test -z "$PKG_CONFIG" ; then
22850         OSI_DATA_INSTALLED="$withval"
22851       fi
22852     fi
22853
22854fi;
22855fi
22856
22857if test $coin_has_osi = notGiven; then
22858  if test -n "$PKG_CONFIG" ; then
22859    # set search path for pkg-config
22860    # need to export variable to be sure that the following pkg-config gets these values
22861    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22862    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22863    export PKG_CONFIG_PATH
22864
22865    # let pkg-config do it's magic
22866
22867
22868
22869if test -n "$PKG_CONFIG" ; then
22870  if $PKG_CONFIG --exists "osi"; then
22871    OSI_VERSIONS=`$PKG_CONFIG --modversion "osi" 2>/dev/null | tr '\n' ' '`
22872     cflags=`$PKG_CONFIG --cflags "osi" 2>/dev/null`
22873    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22874	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22875	# but only do this if is not trivial
22876    if test "$CYGPATH_W" != "echo" ; then
22877      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22878      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22879    fi
22880    OSI_CFLAGS="$cflags"
22881    OSI_LIBS=`$PKG_CONFIG --libs "osi" 2>/dev/null`
22882    OSI_DATA=`$PKG_CONFIG --variable=datadir "osi" 2>/dev/null`
22883     coin_has_osi=yes
22884        echo "$as_me:$LINENO: result: yes: $OSI_VERSIONS" >&5
22885echo "${ECHO_T}yes: $OSI_VERSIONS" >&6
22886
22887        # adjust linker flags for (i)cl compiler
22888        # 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)
22889        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22890        then
22891          OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22892        fi
22893        OSI_PCREQUIRES="osi"
22894
22895        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
22896
22897          CGLCONICLIB_PCREQUIRES="osi $CGLCONICLIB_PCREQUIRES"
22898          CGLCONICLIB_CFLAGS="$OSI_CFLAGS $CGLCONICLIB_CFLAGS"
22899          CGLCONICLIB_LIBS="$OSI_LIBS $CGLCONICLIB_LIBS"
22900
22901
22902
22903  else
22904    OSI_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi"`
22905      coin_has_osi=notGiven
22906        echo "$as_me:$LINENO: result: not given: $OSI_PKG_ERRORS" >&5
22907echo "${ECHO_T}not given: $OSI_PKG_ERRORS" >&6
22908
22909  fi
22910else
22911  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Osi without pkg-config\"" >&5
22912echo "$as_me: error: \"Cannot check for existance of module Osi without pkg-config\"" >&2;}
22913   { (exit 1); exit 1; }; }
22914fi
22915
22916
22917
22918
22919    # reset PKG_CONFIG_PATH variable
22920    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22921    export PKG_CONFIG_PATH
22922
22923  else
22924    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22925echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22926
22927echo "$as_me:$LINENO: checking for COIN-OR package Osi (fallback)" >&5
22928echo $ECHO_N "checking for COIN-OR package Osi (fallback)... $ECHO_C" >&6
22929
22930coin_has_osi=notGiven
22931OSI_LIBS=
22932OSI_LIBS_INSTALLED=
22933OSI_CFLAGS=
22934OSI_CFLAGS_INSTALLED=
22935OSI_DATA=
22936OSI_DATA_INSTALLED=
22937OSI_PCLIBS=
22938OSI_PCREQUIRES=
22939
22940# initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22941projtoprocess="osi"
22942
22943# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22944# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22945# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22946# also, we setup the DATA variable
22947allproj=""
22948allpcfiles=""
22949allpcifiles=""
22950while test "x$projtoprocess" != x ; do
22951
22952  for proj in $projtoprocess ; do
22953    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22954    pcfile=""
22955    save_IFS="$IFS"
22956    IFS=":"
22957    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22958      # 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
22959      if test -r "$dir/${proj}-uninstalled.pc" ; then
22960        pcfile="$dir/$proj-uninstalled.pc"
22961        if test -r "$dir/${proj}.pc" ; then
22962          pcifile="$dir/${proj}.pc"
22963        else
22964          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22965echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22966          pcifile=
22967        fi
22968        break
22969      fi
22970    done
22971    IFS="$save_IFS"
22972
22973    if test "x$pcfile" != x ; then
22974      # read dependencies from $pcfile and filter it
22975      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
22976
22977      # add projrequires to the front of the list of projects that have to be processed next
22978      # at the same time, remove $proj from this list
22979      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22980
22981      # read DATA from $pcfile, if _DATA is still empty
22982      if test "x$OSI_DATA" = x ; then
22983        projdatadir=
22984        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22985        eval `sh -c "$pcfilemod"`
22986        OSI_DATA="$projdatadir"
22987      fi
22988
22989      allproj="$allproj $proj"
22990      allpcfiles="$pcfile:$allpcfiles"
22991
22992    else
22993      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22994echo "${ECHO_T}no, dependency $proj not available" >&6
22995      allproj=fail
22996      break 2
22997    fi
22998
22999    if test "x$pcifile" != x ; then
23000      allpcifiles="$pcifile:$allpcifiles"
23001
23002      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
23003      if test "x$OSI_DATA_INSTALLED" = x ; then
23004        projdatadir=
23005        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
23006        eval `sh -c "$pcifilemod"`
23007        if test "${CYGPATH_W}" != "echo"; then
23008          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
23009        fi
23010        OSI_DATA_INSTALLED="$projdatadir"
23011      fi
23012
23013    fi
23014
23015    break
23016  done
23017
23018  # remove spaces on begin of $projtoprocess
23019  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
23020
23021done
23022
23023if test "$allproj" != fail ; then
23024
23025  # now go through the list of .pc files and assemble compiler and linker flags
23026  # important is here to obey the reverse order that has been setup before,
23027  # since then libraries that are required by several others should be after these other libraries
23028  pcfilesprocessed=""
23029
23030  save_IFS="$IFS"
23031  IFS=":"
23032  for pcfile in $allpcfiles ; do
23033
23034    # if $pcfile has been processed already, skip this round
23035    if test "x$pcfilesprocessed" != x ; then
23036      for pcfiledone in $pcfilesprocessed ; do
23037        if test "$pcfiledone" = "$pcfile" ; then
23038          continue 2
23039        fi
23040      done
23041    fi
23042
23043    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23044    #   replace "Libs:" by "echo projlibs="
23045    #   replace "Cflags:" by "echo projcflags="
23046    #   remove every line starting with <some word>:
23047    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23048
23049    # set projcflags and projlibs variables by running $pcfilemod
23050    # 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
23051    projcflags=
23052    projlibs=
23053    IFS="$save_IFS"
23054    eval `sh -c "$pcfilemod"`
23055    IFS=":"
23056
23057    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23058    if test "${CYGPATH_W}" != "echo"; then
23059      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23060    fi
23061    OSI_CFLAGS="$projcflags $OSI_CFLAGS"
23062
23063    # set LIBS variable
23064    OSI_LIBS="$projlibs $OSI_LIBS"
23065
23066    # remember that we have processed $pcfile
23067    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23068
23069  done
23070  IFS="$save_IFS"
23071
23072
23073  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
23074  # important is here again to obey the reverse order that has been setup before,
23075  # since then libraries that are required by several others should be after these other libraries
23076  pcfilesprocessed=""
23077
23078  save_IFS="$IFS"
23079  IFS=":"
23080  for pcfile in $allpcifiles ; do
23081
23082    # if $pcfile has been processed already, skip this round
23083    if test "x$pcfilesprocessed" != x ; then
23084      for pcfiledone in $pcfilesprocessed ; do
23085        if test "$pcfiledone" = "$pcfile" ; then
23086          continue 2
23087        fi
23088      done
23089    fi
23090
23091    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23092    #   replace "Libs:" by "echo projlibs="
23093    #   replace "Cflags:" by "echo projcflags="
23094    #   remove every line starting with <some word>:
23095    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23096
23097    # set projcflags and projlibs variables by running $pcfilemod
23098    # 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
23099    projcflags=
23100    projlibs=
23101    IFS="$save_IFS"
23102    eval `sh -c "$pcfilemod"`
23103    IFS=":"
23104
23105    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23106    if test "${CYGPATH_W}" != "echo"; then
23107      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23108    fi
23109    OSI_CFLAGS_INSTALLED="$projcflags $OSI_CFLAGS_INSTALLED"
23110
23111    # set LIBS variable
23112    OSI_LIBS_INSTALLED="$projlibs $OSI_LIBS_INSTALLED"
23113
23114    # remember that we have processed $pcfile
23115    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23116
23117  done
23118  IFS="$save_IFS"
23119
23120
23121  # finish up
23122  coin_has_osi=yes
23123  echo "$as_me:$LINENO: result: yes" >&5
23124echo "${ECHO_T}yes" >&6
23125
23126cat >>confdefs.h <<\_ACEOF
23127#define COIN_HAS_OSI 1
23128_ACEOF
23129
23130
23131  # adjust linker flags for (i)cl compiler
23132  # 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),
23133  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
23134  #    everything of the form "-lname" by "libname.lib", and
23135  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
23136  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23137  then
23138    OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23139    OSI_LIBS_INSTALLED=`echo " $OSI_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
23140  fi
23141
23142  OSI_PCREQUIRES="osi"
23143
23144    CGLCONICLIB_PCREQUIRES="osi $CGLCONICLIB_PCREQUIRES"
23145    CGLCONICLIB_CFLAGS="$OSI_CFLAGS $CGLCONICLIB_CFLAGS"
23146    CGLCONICLIB_LIBS="$OSI_LIBS $CGLCONICLIB_LIBS"
23147    CGLCONICLIB_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
23148    CGLCONICLIB_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
23149
23150
23151fi
23152
23153
23154
23155if test $coin_has_osi != notGiven &&
23156                test $coin_has_osi != skipping; then
23157  COIN_HAS_OSI_TRUE=
23158  COIN_HAS_OSI_FALSE='#'
23159else
23160  COIN_HAS_OSI_TRUE='#'
23161  COIN_HAS_OSI_FALSE=
23162fi
23163
23164
23165
23166  fi
23167
23168else
23169  echo "$as_me:$LINENO: result: $coin_has_osi" >&5
23170echo "${ECHO_T}$coin_has_osi" >&6
23171fi
23172
23173if test $coin_has_osi != skipping &&
23174   test $coin_has_osi != notGiven ; then
23175
23176cat >>confdefs.h <<\_ACEOF
23177#define COIN_HAS_OSI 1
23178_ACEOF
23179
23180
23181  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
23182if test "${enable_interpackage_dependencies+set}" = set; then
23183  enableval="$enable_interpackage_dependencies"
23184
23185else
23186  enable_interpackage_dependencies=yes
23187fi;
23188
23189  if test $enable_interpackage_dependencies = yes ; then
23190     # construct dependencies variables from LIBS variables
23191     # we add an extra space in LIBS so we can substitute out everything starting with " -"
23192     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
23193     # then remove everything of the form -xxx
23194     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
23195     OSI_DEPENDENCIES=`echo " $OSI_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23196
23197       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23198
23199  fi
23200
23201  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
23202    if test -n "$OSI_CFLAGS" ; then
23203      { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
23204echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
23205    fi
23206    if test -n "$OSI_LIBS" ; then
23207      { echo "$as_me:$LINENO: Osi LIBS   are $OSI_LIBS" >&5
23208echo "$as_me: Osi LIBS   are $OSI_LIBS" >&6;}
23209    fi
23210    if test -n "$OSI_DEPENDENCIES" ; then
23211      { echo "$as_me:$LINENO: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&5
23212echo "$as_me: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&6;}
23213    fi
23214    if test -n "$OSI_DATA" ; then
23215      { echo "$as_me:$LINENO: Osi DATA   is  $OSI_DATA" >&5
23216echo "$as_me: Osi DATA   is  $OSI_DATA" >&6;}
23217    fi
23218    if test -n "$OSI_PCLIBS" ; then
23219      { echo "$as_me:$LINENO: Osi PCLIBS are $OSI_PCLIBS" >&5
23220echo "$as_me: Osi PCLIBS are $OSI_PCLIBS" >&6;}
23221    fi
23222    if test -n "$OSI_PCREQUIRES" ; then
23223      { echo "$as_me:$LINENO: Osi PCREQUIRES are $OSI_PCREQUIRES" >&5
23224echo "$as_me: Osi PCREQUIRES are $OSI_PCREQUIRES" >&6;}
23225    fi
23226
23227      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
23228echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
23229      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
23230echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
23231      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
23232echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
23233
23234  fi
23235fi
23236
23237# Define the Makefile conditional
23238
23239
23240if test $coin_has_osi != notGiven &&
23241                test $coin_has_osi != skipping; then
23242  COIN_HAS_OSI_TRUE=
23243  COIN_HAS_OSI_FALSE='#'
23244else
23245  COIN_HAS_OSI_TRUE='#'
23246  COIN_HAS_OSI_FALSE=
23247fi
23248
23249
23250
23251if test $coin_has_osi != yes ; then
23252  { { echo "$as_me:$LINENO: error: Required package Osi is not available." >&5
23253echo "$as_me: error: Required package Osi is not available." >&2;}
23254   { (exit 1); exit 1; }; }
23255fi
23256
23257
23258echo "$as_me:$LINENO: checking for COIN-OR package OsiClp" >&5
23259echo $ECHO_N "checking for COIN-OR package OsiClp... $ECHO_C" >&6
23260
23261coin_has_osiclp=notGiven
23262
23263# check if user wants to skip package in any case
23264if test x"$COIN_SKIP_PROJECTS" != x; then
23265  for dir in $COIN_SKIP_PROJECTS; do
23266    if test $dir = "OsiClp"; then
23267      coin_has_osiclp=skipping
23268    fi
23269  done
23270fi
23271
23272if test "$coin_has_osiclp" != skipping; then
23273
23274# Check whether --with-m4_tolower(OsiClp) or --without-m4_tolower(OsiClp) was given.
23275if test "${with_osiclp+set}" = set; then
23276  withval="$with_osiclp"
23277  if test "$withval" = no ; then
23278       coin_has_osiclp=skipping
23279     fi
23280
23281fi;
23282fi
23283
23284OSICLP_LIBS=
23285OSICLP_CFLAGS=
23286OSICLP_DATA=
23287OSICLP_DEPENDENCIES=
23288OSICLP_PCLIBS=
23289OSICLP_PCREQUIRES=
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
23308if test $coin_has_osiclp != skipping; then
23309
23310# Check whether --with-m4_tolower(OsiClp)-lib or --without-m4_tolower(OsiClp)-lib was given.
23311if test "${with_osiclp_lib+set}" = set; then
23312  withval="$with_osiclp_lib"
23313  if test "$withval" = no ; then
23314       coin_has_osiclp=skipping
23315     else
23316       coin_has_osiclp=yes
23317       OSICLP_LIBS="$withval"
23318       OSICLP_PCLIBS="$withval"
23319
23320         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
23321         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
23322
23323       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23324       if test -z "$PKG_CONFIG" ; then
23325         OSICLP_LIBS_INSTALLED="$withval"
23326         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
23327       fi
23328     fi
23329
23330fi;
23331fi
23332
23333if test $coin_has_osiclp != skipping; then
23334
23335# Check whether --with-m4_tolower(OsiClp)-incdir or --without-m4_tolower(OsiClp)-incdir was given.
23336if test "${with_osiclp_incdir+set}" = set; then
23337  withval="$with_osiclp_incdir"
23338  if test "$withval" = no ; then
23339       coin_has_osiclp=skipping
23340     else
23341       coin_has_osiclp=yes
23342       OSICLP_CFLAGS="-I`${CYGPATH_W} $withval`"
23343       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
23344       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23345       if test -z "$PKG_CONFIG" ; then
23346         OSICLP_CFLAGS_INSTALLED="$OSICLP_CFLAGS"
23347         CGLCONICLIB_CFLAGS_INSTALLED="$OSICLP_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
23348       fi
23349     fi
23350
23351fi;
23352fi
23353
23354if test $coin_has_osiclp != skipping; then
23355
23356# Check whether --with-m4_tolower(OsiClp)-datadir or --without-m4_tolower(OsiClp)-datadir was given.
23357if test "${with_osiclp_datadir+set}" = set; then
23358  withval="$with_osiclp_datadir"
23359  if test "$withval" = no ; then
23360       coin_has_osiclp=skipping
23361     else
23362       coin_has_osiclp=yes
23363       OSICLP_DATA="$withval"
23364       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23365       if test -z "$PKG_CONFIG" ; then
23366         OSICLP_DATA_INSTALLED="$withval"
23367       fi
23368     fi
23369
23370fi;
23371fi
23372
23373if test $coin_has_osiclp = notGiven; then
23374  if test -n "$PKG_CONFIG" ; then
23375    # set search path for pkg-config
23376    # need to export variable to be sure that the following pkg-config gets these values
23377    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
23378    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
23379    export PKG_CONFIG_PATH
23380
23381    # let pkg-config do it's magic
23382
23383
23384
23385if test -n "$PKG_CONFIG" ; then
23386  if $PKG_CONFIG --exists "osi-clp"; then
23387    OSICLP_VERSIONS=`$PKG_CONFIG --modversion "osi-clp" 2>/dev/null | tr '\n' ' '`
23388     cflags=`$PKG_CONFIG --cflags "osi-clp" 2>/dev/null`
23389    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
23390	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
23391	# but only do this if is not trivial
23392    if test "$CYGPATH_W" != "echo" ; then
23393      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
23394      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23395    fi
23396    OSICLP_CFLAGS="$cflags"
23397    OSICLP_LIBS=`$PKG_CONFIG --libs "osi-clp" 2>/dev/null`
23398    OSICLP_DATA=`$PKG_CONFIG --variable=datadir "osi-clp" 2>/dev/null`
23399     coin_has_osiclp=yes
23400        echo "$as_me:$LINENO: result: yes: $OSICLP_VERSIONS" >&5
23401echo "${ECHO_T}yes: $OSICLP_VERSIONS" >&6
23402
23403        # adjust linker flags for (i)cl compiler
23404        # 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)
23405        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23406        then
23407          OSICLP_LIBS=`echo " $OSICLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23408        fi
23409        OSICLP_PCREQUIRES="osi-clp"
23410
23411        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
23412
23413          CGLCONICLIB_PCREQUIRES="osi-clp $CGLCONICLIB_PCREQUIRES"
23414          CGLCONICLIB_CFLAGS="$OSICLP_CFLAGS $CGLCONICLIB_CFLAGS"
23415          CGLCONICLIB_LIBS="$OSICLP_LIBS $CGLCONICLIB_LIBS"
23416
23417
23418
23419  else
23420    OSICLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-clp"`
23421      coin_has_osiclp=notGiven
23422        echo "$as_me:$LINENO: result: not given: $OSICLP_PKG_ERRORS" >&5
23423echo "${ECHO_T}not given: $OSICLP_PKG_ERRORS" >&6
23424
23425  fi
23426else
23427  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiClp without pkg-config\"" >&5
23428echo "$as_me: error: \"Cannot check for existance of module OsiClp without pkg-config\"" >&2;}
23429   { (exit 1); exit 1; }; }
23430fi
23431
23432
23433
23434
23435    # reset PKG_CONFIG_PATH variable
23436    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
23437    export PKG_CONFIG_PATH
23438
23439  else
23440    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
23441echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
23442
23443echo "$as_me:$LINENO: checking for COIN-OR package OsiClp (fallback)" >&5
23444echo $ECHO_N "checking for COIN-OR package OsiClp (fallback)... $ECHO_C" >&6
23445
23446coin_has_osiclp=notGiven
23447OSICLP_LIBS=
23448OSICLP_LIBS_INSTALLED=
23449OSICLP_CFLAGS=
23450OSICLP_CFLAGS_INSTALLED=
23451OSICLP_DATA=
23452OSICLP_DATA_INSTALLED=
23453OSICLP_PCLIBS=
23454OSICLP_PCREQUIRES=
23455
23456# initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
23457projtoprocess="osi-clp"
23458
23459# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
23460# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
23461# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
23462# also, we setup the DATA variable
23463allproj=""
23464allpcfiles=""
23465allpcifiles=""
23466while test "x$projtoprocess" != x ; do
23467
23468  for proj in $projtoprocess ; do
23469    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
23470    pcfile=""
23471    save_IFS="$IFS"
23472    IFS=":"
23473    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
23474      # 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
23475      if test -r "$dir/${proj}-uninstalled.pc" ; then
23476        pcfile="$dir/$proj-uninstalled.pc"
23477        if test -r "$dir/${proj}.pc" ; then
23478          pcifile="$dir/${proj}.pc"
23479        else
23480          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
23481echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
23482          pcifile=
23483        fi
23484        break
23485      fi
23486    done
23487    IFS="$save_IFS"
23488
23489    if test "x$pcfile" != x ; then
23490      # read dependencies from $pcfile and filter it
23491      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
23492
23493      # add projrequires to the front of the list of projects that have to be processed next
23494      # at the same time, remove $proj from this list
23495      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
23496
23497      # read DATA from $pcfile, if _DATA is still empty
23498      if test "x$OSICLP_DATA" = x ; then
23499        projdatadir=
23500        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
23501        eval `sh -c "$pcfilemod"`
23502        OSICLP_DATA="$projdatadir"
23503      fi
23504
23505      allproj="$allproj $proj"
23506      allpcfiles="$pcfile:$allpcfiles"
23507
23508    else
23509      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
23510echo "${ECHO_T}no, dependency $proj not available" >&6
23511      allproj=fail
23512      break 2
23513    fi
23514
23515    if test "x$pcifile" != x ; then
23516      allpcifiles="$pcifile:$allpcifiles"
23517
23518      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
23519      if test "x$OSICLP_DATA_INSTALLED" = x ; then
23520        projdatadir=
23521        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
23522        eval `sh -c "$pcifilemod"`
23523        if test "${CYGPATH_W}" != "echo"; then
23524          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
23525        fi
23526        OSICLP_DATA_INSTALLED="$projdatadir"
23527      fi
23528
23529    fi
23530
23531    break
23532  done
23533
23534  # remove spaces on begin of $projtoprocess
23535  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
23536
23537done
23538
23539if test "$allproj" != fail ; then
23540
23541  # now go through the list of .pc files and assemble compiler and linker flags
23542  # important is here to obey the reverse order that has been setup before,
23543  # since then libraries that are required by several others should be after these other libraries
23544  pcfilesprocessed=""
23545
23546  save_IFS="$IFS"
23547  IFS=":"
23548  for pcfile in $allpcfiles ; do
23549
23550    # if $pcfile has been processed already, skip this round
23551    if test "x$pcfilesprocessed" != x ; then
23552      for pcfiledone in $pcfilesprocessed ; do
23553        if test "$pcfiledone" = "$pcfile" ; then
23554          continue 2
23555        fi
23556      done
23557    fi
23558
23559    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23560    #   replace "Libs:" by "echo projlibs="
23561    #   replace "Cflags:" by "echo projcflags="
23562    #   remove every line starting with <some word>:
23563    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23564
23565    # set projcflags and projlibs variables by running $pcfilemod
23566    # 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
23567    projcflags=
23568    projlibs=
23569    IFS="$save_IFS"
23570    eval `sh -c "$pcfilemod"`
23571    IFS=":"
23572
23573    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23574    if test "${CYGPATH_W}" != "echo"; then
23575      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23576    fi
23577    OSICLP_CFLAGS="$projcflags $OSICLP_CFLAGS"
23578
23579    # set LIBS variable
23580    OSICLP_LIBS="$projlibs $OSICLP_LIBS"
23581
23582    # remember that we have processed $pcfile
23583    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23584
23585  done
23586  IFS="$save_IFS"
23587
23588
23589  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
23590  # important is here again to obey the reverse order that has been setup before,
23591  # since then libraries that are required by several others should be after these other libraries
23592  pcfilesprocessed=""
23593
23594  save_IFS="$IFS"
23595  IFS=":"
23596  for pcfile in $allpcifiles ; do
23597
23598    # if $pcfile has been processed already, skip this round
23599    if test "x$pcfilesprocessed" != x ; then
23600      for pcfiledone in $pcfilesprocessed ; do
23601        if test "$pcfiledone" = "$pcfile" ; then
23602          continue 2
23603        fi
23604      done
23605    fi
23606
23607    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23608    #   replace "Libs:" by "echo projlibs="
23609    #   replace "Cflags:" by "echo projcflags="
23610    #   remove every line starting with <some word>:
23611    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23612
23613    # set projcflags and projlibs variables by running $pcfilemod
23614    # 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
23615    projcflags=
23616    projlibs=
23617    IFS="$save_IFS"
23618    eval `sh -c "$pcfilemod"`
23619    IFS=":"
23620
23621    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23622    if test "${CYGPATH_W}" != "echo"; then
23623      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23624    fi
23625    OSICLP_CFLAGS_INSTALLED="$projcflags $OSICLP_CFLAGS_INSTALLED"
23626
23627    # set LIBS variable
23628    OSICLP_LIBS_INSTALLED="$projlibs $OSICLP_LIBS_INSTALLED"
23629
23630    # remember that we have processed $pcfile
23631    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23632
23633  done
23634  IFS="$save_IFS"
23635
23636
23637  # finish up
23638  coin_has_osiclp=yes
23639  echo "$as_me:$LINENO: result: yes" >&5
23640echo "${ECHO_T}yes" >&6
23641
23642cat >>confdefs.h <<\_ACEOF
23643#define COIN_HAS_OSICLP 1
23644_ACEOF
23645
23646
23647  # adjust linker flags for (i)cl compiler
23648  # 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),
23649  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
23650  #    everything of the form "-lname" by "libname.lib", and
23651  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
23652  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23653  then
23654    OSICLP_LIBS=`echo " $OSICLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23655    OSICLP_LIBS_INSTALLED=`echo " $OSICLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
23656  fi
23657
23658  OSICLP_PCREQUIRES="osi-clp"
23659
23660    CGLCONICLIB_PCREQUIRES="osi-clp $CGLCONICLIB_PCREQUIRES"
23661    CGLCONICLIB_CFLAGS="$OSICLP_CFLAGS $CGLCONICLIB_CFLAGS"
23662    CGLCONICLIB_LIBS="$OSICLP_LIBS $CGLCONICLIB_LIBS"
23663    CGLCONICLIB_CFLAGS_INSTALLED="$OSICLP_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
23664    CGLCONICLIB_LIBS_INSTALLED="$OSICLP_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
23665
23666
23667fi
23668
23669
23670
23671if test $coin_has_osiclp != notGiven &&
23672                test $coin_has_osiclp != skipping; then
23673  COIN_HAS_OSICLP_TRUE=
23674  COIN_HAS_OSICLP_FALSE='#'
23675else
23676  COIN_HAS_OSICLP_TRUE='#'
23677  COIN_HAS_OSICLP_FALSE=
23678fi
23679
23680
23681
23682  fi
23683
23684else
23685  echo "$as_me:$LINENO: result: $coin_has_osiclp" >&5
23686echo "${ECHO_T}$coin_has_osiclp" >&6
23687fi
23688
23689if test $coin_has_osiclp != skipping &&
23690   test $coin_has_osiclp != notGiven ; then
23691
23692cat >>confdefs.h <<\_ACEOF
23693#define COIN_HAS_OSICLP 1
23694_ACEOF
23695
23696
23697  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
23698if test "${enable_interpackage_dependencies+set}" = set; then
23699  enableval="$enable_interpackage_dependencies"
23700
23701else
23702  enable_interpackage_dependencies=yes
23703fi;
23704
23705  if test $enable_interpackage_dependencies = yes ; then
23706     # construct dependencies variables from LIBS variables
23707     # we add an extra space in LIBS so we can substitute out everything starting with " -"
23708     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
23709     # then remove everything of the form -xxx
23710     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
23711     OSICLP_DEPENDENCIES=`echo " $OSICLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23712
23713       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23714
23715  fi
23716
23717  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
23718    if test -n "$OSICLP_CFLAGS" ; then
23719      { echo "$as_me:$LINENO: OsiClp CFLAGS are $OSICLP_CFLAGS" >&5
23720echo "$as_me: OsiClp CFLAGS are $OSICLP_CFLAGS" >&6;}
23721    fi
23722    if test -n "$OSICLP_LIBS" ; then
23723      { echo "$as_me:$LINENO: OsiClp LIBS   are $OSICLP_LIBS" >&5
23724echo "$as_me: OsiClp LIBS   are $OSICLP_LIBS" >&6;}
23725    fi
23726    if test -n "$OSICLP_DEPENDENCIES" ; then
23727      { echo "$as_me:$LINENO: OsiClp DEPENDENCIES are $OSICLP_DEPENDENCIES" >&5
23728echo "$as_me: OsiClp DEPENDENCIES are $OSICLP_DEPENDENCIES" >&6;}
23729    fi
23730    if test -n "$OSICLP_DATA" ; then
23731      { echo "$as_me:$LINENO: OsiClp DATA   is  $OSICLP_DATA" >&5
23732echo "$as_me: OsiClp DATA   is  $OSICLP_DATA" >&6;}
23733    fi
23734    if test -n "$OSICLP_PCLIBS" ; then
23735      { echo "$as_me:$LINENO: OsiClp PCLIBS are $OSICLP_PCLIBS" >&5
23736echo "$as_me: OsiClp PCLIBS are $OSICLP_PCLIBS" >&6;}
23737    fi
23738    if test -n "$OSICLP_PCREQUIRES" ; then
23739      { echo "$as_me:$LINENO: OsiClp PCREQUIRES are $OSICLP_PCREQUIRES" >&5
23740echo "$as_me: OsiClp PCREQUIRES are $OSICLP_PCREQUIRES" >&6;}
23741    fi
23742
23743      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
23744echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
23745      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
23746echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
23747      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
23748echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
23749
23750  fi
23751fi
23752
23753# Define the Makefile conditional
23754
23755
23756if test $coin_has_osiclp != notGiven &&
23757                test $coin_has_osiclp != skipping; then
23758  COIN_HAS_OSICLP_TRUE=
23759  COIN_HAS_OSICLP_FALSE='#'
23760else
23761  COIN_HAS_OSICLP_TRUE='#'
23762  COIN_HAS_OSICLP_FALSE=
23763fi
23764
23765
23766
23767if test $coin_has_osiclp != yes ; then
23768  { { echo "$as_me:$LINENO: error: Required package OsiClp is not available." >&5
23769echo "$as_me: error: Required package OsiClp is not available." >&2;}
23770   { (exit 1); exit 1; }; }
23771fi
23772
23773
23774echo "$as_me:$LINENO: checking for COIN-OR package Cgl" >&5
23775echo $ECHO_N "checking for COIN-OR package Cgl... $ECHO_C" >&6
23776
23777coin_has_cgl=notGiven
23778
23779# check if user wants to skip package in any case
23780if test x"$COIN_SKIP_PROJECTS" != x; then
23781  for dir in $COIN_SKIP_PROJECTS; do
23782    if test $dir = "Cgl"; then
23783      coin_has_cgl=skipping
23784    fi
23785  done
23786fi
23787
23788if test "$coin_has_cgl" != skipping; then
23789
23790# Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given.
23791if test "${with_cgl+set}" = set; then
23792  withval="$with_cgl"
23793  if test "$withval" = no ; then
23794       coin_has_cgl=skipping
23795     fi
23796
23797fi;
23798fi
23799
23800CGL_LIBS=
23801CGL_CFLAGS=
23802CGL_DATA=
23803CGL_DEPENDENCIES=
23804CGL_PCLIBS=
23805CGL_PCREQUIRES=
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
23824if test $coin_has_cgl != skipping; then
23825
23826# Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
23827if test "${with_cgl_lib+set}" = set; then
23828  withval="$with_cgl_lib"
23829  if test "$withval" = no ; then
23830       coin_has_cgl=skipping
23831     else
23832       coin_has_cgl=yes
23833       CGL_LIBS="$withval"
23834       CGL_PCLIBS="$withval"
23835
23836         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
23837         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
23838
23839       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23840       if test -z "$PKG_CONFIG" ; then
23841         CGL_LIBS_INSTALLED="$withval"
23842         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
23843       fi
23844     fi
23845
23846fi;
23847fi
23848
23849if test $coin_has_cgl != skipping; then
23850
23851# Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
23852if test "${with_cgl_incdir+set}" = set; then
23853  withval="$with_cgl_incdir"
23854  if test "$withval" = no ; then
23855       coin_has_cgl=skipping
23856     else
23857       coin_has_cgl=yes
23858       CGL_CFLAGS="-I`${CYGPATH_W} $withval`"
23859       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
23860       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23861       if test -z "$PKG_CONFIG" ; then
23862         CGL_CFLAGS_INSTALLED="$CGL_CFLAGS"
23863         CGLCONICLIB_CFLAGS_INSTALLED="$CGL_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
23864       fi
23865     fi
23866
23867fi;
23868fi
23869
23870if test $coin_has_cgl != skipping; then
23871
23872# Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
23873if test "${with_cgl_datadir+set}" = set; then
23874  withval="$with_cgl_datadir"
23875  if test "$withval" = no ; then
23876       coin_has_cgl=skipping
23877     else
23878       coin_has_cgl=yes
23879       CGL_DATA="$withval"
23880       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23881       if test -z "$PKG_CONFIG" ; then
23882         CGL_DATA_INSTALLED="$withval"
23883       fi
23884     fi
23885
23886fi;
23887fi
23888
23889if test $coin_has_cgl = notGiven; then
23890  if test -n "$PKG_CONFIG" ; then
23891    # set search path for pkg-config
23892    # need to export variable to be sure that the following pkg-config gets these values
23893    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
23894    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
23895    export PKG_CONFIG_PATH
23896
23897    # let pkg-config do it's magic
23898
23899
23900
23901if test -n "$PKG_CONFIG" ; then
23902  if $PKG_CONFIG --exists "cgl"; then
23903    CGL_VERSIONS=`$PKG_CONFIG --modversion "cgl" 2>/dev/null | tr '\n' ' '`
23904     cflags=`$PKG_CONFIG --cflags "cgl" 2>/dev/null`
23905    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
23906	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
23907	# but only do this if is not trivial
23908    if test "$CYGPATH_W" != "echo" ; then
23909      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
23910      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23911    fi
23912    CGL_CFLAGS="$cflags"
23913    CGL_LIBS=`$PKG_CONFIG --libs "cgl" 2>/dev/null`
23914    CGL_DATA=`$PKG_CONFIG --variable=datadir "cgl" 2>/dev/null`
23915     coin_has_cgl=yes
23916        echo "$as_me:$LINENO: result: yes: $CGL_VERSIONS" >&5
23917echo "${ECHO_T}yes: $CGL_VERSIONS" >&6
23918
23919        # adjust linker flags for (i)cl compiler
23920        # 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)
23921        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23922        then
23923          CGL_LIBS=`echo " $CGL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23924        fi
23925        CGL_PCREQUIRES="cgl"
23926
23927        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
23928
23929          CGLCONICLIB_PCREQUIRES="cgl $CGLCONICLIB_PCREQUIRES"
23930          CGLCONICLIB_CFLAGS="$CGL_CFLAGS $CGLCONICLIB_CFLAGS"
23931          CGLCONICLIB_LIBS="$CGL_LIBS $CGLCONICLIB_LIBS"
23932
23933
23934
23935  else
23936    CGL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cgl"`
23937      coin_has_cgl=notGiven
23938        echo "$as_me:$LINENO: result: not given: $CGL_PKG_ERRORS" >&5
23939echo "${ECHO_T}not given: $CGL_PKG_ERRORS" >&6
23940
23941  fi
23942else
23943  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cgl without pkg-config\"" >&5
23944echo "$as_me: error: \"Cannot check for existance of module Cgl without pkg-config\"" >&2;}
23945   { (exit 1); exit 1; }; }
23946fi
23947
23948
23949
23950
23951    # reset PKG_CONFIG_PATH variable
23952    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
23953    export PKG_CONFIG_PATH
23954
23955  else
23956    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
23957echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
23958
23959echo "$as_me:$LINENO: checking for COIN-OR package Cgl (fallback)" >&5
23960echo $ECHO_N "checking for COIN-OR package Cgl (fallback)... $ECHO_C" >&6
23961
23962coin_has_cgl=notGiven
23963CGL_LIBS=
23964CGL_LIBS_INSTALLED=
23965CGL_CFLAGS=
23966CGL_CFLAGS_INSTALLED=
23967CGL_DATA=
23968CGL_DATA_INSTALLED=
23969CGL_PCLIBS=
23970CGL_PCREQUIRES=
23971
23972# initial list of dependencies is "cgl", but we need to filter out version number specifications (= x, <= x, >= x, != x)
23973projtoprocess="cgl"
23974
23975# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
23976# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
23977# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
23978# also, we setup the DATA variable
23979allproj=""
23980allpcfiles=""
23981allpcifiles=""
23982while test "x$projtoprocess" != x ; do
23983
23984  for proj in $projtoprocess ; do
23985    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
23986    pcfile=""
23987    save_IFS="$IFS"
23988    IFS=":"
23989    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
23990      # 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
23991      if test -r "$dir/${proj}-uninstalled.pc" ; then
23992        pcfile="$dir/$proj-uninstalled.pc"
23993        if test -r "$dir/${proj}.pc" ; then
23994          pcifile="$dir/${proj}.pc"
23995        else
23996          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
23997echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
23998          pcifile=
23999        fi
24000        break
24001      fi
24002    done
24003    IFS="$save_IFS"
24004
24005    if test "x$pcfile" != x ; then
24006      # read dependencies from $pcfile and filter it
24007      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
24008
24009      # add projrequires to the front of the list of projects that have to be processed next
24010      # at the same time, remove $proj from this list
24011      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
24012
24013      # read DATA from $pcfile, if _DATA is still empty
24014      if test "x$CGL_DATA" = x ; then
24015        projdatadir=
24016        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
24017        eval `sh -c "$pcfilemod"`
24018        CGL_DATA="$projdatadir"
24019      fi
24020
24021      allproj="$allproj $proj"
24022      allpcfiles="$pcfile:$allpcfiles"
24023
24024    else
24025      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
24026echo "${ECHO_T}no, dependency $proj not available" >&6
24027      allproj=fail
24028      break 2
24029    fi
24030
24031    if test "x$pcifile" != x ; then
24032      allpcifiles="$pcifile:$allpcifiles"
24033
24034      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
24035      if test "x$CGL_DATA_INSTALLED" = x ; then
24036        projdatadir=
24037        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
24038        eval `sh -c "$pcifilemod"`
24039        if test "${CYGPATH_W}" != "echo"; then
24040          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
24041        fi
24042        CGL_DATA_INSTALLED="$projdatadir"
24043      fi
24044
24045    fi
24046
24047    break
24048  done
24049
24050  # remove spaces on begin of $projtoprocess
24051  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
24052
24053done
24054
24055if test "$allproj" != fail ; then
24056
24057  # now go through the list of .pc files and assemble compiler and linker flags
24058  # important is here to obey the reverse order that has been setup before,
24059  # since then libraries that are required by several others should be after these other libraries
24060  pcfilesprocessed=""
24061
24062  save_IFS="$IFS"
24063  IFS=":"
24064  for pcfile in $allpcfiles ; do
24065
24066    # if $pcfile has been processed already, skip this round
24067    if test "x$pcfilesprocessed" != x ; then
24068      for pcfiledone in $pcfilesprocessed ; do
24069        if test "$pcfiledone" = "$pcfile" ; then
24070          continue 2
24071        fi
24072      done
24073    fi
24074
24075    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24076    #   replace "Libs:" by "echo projlibs="
24077    #   replace "Cflags:" by "echo projcflags="
24078    #   remove every line starting with <some word>:
24079    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24080
24081    # set projcflags and projlibs variables by running $pcfilemod
24082    # 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
24083    projcflags=
24084    projlibs=
24085    IFS="$save_IFS"
24086    eval `sh -c "$pcfilemod"`
24087    IFS=":"
24088
24089    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24090    if test "${CYGPATH_W}" != "echo"; then
24091      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24092    fi
24093    CGL_CFLAGS="$projcflags $CGL_CFLAGS"
24094
24095    # set LIBS variable
24096    CGL_LIBS="$projlibs $CGL_LIBS"
24097
24098    # remember that we have processed $pcfile
24099    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24100
24101  done
24102  IFS="$save_IFS"
24103
24104
24105  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
24106  # important is here again to obey the reverse order that has been setup before,
24107  # since then libraries that are required by several others should be after these other libraries
24108  pcfilesprocessed=""
24109
24110  save_IFS="$IFS"
24111  IFS=":"
24112  for pcfile in $allpcifiles ; do
24113
24114    # if $pcfile has been processed already, skip this round
24115    if test "x$pcfilesprocessed" != x ; then
24116      for pcfiledone in $pcfilesprocessed ; do
24117        if test "$pcfiledone" = "$pcfile" ; then
24118          continue 2
24119        fi
24120      done
24121    fi
24122
24123    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24124    #   replace "Libs:" by "echo projlibs="
24125    #   replace "Cflags:" by "echo projcflags="
24126    #   remove every line starting with <some word>:
24127    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24128
24129    # set projcflags and projlibs variables by running $pcfilemod
24130    # 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
24131    projcflags=
24132    projlibs=
24133    IFS="$save_IFS"
24134    eval `sh -c "$pcfilemod"`
24135    IFS=":"
24136
24137    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24138    if test "${CYGPATH_W}" != "echo"; then
24139      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24140    fi
24141    CGL_CFLAGS_INSTALLED="$projcflags $CGL_CFLAGS_INSTALLED"
24142
24143    # set LIBS variable
24144    CGL_LIBS_INSTALLED="$projlibs $CGL_LIBS_INSTALLED"
24145
24146    # remember that we have processed $pcfile
24147    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24148
24149  done
24150  IFS="$save_IFS"
24151
24152
24153  # finish up
24154  coin_has_cgl=yes
24155  echo "$as_me:$LINENO: result: yes" >&5
24156echo "${ECHO_T}yes" >&6
24157
24158cat >>confdefs.h <<\_ACEOF
24159#define COIN_HAS_CGL 1
24160_ACEOF
24161
24162
24163  # adjust linker flags for (i)cl compiler
24164  # 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),
24165  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
24166  #    everything of the form "-lname" by "libname.lib", and
24167  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
24168  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24169  then
24170    CGL_LIBS=`echo " $CGL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24171    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'`
24172  fi
24173
24174  CGL_PCREQUIRES="cgl"
24175
24176    CGLCONICLIB_PCREQUIRES="cgl $CGLCONICLIB_PCREQUIRES"
24177    CGLCONICLIB_CFLAGS="$CGL_CFLAGS $CGLCONICLIB_CFLAGS"
24178    CGLCONICLIB_LIBS="$CGL_LIBS $CGLCONICLIB_LIBS"
24179    CGLCONICLIB_CFLAGS_INSTALLED="$CGL_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
24180    CGLCONICLIB_LIBS_INSTALLED="$CGL_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
24181
24182
24183fi
24184
24185
24186
24187if test $coin_has_cgl != notGiven &&
24188                test $coin_has_cgl != skipping; then
24189  COIN_HAS_CGL_TRUE=
24190  COIN_HAS_CGL_FALSE='#'
24191else
24192  COIN_HAS_CGL_TRUE='#'
24193  COIN_HAS_CGL_FALSE=
24194fi
24195
24196
24197
24198  fi
24199
24200else
24201  echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
24202echo "${ECHO_T}$coin_has_cgl" >&6
24203fi
24204
24205if test $coin_has_cgl != skipping &&
24206   test $coin_has_cgl != notGiven ; then
24207
24208cat >>confdefs.h <<\_ACEOF
24209#define COIN_HAS_CGL 1
24210_ACEOF
24211
24212
24213  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
24214if test "${enable_interpackage_dependencies+set}" = set; then
24215  enableval="$enable_interpackage_dependencies"
24216
24217else
24218  enable_interpackage_dependencies=yes
24219fi;
24220
24221  if test $enable_interpackage_dependencies = yes ; then
24222     # construct dependencies variables from LIBS variables
24223     # we add an extra space in LIBS so we can substitute out everything starting with " -"
24224     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
24225     # then remove everything of the form -xxx
24226     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
24227     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'`
24228
24229       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24230
24231  fi
24232
24233  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
24234    if test -n "$CGL_CFLAGS" ; then
24235      { echo "$as_me:$LINENO: Cgl CFLAGS are $CGL_CFLAGS" >&5
24236echo "$as_me: Cgl CFLAGS are $CGL_CFLAGS" >&6;}
24237    fi
24238    if test -n "$CGL_LIBS" ; then
24239      { echo "$as_me:$LINENO: Cgl LIBS   are $CGL_LIBS" >&5
24240echo "$as_me: Cgl LIBS   are $CGL_LIBS" >&6;}
24241    fi
24242    if test -n "$CGL_DEPENDENCIES" ; then
24243      { echo "$as_me:$LINENO: Cgl DEPENDENCIES are $CGL_DEPENDENCIES" >&5
24244echo "$as_me: Cgl DEPENDENCIES are $CGL_DEPENDENCIES" >&6;}
24245    fi
24246    if test -n "$CGL_DATA" ; then
24247      { echo "$as_me:$LINENO: Cgl DATA   is  $CGL_DATA" >&5
24248echo "$as_me: Cgl DATA   is  $CGL_DATA" >&6;}
24249    fi
24250    if test -n "$CGL_PCLIBS" ; then
24251      { echo "$as_me:$LINENO: Cgl PCLIBS are $CGL_PCLIBS" >&5
24252echo "$as_me: Cgl PCLIBS are $CGL_PCLIBS" >&6;}
24253    fi
24254    if test -n "$CGL_PCREQUIRES" ; then
24255      { echo "$as_me:$LINENO: Cgl PCREQUIRES are $CGL_PCREQUIRES" >&5
24256echo "$as_me: Cgl PCREQUIRES are $CGL_PCREQUIRES" >&6;}
24257    fi
24258
24259      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
24260echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
24261      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
24262echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
24263      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
24264echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
24265
24266  fi
24267fi
24268
24269# Define the Makefile conditional
24270
24271
24272if test $coin_has_cgl != notGiven &&
24273                test $coin_has_cgl != skipping; then
24274  COIN_HAS_CGL_TRUE=
24275  COIN_HAS_CGL_FALSE='#'
24276else
24277  COIN_HAS_CGL_TRUE='#'
24278  COIN_HAS_CGL_FALSE=
24279fi
24280
24281
24282
24283if test $coin_has_cgl != yes ; then
24284  { { echo "$as_me:$LINENO: error: Required package Cgl is not available." >&5
24285echo "$as_me: error: Required package Cgl is not available." >&2;}
24286   { (exit 1); exit 1; }; }
24287fi
24288
24289
24290echo "$as_me:$LINENO: checking for COIN-OR package OsiConic" >&5
24291echo $ECHO_N "checking for COIN-OR package OsiConic... $ECHO_C" >&6
24292
24293coin_has_osiconic=notGiven
24294
24295# check if user wants to skip package in any case
24296if test x"$COIN_SKIP_PROJECTS" != x; then
24297  for dir in $COIN_SKIP_PROJECTS; do
24298    if test $dir = "OsiConic"; then
24299      coin_has_osiconic=skipping
24300    fi
24301  done
24302fi
24303
24304if test "$coin_has_osiconic" != skipping; then
24305
24306# Check whether --with-m4_tolower(OsiConic) or --without-m4_tolower(OsiConic) was given.
24307if test "${with_osiconic+set}" = set; then
24308  withval="$with_osiconic"
24309  if test "$withval" = no ; then
24310       coin_has_osiconic=skipping
24311     fi
24312
24313fi;
24314fi
24315
24316OSICONIC_LIBS=
24317OSICONIC_CFLAGS=
24318OSICONIC_DATA=
24319OSICONIC_DEPENDENCIES=
24320OSICONIC_PCLIBS=
24321OSICONIC_PCREQUIRES=
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
24340if test $coin_has_osiconic != skipping; then
24341
24342# Check whether --with-m4_tolower(OsiConic)-lib or --without-m4_tolower(OsiConic)-lib was given.
24343if test "${with_osiconic_lib+set}" = set; then
24344  withval="$with_osiconic_lib"
24345  if test "$withval" = no ; then
24346       coin_has_osiconic=skipping
24347     else
24348       coin_has_osiconic=yes
24349       OSICONIC_LIBS="$withval"
24350       OSICONIC_PCLIBS="$withval"
24351
24352         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
24353         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
24354
24355       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24356       if test -z "$PKG_CONFIG" ; then
24357         OSICONIC_LIBS_INSTALLED="$withval"
24358         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
24359       fi
24360     fi
24361
24362fi;
24363fi
24364
24365if test $coin_has_osiconic != skipping; then
24366
24367# Check whether --with-m4_tolower(OsiConic)-incdir or --without-m4_tolower(OsiConic)-incdir was given.
24368if test "${with_osiconic_incdir+set}" = set; then
24369  withval="$with_osiconic_incdir"
24370  if test "$withval" = no ; then
24371       coin_has_osiconic=skipping
24372     else
24373       coin_has_osiconic=yes
24374       OSICONIC_CFLAGS="-I`${CYGPATH_W} $withval`"
24375       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
24376       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24377       if test -z "$PKG_CONFIG" ; then
24378         OSICONIC_CFLAGS_INSTALLED="$OSICONIC_CFLAGS"
24379         CGLCONICLIB_CFLAGS_INSTALLED="$OSICONIC_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
24380       fi
24381     fi
24382
24383fi;
24384fi
24385
24386if test $coin_has_osiconic != skipping; then
24387
24388# Check whether --with-m4_tolower(OsiConic)-datadir or --without-m4_tolower(OsiConic)-datadir was given.
24389if test "${with_osiconic_datadir+set}" = set; then
24390  withval="$with_osiconic_datadir"
24391  if test "$withval" = no ; then
24392       coin_has_osiconic=skipping
24393     else
24394       coin_has_osiconic=yes
24395       OSICONIC_DATA="$withval"
24396       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24397       if test -z "$PKG_CONFIG" ; then
24398         OSICONIC_DATA_INSTALLED="$withval"
24399       fi
24400     fi
24401
24402fi;
24403fi
24404
24405if test $coin_has_osiconic = notGiven; then
24406  if test -n "$PKG_CONFIG" ; then
24407    # set search path for pkg-config
24408    # need to export variable to be sure that the following pkg-config gets these values
24409    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
24410    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
24411    export PKG_CONFIG_PATH
24412
24413    # let pkg-config do it's magic
24414
24415
24416
24417if test -n "$PKG_CONFIG" ; then
24418  if $PKG_CONFIG --exists "osiconic"; then
24419    OSICONIC_VERSIONS=`$PKG_CONFIG --modversion "osiconic" 2>/dev/null | tr '\n' ' '`
24420     cflags=`$PKG_CONFIG --cflags "osiconic" 2>/dev/null`
24421    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
24422	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
24423	# but only do this if is not trivial
24424    if test "$CYGPATH_W" != "echo" ; then
24425      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
24426      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24427    fi
24428    OSICONIC_CFLAGS="$cflags"
24429    OSICONIC_LIBS=`$PKG_CONFIG --libs "osiconic" 2>/dev/null`
24430    OSICONIC_DATA=`$PKG_CONFIG --variable=datadir "osiconic" 2>/dev/null`
24431     coin_has_osiconic=yes
24432        echo "$as_me:$LINENO: result: yes: $OSICONIC_VERSIONS" >&5
24433echo "${ECHO_T}yes: $OSICONIC_VERSIONS" >&6
24434
24435        # adjust linker flags for (i)cl compiler
24436        # 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)
24437        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24438        then
24439          OSICONIC_LIBS=`echo " $OSICONIC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24440        fi
24441        OSICONIC_PCREQUIRES="osiconic"
24442
24443        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
24444
24445          CGLCONICLIB_PCREQUIRES="osiconic $CGLCONICLIB_PCREQUIRES"
24446          CGLCONICLIB_CFLAGS="$OSICONIC_CFLAGS $CGLCONICLIB_CFLAGS"
24447          CGLCONICLIB_LIBS="$OSICONIC_LIBS $CGLCONICLIB_LIBS"
24448
24449
24450
24451  else
24452    OSICONIC_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osiconic"`
24453      coin_has_osiconic=notGiven
24454        echo "$as_me:$LINENO: result: not given: $OSICONIC_PKG_ERRORS" >&5
24455echo "${ECHO_T}not given: $OSICONIC_PKG_ERRORS" >&6
24456
24457  fi
24458else
24459  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiConic without pkg-config\"" >&5
24460echo "$as_me: error: \"Cannot check for existance of module OsiConic without pkg-config\"" >&2;}
24461   { (exit 1); exit 1; }; }
24462fi
24463
24464
24465
24466
24467    # reset PKG_CONFIG_PATH variable
24468    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
24469    export PKG_CONFIG_PATH
24470
24471  else
24472    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
24473echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
24474
24475echo "$as_me:$LINENO: checking for COIN-OR package OsiConic (fallback)" >&5
24476echo $ECHO_N "checking for COIN-OR package OsiConic (fallback)... $ECHO_C" >&6
24477
24478coin_has_osiconic=notGiven
24479OSICONIC_LIBS=
24480OSICONIC_LIBS_INSTALLED=
24481OSICONIC_CFLAGS=
24482OSICONIC_CFLAGS_INSTALLED=
24483OSICONIC_DATA=
24484OSICONIC_DATA_INSTALLED=
24485OSICONIC_PCLIBS=
24486OSICONIC_PCREQUIRES=
24487
24488# initial list of dependencies is "osiconic", but we need to filter out version number specifications (= x, <= x, >= x, != x)
24489projtoprocess="osiconic"
24490
24491# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
24492# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
24493# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
24494# also, we setup the DATA variable
24495allproj=""
24496allpcfiles=""
24497allpcifiles=""
24498while test "x$projtoprocess" != x ; do
24499
24500  for proj in $projtoprocess ; do
24501    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
24502    pcfile=""
24503    save_IFS="$IFS"
24504    IFS=":"
24505    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
24506      # 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
24507      if test -r "$dir/${proj}-uninstalled.pc" ; then
24508        pcfile="$dir/$proj-uninstalled.pc"
24509        if test -r "$dir/${proj}.pc" ; then
24510          pcifile="$dir/${proj}.pc"
24511        else
24512          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
24513echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
24514          pcifile=
24515        fi
24516        break
24517      fi
24518    done
24519    IFS="$save_IFS"
24520
24521    if test "x$pcfile" != x ; then
24522      # read dependencies from $pcfile and filter it
24523      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
24524
24525      # add projrequires to the front of the list of projects that have to be processed next
24526      # at the same time, remove $proj from this list
24527      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
24528
24529      # read DATA from $pcfile, if _DATA is still empty
24530      if test "x$OSICONIC_DATA" = x ; then
24531        projdatadir=
24532        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
24533        eval `sh -c "$pcfilemod"`
24534        OSICONIC_DATA="$projdatadir"
24535      fi
24536
24537      allproj="$allproj $proj"
24538      allpcfiles="$pcfile:$allpcfiles"
24539
24540    else
24541      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
24542echo "${ECHO_T}no, dependency $proj not available" >&6
24543      allproj=fail
24544      break 2
24545    fi
24546
24547    if test "x$pcifile" != x ; then
24548      allpcifiles="$pcifile:$allpcifiles"
24549
24550      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
24551      if test "x$OSICONIC_DATA_INSTALLED" = x ; then
24552        projdatadir=
24553        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
24554        eval `sh -c "$pcifilemod"`
24555        if test "${CYGPATH_W}" != "echo"; then
24556          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
24557        fi
24558        OSICONIC_DATA_INSTALLED="$projdatadir"
24559      fi
24560
24561    fi
24562
24563    break
24564  done
24565
24566  # remove spaces on begin of $projtoprocess
24567  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
24568
24569done
24570
24571if test "$allproj" != fail ; then
24572
24573  # now go through the list of .pc files and assemble compiler and linker flags
24574  # important is here to obey the reverse order that has been setup before,
24575  # since then libraries that are required by several others should be after these other libraries
24576  pcfilesprocessed=""
24577
24578  save_IFS="$IFS"
24579  IFS=":"
24580  for pcfile in $allpcfiles ; do
24581
24582    # if $pcfile has been processed already, skip this round
24583    if test "x$pcfilesprocessed" != x ; then
24584      for pcfiledone in $pcfilesprocessed ; do
24585        if test "$pcfiledone" = "$pcfile" ; then
24586          continue 2
24587        fi
24588      done
24589    fi
24590
24591    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24592    #   replace "Libs:" by "echo projlibs="
24593    #   replace "Cflags:" by "echo projcflags="
24594    #   remove every line starting with <some word>:
24595    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24596
24597    # set projcflags and projlibs variables by running $pcfilemod
24598    # 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
24599    projcflags=
24600    projlibs=
24601    IFS="$save_IFS"
24602    eval `sh -c "$pcfilemod"`
24603    IFS=":"
24604
24605    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24606    if test "${CYGPATH_W}" != "echo"; then
24607      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24608    fi
24609    OSICONIC_CFLAGS="$projcflags $OSICONIC_CFLAGS"
24610
24611    # set LIBS variable
24612    OSICONIC_LIBS="$projlibs $OSICONIC_LIBS"
24613
24614    # remember that we have processed $pcfile
24615    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24616
24617  done
24618  IFS="$save_IFS"
24619
24620
24621  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
24622  # important is here again to obey the reverse order that has been setup before,
24623  # since then libraries that are required by several others should be after these other libraries
24624  pcfilesprocessed=""
24625
24626  save_IFS="$IFS"
24627  IFS=":"
24628  for pcfile in $allpcifiles ; do
24629
24630    # if $pcfile has been processed already, skip this round
24631    if test "x$pcfilesprocessed" != x ; then
24632      for pcfiledone in $pcfilesprocessed ; do
24633        if test "$pcfiledone" = "$pcfile" ; then
24634          continue 2
24635        fi
24636      done
24637    fi
24638
24639    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24640    #   replace "Libs:" by "echo projlibs="
24641    #   replace "Cflags:" by "echo projcflags="
24642    #   remove every line starting with <some word>:
24643    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24644
24645    # set projcflags and projlibs variables by running $pcfilemod
24646    # 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
24647    projcflags=
24648    projlibs=
24649    IFS="$save_IFS"
24650    eval `sh -c "$pcfilemod"`
24651    IFS=":"
24652
24653    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24654    if test "${CYGPATH_W}" != "echo"; then
24655      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24656    fi
24657    OSICONIC_CFLAGS_INSTALLED="$projcflags $OSICONIC_CFLAGS_INSTALLED"
24658
24659    # set LIBS variable
24660    OSICONIC_LIBS_INSTALLED="$projlibs $OSICONIC_LIBS_INSTALLED"
24661
24662    # remember that we have processed $pcfile
24663    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24664
24665  done
24666  IFS="$save_IFS"
24667
24668
24669  # finish up
24670  coin_has_osiconic=yes
24671  echo "$as_me:$LINENO: result: yes" >&5
24672echo "${ECHO_T}yes" >&6
24673
24674cat >>confdefs.h <<\_ACEOF
24675#define COIN_HAS_OSICONIC 1
24676_ACEOF
24677
24678
24679  # adjust linker flags for (i)cl compiler
24680  # 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),
24681  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
24682  #    everything of the form "-lname" by "libname.lib", and
24683  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
24684  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24685  then
24686    OSICONIC_LIBS=`echo " $OSICONIC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24687    OSICONIC_LIBS_INSTALLED=`echo " $OSICONIC_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
24688  fi
24689
24690  OSICONIC_PCREQUIRES="osiconic"
24691
24692    CGLCONICLIB_PCREQUIRES="osiconic $CGLCONICLIB_PCREQUIRES"
24693    CGLCONICLIB_CFLAGS="$OSICONIC_CFLAGS $CGLCONICLIB_CFLAGS"
24694    CGLCONICLIB_LIBS="$OSICONIC_LIBS $CGLCONICLIB_LIBS"
24695    CGLCONICLIB_CFLAGS_INSTALLED="$OSICONIC_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
24696    CGLCONICLIB_LIBS_INSTALLED="$OSICONIC_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
24697
24698
24699fi
24700
24701
24702
24703if test $coin_has_osiconic != notGiven &&
24704                test $coin_has_osiconic != skipping; then
24705  COIN_HAS_OSICONIC_TRUE=
24706  COIN_HAS_OSICONIC_FALSE='#'
24707else
24708  COIN_HAS_OSICONIC_TRUE='#'
24709  COIN_HAS_OSICONIC_FALSE=
24710fi
24711
24712
24713
24714  fi
24715
24716else
24717  echo "$as_me:$LINENO: result: $coin_has_osiconic" >&5
24718echo "${ECHO_T}$coin_has_osiconic" >&6
24719fi
24720
24721if test $coin_has_osiconic != skipping &&
24722   test $coin_has_osiconic != notGiven ; then
24723
24724cat >>confdefs.h <<\_ACEOF
24725#define COIN_HAS_OSICONIC 1
24726_ACEOF
24727
24728
24729  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
24730if test "${enable_interpackage_dependencies+set}" = set; then
24731  enableval="$enable_interpackage_dependencies"
24732
24733else
24734  enable_interpackage_dependencies=yes
24735fi;
24736
24737  if test $enable_interpackage_dependencies = yes ; then
24738     # construct dependencies variables from LIBS variables
24739     # we add an extra space in LIBS so we can substitute out everything starting with " -"
24740     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
24741     # then remove everything of the form -xxx
24742     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
24743     OSICONIC_DEPENDENCIES=`echo " $OSICONIC_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24744
24745       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24746
24747  fi
24748
24749  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
24750    if test -n "$OSICONIC_CFLAGS" ; then
24751      { echo "$as_me:$LINENO: OsiConic CFLAGS are $OSICONIC_CFLAGS" >&5
24752echo "$as_me: OsiConic CFLAGS are $OSICONIC_CFLAGS" >&6;}
24753    fi
24754    if test -n "$OSICONIC_LIBS" ; then
24755      { echo "$as_me:$LINENO: OsiConic LIBS   are $OSICONIC_LIBS" >&5
24756echo "$as_me: OsiConic LIBS   are $OSICONIC_LIBS" >&6;}
24757    fi
24758    if test -n "$OSICONIC_DEPENDENCIES" ; then
24759      { echo "$as_me:$LINENO: OsiConic DEPENDENCIES are $OSICONIC_DEPENDENCIES" >&5
24760echo "$as_me: OsiConic DEPENDENCIES are $OSICONIC_DEPENDENCIES" >&6;}
24761    fi
24762    if test -n "$OSICONIC_DATA" ; then
24763      { echo "$as_me:$LINENO: OsiConic DATA   is  $OSICONIC_DATA" >&5
24764echo "$as_me: OsiConic DATA   is  $OSICONIC_DATA" >&6;}
24765    fi
24766    if test -n "$OSICONIC_PCLIBS" ; then
24767      { echo "$as_me:$LINENO: OsiConic PCLIBS are $OSICONIC_PCLIBS" >&5
24768echo "$as_me: OsiConic PCLIBS are $OSICONIC_PCLIBS" >&6;}
24769    fi
24770    if test -n "$OSICONIC_PCREQUIRES" ; then
24771      { echo "$as_me:$LINENO: OsiConic PCREQUIRES are $OSICONIC_PCREQUIRES" >&5
24772echo "$as_me: OsiConic PCREQUIRES are $OSICONIC_PCREQUIRES" >&6;}
24773    fi
24774
24775      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
24776echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
24777      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
24778echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
24779      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
24780echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
24781
24782  fi
24783fi
24784
24785# Define the Makefile conditional
24786
24787
24788if test $coin_has_osiconic != notGiven &&
24789                test $coin_has_osiconic != skipping; then
24790  COIN_HAS_OSICONIC_TRUE=
24791  COIN_HAS_OSICONIC_FALSE='#'
24792else
24793  COIN_HAS_OSICONIC_TRUE='#'
24794  COIN_HAS_OSICONIC_FALSE=
24795fi
24796
24797
24798
24799if test $coin_has_osiconic != yes ; then
24800  { { echo "$as_me:$LINENO: error: Required package OsiConic is not available." >&5
24801echo "$as_me: error: Required package OsiConic is not available." >&2;}
24802   { (exit 1); exit 1; }; }
24803fi
24804
24805
24806echo "$as_me:$LINENO: checking for COIN-OR package Cola" >&5
24807echo $ECHO_N "checking for COIN-OR package Cola... $ECHO_C" >&6
24808
24809coin_has_cola=notGiven
24810
24811# check if user wants to skip package in any case
24812if test x"$COIN_SKIP_PROJECTS" != x; then
24813  for dir in $COIN_SKIP_PROJECTS; do
24814    if test $dir = "Cola"; then
24815      coin_has_cola=skipping
24816    fi
24817  done
24818fi
24819
24820if test "$coin_has_cola" != skipping; then
24821
24822# Check whether --with-m4_tolower(Cola) or --without-m4_tolower(Cola) was given.
24823if test "${with_cola+set}" = set; then
24824  withval="$with_cola"
24825  if test "$withval" = no ; then
24826       coin_has_cola=skipping
24827     fi
24828
24829fi;
24830fi
24831
24832COLA_LIBS=
24833COLA_CFLAGS=
24834COLA_DATA=
24835COLA_DEPENDENCIES=
24836COLA_PCLIBS=
24837COLA_PCREQUIRES=
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
24856if test $coin_has_cola != skipping; then
24857
24858# Check whether --with-m4_tolower(Cola)-lib or --without-m4_tolower(Cola)-lib was given.
24859if test "${with_cola_lib+set}" = set; then
24860  withval="$with_cola_lib"
24861  if test "$withval" = no ; then
24862       coin_has_cola=skipping
24863     else
24864       coin_has_cola=yes
24865       COLA_LIBS="$withval"
24866       COLA_PCLIBS="$withval"
24867
24868         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
24869         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
24870
24871       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24872       if test -z "$PKG_CONFIG" ; then
24873         COLA_LIBS_INSTALLED="$withval"
24874         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
24875       fi
24876     fi
24877
24878fi;
24879fi
24880
24881if test $coin_has_cola != skipping; then
24882
24883# Check whether --with-m4_tolower(Cola)-incdir or --without-m4_tolower(Cola)-incdir was given.
24884if test "${with_cola_incdir+set}" = set; then
24885  withval="$with_cola_incdir"
24886  if test "$withval" = no ; then
24887       coin_has_cola=skipping
24888     else
24889       coin_has_cola=yes
24890       COLA_CFLAGS="-I`${CYGPATH_W} $withval`"
24891       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
24892       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24893       if test -z "$PKG_CONFIG" ; then
24894         COLA_CFLAGS_INSTALLED="$COLA_CFLAGS"
24895         CGLCONICLIB_CFLAGS_INSTALLED="$COLA_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
24896       fi
24897     fi
24898
24899fi;
24900fi
24901
24902if test $coin_has_cola != skipping; then
24903
24904# Check whether --with-m4_tolower(Cola)-datadir or --without-m4_tolower(Cola)-datadir was given.
24905if test "${with_cola_datadir+set}" = set; then
24906  withval="$with_cola_datadir"
24907  if test "$withval" = no ; then
24908       coin_has_cola=skipping
24909     else
24910       coin_has_cola=yes
24911       COLA_DATA="$withval"
24912       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24913       if test -z "$PKG_CONFIG" ; then
24914         COLA_DATA_INSTALLED="$withval"
24915       fi
24916     fi
24917
24918fi;
24919fi
24920
24921if test $coin_has_cola = notGiven; then
24922  if test -n "$PKG_CONFIG" ; then
24923    # set search path for pkg-config
24924    # need to export variable to be sure that the following pkg-config gets these values
24925    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
24926    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
24927    export PKG_CONFIG_PATH
24928
24929    # let pkg-config do it's magic
24930
24931
24932
24933if test -n "$PKG_CONFIG" ; then
24934  if $PKG_CONFIG --exists "cola"; then
24935    COLA_VERSIONS=`$PKG_CONFIG --modversion "cola" 2>/dev/null | tr '\n' ' '`
24936     cflags=`$PKG_CONFIG --cflags "cola" 2>/dev/null`
24937    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
24938	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
24939	# but only do this if is not trivial
24940    if test "$CYGPATH_W" != "echo" ; then
24941      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
24942      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24943    fi
24944    COLA_CFLAGS="$cflags"
24945    COLA_LIBS=`$PKG_CONFIG --libs "cola" 2>/dev/null`
24946    COLA_DATA=`$PKG_CONFIG --variable=datadir "cola" 2>/dev/null`
24947     coin_has_cola=yes
24948        echo "$as_me:$LINENO: result: yes: $COLA_VERSIONS" >&5
24949echo "${ECHO_T}yes: $COLA_VERSIONS" >&6
24950
24951        # adjust linker flags for (i)cl compiler
24952        # 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)
24953        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24954        then
24955          COLA_LIBS=`echo " $COLA_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24956        fi
24957        COLA_PCREQUIRES="cola"
24958
24959        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
24960
24961          CGLCONICLIB_PCREQUIRES="cola $CGLCONICLIB_PCREQUIRES"
24962          CGLCONICLIB_CFLAGS="$COLA_CFLAGS $CGLCONICLIB_CFLAGS"
24963          CGLCONICLIB_LIBS="$COLA_LIBS $CGLCONICLIB_LIBS"
24964
24965
24966
24967  else
24968    COLA_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cola"`
24969      coin_has_cola=notGiven
24970        echo "$as_me:$LINENO: result: not given: $COLA_PKG_ERRORS" >&5
24971echo "${ECHO_T}not given: $COLA_PKG_ERRORS" >&6
24972
24973  fi
24974else
24975  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cola without pkg-config\"" >&5
24976echo "$as_me: error: \"Cannot check for existance of module Cola without pkg-config\"" >&2;}
24977   { (exit 1); exit 1; }; }
24978fi
24979
24980
24981
24982
24983    # reset PKG_CONFIG_PATH variable
24984    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
24985    export PKG_CONFIG_PATH
24986
24987  else
24988    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
24989echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
24990
24991echo "$as_me:$LINENO: checking for COIN-OR package Cola (fallback)" >&5
24992echo $ECHO_N "checking for COIN-OR package Cola (fallback)... $ECHO_C" >&6
24993
24994coin_has_cola=notGiven
24995COLA_LIBS=
24996COLA_LIBS_INSTALLED=
24997COLA_CFLAGS=
24998COLA_CFLAGS_INSTALLED=
24999COLA_DATA=
25000COLA_DATA_INSTALLED=
25001COLA_PCLIBS=
25002COLA_PCREQUIRES=
25003
25004# initial list of dependencies is "cola", but we need to filter out version number specifications (= x, <= x, >= x, != x)
25005projtoprocess="cola"
25006
25007# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
25008# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
25009# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
25010# also, we setup the DATA variable
25011allproj=""
25012allpcfiles=""
25013allpcifiles=""
25014while test "x$projtoprocess" != x ; do
25015
25016  for proj in $projtoprocess ; do
25017    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
25018    pcfile=""
25019    save_IFS="$IFS"
25020    IFS=":"
25021    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
25022      # 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
25023      if test -r "$dir/${proj}-uninstalled.pc" ; then
25024        pcfile="$dir/$proj-uninstalled.pc"
25025        if test -r "$dir/${proj}.pc" ; then
25026          pcifile="$dir/${proj}.pc"
25027        else
25028          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
25029echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
25030          pcifile=
25031        fi
25032        break
25033      fi
25034    done
25035    IFS="$save_IFS"
25036
25037    if test "x$pcfile" != x ; then
25038      # read dependencies from $pcfile and filter it
25039      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
25040
25041      # add projrequires to the front of the list of projects that have to be processed next
25042      # at the same time, remove $proj from this list
25043      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
25044
25045      # read DATA from $pcfile, if _DATA is still empty
25046      if test "x$COLA_DATA" = x ; then
25047        projdatadir=
25048        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
25049        eval `sh -c "$pcfilemod"`
25050        COLA_DATA="$projdatadir"
25051      fi
25052
25053      allproj="$allproj $proj"
25054      allpcfiles="$pcfile:$allpcfiles"
25055
25056    else
25057      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
25058echo "${ECHO_T}no, dependency $proj not available" >&6
25059      allproj=fail
25060      break 2
25061    fi
25062
25063    if test "x$pcifile" != x ; then
25064      allpcifiles="$pcifile:$allpcifiles"
25065
25066      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
25067      if test "x$COLA_DATA_INSTALLED" = x ; then
25068        projdatadir=
25069        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
25070        eval `sh -c "$pcifilemod"`
25071        if test "${CYGPATH_W}" != "echo"; then
25072          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
25073        fi
25074        COLA_DATA_INSTALLED="$projdatadir"
25075      fi
25076
25077    fi
25078
25079    break
25080  done
25081
25082  # remove spaces on begin of $projtoprocess
25083  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
25084
25085done
25086
25087if test "$allproj" != fail ; then
25088
25089  # now go through the list of .pc files and assemble compiler and linker flags
25090  # important is here to obey the reverse order that has been setup before,
25091  # since then libraries that are required by several others should be after these other libraries
25092  pcfilesprocessed=""
25093
25094  save_IFS="$IFS"
25095  IFS=":"
25096  for pcfile in $allpcfiles ; do
25097
25098    # if $pcfile has been processed already, skip this round
25099    if test "x$pcfilesprocessed" != x ; then
25100      for pcfiledone in $pcfilesprocessed ; do
25101        if test "$pcfiledone" = "$pcfile" ; then
25102          continue 2
25103        fi
25104      done
25105    fi
25106
25107    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
25108    #   replace "Libs:" by "echo projlibs="
25109    #   replace "Cflags:" by "echo projcflags="
25110    #   remove every line starting with <some word>:
25111    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
25112
25113    # set projcflags and projlibs variables by running $pcfilemod
25114    # 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
25115    projcflags=
25116    projlibs=
25117    IFS="$save_IFS"
25118    eval `sh -c "$pcfilemod"`
25119    IFS=":"
25120
25121    # add CYGPATH_W cludge into include flags and set CFLAGS variable
25122    if test "${CYGPATH_W}" != "echo"; then
25123      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25124    fi
25125    COLA_CFLAGS="$projcflags $COLA_CFLAGS"
25126
25127    # set LIBS variable
25128    COLA_LIBS="$projlibs $COLA_LIBS"
25129
25130    # remember that we have processed $pcfile
25131    pcfilesprocessed="$pcfilesprocessed:$pcfile"
25132
25133  done
25134  IFS="$save_IFS"
25135
25136
25137  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
25138  # important is here again to obey the reverse order that has been setup before,
25139  # since then libraries that are required by several others should be after these other libraries
25140  pcfilesprocessed=""
25141
25142  save_IFS="$IFS"
25143  IFS=":"
25144  for pcfile in $allpcifiles ; do
25145
25146    # if $pcfile has been processed already, skip this round
25147    if test "x$pcfilesprocessed" != x ; then
25148      for pcfiledone in $pcfilesprocessed ; do
25149        if test "$pcfiledone" = "$pcfile" ; then
25150          continue 2
25151        fi
25152      done
25153    fi
25154
25155    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
25156    #   replace "Libs:" by "echo projlibs="
25157    #   replace "Cflags:" by "echo projcflags="
25158    #   remove every line starting with <some word>:
25159    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
25160
25161    # set projcflags and projlibs variables by running $pcfilemod
25162    # 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
25163    projcflags=
25164    projlibs=
25165    IFS="$save_IFS"
25166    eval `sh -c "$pcfilemod"`
25167    IFS=":"
25168
25169    # add CYGPATH_W cludge into include flags and set CFLAGS variable
25170    if test "${CYGPATH_W}" != "echo"; then
25171      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25172    fi
25173    COLA_CFLAGS_INSTALLED="$projcflags $COLA_CFLAGS_INSTALLED"
25174
25175    # set LIBS variable
25176    COLA_LIBS_INSTALLED="$projlibs $COLA_LIBS_INSTALLED"
25177
25178    # remember that we have processed $pcfile
25179    pcfilesprocessed="$pcfilesprocessed:$pcfile"
25180
25181  done
25182  IFS="$save_IFS"
25183
25184
25185  # finish up
25186  coin_has_cola=yes
25187  echo "$as_me:$LINENO: result: yes" >&5
25188echo "${ECHO_T}yes" >&6
25189
25190cat >>confdefs.h <<\_ACEOF
25191#define COIN_HAS_COLA 1
25192_ACEOF
25193
25194
25195  # adjust linker flags for (i)cl compiler
25196  # 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),
25197  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
25198  #    everything of the form "-lname" by "libname.lib", and
25199  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
25200  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
25201  then
25202    COLA_LIBS=`echo " $COLA_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
25203    COLA_LIBS_INSTALLED=`echo " $COLA_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
25204  fi
25205
25206  COLA_PCREQUIRES="cola"
25207
25208    CGLCONICLIB_PCREQUIRES="cola $CGLCONICLIB_PCREQUIRES"
25209    CGLCONICLIB_CFLAGS="$COLA_CFLAGS $CGLCONICLIB_CFLAGS"
25210    CGLCONICLIB_LIBS="$COLA_LIBS $CGLCONICLIB_LIBS"
25211    CGLCONICLIB_CFLAGS_INSTALLED="$COLA_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
25212    CGLCONICLIB_LIBS_INSTALLED="$COLA_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
25213
25214
25215fi
25216
25217
25218
25219if test $coin_has_cola != notGiven &&
25220                test $coin_has_cola != skipping; then
25221  COIN_HAS_COLA_TRUE=
25222  COIN_HAS_COLA_FALSE='#'
25223else
25224  COIN_HAS_COLA_TRUE='#'
25225  COIN_HAS_COLA_FALSE=
25226fi
25227
25228
25229
25230  fi
25231
25232else
25233  echo "$as_me:$LINENO: result: $coin_has_cola" >&5
25234echo "${ECHO_T}$coin_has_cola" >&6
25235fi
25236
25237if test $coin_has_cola != skipping &&
25238   test $coin_has_cola != notGiven ; then
25239
25240cat >>confdefs.h <<\_ACEOF
25241#define COIN_HAS_COLA 1
25242_ACEOF
25243
25244
25245  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
25246if test "${enable_interpackage_dependencies+set}" = set; then
25247  enableval="$enable_interpackage_dependencies"
25248
25249else
25250  enable_interpackage_dependencies=yes
25251fi;
25252
25253  if test $enable_interpackage_dependencies = yes ; then
25254     # construct dependencies variables from LIBS variables
25255     # we add an extra space in LIBS so we can substitute out everything starting with " -"
25256     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
25257     # then remove everything of the form -xxx
25258     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
25259     COLA_DEPENDENCIES=`echo " $COLA_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
25260
25261       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
25262
25263  fi
25264
25265  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
25266    if test -n "$COLA_CFLAGS" ; then
25267      { echo "$as_me:$LINENO: Cola CFLAGS are $COLA_CFLAGS" >&5
25268echo "$as_me: Cola CFLAGS are $COLA_CFLAGS" >&6;}
25269    fi
25270    if test -n "$COLA_LIBS" ; then
25271      { echo "$as_me:$LINENO: Cola LIBS   are $COLA_LIBS" >&5
25272echo "$as_me: Cola LIBS   are $COLA_LIBS" >&6;}
25273    fi
25274    if test -n "$COLA_DEPENDENCIES" ; then
25275      { echo "$as_me:$LINENO: Cola DEPENDENCIES are $COLA_DEPENDENCIES" >&5
25276echo "$as_me: Cola DEPENDENCIES are $COLA_DEPENDENCIES" >&6;}
25277    fi
25278    if test -n "$COLA_DATA" ; then
25279      { echo "$as_me:$LINENO: Cola DATA   is  $COLA_DATA" >&5
25280echo "$as_me: Cola DATA   is  $COLA_DATA" >&6;}
25281    fi
25282    if test -n "$COLA_PCLIBS" ; then
25283      { echo "$as_me:$LINENO: Cola PCLIBS are $COLA_PCLIBS" >&5
25284echo "$as_me: Cola PCLIBS are $COLA_PCLIBS" >&6;}
25285    fi
25286    if test -n "$COLA_PCREQUIRES" ; then
25287      { echo "$as_me:$LINENO: Cola PCREQUIRES are $COLA_PCREQUIRES" >&5
25288echo "$as_me: Cola PCREQUIRES are $COLA_PCREQUIRES" >&6;}
25289    fi
25290
25291      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
25292echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
25293      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
25294echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
25295      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
25296echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
25297
25298  fi
25299fi
25300
25301# Define the Makefile conditional
25302
25303
25304if test $coin_has_cola != notGiven &&
25305                test $coin_has_cola != skipping; then
25306  COIN_HAS_COLA_TRUE=
25307  COIN_HAS_COLA_FALSE='#'
25308else
25309  COIN_HAS_COLA_TRUE='#'
25310  COIN_HAS_COLA_FALSE=
25311fi
25312
25313
25314
25315
25316
25317echo "$as_me:$LINENO: checking for COIN-OR package OsiIpopt" >&5
25318echo $ECHO_N "checking for COIN-OR package OsiIpopt... $ECHO_C" >&6
25319
25320coin_has_osiipopt=notGiven
25321
25322# check if user wants to skip package in any case
25323if test x"$COIN_SKIP_PROJECTS" != x; then
25324  for dir in $COIN_SKIP_PROJECTS; do
25325    if test $dir = "OsiIpopt"; then
25326      coin_has_osiipopt=skipping
25327    fi
25328  done
25329fi
25330
25331if test "$coin_has_osiipopt" != skipping; then
25332
25333# Check whether --with-m4_tolower(OsiIpopt) or --without-m4_tolower(OsiIpopt) was given.
25334if test "${with_osiipopt+set}" = set; then
25335  withval="$with_osiipopt"
25336  if test "$withval" = no ; then
25337       coin_has_osiipopt=skipping
25338     fi
25339
25340fi;
25341fi
25342
25343OSIIPOPT_LIBS=
25344OSIIPOPT_CFLAGS=
25345OSIIPOPT_DATA=
25346OSIIPOPT_DEPENDENCIES=
25347OSIIPOPT_PCLIBS=
25348OSIIPOPT_PCREQUIRES=
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
25367if test $coin_has_osiipopt != skipping; then
25368
25369# Check whether --with-m4_tolower(OsiIpopt)-lib or --without-m4_tolower(OsiIpopt)-lib was given.
25370if test "${with_osiipopt_lib+set}" = set; then
25371  withval="$with_osiipopt_lib"
25372  if test "$withval" = no ; then
25373       coin_has_osiipopt=skipping
25374     else
25375       coin_has_osiipopt=yes
25376       OSIIPOPT_LIBS="$withval"
25377       OSIIPOPT_PCLIBS="$withval"
25378
25379         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
25380         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
25381
25382       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25383       if test -z "$PKG_CONFIG" ; then
25384         OSIIPOPT_LIBS_INSTALLED="$withval"
25385         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
25386       fi
25387     fi
25388
25389fi;
25390fi
25391
25392if test $coin_has_osiipopt != skipping; then
25393
25394# Check whether --with-m4_tolower(OsiIpopt)-incdir or --without-m4_tolower(OsiIpopt)-incdir was given.
25395if test "${with_osiipopt_incdir+set}" = set; then
25396  withval="$with_osiipopt_incdir"
25397  if test "$withval" = no ; then
25398       coin_has_osiipopt=skipping
25399     else
25400       coin_has_osiipopt=yes
25401       OSIIPOPT_CFLAGS="-I`${CYGPATH_W} $withval`"
25402       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
25403       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25404       if test -z "$PKG_CONFIG" ; then
25405         OSIIPOPT_CFLAGS_INSTALLED="$OSIIPOPT_CFLAGS"
25406         CGLCONICLIB_CFLAGS_INSTALLED="$OSIIPOPT_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
25407       fi
25408     fi
25409
25410fi;
25411fi
25412
25413if test $coin_has_osiipopt != skipping; then
25414
25415# Check whether --with-m4_tolower(OsiIpopt)-datadir or --without-m4_tolower(OsiIpopt)-datadir was given.
25416if test "${with_osiipopt_datadir+set}" = set; then
25417  withval="$with_osiipopt_datadir"
25418  if test "$withval" = no ; then
25419       coin_has_osiipopt=skipping
25420     else
25421       coin_has_osiipopt=yes
25422       OSIIPOPT_DATA="$withval"
25423       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25424       if test -z "$PKG_CONFIG" ; then
25425         OSIIPOPT_DATA_INSTALLED="$withval"
25426       fi
25427     fi
25428
25429fi;
25430fi
25431
25432if test $coin_has_osiipopt = notGiven; then
25433  if test -n "$PKG_CONFIG" ; then
25434    # set search path for pkg-config
25435    # need to export variable to be sure that the following pkg-config gets these values
25436    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
25437    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
25438    export PKG_CONFIG_PATH
25439
25440    # let pkg-config do it's magic
25441
25442
25443
25444if test -n "$PKG_CONFIG" ; then
25445  if $PKG_CONFIG --exists "osiipopt"; then
25446    OSIIPOPT_VERSIONS=`$PKG_CONFIG --modversion "osiipopt" 2>/dev/null | tr '\n' ' '`
25447     cflags=`$PKG_CONFIG --cflags "osiipopt" 2>/dev/null`
25448    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
25449	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
25450	# but only do this if is not trivial
25451    if test "$CYGPATH_W" != "echo" ; then
25452      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
25453      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25454    fi
25455    OSIIPOPT_CFLAGS="$cflags"
25456    OSIIPOPT_LIBS=`$PKG_CONFIG --libs "osiipopt" 2>/dev/null`
25457    OSIIPOPT_DATA=`$PKG_CONFIG --variable=datadir "osiipopt" 2>/dev/null`
25458     coin_has_osiipopt=yes
25459        echo "$as_me:$LINENO: result: yes: $OSIIPOPT_VERSIONS" >&5
25460echo "${ECHO_T}yes: $OSIIPOPT_VERSIONS" >&6
25461
25462        # adjust linker flags for (i)cl compiler
25463        # 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)
25464        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
25465        then
25466          OSIIPOPT_LIBS=`echo " $OSIIPOPT_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
25467        fi
25468        OSIIPOPT_PCREQUIRES="osiipopt"
25469
25470        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
25471
25472          CGLCONICLIB_PCREQUIRES="osiipopt $CGLCONICLIB_PCREQUIRES"
25473          CGLCONICLIB_CFLAGS="$OSIIPOPT_CFLAGS $CGLCONICLIB_CFLAGS"
25474          CGLCONICLIB_LIBS="$OSIIPOPT_LIBS $CGLCONICLIB_LIBS"
25475
25476
25477
25478  else
25479    OSIIPOPT_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osiipopt"`
25480      coin_has_osiipopt=notGiven
25481        echo "$as_me:$LINENO: result: not given: $OSIIPOPT_PKG_ERRORS" >&5
25482echo "${ECHO_T}not given: $OSIIPOPT_PKG_ERRORS" >&6
25483
25484  fi
25485else
25486  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiIpopt without pkg-config\"" >&5
25487echo "$as_me: error: \"Cannot check for existance of module OsiIpopt without pkg-config\"" >&2;}
25488   { (exit 1); exit 1; }; }
25489fi
25490
25491
25492
25493
25494    # reset PKG_CONFIG_PATH variable
25495    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
25496    export PKG_CONFIG_PATH
25497
25498  else
25499    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
25500echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
25501
25502echo "$as_me:$LINENO: checking for COIN-OR package OsiIpopt (fallback)" >&5
25503echo $ECHO_N "checking for COIN-OR package OsiIpopt (fallback)... $ECHO_C" >&6
25504
25505coin_has_osiipopt=notGiven
25506OSIIPOPT_LIBS=
25507OSIIPOPT_LIBS_INSTALLED=
25508OSIIPOPT_CFLAGS=
25509OSIIPOPT_CFLAGS_INSTALLED=
25510OSIIPOPT_DATA=
25511OSIIPOPT_DATA_INSTALLED=
25512OSIIPOPT_PCLIBS=
25513OSIIPOPT_PCREQUIRES=
25514
25515# initial list of dependencies is "osiipopt", but we need to filter out version number specifications (= x, <= x, >= x, != x)
25516projtoprocess="osiipopt"
25517
25518# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
25519# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
25520# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
25521# also, we setup the DATA variable
25522allproj=""
25523allpcfiles=""
25524allpcifiles=""
25525while test "x$projtoprocess" != x ; do
25526
25527  for proj in $projtoprocess ; do
25528    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
25529    pcfile=""
25530    save_IFS="$IFS"
25531    IFS=":"
25532    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
25533      # 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
25534      if test -r "$dir/${proj}-uninstalled.pc" ; then
25535        pcfile="$dir/$proj-uninstalled.pc"
25536        if test -r "$dir/${proj}.pc" ; then
25537          pcifile="$dir/${proj}.pc"
25538        else
25539          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
25540echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
25541          pcifile=
25542        fi
25543        break
25544      fi
25545    done
25546    IFS="$save_IFS"
25547
25548    if test "x$pcfile" != x ; then
25549      # read dependencies from $pcfile and filter it
25550      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
25551
25552      # add projrequires to the front of the list of projects that have to be processed next
25553      # at the same time, remove $proj from this list
25554      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
25555
25556      # read DATA from $pcfile, if _DATA is still empty
25557      if test "x$OSIIPOPT_DATA" = x ; then
25558        projdatadir=
25559        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
25560        eval `sh -c "$pcfilemod"`
25561        OSIIPOPT_DATA="$projdatadir"
25562      fi
25563
25564      allproj="$allproj $proj"
25565      allpcfiles="$pcfile:$allpcfiles"
25566
25567    else
25568      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
25569echo "${ECHO_T}no, dependency $proj not available" >&6
25570      allproj=fail
25571      break 2
25572    fi
25573
25574    if test "x$pcifile" != x ; then
25575      allpcifiles="$pcifile:$allpcifiles"
25576
25577      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
25578      if test "x$OSIIPOPT_DATA_INSTALLED" = x ; then
25579        projdatadir=
25580        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
25581        eval `sh -c "$pcifilemod"`
25582        if test "${CYGPATH_W}" != "echo"; then
25583          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
25584        fi
25585        OSIIPOPT_DATA_INSTALLED="$projdatadir"
25586      fi
25587
25588    fi
25589
25590    break
25591  done
25592
25593  # remove spaces on begin of $projtoprocess
25594  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
25595
25596done
25597
25598if test "$allproj" != fail ; then
25599
25600  # now go through the list of .pc files and assemble compiler and linker flags
25601  # important is here to obey the reverse order that has been setup before,
25602  # since then libraries that are required by several others should be after these other libraries
25603  pcfilesprocessed=""
25604
25605  save_IFS="$IFS"
25606  IFS=":"
25607  for pcfile in $allpcfiles ; do
25608
25609    # if $pcfile has been processed already, skip this round
25610    if test "x$pcfilesprocessed" != x ; then
25611      for pcfiledone in $pcfilesprocessed ; do
25612        if test "$pcfiledone" = "$pcfile" ; then
25613          continue 2
25614        fi
25615      done
25616    fi
25617
25618    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
25619    #   replace "Libs:" by "echo projlibs="
25620    #   replace "Cflags:" by "echo projcflags="
25621    #   remove every line starting with <some word>:
25622    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
25623
25624    # set projcflags and projlibs variables by running $pcfilemod
25625    # 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
25626    projcflags=
25627    projlibs=
25628    IFS="$save_IFS"
25629    eval `sh -c "$pcfilemod"`
25630    IFS=":"
25631
25632    # add CYGPATH_W cludge into include flags and set CFLAGS variable
25633    if test "${CYGPATH_W}" != "echo"; then
25634      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25635    fi
25636    OSIIPOPT_CFLAGS="$projcflags $OSIIPOPT_CFLAGS"
25637
25638    # set LIBS variable
25639    OSIIPOPT_LIBS="$projlibs $OSIIPOPT_LIBS"
25640
25641    # remember that we have processed $pcfile
25642    pcfilesprocessed="$pcfilesprocessed:$pcfile"
25643
25644  done
25645  IFS="$save_IFS"
25646
25647
25648  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
25649  # important is here again to obey the reverse order that has been setup before,
25650  # since then libraries that are required by several others should be after these other libraries
25651  pcfilesprocessed=""
25652
25653  save_IFS="$IFS"
25654  IFS=":"
25655  for pcfile in $allpcifiles ; do
25656
25657    # if $pcfile has been processed already, skip this round
25658    if test "x$pcfilesprocessed" != x ; then
25659      for pcfiledone in $pcfilesprocessed ; do
25660        if test "$pcfiledone" = "$pcfile" ; then
25661          continue 2
25662        fi
25663      done
25664    fi
25665
25666    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
25667    #   replace "Libs:" by "echo projlibs="
25668    #   replace "Cflags:" by "echo projcflags="
25669    #   remove every line starting with <some word>:
25670    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
25671
25672    # set projcflags and projlibs variables by running $pcfilemod
25673    # 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
25674    projcflags=
25675    projlibs=
25676    IFS="$save_IFS"
25677    eval `sh -c "$pcfilemod"`
25678    IFS=":"
25679
25680    # add CYGPATH_W cludge into include flags and set CFLAGS variable
25681    if test "${CYGPATH_W}" != "echo"; then
25682      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25683    fi
25684    OSIIPOPT_CFLAGS_INSTALLED="$projcflags $OSIIPOPT_CFLAGS_INSTALLED"
25685
25686    # set LIBS variable
25687    OSIIPOPT_LIBS_INSTALLED="$projlibs $OSIIPOPT_LIBS_INSTALLED"
25688
25689    # remember that we have processed $pcfile
25690    pcfilesprocessed="$pcfilesprocessed:$pcfile"
25691
25692  done
25693  IFS="$save_IFS"
25694
25695
25696  # finish up
25697  coin_has_osiipopt=yes
25698  echo "$as_me:$LINENO: result: yes" >&5
25699echo "${ECHO_T}yes" >&6
25700
25701cat >>confdefs.h <<\_ACEOF
25702#define COIN_HAS_OSIIPOPT 1
25703_ACEOF
25704
25705
25706  # adjust linker flags for (i)cl compiler
25707  # 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),
25708  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
25709  #    everything of the form "-lname" by "libname.lib", and
25710  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
25711  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
25712  then
25713    OSIIPOPT_LIBS=`echo " $OSIIPOPT_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
25714    OSIIPOPT_LIBS_INSTALLED=`echo " $OSIIPOPT_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
25715  fi
25716
25717  OSIIPOPT_PCREQUIRES="osiipopt"
25718
25719    CGLCONICLIB_PCREQUIRES="osiipopt $CGLCONICLIB_PCREQUIRES"
25720    CGLCONICLIB_CFLAGS="$OSIIPOPT_CFLAGS $CGLCONICLIB_CFLAGS"
25721    CGLCONICLIB_LIBS="$OSIIPOPT_LIBS $CGLCONICLIB_LIBS"
25722    CGLCONICLIB_CFLAGS_INSTALLED="$OSIIPOPT_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
25723    CGLCONICLIB_LIBS_INSTALLED="$OSIIPOPT_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
25724
25725
25726fi
25727
25728
25729
25730if test $coin_has_osiipopt != notGiven &&
25731                test $coin_has_osiipopt != skipping; then
25732  COIN_HAS_OSIIPOPT_TRUE=
25733  COIN_HAS_OSIIPOPT_FALSE='#'
25734else
25735  COIN_HAS_OSIIPOPT_TRUE='#'
25736  COIN_HAS_OSIIPOPT_FALSE=
25737fi
25738
25739
25740
25741  fi
25742
25743else
25744  echo "$as_me:$LINENO: result: $coin_has_osiipopt" >&5
25745echo "${ECHO_T}$coin_has_osiipopt" >&6
25746fi
25747
25748if test $coin_has_osiipopt != skipping &&
25749   test $coin_has_osiipopt != notGiven ; then
25750
25751cat >>confdefs.h <<\_ACEOF
25752#define COIN_HAS_OSIIPOPT 1
25753_ACEOF
25754
25755
25756  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
25757if test "${enable_interpackage_dependencies+set}" = set; then
25758  enableval="$enable_interpackage_dependencies"
25759
25760else
25761  enable_interpackage_dependencies=yes
25762fi;
25763
25764  if test $enable_interpackage_dependencies = yes ; then
25765     # construct dependencies variables from LIBS variables
25766     # we add an extra space in LIBS so we can substitute out everything starting with " -"
25767     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
25768     # then remove everything of the form -xxx
25769     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
25770     OSIIPOPT_DEPENDENCIES=`echo " $OSIIPOPT_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
25771
25772       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
25773
25774  fi
25775
25776  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
25777    if test -n "$OSIIPOPT_CFLAGS" ; then
25778      { echo "$as_me:$LINENO: OsiIpopt CFLAGS are $OSIIPOPT_CFLAGS" >&5
25779echo "$as_me: OsiIpopt CFLAGS are $OSIIPOPT_CFLAGS" >&6;}
25780    fi
25781    if test -n "$OSIIPOPT_LIBS" ; then
25782      { echo "$as_me:$LINENO: OsiIpopt LIBS   are $OSIIPOPT_LIBS" >&5
25783echo "$as_me: OsiIpopt LIBS   are $OSIIPOPT_LIBS" >&6;}
25784    fi
25785    if test -n "$OSIIPOPT_DEPENDENCIES" ; then
25786      { echo "$as_me:$LINENO: OsiIpopt DEPENDENCIES are $OSIIPOPT_DEPENDENCIES" >&5
25787echo "$as_me: OsiIpopt DEPENDENCIES are $OSIIPOPT_DEPENDENCIES" >&6;}
25788    fi
25789    if test -n "$OSIIPOPT_DATA" ; then
25790      { echo "$as_me:$LINENO: OsiIpopt DATA   is  $OSIIPOPT_DATA" >&5
25791echo "$as_me: OsiIpopt DATA   is  $OSIIPOPT_DATA" >&6;}
25792    fi
25793    if test -n "$OSIIPOPT_PCLIBS" ; then
25794      { echo "$as_me:$LINENO: OsiIpopt PCLIBS are $OSIIPOPT_PCLIBS" >&5
25795echo "$as_me: OsiIpopt PCLIBS are $OSIIPOPT_PCLIBS" >&6;}
25796    fi
25797    if test -n "$OSIIPOPT_PCREQUIRES" ; then
25798      { echo "$as_me:$LINENO: OsiIpopt PCREQUIRES are $OSIIPOPT_PCREQUIRES" >&5
25799echo "$as_me: OsiIpopt PCREQUIRES are $OSIIPOPT_PCREQUIRES" >&6;}
25800    fi
25801
25802      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
25803echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
25804      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
25805echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
25806      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
25807echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
25808
25809  fi
25810fi
25811
25812# Define the Makefile conditional
25813
25814
25815if test $coin_has_osiipopt != notGiven &&
25816                test $coin_has_osiipopt != skipping; then
25817  COIN_HAS_OSIIPOPT_TRUE=
25818  COIN_HAS_OSIIPOPT_FALSE='#'
25819else
25820  COIN_HAS_OSIIPOPT_TRUE='#'
25821  COIN_HAS_OSIIPOPT_FALSE=
25822fi
25823
25824
25825
25826if test $coin_has_osiipopt != yes ; then
25827  { { echo "$as_me:$LINENO: error: Required package OsiIpopt is not available." >&5
25828echo "$as_me: error: Required package OsiIpopt is not available." >&2;}
25829   { (exit 1); exit 1; }; }
25830fi
25831
25832#############################################################################
25833#                            Third party solvers                            #
25834#############################################################################
25835
25836# Check which third party solvers are available
25837
25838echo "$as_me:$LINENO: checking for COIN-OR package OsiCplex" >&5
25839echo $ECHO_N "checking for COIN-OR package OsiCplex... $ECHO_C" >&6
25840
25841coin_has_osicplex=notGiven
25842
25843# check if user wants to skip package in any case
25844if test x"$COIN_SKIP_PROJECTS" != x; then
25845  for dir in $COIN_SKIP_PROJECTS; do
25846    if test $dir = "OsiCplex"; then
25847      coin_has_osicplex=skipping
25848    fi
25849  done
25850fi
25851
25852if test "$coin_has_osicplex" != skipping; then
25853
25854# Check whether --with-m4_tolower(OsiCplex) or --without-m4_tolower(OsiCplex) was given.
25855if test "${with_osicplex+set}" = set; then
25856  withval="$with_osicplex"
25857  if test "$withval" = no ; then
25858       coin_has_osicplex=skipping
25859     fi
25860
25861fi;
25862fi
25863
25864OSICPLEX_LIBS=
25865OSICPLEX_CFLAGS=
25866OSICPLEX_DATA=
25867OSICPLEX_DEPENDENCIES=
25868OSICPLEX_PCLIBS=
25869OSICPLEX_PCREQUIRES=
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
25888if test $coin_has_osicplex != skipping; then
25889
25890# Check whether --with-m4_tolower(OsiCplex)-lib or --without-m4_tolower(OsiCplex)-lib was given.
25891if test "${with_osicplex_lib+set}" = set; then
25892  withval="$with_osicplex_lib"
25893  if test "$withval" = no ; then
25894       coin_has_osicplex=skipping
25895     else
25896       coin_has_osicplex=yes
25897       OSICPLEX_LIBS="$withval"
25898       OSICPLEX_PCLIBS="$withval"
25899
25900         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
25901         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
25902
25903       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25904       if test -z "$PKG_CONFIG" ; then
25905         OSICPLEX_LIBS_INSTALLED="$withval"
25906         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
25907       fi
25908     fi
25909
25910fi;
25911fi
25912
25913if test $coin_has_osicplex != skipping; then
25914
25915# Check whether --with-m4_tolower(OsiCplex)-incdir or --without-m4_tolower(OsiCplex)-incdir was given.
25916if test "${with_osicplex_incdir+set}" = set; then
25917  withval="$with_osicplex_incdir"
25918  if test "$withval" = no ; then
25919       coin_has_osicplex=skipping
25920     else
25921       coin_has_osicplex=yes
25922       OSICPLEX_CFLAGS="-I`${CYGPATH_W} $withval`"
25923       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
25924       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25925       if test -z "$PKG_CONFIG" ; then
25926         OSICPLEX_CFLAGS_INSTALLED="$OSICPLEX_CFLAGS"
25927         CGLCONICLIB_CFLAGS_INSTALLED="$OSICPLEX_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
25928       fi
25929     fi
25930
25931fi;
25932fi
25933
25934if test $coin_has_osicplex != skipping; then
25935
25936# Check whether --with-m4_tolower(OsiCplex)-datadir or --without-m4_tolower(OsiCplex)-datadir was given.
25937if test "${with_osicplex_datadir+set}" = set; then
25938  withval="$with_osicplex_datadir"
25939  if test "$withval" = no ; then
25940       coin_has_osicplex=skipping
25941     else
25942       coin_has_osicplex=yes
25943       OSICPLEX_DATA="$withval"
25944       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25945       if test -z "$PKG_CONFIG" ; then
25946         OSICPLEX_DATA_INSTALLED="$withval"
25947       fi
25948     fi
25949
25950fi;
25951fi
25952
25953if test $coin_has_osicplex = notGiven; then
25954  if test -n "$PKG_CONFIG" ; then
25955    # set search path for pkg-config
25956    # need to export variable to be sure that the following pkg-config gets these values
25957    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
25958    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
25959    export PKG_CONFIG_PATH
25960
25961    # let pkg-config do it's magic
25962
25963
25964
25965if test -n "$PKG_CONFIG" ; then
25966  if $PKG_CONFIG --exists "osicplex"; then
25967    OSICPLEX_VERSIONS=`$PKG_CONFIG --modversion "osicplex" 2>/dev/null | tr '\n' ' '`
25968     cflags=`$PKG_CONFIG --cflags "osicplex" 2>/dev/null`
25969    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
25970	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
25971	# but only do this if is not trivial
25972    if test "$CYGPATH_W" != "echo" ; then
25973      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
25974      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25975    fi
25976    OSICPLEX_CFLAGS="$cflags"
25977    OSICPLEX_LIBS=`$PKG_CONFIG --libs "osicplex" 2>/dev/null`
25978    OSICPLEX_DATA=`$PKG_CONFIG --variable=datadir "osicplex" 2>/dev/null`
25979     coin_has_osicplex=yes
25980        echo "$as_me:$LINENO: result: yes: $OSICPLEX_VERSIONS" >&5
25981echo "${ECHO_T}yes: $OSICPLEX_VERSIONS" >&6
25982
25983        # adjust linker flags for (i)cl compiler
25984        # 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)
25985        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
25986        then
25987          OSICPLEX_LIBS=`echo " $OSICPLEX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
25988        fi
25989        OSICPLEX_PCREQUIRES="osicplex"
25990
25991        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
25992
25993          CGLCONICLIB_PCREQUIRES="osicplex $CGLCONICLIB_PCREQUIRES"
25994          CGLCONICLIB_CFLAGS="$OSICPLEX_CFLAGS $CGLCONICLIB_CFLAGS"
25995          CGLCONICLIB_LIBS="$OSICPLEX_LIBS $CGLCONICLIB_LIBS"
25996
25997
25998
25999  else
26000    OSICPLEX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osicplex"`
26001      coin_has_osicplex=notGiven
26002        echo "$as_me:$LINENO: result: not given: $OSICPLEX_PKG_ERRORS" >&5
26003echo "${ECHO_T}not given: $OSICPLEX_PKG_ERRORS" >&6
26004
26005  fi
26006else
26007  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiCplex without pkg-config\"" >&5
26008echo "$as_me: error: \"Cannot check for existance of module OsiCplex without pkg-config\"" >&2;}
26009   { (exit 1); exit 1; }; }
26010fi
26011
26012
26013
26014
26015    # reset PKG_CONFIG_PATH variable
26016    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
26017    export PKG_CONFIG_PATH
26018
26019  else
26020    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
26021echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
26022
26023echo "$as_me:$LINENO: checking for COIN-OR package OsiCplex (fallback)" >&5
26024echo $ECHO_N "checking for COIN-OR package OsiCplex (fallback)... $ECHO_C" >&6
26025
26026coin_has_osicplex=notGiven
26027OSICPLEX_LIBS=
26028OSICPLEX_LIBS_INSTALLED=
26029OSICPLEX_CFLAGS=
26030OSICPLEX_CFLAGS_INSTALLED=
26031OSICPLEX_DATA=
26032OSICPLEX_DATA_INSTALLED=
26033OSICPLEX_PCLIBS=
26034OSICPLEX_PCREQUIRES=
26035
26036# initial list of dependencies is "osicplex", but we need to filter out version number specifications (= x, <= x, >= x, != x)
26037projtoprocess="osicplex"
26038
26039# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
26040# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
26041# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
26042# also, we setup the DATA variable
26043allproj=""
26044allpcfiles=""
26045allpcifiles=""
26046while test "x$projtoprocess" != x ; do
26047
26048  for proj in $projtoprocess ; do
26049    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
26050    pcfile=""
26051    save_IFS="$IFS"
26052    IFS=":"
26053    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
26054      # 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
26055      if test -r "$dir/${proj}-uninstalled.pc" ; then
26056        pcfile="$dir/$proj-uninstalled.pc"
26057        if test -r "$dir/${proj}.pc" ; then
26058          pcifile="$dir/${proj}.pc"
26059        else
26060          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
26061echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
26062          pcifile=
26063        fi
26064        break
26065      fi
26066    done
26067    IFS="$save_IFS"
26068
26069    if test "x$pcfile" != x ; then
26070      # read dependencies from $pcfile and filter it
26071      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
26072
26073      # add projrequires to the front of the list of projects that have to be processed next
26074      # at the same time, remove $proj from this list
26075      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
26076
26077      # read DATA from $pcfile, if _DATA is still empty
26078      if test "x$OSICPLEX_DATA" = x ; then
26079        projdatadir=
26080        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
26081        eval `sh -c "$pcfilemod"`
26082        OSICPLEX_DATA="$projdatadir"
26083      fi
26084
26085      allproj="$allproj $proj"
26086      allpcfiles="$pcfile:$allpcfiles"
26087
26088    else
26089      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
26090echo "${ECHO_T}no, dependency $proj not available" >&6
26091      allproj=fail
26092      break 2
26093    fi
26094
26095    if test "x$pcifile" != x ; then
26096      allpcifiles="$pcifile:$allpcifiles"
26097
26098      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
26099      if test "x$OSICPLEX_DATA_INSTALLED" = x ; then
26100        projdatadir=
26101        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
26102        eval `sh -c "$pcifilemod"`
26103        if test "${CYGPATH_W}" != "echo"; then
26104          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
26105        fi
26106        OSICPLEX_DATA_INSTALLED="$projdatadir"
26107      fi
26108
26109    fi
26110
26111    break
26112  done
26113
26114  # remove spaces on begin of $projtoprocess
26115  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
26116
26117done
26118
26119if test "$allproj" != fail ; then
26120
26121  # now go through the list of .pc files and assemble compiler and linker flags
26122  # important is here to obey the reverse order that has been setup before,
26123  # since then libraries that are required by several others should be after these other libraries
26124  pcfilesprocessed=""
26125
26126  save_IFS="$IFS"
26127  IFS=":"
26128  for pcfile in $allpcfiles ; do
26129
26130    # if $pcfile has been processed already, skip this round
26131    if test "x$pcfilesprocessed" != x ; then
26132      for pcfiledone in $pcfilesprocessed ; do
26133        if test "$pcfiledone" = "$pcfile" ; then
26134          continue 2
26135        fi
26136      done
26137    fi
26138
26139    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
26140    #   replace "Libs:" by "echo projlibs="
26141    #   replace "Cflags:" by "echo projcflags="
26142    #   remove every line starting with <some word>:
26143    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
26144
26145    # set projcflags and projlibs variables by running $pcfilemod
26146    # 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
26147    projcflags=
26148    projlibs=
26149    IFS="$save_IFS"
26150    eval `sh -c "$pcfilemod"`
26151    IFS=":"
26152
26153    # add CYGPATH_W cludge into include flags and set CFLAGS variable
26154    if test "${CYGPATH_W}" != "echo"; then
26155      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26156    fi
26157    OSICPLEX_CFLAGS="$projcflags $OSICPLEX_CFLAGS"
26158
26159    # set LIBS variable
26160    OSICPLEX_LIBS="$projlibs $OSICPLEX_LIBS"
26161
26162    # remember that we have processed $pcfile
26163    pcfilesprocessed="$pcfilesprocessed:$pcfile"
26164
26165  done
26166  IFS="$save_IFS"
26167
26168
26169  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
26170  # important is here again to obey the reverse order that has been setup before,
26171  # since then libraries that are required by several others should be after these other libraries
26172  pcfilesprocessed=""
26173
26174  save_IFS="$IFS"
26175  IFS=":"
26176  for pcfile in $allpcifiles ; do
26177
26178    # if $pcfile has been processed already, skip this round
26179    if test "x$pcfilesprocessed" != x ; then
26180      for pcfiledone in $pcfilesprocessed ; do
26181        if test "$pcfiledone" = "$pcfile" ; then
26182          continue 2
26183        fi
26184      done
26185    fi
26186
26187    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
26188    #   replace "Libs:" by "echo projlibs="
26189    #   replace "Cflags:" by "echo projcflags="
26190    #   remove every line starting with <some word>:
26191    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
26192
26193    # set projcflags and projlibs variables by running $pcfilemod
26194    # 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
26195    projcflags=
26196    projlibs=
26197    IFS="$save_IFS"
26198    eval `sh -c "$pcfilemod"`
26199    IFS=":"
26200
26201    # add CYGPATH_W cludge into include flags and set CFLAGS variable
26202    if test "${CYGPATH_W}" != "echo"; then
26203      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26204    fi
26205    OSICPLEX_CFLAGS_INSTALLED="$projcflags $OSICPLEX_CFLAGS_INSTALLED"
26206
26207    # set LIBS variable
26208    OSICPLEX_LIBS_INSTALLED="$projlibs $OSICPLEX_LIBS_INSTALLED"
26209
26210    # remember that we have processed $pcfile
26211    pcfilesprocessed="$pcfilesprocessed:$pcfile"
26212
26213  done
26214  IFS="$save_IFS"
26215
26216
26217  # finish up
26218  coin_has_osicplex=yes
26219  echo "$as_me:$LINENO: result: yes" >&5
26220echo "${ECHO_T}yes" >&6
26221
26222cat >>confdefs.h <<\_ACEOF
26223#define COIN_HAS_OSICPLEX 1
26224_ACEOF
26225
26226
26227  # adjust linker flags for (i)cl compiler
26228  # 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),
26229  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
26230  #    everything of the form "-lname" by "libname.lib", and
26231  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
26232  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
26233  then
26234    OSICPLEX_LIBS=`echo " $OSICPLEX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
26235    OSICPLEX_LIBS_INSTALLED=`echo " $OSICPLEX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
26236  fi
26237
26238  OSICPLEX_PCREQUIRES="osicplex"
26239
26240    CGLCONICLIB_PCREQUIRES="osicplex $CGLCONICLIB_PCREQUIRES"
26241    CGLCONICLIB_CFLAGS="$OSICPLEX_CFLAGS $CGLCONICLIB_CFLAGS"
26242    CGLCONICLIB_LIBS="$OSICPLEX_LIBS $CGLCONICLIB_LIBS"
26243    CGLCONICLIB_CFLAGS_INSTALLED="$OSICPLEX_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
26244    CGLCONICLIB_LIBS_INSTALLED="$OSICPLEX_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
26245
26246
26247fi
26248
26249
26250
26251if test $coin_has_osicplex != notGiven &&
26252                test $coin_has_osicplex != skipping; then
26253  COIN_HAS_OSICPLEX_TRUE=
26254  COIN_HAS_OSICPLEX_FALSE='#'
26255else
26256  COIN_HAS_OSICPLEX_TRUE='#'
26257  COIN_HAS_OSICPLEX_FALSE=
26258fi
26259
26260
26261
26262  fi
26263
26264else
26265  echo "$as_me:$LINENO: result: $coin_has_osicplex" >&5
26266echo "${ECHO_T}$coin_has_osicplex" >&6
26267fi
26268
26269if test $coin_has_osicplex != skipping &&
26270   test $coin_has_osicplex != notGiven ; then
26271
26272cat >>confdefs.h <<\_ACEOF
26273#define COIN_HAS_OSICPLEX 1
26274_ACEOF
26275
26276
26277  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
26278if test "${enable_interpackage_dependencies+set}" = set; then
26279  enableval="$enable_interpackage_dependencies"
26280
26281else
26282  enable_interpackage_dependencies=yes
26283fi;
26284
26285  if test $enable_interpackage_dependencies = yes ; then
26286     # construct dependencies variables from LIBS variables
26287     # we add an extra space in LIBS so we can substitute out everything starting with " -"
26288     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
26289     # then remove everything of the form -xxx
26290     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
26291     OSICPLEX_DEPENDENCIES=`echo " $OSICPLEX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
26292
26293       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
26294
26295  fi
26296
26297  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
26298    if test -n "$OSICPLEX_CFLAGS" ; then
26299      { echo "$as_me:$LINENO: OsiCplex CFLAGS are $OSICPLEX_CFLAGS" >&5
26300echo "$as_me: OsiCplex CFLAGS are $OSICPLEX_CFLAGS" >&6;}
26301    fi
26302    if test -n "$OSICPLEX_LIBS" ; then
26303      { echo "$as_me:$LINENO: OsiCplex LIBS   are $OSICPLEX_LIBS" >&5
26304echo "$as_me: OsiCplex LIBS   are $OSICPLEX_LIBS" >&6;}
26305    fi
26306    if test -n "$OSICPLEX_DEPENDENCIES" ; then
26307      { echo "$as_me:$LINENO: OsiCplex DEPENDENCIES are $OSICPLEX_DEPENDENCIES" >&5
26308echo "$as_me: OsiCplex DEPENDENCIES are $OSICPLEX_DEPENDENCIES" >&6;}
26309    fi
26310    if test -n "$OSICPLEX_DATA" ; then
26311      { echo "$as_me:$LINENO: OsiCplex DATA   is  $OSICPLEX_DATA" >&5
26312echo "$as_me: OsiCplex DATA   is  $OSICPLEX_DATA" >&6;}
26313    fi
26314    if test -n "$OSICPLEX_PCLIBS" ; then
26315      { echo "$as_me:$LINENO: OsiCplex PCLIBS are $OSICPLEX_PCLIBS" >&5
26316echo "$as_me: OsiCplex PCLIBS are $OSICPLEX_PCLIBS" >&6;}
26317    fi
26318    if test -n "$OSICPLEX_PCREQUIRES" ; then
26319      { echo "$as_me:$LINENO: OsiCplex PCREQUIRES are $OSICPLEX_PCREQUIRES" >&5
26320echo "$as_me: OsiCplex PCREQUIRES are $OSICPLEX_PCREQUIRES" >&6;}
26321    fi
26322
26323      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
26324echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
26325      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
26326echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
26327      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
26328echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
26329
26330  fi
26331fi
26332
26333# Define the Makefile conditional
26334
26335
26336if test $coin_has_osicplex != notGiven &&
26337                test $coin_has_osicplex != skipping; then
26338  COIN_HAS_OSICPLEX_TRUE=
26339  COIN_HAS_OSICPLEX_FALSE='#'
26340else
26341  COIN_HAS_OSICPLEX_TRUE='#'
26342  COIN_HAS_OSICPLEX_FALSE=
26343fi
26344
26345
26346
26347
26348echo "$as_me:$LINENO: checking for COIN-OR package OsiMosek" >&5
26349echo $ECHO_N "checking for COIN-OR package OsiMosek... $ECHO_C" >&6
26350
26351coin_has_osimosek=notGiven
26352
26353# check if user wants to skip package in any case
26354if test x"$COIN_SKIP_PROJECTS" != x; then
26355  for dir in $COIN_SKIP_PROJECTS; do
26356    if test $dir = "OsiMosek"; then
26357      coin_has_osimosek=skipping
26358    fi
26359  done
26360fi
26361
26362if test "$coin_has_osimosek" != skipping; then
26363
26364# Check whether --with-m4_tolower(OsiMosek) or --without-m4_tolower(OsiMosek) was given.
26365if test "${with_osimosek+set}" = set; then
26366  withval="$with_osimosek"
26367  if test "$withval" = no ; then
26368       coin_has_osimosek=skipping
26369     fi
26370
26371fi;
26372fi
26373
26374OSIMOSEK_LIBS=
26375OSIMOSEK_CFLAGS=
26376OSIMOSEK_DATA=
26377OSIMOSEK_DEPENDENCIES=
26378OSIMOSEK_PCLIBS=
26379OSIMOSEK_PCREQUIRES=
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
26398if test $coin_has_osimosek != skipping; then
26399
26400# Check whether --with-m4_tolower(OsiMosek)-lib or --without-m4_tolower(OsiMosek)-lib was given.
26401if test "${with_osimosek_lib+set}" = set; then
26402  withval="$with_osimosek_lib"
26403  if test "$withval" = no ; then
26404       coin_has_osimosek=skipping
26405     else
26406       coin_has_osimosek=yes
26407       OSIMOSEK_LIBS="$withval"
26408       OSIMOSEK_PCLIBS="$withval"
26409
26410         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
26411         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
26412
26413       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
26414       if test -z "$PKG_CONFIG" ; then
26415         OSIMOSEK_LIBS_INSTALLED="$withval"
26416         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
26417       fi
26418     fi
26419
26420fi;
26421fi
26422
26423if test $coin_has_osimosek != skipping; then
26424
26425# Check whether --with-m4_tolower(OsiMosek)-incdir or --without-m4_tolower(OsiMosek)-incdir was given.
26426if test "${with_osimosek_incdir+set}" = set; then
26427  withval="$with_osimosek_incdir"
26428  if test "$withval" = no ; then
26429       coin_has_osimosek=skipping
26430     else
26431       coin_has_osimosek=yes
26432       OSIMOSEK_CFLAGS="-I`${CYGPATH_W} $withval`"
26433       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
26434       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
26435       if test -z "$PKG_CONFIG" ; then
26436         OSIMOSEK_CFLAGS_INSTALLED="$OSIMOSEK_CFLAGS"
26437         CGLCONICLIB_CFLAGS_INSTALLED="$OSIMOSEK_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
26438       fi
26439     fi
26440
26441fi;
26442fi
26443
26444if test $coin_has_osimosek != skipping; then
26445
26446# Check whether --with-m4_tolower(OsiMosek)-datadir or --without-m4_tolower(OsiMosek)-datadir was given.
26447if test "${with_osimosek_datadir+set}" = set; then
26448  withval="$with_osimosek_datadir"
26449  if test "$withval" = no ; then
26450       coin_has_osimosek=skipping
26451     else
26452       coin_has_osimosek=yes
26453       OSIMOSEK_DATA="$withval"
26454       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
26455       if test -z "$PKG_CONFIG" ; then
26456         OSIMOSEK_DATA_INSTALLED="$withval"
26457       fi
26458     fi
26459
26460fi;
26461fi
26462
26463if test $coin_has_osimosek = notGiven; then
26464  if test -n "$PKG_CONFIG" ; then
26465    # set search path for pkg-config
26466    # need to export variable to be sure that the following pkg-config gets these values
26467    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
26468    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
26469    export PKG_CONFIG_PATH
26470
26471    # let pkg-config do it's magic
26472
26473
26474
26475if test -n "$PKG_CONFIG" ; then
26476  if $PKG_CONFIG --exists "osimosek"; then
26477    OSIMOSEK_VERSIONS=`$PKG_CONFIG --modversion "osimosek" 2>/dev/null | tr '\n' ' '`
26478     cflags=`$PKG_CONFIG --cflags "osimosek" 2>/dev/null`
26479    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
26480	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
26481	# but only do this if is not trivial
26482    if test "$CYGPATH_W" != "echo" ; then
26483      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
26484      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26485    fi
26486    OSIMOSEK_CFLAGS="$cflags"
26487    OSIMOSEK_LIBS=`$PKG_CONFIG --libs "osimosek" 2>/dev/null`
26488    OSIMOSEK_DATA=`$PKG_CONFIG --variable=datadir "osimosek" 2>/dev/null`
26489     coin_has_osimosek=yes
26490        echo "$as_me:$LINENO: result: yes: $OSIMOSEK_VERSIONS" >&5
26491echo "${ECHO_T}yes: $OSIMOSEK_VERSIONS" >&6
26492
26493        # adjust linker flags for (i)cl compiler
26494        # 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)
26495        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
26496        then
26497          OSIMOSEK_LIBS=`echo " $OSIMOSEK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
26498        fi
26499        OSIMOSEK_PCREQUIRES="osimosek"
26500
26501        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
26502
26503          CGLCONICLIB_PCREQUIRES="osimosek $CGLCONICLIB_PCREQUIRES"
26504          CGLCONICLIB_CFLAGS="$OSIMOSEK_CFLAGS $CGLCONICLIB_CFLAGS"
26505          CGLCONICLIB_LIBS="$OSIMOSEK_LIBS $CGLCONICLIB_LIBS"
26506
26507
26508
26509  else
26510    OSIMOSEK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osimosek"`
26511      coin_has_osimosek=notGiven
26512        echo "$as_me:$LINENO: result: not given: $OSIMOSEK_PKG_ERRORS" >&5
26513echo "${ECHO_T}not given: $OSIMOSEK_PKG_ERRORS" >&6
26514
26515  fi
26516else
26517  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiMosek without pkg-config\"" >&5
26518echo "$as_me: error: \"Cannot check for existance of module OsiMosek without pkg-config\"" >&2;}
26519   { (exit 1); exit 1; }; }
26520fi
26521
26522
26523
26524
26525    # reset PKG_CONFIG_PATH variable
26526    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
26527    export PKG_CONFIG_PATH
26528
26529  else
26530    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
26531echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
26532
26533echo "$as_me:$LINENO: checking for COIN-OR package OsiMosek (fallback)" >&5
26534echo $ECHO_N "checking for COIN-OR package OsiMosek (fallback)... $ECHO_C" >&6
26535
26536coin_has_osimosek=notGiven
26537OSIMOSEK_LIBS=
26538OSIMOSEK_LIBS_INSTALLED=
26539OSIMOSEK_CFLAGS=
26540OSIMOSEK_CFLAGS_INSTALLED=
26541OSIMOSEK_DATA=
26542OSIMOSEK_DATA_INSTALLED=
26543OSIMOSEK_PCLIBS=
26544OSIMOSEK_PCREQUIRES=
26545
26546# initial list of dependencies is "osimosek", but we need to filter out version number specifications (= x, <= x, >= x, != x)
26547projtoprocess="osimosek"
26548
26549# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
26550# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
26551# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
26552# also, we setup the DATA variable
26553allproj=""
26554allpcfiles=""
26555allpcifiles=""
26556while test "x$projtoprocess" != x ; do
26557
26558  for proj in $projtoprocess ; do
26559    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
26560    pcfile=""
26561    save_IFS="$IFS"
26562    IFS=":"
26563    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
26564      # 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
26565      if test -r "$dir/${proj}-uninstalled.pc" ; then
26566        pcfile="$dir/$proj-uninstalled.pc"
26567        if test -r "$dir/${proj}.pc" ; then
26568          pcifile="$dir/${proj}.pc"
26569        else
26570          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
26571echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
26572          pcifile=
26573        fi
26574        break
26575      fi
26576    done
26577    IFS="$save_IFS"
26578
26579    if test "x$pcfile" != x ; then
26580      # read dependencies from $pcfile and filter it
26581      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
26582
26583      # add projrequires to the front of the list of projects that have to be processed next
26584      # at the same time, remove $proj from this list
26585      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
26586
26587      # read DATA from $pcfile, if _DATA is still empty
26588      if test "x$OSIMOSEK_DATA" = x ; then
26589        projdatadir=
26590        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
26591        eval `sh -c "$pcfilemod"`
26592        OSIMOSEK_DATA="$projdatadir"
26593      fi
26594
26595      allproj="$allproj $proj"
26596      allpcfiles="$pcfile:$allpcfiles"
26597
26598    else
26599      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
26600echo "${ECHO_T}no, dependency $proj not available" >&6
26601      allproj=fail
26602      break 2
26603    fi
26604
26605    if test "x$pcifile" != x ; then
26606      allpcifiles="$pcifile:$allpcifiles"
26607
26608      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
26609      if test "x$OSIMOSEK_DATA_INSTALLED" = x ; then
26610        projdatadir=
26611        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
26612        eval `sh -c "$pcifilemod"`
26613        if test "${CYGPATH_W}" != "echo"; then
26614          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
26615        fi
26616        OSIMOSEK_DATA_INSTALLED="$projdatadir"
26617      fi
26618
26619    fi
26620
26621    break
26622  done
26623
26624  # remove spaces on begin of $projtoprocess
26625  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
26626
26627done
26628
26629if test "$allproj" != fail ; then
26630
26631  # now go through the list of .pc files and assemble compiler and linker flags
26632  # important is here to obey the reverse order that has been setup before,
26633  # since then libraries that are required by several others should be after these other libraries
26634  pcfilesprocessed=""
26635
26636  save_IFS="$IFS"
26637  IFS=":"
26638  for pcfile in $allpcfiles ; do
26639
26640    # if $pcfile has been processed already, skip this round
26641    if test "x$pcfilesprocessed" != x ; then
26642      for pcfiledone in $pcfilesprocessed ; do
26643        if test "$pcfiledone" = "$pcfile" ; then
26644          continue 2
26645        fi
26646      done
26647    fi
26648
26649    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
26650    #   replace "Libs:" by "echo projlibs="
26651    #   replace "Cflags:" by "echo projcflags="
26652    #   remove every line starting with <some word>:
26653    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
26654
26655    # set projcflags and projlibs variables by running $pcfilemod
26656    # 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
26657    projcflags=
26658    projlibs=
26659    IFS="$save_IFS"
26660    eval `sh -c "$pcfilemod"`
26661    IFS=":"
26662
26663    # add CYGPATH_W cludge into include flags and set CFLAGS variable
26664    if test "${CYGPATH_W}" != "echo"; then
26665      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26666    fi
26667    OSIMOSEK_CFLAGS="$projcflags $OSIMOSEK_CFLAGS"
26668
26669    # set LIBS variable
26670    OSIMOSEK_LIBS="$projlibs $OSIMOSEK_LIBS"
26671
26672    # remember that we have processed $pcfile
26673    pcfilesprocessed="$pcfilesprocessed:$pcfile"
26674
26675  done
26676  IFS="$save_IFS"
26677
26678
26679  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
26680  # important is here again to obey the reverse order that has been setup before,
26681  # since then libraries that are required by several others should be after these other libraries
26682  pcfilesprocessed=""
26683
26684  save_IFS="$IFS"
26685  IFS=":"
26686  for pcfile in $allpcifiles ; do
26687
26688    # if $pcfile has been processed already, skip this round
26689    if test "x$pcfilesprocessed" != x ; then
26690      for pcfiledone in $pcfilesprocessed ; do
26691        if test "$pcfiledone" = "$pcfile" ; then
26692          continue 2
26693        fi
26694      done
26695    fi
26696
26697    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
26698    #   replace "Libs:" by "echo projlibs="
26699    #   replace "Cflags:" by "echo projcflags="
26700    #   remove every line starting with <some word>:
26701    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
26702
26703    # set projcflags and projlibs variables by running $pcfilemod
26704    # 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
26705    projcflags=
26706    projlibs=
26707    IFS="$save_IFS"
26708    eval `sh -c "$pcfilemod"`
26709    IFS=":"
26710
26711    # add CYGPATH_W cludge into include flags and set CFLAGS variable
26712    if test "${CYGPATH_W}" != "echo"; then
26713      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26714    fi
26715    OSIMOSEK_CFLAGS_INSTALLED="$projcflags $OSIMOSEK_CFLAGS_INSTALLED"
26716
26717    # set LIBS variable
26718    OSIMOSEK_LIBS_INSTALLED="$projlibs $OSIMOSEK_LIBS_INSTALLED"
26719
26720    # remember that we have processed $pcfile
26721    pcfilesprocessed="$pcfilesprocessed:$pcfile"
26722
26723  done
26724  IFS="$save_IFS"
26725
26726
26727  # finish up
26728  coin_has_osimosek=yes
26729  echo "$as_me:$LINENO: result: yes" >&5
26730echo "${ECHO_T}yes" >&6
26731
26732cat >>confdefs.h <<\_ACEOF
26733#define COIN_HAS_OSIMOSEK 1
26734_ACEOF
26735
26736
26737  # adjust linker flags for (i)cl compiler
26738  # 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),
26739  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
26740  #    everything of the form "-lname" by "libname.lib", and
26741  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
26742  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
26743  then
26744    OSIMOSEK_LIBS=`echo " $OSIMOSEK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
26745    OSIMOSEK_LIBS_INSTALLED=`echo " $OSIMOSEK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
26746  fi
26747
26748  OSIMOSEK_PCREQUIRES="osimosek"
26749
26750    CGLCONICLIB_PCREQUIRES="osimosek $CGLCONICLIB_PCREQUIRES"
26751    CGLCONICLIB_CFLAGS="$OSIMOSEK_CFLAGS $CGLCONICLIB_CFLAGS"
26752    CGLCONICLIB_LIBS="$OSIMOSEK_LIBS $CGLCONICLIB_LIBS"
26753    CGLCONICLIB_CFLAGS_INSTALLED="$OSIMOSEK_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
26754    CGLCONICLIB_LIBS_INSTALLED="$OSIMOSEK_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
26755
26756
26757fi
26758
26759
26760
26761if test $coin_has_osimosek != notGiven &&
26762                test $coin_has_osimosek != skipping; then
26763  COIN_HAS_OSIMOSEK_TRUE=
26764  COIN_HAS_OSIMOSEK_FALSE='#'
26765else
26766  COIN_HAS_OSIMOSEK_TRUE='#'
26767  COIN_HAS_OSIMOSEK_FALSE=
26768fi
26769
26770
26771
26772  fi
26773
26774else
26775  echo "$as_me:$LINENO: result: $coin_has_osimosek" >&5
26776echo "${ECHO_T}$coin_has_osimosek" >&6
26777fi
26778
26779if test $coin_has_osimosek != skipping &&
26780   test $coin_has_osimosek != notGiven ; then
26781
26782cat >>confdefs.h <<\_ACEOF
26783#define COIN_HAS_OSIMOSEK 1
26784_ACEOF
26785
26786
26787  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
26788if test "${enable_interpackage_dependencies+set}" = set; then
26789  enableval="$enable_interpackage_dependencies"
26790
26791else
26792  enable_interpackage_dependencies=yes
26793fi;
26794
26795  if test $enable_interpackage_dependencies = yes ; then
26796     # construct dependencies variables from LIBS variables
26797     # we add an extra space in LIBS so we can substitute out everything starting with " -"
26798     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
26799     # then remove everything of the form -xxx
26800     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
26801     OSIMOSEK_DEPENDENCIES=`echo " $OSIMOSEK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
26802
26803       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
26804
26805  fi
26806
26807  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
26808    if test -n "$OSIMOSEK_CFLAGS" ; then
26809      { echo "$as_me:$LINENO: OsiMosek CFLAGS are $OSIMOSEK_CFLAGS" >&5
26810echo "$as_me: OsiMosek CFLAGS are $OSIMOSEK_CFLAGS" >&6;}
26811    fi
26812    if test -n "$OSIMOSEK_LIBS" ; then
26813      { echo "$as_me:$LINENO: OsiMosek LIBS   are $OSIMOSEK_LIBS" >&5
26814echo "$as_me: OsiMosek LIBS   are $OSIMOSEK_LIBS" >&6;}
26815    fi
26816    if test -n "$OSIMOSEK_DEPENDENCIES" ; then
26817      { echo "$as_me:$LINENO: OsiMosek DEPENDENCIES are $OSIMOSEK_DEPENDENCIES" >&5
26818echo "$as_me: OsiMosek DEPENDENCIES are $OSIMOSEK_DEPENDENCIES" >&6;}
26819    fi
26820    if test -n "$OSIMOSEK_DATA" ; then
26821      { echo "$as_me:$LINENO: OsiMosek DATA   is  $OSIMOSEK_DATA" >&5
26822echo "$as_me: OsiMosek DATA   is  $OSIMOSEK_DATA" >&6;}
26823    fi
26824    if test -n "$OSIMOSEK_PCLIBS" ; then
26825      { echo "$as_me:$LINENO: OsiMosek PCLIBS are $OSIMOSEK_PCLIBS" >&5
26826echo "$as_me: OsiMosek PCLIBS are $OSIMOSEK_PCLIBS" >&6;}
26827    fi
26828    if test -n "$OSIMOSEK_PCREQUIRES" ; then
26829      { echo "$as_me:$LINENO: OsiMosek PCREQUIRES are $OSIMOSEK_PCREQUIRES" >&5
26830echo "$as_me: OsiMosek PCREQUIRES are $OSIMOSEK_PCREQUIRES" >&6;}
26831    fi
26832
26833      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
26834echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
26835      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
26836echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
26837      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
26838echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
26839
26840  fi
26841fi
26842
26843# Define the Makefile conditional
26844
26845
26846if test $coin_has_osimosek != notGiven &&
26847                test $coin_has_osimosek != skipping; then
26848  COIN_HAS_OSIMOSEK_TRUE=
26849  COIN_HAS_OSIMOSEK_FALSE='#'
26850else
26851  COIN_HAS_OSIMOSEK_TRUE='#'
26852  COIN_HAS_OSIMOSEK_FALSE=
26853fi
26854
26855
26856
26857
26858#############################################################################
26859#                      Check for IPM solver                                 #
26860#############################################################################
26861echo "$as_me:$LINENO: checking for CglConic default IPM solver" >&5
26862echo $ECHO_N "checking for CglConic default IPM solver... $ECHO_C" >&6
26863
26864# Check whether --with-ipm-solver or --without-ipm-solver was given.
26865if test "${with_ipm_solver+set}" = set; then
26866  withval="$with_ipm_solver"
26867  cglconic_ipm_solver=$withval
26868else
26869  cglconic_ipm_solver=ipopt
26870fi;
26871
26872found_package=true
26873case $cglconic_ipm_solver in
26874   ipopt)
26875     echo "$as_me:$LINENO: result: Ipopt" >&5
26876echo "${ECHO_T}Ipopt" >&6
26877     if test $coin_has_osiipopt = unavailable || test $coin_has_osiipopt = skipping; \
26878     then
26879         found_package=false
26880     fi
26881   ;;
26882   mosek)
26883     echo "$as_me:$LINENO: result: Mosek" >&5
26884echo "${ECHO_T}Mosek" >&6
26885     if test $coin_has_mosek = false; \
26886     then
26887         found_package=false
26888     fi
26889   ;;
26890   cplex)
26891     echo "$as_me:$LINENO: result: Cplex" >&5
26892echo "${ECHO_T}Cplex" >&6
26893     if test $coin_has_cplex = false; \
26894     then
26895         found_package=false
26896     fi
26897   ;;
26898   *)
26899   { { echo "$as_me:$LINENO: error: Unknown IPM solver!" >&5
26900echo "$as_me: error: Unknown IPM solver!" >&2;}
26901   { (exit 1); exit 1; }; }
26902   ;;
26903esac
26904
26905if test $found_package = false; then
26906  { { echo "$as_me:$LINENO: error: Couldn't find the $cglconic_ipm_solver package!" >&5
26907echo "$as_me: error: Couldn't find the $cglconic_ipm_solver package!" >&2;}
26908   { (exit 1); exit 1; }; }
26909fi
26910
26911
26912
26913if test $cglconic_ipm_solver = ipopt &&
26914test $coin_has_osiipopt = yes; then
26915  IPOPT_IPM_SOLVER_TRUE=
26916  IPOPT_IPM_SOLVER_FALSE='#'
26917else
26918  IPOPT_IPM_SOLVER_TRUE='#'
26919  IPOPT_IPM_SOLVER_FALSE=
26920fi
26921
26922
26923
26924if test $cglconic_ipm_solver = mosek &&
26925test $coin_has_osimosek = yes; then
26926  MOSEK_IPM_SOLVER_TRUE=
26927  MOSEK_IPM_SOLVER_FALSE='#'
26928else
26929  MOSEK_IPM_SOLVER_TRUE='#'
26930  MOSEK_IPM_SOLVER_FALSE=
26931fi
26932
26933
26934
26935if test $cglconic_ipm_solver = cplex &&
26936test $coin_has_osicplex = yes; then
26937  CPLEX_IPM_SOLVER_TRUE=
26938  CPLEX_IPM_SOLVER_FALSE='#'
26939else
26940  CPLEX_IPM_SOLVER_TRUE='#'
26941  CPLEX_IPM_SOLVER_FALSE=
26942fi
26943
26944
26945# Check thirdparty libraries
26946
26947echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
26948echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
26949
26950coin_has_sample=notGiven
26951
26952# check if user wants to skip package in any case
26953if test x"$COIN_SKIP_PROJECTS" != x; then
26954  for dir in $COIN_SKIP_PROJECTS; do
26955    if test $dir = "Sample"; then
26956      coin_has_sample=skipping
26957    fi
26958  done
26959fi
26960
26961if test "$coin_has_sample" != skipping; then
26962
26963# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
26964if test "${with_sample+set}" = set; then
26965  withval="$with_sample"
26966  if test "$withval" = no ; then
26967       coin_has_sample=skipping
26968     fi
26969
26970fi;
26971fi
26972
26973SAMPLE_LIBS=
26974SAMPLE_CFLAGS=
26975SAMPLE_DATA=
26976SAMPLE_DEPENDENCIES=
26977SAMPLE_PCLIBS=
26978SAMPLE_PCREQUIRES=
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
26989if test $coin_has_sample != skipping; then
26990
26991# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
26992if test "${with_sample_lib+set}" = set; then
26993  withval="$with_sample_lib"
26994  if test "$withval" = no ; then
26995       coin_has_sample=skipping
26996     else
26997       coin_has_sample=yes
26998       SAMPLE_LIBS="$withval"
26999       SAMPLE_PCLIBS="$withval"
27000
27001       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
27002       if test -z "$PKG_CONFIG" ; then
27003         SAMPLE_LIBS_INSTALLED="$withval"
27004
27005       fi
27006     fi
27007
27008fi;
27009fi
27010
27011if test $coin_has_sample != skipping; then
27012
27013# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
27014if test "${with_sample_incdir+set}" = set; then
27015  withval="$with_sample_incdir"
27016  if test "$withval" = no ; then
27017       coin_has_sample=skipping
27018     else
27019       coin_has_sample=yes
27020       SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
27021
27022       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
27023       if test -z "$PKG_CONFIG" ; then
27024         SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS"
27025
27026       fi
27027     fi
27028
27029fi;
27030fi
27031
27032if test $coin_has_sample != skipping; then
27033
27034# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
27035if test "${with_sample_datadir+set}" = set; then
27036  withval="$with_sample_datadir"
27037  if test "$withval" = no ; then
27038       coin_has_sample=skipping
27039     else
27040       coin_has_sample=yes
27041       SAMPLE_DATA="$withval"
27042       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
27043       if test -z "$PKG_CONFIG" ; then
27044         SAMPLE_DATA_INSTALLED="$withval"
27045       fi
27046     fi
27047
27048fi;
27049fi
27050
27051if test $coin_has_sample = notGiven; then
27052  if test -n "$PKG_CONFIG" ; then
27053    # set search path for pkg-config
27054    # need to export variable to be sure that the following pkg-config gets these values
27055    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
27056    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
27057    export PKG_CONFIG_PATH
27058
27059    # let pkg-config do it's magic
27060
27061
27062
27063if test -n "$PKG_CONFIG" ; then
27064  if $PKG_CONFIG --exists "coindatasample"; then
27065    SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null | tr '\n' ' '`
27066     cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
27067    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
27068	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
27069	# but only do this if is not trivial
27070    if test "$CYGPATH_W" != "echo" ; then
27071      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
27072      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
27073    fi
27074    SAMPLE_CFLAGS="$cflags"
27075    SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
27076    SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
27077     coin_has_sample=yes
27078        echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
27079echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
27080
27081        # adjust linker flags for (i)cl compiler
27082        # 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)
27083        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
27084        then
27085          SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
27086        fi
27087        SAMPLE_PCREQUIRES="coindatasample"
27088
27089        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
27090
27091
27092
27093  else
27094    SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
27095      coin_has_sample=notGiven
27096        echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
27097echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
27098
27099  fi
27100else
27101  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
27102echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
27103   { (exit 1); exit 1; }; }
27104fi
27105
27106
27107
27108
27109    # reset PKG_CONFIG_PATH variable
27110    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
27111    export PKG_CONFIG_PATH
27112
27113  else
27114    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
27115echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
27116
27117echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
27118echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
27119
27120coin_has_sample=notGiven
27121SAMPLE_LIBS=
27122SAMPLE_LIBS_INSTALLED=
27123SAMPLE_CFLAGS=
27124SAMPLE_CFLAGS_INSTALLED=
27125SAMPLE_DATA=
27126SAMPLE_DATA_INSTALLED=
27127SAMPLE_PCLIBS=
27128SAMPLE_PCREQUIRES=
27129
27130# initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x)
27131projtoprocess="coindatasample"
27132
27133# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
27134# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
27135# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
27136# also, we setup the DATA variable
27137allproj=""
27138allpcfiles=""
27139allpcifiles=""
27140while test "x$projtoprocess" != x ; do
27141
27142  for proj in $projtoprocess ; do
27143    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
27144    pcfile=""
27145    save_IFS="$IFS"
27146    IFS=":"
27147    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
27148      # 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
27149      if test -r "$dir/${proj}-uninstalled.pc" ; then
27150        pcfile="$dir/$proj-uninstalled.pc"
27151        if test -r "$dir/${proj}.pc" ; then
27152          pcifile="$dir/${proj}.pc"
27153        else
27154          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
27155echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
27156          pcifile=
27157        fi
27158        break
27159      fi
27160    done
27161    IFS="$save_IFS"
27162
27163    if test "x$pcfile" != x ; then
27164      # read dependencies from $pcfile and filter it
27165      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
27166
27167      # add projrequires to the front of the list of projects that have to be processed next
27168      # at the same time, remove $proj from this list
27169      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
27170
27171      # read DATA from $pcfile, if _DATA is still empty
27172      if test "x$SAMPLE_DATA" = x ; then
27173        projdatadir=
27174        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
27175        eval `sh -c "$pcfilemod"`
27176        SAMPLE_DATA="$projdatadir"
27177      fi
27178
27179      allproj="$allproj $proj"
27180      allpcfiles="$pcfile:$allpcfiles"
27181
27182    else
27183      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
27184echo "${ECHO_T}no, dependency $proj not available" >&6
27185      allproj=fail
27186      break 2
27187    fi
27188
27189    if test "x$pcifile" != x ; then
27190      allpcifiles="$pcifile:$allpcifiles"
27191
27192      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
27193      if test "x$SAMPLE_DATA_INSTALLED" = x ; then
27194        projdatadir=
27195        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
27196        eval `sh -c "$pcifilemod"`
27197        if test "${CYGPATH_W}" != "echo"; then
27198          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
27199        fi
27200        SAMPLE_DATA_INSTALLED="$projdatadir"
27201      fi
27202
27203    fi
27204
27205    break
27206  done
27207
27208  # remove spaces on begin of $projtoprocess
27209  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
27210
27211done
27212
27213if test "$allproj" != fail ; then
27214
27215  # now go through the list of .pc files and assemble compiler and linker flags
27216  # important is here to obey the reverse order that has been setup before,
27217  # since then libraries that are required by several others should be after these other libraries
27218  pcfilesprocessed=""
27219
27220  save_IFS="$IFS"
27221  IFS=":"
27222  for pcfile in $allpcfiles ; do
27223
27224    # if $pcfile has been processed already, skip this round
27225    if test "x$pcfilesprocessed" != x ; then
27226      for pcfiledone in $pcfilesprocessed ; do
27227        if test "$pcfiledone" = "$pcfile" ; then
27228          continue 2
27229        fi
27230      done
27231    fi
27232
27233    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
27234    #   replace "Libs:" by "echo projlibs="
27235    #   replace "Cflags:" by "echo projcflags="
27236    #   remove every line starting with <some word>:
27237    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
27238
27239    # set projcflags and projlibs variables by running $pcfilemod
27240    # 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
27241    projcflags=
27242    projlibs=
27243    IFS="$save_IFS"
27244    eval `sh -c "$pcfilemod"`
27245    IFS=":"
27246
27247    # add CYGPATH_W cludge into include flags and set CFLAGS variable
27248    if test "${CYGPATH_W}" != "echo"; then
27249      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
27250    fi
27251    SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
27252
27253    # set LIBS variable
27254    SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
27255
27256    # remember that we have processed $pcfile
27257    pcfilesprocessed="$pcfilesprocessed:$pcfile"
27258
27259  done
27260  IFS="$save_IFS"
27261
27262
27263  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
27264  # important is here again to obey the reverse order that has been setup before,
27265  # since then libraries that are required by several others should be after these other libraries
27266  pcfilesprocessed=""
27267
27268  save_IFS="$IFS"
27269  IFS=":"
27270  for pcfile in $allpcifiles ; do
27271
27272    # if $pcfile has been processed already, skip this round
27273    if test "x$pcfilesprocessed" != x ; then
27274      for pcfiledone in $pcfilesprocessed ; do
27275        if test "$pcfiledone" = "$pcfile" ; then
27276          continue 2
27277        fi
27278      done
27279    fi
27280
27281    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
27282    #   replace "Libs:" by "echo projlibs="
27283    #   replace "Cflags:" by "echo projcflags="
27284    #   remove every line starting with <some word>:
27285    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
27286
27287    # set projcflags and projlibs variables by running $pcfilemod
27288    # 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
27289    projcflags=
27290    projlibs=
27291    IFS="$save_IFS"
27292    eval `sh -c "$pcfilemod"`
27293    IFS=":"
27294
27295    # add CYGPATH_W cludge into include flags and set CFLAGS variable
27296    if test "${CYGPATH_W}" != "echo"; then
27297      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
27298    fi
27299    SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
27300
27301    # set LIBS variable
27302    SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
27303
27304    # remember that we have processed $pcfile
27305    pcfilesprocessed="$pcfilesprocessed:$pcfile"
27306
27307  done
27308  IFS="$save_IFS"
27309
27310
27311  # finish up
27312  coin_has_sample=yes
27313  echo "$as_me:$LINENO: result: yes" >&5
27314echo "${ECHO_T}yes" >&6
27315
27316cat >>confdefs.h <<\_ACEOF
27317#define COIN_HAS_SAMPLE 1
27318_ACEOF
27319
27320
27321  # adjust linker flags for (i)cl compiler
27322  # 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),
27323  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
27324  #    everything of the form "-lname" by "libname.lib", and
27325  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
27326  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
27327  then
27328    SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
27329    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'`
27330  fi
27331
27332  SAMPLE_PCREQUIRES="coindatasample"
27333
27334
27335fi
27336
27337
27338
27339if test $coin_has_sample != notGiven &&
27340                test $coin_has_sample != skipping; then
27341  COIN_HAS_SAMPLE_TRUE=
27342  COIN_HAS_SAMPLE_FALSE='#'
27343else
27344  COIN_HAS_SAMPLE_TRUE='#'
27345  COIN_HAS_SAMPLE_FALSE=
27346fi
27347
27348
27349
27350  fi
27351
27352else
27353  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
27354echo "${ECHO_T}$coin_has_sample" >&6
27355fi
27356
27357if test $coin_has_sample != skipping &&
27358   test $coin_has_sample != notGiven ; then
27359
27360cat >>confdefs.h <<\_ACEOF
27361#define COIN_HAS_SAMPLE 1
27362_ACEOF
27363
27364
27365  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
27366if test "${enable_interpackage_dependencies+set}" = set; then
27367  enableval="$enable_interpackage_dependencies"
27368
27369else
27370  enable_interpackage_dependencies=yes
27371fi;
27372
27373  if test $enable_interpackage_dependencies = yes ; then
27374     # construct dependencies variables from LIBS variables
27375     # we add an extra space in LIBS so we can substitute out everything starting with " -"
27376     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
27377     # then remove everything of the form -xxx
27378     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
27379     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'`
27380
27381  fi
27382
27383  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
27384    if test -n "$SAMPLE_CFLAGS" ; then
27385      { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
27386echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
27387    fi
27388    if test -n "$SAMPLE_LIBS" ; then
27389      { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
27390echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
27391    fi
27392    if test -n "$SAMPLE_DEPENDENCIES" ; then
27393      { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
27394echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
27395    fi
27396    if test -n "$SAMPLE_DATA" ; then
27397      { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
27398echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
27399    fi
27400    if test -n "$SAMPLE_PCLIBS" ; then
27401      { echo "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5
27402echo "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;}
27403    fi
27404    if test -n "$SAMPLE_PCREQUIRES" ; then
27405      { echo "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5
27406echo "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;}
27407    fi
27408
27409  fi
27410fi
27411
27412# Define the Makefile conditional
27413
27414
27415if test $coin_has_sample != notGiven &&
27416                test $coin_has_sample != skipping; then
27417  COIN_HAS_SAMPLE_TRUE=
27418  COIN_HAS_SAMPLE_FALSE='#'
27419else
27420  COIN_HAS_SAMPLE_TRUE='#'
27421  COIN_HAS_SAMPLE_FALSE=
27422fi
27423
27424
27425
27426
27427
27428# Check whether --with-blas or --without-blas was given.
27429if test "${with_blas+set}" = set; then
27430  withval="$with_blas"
27431  use_blas="$withval"
27432else
27433  use_blas=
27434fi;
27435
27436# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
27437# preference
27438
27439# Check whether --with-blas-lib or --without-blas-lib was given.
27440if test "${with_blas_lib+set}" = set; then
27441  withval="$with_blas_lib"
27442  use_blas=BUILD
27443fi;
27444
27445# Check if user supplied option makes sense
27446if test x"$use_blas" != x; then
27447  if test "$use_blas" = "BUILD"; then
27448    # we come to this later
27449    :
27450  elif test "$use_blas" != "no"; then
27451    coin_save_LIBS="$LIBS"
27452    LIBS="$use_blas $LIBS"
27453    if test "$F77" != unavailable ; then
27454      coin_need_flibs=no
27455      echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
27456echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
27457      case $ac_ext in
27458  f)
27459    cat >conftest.$ac_ext <<_ACEOF
27460/* confdefs.h.  */
27461_ACEOF
27462cat confdefs.h >>conftest.$ac_ext
27463cat >>conftest.$ac_ext <<_ACEOF
27464/* end confdefs.h.  */
27465
27466#ifdef F77_DUMMY_MAIN
27467
27468#  ifdef __cplusplus
27469     extern "C"
27470#  endif
27471   int F77_DUMMY_MAIN() { return 1; }
27472
27473#endif
27474int
27475main ()
27476{
27477      call daxpy
27478  ;
27479  return 0;
27480}
27481_ACEOF
27482rm -f conftest.$ac_objext conftest$ac_exeext
27483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27484  (eval $ac_link) 2>conftest.er1
27485  ac_status=$?
27486  grep -v '^ *+' conftest.er1 >conftest.err
27487  rm -f conftest.er1
27488  cat conftest.err >&5
27489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490  (exit $ac_status); } &&
27491	 { ac_try='test -z "$ac_c_werror_flag"
27492			 || test ! -s conftest.err'
27493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494  (eval $ac_try) 2>&5
27495  ac_status=$?
27496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497  (exit $ac_status); }; } &&
27498	 { ac_try='test -s conftest$ac_exeext'
27499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500  (eval $ac_try) 2>&5
27501  ac_status=$?
27502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503  (exit $ac_status); }; }; then
27504  if test $coin_need_flibs = yes ; then
27505                           use_blas="$use_blas $FLIBS"
27506                         fi
27507                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27508echo "${ECHO_T}yes: $use_blas" >&6
27509else
27510  echo "$as_me: failed program was:" >&5
27511sed 's/^/| /' conftest.$ac_ext >&5
27512
27513echo "$as_me:$LINENO: result: no" >&5
27514echo "${ECHO_T}no" >&6
27515                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
27516echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
27517   { (exit 1); exit 1; }; }
27518fi
27519rm -f conftest.err conftest.$ac_objext \
27520      conftest$ac_exeext conftest.$ac_ext
27521    ;;
27522  c)
27523    ac_ext=f
27524ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27525ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27526ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27527case $ac_cv_f77_mangling in
27528  upper*) ac_val="DAXPY" ;;
27529  lower*) ac_val="daxpy" ;;
27530  *)      ac_val="unknown" ;;
27531esac
27532case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27533
27534cfuncdaxpy="$ac_val"
27535
27536ac_ext=c
27537ac_cpp='$CPP $CPPFLAGS'
27538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27540ac_compiler_gnu=$ac_cv_c_compiler_gnu
27541
27542    if test x"$coin_need_flibs" = xyes; then
27543      flink_try=no;
27544    else
27545      cat >conftest.$ac_ext <<_ACEOF
27546/* confdefs.h.  */
27547_ACEOF
27548cat confdefs.h >>conftest.$ac_ext
27549cat >>conftest.$ac_ext <<_ACEOF
27550/* end confdefs.h.  */
27551void $cfuncdaxpy();
27552#ifdef F77_DUMMY_MAIN
27553
27554#  ifdef __cplusplus
27555     extern "C"
27556#  endif
27557   int F77_DUMMY_MAIN() { return 1; }
27558
27559#endif
27560int
27561main ()
27562{
27563$cfuncdaxpy()
27564  ;
27565  return 0;
27566}
27567_ACEOF
27568rm -f conftest.$ac_objext conftest$ac_exeext
27569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27570  (eval $ac_link) 2>conftest.er1
27571  ac_status=$?
27572  grep -v '^ *+' conftest.er1 >conftest.err
27573  rm -f conftest.er1
27574  cat conftest.err >&5
27575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576  (exit $ac_status); } &&
27577	 { ac_try='test -z "$ac_c_werror_flag"
27578			 || test ! -s conftest.err'
27579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580  (eval $ac_try) 2>&5
27581  ac_status=$?
27582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583  (exit $ac_status); }; } &&
27584	 { ac_try='test -s conftest$ac_exeext'
27585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586  (eval $ac_try) 2>&5
27587  ac_status=$?
27588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589  (exit $ac_status); }; }; then
27590  flink_try=yes
27591else
27592  echo "$as_me: failed program was:" >&5
27593sed 's/^/| /' conftest.$ac_ext >&5
27594
27595flink_try=no
27596fi
27597rm -f conftest.err conftest.$ac_objext \
27598      conftest$ac_exeext conftest.$ac_ext
27599    fi
27600    if test $flink_try = yes; then
27601      if test $coin_need_flibs = yes ; then
27602                           use_blas="$use_blas $FLIBS"
27603                         fi
27604                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27605echo "${ECHO_T}yes: $use_blas" >&6
27606    else
27607      if test x"$FLIBS" != x; then
27608        flink_save_libs="$LIBS"
27609        LIBS="$LIBS $FLIBS"
27610        cat >conftest.$ac_ext <<_ACEOF
27611/* confdefs.h.  */
27612_ACEOF
27613cat confdefs.h >>conftest.$ac_ext
27614cat >>conftest.$ac_ext <<_ACEOF
27615/* end confdefs.h.  */
27616void $cfuncdaxpy();
27617#ifdef F77_DUMMY_MAIN
27618
27619#  ifdef __cplusplus
27620     extern "C"
27621#  endif
27622   int F77_DUMMY_MAIN() { return 1; }
27623
27624#endif
27625int
27626main ()
27627{
27628$cfuncdaxpy()
27629  ;
27630  return 0;
27631}
27632_ACEOF
27633rm -f conftest.$ac_objext conftest$ac_exeext
27634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27635  (eval $ac_link) 2>conftest.er1
27636  ac_status=$?
27637  grep -v '^ *+' conftest.er1 >conftest.err
27638  rm -f conftest.er1
27639  cat conftest.err >&5
27640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641  (exit $ac_status); } &&
27642	 { ac_try='test -z "$ac_c_werror_flag"
27643			 || test ! -s conftest.err'
27644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645  (eval $ac_try) 2>&5
27646  ac_status=$?
27647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648  (exit $ac_status); }; } &&
27649	 { ac_try='test -s conftest$ac_exeext'
27650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651  (eval $ac_try) 2>&5
27652  ac_status=$?
27653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654  (exit $ac_status); }; }; then
27655  LIBS="$flink_save_libs"
27656                     coin_need_flibs=yes
27657                     if test $coin_need_flibs = yes ; then
27658                           use_blas="$use_blas $FLIBS"
27659                         fi
27660                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27661echo "${ECHO_T}yes: $use_blas" >&6
27662
27663else
27664  echo "$as_me: failed program was:" >&5
27665sed 's/^/| /' conftest.$ac_ext >&5
27666
27667LIBS="$flink_save_libs"
27668                     echo "$as_me:$LINENO: result: no" >&5
27669echo "${ECHO_T}no" >&6
27670                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
27671echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
27672   { (exit 1); exit 1; }; }
27673fi
27674rm -f conftest.err conftest.$ac_objext \
27675      conftest$ac_exeext conftest.$ac_ext
27676      else
27677        echo "$as_me:$LINENO: result: no" >&5
27678echo "${ECHO_T}no" >&6
27679                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
27680echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
27681   { (exit 1); exit 1; }; }
27682      fi
27683    fi
27684    ;;
27685  cc|cpp)
27686    ac_ext=f
27687ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27688ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27689ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27690case $ac_cv_f77_mangling in
27691  upper*) ac_val="DAXPY" ;;
27692  lower*) ac_val="daxpy" ;;
27693  *)      ac_val="unknown" ;;
27694esac
27695case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27696
27697cfuncdaxpy="$ac_val"
27698
27699ac_ext=c
27700ac_cpp='$CPP $CPPFLAGS'
27701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27703ac_compiler_gnu=$ac_cv_c_compiler_gnu
27704
27705    if test x"$coin_need_flibs" = xyes; then
27706      flink_try=no;
27707    else
27708      cat >conftest.$ac_ext <<_ACEOF
27709/* confdefs.h.  */
27710_ACEOF
27711cat confdefs.h >>conftest.$ac_ext
27712cat >>conftest.$ac_ext <<_ACEOF
27713/* end confdefs.h.  */
27714extern "C" {void $cfuncdaxpy();}
27715#ifdef F77_DUMMY_MAIN
27716
27717#  ifdef __cplusplus
27718     extern "C"
27719#  endif
27720   int F77_DUMMY_MAIN() { return 1; }
27721
27722#endif
27723int
27724main ()
27725{
27726$cfuncdaxpy()
27727  ;
27728  return 0;
27729}
27730_ACEOF
27731rm -f conftest.$ac_objext conftest$ac_exeext
27732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27733  (eval $ac_link) 2>conftest.er1
27734  ac_status=$?
27735  grep -v '^ *+' conftest.er1 >conftest.err
27736  rm -f conftest.er1
27737  cat conftest.err >&5
27738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739  (exit $ac_status); } &&
27740	 { ac_try='test -z "$ac_c_werror_flag"
27741			 || test ! -s conftest.err'
27742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27743  (eval $ac_try) 2>&5
27744  ac_status=$?
27745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746  (exit $ac_status); }; } &&
27747	 { ac_try='test -s conftest$ac_exeext'
27748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749  (eval $ac_try) 2>&5
27750  ac_status=$?
27751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752  (exit $ac_status); }; }; then
27753  flink_try=yes
27754else
27755  echo "$as_me: failed program was:" >&5
27756sed 's/^/| /' conftest.$ac_ext >&5
27757
27758flink_try=no
27759fi
27760rm -f conftest.err conftest.$ac_objext \
27761      conftest$ac_exeext conftest.$ac_ext
27762    fi
27763    if test $flink_try = yes; then
27764      if test $coin_need_flibs = yes ; then
27765                           use_blas="$use_blas $FLIBS"
27766                         fi
27767                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27768echo "${ECHO_T}yes: $use_blas" >&6
27769    else
27770      if test x"$FLIBS" != x; then
27771        flink_save_libs="$LIBS"
27772        LIBS="$LIBS $FLIBS"
27773        cat >conftest.$ac_ext <<_ACEOF
27774/* confdefs.h.  */
27775_ACEOF
27776cat confdefs.h >>conftest.$ac_ext
27777cat >>conftest.$ac_ext <<_ACEOF
27778/* end confdefs.h.  */
27779extern "C" {void $cfuncdaxpy();}
27780#ifdef F77_DUMMY_MAIN
27781
27782#  ifdef __cplusplus
27783     extern "C"
27784#  endif
27785   int F77_DUMMY_MAIN() { return 1; }
27786
27787#endif
27788int
27789main ()
27790{
27791$cfuncdaxpy()
27792  ;
27793  return 0;
27794}
27795_ACEOF
27796rm -f conftest.$ac_objext conftest$ac_exeext
27797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27798  (eval $ac_link) 2>conftest.er1
27799  ac_status=$?
27800  grep -v '^ *+' conftest.er1 >conftest.err
27801  rm -f conftest.er1
27802  cat conftest.err >&5
27803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804  (exit $ac_status); } &&
27805	 { ac_try='test -z "$ac_c_werror_flag"
27806			 || test ! -s conftest.err'
27807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808  (eval $ac_try) 2>&5
27809  ac_status=$?
27810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811  (exit $ac_status); }; } &&
27812	 { ac_try='test -s conftest$ac_exeext'
27813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814  (eval $ac_try) 2>&5
27815  ac_status=$?
27816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817  (exit $ac_status); }; }; then
27818  LIBS="$flink_save_libs"
27819                     coin_need_flibs=yes
27820                     if test $coin_need_flibs = yes ; then
27821                           use_blas="$use_blas $FLIBS"
27822                         fi
27823                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27824echo "${ECHO_T}yes: $use_blas" >&6
27825
27826else
27827  echo "$as_me: failed program was:" >&5
27828sed 's/^/| /' conftest.$ac_ext >&5
27829
27830LIBS="$flink_save_libs"
27831                     echo "$as_me:$LINENO: result: no" >&5
27832echo "${ECHO_T}no" >&6
27833                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
27834echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
27835   { (exit 1); exit 1; }; }
27836fi
27837rm -f conftest.err conftest.$ac_objext \
27838      conftest$ac_exeext conftest.$ac_ext
27839      else
27840        echo "$as_me:$LINENO: result: no" >&5
27841echo "${ECHO_T}no" >&6
27842                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
27843echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
27844   { (exit 1); exit 1; }; }
27845      fi
27846    fi
27847    ;;
27848esac
27849
27850      use_blas="$use_blas $FLIBS"
27851    else
27852      { echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&5
27853echo "$as_me: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&6;}
27854      ac_ext=c
27855ac_cpp='$CPP $CPPFLAGS'
27856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27858ac_compiler_gnu=$ac_cv_c_compiler_gnu
27859
27860      echo "$as_me:$LINENO: checking for daxpy" >&5
27861echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
27862if test "${ac_cv_func_daxpy+set}" = set; then
27863  echo $ECHO_N "(cached) $ECHO_C" >&6
27864else
27865  cat >conftest.$ac_ext <<_ACEOF
27866/* confdefs.h.  */
27867_ACEOF
27868cat confdefs.h >>conftest.$ac_ext
27869cat >>conftest.$ac_ext <<_ACEOF
27870/* end confdefs.h.  */
27871/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
27872   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27873#define daxpy innocuous_daxpy
27874
27875/* System header to define __stub macros and hopefully few prototypes,
27876    which can conflict with char daxpy (); below.
27877    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27878    <limits.h> exists even on freestanding compilers.  */
27879
27880#ifdef __STDC__
27881# include <limits.h>
27882#else
27883# include <assert.h>
27884#endif
27885
27886#undef daxpy
27887
27888/* Override any gcc2 internal prototype to avoid an error.  */
27889#ifdef __cplusplus
27890extern "C"
27891{
27892#endif
27893/* We use char because int might match the return type of a gcc2
27894   builtin and then its argument prototype would still apply.  */
27895char daxpy ();
27896/* The GNU C library defines this for functions which it implements
27897    to always fail with ENOSYS.  Some functions are actually named
27898    something starting with __ and the normal name is an alias.  */
27899#if defined (__stub_daxpy) || defined (__stub___daxpy)
27900choke me
27901#else
27902char (*f) () = daxpy;
27903#endif
27904#ifdef __cplusplus
27905}
27906#endif
27907
27908#ifdef F77_DUMMY_MAIN
27909
27910#  ifdef __cplusplus
27911     extern "C"
27912#  endif
27913   int F77_DUMMY_MAIN() { return 1; }
27914
27915#endif
27916int
27917main ()
27918{
27919return f != daxpy;
27920  ;
27921  return 0;
27922}
27923_ACEOF
27924rm -f conftest.$ac_objext conftest$ac_exeext
27925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27926  (eval $ac_link) 2>conftest.er1
27927  ac_status=$?
27928  grep -v '^ *+' conftest.er1 >conftest.err
27929  rm -f conftest.er1
27930  cat conftest.err >&5
27931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932  (exit $ac_status); } &&
27933	 { ac_try='test -z "$ac_c_werror_flag"
27934			 || test ! -s conftest.err'
27935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936  (eval $ac_try) 2>&5
27937  ac_status=$?
27938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939  (exit $ac_status); }; } &&
27940	 { ac_try='test -s conftest$ac_exeext'
27941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27942  (eval $ac_try) 2>&5
27943  ac_status=$?
27944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945  (exit $ac_status); }; }; then
27946  ac_cv_func_daxpy=yes
27947else
27948  echo "$as_me: failed program was:" >&5
27949sed 's/^/| /' conftest.$ac_ext >&5
27950
27951ac_cv_func_daxpy=no
27952fi
27953rm -f conftest.err conftest.$ac_objext \
27954      conftest$ac_exeext conftest.$ac_ext
27955fi
27956echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
27957echo "${ECHO_T}$ac_cv_func_daxpy" >&6
27958if test $ac_cv_func_daxpy = yes; then
27959  :
27960else
27961  { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
27962echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
27963   { (exit 1); exit 1; }; }
27964fi
27965
27966      ac_ext=c
27967ac_cpp='$CPP $CPPFLAGS'
27968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27970ac_compiler_gnu=$ac_cv_c_compiler_gnu
27971
27972    fi
27973    LIBS="$coin_save_LIBS"
27974  fi
27975else
27976# Try to autodetect the library for blas based on build system
27977  #AC_MSG_CHECKING([default locations for BLAS])
27978  case $build in
27979    *-sgi-*)
27980      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
27981echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
27982      coin_need_flibs=no
27983      coin_save_LIBS="$LIBS"
27984      LIBS="-lcomplib.sgimath $LIBS"
27985      case $ac_ext in
27986  f)
27987    cat >conftest.$ac_ext <<_ACEOF
27988/* confdefs.h.  */
27989_ACEOF
27990cat confdefs.h >>conftest.$ac_ext
27991cat >>conftest.$ac_ext <<_ACEOF
27992/* end confdefs.h.  */
27993
27994#ifdef F77_DUMMY_MAIN
27995
27996#  ifdef __cplusplus
27997     extern "C"
27998#  endif
27999   int F77_DUMMY_MAIN() { return 1; }
28000
28001#endif
28002int
28003main ()
28004{
28005      call daxpy
28006  ;
28007  return 0;
28008}
28009_ACEOF
28010rm -f conftest.$ac_objext conftest$ac_exeext
28011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28012  (eval $ac_link) 2>conftest.er1
28013  ac_status=$?
28014  grep -v '^ *+' conftest.er1 >conftest.err
28015  rm -f conftest.er1
28016  cat conftest.err >&5
28017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018  (exit $ac_status); } &&
28019	 { ac_try='test -z "$ac_c_werror_flag"
28020			 || test ! -s conftest.err'
28021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28022  (eval $ac_try) 2>&5
28023  ac_status=$?
28024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025  (exit $ac_status); }; } &&
28026	 { ac_try='test -s conftest$ac_exeext'
28027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28028  (eval $ac_try) 2>&5
28029  ac_status=$?
28030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031  (exit $ac_status); }; }; then
28032  use_blas="-lcomplib.sgimath"
28033                         if test $coin_need_flibs = yes ; then
28034                           use_blas="$use_blas $FLIBS"
28035                         fi
28036                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28037echo "${ECHO_T}yes: $use_blas" >&6
28038
28039else
28040  echo "$as_me: failed program was:" >&5
28041sed 's/^/| /' conftest.$ac_ext >&5
28042
28043echo "$as_me:$LINENO: result: no" >&5
28044echo "${ECHO_T}no" >&6
28045fi
28046rm -f conftest.err conftest.$ac_objext \
28047      conftest$ac_exeext conftest.$ac_ext
28048    ;;
28049  c)
28050    ac_ext=f
28051ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28052ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28053ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28054case $ac_cv_f77_mangling in
28055  upper*) ac_val="DAXPY" ;;
28056  lower*) ac_val="daxpy" ;;
28057  *)      ac_val="unknown" ;;
28058esac
28059case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28060
28061cfuncdaxpy="$ac_val"
28062
28063ac_ext=c
28064ac_cpp='$CPP $CPPFLAGS'
28065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28067ac_compiler_gnu=$ac_cv_c_compiler_gnu
28068
28069    if test x"$coin_need_flibs" = xyes; then
28070      flink_try=no;
28071    else
28072      cat >conftest.$ac_ext <<_ACEOF
28073/* confdefs.h.  */
28074_ACEOF
28075cat confdefs.h >>conftest.$ac_ext
28076cat >>conftest.$ac_ext <<_ACEOF
28077/* end confdefs.h.  */
28078void $cfuncdaxpy();
28079#ifdef F77_DUMMY_MAIN
28080
28081#  ifdef __cplusplus
28082     extern "C"
28083#  endif
28084   int F77_DUMMY_MAIN() { return 1; }
28085
28086#endif
28087int
28088main ()
28089{
28090$cfuncdaxpy()
28091  ;
28092  return 0;
28093}
28094_ACEOF
28095rm -f conftest.$ac_objext conftest$ac_exeext
28096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28097  (eval $ac_link) 2>conftest.er1
28098  ac_status=$?
28099  grep -v '^ *+' conftest.er1 >conftest.err
28100  rm -f conftest.er1
28101  cat conftest.err >&5
28102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103  (exit $ac_status); } &&
28104	 { ac_try='test -z "$ac_c_werror_flag"
28105			 || test ! -s conftest.err'
28106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28107  (eval $ac_try) 2>&5
28108  ac_status=$?
28109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110  (exit $ac_status); }; } &&
28111	 { ac_try='test -s conftest$ac_exeext'
28112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28113  (eval $ac_try) 2>&5
28114  ac_status=$?
28115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116  (exit $ac_status); }; }; then
28117  flink_try=yes
28118else
28119  echo "$as_me: failed program was:" >&5
28120sed 's/^/| /' conftest.$ac_ext >&5
28121
28122flink_try=no
28123fi
28124rm -f conftest.err conftest.$ac_objext \
28125      conftest$ac_exeext conftest.$ac_ext
28126    fi
28127    if test $flink_try = yes; then
28128      use_blas="-lcomplib.sgimath"
28129                         if test $coin_need_flibs = yes ; then
28130                           use_blas="$use_blas $FLIBS"
28131                         fi
28132                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28133echo "${ECHO_T}yes: $use_blas" >&6
28134
28135    else
28136      if test x"$FLIBS" != x; then
28137        flink_save_libs="$LIBS"
28138        LIBS="$LIBS $FLIBS"
28139        cat >conftest.$ac_ext <<_ACEOF
28140/* confdefs.h.  */
28141_ACEOF
28142cat confdefs.h >>conftest.$ac_ext
28143cat >>conftest.$ac_ext <<_ACEOF
28144/* end confdefs.h.  */
28145void $cfuncdaxpy();
28146#ifdef F77_DUMMY_MAIN
28147
28148#  ifdef __cplusplus
28149     extern "C"
28150#  endif
28151   int F77_DUMMY_MAIN() { return 1; }
28152
28153#endif
28154int
28155main ()
28156{
28157$cfuncdaxpy()
28158  ;
28159  return 0;
28160}
28161_ACEOF
28162rm -f conftest.$ac_objext conftest$ac_exeext
28163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28164  (eval $ac_link) 2>conftest.er1
28165  ac_status=$?
28166  grep -v '^ *+' conftest.er1 >conftest.err
28167  rm -f conftest.er1
28168  cat conftest.err >&5
28169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170  (exit $ac_status); } &&
28171	 { ac_try='test -z "$ac_c_werror_flag"
28172			 || test ! -s conftest.err'
28173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174  (eval $ac_try) 2>&5
28175  ac_status=$?
28176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177  (exit $ac_status); }; } &&
28178	 { ac_try='test -s conftest$ac_exeext'
28179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180  (eval $ac_try) 2>&5
28181  ac_status=$?
28182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183  (exit $ac_status); }; }; then
28184  LIBS="$flink_save_libs"
28185                     coin_need_flibs=yes
28186                     use_blas="-lcomplib.sgimath"
28187                         if test $coin_need_flibs = yes ; then
28188                           use_blas="$use_blas $FLIBS"
28189                         fi
28190                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28191echo "${ECHO_T}yes: $use_blas" >&6
28192
28193
28194else
28195  echo "$as_me: failed program was:" >&5
28196sed 's/^/| /' conftest.$ac_ext >&5
28197
28198LIBS="$flink_save_libs"
28199                     echo "$as_me:$LINENO: result: no" >&5
28200echo "${ECHO_T}no" >&6
28201fi
28202rm -f conftest.err conftest.$ac_objext \
28203      conftest$ac_exeext conftest.$ac_ext
28204      else
28205        echo "$as_me:$LINENO: result: no" >&5
28206echo "${ECHO_T}no" >&6
28207      fi
28208    fi
28209    ;;
28210  cc|cpp)
28211    ac_ext=f
28212ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28213ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28214ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28215case $ac_cv_f77_mangling in
28216  upper*) ac_val="DAXPY" ;;
28217  lower*) ac_val="daxpy" ;;
28218  *)      ac_val="unknown" ;;
28219esac
28220case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28221
28222cfuncdaxpy="$ac_val"
28223
28224ac_ext=c
28225ac_cpp='$CPP $CPPFLAGS'
28226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28228ac_compiler_gnu=$ac_cv_c_compiler_gnu
28229
28230    if test x"$coin_need_flibs" = xyes; then
28231      flink_try=no;
28232    else
28233      cat >conftest.$ac_ext <<_ACEOF
28234/* confdefs.h.  */
28235_ACEOF
28236cat confdefs.h >>conftest.$ac_ext
28237cat >>conftest.$ac_ext <<_ACEOF
28238/* end confdefs.h.  */
28239extern "C" {void $cfuncdaxpy();}
28240#ifdef F77_DUMMY_MAIN
28241
28242#  ifdef __cplusplus
28243     extern "C"
28244#  endif
28245   int F77_DUMMY_MAIN() { return 1; }
28246
28247#endif
28248int
28249main ()
28250{
28251$cfuncdaxpy()
28252  ;
28253  return 0;
28254}
28255_ACEOF
28256rm -f conftest.$ac_objext conftest$ac_exeext
28257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28258  (eval $ac_link) 2>conftest.er1
28259  ac_status=$?
28260  grep -v '^ *+' conftest.er1 >conftest.err
28261  rm -f conftest.er1
28262  cat conftest.err >&5
28263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264  (exit $ac_status); } &&
28265	 { ac_try='test -z "$ac_c_werror_flag"
28266			 || test ! -s conftest.err'
28267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268  (eval $ac_try) 2>&5
28269  ac_status=$?
28270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271  (exit $ac_status); }; } &&
28272	 { ac_try='test -s conftest$ac_exeext'
28273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28274  (eval $ac_try) 2>&5
28275  ac_status=$?
28276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277  (exit $ac_status); }; }; then
28278  flink_try=yes
28279else
28280  echo "$as_me: failed program was:" >&5
28281sed 's/^/| /' conftest.$ac_ext >&5
28282
28283flink_try=no
28284fi
28285rm -f conftest.err conftest.$ac_objext \
28286      conftest$ac_exeext conftest.$ac_ext
28287    fi
28288    if test $flink_try = yes; then
28289      use_blas="-lcomplib.sgimath"
28290                         if test $coin_need_flibs = yes ; then
28291                           use_blas="$use_blas $FLIBS"
28292                         fi
28293                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28294echo "${ECHO_T}yes: $use_blas" >&6
28295
28296    else
28297      if test x"$FLIBS" != x; then
28298        flink_save_libs="$LIBS"
28299        LIBS="$LIBS $FLIBS"
28300        cat >conftest.$ac_ext <<_ACEOF
28301/* confdefs.h.  */
28302_ACEOF
28303cat confdefs.h >>conftest.$ac_ext
28304cat >>conftest.$ac_ext <<_ACEOF
28305/* end confdefs.h.  */
28306extern "C" {void $cfuncdaxpy();}
28307#ifdef F77_DUMMY_MAIN
28308
28309#  ifdef __cplusplus
28310     extern "C"
28311#  endif
28312   int F77_DUMMY_MAIN() { return 1; }
28313
28314#endif
28315int
28316main ()
28317{
28318$cfuncdaxpy()
28319  ;
28320  return 0;
28321}
28322_ACEOF
28323rm -f conftest.$ac_objext conftest$ac_exeext
28324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28325  (eval $ac_link) 2>conftest.er1
28326  ac_status=$?
28327  grep -v '^ *+' conftest.er1 >conftest.err
28328  rm -f conftest.er1
28329  cat conftest.err >&5
28330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331  (exit $ac_status); } &&
28332	 { ac_try='test -z "$ac_c_werror_flag"
28333			 || test ! -s conftest.err'
28334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335  (eval $ac_try) 2>&5
28336  ac_status=$?
28337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338  (exit $ac_status); }; } &&
28339	 { ac_try='test -s conftest$ac_exeext'
28340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28341  (eval $ac_try) 2>&5
28342  ac_status=$?
28343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344  (exit $ac_status); }; }; then
28345  LIBS="$flink_save_libs"
28346                     coin_need_flibs=yes
28347                     use_blas="-lcomplib.sgimath"
28348                         if test $coin_need_flibs = yes ; then
28349                           use_blas="$use_blas $FLIBS"
28350                         fi
28351                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28352echo "${ECHO_T}yes: $use_blas" >&6
28353
28354
28355else
28356  echo "$as_me: failed program was:" >&5
28357sed 's/^/| /' conftest.$ac_ext >&5
28358
28359LIBS="$flink_save_libs"
28360                     echo "$as_me:$LINENO: result: no" >&5
28361echo "${ECHO_T}no" >&6
28362fi
28363rm -f conftest.err conftest.$ac_objext \
28364      conftest$ac_exeext conftest.$ac_ext
28365      else
28366        echo "$as_me:$LINENO: result: no" >&5
28367echo "${ECHO_T}no" >&6
28368      fi
28369    fi
28370    ;;
28371esac
28372
28373      LIBS="$coin_save_LIBS"
28374      ;;
28375
28376# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
28377# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
28378# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
28379# that CC and cc will understand -library in Studio 13. The main extra
28380# function of -xlic_lib and -library is to arrange for the Fortran run-time
28381# libraries to be linked for C++ and C. We can arrange that explicitly.
28382    *-*-solaris*)
28383      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
28384echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
28385      coin_need_flibs=no
28386      coin_save_LIBS="$LIBS"
28387      LIBS="-lsunperf $FLIBS $LIBS"
28388      case $ac_ext in
28389  f)
28390    cat >conftest.$ac_ext <<_ACEOF
28391/* confdefs.h.  */
28392_ACEOF
28393cat confdefs.h >>conftest.$ac_ext
28394cat >>conftest.$ac_ext <<_ACEOF
28395/* end confdefs.h.  */
28396
28397#ifdef F77_DUMMY_MAIN
28398
28399#  ifdef __cplusplus
28400     extern "C"
28401#  endif
28402   int F77_DUMMY_MAIN() { return 1; }
28403
28404#endif
28405int
28406main ()
28407{
28408      call daxpy
28409  ;
28410  return 0;
28411}
28412_ACEOF
28413rm -f conftest.$ac_objext conftest$ac_exeext
28414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28415  (eval $ac_link) 2>conftest.er1
28416  ac_status=$?
28417  grep -v '^ *+' conftest.er1 >conftest.err
28418  rm -f conftest.er1
28419  cat conftest.err >&5
28420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421  (exit $ac_status); } &&
28422	 { ac_try='test -z "$ac_c_werror_flag"
28423			 || test ! -s conftest.err'
28424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28425  (eval $ac_try) 2>&5
28426  ac_status=$?
28427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428  (exit $ac_status); }; } &&
28429	 { ac_try='test -s conftest$ac_exeext'
28430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28431  (eval $ac_try) 2>&5
28432  ac_status=$?
28433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434  (exit $ac_status); }; }; then
28435  use_blas='-lsunperf'
28436                         if test $coin_need_flibs = yes ; then
28437                           use_blas="$use_blas $FLIBS"
28438                         fi
28439                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28440echo "${ECHO_T}yes: $use_blas" >&6
28441
28442else
28443  echo "$as_me: failed program was:" >&5
28444sed 's/^/| /' conftest.$ac_ext >&5
28445
28446echo "$as_me:$LINENO: result: no" >&5
28447echo "${ECHO_T}no" >&6
28448fi
28449rm -f conftest.err conftest.$ac_objext \
28450      conftest$ac_exeext conftest.$ac_ext
28451    ;;
28452  c)
28453    ac_ext=f
28454ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28455ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28456ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28457case $ac_cv_f77_mangling in
28458  upper*) ac_val="DAXPY" ;;
28459  lower*) ac_val="daxpy" ;;
28460  *)      ac_val="unknown" ;;
28461esac
28462case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28463
28464cfuncdaxpy="$ac_val"
28465
28466ac_ext=c
28467ac_cpp='$CPP $CPPFLAGS'
28468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28470ac_compiler_gnu=$ac_cv_c_compiler_gnu
28471
28472    if test x"$coin_need_flibs" = xyes; then
28473      flink_try=no;
28474    else
28475      cat >conftest.$ac_ext <<_ACEOF
28476/* confdefs.h.  */
28477_ACEOF
28478cat confdefs.h >>conftest.$ac_ext
28479cat >>conftest.$ac_ext <<_ACEOF
28480/* end confdefs.h.  */
28481void $cfuncdaxpy();
28482#ifdef F77_DUMMY_MAIN
28483
28484#  ifdef __cplusplus
28485     extern "C"
28486#  endif
28487   int F77_DUMMY_MAIN() { return 1; }
28488
28489#endif
28490int
28491main ()
28492{
28493$cfuncdaxpy()
28494  ;
28495  return 0;
28496}
28497_ACEOF
28498rm -f conftest.$ac_objext conftest$ac_exeext
28499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28500  (eval $ac_link) 2>conftest.er1
28501  ac_status=$?
28502  grep -v '^ *+' conftest.er1 >conftest.err
28503  rm -f conftest.er1
28504  cat conftest.err >&5
28505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506  (exit $ac_status); } &&
28507	 { ac_try='test -z "$ac_c_werror_flag"
28508			 || test ! -s conftest.err'
28509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510  (eval $ac_try) 2>&5
28511  ac_status=$?
28512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513  (exit $ac_status); }; } &&
28514	 { ac_try='test -s conftest$ac_exeext'
28515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516  (eval $ac_try) 2>&5
28517  ac_status=$?
28518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519  (exit $ac_status); }; }; then
28520  flink_try=yes
28521else
28522  echo "$as_me: failed program was:" >&5
28523sed 's/^/| /' conftest.$ac_ext >&5
28524
28525flink_try=no
28526fi
28527rm -f conftest.err conftest.$ac_objext \
28528      conftest$ac_exeext conftest.$ac_ext
28529    fi
28530    if test $flink_try = yes; then
28531      use_blas='-lsunperf'
28532                         if test $coin_need_flibs = yes ; then
28533                           use_blas="$use_blas $FLIBS"
28534                         fi
28535                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28536echo "${ECHO_T}yes: $use_blas" >&6
28537
28538    else
28539      if test x"$FLIBS" != x; then
28540        flink_save_libs="$LIBS"
28541        LIBS="$LIBS $FLIBS"
28542        cat >conftest.$ac_ext <<_ACEOF
28543/* confdefs.h.  */
28544_ACEOF
28545cat confdefs.h >>conftest.$ac_ext
28546cat >>conftest.$ac_ext <<_ACEOF
28547/* end confdefs.h.  */
28548void $cfuncdaxpy();
28549#ifdef F77_DUMMY_MAIN
28550
28551#  ifdef __cplusplus
28552     extern "C"
28553#  endif
28554   int F77_DUMMY_MAIN() { return 1; }
28555
28556#endif
28557int
28558main ()
28559{
28560$cfuncdaxpy()
28561  ;
28562  return 0;
28563}
28564_ACEOF
28565rm -f conftest.$ac_objext conftest$ac_exeext
28566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28567  (eval $ac_link) 2>conftest.er1
28568  ac_status=$?
28569  grep -v '^ *+' conftest.er1 >conftest.err
28570  rm -f conftest.er1
28571  cat conftest.err >&5
28572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573  (exit $ac_status); } &&
28574	 { ac_try='test -z "$ac_c_werror_flag"
28575			 || test ! -s conftest.err'
28576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28577  (eval $ac_try) 2>&5
28578  ac_status=$?
28579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580  (exit $ac_status); }; } &&
28581	 { ac_try='test -s conftest$ac_exeext'
28582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583  (eval $ac_try) 2>&5
28584  ac_status=$?
28585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586  (exit $ac_status); }; }; then
28587  LIBS="$flink_save_libs"
28588                     coin_need_flibs=yes
28589                     use_blas='-lsunperf'
28590                         if test $coin_need_flibs = yes ; then
28591                           use_blas="$use_blas $FLIBS"
28592                         fi
28593                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28594echo "${ECHO_T}yes: $use_blas" >&6
28595
28596
28597else
28598  echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
28601LIBS="$flink_save_libs"
28602                     echo "$as_me:$LINENO: result: no" >&5
28603echo "${ECHO_T}no" >&6
28604fi
28605rm -f conftest.err conftest.$ac_objext \
28606      conftest$ac_exeext conftest.$ac_ext
28607      else
28608        echo "$as_me:$LINENO: result: no" >&5
28609echo "${ECHO_T}no" >&6
28610      fi
28611    fi
28612    ;;
28613  cc|cpp)
28614    ac_ext=f
28615ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28616ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28617ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28618case $ac_cv_f77_mangling in
28619  upper*) ac_val="DAXPY" ;;
28620  lower*) ac_val="daxpy" ;;
28621  *)      ac_val="unknown" ;;
28622esac
28623case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28624
28625cfuncdaxpy="$ac_val"
28626
28627ac_ext=c
28628ac_cpp='$CPP $CPPFLAGS'
28629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28631ac_compiler_gnu=$ac_cv_c_compiler_gnu
28632
28633    if test x"$coin_need_flibs" = xyes; then
28634      flink_try=no;
28635    else
28636      cat >conftest.$ac_ext <<_ACEOF
28637/* confdefs.h.  */
28638_ACEOF
28639cat confdefs.h >>conftest.$ac_ext
28640cat >>conftest.$ac_ext <<_ACEOF
28641/* end confdefs.h.  */
28642extern "C" {void $cfuncdaxpy();}
28643#ifdef F77_DUMMY_MAIN
28644
28645#  ifdef __cplusplus
28646     extern "C"
28647#  endif
28648   int F77_DUMMY_MAIN() { return 1; }
28649
28650#endif
28651int
28652main ()
28653{
28654$cfuncdaxpy()
28655  ;
28656  return 0;
28657}
28658_ACEOF
28659rm -f conftest.$ac_objext conftest$ac_exeext
28660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28661  (eval $ac_link) 2>conftest.er1
28662  ac_status=$?
28663  grep -v '^ *+' conftest.er1 >conftest.err
28664  rm -f conftest.er1
28665  cat conftest.err >&5
28666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667  (exit $ac_status); } &&
28668	 { ac_try='test -z "$ac_c_werror_flag"
28669			 || test ! -s conftest.err'
28670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28671  (eval $ac_try) 2>&5
28672  ac_status=$?
28673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674  (exit $ac_status); }; } &&
28675	 { ac_try='test -s conftest$ac_exeext'
28676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677  (eval $ac_try) 2>&5
28678  ac_status=$?
28679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680  (exit $ac_status); }; }; then
28681  flink_try=yes
28682else
28683  echo "$as_me: failed program was:" >&5
28684sed 's/^/| /' conftest.$ac_ext >&5
28685
28686flink_try=no
28687fi
28688rm -f conftest.err conftest.$ac_objext \
28689      conftest$ac_exeext conftest.$ac_ext
28690    fi
28691    if test $flink_try = yes; then
28692      use_blas='-lsunperf'
28693                         if test $coin_need_flibs = yes ; then
28694                           use_blas="$use_blas $FLIBS"
28695                         fi
28696                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28697echo "${ECHO_T}yes: $use_blas" >&6
28698
28699    else
28700      if test x"$FLIBS" != x; then
28701        flink_save_libs="$LIBS"
28702        LIBS="$LIBS $FLIBS"
28703        cat >conftest.$ac_ext <<_ACEOF
28704/* confdefs.h.  */
28705_ACEOF
28706cat confdefs.h >>conftest.$ac_ext
28707cat >>conftest.$ac_ext <<_ACEOF
28708/* end confdefs.h.  */
28709extern "C" {void $cfuncdaxpy();}
28710#ifdef F77_DUMMY_MAIN
28711
28712#  ifdef __cplusplus
28713     extern "C"
28714#  endif
28715   int F77_DUMMY_MAIN() { return 1; }
28716
28717#endif
28718int
28719main ()
28720{
28721$cfuncdaxpy()
28722  ;
28723  return 0;
28724}
28725_ACEOF
28726rm -f conftest.$ac_objext conftest$ac_exeext
28727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28728  (eval $ac_link) 2>conftest.er1
28729  ac_status=$?
28730  grep -v '^ *+' conftest.er1 >conftest.err
28731  rm -f conftest.er1
28732  cat conftest.err >&5
28733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734  (exit $ac_status); } &&
28735	 { ac_try='test -z "$ac_c_werror_flag"
28736			 || test ! -s conftest.err'
28737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738  (eval $ac_try) 2>&5
28739  ac_status=$?
28740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741  (exit $ac_status); }; } &&
28742	 { ac_try='test -s conftest$ac_exeext'
28743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744  (eval $ac_try) 2>&5
28745  ac_status=$?
28746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747  (exit $ac_status); }; }; then
28748  LIBS="$flink_save_libs"
28749                     coin_need_flibs=yes
28750                     use_blas='-lsunperf'
28751                         if test $coin_need_flibs = yes ; then
28752                           use_blas="$use_blas $FLIBS"
28753                         fi
28754                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28755echo "${ECHO_T}yes: $use_blas" >&6
28756
28757
28758else
28759  echo "$as_me: failed program was:" >&5
28760sed 's/^/| /' conftest.$ac_ext >&5
28761
28762LIBS="$flink_save_libs"
28763                     echo "$as_me:$LINENO: result: no" >&5
28764echo "${ECHO_T}no" >&6
28765fi
28766rm -f conftest.err conftest.$ac_objext \
28767      conftest$ac_exeext conftest.$ac_ext
28768      else
28769        echo "$as_me:$LINENO: result: no" >&5
28770echo "${ECHO_T}no" >&6
28771      fi
28772    fi
28773    ;;
28774esac
28775
28776      LIBS="$coin_save_LIBS"
28777      ;;
28778
28779    *-cygwin* | *-mingw*)
28780      case "$CC" in
28781        clang* ) ;;
28782        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
28783          coin_save_LIBS="$LIBS"
28784          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
28785          if test "$F77" != unavailable ; then
28786            echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
28787echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
28788            case $ac_ext in
28789  f)
28790    cat >conftest.$ac_ext <<_ACEOF
28791/* confdefs.h.  */
28792_ACEOF
28793cat confdefs.h >>conftest.$ac_ext
28794cat >>conftest.$ac_ext <<_ACEOF
28795/* end confdefs.h.  */
28796
28797#ifdef F77_DUMMY_MAIN
28798
28799#  ifdef __cplusplus
28800     extern "C"
28801#  endif
28802   int F77_DUMMY_MAIN() { return 1; }
28803
28804#endif
28805int
28806main ()
28807{
28808      call daxpy
28809  ;
28810  return 0;
28811}
28812_ACEOF
28813rm -f conftest.$ac_objext conftest$ac_exeext
28814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28815  (eval $ac_link) 2>conftest.er1
28816  ac_status=$?
28817  grep -v '^ *+' conftest.er1 >conftest.err
28818  rm -f conftest.er1
28819  cat conftest.err >&5
28820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821  (exit $ac_status); } &&
28822	 { ac_try='test -z "$ac_c_werror_flag"
28823			 || test ! -s conftest.err'
28824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825  (eval $ac_try) 2>&5
28826  ac_status=$?
28827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828  (exit $ac_status); }; } &&
28829	 { ac_try='test -s conftest$ac_exeext'
28830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831  (eval $ac_try) 2>&5
28832  ac_status=$?
28833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834  (exit $ac_status); }; }; then
28835  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
28836                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28837echo "${ECHO_T}yes: $use_blas" >&6
28838
28839else
28840  echo "$as_me: failed program was:" >&5
28841sed 's/^/| /' conftest.$ac_ext >&5
28842
28843echo "$as_me:$LINENO: result: no" >&5
28844echo "${ECHO_T}no" >&6
28845fi
28846rm -f conftest.err conftest.$ac_objext \
28847      conftest$ac_exeext conftest.$ac_ext
28848    ;;
28849  c)
28850    ac_ext=f
28851ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28852ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28853ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28854case $ac_cv_f77_mangling in
28855  upper*) ac_val="DAXPY" ;;
28856  lower*) ac_val="daxpy" ;;
28857  *)      ac_val="unknown" ;;
28858esac
28859case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28860
28861cfuncdaxpy="$ac_val"
28862
28863ac_ext=c
28864ac_cpp='$CPP $CPPFLAGS'
28865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28867ac_compiler_gnu=$ac_cv_c_compiler_gnu
28868
28869    if test x"$coin_need_flibs" = xyes; then
28870      flink_try=no;
28871    else
28872      cat >conftest.$ac_ext <<_ACEOF
28873/* confdefs.h.  */
28874_ACEOF
28875cat confdefs.h >>conftest.$ac_ext
28876cat >>conftest.$ac_ext <<_ACEOF
28877/* end confdefs.h.  */
28878void $cfuncdaxpy();
28879#ifdef F77_DUMMY_MAIN
28880
28881#  ifdef __cplusplus
28882     extern "C"
28883#  endif
28884   int F77_DUMMY_MAIN() { return 1; }
28885
28886#endif
28887int
28888main ()
28889{
28890$cfuncdaxpy()
28891  ;
28892  return 0;
28893}
28894_ACEOF
28895rm -f conftest.$ac_objext conftest$ac_exeext
28896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28897  (eval $ac_link) 2>conftest.er1
28898  ac_status=$?
28899  grep -v '^ *+' conftest.er1 >conftest.err
28900  rm -f conftest.er1
28901  cat conftest.err >&5
28902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903  (exit $ac_status); } &&
28904	 { ac_try='test -z "$ac_c_werror_flag"
28905			 || test ! -s conftest.err'
28906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28907  (eval $ac_try) 2>&5
28908  ac_status=$?
28909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910  (exit $ac_status); }; } &&
28911	 { ac_try='test -s conftest$ac_exeext'
28912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913  (eval $ac_try) 2>&5
28914  ac_status=$?
28915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916  (exit $ac_status); }; }; then
28917  flink_try=yes
28918else
28919  echo "$as_me: failed program was:" >&5
28920sed 's/^/| /' conftest.$ac_ext >&5
28921
28922flink_try=no
28923fi
28924rm -f conftest.err conftest.$ac_objext \
28925      conftest$ac_exeext conftest.$ac_ext
28926    fi
28927    if test $flink_try = yes; then
28928      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
28929                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28930echo "${ECHO_T}yes: $use_blas" >&6
28931
28932    else
28933      if test x"$FLIBS" != x; then
28934        flink_save_libs="$LIBS"
28935        LIBS="$LIBS $FLIBS"
28936        cat >conftest.$ac_ext <<_ACEOF
28937/* confdefs.h.  */
28938_ACEOF
28939cat confdefs.h >>conftest.$ac_ext
28940cat >>conftest.$ac_ext <<_ACEOF
28941/* end confdefs.h.  */
28942void $cfuncdaxpy();
28943#ifdef F77_DUMMY_MAIN
28944
28945#  ifdef __cplusplus
28946     extern "C"
28947#  endif
28948   int F77_DUMMY_MAIN() { return 1; }
28949
28950#endif
28951int
28952main ()
28953{
28954$cfuncdaxpy()
28955  ;
28956  return 0;
28957}
28958_ACEOF
28959rm -f conftest.$ac_objext conftest$ac_exeext
28960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28961  (eval $ac_link) 2>conftest.er1
28962  ac_status=$?
28963  grep -v '^ *+' conftest.er1 >conftest.err
28964  rm -f conftest.er1
28965  cat conftest.err >&5
28966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967  (exit $ac_status); } &&
28968	 { ac_try='test -z "$ac_c_werror_flag"
28969			 || test ! -s conftest.err'
28970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971  (eval $ac_try) 2>&5
28972  ac_status=$?
28973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974  (exit $ac_status); }; } &&
28975	 { ac_try='test -s conftest$ac_exeext'
28976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977  (eval $ac_try) 2>&5
28978  ac_status=$?
28979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980  (exit $ac_status); }; }; then
28981  LIBS="$flink_save_libs"
28982                     coin_need_flibs=yes
28983                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
28984                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28985echo "${ECHO_T}yes: $use_blas" >&6
28986
28987
28988else
28989  echo "$as_me: failed program was:" >&5
28990sed 's/^/| /' conftest.$ac_ext >&5
28991
28992LIBS="$flink_save_libs"
28993                     echo "$as_me:$LINENO: result: no" >&5
28994echo "${ECHO_T}no" >&6
28995fi
28996rm -f conftest.err conftest.$ac_objext \
28997      conftest$ac_exeext conftest.$ac_ext
28998      else
28999        echo "$as_me:$LINENO: result: no" >&5
29000echo "${ECHO_T}no" >&6
29001      fi
29002    fi
29003    ;;
29004  cc|cpp)
29005    ac_ext=f
29006ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29007ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29008ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29009case $ac_cv_f77_mangling in
29010  upper*) ac_val="DAXPY" ;;
29011  lower*) ac_val="daxpy" ;;
29012  *)      ac_val="unknown" ;;
29013esac
29014case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29015
29016cfuncdaxpy="$ac_val"
29017
29018ac_ext=c
29019ac_cpp='$CPP $CPPFLAGS'
29020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29022ac_compiler_gnu=$ac_cv_c_compiler_gnu
29023
29024    if test x"$coin_need_flibs" = xyes; then
29025      flink_try=no;
29026    else
29027      cat >conftest.$ac_ext <<_ACEOF
29028/* confdefs.h.  */
29029_ACEOF
29030cat confdefs.h >>conftest.$ac_ext
29031cat >>conftest.$ac_ext <<_ACEOF
29032/* end confdefs.h.  */
29033extern "C" {void $cfuncdaxpy();}
29034#ifdef F77_DUMMY_MAIN
29035
29036#  ifdef __cplusplus
29037     extern "C"
29038#  endif
29039   int F77_DUMMY_MAIN() { return 1; }
29040
29041#endif
29042int
29043main ()
29044{
29045$cfuncdaxpy()
29046  ;
29047  return 0;
29048}
29049_ACEOF
29050rm -f conftest.$ac_objext conftest$ac_exeext
29051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29052  (eval $ac_link) 2>conftest.er1
29053  ac_status=$?
29054  grep -v '^ *+' conftest.er1 >conftest.err
29055  rm -f conftest.er1
29056  cat conftest.err >&5
29057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058  (exit $ac_status); } &&
29059	 { ac_try='test -z "$ac_c_werror_flag"
29060			 || test ! -s conftest.err'
29061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062  (eval $ac_try) 2>&5
29063  ac_status=$?
29064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065  (exit $ac_status); }; } &&
29066	 { ac_try='test -s conftest$ac_exeext'
29067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29068  (eval $ac_try) 2>&5
29069  ac_status=$?
29070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071  (exit $ac_status); }; }; then
29072  flink_try=yes
29073else
29074  echo "$as_me: failed program was:" >&5
29075sed 's/^/| /' conftest.$ac_ext >&5
29076
29077flink_try=no
29078fi
29079rm -f conftest.err conftest.$ac_objext \
29080      conftest$ac_exeext conftest.$ac_ext
29081    fi
29082    if test $flink_try = yes; then
29083      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
29084                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29085echo "${ECHO_T}yes: $use_blas" >&6
29086
29087    else
29088      if test x"$FLIBS" != x; then
29089        flink_save_libs="$LIBS"
29090        LIBS="$LIBS $FLIBS"
29091        cat >conftest.$ac_ext <<_ACEOF
29092/* confdefs.h.  */
29093_ACEOF
29094cat confdefs.h >>conftest.$ac_ext
29095cat >>conftest.$ac_ext <<_ACEOF
29096/* end confdefs.h.  */
29097extern "C" {void $cfuncdaxpy();}
29098#ifdef F77_DUMMY_MAIN
29099
29100#  ifdef __cplusplus
29101     extern "C"
29102#  endif
29103   int F77_DUMMY_MAIN() { return 1; }
29104
29105#endif
29106int
29107main ()
29108{
29109$cfuncdaxpy()
29110  ;
29111  return 0;
29112}
29113_ACEOF
29114rm -f conftest.$ac_objext conftest$ac_exeext
29115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29116  (eval $ac_link) 2>conftest.er1
29117  ac_status=$?
29118  grep -v '^ *+' conftest.er1 >conftest.err
29119  rm -f conftest.er1
29120  cat conftest.err >&5
29121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122  (exit $ac_status); } &&
29123	 { ac_try='test -z "$ac_c_werror_flag"
29124			 || test ! -s conftest.err'
29125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29126  (eval $ac_try) 2>&5
29127  ac_status=$?
29128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129  (exit $ac_status); }; } &&
29130	 { ac_try='test -s conftest$ac_exeext'
29131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29132  (eval $ac_try) 2>&5
29133  ac_status=$?
29134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135  (exit $ac_status); }; }; then
29136  LIBS="$flink_save_libs"
29137                     coin_need_flibs=yes
29138                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
29139                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29140echo "${ECHO_T}yes: $use_blas" >&6
29141
29142
29143else
29144  echo "$as_me: failed program was:" >&5
29145sed 's/^/| /' conftest.$ac_ext >&5
29146
29147LIBS="$flink_save_libs"
29148                     echo "$as_me:$LINENO: result: no" >&5
29149echo "${ECHO_T}no" >&6
29150fi
29151rm -f conftest.err conftest.$ac_objext \
29152      conftest$ac_exeext conftest.$ac_ext
29153      else
29154        echo "$as_me:$LINENO: result: no" >&5
29155echo "${ECHO_T}no" >&6
29156      fi
29157    fi
29158    ;;
29159esac
29160
29161          else
29162            { echo "$as_me:$LINENO: for BLAS in MKL (32bit) using C linkage" >&5
29163echo "$as_me: for BLAS in MKL (32bit) using C linkage" >&6;}
29164            ac_ext=c
29165ac_cpp='$CPP $CPPFLAGS'
29166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29168ac_compiler_gnu=$ac_cv_c_compiler_gnu
29169
29170            echo "$as_me:$LINENO: checking for daxpy" >&5
29171echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
29172if test "${ac_cv_func_daxpy+set}" = set; then
29173  echo $ECHO_N "(cached) $ECHO_C" >&6
29174else
29175  cat >conftest.$ac_ext <<_ACEOF
29176/* confdefs.h.  */
29177_ACEOF
29178cat confdefs.h >>conftest.$ac_ext
29179cat >>conftest.$ac_ext <<_ACEOF
29180/* end confdefs.h.  */
29181/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
29182   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29183#define daxpy innocuous_daxpy
29184
29185/* System header to define __stub macros and hopefully few prototypes,
29186    which can conflict with char daxpy (); below.
29187    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29188    <limits.h> exists even on freestanding compilers.  */
29189
29190#ifdef __STDC__
29191# include <limits.h>
29192#else
29193# include <assert.h>
29194#endif
29195
29196#undef daxpy
29197
29198/* Override any gcc2 internal prototype to avoid an error.  */
29199#ifdef __cplusplus
29200extern "C"
29201{
29202#endif
29203/* We use char because int might match the return type of a gcc2
29204   builtin and then its argument prototype would still apply.  */
29205char daxpy ();
29206/* The GNU C library defines this for functions which it implements
29207    to always fail with ENOSYS.  Some functions are actually named
29208    something starting with __ and the normal name is an alias.  */
29209#if defined (__stub_daxpy) || defined (__stub___daxpy)
29210choke me
29211#else
29212char (*f) () = daxpy;
29213#endif
29214#ifdef __cplusplus
29215}
29216#endif
29217
29218#ifdef F77_DUMMY_MAIN
29219
29220#  ifdef __cplusplus
29221     extern "C"
29222#  endif
29223   int F77_DUMMY_MAIN() { return 1; }
29224
29225#endif
29226int
29227main ()
29228{
29229return f != daxpy;
29230  ;
29231  return 0;
29232}
29233_ACEOF
29234rm -f conftest.$ac_objext conftest$ac_exeext
29235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29236  (eval $ac_link) 2>conftest.er1
29237  ac_status=$?
29238  grep -v '^ *+' conftest.er1 >conftest.err
29239  rm -f conftest.er1
29240  cat conftest.err >&5
29241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242  (exit $ac_status); } &&
29243	 { ac_try='test -z "$ac_c_werror_flag"
29244			 || test ! -s conftest.err'
29245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29246  (eval $ac_try) 2>&5
29247  ac_status=$?
29248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249  (exit $ac_status); }; } &&
29250	 { ac_try='test -s conftest$ac_exeext'
29251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252  (eval $ac_try) 2>&5
29253  ac_status=$?
29254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255  (exit $ac_status); }; }; then
29256  ac_cv_func_daxpy=yes
29257else
29258  echo "$as_me: failed program was:" >&5
29259sed 's/^/| /' conftest.$ac_ext >&5
29260
29261ac_cv_func_daxpy=no
29262fi
29263rm -f conftest.err conftest.$ac_objext \
29264      conftest$ac_exeext conftest.$ac_ext
29265fi
29266echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
29267echo "${ECHO_T}$ac_cv_func_daxpy" >&6
29268if test $ac_cv_func_daxpy = yes; then
29269  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
29270fi
29271
29272            ac_ext=c
29273ac_cpp='$CPP $CPPFLAGS'
29274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29276ac_compiler_gnu=$ac_cv_c_compiler_gnu
29277
29278          fi
29279          LIBS="$coin_save_LIBS"
29280
29281          if test "x$use_blas" = x ; then
29282            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
29283            if test "$F77" != unavailable ; then
29284              echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
29285echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
29286              case $ac_ext in
29287  f)
29288    cat >conftest.$ac_ext <<_ACEOF
29289/* confdefs.h.  */
29290_ACEOF
29291cat confdefs.h >>conftest.$ac_ext
29292cat >>conftest.$ac_ext <<_ACEOF
29293/* end confdefs.h.  */
29294
29295#ifdef F77_DUMMY_MAIN
29296
29297#  ifdef __cplusplus
29298     extern "C"
29299#  endif
29300   int F77_DUMMY_MAIN() { return 1; }
29301
29302#endif
29303int
29304main ()
29305{
29306      call daxpy
29307  ;
29308  return 0;
29309}
29310_ACEOF
29311rm -f conftest.$ac_objext conftest$ac_exeext
29312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29313  (eval $ac_link) 2>conftest.er1
29314  ac_status=$?
29315  grep -v '^ *+' conftest.er1 >conftest.err
29316  rm -f conftest.er1
29317  cat conftest.err >&5
29318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319  (exit $ac_status); } &&
29320	 { ac_try='test -z "$ac_c_werror_flag"
29321			 || test ! -s conftest.err'
29322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323  (eval $ac_try) 2>&5
29324  ac_status=$?
29325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326  (exit $ac_status); }; } &&
29327	 { ac_try='test -s conftest$ac_exeext'
29328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329  (eval $ac_try) 2>&5
29330  ac_status=$?
29331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332  (exit $ac_status); }; }; then
29333  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
29334                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29335echo "${ECHO_T}yes: $use_blas" >&6
29336
29337else
29338  echo "$as_me: failed program was:" >&5
29339sed 's/^/| /' conftest.$ac_ext >&5
29340
29341echo "$as_me:$LINENO: result: no" >&5
29342echo "${ECHO_T}no" >&6
29343fi
29344rm -f conftest.err conftest.$ac_objext \
29345      conftest$ac_exeext conftest.$ac_ext
29346    ;;
29347  c)
29348    ac_ext=f
29349ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29350ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29351ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29352case $ac_cv_f77_mangling in
29353  upper*) ac_val="DAXPY" ;;
29354  lower*) ac_val="daxpy" ;;
29355  *)      ac_val="unknown" ;;
29356esac
29357case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29358
29359cfuncdaxpy="$ac_val"
29360
29361ac_ext=c
29362ac_cpp='$CPP $CPPFLAGS'
29363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29365ac_compiler_gnu=$ac_cv_c_compiler_gnu
29366
29367    if test x"$coin_need_flibs" = xyes; then
29368      flink_try=no;
29369    else
29370      cat >conftest.$ac_ext <<_ACEOF
29371/* confdefs.h.  */
29372_ACEOF
29373cat confdefs.h >>conftest.$ac_ext
29374cat >>conftest.$ac_ext <<_ACEOF
29375/* end confdefs.h.  */
29376void $cfuncdaxpy();
29377#ifdef F77_DUMMY_MAIN
29378
29379#  ifdef __cplusplus
29380     extern "C"
29381#  endif
29382   int F77_DUMMY_MAIN() { return 1; }
29383
29384#endif
29385int
29386main ()
29387{
29388$cfuncdaxpy()
29389  ;
29390  return 0;
29391}
29392_ACEOF
29393rm -f conftest.$ac_objext conftest$ac_exeext
29394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395  (eval $ac_link) 2>conftest.er1
29396  ac_status=$?
29397  grep -v '^ *+' conftest.er1 >conftest.err
29398  rm -f conftest.er1
29399  cat conftest.err >&5
29400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401  (exit $ac_status); } &&
29402	 { ac_try='test -z "$ac_c_werror_flag"
29403			 || test ! -s conftest.err'
29404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405  (eval $ac_try) 2>&5
29406  ac_status=$?
29407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408  (exit $ac_status); }; } &&
29409	 { ac_try='test -s conftest$ac_exeext'
29410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411  (eval $ac_try) 2>&5
29412  ac_status=$?
29413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414  (exit $ac_status); }; }; then
29415  flink_try=yes
29416else
29417  echo "$as_me: failed program was:" >&5
29418sed 's/^/| /' conftest.$ac_ext >&5
29419
29420flink_try=no
29421fi
29422rm -f conftest.err conftest.$ac_objext \
29423      conftest$ac_exeext conftest.$ac_ext
29424    fi
29425    if test $flink_try = yes; then
29426      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
29427                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29428echo "${ECHO_T}yes: $use_blas" >&6
29429
29430    else
29431      if test x"$FLIBS" != x; then
29432        flink_save_libs="$LIBS"
29433        LIBS="$LIBS $FLIBS"
29434        cat >conftest.$ac_ext <<_ACEOF
29435/* confdefs.h.  */
29436_ACEOF
29437cat confdefs.h >>conftest.$ac_ext
29438cat >>conftest.$ac_ext <<_ACEOF
29439/* end confdefs.h.  */
29440void $cfuncdaxpy();
29441#ifdef F77_DUMMY_MAIN
29442
29443#  ifdef __cplusplus
29444     extern "C"
29445#  endif
29446   int F77_DUMMY_MAIN() { return 1; }
29447
29448#endif
29449int
29450main ()
29451{
29452$cfuncdaxpy()
29453  ;
29454  return 0;
29455}
29456_ACEOF
29457rm -f conftest.$ac_objext conftest$ac_exeext
29458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29459  (eval $ac_link) 2>conftest.er1
29460  ac_status=$?
29461  grep -v '^ *+' conftest.er1 >conftest.err
29462  rm -f conftest.er1
29463  cat conftest.err >&5
29464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465  (exit $ac_status); } &&
29466	 { ac_try='test -z "$ac_c_werror_flag"
29467			 || test ! -s conftest.err'
29468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469  (eval $ac_try) 2>&5
29470  ac_status=$?
29471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472  (exit $ac_status); }; } &&
29473	 { ac_try='test -s conftest$ac_exeext'
29474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29475  (eval $ac_try) 2>&5
29476  ac_status=$?
29477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478  (exit $ac_status); }; }; then
29479  LIBS="$flink_save_libs"
29480                     coin_need_flibs=yes
29481                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
29482                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29483echo "${ECHO_T}yes: $use_blas" >&6
29484
29485
29486else
29487  echo "$as_me: failed program was:" >&5
29488sed 's/^/| /' conftest.$ac_ext >&5
29489
29490LIBS="$flink_save_libs"
29491                     echo "$as_me:$LINENO: result: no" >&5
29492echo "${ECHO_T}no" >&6
29493fi
29494rm -f conftest.err conftest.$ac_objext \
29495      conftest$ac_exeext conftest.$ac_ext
29496      else
29497        echo "$as_me:$LINENO: result: no" >&5
29498echo "${ECHO_T}no" >&6
29499      fi
29500    fi
29501    ;;
29502  cc|cpp)
29503    ac_ext=f
29504ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29505ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29506ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29507case $ac_cv_f77_mangling in
29508  upper*) ac_val="DAXPY" ;;
29509  lower*) ac_val="daxpy" ;;
29510  *)      ac_val="unknown" ;;
29511esac
29512case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29513
29514cfuncdaxpy="$ac_val"
29515
29516ac_ext=c
29517ac_cpp='$CPP $CPPFLAGS'
29518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29520ac_compiler_gnu=$ac_cv_c_compiler_gnu
29521
29522    if test x"$coin_need_flibs" = xyes; then
29523      flink_try=no;
29524    else
29525      cat >conftest.$ac_ext <<_ACEOF
29526/* confdefs.h.  */
29527_ACEOF
29528cat confdefs.h >>conftest.$ac_ext
29529cat >>conftest.$ac_ext <<_ACEOF
29530/* end confdefs.h.  */
29531extern "C" {void $cfuncdaxpy();}
29532#ifdef F77_DUMMY_MAIN
29533
29534#  ifdef __cplusplus
29535     extern "C"
29536#  endif
29537   int F77_DUMMY_MAIN() { return 1; }
29538
29539#endif
29540int
29541main ()
29542{
29543$cfuncdaxpy()
29544  ;
29545  return 0;
29546}
29547_ACEOF
29548rm -f conftest.$ac_objext conftest$ac_exeext
29549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29550  (eval $ac_link) 2>conftest.er1
29551  ac_status=$?
29552  grep -v '^ *+' conftest.er1 >conftest.err
29553  rm -f conftest.er1
29554  cat conftest.err >&5
29555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556  (exit $ac_status); } &&
29557	 { ac_try='test -z "$ac_c_werror_flag"
29558			 || test ! -s conftest.err'
29559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29560  (eval $ac_try) 2>&5
29561  ac_status=$?
29562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563  (exit $ac_status); }; } &&
29564	 { ac_try='test -s conftest$ac_exeext'
29565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29566  (eval $ac_try) 2>&5
29567  ac_status=$?
29568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569  (exit $ac_status); }; }; then
29570  flink_try=yes
29571else
29572  echo "$as_me: failed program was:" >&5
29573sed 's/^/| /' conftest.$ac_ext >&5
29574
29575flink_try=no
29576fi
29577rm -f conftest.err conftest.$ac_objext \
29578      conftest$ac_exeext conftest.$ac_ext
29579    fi
29580    if test $flink_try = yes; then
29581      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
29582                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29583echo "${ECHO_T}yes: $use_blas" >&6
29584
29585    else
29586      if test x"$FLIBS" != x; then
29587        flink_save_libs="$LIBS"
29588        LIBS="$LIBS $FLIBS"
29589        cat >conftest.$ac_ext <<_ACEOF
29590/* confdefs.h.  */
29591_ACEOF
29592cat confdefs.h >>conftest.$ac_ext
29593cat >>conftest.$ac_ext <<_ACEOF
29594/* end confdefs.h.  */
29595extern "C" {void $cfuncdaxpy();}
29596#ifdef F77_DUMMY_MAIN
29597
29598#  ifdef __cplusplus
29599     extern "C"
29600#  endif
29601   int F77_DUMMY_MAIN() { return 1; }
29602
29603#endif
29604int
29605main ()
29606{
29607$cfuncdaxpy()
29608  ;
29609  return 0;
29610}
29611_ACEOF
29612rm -f conftest.$ac_objext conftest$ac_exeext
29613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29614  (eval $ac_link) 2>conftest.er1
29615  ac_status=$?
29616  grep -v '^ *+' conftest.er1 >conftest.err
29617  rm -f conftest.er1
29618  cat conftest.err >&5
29619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620  (exit $ac_status); } &&
29621	 { ac_try='test -z "$ac_c_werror_flag"
29622			 || test ! -s conftest.err'
29623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624  (eval $ac_try) 2>&5
29625  ac_status=$?
29626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627  (exit $ac_status); }; } &&
29628	 { ac_try='test -s conftest$ac_exeext'
29629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29630  (eval $ac_try) 2>&5
29631  ac_status=$?
29632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633  (exit $ac_status); }; }; then
29634  LIBS="$flink_save_libs"
29635                     coin_need_flibs=yes
29636                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
29637                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29638echo "${ECHO_T}yes: $use_blas" >&6
29639
29640
29641else
29642  echo "$as_me: failed program was:" >&5
29643sed 's/^/| /' conftest.$ac_ext >&5
29644
29645LIBS="$flink_save_libs"
29646                     echo "$as_me:$LINENO: result: no" >&5
29647echo "${ECHO_T}no" >&6
29648fi
29649rm -f conftest.err conftest.$ac_objext \
29650      conftest$ac_exeext conftest.$ac_ext
29651      else
29652        echo "$as_me:$LINENO: result: no" >&5
29653echo "${ECHO_T}no" >&6
29654      fi
29655    fi
29656    ;;
29657esac
29658
29659            else
29660              { echo "$as_me:$LINENO: for BLAS in MKL (64bit) using C linkage" >&5
29661echo "$as_me: for BLAS in MKL (64bit) using C linkage" >&6;}
29662              # unset cached outcome of test with 32bit MKL
29663              unset ac_cv_func_daxpy
29664              ac_ext=c
29665ac_cpp='$CPP $CPPFLAGS'
29666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29668ac_compiler_gnu=$ac_cv_c_compiler_gnu
29669
29670              echo "$as_me:$LINENO: checking for daxpy" >&5
29671echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
29672if test "${ac_cv_func_daxpy+set}" = set; then
29673  echo $ECHO_N "(cached) $ECHO_C" >&6
29674else
29675  cat >conftest.$ac_ext <<_ACEOF
29676/* confdefs.h.  */
29677_ACEOF
29678cat confdefs.h >>conftest.$ac_ext
29679cat >>conftest.$ac_ext <<_ACEOF
29680/* end confdefs.h.  */
29681/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
29682   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29683#define daxpy innocuous_daxpy
29684
29685/* System header to define __stub macros and hopefully few prototypes,
29686    which can conflict with char daxpy (); below.
29687    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29688    <limits.h> exists even on freestanding compilers.  */
29689
29690#ifdef __STDC__
29691# include <limits.h>
29692#else
29693# include <assert.h>
29694#endif
29695
29696#undef daxpy
29697
29698/* Override any gcc2 internal prototype to avoid an error.  */
29699#ifdef __cplusplus
29700extern "C"
29701{
29702#endif
29703/* We use char because int might match the return type of a gcc2
29704   builtin and then its argument prototype would still apply.  */
29705char daxpy ();
29706/* The GNU C library defines this for functions which it implements
29707    to always fail with ENOSYS.  Some functions are actually named
29708    something starting with __ and the normal name is an alias.  */
29709#if defined (__stub_daxpy) || defined (__stub___daxpy)
29710choke me
29711#else
29712char (*f) () = daxpy;
29713#endif
29714#ifdef __cplusplus
29715}
29716#endif
29717
29718#ifdef F77_DUMMY_MAIN
29719
29720#  ifdef __cplusplus
29721     extern "C"
29722#  endif
29723   int F77_DUMMY_MAIN() { return 1; }
29724
29725#endif
29726int
29727main ()
29728{
29729return f != daxpy;
29730  ;
29731  return 0;
29732}
29733_ACEOF
29734rm -f conftest.$ac_objext conftest$ac_exeext
29735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29736  (eval $ac_link) 2>conftest.er1
29737  ac_status=$?
29738  grep -v '^ *+' conftest.er1 >conftest.err
29739  rm -f conftest.er1
29740  cat conftest.err >&5
29741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742  (exit $ac_status); } &&
29743	 { ac_try='test -z "$ac_c_werror_flag"
29744			 || test ! -s conftest.err'
29745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29746  (eval $ac_try) 2>&5
29747  ac_status=$?
29748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749  (exit $ac_status); }; } &&
29750	 { ac_try='test -s conftest$ac_exeext'
29751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29752  (eval $ac_try) 2>&5
29753  ac_status=$?
29754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755  (exit $ac_status); }; }; then
29756  ac_cv_func_daxpy=yes
29757else
29758  echo "$as_me: failed program was:" >&5
29759sed 's/^/| /' conftest.$ac_ext >&5
29760
29761ac_cv_func_daxpy=no
29762fi
29763rm -f conftest.err conftest.$ac_objext \
29764      conftest$ac_exeext conftest.$ac_ext
29765fi
29766echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
29767echo "${ECHO_T}$ac_cv_func_daxpy" >&6
29768if test $ac_cv_func_daxpy = yes; then
29769  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
29770fi
29771
29772              ac_ext=c
29773ac_cpp='$CPP $CPPFLAGS'
29774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29776ac_compiler_gnu=$ac_cv_c_compiler_gnu
29777
29778            fi
29779            LIBS="$coin_save_LIBS"
29780          fi
29781          ;;
29782      esac
29783      ;;
29784
29785     *-darwin*)
29786      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
29787echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
29788      coin_need_flibs=no
29789      coin_save_LIBS="$LIBS"
29790      LIBS="-framework Accelerate $LIBS"
29791      case $ac_ext in
29792  f)
29793    cat >conftest.$ac_ext <<_ACEOF
29794/* confdefs.h.  */
29795_ACEOF
29796cat confdefs.h >>conftest.$ac_ext
29797cat >>conftest.$ac_ext <<_ACEOF
29798/* end confdefs.h.  */
29799
29800#ifdef F77_DUMMY_MAIN
29801
29802#  ifdef __cplusplus
29803     extern "C"
29804#  endif
29805   int F77_DUMMY_MAIN() { return 1; }
29806
29807#endif
29808int
29809main ()
29810{
29811      call daxpy
29812  ;
29813  return 0;
29814}
29815_ACEOF
29816rm -f conftest.$ac_objext conftest$ac_exeext
29817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29818  (eval $ac_link) 2>conftest.er1
29819  ac_status=$?
29820  grep -v '^ *+' conftest.er1 >conftest.err
29821  rm -f conftest.er1
29822  cat conftest.err >&5
29823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824  (exit $ac_status); } &&
29825	 { ac_try='test -z "$ac_c_werror_flag"
29826			 || test ! -s conftest.err'
29827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828  (eval $ac_try) 2>&5
29829  ac_status=$?
29830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831  (exit $ac_status); }; } &&
29832	 { ac_try='test -s conftest$ac_exeext'
29833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834  (eval $ac_try) 2>&5
29835  ac_status=$?
29836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837  (exit $ac_status); }; }; then
29838  use_blas='-framework Accelerate'
29839                         if test $coin_need_flibs = yes ; then
29840                           use_blas="$use_blas $FLIBS"
29841                         fi
29842                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29843echo "${ECHO_T}yes: $use_blas" >&6
29844
29845else
29846  echo "$as_me: failed program was:" >&5
29847sed 's/^/| /' conftest.$ac_ext >&5
29848
29849echo "$as_me:$LINENO: result: no" >&5
29850echo "${ECHO_T}no" >&6
29851fi
29852rm -f conftest.err conftest.$ac_objext \
29853      conftest$ac_exeext conftest.$ac_ext
29854    ;;
29855  c)
29856    ac_ext=f
29857ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29858ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29859ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29860case $ac_cv_f77_mangling in
29861  upper*) ac_val="DAXPY" ;;
29862  lower*) ac_val="daxpy" ;;
29863  *)      ac_val="unknown" ;;
29864esac
29865case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29866
29867cfuncdaxpy="$ac_val"
29868
29869ac_ext=c
29870ac_cpp='$CPP $CPPFLAGS'
29871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29873ac_compiler_gnu=$ac_cv_c_compiler_gnu
29874
29875    if test x"$coin_need_flibs" = xyes; then
29876      flink_try=no;
29877    else
29878      cat >conftest.$ac_ext <<_ACEOF
29879/* confdefs.h.  */
29880_ACEOF
29881cat confdefs.h >>conftest.$ac_ext
29882cat >>conftest.$ac_ext <<_ACEOF
29883/* end confdefs.h.  */
29884void $cfuncdaxpy();
29885#ifdef F77_DUMMY_MAIN
29886
29887#  ifdef __cplusplus
29888     extern "C"
29889#  endif
29890   int F77_DUMMY_MAIN() { return 1; }
29891
29892#endif
29893int
29894main ()
29895{
29896$cfuncdaxpy()
29897  ;
29898  return 0;
29899}
29900_ACEOF
29901rm -f conftest.$ac_objext conftest$ac_exeext
29902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29903  (eval $ac_link) 2>conftest.er1
29904  ac_status=$?
29905  grep -v '^ *+' conftest.er1 >conftest.err
29906  rm -f conftest.er1
29907  cat conftest.err >&5
29908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909  (exit $ac_status); } &&
29910	 { ac_try='test -z "$ac_c_werror_flag"
29911			 || test ! -s conftest.err'
29912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29913  (eval $ac_try) 2>&5
29914  ac_status=$?
29915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916  (exit $ac_status); }; } &&
29917	 { ac_try='test -s conftest$ac_exeext'
29918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29919  (eval $ac_try) 2>&5
29920  ac_status=$?
29921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922  (exit $ac_status); }; }; then
29923  flink_try=yes
29924else
29925  echo "$as_me: failed program was:" >&5
29926sed 's/^/| /' conftest.$ac_ext >&5
29927
29928flink_try=no
29929fi
29930rm -f conftest.err conftest.$ac_objext \
29931      conftest$ac_exeext conftest.$ac_ext
29932    fi
29933    if test $flink_try = yes; then
29934      use_blas='-framework Accelerate'
29935                         if test $coin_need_flibs = yes ; then
29936                           use_blas="$use_blas $FLIBS"
29937                         fi
29938                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29939echo "${ECHO_T}yes: $use_blas" >&6
29940
29941    else
29942      if test x"$FLIBS" != x; then
29943        flink_save_libs="$LIBS"
29944        LIBS="$LIBS $FLIBS"
29945        cat >conftest.$ac_ext <<_ACEOF
29946/* confdefs.h.  */
29947_ACEOF
29948cat confdefs.h >>conftest.$ac_ext
29949cat >>conftest.$ac_ext <<_ACEOF
29950/* end confdefs.h.  */
29951void $cfuncdaxpy();
29952#ifdef F77_DUMMY_MAIN
29953
29954#  ifdef __cplusplus
29955     extern "C"
29956#  endif
29957   int F77_DUMMY_MAIN() { return 1; }
29958
29959#endif
29960int
29961main ()
29962{
29963$cfuncdaxpy()
29964  ;
29965  return 0;
29966}
29967_ACEOF
29968rm -f conftest.$ac_objext conftest$ac_exeext
29969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29970  (eval $ac_link) 2>conftest.er1
29971  ac_status=$?
29972  grep -v '^ *+' conftest.er1 >conftest.err
29973  rm -f conftest.er1
29974  cat conftest.err >&5
29975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976  (exit $ac_status); } &&
29977	 { ac_try='test -z "$ac_c_werror_flag"
29978			 || test ! -s conftest.err'
29979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29980  (eval $ac_try) 2>&5
29981  ac_status=$?
29982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983  (exit $ac_status); }; } &&
29984	 { ac_try='test -s conftest$ac_exeext'
29985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986  (eval $ac_try) 2>&5
29987  ac_status=$?
29988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989  (exit $ac_status); }; }; then
29990  LIBS="$flink_save_libs"
29991                     coin_need_flibs=yes
29992                     use_blas='-framework Accelerate'
29993                         if test $coin_need_flibs = yes ; then
29994                           use_blas="$use_blas $FLIBS"
29995                         fi
29996                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29997echo "${ECHO_T}yes: $use_blas" >&6
29998
29999
30000else
30001  echo "$as_me: failed program was:" >&5
30002sed 's/^/| /' conftest.$ac_ext >&5
30003
30004LIBS="$flink_save_libs"
30005                     echo "$as_me:$LINENO: result: no" >&5
30006echo "${ECHO_T}no" >&6
30007fi
30008rm -f conftest.err conftest.$ac_objext \
30009      conftest$ac_exeext conftest.$ac_ext
30010      else
30011        echo "$as_me:$LINENO: result: no" >&5
30012echo "${ECHO_T}no" >&6
30013      fi
30014    fi
30015    ;;
30016  cc|cpp)
30017    ac_ext=f
30018ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30019ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30020ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30021case $ac_cv_f77_mangling in
30022  upper*) ac_val="DAXPY" ;;
30023  lower*) ac_val="daxpy" ;;
30024  *)      ac_val="unknown" ;;
30025esac
30026case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30027
30028cfuncdaxpy="$ac_val"
30029
30030ac_ext=c
30031ac_cpp='$CPP $CPPFLAGS'
30032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30034ac_compiler_gnu=$ac_cv_c_compiler_gnu
30035
30036    if test x"$coin_need_flibs" = xyes; then
30037      flink_try=no;
30038    else
30039      cat >conftest.$ac_ext <<_ACEOF
30040/* confdefs.h.  */
30041_ACEOF
30042cat confdefs.h >>conftest.$ac_ext
30043cat >>conftest.$ac_ext <<_ACEOF
30044/* end confdefs.h.  */
30045extern "C" {void $cfuncdaxpy();}
30046#ifdef F77_DUMMY_MAIN
30047
30048#  ifdef __cplusplus
30049     extern "C"
30050#  endif
30051   int F77_DUMMY_MAIN() { return 1; }
30052
30053#endif
30054int
30055main ()
30056{
30057$cfuncdaxpy()
30058  ;
30059  return 0;
30060}
30061_ACEOF
30062rm -f conftest.$ac_objext conftest$ac_exeext
30063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30064  (eval $ac_link) 2>conftest.er1
30065  ac_status=$?
30066  grep -v '^ *+' conftest.er1 >conftest.err
30067  rm -f conftest.er1
30068  cat conftest.err >&5
30069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070  (exit $ac_status); } &&
30071	 { ac_try='test -z "$ac_c_werror_flag"
30072			 || test ! -s conftest.err'
30073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30074  (eval $ac_try) 2>&5
30075  ac_status=$?
30076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077  (exit $ac_status); }; } &&
30078	 { ac_try='test -s conftest$ac_exeext'
30079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30080  (eval $ac_try) 2>&5
30081  ac_status=$?
30082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083  (exit $ac_status); }; }; then
30084  flink_try=yes
30085else
30086  echo "$as_me: failed program was:" >&5
30087sed 's/^/| /' conftest.$ac_ext >&5
30088
30089flink_try=no
30090fi
30091rm -f conftest.err conftest.$ac_objext \
30092      conftest$ac_exeext conftest.$ac_ext
30093    fi
30094    if test $flink_try = yes; then
30095      use_blas='-framework Accelerate'
30096                         if test $coin_need_flibs = yes ; then
30097                           use_blas="$use_blas $FLIBS"
30098                         fi
30099                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30100echo "${ECHO_T}yes: $use_blas" >&6
30101
30102    else
30103      if test x"$FLIBS" != x; then
30104        flink_save_libs="$LIBS"
30105        LIBS="$LIBS $FLIBS"
30106        cat >conftest.$ac_ext <<_ACEOF
30107/* confdefs.h.  */
30108_ACEOF
30109cat confdefs.h >>conftest.$ac_ext
30110cat >>conftest.$ac_ext <<_ACEOF
30111/* end confdefs.h.  */
30112extern "C" {void $cfuncdaxpy();}
30113#ifdef F77_DUMMY_MAIN
30114
30115#  ifdef __cplusplus
30116     extern "C"
30117#  endif
30118   int F77_DUMMY_MAIN() { return 1; }
30119
30120#endif
30121int
30122main ()
30123{
30124$cfuncdaxpy()
30125  ;
30126  return 0;
30127}
30128_ACEOF
30129rm -f conftest.$ac_objext conftest$ac_exeext
30130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30131  (eval $ac_link) 2>conftest.er1
30132  ac_status=$?
30133  grep -v '^ *+' conftest.er1 >conftest.err
30134  rm -f conftest.er1
30135  cat conftest.err >&5
30136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137  (exit $ac_status); } &&
30138	 { ac_try='test -z "$ac_c_werror_flag"
30139			 || test ! -s conftest.err'
30140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141  (eval $ac_try) 2>&5
30142  ac_status=$?
30143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144  (exit $ac_status); }; } &&
30145	 { ac_try='test -s conftest$ac_exeext'
30146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30147  (eval $ac_try) 2>&5
30148  ac_status=$?
30149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150  (exit $ac_status); }; }; then
30151  LIBS="$flink_save_libs"
30152                     coin_need_flibs=yes
30153                     use_blas='-framework Accelerate'
30154                         if test $coin_need_flibs = yes ; then
30155                           use_blas="$use_blas $FLIBS"
30156                         fi
30157                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30158echo "${ECHO_T}yes: $use_blas" >&6
30159
30160
30161else
30162  echo "$as_me: failed program was:" >&5
30163sed 's/^/| /' conftest.$ac_ext >&5
30164
30165LIBS="$flink_save_libs"
30166                     echo "$as_me:$LINENO: result: no" >&5
30167echo "${ECHO_T}no" >&6
30168fi
30169rm -f conftest.err conftest.$ac_objext \
30170      conftest$ac_exeext conftest.$ac_ext
30171      else
30172        echo "$as_me:$LINENO: result: no" >&5
30173echo "${ECHO_T}no" >&6
30174      fi
30175    fi
30176    ;;
30177esac
30178
30179      LIBS="$coin_save_LIBS"
30180      ;;
30181  esac
30182
30183  if test -z "$use_blas" ; then
30184    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
30185echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
30186    coin_need_flibs=no
30187    coin_save_LIBS="$LIBS"
30188    LIBS="-lblas $LIBS"
30189    case $ac_ext in
30190  f)
30191    cat >conftest.$ac_ext <<_ACEOF
30192/* confdefs.h.  */
30193_ACEOF
30194cat confdefs.h >>conftest.$ac_ext
30195cat >>conftest.$ac_ext <<_ACEOF
30196/* end confdefs.h.  */
30197
30198#ifdef F77_DUMMY_MAIN
30199
30200#  ifdef __cplusplus
30201     extern "C"
30202#  endif
30203   int F77_DUMMY_MAIN() { return 1; }
30204
30205#endif
30206int
30207main ()
30208{
30209      call daxpy
30210  ;
30211  return 0;
30212}
30213_ACEOF
30214rm -f conftest.$ac_objext conftest$ac_exeext
30215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30216  (eval $ac_link) 2>conftest.er1
30217  ac_status=$?
30218  grep -v '^ *+' conftest.er1 >conftest.err
30219  rm -f conftest.er1
30220  cat conftest.err >&5
30221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222  (exit $ac_status); } &&
30223	 { ac_try='test -z "$ac_c_werror_flag"
30224			 || test ! -s conftest.err'
30225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30226  (eval $ac_try) 2>&5
30227  ac_status=$?
30228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229  (exit $ac_status); }; } &&
30230	 { ac_try='test -s conftest$ac_exeext'
30231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232  (eval $ac_try) 2>&5
30233  ac_status=$?
30234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235  (exit $ac_status); }; }; then
30236  use_blas='-lblas'
30237                       if test $coin_need_flibs = yes ; then
30238                         use_blas="$use_blas $FLIBS"
30239                       fi
30240                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30241echo "${ECHO_T}yes: $use_blas" >&6
30242
30243else
30244  echo "$as_me: failed program was:" >&5
30245sed 's/^/| /' conftest.$ac_ext >&5
30246
30247echo "$as_me:$LINENO: result: no" >&5
30248echo "${ECHO_T}no" >&6
30249fi
30250rm -f conftest.err conftest.$ac_objext \
30251      conftest$ac_exeext conftest.$ac_ext
30252    ;;
30253  c)
30254    ac_ext=f
30255ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30256ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30257ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30258case $ac_cv_f77_mangling in
30259  upper*) ac_val="DAXPY" ;;
30260  lower*) ac_val="daxpy" ;;
30261  *)      ac_val="unknown" ;;
30262esac
30263case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30264
30265cfuncdaxpy="$ac_val"
30266
30267ac_ext=c
30268ac_cpp='$CPP $CPPFLAGS'
30269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30271ac_compiler_gnu=$ac_cv_c_compiler_gnu
30272
30273    if test x"$coin_need_flibs" = xyes; then
30274      flink_try=no;
30275    else
30276      cat >conftest.$ac_ext <<_ACEOF
30277/* confdefs.h.  */
30278_ACEOF
30279cat confdefs.h >>conftest.$ac_ext
30280cat >>conftest.$ac_ext <<_ACEOF
30281/* end confdefs.h.  */
30282void $cfuncdaxpy();
30283#ifdef F77_DUMMY_MAIN
30284
30285#  ifdef __cplusplus
30286     extern "C"
30287#  endif
30288   int F77_DUMMY_MAIN() { return 1; }
30289
30290#endif
30291int
30292main ()
30293{
30294$cfuncdaxpy()
30295  ;
30296  return 0;
30297}
30298_ACEOF
30299rm -f conftest.$ac_objext conftest$ac_exeext
30300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30301  (eval $ac_link) 2>conftest.er1
30302  ac_status=$?
30303  grep -v '^ *+' conftest.er1 >conftest.err
30304  rm -f conftest.er1
30305  cat conftest.err >&5
30306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307  (exit $ac_status); } &&
30308	 { ac_try='test -z "$ac_c_werror_flag"
30309			 || test ! -s conftest.err'
30310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30311  (eval $ac_try) 2>&5
30312  ac_status=$?
30313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314  (exit $ac_status); }; } &&
30315	 { ac_try='test -s conftest$ac_exeext'
30316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30317  (eval $ac_try) 2>&5
30318  ac_status=$?
30319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320  (exit $ac_status); }; }; then
30321  flink_try=yes
30322else
30323  echo "$as_me: failed program was:" >&5
30324sed 's/^/| /' conftest.$ac_ext >&5
30325
30326flink_try=no
30327fi
30328rm -f conftest.err conftest.$ac_objext \
30329      conftest$ac_exeext conftest.$ac_ext
30330    fi
30331    if test $flink_try = yes; then
30332      use_blas='-lblas'
30333                       if test $coin_need_flibs = yes ; then
30334                         use_blas="$use_blas $FLIBS"
30335                       fi
30336                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30337echo "${ECHO_T}yes: $use_blas" >&6
30338
30339    else
30340      if test x"$FLIBS" != x; then
30341        flink_save_libs="$LIBS"
30342        LIBS="$LIBS $FLIBS"
30343        cat >conftest.$ac_ext <<_ACEOF
30344/* confdefs.h.  */
30345_ACEOF
30346cat confdefs.h >>conftest.$ac_ext
30347cat >>conftest.$ac_ext <<_ACEOF
30348/* end confdefs.h.  */
30349void $cfuncdaxpy();
30350#ifdef F77_DUMMY_MAIN
30351
30352#  ifdef __cplusplus
30353     extern "C"
30354#  endif
30355   int F77_DUMMY_MAIN() { return 1; }
30356
30357#endif
30358int
30359main ()
30360{
30361$cfuncdaxpy()
30362  ;
30363  return 0;
30364}
30365_ACEOF
30366rm -f conftest.$ac_objext conftest$ac_exeext
30367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30368  (eval $ac_link) 2>conftest.er1
30369  ac_status=$?
30370  grep -v '^ *+' conftest.er1 >conftest.err
30371  rm -f conftest.er1
30372  cat conftest.err >&5
30373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374  (exit $ac_status); } &&
30375	 { ac_try='test -z "$ac_c_werror_flag"
30376			 || test ! -s conftest.err'
30377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30378  (eval $ac_try) 2>&5
30379  ac_status=$?
30380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381  (exit $ac_status); }; } &&
30382	 { ac_try='test -s conftest$ac_exeext'
30383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384  (eval $ac_try) 2>&5
30385  ac_status=$?
30386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387  (exit $ac_status); }; }; then
30388  LIBS="$flink_save_libs"
30389                     coin_need_flibs=yes
30390                     use_blas='-lblas'
30391                       if test $coin_need_flibs = yes ; then
30392                         use_blas="$use_blas $FLIBS"
30393                       fi
30394                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30395echo "${ECHO_T}yes: $use_blas" >&6
30396
30397
30398else
30399  echo "$as_me: failed program was:" >&5
30400sed 's/^/| /' conftest.$ac_ext >&5
30401
30402LIBS="$flink_save_libs"
30403                     echo "$as_me:$LINENO: result: no" >&5
30404echo "${ECHO_T}no" >&6
30405fi
30406rm -f conftest.err conftest.$ac_objext \
30407      conftest$ac_exeext conftest.$ac_ext
30408      else
30409        echo "$as_me:$LINENO: result: no" >&5
30410echo "${ECHO_T}no" >&6
30411      fi
30412    fi
30413    ;;
30414  cc|cpp)
30415    ac_ext=f
30416ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30417ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30418ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30419case $ac_cv_f77_mangling in
30420  upper*) ac_val="DAXPY" ;;
30421  lower*) ac_val="daxpy" ;;
30422  *)      ac_val="unknown" ;;
30423esac
30424case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30425
30426cfuncdaxpy="$ac_val"
30427
30428ac_ext=c
30429ac_cpp='$CPP $CPPFLAGS'
30430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30432ac_compiler_gnu=$ac_cv_c_compiler_gnu
30433
30434    if test x"$coin_need_flibs" = xyes; then
30435      flink_try=no;
30436    else
30437      cat >conftest.$ac_ext <<_ACEOF
30438/* confdefs.h.  */
30439_ACEOF
30440cat confdefs.h >>conftest.$ac_ext
30441cat >>conftest.$ac_ext <<_ACEOF
30442/* end confdefs.h.  */
30443extern "C" {void $cfuncdaxpy();}
30444#ifdef F77_DUMMY_MAIN
30445
30446#  ifdef __cplusplus
30447     extern "C"
30448#  endif
30449   int F77_DUMMY_MAIN() { return 1; }
30450
30451#endif
30452int
30453main ()
30454{
30455$cfuncdaxpy()
30456  ;
30457  return 0;
30458}
30459_ACEOF
30460rm -f conftest.$ac_objext conftest$ac_exeext
30461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30462  (eval $ac_link) 2>conftest.er1
30463  ac_status=$?
30464  grep -v '^ *+' conftest.er1 >conftest.err
30465  rm -f conftest.er1
30466  cat conftest.err >&5
30467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468  (exit $ac_status); } &&
30469	 { ac_try='test -z "$ac_c_werror_flag"
30470			 || test ! -s conftest.err'
30471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30472  (eval $ac_try) 2>&5
30473  ac_status=$?
30474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475  (exit $ac_status); }; } &&
30476	 { ac_try='test -s conftest$ac_exeext'
30477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30478  (eval $ac_try) 2>&5
30479  ac_status=$?
30480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481  (exit $ac_status); }; }; then
30482  flink_try=yes
30483else
30484  echo "$as_me: failed program was:" >&5
30485sed 's/^/| /' conftest.$ac_ext >&5
30486
30487flink_try=no
30488fi
30489rm -f conftest.err conftest.$ac_objext \
30490      conftest$ac_exeext conftest.$ac_ext
30491    fi
30492    if test $flink_try = yes; then
30493      use_blas='-lblas'
30494                       if test $coin_need_flibs = yes ; then
30495                         use_blas="$use_blas $FLIBS"
30496                       fi
30497                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30498echo "${ECHO_T}yes: $use_blas" >&6
30499
30500    else
30501      if test x"$FLIBS" != x; then
30502        flink_save_libs="$LIBS"
30503        LIBS="$LIBS $FLIBS"
30504        cat >conftest.$ac_ext <<_ACEOF
30505/* confdefs.h.  */
30506_ACEOF
30507cat confdefs.h >>conftest.$ac_ext
30508cat >>conftest.$ac_ext <<_ACEOF
30509/* end confdefs.h.  */
30510extern "C" {void $cfuncdaxpy();}
30511#ifdef F77_DUMMY_MAIN
30512
30513#  ifdef __cplusplus
30514     extern "C"
30515#  endif
30516   int F77_DUMMY_MAIN() { return 1; }
30517
30518#endif
30519int
30520main ()
30521{
30522$cfuncdaxpy()
30523  ;
30524  return 0;
30525}
30526_ACEOF
30527rm -f conftest.$ac_objext conftest$ac_exeext
30528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30529  (eval $ac_link) 2>conftest.er1
30530  ac_status=$?
30531  grep -v '^ *+' conftest.er1 >conftest.err
30532  rm -f conftest.er1
30533  cat conftest.err >&5
30534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535  (exit $ac_status); } &&
30536	 { ac_try='test -z "$ac_c_werror_flag"
30537			 || test ! -s conftest.err'
30538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30539  (eval $ac_try) 2>&5
30540  ac_status=$?
30541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542  (exit $ac_status); }; } &&
30543	 { ac_try='test -s conftest$ac_exeext'
30544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30545  (eval $ac_try) 2>&5
30546  ac_status=$?
30547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548  (exit $ac_status); }; }; then
30549  LIBS="$flink_save_libs"
30550                     coin_need_flibs=yes
30551                     use_blas='-lblas'
30552                       if test $coin_need_flibs = yes ; then
30553                         use_blas="$use_blas $FLIBS"
30554                       fi
30555                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30556echo "${ECHO_T}yes: $use_blas" >&6
30557
30558
30559else
30560  echo "$as_me: failed program was:" >&5
30561sed 's/^/| /' conftest.$ac_ext >&5
30562
30563LIBS="$flink_save_libs"
30564                     echo "$as_me:$LINENO: result: no" >&5
30565echo "${ECHO_T}no" >&6
30566fi
30567rm -f conftest.err conftest.$ac_objext \
30568      conftest$ac_exeext conftest.$ac_ext
30569      else
30570        echo "$as_me:$LINENO: result: no" >&5
30571echo "${ECHO_T}no" >&6
30572      fi
30573    fi
30574    ;;
30575esac
30576
30577    LIBS="$coin_save_LIBS"
30578  fi
30579
30580  # If we have no other ideas, consider building BLAS.
30581  if test -z "$use_blas" ; then
30582    use_blas=BUILD
30583  fi
30584fi
30585
30586if test "x$use_blas" = xBUILD ; then
30587
30588echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
30589echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
30590
30591coin_has_blas=notGiven
30592
30593# check if user wants to skip package in any case
30594if test x"$COIN_SKIP_PROJECTS" != x; then
30595  for dir in $COIN_SKIP_PROJECTS; do
30596    if test $dir = "Blas"; then
30597      coin_has_blas=skipping
30598    fi
30599  done
30600fi
30601
30602if test "$coin_has_blas" != skipping; then
30603
30604# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
30605if test "${with_blas+set}" = set; then
30606  withval="$with_blas"
30607  if test "$withval" = no ; then
30608       coin_has_blas=skipping
30609     fi
30610
30611fi;
30612fi
30613
30614BLAS_LIBS=
30615BLAS_CFLAGS=
30616BLAS_DATA=
30617BLAS_DEPENDENCIES=
30618BLAS_PCLIBS=
30619BLAS_PCREQUIRES=
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
30638if test $coin_has_blas != skipping; then
30639
30640# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
30641if test "${with_blas_lib+set}" = set; then
30642  withval="$with_blas_lib"
30643  if test "$withval" = no ; then
30644       coin_has_blas=skipping
30645     else
30646       coin_has_blas=yes
30647       BLAS_LIBS="$withval"
30648       BLAS_PCLIBS="$withval"
30649
30650         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
30651         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
30652
30653       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
30654       if test -z "$PKG_CONFIG" ; then
30655         BLAS_LIBS_INSTALLED="$withval"
30656         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
30657       fi
30658     fi
30659
30660fi;
30661fi
30662
30663if test $coin_has_blas != skipping; then
30664
30665# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
30666if test "${with_blas_incdir+set}" = set; then
30667  withval="$with_blas_incdir"
30668  if test "$withval" = no ; then
30669       coin_has_blas=skipping
30670     else
30671       coin_has_blas=yes
30672       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
30673       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
30674       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
30675       if test -z "$PKG_CONFIG" ; then
30676         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
30677         CGLCONICLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
30678       fi
30679     fi
30680
30681fi;
30682fi
30683
30684if test $coin_has_blas != skipping; then
30685
30686# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
30687if test "${with_blas_datadir+set}" = set; then
30688  withval="$with_blas_datadir"
30689  if test "$withval" = no ; then
30690       coin_has_blas=skipping
30691     else
30692       coin_has_blas=yes
30693       BLAS_DATA="$withval"
30694       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
30695       if test -z "$PKG_CONFIG" ; then
30696         BLAS_DATA_INSTALLED="$withval"
30697       fi
30698     fi
30699
30700fi;
30701fi
30702
30703if test $coin_has_blas = notGiven; then
30704  if test -n "$PKG_CONFIG" ; then
30705    # set search path for pkg-config
30706    # need to export variable to be sure that the following pkg-config gets these values
30707    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
30708    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
30709    export PKG_CONFIG_PATH
30710
30711    # let pkg-config do it's magic
30712
30713
30714
30715if test -n "$PKG_CONFIG" ; then
30716  if $PKG_CONFIG --exists "coinblas"; then
30717    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
30718     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
30719    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
30720	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
30721	# but only do this if is not trivial
30722    if test "$CYGPATH_W" != "echo" ; then
30723      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
30724      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
30725    fi
30726    BLAS_CFLAGS="$cflags"
30727    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
30728    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
30729     coin_has_blas=yes
30730        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
30731echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
30732
30733        # adjust linker flags for (i)cl compiler
30734        # 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)
30735        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
30736        then
30737          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
30738        fi
30739        BLAS_PCREQUIRES="coinblas"
30740
30741        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
30742
30743          CGLCONICLIB_PCREQUIRES="coinblas $CGLCONICLIB_PCREQUIRES"
30744          CGLCONICLIB_CFLAGS="$BLAS_CFLAGS $CGLCONICLIB_CFLAGS"
30745          CGLCONICLIB_LIBS="$BLAS_LIBS $CGLCONICLIB_LIBS"
30746
30747
30748
30749  else
30750    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
30751      coin_has_blas=notGiven
30752        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
30753echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
30754
30755  fi
30756else
30757  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
30758echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
30759   { (exit 1); exit 1; }; }
30760fi
30761
30762
30763
30764
30765    # reset PKG_CONFIG_PATH variable
30766    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
30767    export PKG_CONFIG_PATH
30768
30769  else
30770    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
30771echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
30772
30773echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
30774echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
30775
30776coin_has_blas=notGiven
30777BLAS_LIBS=
30778BLAS_LIBS_INSTALLED=
30779BLAS_CFLAGS=
30780BLAS_CFLAGS_INSTALLED=
30781BLAS_DATA=
30782BLAS_DATA_INSTALLED=
30783BLAS_PCLIBS=
30784BLAS_PCREQUIRES=
30785
30786# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
30787projtoprocess="coinblas"
30788
30789# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
30790# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
30791# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
30792# also, we setup the DATA variable
30793allproj=""
30794allpcfiles=""
30795allpcifiles=""
30796while test "x$projtoprocess" != x ; do
30797
30798  for proj in $projtoprocess ; do
30799    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
30800    pcfile=""
30801    save_IFS="$IFS"
30802    IFS=":"
30803    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
30804      # 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
30805      if test -r "$dir/${proj}-uninstalled.pc" ; then
30806        pcfile="$dir/$proj-uninstalled.pc"
30807        if test -r "$dir/${proj}.pc" ; then
30808          pcifile="$dir/${proj}.pc"
30809        else
30810          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
30811echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
30812          pcifile=
30813        fi
30814        break
30815      fi
30816    done
30817    IFS="$save_IFS"
30818
30819    if test "x$pcfile" != x ; then
30820      # read dependencies from $pcfile and filter it
30821      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
30822
30823      # add projrequires to the front of the list of projects that have to be processed next
30824      # at the same time, remove $proj from this list
30825      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
30826
30827      # read DATA from $pcfile, if _DATA is still empty
30828      if test "x$BLAS_DATA" = x ; then
30829        projdatadir=
30830        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
30831        eval `sh -c "$pcfilemod"`
30832        BLAS_DATA="$projdatadir"
30833      fi
30834
30835      allproj="$allproj $proj"
30836      allpcfiles="$pcfile:$allpcfiles"
30837
30838    else
30839      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
30840echo "${ECHO_T}no, dependency $proj not available" >&6
30841      allproj=fail
30842      break 2
30843    fi
30844
30845    if test "x$pcifile" != x ; then
30846      allpcifiles="$pcifile:$allpcifiles"
30847
30848      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
30849      if test "x$BLAS_DATA_INSTALLED" = x ; then
30850        projdatadir=
30851        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
30852        eval `sh -c "$pcifilemod"`
30853        if test "${CYGPATH_W}" != "echo"; then
30854          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
30855        fi
30856        BLAS_DATA_INSTALLED="$projdatadir"
30857      fi
30858
30859    fi
30860
30861    break
30862  done
30863
30864  # remove spaces on begin of $projtoprocess
30865  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
30866
30867done
30868
30869if test "$allproj" != fail ; then
30870
30871  # now go through the list of .pc files and assemble compiler and linker flags
30872  # important is here to obey the reverse order that has been setup before,
30873  # since then libraries that are required by several others should be after these other libraries
30874  pcfilesprocessed=""
30875
30876  save_IFS="$IFS"
30877  IFS=":"
30878  for pcfile in $allpcfiles ; do
30879
30880    # if $pcfile has been processed already, skip this round
30881    if test "x$pcfilesprocessed" != x ; then
30882      for pcfiledone in $pcfilesprocessed ; do
30883        if test "$pcfiledone" = "$pcfile" ; then
30884          continue 2
30885        fi
30886      done
30887    fi
30888
30889    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
30890    #   replace "Libs:" by "echo projlibs="
30891    #   replace "Cflags:" by "echo projcflags="
30892    #   remove every line starting with <some word>:
30893    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
30894
30895    # set projcflags and projlibs variables by running $pcfilemod
30896    # 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
30897    projcflags=
30898    projlibs=
30899    IFS="$save_IFS"
30900    eval `sh -c "$pcfilemod"`
30901    IFS=":"
30902
30903    # add CYGPATH_W cludge into include flags and set CFLAGS variable
30904    if test "${CYGPATH_W}" != "echo"; then
30905      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
30906    fi
30907    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
30908
30909    # set LIBS variable
30910    BLAS_LIBS="$projlibs $BLAS_LIBS"
30911
30912    # remember that we have processed $pcfile
30913    pcfilesprocessed="$pcfilesprocessed:$pcfile"
30914
30915  done
30916  IFS="$save_IFS"
30917
30918
30919  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
30920  # important is here again to obey the reverse order that has been setup before,
30921  # since then libraries that are required by several others should be after these other libraries
30922  pcfilesprocessed=""
30923
30924  save_IFS="$IFS"
30925  IFS=":"
30926  for pcfile in $allpcifiles ; do
30927
30928    # if $pcfile has been processed already, skip this round
30929    if test "x$pcfilesprocessed" != x ; then
30930      for pcfiledone in $pcfilesprocessed ; do
30931        if test "$pcfiledone" = "$pcfile" ; then
30932          continue 2
30933        fi
30934      done
30935    fi
30936
30937    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
30938    #   replace "Libs:" by "echo projlibs="
30939    #   replace "Cflags:" by "echo projcflags="
30940    #   remove every line starting with <some word>:
30941    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
30942
30943    # set projcflags and projlibs variables by running $pcfilemod
30944    # 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
30945    projcflags=
30946    projlibs=
30947    IFS="$save_IFS"
30948    eval `sh -c "$pcfilemod"`
30949    IFS=":"
30950
30951    # add CYGPATH_W cludge into include flags and set CFLAGS variable
30952    if test "${CYGPATH_W}" != "echo"; then
30953      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
30954    fi
30955    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
30956
30957    # set LIBS variable
30958    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
30959
30960    # remember that we have processed $pcfile
30961    pcfilesprocessed="$pcfilesprocessed:$pcfile"
30962
30963  done
30964  IFS="$save_IFS"
30965
30966
30967  # finish up
30968  coin_has_blas=yes
30969  echo "$as_me:$LINENO: result: yes" >&5
30970echo "${ECHO_T}yes" >&6
30971
30972cat >>confdefs.h <<\_ACEOF
30973#define COIN_HAS_BLAS 1
30974_ACEOF
30975
30976
30977  # adjust linker flags for (i)cl compiler
30978  # 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),
30979  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
30980  #    everything of the form "-lname" by "libname.lib", and
30981  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
30982  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
30983  then
30984    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
30985    BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
30986  fi
30987
30988  BLAS_PCREQUIRES="coinblas"
30989
30990    CGLCONICLIB_PCREQUIRES="coinblas $CGLCONICLIB_PCREQUIRES"
30991    CGLCONICLIB_CFLAGS="$BLAS_CFLAGS $CGLCONICLIB_CFLAGS"
30992    CGLCONICLIB_LIBS="$BLAS_LIBS $CGLCONICLIB_LIBS"
30993    CGLCONICLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
30994    CGLCONICLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
30995
30996
30997fi
30998
30999
31000
31001if test $coin_has_blas != notGiven &&
31002                test $coin_has_blas != skipping; then
31003  COIN_HAS_BLAS_TRUE=
31004  COIN_HAS_BLAS_FALSE='#'
31005else
31006  COIN_HAS_BLAS_TRUE='#'
31007  COIN_HAS_BLAS_FALSE=
31008fi
31009
31010
31011
31012  fi
31013
31014else
31015  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
31016echo "${ECHO_T}$coin_has_blas" >&6
31017fi
31018
31019if test $coin_has_blas != skipping &&
31020   test $coin_has_blas != notGiven ; then
31021
31022cat >>confdefs.h <<\_ACEOF
31023#define COIN_HAS_BLAS 1
31024_ACEOF
31025
31026
31027  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
31028if test "${enable_interpackage_dependencies+set}" = set; then
31029  enableval="$enable_interpackage_dependencies"
31030
31031else
31032  enable_interpackage_dependencies=yes
31033fi;
31034
31035  if test $enable_interpackage_dependencies = yes ; then
31036     # construct dependencies variables from LIBS variables
31037     # we add an extra space in LIBS so we can substitute out everything starting with " -"
31038     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
31039     # then remove everything of the form -xxx
31040     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
31041     BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
31042
31043       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
31044
31045  fi
31046
31047  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
31048    if test -n "$BLAS_CFLAGS" ; then
31049      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
31050echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
31051    fi
31052    if test -n "$BLAS_LIBS" ; then
31053      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
31054echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
31055    fi
31056    if test -n "$BLAS_DEPENDENCIES" ; then
31057      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
31058echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
31059    fi
31060    if test -n "$BLAS_DATA" ; then
31061      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
31062echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
31063    fi
31064    if test -n "$BLAS_PCLIBS" ; then
31065      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
31066echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
31067    fi
31068    if test -n "$BLAS_PCREQUIRES" ; then
31069      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
31070echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
31071    fi
31072
31073      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
31074echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
31075      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
31076echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
31077      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
31078echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
31079
31080  fi
31081fi
31082
31083# Define the Makefile conditional
31084
31085
31086if test $coin_has_blas != notGiven &&
31087                test $coin_has_blas != skipping; then
31088  COIN_HAS_BLAS_TRUE=
31089  COIN_HAS_BLAS_FALSE='#'
31090else
31091  COIN_HAS_BLAS_TRUE='#'
31092  COIN_HAS_BLAS_FALSE=
31093fi
31094
31095
31096
31097
31098elif test "x$use_blas" != x && test "$use_blas" != no; then
31099  coin_has_blas=yes
31100
31101
31102if test 0 = 0; then
31103  COIN_HAS_BLAS_TRUE=
31104  COIN_HAS_BLAS_FALSE='#'
31105else
31106  COIN_HAS_BLAS_TRUE='#'
31107  COIN_HAS_BLAS_FALSE=
31108fi
31109
31110
31111cat >>confdefs.h <<\_ACEOF
31112#define COIN_HAS_BLAS 1
31113_ACEOF
31114
31115  BLAS_LIBS="$use_blas"
31116  BLAS_CFLAGS=
31117  BLAS_DATA=
31118
31119
31120
31121
31122    CGLCONICLIB_PCLIBS="$BLAS_LIBS $CGLCONICLIB_PCLIBS"
31123    CGLCONICLIB_LIBS="$BLAS_LIBS $CGLCONICLIB_LIBS"
31124    CGLCONICLIB_LIBS_INSTALLED="$BLAS_LIBS $CGLCONICLIB_LIBS_INSTALLED"
31125
31126
31127else
31128  coin_has_blas=no
31129
31130
31131if test 0 = 1; then
31132  COIN_HAS_BLAS_TRUE=
31133  COIN_HAS_BLAS_FALSE='#'
31134else
31135  COIN_HAS_BLAS_TRUE='#'
31136  COIN_HAS_BLAS_FALSE=
31137fi
31138
31139fi
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150# Check whether --with-lapack or --without-lapack was given.
31151if test "${with_lapack+set}" = set; then
31152  withval="$with_lapack"
31153  use_lapack=$withval
31154else
31155  use_lapack=
31156fi;
31157
31158#if user specified --with-lapack-lib, then we should give COIN_HAS_PACKAGE preference
31159
31160# Check whether --with-lapack-lib or --without-lapack-lib was given.
31161if test "${with_lapack_lib+set}" = set; then
31162  withval="$with_lapack_lib"
31163  use_lapack=BUILD
31164fi;
31165
31166# Check if user supplied option makes sense
31167if test x"$use_lapack" != x; then
31168  if test "$use_lapack" = "BUILD"; then
31169    # we come to this later
31170    :
31171  elif test "$use_lapack" != no; then
31172    use_lapack="$use_lapack $BLAS_LIBS"
31173    coin_save_LIBS="$LIBS"
31174    LIBS="$use_lapack $LIBS"
31175    if test "$F77" != unavailable; then
31176      echo "$as_me:$LINENO: checking whether user supplied LAPACKLIB=\"$use_lapack\" works" >&5
31177echo $ECHO_N "checking whether user supplied LAPACKLIB=\"$use_lapack\" works... $ECHO_C" >&6
31178      coin_need_flibs=no
31179      case $ac_ext in
31180  f)
31181    cat >conftest.$ac_ext <<_ACEOF
31182/* confdefs.h.  */
31183_ACEOF
31184cat confdefs.h >>conftest.$ac_ext
31185cat >>conftest.$ac_ext <<_ACEOF
31186/* end confdefs.h.  */
31187
31188#ifdef F77_DUMMY_MAIN
31189
31190#  ifdef __cplusplus
31191     extern "C"
31192#  endif
31193   int F77_DUMMY_MAIN() { return 1; }
31194
31195#endif
31196int
31197main ()
31198{
31199      call dsyev
31200  ;
31201  return 0;
31202}
31203_ACEOF
31204rm -f conftest.$ac_objext conftest$ac_exeext
31205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31206  (eval $ac_link) 2>conftest.er1
31207  ac_status=$?
31208  grep -v '^ *+' conftest.er1 >conftest.err
31209  rm -f conftest.er1
31210  cat conftest.err >&5
31211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212  (exit $ac_status); } &&
31213	 { ac_try='test -z "$ac_c_werror_flag"
31214			 || test ! -s conftest.err'
31215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31216  (eval $ac_try) 2>&5
31217  ac_status=$?
31218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219  (exit $ac_status); }; } &&
31220	 { ac_try='test -s conftest$ac_exeext'
31221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31222  (eval $ac_try) 2>&5
31223  ac_status=$?
31224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225  (exit $ac_status); }; }; then
31226  if test $coin_need_flibs = yes ; then
31227                           use_lapack="$use_lapack $FLIBS"
31228                         fi
31229                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
31230echo "${ECHO_T}yes: $use_lapack" >&6
31231
31232else
31233  echo "$as_me: failed program was:" >&5
31234sed 's/^/| /' conftest.$ac_ext >&5
31235
31236echo "$as_me:$LINENO: result: no" >&5
31237echo "${ECHO_T}no" >&6
31238                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
31239echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
31240   { (exit 1); exit 1; }; }
31241fi
31242rm -f conftest.err conftest.$ac_objext \
31243      conftest$ac_exeext conftest.$ac_ext
31244    ;;
31245  c)
31246    ac_ext=f
31247ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31248ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31249ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31250case $ac_cv_f77_mangling in
31251  upper*) ac_val="DSYEV" ;;
31252  lower*) ac_val="dsyev" ;;
31253  *)      ac_val="unknown" ;;
31254esac
31255case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31256
31257cfuncdsyev="$ac_val"
31258
31259ac_ext=c
31260ac_cpp='$CPP $CPPFLAGS'
31261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31263ac_compiler_gnu=$ac_cv_c_compiler_gnu
31264
31265    if test x"$coin_need_flibs" = xyes; then
31266      flink_try=no;
31267    else
31268      cat >conftest.$ac_ext <<_ACEOF
31269/* confdefs.h.  */
31270_ACEOF
31271cat confdefs.h >>conftest.$ac_ext
31272cat >>conftest.$ac_ext <<_ACEOF
31273/* end confdefs.h.  */
31274void $cfuncdsyev();
31275#ifdef F77_DUMMY_MAIN
31276
31277#  ifdef __cplusplus
31278     extern "C"
31279#  endif
31280   int F77_DUMMY_MAIN() { return 1; }
31281
31282#endif
31283int
31284main ()
31285{
31286$cfuncdsyev()
31287  ;
31288  return 0;
31289}
31290_ACEOF
31291rm -f conftest.$ac_objext conftest$ac_exeext
31292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31293  (eval $ac_link) 2>conftest.er1
31294  ac_status=$?
31295  grep -v '^ *+' conftest.er1 >conftest.err
31296  rm -f conftest.er1
31297  cat conftest.err >&5
31298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299  (exit $ac_status); } &&
31300	 { ac_try='test -z "$ac_c_werror_flag"
31301			 || test ! -s conftest.err'
31302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31303  (eval $ac_try) 2>&5
31304  ac_status=$?
31305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306  (exit $ac_status); }; } &&
31307	 { ac_try='test -s conftest$ac_exeext'
31308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31309  (eval $ac_try) 2>&5
31310  ac_status=$?
31311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312  (exit $ac_status); }; }; then
31313  flink_try=yes
31314else
31315  echo "$as_me: failed program was:" >&5
31316sed 's/^/| /' conftest.$ac_ext >&5
31317
31318flink_try=no
31319fi
31320rm -f conftest.err conftest.$ac_objext \
31321      conftest$ac_exeext conftest.$ac_ext
31322    fi
31323    if test $flink_try = yes; then
31324      if test $coin_need_flibs = yes ; then
31325                           use_lapack="$use_lapack $FLIBS"
31326                         fi
31327                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
31328echo "${ECHO_T}yes: $use_lapack" >&6
31329
31330    else
31331      if test x"$FLIBS" != x; then
31332        flink_save_libs="$LIBS"
31333        LIBS="$LIBS $FLIBS"
31334        cat >conftest.$ac_ext <<_ACEOF
31335/* confdefs.h.  */
31336_ACEOF
31337cat confdefs.h >>conftest.$ac_ext
31338cat >>conftest.$ac_ext <<_ACEOF
31339/* end confdefs.h.  */
31340void $cfuncdsyev();
31341#ifdef F77_DUMMY_MAIN
31342
31343#  ifdef __cplusplus
31344     extern "C"
31345#  endif
31346   int F77_DUMMY_MAIN() { return 1; }
31347
31348#endif
31349int
31350main ()
31351{
31352$cfuncdsyev()
31353  ;
31354  return 0;
31355}
31356_ACEOF
31357rm -f conftest.$ac_objext conftest$ac_exeext
31358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31359  (eval $ac_link) 2>conftest.er1
31360  ac_status=$?
31361  grep -v '^ *+' conftest.er1 >conftest.err
31362  rm -f conftest.er1
31363  cat conftest.err >&5
31364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365  (exit $ac_status); } &&
31366	 { ac_try='test -z "$ac_c_werror_flag"
31367			 || test ! -s conftest.err'
31368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369  (eval $ac_try) 2>&5
31370  ac_status=$?
31371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372  (exit $ac_status); }; } &&
31373	 { ac_try='test -s conftest$ac_exeext'
31374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31375  (eval $ac_try) 2>&5
31376  ac_status=$?
31377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378  (exit $ac_status); }; }; then
31379  LIBS="$flink_save_libs"
31380                     coin_need_flibs=yes
31381                     if test $coin_need_flibs = yes ; then
31382                           use_lapack="$use_lapack $FLIBS"
31383                         fi
31384                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
31385echo "${ECHO_T}yes: $use_lapack" >&6
31386
31387
31388else
31389  echo "$as_me: failed program was:" >&5
31390sed 's/^/| /' conftest.$ac_ext >&5
31391
31392LIBS="$flink_save_libs"
31393                     echo "$as_me:$LINENO: result: no" >&5
31394echo "${ECHO_T}no" >&6
31395                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
31396echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
31397   { (exit 1); exit 1; }; }
31398fi
31399rm -f conftest.err conftest.$ac_objext \
31400      conftest$ac_exeext conftest.$ac_ext
31401      else
31402        echo "$as_me:$LINENO: result: no" >&5
31403echo "${ECHO_T}no" >&6
31404                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
31405echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
31406   { (exit 1); exit 1; }; }
31407      fi
31408    fi
31409    ;;
31410  cc|cpp)
31411    ac_ext=f
31412ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31413ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31414ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31415case $ac_cv_f77_mangling in
31416  upper*) ac_val="DSYEV" ;;
31417  lower*) ac_val="dsyev" ;;
31418  *)      ac_val="unknown" ;;
31419esac
31420case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31421
31422cfuncdsyev="$ac_val"
31423
31424ac_ext=c
31425ac_cpp='$CPP $CPPFLAGS'
31426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31428ac_compiler_gnu=$ac_cv_c_compiler_gnu
31429
31430    if test x"$coin_need_flibs" = xyes; then
31431      flink_try=no;
31432    else
31433      cat >conftest.$ac_ext <<_ACEOF
31434/* confdefs.h.  */
31435_ACEOF
31436cat confdefs.h >>conftest.$ac_ext
31437cat >>conftest.$ac_ext <<_ACEOF
31438/* end confdefs.h.  */
31439extern "C" {void $cfuncdsyev();}
31440#ifdef F77_DUMMY_MAIN
31441
31442#  ifdef __cplusplus
31443     extern "C"
31444#  endif
31445   int F77_DUMMY_MAIN() { return 1; }
31446
31447#endif
31448int
31449main ()
31450{
31451$cfuncdsyev()
31452  ;
31453  return 0;
31454}
31455_ACEOF
31456rm -f conftest.$ac_objext conftest$ac_exeext
31457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31458  (eval $ac_link) 2>conftest.er1
31459  ac_status=$?
31460  grep -v '^ *+' conftest.er1 >conftest.err
31461  rm -f conftest.er1
31462  cat conftest.err >&5
31463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464  (exit $ac_status); } &&
31465	 { ac_try='test -z "$ac_c_werror_flag"
31466			 || test ! -s conftest.err'
31467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31468  (eval $ac_try) 2>&5
31469  ac_status=$?
31470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471  (exit $ac_status); }; } &&
31472	 { ac_try='test -s conftest$ac_exeext'
31473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474  (eval $ac_try) 2>&5
31475  ac_status=$?
31476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477  (exit $ac_status); }; }; then
31478  flink_try=yes
31479else
31480  echo "$as_me: failed program was:" >&5
31481sed 's/^/| /' conftest.$ac_ext >&5
31482
31483flink_try=no
31484fi
31485rm -f conftest.err conftest.$ac_objext \
31486      conftest$ac_exeext conftest.$ac_ext
31487    fi
31488    if test $flink_try = yes; then
31489      if test $coin_need_flibs = yes ; then
31490                           use_lapack="$use_lapack $FLIBS"
31491                         fi
31492                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
31493echo "${ECHO_T}yes: $use_lapack" >&6
31494
31495    else
31496      if test x"$FLIBS" != x; then
31497        flink_save_libs="$LIBS"
31498        LIBS="$LIBS $FLIBS"
31499        cat >conftest.$ac_ext <<_ACEOF
31500/* confdefs.h.  */
31501_ACEOF
31502cat confdefs.h >>conftest.$ac_ext
31503cat >>conftest.$ac_ext <<_ACEOF
31504/* end confdefs.h.  */
31505extern "C" {void $cfuncdsyev();}
31506#ifdef F77_DUMMY_MAIN
31507
31508#  ifdef __cplusplus
31509     extern "C"
31510#  endif
31511   int F77_DUMMY_MAIN() { return 1; }
31512
31513#endif
31514int
31515main ()
31516{
31517$cfuncdsyev()
31518  ;
31519  return 0;
31520}
31521_ACEOF
31522rm -f conftest.$ac_objext conftest$ac_exeext
31523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31524  (eval $ac_link) 2>conftest.er1
31525  ac_status=$?
31526  grep -v '^ *+' conftest.er1 >conftest.err
31527  rm -f conftest.er1
31528  cat conftest.err >&5
31529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530  (exit $ac_status); } &&
31531	 { ac_try='test -z "$ac_c_werror_flag"
31532			 || test ! -s conftest.err'
31533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31534  (eval $ac_try) 2>&5
31535  ac_status=$?
31536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537  (exit $ac_status); }; } &&
31538	 { ac_try='test -s conftest$ac_exeext'
31539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540  (eval $ac_try) 2>&5
31541  ac_status=$?
31542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543  (exit $ac_status); }; }; then
31544  LIBS="$flink_save_libs"
31545                     coin_need_flibs=yes
31546                     if test $coin_need_flibs = yes ; then
31547                           use_lapack="$use_lapack $FLIBS"
31548                         fi
31549                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
31550echo "${ECHO_T}yes: $use_lapack" >&6
31551
31552
31553else
31554  echo "$as_me: failed program was:" >&5
31555sed 's/^/| /' conftest.$ac_ext >&5
31556
31557LIBS="$flink_save_libs"
31558                     echo "$as_me:$LINENO: result: no" >&5
31559echo "${ECHO_T}no" >&6
31560                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
31561echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
31562   { (exit 1); exit 1; }; }
31563fi
31564rm -f conftest.err conftest.$ac_objext \
31565      conftest$ac_exeext conftest.$ac_ext
31566      else
31567        echo "$as_me:$LINENO: result: no" >&5
31568echo "${ECHO_T}no" >&6
31569                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
31570echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
31571   { (exit 1); exit 1; }; }
31572      fi
31573    fi
31574    ;;
31575esac
31576
31577    else
31578      { echo "$as_me:$LINENO: whether user supplied LAPACKLIB=\"$use_lapack\" works with C linkage" >&5
31579echo "$as_me: whether user supplied LAPACKLIB=\"$use_lapack\" works with C linkage" >&6;}
31580      ac_ext=c
31581ac_cpp='$CPP $CPPFLAGS'
31582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31584ac_compiler_gnu=$ac_cv_c_compiler_gnu
31585
31586      echo "$as_me:$LINENO: checking for dsyev" >&5
31587echo $ECHO_N "checking for dsyev... $ECHO_C" >&6
31588if test "${ac_cv_func_dsyev+set}" = set; then
31589  echo $ECHO_N "(cached) $ECHO_C" >&6
31590else
31591  cat >conftest.$ac_ext <<_ACEOF
31592/* confdefs.h.  */
31593_ACEOF
31594cat confdefs.h >>conftest.$ac_ext
31595cat >>conftest.$ac_ext <<_ACEOF
31596/* end confdefs.h.  */
31597/* Define dsyev to an innocuous variant, in case <limits.h> declares dsyev.
31598   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31599#define dsyev innocuous_dsyev
31600
31601/* System header to define __stub macros and hopefully few prototypes,
31602    which can conflict with char dsyev (); below.
31603    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31604    <limits.h> exists even on freestanding compilers.  */
31605
31606#ifdef __STDC__
31607# include <limits.h>
31608#else
31609# include <assert.h>
31610#endif
31611
31612#undef dsyev
31613
31614/* Override any gcc2 internal prototype to avoid an error.  */
31615#ifdef __cplusplus
31616extern "C"
31617{
31618#endif
31619/* We use char because int might match the return type of a gcc2
31620   builtin and then its argument prototype would still apply.  */
31621char dsyev ();
31622/* The GNU C library defines this for functions which it implements
31623    to always fail with ENOSYS.  Some functions are actually named
31624    something starting with __ and the normal name is an alias.  */
31625#if defined (__stub_dsyev) || defined (__stub___dsyev)
31626choke me
31627#else
31628char (*f) () = dsyev;
31629#endif
31630#ifdef __cplusplus
31631}
31632#endif
31633
31634#ifdef F77_DUMMY_MAIN
31635
31636#  ifdef __cplusplus
31637     extern "C"
31638#  endif
31639   int F77_DUMMY_MAIN() { return 1; }
31640
31641#endif
31642int
31643main ()
31644{
31645return f != dsyev;
31646  ;
31647  return 0;
31648}
31649_ACEOF
31650rm -f conftest.$ac_objext conftest$ac_exeext
31651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31652  (eval $ac_link) 2>conftest.er1
31653  ac_status=$?
31654  grep -v '^ *+' conftest.er1 >conftest.err
31655  rm -f conftest.er1
31656  cat conftest.err >&5
31657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658  (exit $ac_status); } &&
31659	 { ac_try='test -z "$ac_c_werror_flag"
31660			 || test ! -s conftest.err'
31661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31662  (eval $ac_try) 2>&5
31663  ac_status=$?
31664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665  (exit $ac_status); }; } &&
31666	 { ac_try='test -s conftest$ac_exeext'
31667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668  (eval $ac_try) 2>&5
31669  ac_status=$?
31670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671  (exit $ac_status); }; }; then
31672  ac_cv_func_dsyev=yes
31673else
31674  echo "$as_me: failed program was:" >&5
31675sed 's/^/| /' conftest.$ac_ext >&5
31676
31677ac_cv_func_dsyev=no
31678fi
31679rm -f conftest.err conftest.$ac_objext \
31680      conftest$ac_exeext conftest.$ac_ext
31681fi
31682echo "$as_me:$LINENO: result: $ac_cv_func_dsyev" >&5
31683echo "${ECHO_T}$ac_cv_func_dsyev" >&6
31684if test $ac_cv_func_dsyev = yes; then
31685  :
31686else
31687  { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
31688echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
31689   { (exit 1); exit 1; }; }
31690fi
31691
31692      ac_ext=c
31693ac_cpp='$CPP $CPPFLAGS'
31694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31696ac_compiler_gnu=$ac_cv_c_compiler_gnu
31697
31698    fi
31699    LIBS="$coin_save_LIBS"
31700  fi
31701else
31702  if test x$coin_has_blas = xyes; then
31703    # First try to see if LAPACK is already available with BLAS library
31704    coin_save_LIBS="$LIBS"
31705    LIBS="$BLAS_LIBS $LIBS"
31706    if test "$F77" != unavailable; then
31707      coin_need_flibs=no
31708      echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5
31709echo $ECHO_N "checking whether LAPACK is already available with BLAS library... $ECHO_C" >&6
31710      case $ac_ext in
31711  f)
31712    cat >conftest.$ac_ext <<_ACEOF
31713/* confdefs.h.  */
31714_ACEOF
31715cat confdefs.h >>conftest.$ac_ext
31716cat >>conftest.$ac_ext <<_ACEOF
31717/* end confdefs.h.  */
31718
31719#ifdef F77_DUMMY_MAIN
31720
31721#  ifdef __cplusplus
31722     extern "C"
31723#  endif
31724   int F77_DUMMY_MAIN() { return 1; }
31725
31726#endif
31727int
31728main ()
31729{
31730      call dsyev
31731  ;
31732  return 0;
31733}
31734_ACEOF
31735rm -f conftest.$ac_objext conftest$ac_exeext
31736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31737  (eval $ac_link) 2>conftest.er1
31738  ac_status=$?
31739  grep -v '^ *+' conftest.er1 >conftest.err
31740  rm -f conftest.er1
31741  cat conftest.err >&5
31742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743  (exit $ac_status); } &&
31744	 { ac_try='test -z "$ac_c_werror_flag"
31745			 || test ! -s conftest.err'
31746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31747  (eval $ac_try) 2>&5
31748  ac_status=$?
31749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750  (exit $ac_status); }; } &&
31751	 { ac_try='test -s conftest$ac_exeext'
31752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753  (eval $ac_try) 2>&5
31754  ac_status=$?
31755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756  (exit $ac_status); }; }; then
31757  use_lapack="$BLAS_LIBS"
31758                         if test $coin_need_flibs = yes ; then
31759                           use_lapack="$use_lapack $FLIBS"
31760                         fi
31761                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
31762echo "${ECHO_T}yes: $use_lapack" >&6
31763
31764else
31765  echo "$as_me: failed program was:" >&5
31766sed 's/^/| /' conftest.$ac_ext >&5
31767
31768echo "$as_me:$LINENO: result: no" >&5
31769echo "${ECHO_T}no" >&6
31770fi
31771rm -f conftest.err conftest.$ac_objext \
31772      conftest$ac_exeext conftest.$ac_ext
31773    ;;
31774  c)
31775    ac_ext=f
31776ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31777ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31778ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31779case $ac_cv_f77_mangling in
31780  upper*) ac_val="DSYEV" ;;
31781  lower*) ac_val="dsyev" ;;
31782  *)      ac_val="unknown" ;;
31783esac
31784case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31785
31786cfuncdsyev="$ac_val"
31787
31788ac_ext=c
31789ac_cpp='$CPP $CPPFLAGS'
31790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31792ac_compiler_gnu=$ac_cv_c_compiler_gnu
31793
31794    if test x"$coin_need_flibs" = xyes; then
31795      flink_try=no;
31796    else
31797      cat >conftest.$ac_ext <<_ACEOF
31798/* confdefs.h.  */
31799_ACEOF
31800cat confdefs.h >>conftest.$ac_ext
31801cat >>conftest.$ac_ext <<_ACEOF
31802/* end confdefs.h.  */
31803void $cfuncdsyev();
31804#ifdef F77_DUMMY_MAIN
31805
31806#  ifdef __cplusplus
31807     extern "C"
31808#  endif
31809   int F77_DUMMY_MAIN() { return 1; }
31810
31811#endif
31812int
31813main ()
31814{
31815$cfuncdsyev()
31816  ;
31817  return 0;
31818}
31819_ACEOF
31820rm -f conftest.$ac_objext conftest$ac_exeext
31821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31822  (eval $ac_link) 2>conftest.er1
31823  ac_status=$?
31824  grep -v '^ *+' conftest.er1 >conftest.err
31825  rm -f conftest.er1
31826  cat conftest.err >&5
31827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828  (exit $ac_status); } &&
31829	 { ac_try='test -z "$ac_c_werror_flag"
31830			 || test ! -s conftest.err'
31831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31832  (eval $ac_try) 2>&5
31833  ac_status=$?
31834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835  (exit $ac_status); }; } &&
31836	 { ac_try='test -s conftest$ac_exeext'
31837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31838  (eval $ac_try) 2>&5
31839  ac_status=$?
31840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841  (exit $ac_status); }; }; then
31842  flink_try=yes
31843else
31844  echo "$as_me: failed program was:" >&5
31845sed 's/^/| /' conftest.$ac_ext >&5
31846
31847flink_try=no
31848fi
31849rm -f conftest.err conftest.$ac_objext \
31850      conftest$ac_exeext conftest.$ac_ext
31851    fi
31852    if test $flink_try = yes; then
31853      use_lapack="$BLAS_LIBS"
31854                         if test $coin_need_flibs = yes ; then
31855                           use_lapack="$use_lapack $FLIBS"
31856                         fi
31857                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
31858echo "${ECHO_T}yes: $use_lapack" >&6
31859
31860    else
31861      if test x"$FLIBS" != x; then
31862        flink_save_libs="$LIBS"
31863        LIBS="$LIBS $FLIBS"
31864        cat >conftest.$ac_ext <<_ACEOF
31865/* confdefs.h.  */
31866_ACEOF
31867cat confdefs.h >>conftest.$ac_ext
31868cat >>conftest.$ac_ext <<_ACEOF
31869/* end confdefs.h.  */
31870void $cfuncdsyev();
31871#ifdef F77_DUMMY_MAIN
31872
31873#  ifdef __cplusplus
31874     extern "C"
31875#  endif
31876   int F77_DUMMY_MAIN() { return 1; }
31877
31878#endif
31879int
31880main ()
31881{
31882$cfuncdsyev()
31883  ;
31884  return 0;
31885}
31886_ACEOF
31887rm -f conftest.$ac_objext conftest$ac_exeext
31888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31889  (eval $ac_link) 2>conftest.er1
31890  ac_status=$?
31891  grep -v '^ *+' conftest.er1 >conftest.err
31892  rm -f conftest.er1
31893  cat conftest.err >&5
31894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895  (exit $ac_status); } &&
31896	 { ac_try='test -z "$ac_c_werror_flag"
31897			 || test ! -s conftest.err'
31898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31899  (eval $ac_try) 2>&5
31900  ac_status=$?
31901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902  (exit $ac_status); }; } &&
31903	 { ac_try='test -s conftest$ac_exeext'
31904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31905  (eval $ac_try) 2>&5
31906  ac_status=$?
31907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908  (exit $ac_status); }; }; then
31909  LIBS="$flink_save_libs"
31910                     coin_need_flibs=yes
31911                     use_lapack="$BLAS_LIBS"
31912                         if test $coin_need_flibs = yes ; then
31913                           use_lapack="$use_lapack $FLIBS"
31914                         fi
31915                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
31916echo "${ECHO_T}yes: $use_lapack" >&6
31917
31918
31919else
31920  echo "$as_me: failed program was:" >&5
31921sed 's/^/| /' conftest.$ac_ext >&5
31922
31923LIBS="$flink_save_libs"
31924                     echo "$as_me:$LINENO: result: no" >&5
31925echo "${ECHO_T}no" >&6
31926fi
31927rm -f conftest.err conftest.$ac_objext \
31928      conftest$ac_exeext conftest.$ac_ext
31929      else
31930        echo "$as_me:$LINENO: result: no" >&5
31931echo "${ECHO_T}no" >&6
31932      fi
31933    fi
31934    ;;
31935  cc|cpp)
31936    ac_ext=f
31937ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31938ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31939ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31940case $ac_cv_f77_mangling in
31941  upper*) ac_val="DSYEV" ;;
31942  lower*) ac_val="dsyev" ;;
31943  *)      ac_val="unknown" ;;
31944esac
31945case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31946
31947cfuncdsyev="$ac_val"
31948
31949ac_ext=c
31950ac_cpp='$CPP $CPPFLAGS'
31951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31953ac_compiler_gnu=$ac_cv_c_compiler_gnu
31954
31955    if test x"$coin_need_flibs" = xyes; then
31956      flink_try=no;
31957    else
31958      cat >conftest.$ac_ext <<_ACEOF
31959/* confdefs.h.  */
31960_ACEOF
31961cat confdefs.h >>conftest.$ac_ext
31962cat >>conftest.$ac_ext <<_ACEOF
31963/* end confdefs.h.  */
31964extern "C" {void $cfuncdsyev();}
31965#ifdef F77_DUMMY_MAIN
31966
31967#  ifdef __cplusplus
31968     extern "C"
31969#  endif
31970   int F77_DUMMY_MAIN() { return 1; }
31971
31972#endif
31973int
31974main ()
31975{
31976$cfuncdsyev()
31977  ;
31978  return 0;
31979}
31980_ACEOF
31981rm -f conftest.$ac_objext conftest$ac_exeext
31982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31983  (eval $ac_link) 2>conftest.er1
31984  ac_status=$?
31985  grep -v '^ *+' conftest.er1 >conftest.err
31986  rm -f conftest.er1
31987  cat conftest.err >&5
31988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989  (exit $ac_status); } &&
31990	 { ac_try='test -z "$ac_c_werror_flag"
31991			 || test ! -s conftest.err'
31992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31993  (eval $ac_try) 2>&5
31994  ac_status=$?
31995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996  (exit $ac_status); }; } &&
31997	 { ac_try='test -s conftest$ac_exeext'
31998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31999  (eval $ac_try) 2>&5
32000  ac_status=$?
32001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002  (exit $ac_status); }; }; then
32003  flink_try=yes
32004else
32005  echo "$as_me: failed program was:" >&5
32006sed 's/^/| /' conftest.$ac_ext >&5
32007
32008flink_try=no
32009fi
32010rm -f conftest.err conftest.$ac_objext \
32011      conftest$ac_exeext conftest.$ac_ext
32012    fi
32013    if test $flink_try = yes; then
32014      use_lapack="$BLAS_LIBS"
32015                         if test $coin_need_flibs = yes ; then
32016                           use_lapack="$use_lapack $FLIBS"
32017                         fi
32018                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32019echo "${ECHO_T}yes: $use_lapack" >&6
32020
32021    else
32022      if test x"$FLIBS" != x; then
32023        flink_save_libs="$LIBS"
32024        LIBS="$LIBS $FLIBS"
32025        cat >conftest.$ac_ext <<_ACEOF
32026/* confdefs.h.  */
32027_ACEOF
32028cat confdefs.h >>conftest.$ac_ext
32029cat >>conftest.$ac_ext <<_ACEOF
32030/* end confdefs.h.  */
32031extern "C" {void $cfuncdsyev();}
32032#ifdef F77_DUMMY_MAIN
32033
32034#  ifdef __cplusplus
32035     extern "C"
32036#  endif
32037   int F77_DUMMY_MAIN() { return 1; }
32038
32039#endif
32040int
32041main ()
32042{
32043$cfuncdsyev()
32044  ;
32045  return 0;
32046}
32047_ACEOF
32048rm -f conftest.$ac_objext conftest$ac_exeext
32049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32050  (eval $ac_link) 2>conftest.er1
32051  ac_status=$?
32052  grep -v '^ *+' conftest.er1 >conftest.err
32053  rm -f conftest.er1
32054  cat conftest.err >&5
32055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056  (exit $ac_status); } &&
32057	 { ac_try='test -z "$ac_c_werror_flag"
32058			 || test ! -s conftest.err'
32059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060  (eval $ac_try) 2>&5
32061  ac_status=$?
32062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063  (exit $ac_status); }; } &&
32064	 { ac_try='test -s conftest$ac_exeext'
32065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066  (eval $ac_try) 2>&5
32067  ac_status=$?
32068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069  (exit $ac_status); }; }; then
32070  LIBS="$flink_save_libs"
32071                     coin_need_flibs=yes
32072                     use_lapack="$BLAS_LIBS"
32073                         if test $coin_need_flibs = yes ; then
32074                           use_lapack="$use_lapack $FLIBS"
32075                         fi
32076                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32077echo "${ECHO_T}yes: $use_lapack" >&6
32078
32079
32080else
32081  echo "$as_me: failed program was:" >&5
32082sed 's/^/| /' conftest.$ac_ext >&5
32083
32084LIBS="$flink_save_libs"
32085                     echo "$as_me:$LINENO: result: no" >&5
32086echo "${ECHO_T}no" >&6
32087fi
32088rm -f conftest.err conftest.$ac_objext \
32089      conftest$ac_exeext conftest.$ac_ext
32090      else
32091        echo "$as_me:$LINENO: result: no" >&5
32092echo "${ECHO_T}no" >&6
32093      fi
32094    fi
32095    ;;
32096esac
32097
32098    else
32099      { echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5
32100echo "$as_me: checking whether LAPACK is already available with BLAS library" >&6;}
32101      ac_ext=c
32102ac_cpp='$CPP $CPPFLAGS'
32103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32105ac_compiler_gnu=$ac_cv_c_compiler_gnu
32106
32107      echo "$as_me:$LINENO: checking for dsyev" >&5
32108echo $ECHO_N "checking for dsyev... $ECHO_C" >&6
32109if test "${ac_cv_func_dsyev+set}" = set; then
32110  echo $ECHO_N "(cached) $ECHO_C" >&6
32111else
32112  cat >conftest.$ac_ext <<_ACEOF
32113/* confdefs.h.  */
32114_ACEOF
32115cat confdefs.h >>conftest.$ac_ext
32116cat >>conftest.$ac_ext <<_ACEOF
32117/* end confdefs.h.  */
32118/* Define dsyev to an innocuous variant, in case <limits.h> declares dsyev.
32119   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32120#define dsyev innocuous_dsyev
32121
32122/* System header to define __stub macros and hopefully few prototypes,
32123    which can conflict with char dsyev (); below.
32124    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32125    <limits.h> exists even on freestanding compilers.  */
32126
32127#ifdef __STDC__
32128# include <limits.h>
32129#else
32130# include <assert.h>
32131#endif
32132
32133#undef dsyev
32134
32135/* Override any gcc2 internal prototype to avoid an error.  */
32136#ifdef __cplusplus
32137extern "C"
32138{
32139#endif
32140/* We use char because int might match the return type of a gcc2
32141   builtin and then its argument prototype would still apply.  */
32142char dsyev ();
32143/* The GNU C library defines this for functions which it implements
32144    to always fail with ENOSYS.  Some functions are actually named
32145    something starting with __ and the normal name is an alias.  */
32146#if defined (__stub_dsyev) || defined (__stub___dsyev)
32147choke me
32148#else
32149char (*f) () = dsyev;
32150#endif
32151#ifdef __cplusplus
32152}
32153#endif
32154
32155#ifdef F77_DUMMY_MAIN
32156
32157#  ifdef __cplusplus
32158     extern "C"
32159#  endif
32160   int F77_DUMMY_MAIN() { return 1; }
32161
32162#endif
32163int
32164main ()
32165{
32166return f != dsyev;
32167  ;
32168  return 0;
32169}
32170_ACEOF
32171rm -f conftest.$ac_objext conftest$ac_exeext
32172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32173  (eval $ac_link) 2>conftest.er1
32174  ac_status=$?
32175  grep -v '^ *+' conftest.er1 >conftest.err
32176  rm -f conftest.er1
32177  cat conftest.err >&5
32178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179  (exit $ac_status); } &&
32180	 { ac_try='test -z "$ac_c_werror_flag"
32181			 || test ! -s conftest.err'
32182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32183  (eval $ac_try) 2>&5
32184  ac_status=$?
32185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186  (exit $ac_status); }; } &&
32187	 { ac_try='test -s conftest$ac_exeext'
32188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32189  (eval $ac_try) 2>&5
32190  ac_status=$?
32191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192  (exit $ac_status); }; }; then
32193  ac_cv_func_dsyev=yes
32194else
32195  echo "$as_me: failed program was:" >&5
32196sed 's/^/| /' conftest.$ac_ext >&5
32197
32198ac_cv_func_dsyev=no
32199fi
32200rm -f conftest.err conftest.$ac_objext \
32201      conftest$ac_exeext conftest.$ac_ext
32202fi
32203echo "$as_me:$LINENO: result: $ac_cv_func_dsyev" >&5
32204echo "${ECHO_T}$ac_cv_func_dsyev" >&6
32205if test $ac_cv_func_dsyev = yes; then
32206  use_lapack="$BLAS_LIBS"
32207fi
32208
32209      ac_ext=c
32210ac_cpp='$CPP $CPPFLAGS'
32211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32213ac_compiler_gnu=$ac_cv_c_compiler_gnu
32214
32215    fi
32216    LIBS="$coin_save_LIBS"
32217  fi
32218  if test -z "$use_lapack"; then
32219    # Try to autodetect the library for lapack based on build system
32220    case $build in
32221      # TODO: Is this check actually needed here, since -lcomplib.sigmath should have been recognized as Blas library,
32222      #       and above it is checked whether the Blas library already contains Lapack
32223      *-sgi-*)
32224        echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has LAPACK" >&5
32225echo $ECHO_N "checking whether -lcomplib.sgimath has LAPACK... $ECHO_C" >&6
32226        coin_save_LIBS="$LIBS"
32227        coin_need_flibs=no
32228        LIBS="-lcomplib.sgimath $BLAS_LIBS $LIBS"
32229        case $ac_ext in
32230  f)
32231    cat >conftest.$ac_ext <<_ACEOF
32232/* confdefs.h.  */
32233_ACEOF
32234cat confdefs.h >>conftest.$ac_ext
32235cat >>conftest.$ac_ext <<_ACEOF
32236/* end confdefs.h.  */
32237
32238#ifdef F77_DUMMY_MAIN
32239
32240#  ifdef __cplusplus
32241     extern "C"
32242#  endif
32243   int F77_DUMMY_MAIN() { return 1; }
32244
32245#endif
32246int
32247main ()
32248{
32249      call dsyev
32250  ;
32251  return 0;
32252}
32253_ACEOF
32254rm -f conftest.$ac_objext conftest$ac_exeext
32255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32256  (eval $ac_link) 2>conftest.er1
32257  ac_status=$?
32258  grep -v '^ *+' conftest.er1 >conftest.err
32259  rm -f conftest.er1
32260  cat conftest.err >&5
32261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262  (exit $ac_status); } &&
32263	 { ac_try='test -z "$ac_c_werror_flag"
32264			 || test ! -s conftest.err'
32265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266  (eval $ac_try) 2>&5
32267  ac_status=$?
32268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269  (exit $ac_status); }; } &&
32270	 { ac_try='test -s conftest$ac_exeext'
32271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32272  (eval $ac_try) 2>&5
32273  ac_status=$?
32274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275  (exit $ac_status); }; }; then
32276  use_lapack="-lcomplib.sgimath $BLAS_LIBS"
32277                           if test $coin_need_flibs = yes ; then
32278                             use_lapack="$use_lapack $FLIBS"
32279                           fi
32280                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32281echo "${ECHO_T}yes: $use_lapack" >&6
32282
32283else
32284  echo "$as_me: failed program was:" >&5
32285sed 's/^/| /' conftest.$ac_ext >&5
32286
32287echo "$as_me:$LINENO: result: no" >&5
32288echo "${ECHO_T}no" >&6
32289fi
32290rm -f conftest.err conftest.$ac_objext \
32291      conftest$ac_exeext conftest.$ac_ext
32292    ;;
32293  c)
32294    ac_ext=f
32295ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32296ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32297ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32298case $ac_cv_f77_mangling in
32299  upper*) ac_val="DSYEV" ;;
32300  lower*) ac_val="dsyev" ;;
32301  *)      ac_val="unknown" ;;
32302esac
32303case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32304
32305cfuncdsyev="$ac_val"
32306
32307ac_ext=c
32308ac_cpp='$CPP $CPPFLAGS'
32309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32311ac_compiler_gnu=$ac_cv_c_compiler_gnu
32312
32313    if test x"$coin_need_flibs" = xyes; then
32314      flink_try=no;
32315    else
32316      cat >conftest.$ac_ext <<_ACEOF
32317/* confdefs.h.  */
32318_ACEOF
32319cat confdefs.h >>conftest.$ac_ext
32320cat >>conftest.$ac_ext <<_ACEOF
32321/* end confdefs.h.  */
32322void $cfuncdsyev();
32323#ifdef F77_DUMMY_MAIN
32324
32325#  ifdef __cplusplus
32326     extern "C"
32327#  endif
32328   int F77_DUMMY_MAIN() { return 1; }
32329
32330#endif
32331int
32332main ()
32333{
32334$cfuncdsyev()
32335  ;
32336  return 0;
32337}
32338_ACEOF
32339rm -f conftest.$ac_objext conftest$ac_exeext
32340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32341  (eval $ac_link) 2>conftest.er1
32342  ac_status=$?
32343  grep -v '^ *+' conftest.er1 >conftest.err
32344  rm -f conftest.er1
32345  cat conftest.err >&5
32346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347  (exit $ac_status); } &&
32348	 { ac_try='test -z "$ac_c_werror_flag"
32349			 || test ! -s conftest.err'
32350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32351  (eval $ac_try) 2>&5
32352  ac_status=$?
32353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354  (exit $ac_status); }; } &&
32355	 { ac_try='test -s conftest$ac_exeext'
32356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32357  (eval $ac_try) 2>&5
32358  ac_status=$?
32359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360  (exit $ac_status); }; }; then
32361  flink_try=yes
32362else
32363  echo "$as_me: failed program was:" >&5
32364sed 's/^/| /' conftest.$ac_ext >&5
32365
32366flink_try=no
32367fi
32368rm -f conftest.err conftest.$ac_objext \
32369      conftest$ac_exeext conftest.$ac_ext
32370    fi
32371    if test $flink_try = yes; then
32372      use_lapack="-lcomplib.sgimath $BLAS_LIBS"
32373                           if test $coin_need_flibs = yes ; then
32374                             use_lapack="$use_lapack $FLIBS"
32375                           fi
32376                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32377echo "${ECHO_T}yes: $use_lapack" >&6
32378
32379    else
32380      if test x"$FLIBS" != x; then
32381        flink_save_libs="$LIBS"
32382        LIBS="$LIBS $FLIBS"
32383        cat >conftest.$ac_ext <<_ACEOF
32384/* confdefs.h.  */
32385_ACEOF
32386cat confdefs.h >>conftest.$ac_ext
32387cat >>conftest.$ac_ext <<_ACEOF
32388/* end confdefs.h.  */
32389void $cfuncdsyev();
32390#ifdef F77_DUMMY_MAIN
32391
32392#  ifdef __cplusplus
32393     extern "C"
32394#  endif
32395   int F77_DUMMY_MAIN() { return 1; }
32396
32397#endif
32398int
32399main ()
32400{
32401$cfuncdsyev()
32402  ;
32403  return 0;
32404}
32405_ACEOF
32406rm -f conftest.$ac_objext conftest$ac_exeext
32407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32408  (eval $ac_link) 2>conftest.er1
32409  ac_status=$?
32410  grep -v '^ *+' conftest.er1 >conftest.err
32411  rm -f conftest.er1
32412  cat conftest.err >&5
32413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414  (exit $ac_status); } &&
32415	 { ac_try='test -z "$ac_c_werror_flag"
32416			 || test ! -s conftest.err'
32417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32418  (eval $ac_try) 2>&5
32419  ac_status=$?
32420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421  (exit $ac_status); }; } &&
32422	 { ac_try='test -s conftest$ac_exeext'
32423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32424  (eval $ac_try) 2>&5
32425  ac_status=$?
32426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427  (exit $ac_status); }; }; then
32428  LIBS="$flink_save_libs"
32429                     coin_need_flibs=yes
32430                     use_lapack="-lcomplib.sgimath $BLAS_LIBS"
32431                           if test $coin_need_flibs = yes ; then
32432                             use_lapack="$use_lapack $FLIBS"
32433                           fi
32434                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32435echo "${ECHO_T}yes: $use_lapack" >&6
32436
32437
32438else
32439  echo "$as_me: failed program was:" >&5
32440sed 's/^/| /' conftest.$ac_ext >&5
32441
32442LIBS="$flink_save_libs"
32443                     echo "$as_me:$LINENO: result: no" >&5
32444echo "${ECHO_T}no" >&6
32445fi
32446rm -f conftest.err conftest.$ac_objext \
32447      conftest$ac_exeext conftest.$ac_ext
32448      else
32449        echo "$as_me:$LINENO: result: no" >&5
32450echo "${ECHO_T}no" >&6
32451      fi
32452    fi
32453    ;;
32454  cc|cpp)
32455    ac_ext=f
32456ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32457ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32458ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32459case $ac_cv_f77_mangling in
32460  upper*) ac_val="DSYEV" ;;
32461  lower*) ac_val="dsyev" ;;
32462  *)      ac_val="unknown" ;;
32463esac
32464case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32465
32466cfuncdsyev="$ac_val"
32467
32468ac_ext=c
32469ac_cpp='$CPP $CPPFLAGS'
32470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472ac_compiler_gnu=$ac_cv_c_compiler_gnu
32473
32474    if test x"$coin_need_flibs" = xyes; then
32475      flink_try=no;
32476    else
32477      cat >conftest.$ac_ext <<_ACEOF
32478/* confdefs.h.  */
32479_ACEOF
32480cat confdefs.h >>conftest.$ac_ext
32481cat >>conftest.$ac_ext <<_ACEOF
32482/* end confdefs.h.  */
32483extern "C" {void $cfuncdsyev();}
32484#ifdef F77_DUMMY_MAIN
32485
32486#  ifdef __cplusplus
32487     extern "C"
32488#  endif
32489   int F77_DUMMY_MAIN() { return 1; }
32490
32491#endif
32492int
32493main ()
32494{
32495$cfuncdsyev()
32496  ;
32497  return 0;
32498}
32499_ACEOF
32500rm -f conftest.$ac_objext conftest$ac_exeext
32501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32502  (eval $ac_link) 2>conftest.er1
32503  ac_status=$?
32504  grep -v '^ *+' conftest.er1 >conftest.err
32505  rm -f conftest.er1
32506  cat conftest.err >&5
32507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508  (exit $ac_status); } &&
32509	 { ac_try='test -z "$ac_c_werror_flag"
32510			 || test ! -s conftest.err'
32511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512  (eval $ac_try) 2>&5
32513  ac_status=$?
32514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515  (exit $ac_status); }; } &&
32516	 { ac_try='test -s conftest$ac_exeext'
32517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32518  (eval $ac_try) 2>&5
32519  ac_status=$?
32520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521  (exit $ac_status); }; }; then
32522  flink_try=yes
32523else
32524  echo "$as_me: failed program was:" >&5
32525sed 's/^/| /' conftest.$ac_ext >&5
32526
32527flink_try=no
32528fi
32529rm -f conftest.err conftest.$ac_objext \
32530      conftest$ac_exeext conftest.$ac_ext
32531    fi
32532    if test $flink_try = yes; then
32533      use_lapack="-lcomplib.sgimath $BLAS_LIBS"
32534                           if test $coin_need_flibs = yes ; then
32535                             use_lapack="$use_lapack $FLIBS"
32536                           fi
32537                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32538echo "${ECHO_T}yes: $use_lapack" >&6
32539
32540    else
32541      if test x"$FLIBS" != x; then
32542        flink_save_libs="$LIBS"
32543        LIBS="$LIBS $FLIBS"
32544        cat >conftest.$ac_ext <<_ACEOF
32545/* confdefs.h.  */
32546_ACEOF
32547cat confdefs.h >>conftest.$ac_ext
32548cat >>conftest.$ac_ext <<_ACEOF
32549/* end confdefs.h.  */
32550extern "C" {void $cfuncdsyev();}
32551#ifdef F77_DUMMY_MAIN
32552
32553#  ifdef __cplusplus
32554     extern "C"
32555#  endif
32556   int F77_DUMMY_MAIN() { return 1; }
32557
32558#endif
32559int
32560main ()
32561{
32562$cfuncdsyev()
32563  ;
32564  return 0;
32565}
32566_ACEOF
32567rm -f conftest.$ac_objext conftest$ac_exeext
32568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32569  (eval $ac_link) 2>conftest.er1
32570  ac_status=$?
32571  grep -v '^ *+' conftest.er1 >conftest.err
32572  rm -f conftest.er1
32573  cat conftest.err >&5
32574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575  (exit $ac_status); } &&
32576	 { ac_try='test -z "$ac_c_werror_flag"
32577			 || test ! -s conftest.err'
32578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32579  (eval $ac_try) 2>&5
32580  ac_status=$?
32581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582  (exit $ac_status); }; } &&
32583	 { ac_try='test -s conftest$ac_exeext'
32584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585  (eval $ac_try) 2>&5
32586  ac_status=$?
32587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588  (exit $ac_status); }; }; then
32589  LIBS="$flink_save_libs"
32590                     coin_need_flibs=yes
32591                     use_lapack="-lcomplib.sgimath $BLAS_LIBS"
32592                           if test $coin_need_flibs = yes ; then
32593                             use_lapack="$use_lapack $FLIBS"
32594                           fi
32595                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32596echo "${ECHO_T}yes: $use_lapack" >&6
32597
32598
32599else
32600  echo "$as_me: failed program was:" >&5
32601sed 's/^/| /' conftest.$ac_ext >&5
32602
32603LIBS="$flink_save_libs"
32604                     echo "$as_me:$LINENO: result: no" >&5
32605echo "${ECHO_T}no" >&6
32606fi
32607rm -f conftest.err conftest.$ac_objext \
32608      conftest$ac_exeext conftest.$ac_ext
32609      else
32610        echo "$as_me:$LINENO: result: no" >&5
32611echo "${ECHO_T}no" >&6
32612      fi
32613    fi
32614    ;;
32615esac
32616
32617        LIBS="$coin_save_LIBS"
32618        ;;
32619
32620      # See comments in COIN_CHECK_PACKAGE_BLAS.
32621      # TODO: Is this check actually needed here, since -lsunperf should have been recognized as Blas library,
32622      #       and above it is checked whether the Blas library already contains Lapack
32623      *-*-solaris*)
32624        echo "$as_me:$LINENO: checking for LAPACK in libsunperf" >&5
32625echo $ECHO_N "checking for LAPACK in libsunperf... $ECHO_C" >&6
32626        coin_need_flibs=no
32627        coin_save_LIBS="$LIBS"
32628        LIBS="-lsunperf $BLAS_LIBS $FLIBS $LIBS"
32629        case $ac_ext in
32630  f)
32631    cat >conftest.$ac_ext <<_ACEOF
32632/* confdefs.h.  */
32633_ACEOF
32634cat confdefs.h >>conftest.$ac_ext
32635cat >>conftest.$ac_ext <<_ACEOF
32636/* end confdefs.h.  */
32637
32638#ifdef F77_DUMMY_MAIN
32639
32640#  ifdef __cplusplus
32641     extern "C"
32642#  endif
32643   int F77_DUMMY_MAIN() { return 1; }
32644
32645#endif
32646int
32647main ()
32648{
32649      call dsyev
32650  ;
32651  return 0;
32652}
32653_ACEOF
32654rm -f conftest.$ac_objext conftest$ac_exeext
32655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32656  (eval $ac_link) 2>conftest.er1
32657  ac_status=$?
32658  grep -v '^ *+' conftest.er1 >conftest.err
32659  rm -f conftest.er1
32660  cat conftest.err >&5
32661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662  (exit $ac_status); } &&
32663	 { ac_try='test -z "$ac_c_werror_flag"
32664			 || test ! -s conftest.err'
32665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32666  (eval $ac_try) 2>&5
32667  ac_status=$?
32668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669  (exit $ac_status); }; } &&
32670	 { ac_try='test -s conftest$ac_exeext'
32671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32672  (eval $ac_try) 2>&5
32673  ac_status=$?
32674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675  (exit $ac_status); }; }; then
32676  use_lapack='-lsunperf $BLAS_LIBS'
32677                           if test $coin_need_flibs = yes ; then
32678                             use_lapack="$use_lapack $FLIBS"
32679                           fi
32680                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32681echo "${ECHO_T}yes: $use_lapack" >&6
32682
32683else
32684  echo "$as_me: failed program was:" >&5
32685sed 's/^/| /' conftest.$ac_ext >&5
32686
32687echo "$as_me:$LINENO: result: no" >&5
32688echo "${ECHO_T}no" >&6
32689fi
32690rm -f conftest.err conftest.$ac_objext \
32691      conftest$ac_exeext conftest.$ac_ext
32692    ;;
32693  c)
32694    ac_ext=f
32695ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32696ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32697ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32698case $ac_cv_f77_mangling in
32699  upper*) ac_val="DSYEV" ;;
32700  lower*) ac_val="dsyev" ;;
32701  *)      ac_val="unknown" ;;
32702esac
32703case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32704
32705cfuncdsyev="$ac_val"
32706
32707ac_ext=c
32708ac_cpp='$CPP $CPPFLAGS'
32709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32711ac_compiler_gnu=$ac_cv_c_compiler_gnu
32712
32713    if test x"$coin_need_flibs" = xyes; then
32714      flink_try=no;
32715    else
32716      cat >conftest.$ac_ext <<_ACEOF
32717/* confdefs.h.  */
32718_ACEOF
32719cat confdefs.h >>conftest.$ac_ext
32720cat >>conftest.$ac_ext <<_ACEOF
32721/* end confdefs.h.  */
32722void $cfuncdsyev();
32723#ifdef F77_DUMMY_MAIN
32724
32725#  ifdef __cplusplus
32726     extern "C"
32727#  endif
32728   int F77_DUMMY_MAIN() { return 1; }
32729
32730#endif
32731int
32732main ()
32733{
32734$cfuncdsyev()
32735  ;
32736  return 0;
32737}
32738_ACEOF
32739rm -f conftest.$ac_objext conftest$ac_exeext
32740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32741  (eval $ac_link) 2>conftest.er1
32742  ac_status=$?
32743  grep -v '^ *+' conftest.er1 >conftest.err
32744  rm -f conftest.er1
32745  cat conftest.err >&5
32746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747  (exit $ac_status); } &&
32748	 { ac_try='test -z "$ac_c_werror_flag"
32749			 || test ! -s conftest.err'
32750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751  (eval $ac_try) 2>&5
32752  ac_status=$?
32753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754  (exit $ac_status); }; } &&
32755	 { ac_try='test -s conftest$ac_exeext'
32756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32757  (eval $ac_try) 2>&5
32758  ac_status=$?
32759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760  (exit $ac_status); }; }; then
32761  flink_try=yes
32762else
32763  echo "$as_me: failed program was:" >&5
32764sed 's/^/| /' conftest.$ac_ext >&5
32765
32766flink_try=no
32767fi
32768rm -f conftest.err conftest.$ac_objext \
32769      conftest$ac_exeext conftest.$ac_ext
32770    fi
32771    if test $flink_try = yes; then
32772      use_lapack='-lsunperf $BLAS_LIBS'
32773                           if test $coin_need_flibs = yes ; then
32774                             use_lapack="$use_lapack $FLIBS"
32775                           fi
32776                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32777echo "${ECHO_T}yes: $use_lapack" >&6
32778
32779    else
32780      if test x"$FLIBS" != x; then
32781        flink_save_libs="$LIBS"
32782        LIBS="$LIBS $FLIBS"
32783        cat >conftest.$ac_ext <<_ACEOF
32784/* confdefs.h.  */
32785_ACEOF
32786cat confdefs.h >>conftest.$ac_ext
32787cat >>conftest.$ac_ext <<_ACEOF
32788/* end confdefs.h.  */
32789void $cfuncdsyev();
32790#ifdef F77_DUMMY_MAIN
32791
32792#  ifdef __cplusplus
32793     extern "C"
32794#  endif
32795   int F77_DUMMY_MAIN() { return 1; }
32796
32797#endif
32798int
32799main ()
32800{
32801$cfuncdsyev()
32802  ;
32803  return 0;
32804}
32805_ACEOF
32806rm -f conftest.$ac_objext conftest$ac_exeext
32807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32808  (eval $ac_link) 2>conftest.er1
32809  ac_status=$?
32810  grep -v '^ *+' conftest.er1 >conftest.err
32811  rm -f conftest.er1
32812  cat conftest.err >&5
32813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814  (exit $ac_status); } &&
32815	 { ac_try='test -z "$ac_c_werror_flag"
32816			 || test ! -s conftest.err'
32817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32818  (eval $ac_try) 2>&5
32819  ac_status=$?
32820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821  (exit $ac_status); }; } &&
32822	 { ac_try='test -s conftest$ac_exeext'
32823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824  (eval $ac_try) 2>&5
32825  ac_status=$?
32826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827  (exit $ac_status); }; }; then
32828  LIBS="$flink_save_libs"
32829                     coin_need_flibs=yes
32830                     use_lapack='-lsunperf $BLAS_LIBS'
32831                           if test $coin_need_flibs = yes ; then
32832                             use_lapack="$use_lapack $FLIBS"
32833                           fi
32834                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32835echo "${ECHO_T}yes: $use_lapack" >&6
32836
32837
32838else
32839  echo "$as_me: failed program was:" >&5
32840sed 's/^/| /' conftest.$ac_ext >&5
32841
32842LIBS="$flink_save_libs"
32843                     echo "$as_me:$LINENO: result: no" >&5
32844echo "${ECHO_T}no" >&6
32845fi
32846rm -f conftest.err conftest.$ac_objext \
32847      conftest$ac_exeext conftest.$ac_ext
32848      else
32849        echo "$as_me:$LINENO: result: no" >&5
32850echo "${ECHO_T}no" >&6
32851      fi
32852    fi
32853    ;;
32854  cc|cpp)
32855    ac_ext=f
32856ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32857ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32858ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32859case $ac_cv_f77_mangling in
32860  upper*) ac_val="DSYEV" ;;
32861  lower*) ac_val="dsyev" ;;
32862  *)      ac_val="unknown" ;;
32863esac
32864case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32865
32866cfuncdsyev="$ac_val"
32867
32868ac_ext=c
32869ac_cpp='$CPP $CPPFLAGS'
32870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32872ac_compiler_gnu=$ac_cv_c_compiler_gnu
32873
32874    if test x"$coin_need_flibs" = xyes; then
32875      flink_try=no;
32876    else
32877      cat >conftest.$ac_ext <<_ACEOF
32878/* confdefs.h.  */
32879_ACEOF
32880cat confdefs.h >>conftest.$ac_ext
32881cat >>conftest.$ac_ext <<_ACEOF
32882/* end confdefs.h.  */
32883extern "C" {void $cfuncdsyev();}
32884#ifdef F77_DUMMY_MAIN
32885
32886#  ifdef __cplusplus
32887     extern "C"
32888#  endif
32889   int F77_DUMMY_MAIN() { return 1; }
32890
32891#endif
32892int
32893main ()
32894{
32895$cfuncdsyev()
32896  ;
32897  return 0;
32898}
32899_ACEOF
32900rm -f conftest.$ac_objext conftest$ac_exeext
32901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32902  (eval $ac_link) 2>conftest.er1
32903  ac_status=$?
32904  grep -v '^ *+' conftest.er1 >conftest.err
32905  rm -f conftest.er1
32906  cat conftest.err >&5
32907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908  (exit $ac_status); } &&
32909	 { ac_try='test -z "$ac_c_werror_flag"
32910			 || test ! -s conftest.err'
32911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912  (eval $ac_try) 2>&5
32913  ac_status=$?
32914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915  (exit $ac_status); }; } &&
32916	 { ac_try='test -s conftest$ac_exeext'
32917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918  (eval $ac_try) 2>&5
32919  ac_status=$?
32920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921  (exit $ac_status); }; }; then
32922  flink_try=yes
32923else
32924  echo "$as_me: failed program was:" >&5
32925sed 's/^/| /' conftest.$ac_ext >&5
32926
32927flink_try=no
32928fi
32929rm -f conftest.err conftest.$ac_objext \
32930      conftest$ac_exeext conftest.$ac_ext
32931    fi
32932    if test $flink_try = yes; then
32933      use_lapack='-lsunperf $BLAS_LIBS'
32934                           if test $coin_need_flibs = yes ; then
32935                             use_lapack="$use_lapack $FLIBS"
32936                           fi
32937                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32938echo "${ECHO_T}yes: $use_lapack" >&6
32939
32940    else
32941      if test x"$FLIBS" != x; then
32942        flink_save_libs="$LIBS"
32943        LIBS="$LIBS $FLIBS"
32944        cat >conftest.$ac_ext <<_ACEOF
32945/* confdefs.h.  */
32946_ACEOF
32947cat confdefs.h >>conftest.$ac_ext
32948cat >>conftest.$ac_ext <<_ACEOF
32949/* end confdefs.h.  */
32950extern "C" {void $cfuncdsyev();}
32951#ifdef F77_DUMMY_MAIN
32952
32953#  ifdef __cplusplus
32954     extern "C"
32955#  endif
32956   int F77_DUMMY_MAIN() { return 1; }
32957
32958#endif
32959int
32960main ()
32961{
32962$cfuncdsyev()
32963  ;
32964  return 0;
32965}
32966_ACEOF
32967rm -f conftest.$ac_objext conftest$ac_exeext
32968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32969  (eval $ac_link) 2>conftest.er1
32970  ac_status=$?
32971  grep -v '^ *+' conftest.er1 >conftest.err
32972  rm -f conftest.er1
32973  cat conftest.err >&5
32974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975  (exit $ac_status); } &&
32976	 { ac_try='test -z "$ac_c_werror_flag"
32977			 || test ! -s conftest.err'
32978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32979  (eval $ac_try) 2>&5
32980  ac_status=$?
32981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982  (exit $ac_status); }; } &&
32983	 { ac_try='test -s conftest$ac_exeext'
32984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32985  (eval $ac_try) 2>&5
32986  ac_status=$?
32987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988  (exit $ac_status); }; }; then
32989  LIBS="$flink_save_libs"
32990                     coin_need_flibs=yes
32991                     use_lapack='-lsunperf $BLAS_LIBS'
32992                           if test $coin_need_flibs = yes ; then
32993                             use_lapack="$use_lapack $FLIBS"
32994                           fi
32995                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
32996echo "${ECHO_T}yes: $use_lapack" >&6
32997
32998
32999else
33000  echo "$as_me: failed program was:" >&5
33001sed 's/^/| /' conftest.$ac_ext >&5
33002
33003LIBS="$flink_save_libs"
33004                     echo "$as_me:$LINENO: result: no" >&5
33005echo "${ECHO_T}no" >&6
33006fi
33007rm -f conftest.err conftest.$ac_objext \
33008      conftest$ac_exeext conftest.$ac_ext
33009      else
33010        echo "$as_me:$LINENO: result: no" >&5
33011echo "${ECHO_T}no" >&6
33012      fi
33013    fi
33014    ;;
33015esac
33016
33017        LIBS="$coin_save_LIBS"
33018        ;;
33019        # On cygwin, do this check only if doscompile is disabled. The prebuilt library
33020        # will want to link with cygwin, hence won't run standalone in DOS.
33021    esac
33022  fi
33023
33024  if test -z "$use_lapack" ; then
33025    echo "$as_me:$LINENO: checking whether -llapack has LAPACK" >&5
33026echo $ECHO_N "checking whether -llapack has LAPACK... $ECHO_C" >&6
33027    coin_need_flibs=no
33028    coin_save_LIBS="$LIBS"
33029    LIBS="-llapack $BLAS_LIBS $LIBS"
33030    case $ac_ext in
33031  f)
33032    cat >conftest.$ac_ext <<_ACEOF
33033/* confdefs.h.  */
33034_ACEOF
33035cat confdefs.h >>conftest.$ac_ext
33036cat >>conftest.$ac_ext <<_ACEOF
33037/* end confdefs.h.  */
33038
33039#ifdef F77_DUMMY_MAIN
33040
33041#  ifdef __cplusplus
33042     extern "C"
33043#  endif
33044   int F77_DUMMY_MAIN() { return 1; }
33045
33046#endif
33047int
33048main ()
33049{
33050      call dsyev
33051  ;
33052  return 0;
33053}
33054_ACEOF
33055rm -f conftest.$ac_objext conftest$ac_exeext
33056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33057  (eval $ac_link) 2>conftest.er1
33058  ac_status=$?
33059  grep -v '^ *+' conftest.er1 >conftest.err
33060  rm -f conftest.er1
33061  cat conftest.err >&5
33062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063  (exit $ac_status); } &&
33064	 { ac_try='test -z "$ac_c_werror_flag"
33065			 || test ! -s conftest.err'
33066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33067  (eval $ac_try) 2>&5
33068  ac_status=$?
33069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070  (exit $ac_status); }; } &&
33071	 { ac_try='test -s conftest$ac_exeext'
33072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33073  (eval $ac_try) 2>&5
33074  ac_status=$?
33075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076  (exit $ac_status); }; }; then
33077  use_lapack='-llapack'
33078                       if test $coin_need_flibs = yes ; then
33079                         use_lapack="$use_lapack $FLIBS"
33080                       fi
33081                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33082echo "${ECHO_T}yes: $use_lapack" >&6
33083
33084else
33085  echo "$as_me: failed program was:" >&5
33086sed 's/^/| /' conftest.$ac_ext >&5
33087
33088echo "$as_me:$LINENO: result: no" >&5
33089echo "${ECHO_T}no" >&6
33090fi
33091rm -f conftest.err conftest.$ac_objext \
33092      conftest$ac_exeext conftest.$ac_ext
33093    ;;
33094  c)
33095    ac_ext=f
33096ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
33097ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33098ac_compiler_gnu=$ac_cv_f77_compiler_gnu
33099case $ac_cv_f77_mangling in
33100  upper*) ac_val="DSYEV" ;;
33101  lower*) ac_val="dsyev" ;;
33102  *)      ac_val="unknown" ;;
33103esac
33104case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
33105
33106cfuncdsyev="$ac_val"
33107
33108ac_ext=c
33109ac_cpp='$CPP $CPPFLAGS'
33110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33112ac_compiler_gnu=$ac_cv_c_compiler_gnu
33113
33114    if test x"$coin_need_flibs" = xyes; then
33115      flink_try=no;
33116    else
33117      cat >conftest.$ac_ext <<_ACEOF
33118/* confdefs.h.  */
33119_ACEOF
33120cat confdefs.h >>conftest.$ac_ext
33121cat >>conftest.$ac_ext <<_ACEOF
33122/* end confdefs.h.  */
33123void $cfuncdsyev();
33124#ifdef F77_DUMMY_MAIN
33125
33126#  ifdef __cplusplus
33127     extern "C"
33128#  endif
33129   int F77_DUMMY_MAIN() { return 1; }
33130
33131#endif
33132int
33133main ()
33134{
33135$cfuncdsyev()
33136  ;
33137  return 0;
33138}
33139_ACEOF
33140rm -f conftest.$ac_objext conftest$ac_exeext
33141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33142  (eval $ac_link) 2>conftest.er1
33143  ac_status=$?
33144  grep -v '^ *+' conftest.er1 >conftest.err
33145  rm -f conftest.er1
33146  cat conftest.err >&5
33147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148  (exit $ac_status); } &&
33149	 { ac_try='test -z "$ac_c_werror_flag"
33150			 || test ! -s conftest.err'
33151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33152  (eval $ac_try) 2>&5
33153  ac_status=$?
33154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155  (exit $ac_status); }; } &&
33156	 { ac_try='test -s conftest$ac_exeext'
33157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158  (eval $ac_try) 2>&5
33159  ac_status=$?
33160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161  (exit $ac_status); }; }; then
33162  flink_try=yes
33163else
33164  echo "$as_me: failed program was:" >&5
33165sed 's/^/| /' conftest.$ac_ext >&5
33166
33167flink_try=no
33168fi
33169rm -f conftest.err conftest.$ac_objext \
33170      conftest$ac_exeext conftest.$ac_ext
33171    fi
33172    if test $flink_try = yes; then
33173      use_lapack='-llapack'
33174                       if test $coin_need_flibs = yes ; then
33175                         use_lapack="$use_lapack $FLIBS"
33176                       fi
33177                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33178echo "${ECHO_T}yes: $use_lapack" >&6
33179
33180    else
33181      if test x"$FLIBS" != x; then
33182        flink_save_libs="$LIBS"
33183        LIBS="$LIBS $FLIBS"
33184        cat >conftest.$ac_ext <<_ACEOF
33185/* confdefs.h.  */
33186_ACEOF
33187cat confdefs.h >>conftest.$ac_ext
33188cat >>conftest.$ac_ext <<_ACEOF
33189/* end confdefs.h.  */
33190void $cfuncdsyev();
33191#ifdef F77_DUMMY_MAIN
33192
33193#  ifdef __cplusplus
33194     extern "C"
33195#  endif
33196   int F77_DUMMY_MAIN() { return 1; }
33197
33198#endif
33199int
33200main ()
33201{
33202$cfuncdsyev()
33203  ;
33204  return 0;
33205}
33206_ACEOF
33207rm -f conftest.$ac_objext conftest$ac_exeext
33208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33209  (eval $ac_link) 2>conftest.er1
33210  ac_status=$?
33211  grep -v '^ *+' conftest.er1 >conftest.err
33212  rm -f conftest.er1
33213  cat conftest.err >&5
33214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215  (exit $ac_status); } &&
33216	 { ac_try='test -z "$ac_c_werror_flag"
33217			 || test ! -s conftest.err'
33218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33219  (eval $ac_try) 2>&5
33220  ac_status=$?
33221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222  (exit $ac_status); }; } &&
33223	 { ac_try='test -s conftest$ac_exeext'
33224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33225  (eval $ac_try) 2>&5
33226  ac_status=$?
33227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228  (exit $ac_status); }; }; then
33229  LIBS="$flink_save_libs"
33230                     coin_need_flibs=yes
33231                     use_lapack='-llapack'
33232                       if test $coin_need_flibs = yes ; then
33233                         use_lapack="$use_lapack $FLIBS"
33234                       fi
33235                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33236echo "${ECHO_T}yes: $use_lapack" >&6
33237
33238
33239else
33240  echo "$as_me: failed program was:" >&5
33241sed 's/^/| /' conftest.$ac_ext >&5
33242
33243LIBS="$flink_save_libs"
33244                     echo "$as_me:$LINENO: result: no" >&5
33245echo "${ECHO_T}no" >&6
33246fi
33247rm -f conftest.err conftest.$ac_objext \
33248      conftest$ac_exeext conftest.$ac_ext
33249      else
33250        echo "$as_me:$LINENO: result: no" >&5
33251echo "${ECHO_T}no" >&6
33252      fi
33253    fi
33254    ;;
33255  cc|cpp)
33256    ac_ext=f
33257ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
33258ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33259ac_compiler_gnu=$ac_cv_f77_compiler_gnu
33260case $ac_cv_f77_mangling in
33261  upper*) ac_val="DSYEV" ;;
33262  lower*) ac_val="dsyev" ;;
33263  *)      ac_val="unknown" ;;
33264esac
33265case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
33266
33267cfuncdsyev="$ac_val"
33268
33269ac_ext=c
33270ac_cpp='$CPP $CPPFLAGS'
33271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33273ac_compiler_gnu=$ac_cv_c_compiler_gnu
33274
33275    if test x"$coin_need_flibs" = xyes; then
33276      flink_try=no;
33277    else
33278      cat >conftest.$ac_ext <<_ACEOF
33279/* confdefs.h.  */
33280_ACEOF
33281cat confdefs.h >>conftest.$ac_ext
33282cat >>conftest.$ac_ext <<_ACEOF
33283/* end confdefs.h.  */
33284extern "C" {void $cfuncdsyev();}
33285#ifdef F77_DUMMY_MAIN
33286
33287#  ifdef __cplusplus
33288     extern "C"
33289#  endif
33290   int F77_DUMMY_MAIN() { return 1; }
33291
33292#endif
33293int
33294main ()
33295{
33296$cfuncdsyev()
33297  ;
33298  return 0;
33299}
33300_ACEOF
33301rm -f conftest.$ac_objext conftest$ac_exeext
33302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33303  (eval $ac_link) 2>conftest.er1
33304  ac_status=$?
33305  grep -v '^ *+' conftest.er1 >conftest.err
33306  rm -f conftest.er1
33307  cat conftest.err >&5
33308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309  (exit $ac_status); } &&
33310	 { ac_try='test -z "$ac_c_werror_flag"
33311			 || test ! -s conftest.err'
33312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33313  (eval $ac_try) 2>&5
33314  ac_status=$?
33315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316  (exit $ac_status); }; } &&
33317	 { ac_try='test -s conftest$ac_exeext'
33318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33319  (eval $ac_try) 2>&5
33320  ac_status=$?
33321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322  (exit $ac_status); }; }; then
33323  flink_try=yes
33324else
33325  echo "$as_me: failed program was:" >&5
33326sed 's/^/| /' conftest.$ac_ext >&5
33327
33328flink_try=no
33329fi
33330rm -f conftest.err conftest.$ac_objext \
33331      conftest$ac_exeext conftest.$ac_ext
33332    fi
33333    if test $flink_try = yes; then
33334      use_lapack='-llapack'
33335                       if test $coin_need_flibs = yes ; then
33336                         use_lapack="$use_lapack $FLIBS"
33337                       fi
33338                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33339echo "${ECHO_T}yes: $use_lapack" >&6
33340
33341    else
33342      if test x"$FLIBS" != x; then
33343        flink_save_libs="$LIBS"
33344        LIBS="$LIBS $FLIBS"
33345        cat >conftest.$ac_ext <<_ACEOF
33346/* confdefs.h.  */
33347_ACEOF
33348cat confdefs.h >>conftest.$ac_ext
33349cat >>conftest.$ac_ext <<_ACEOF
33350/* end confdefs.h.  */
33351extern "C" {void $cfuncdsyev();}
33352#ifdef F77_DUMMY_MAIN
33353
33354#  ifdef __cplusplus
33355     extern "C"
33356#  endif
33357   int F77_DUMMY_MAIN() { return 1; }
33358
33359#endif
33360int
33361main ()
33362{
33363$cfuncdsyev()
33364  ;
33365  return 0;
33366}
33367_ACEOF
33368rm -f conftest.$ac_objext conftest$ac_exeext
33369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33370  (eval $ac_link) 2>conftest.er1
33371  ac_status=$?
33372  grep -v '^ *+' conftest.er1 >conftest.err
33373  rm -f conftest.er1
33374  cat conftest.err >&5
33375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376  (exit $ac_status); } &&
33377	 { ac_try='test -z "$ac_c_werror_flag"
33378			 || test ! -s conftest.err'
33379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380  (eval $ac_try) 2>&5
33381  ac_status=$?
33382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383  (exit $ac_status); }; } &&
33384	 { ac_try='test -s conftest$ac_exeext'
33385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33386  (eval $ac_try) 2>&5
33387  ac_status=$?
33388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389  (exit $ac_status); }; }; then
33390  LIBS="$flink_save_libs"
33391                     coin_need_flibs=yes
33392                     use_lapack='-llapack'
33393                       if test $coin_need_flibs = yes ; then
33394                         use_lapack="$use_lapack $FLIBS"
33395                       fi
33396                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33397echo "${ECHO_T}yes: $use_lapack" >&6
33398
33399
33400else
33401  echo "$as_me: failed program was:" >&5
33402sed 's/^/| /' conftest.$ac_ext >&5
33403
33404LIBS="$flink_save_libs"
33405                     echo "$as_me:$LINENO: result: no" >&5
33406echo "${ECHO_T}no" >&6
33407fi
33408rm -f conftest.err conftest.$ac_objext \
33409      conftest$ac_exeext conftest.$ac_ext
33410      else
33411        echo "$as_me:$LINENO: result: no" >&5
33412echo "${ECHO_T}no" >&6
33413      fi
33414    fi
33415    ;;
33416esac
33417
33418    LIBS="$coin_save_LIBS"
33419  fi
33420
33421  # If we have no other ideas, consider building LAPACK.
33422  if test -z "$use_lapack" ; then
33423    use_lapack=BUILD
33424  fi
33425fi
33426
33427if test "x$use_lapack" = xBUILD ; then
33428
33429echo "$as_me:$LINENO: checking for COIN-OR package Lapack" >&5
33430echo $ECHO_N "checking for COIN-OR package Lapack... $ECHO_C" >&6
33431
33432coin_has_lapack=notGiven
33433
33434# check if user wants to skip package in any case
33435if test x"$COIN_SKIP_PROJECTS" != x; then
33436  for dir in $COIN_SKIP_PROJECTS; do
33437    if test $dir = "Lapack"; then
33438      coin_has_lapack=skipping
33439    fi
33440  done
33441fi
33442
33443if test "$coin_has_lapack" != skipping; then
33444
33445# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
33446if test "${with_lapack+set}" = set; then
33447  withval="$with_lapack"
33448  if test "$withval" = no ; then
33449       coin_has_lapack=skipping
33450     fi
33451
33452fi;
33453fi
33454
33455LAPACK_LIBS=
33456LAPACK_CFLAGS=
33457LAPACK_DATA=
33458LAPACK_DEPENDENCIES=
33459LAPACK_PCLIBS=
33460LAPACK_PCREQUIRES=
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
33479if test $coin_has_lapack != skipping; then
33480
33481# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
33482if test "${with_lapack_lib+set}" = set; then
33483  withval="$with_lapack_lib"
33484  if test "$withval" = no ; then
33485       coin_has_lapack=skipping
33486     else
33487       coin_has_lapack=yes
33488       LAPACK_LIBS="$withval"
33489       LAPACK_PCLIBS="$withval"
33490
33491         CGLCONICLIB_PCLIBS="$withval $CGLCONICLIB_PCLIBS"
33492         CGLCONICLIB_LIBS="$withval $CGLCONICLIB_LIBS"
33493
33494       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
33495       if test -z "$PKG_CONFIG" ; then
33496         LAPACK_LIBS_INSTALLED="$withval"
33497         CGLCONICLIB_LIBS_INSTALLED="$withval $CGLCONICLIB_LIBS_INSTALLED"
33498       fi
33499     fi
33500
33501fi;
33502fi
33503
33504if test $coin_has_lapack != skipping; then
33505
33506# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
33507if test "${with_lapack_incdir+set}" = set; then
33508  withval="$with_lapack_incdir"
33509  if test "$withval" = no ; then
33510       coin_has_lapack=skipping
33511     else
33512       coin_has_lapack=yes
33513       LAPACK_CFLAGS="-I`${CYGPATH_W} $withval`"
33514       CGLCONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CGLCONICLIB_CFLAGS"
33515       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
33516       if test -z "$PKG_CONFIG" ; then
33517         LAPACK_CFLAGS_INSTALLED="$LAPACK_CFLAGS"
33518         CGLCONICLIB_CFLAGS_INSTALLED="$LAPACK_CFLAGS $CGLCONICLIB_CFLAGS_INSTALLED"
33519       fi
33520     fi
33521
33522fi;
33523fi
33524
33525if test $coin_has_lapack != skipping; then
33526
33527# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
33528if test "${with_lapack_datadir+set}" = set; then
33529  withval="$with_lapack_datadir"
33530  if test "$withval" = no ; then
33531       coin_has_lapack=skipping
33532     else
33533       coin_has_lapack=yes
33534       LAPACK_DATA="$withval"
33535       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
33536       if test -z "$PKG_CONFIG" ; then
33537         LAPACK_DATA_INSTALLED="$withval"
33538       fi
33539     fi
33540
33541fi;
33542fi
33543
33544if test $coin_has_lapack = notGiven; then
33545  if test -n "$PKG_CONFIG" ; then
33546    # set search path for pkg-config
33547    # need to export variable to be sure that the following pkg-config gets these values
33548    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
33549    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
33550    export PKG_CONFIG_PATH
33551
33552    # let pkg-config do it's magic
33553
33554
33555
33556if test -n "$PKG_CONFIG" ; then
33557  if $PKG_CONFIG --exists "coinlapack"; then
33558    LAPACK_VERSIONS=`$PKG_CONFIG --modversion "coinlapack" 2>/dev/null | tr '\n' ' '`
33559     cflags=`$PKG_CONFIG --cflags "coinlapack" 2>/dev/null`
33560    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
33561	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
33562	# but only do this if is not trivial
33563    if test "$CYGPATH_W" != "echo" ; then
33564      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
33565      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
33566    fi
33567    LAPACK_CFLAGS="$cflags"
33568    LAPACK_LIBS=`$PKG_CONFIG --libs "coinlapack" 2>/dev/null`
33569    LAPACK_DATA=`$PKG_CONFIG --variable=datadir "coinlapack" 2>/dev/null`
33570     coin_has_lapack=yes
33571        echo "$as_me:$LINENO: result: yes: $LAPACK_VERSIONS" >&5
33572echo "${ECHO_T}yes: $LAPACK_VERSIONS" >&6
33573
33574        # adjust linker flags for (i)cl compiler
33575        # 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)
33576        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
33577        then
33578          LAPACK_LIBS=`echo " $LAPACK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
33579        fi
33580        LAPACK_PCREQUIRES="coinlapack"
33581
33582        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CglConicLib
33583
33584          CGLCONICLIB_PCREQUIRES="coinlapack $CGLCONICLIB_PCREQUIRES"
33585          CGLCONICLIB_CFLAGS="$LAPACK_CFLAGS $CGLCONICLIB_CFLAGS"
33586          CGLCONICLIB_LIBS="$LAPACK_LIBS $CGLCONICLIB_LIBS"
33587
33588
33589
33590  else
33591    LAPACK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinlapack"`
33592      coin_has_lapack=notGiven
33593        echo "$as_me:$LINENO: result: not given: $LAPACK_PKG_ERRORS" >&5
33594echo "${ECHO_T}not given: $LAPACK_PKG_ERRORS" >&6
33595
33596  fi
33597else
33598  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Lapack without pkg-config\"" >&5
33599echo "$as_me: error: \"Cannot check for existance of module Lapack without pkg-config\"" >&2;}
33600   { (exit 1); exit 1; }; }
33601fi
33602
33603
33604
33605
33606    # reset PKG_CONFIG_PATH variable
33607    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
33608    export PKG_CONFIG_PATH
33609
33610  else
33611    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
33612echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
33613
33614echo "$as_me:$LINENO: checking for COIN-OR package Lapack (fallback)" >&5
33615echo $ECHO_N "checking for COIN-OR package Lapack (fallback)... $ECHO_C" >&6
33616
33617coin_has_lapack=notGiven
33618LAPACK_LIBS=
33619LAPACK_LIBS_INSTALLED=
33620LAPACK_CFLAGS=
33621LAPACK_CFLAGS_INSTALLED=
33622LAPACK_DATA=
33623LAPACK_DATA_INSTALLED=
33624LAPACK_PCLIBS=
33625LAPACK_PCREQUIRES=
33626
33627# initial list of dependencies is "coinlapack", but we need to filter out version number specifications (= x, <= x, >= x, != x)
33628projtoprocess="coinlapack"
33629
33630# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
33631# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
33632# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
33633# also, we setup the DATA variable
33634allproj=""
33635allpcfiles=""
33636allpcifiles=""
33637while test "x$projtoprocess" != x ; do
33638
33639  for proj in $projtoprocess ; do
33640    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
33641    pcfile=""
33642    save_IFS="$IFS"
33643    IFS=":"
33644    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
33645      # 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
33646      if test -r "$dir/${proj}-uninstalled.pc" ; then
33647        pcfile="$dir/$proj-uninstalled.pc"
33648        if test -r "$dir/${proj}.pc" ; then
33649          pcifile="$dir/${proj}.pc"
33650        else
33651          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
33652echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
33653          pcifile=
33654        fi
33655        break
33656      fi
33657    done
33658    IFS="$save_IFS"
33659
33660    if test "x$pcfile" != x ; then
33661      # read dependencies from $pcfile and filter it
33662      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
33663
33664      # add projrequires to the front of the list of projects that have to be processed next
33665      # at the same time, remove $proj from this list
33666      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
33667
33668      # read DATA from $pcfile, if _DATA is still empty
33669      if test "x$LAPACK_DATA" = x ; then
33670        projdatadir=
33671        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
33672        eval `sh -c "$pcfilemod"`
33673        LAPACK_DATA="$projdatadir"
33674      fi
33675
33676      allproj="$allproj $proj"
33677      allpcfiles="$pcfile:$allpcfiles"
33678
33679    else
33680      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
33681echo "${ECHO_T}no, dependency $proj not available" >&6
33682      allproj=fail
33683      break 2
33684    fi
33685
33686    if test "x$pcifile" != x ; then
33687      allpcifiles="$pcifile:$allpcifiles"
33688
33689      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
33690      if test "x$LAPACK_DATA_INSTALLED" = x ; then
33691        projdatadir=
33692        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
33693        eval `sh -c "$pcifilemod"`
33694        if test "${CYGPATH_W}" != "echo"; then
33695          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
33696        fi
33697        LAPACK_DATA_INSTALLED="$projdatadir"
33698      fi
33699
33700    fi
33701
33702    break
33703  done
33704
33705  # remove spaces on begin of $projtoprocess
33706  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
33707
33708done
33709
33710if test "$allproj" != fail ; then
33711
33712  # now go through the list of .pc files and assemble compiler and linker flags
33713  # important is here to obey the reverse order that has been setup before,
33714  # since then libraries that are required by several others should be after these other libraries
33715  pcfilesprocessed=""
33716
33717  save_IFS="$IFS"
33718  IFS=":"
33719  for pcfile in $allpcfiles ; do
33720
33721    # if $pcfile has been processed already, skip this round
33722    if test "x$pcfilesprocessed" != x ; then
33723      for pcfiledone in $pcfilesprocessed ; do
33724        if test "$pcfiledone" = "$pcfile" ; then
33725          continue 2
33726        fi
33727      done
33728    fi
33729
33730    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
33731    #   replace "Libs:" by "echo projlibs="
33732    #   replace "Cflags:" by "echo projcflags="
33733    #   remove every line starting with <some word>:
33734    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
33735
33736    # set projcflags and projlibs variables by running $pcfilemod
33737    # 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
33738    projcflags=
33739    projlibs=
33740    IFS="$save_IFS"
33741    eval `sh -c "$pcfilemod"`
33742    IFS=":"
33743
33744    # add CYGPATH_W cludge into include flags and set CFLAGS variable
33745    if test "${CYGPATH_W}" != "echo"; then
33746      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
33747    fi
33748    LAPACK_CFLAGS="$projcflags $LAPACK_CFLAGS"
33749
33750    # set LIBS variable
33751    LAPACK_LIBS="$projlibs $LAPACK_LIBS"
33752
33753    # remember that we have processed $pcfile
33754    pcfilesprocessed="$pcfilesprocessed:$pcfile"
33755
33756  done
33757  IFS="$save_IFS"
33758
33759
33760  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
33761  # important is here again to obey the reverse order that has been setup before,
33762  # since then libraries that are required by several others should be after these other libraries
33763  pcfilesprocessed=""
33764
33765  save_IFS="$IFS"
33766  IFS=":"
33767  for pcfile in $allpcifiles ; do
33768
33769    # if $pcfile has been processed already, skip this round
33770    if test "x$pcfilesprocessed" != x ; then
33771      for pcfiledone in $pcfilesprocessed ; do
33772        if test "$pcfiledone" = "$pcfile" ; then
33773          continue 2
33774        fi
33775      done
33776    fi
33777
33778    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
33779    #   replace "Libs:" by "echo projlibs="
33780    #   replace "Cflags:" by "echo projcflags="
33781    #   remove every line starting with <some word>:
33782    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
33783
33784    # set projcflags and projlibs variables by running $pcfilemod
33785    # 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
33786    projcflags=
33787    projlibs=
33788    IFS="$save_IFS"
33789    eval `sh -c "$pcfilemod"`
33790    IFS=":"
33791
33792    # add CYGPATH_W cludge into include flags and set CFLAGS variable
33793    if test "${CYGPATH_W}" != "echo"; then
33794      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
33795    fi
33796    LAPACK_CFLAGS_INSTALLED="$projcflags $LAPACK_CFLAGS_INSTALLED"
33797
33798    # set LIBS variable
33799    LAPACK_LIBS_INSTALLED="$projlibs $LAPACK_LIBS_INSTALLED"
33800
33801    # remember that we have processed $pcfile
33802    pcfilesprocessed="$pcfilesprocessed:$pcfile"
33803
33804  done
33805  IFS="$save_IFS"
33806
33807
33808  # finish up
33809  coin_has_lapack=yes
33810  echo "$as_me:$LINENO: result: yes" >&5
33811echo "${ECHO_T}yes" >&6
33812
33813cat >>confdefs.h <<\_ACEOF
33814#define COIN_HAS_LAPACK 1
33815_ACEOF
33816
33817
33818  # adjust linker flags for (i)cl compiler
33819  # 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),
33820  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
33821  #    everything of the form "-lname" by "libname.lib", and
33822  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
33823  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
33824  then
33825    LAPACK_LIBS=`echo " $LAPACK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
33826    LAPACK_LIBS_INSTALLED=`echo " $LAPACK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
33827  fi
33828
33829  LAPACK_PCREQUIRES="coinlapack"
33830
33831    CGLCONICLIB_PCREQUIRES="coinlapack $CGLCONICLIB_PCREQUIRES"
33832    CGLCONICLIB_CFLAGS="$LAPACK_CFLAGS $CGLCONICLIB_CFLAGS"
33833    CGLCONICLIB_LIBS="$LAPACK_LIBS $CGLCONICLIB_LIBS"
33834    CGLCONICLIB_CFLAGS_INSTALLED="$LAPACK_CFLAGS_INSTALLED $CGLCONICLIB_CFLAGS_INSTALLED"
33835    CGLCONICLIB_LIBS_INSTALLED="$LAPACK_LIBS_INSTALLED $CGLCONICLIB_LIBS_INSTALLED"
33836
33837
33838fi
33839
33840
33841
33842if test $coin_has_lapack != notGiven &&
33843                test $coin_has_lapack != skipping; then
33844  COIN_HAS_LAPACK_TRUE=
33845  COIN_HAS_LAPACK_FALSE='#'
33846else
33847  COIN_HAS_LAPACK_TRUE='#'
33848  COIN_HAS_LAPACK_FALSE=
33849fi
33850
33851
33852
33853  fi
33854
33855else
33856  echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
33857echo "${ECHO_T}$coin_has_lapack" >&6
33858fi
33859
33860if test $coin_has_lapack != skipping &&
33861   test $coin_has_lapack != notGiven ; then
33862
33863cat >>confdefs.h <<\_ACEOF
33864#define COIN_HAS_LAPACK 1
33865_ACEOF
33866
33867
33868  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
33869if test "${enable_interpackage_dependencies+set}" = set; then
33870  enableval="$enable_interpackage_dependencies"
33871
33872else
33873  enable_interpackage_dependencies=yes
33874fi;
33875
33876  if test $enable_interpackage_dependencies = yes ; then
33877     # construct dependencies variables from LIBS variables
33878     # we add an extra space in LIBS so we can substitute out everything starting with " -"
33879     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
33880     # then remove everything of the form -xxx
33881     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
33882     LAPACK_DEPENDENCIES=`echo " $LAPACK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
33883
33884       CGLCONICLIB_DEPENDENCIES=`echo " $CGLCONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
33885
33886  fi
33887
33888  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
33889    if test -n "$LAPACK_CFLAGS" ; then
33890      { echo "$as_me:$LINENO: Lapack CFLAGS are $LAPACK_CFLAGS" >&5
33891echo "$as_me: Lapack CFLAGS are $LAPACK_CFLAGS" >&6;}
33892    fi
33893    if test -n "$LAPACK_LIBS" ; then
33894      { echo "$as_me:$LINENO: Lapack LIBS   are $LAPACK_LIBS" >&5
33895echo "$as_me: Lapack LIBS   are $LAPACK_LIBS" >&6;}
33896    fi
33897    if test -n "$LAPACK_DEPENDENCIES" ; then
33898      { echo "$as_me:$LINENO: Lapack DEPENDENCIES are $LAPACK_DEPENDENCIES" >&5
33899echo "$as_me: Lapack DEPENDENCIES are $LAPACK_DEPENDENCIES" >&6;}
33900    fi
33901    if test -n "$LAPACK_DATA" ; then
33902      { echo "$as_me:$LINENO: Lapack DATA   is  $LAPACK_DATA" >&5
33903echo "$as_me: Lapack DATA   is  $LAPACK_DATA" >&6;}
33904    fi
33905    if test -n "$LAPACK_PCLIBS" ; then
33906      { echo "$as_me:$LINENO: Lapack PCLIBS are $LAPACK_PCLIBS" >&5
33907echo "$as_me: Lapack PCLIBS are $LAPACK_PCLIBS" >&6;}
33908    fi
33909    if test -n "$LAPACK_PCREQUIRES" ; then
33910      { echo "$as_me:$LINENO: Lapack PCREQUIRES are $LAPACK_PCREQUIRES" >&5
33911echo "$as_me: Lapack PCREQUIRES are $LAPACK_PCREQUIRES" >&6;}
33912    fi
33913
33914      { echo "$as_me:$LINENO: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&5
33915echo "$as_me: CglConicLib CFLAGS are $CGLCONICLIB_CFLAGS" >&6;}
33916      { echo "$as_me:$LINENO: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&5
33917echo "$as_me: CglConicLib LIBS   are $CGLCONICLIB_LIBS" >&6;}
33918      { echo "$as_me:$LINENO: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&5
33919echo "$as_me: CglConicLib DEPENDENCIES are $CGLCONICLIB_DEPENDENCIES" >&6;}
33920
33921  fi
33922fi
33923
33924# Define the Makefile conditional
33925
33926
33927if test $coin_has_lapack != notGiven &&
33928                test $coin_has_lapack != skipping; then
33929  COIN_HAS_LAPACK_TRUE=
33930  COIN_HAS_LAPACK_FALSE='#'
33931else
33932  COIN_HAS_LAPACK_TRUE='#'
33933  COIN_HAS_LAPACK_FALSE=
33934fi
33935
33936
33937
33938
33939elif test "x$use_lapack" != x && test "$use_lapack" != no; then
33940  coin_has_lapack=yes
33941
33942
33943if test 0 = 0; then
33944  COIN_HAS_LAPACK_TRUE=
33945  COIN_HAS_LAPACK_FALSE='#'
33946else
33947  COIN_HAS_LAPACK_TRUE='#'
33948  COIN_HAS_LAPACK_FALSE=
33949fi
33950
33951
33952cat >>confdefs.h <<\_ACEOF
33953#define COIN_HAS_LAPACK 1
33954_ACEOF
33955
33956  LAPACK_LIBS="$use_lapack"
33957  LAPACK_CFLAGS=
33958  LAPACK_DATA=
33959
33960
33961
33962
33963    CGLCONICLIB_PCLIBS="$LAPACK_LIBS $CGLCONICLIB_PCLIBS"
33964    CGLCONICLIB_LIBS="$LAPACK_LIBS $CGLCONICLIB_LIBS"
33965    CGLCONICLIB_LIBS_INSTALLED="$LAPACK_LIBS $CGLCONICLIB_LIBS_INSTALLED"
33966
33967
33968else
33969  coin_has_lapack=no
33970
33971
33972if test 0 = 1; then
33973  COIN_HAS_LAPACK_TRUE=
33974  COIN_HAS_LAPACK_FALSE='#'
33975else
33976  COIN_HAS_LAPACK_TRUE='#'
33977  COIN_HAS_LAPACK_FALSE=
33978fi
33979
33980fi
33981
33982
33983
33984
33985
33986
33987
33988
33989
33990#############################################################################
33991#                       Solvers for unittesting                             #
33992#############################################################################
33993
33994# These are not really required for the compilation of Cgl, but we
33995# need to know which are available in order to compile the unitTest
33996# correctly.
33997
33998
33999#############################################################################
34000#                  System header                                            #
34001#############################################################################
34002
34003
34004ac_ext=cc
34005ac_cpp='$CXXCPP $CPPFLAGS'
34006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34009
34010#if test x"" = x; then
34011#  hdr="#include <cmath>"
34012#else
34013#  hdr=""
34014#fi
34015#AC_CHECK_HEADERS([cmath],[],[],[$hdr])
34016
34017for ac_header in cmath
34018do
34019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34020if eval "test \"\${$as_ac_Header+set}\" = set"; then
34021  echo "$as_me:$LINENO: checking for $ac_header" >&5
34022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34023if eval "test \"\${$as_ac_Header+set}\" = set"; then
34024  echo $ECHO_N "(cached) $ECHO_C" >&6
34025fi
34026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34028else
34029  # Is the header compilable?
34030echo "$as_me:$LINENO: checking $ac_header usability" >&5
34031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34032cat >conftest.$ac_ext <<_ACEOF
34033/* confdefs.h.  */
34034_ACEOF
34035cat confdefs.h >>conftest.$ac_ext
34036cat >>conftest.$ac_ext <<_ACEOF
34037/* end confdefs.h.  */
34038$ac_includes_default
34039#include <$ac_header>
34040_ACEOF
34041rm -f conftest.$ac_objext
34042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34043  (eval $ac_compile) 2>conftest.er1
34044  ac_status=$?
34045  grep -v '^ *+' conftest.er1 >conftest.err
34046  rm -f conftest.er1
34047  cat conftest.err >&5
34048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049  (exit $ac_status); } &&
34050	 { ac_try='test -z "$ac_cxx_werror_flag"
34051			 || test ! -s conftest.err'
34052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34053  (eval $ac_try) 2>&5
34054  ac_status=$?
34055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34056  (exit $ac_status); }; } &&
34057	 { ac_try='test -s conftest.$ac_objext'
34058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34059  (eval $ac_try) 2>&5
34060  ac_status=$?
34061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062  (exit $ac_status); }; }; then
34063  ac_header_compiler=yes
34064else
34065  echo "$as_me: failed program was:" >&5
34066sed 's/^/| /' conftest.$ac_ext >&5
34067
34068ac_header_compiler=no
34069fi
34070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34072echo "${ECHO_T}$ac_header_compiler" >&6
34073
34074# Is the header present?
34075echo "$as_me:$LINENO: checking $ac_header presence" >&5
34076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34077cat >conftest.$ac_ext <<_ACEOF
34078/* confdefs.h.  */
34079_ACEOF
34080cat confdefs.h >>conftest.$ac_ext
34081cat >>conftest.$ac_ext <<_ACEOF
34082/* end confdefs.h.  */
34083#include <$ac_header>
34084_ACEOF
34085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34087  ac_status=$?
34088  grep -v '^ *+' conftest.er1 >conftest.err
34089  rm -f conftest.er1
34090  cat conftest.err >&5
34091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092  (exit $ac_status); } >/dev/null; then
34093  if test -s conftest.err; then
34094    ac_cpp_err=$ac_cxx_preproc_warn_flag
34095    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
34096  else
34097    ac_cpp_err=
34098  fi
34099else
34100  ac_cpp_err=yes
34101fi
34102if test -z "$ac_cpp_err"; then
34103  ac_header_preproc=yes
34104else
34105  echo "$as_me: failed program was:" >&5
34106sed 's/^/| /' conftest.$ac_ext >&5
34107
34108  ac_header_preproc=no
34109fi
34110rm -f conftest.err conftest.$ac_ext
34111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34112echo "${ECHO_T}$ac_header_preproc" >&6
34113
34114# So?  What about this header?
34115case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
34116  yes:no: )
34117    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34119    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34121    ac_header_preproc=yes
34122    ;;
34123  no:yes:* )
34124    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34126    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34127echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34128    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34130    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34131echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34132    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34134    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34136    (
34137      cat <<\_ASBOX
34138## ----------------------------------------------------------------- ##
34139## Report this to https://github.com/aykutbulut/CGL-CONIC/issues/new ##
34140## ----------------------------------------------------------------- ##
34141_ASBOX
34142    ) |
34143      sed "s/^/$as_me: WARNING:     /" >&2
34144    ;;
34145esac
34146echo "$as_me:$LINENO: checking for $ac_header" >&5
34147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34148if eval "test \"\${$as_ac_Header+set}\" = set"; then
34149  echo $ECHO_N "(cached) $ECHO_C" >&6
34150else
34151  eval "$as_ac_Header=\$ac_header_preproc"
34152fi
34153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34155
34156fi
34157if test `eval echo '${'$as_ac_Header'}'` = yes; then
34158  cat >>confdefs.h <<_ACEOF
34159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34160_ACEOF
34161
34162fi
34163
34164done
34165
34166
34167if test "$ac_cv_header_cmath" != "yes"; then
34168  #if test x"" = x; then
34169#  hdr="#include <math.h>"
34170#else
34171#  hdr=""
34172#fi
34173#AC_CHECK_HEADERS([math.h],[],[],[$hdr])
34174
34175for ac_header in math.h
34176do
34177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34178if eval "test \"\${$as_ac_Header+set}\" = set"; then
34179  echo "$as_me:$LINENO: checking for $ac_header" >&5
34180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34181if eval "test \"\${$as_ac_Header+set}\" = set"; then
34182  echo $ECHO_N "(cached) $ECHO_C" >&6
34183fi
34184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34186else
34187  # Is the header compilable?
34188echo "$as_me:$LINENO: checking $ac_header usability" >&5
34189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34190cat >conftest.$ac_ext <<_ACEOF
34191/* confdefs.h.  */
34192_ACEOF
34193cat confdefs.h >>conftest.$ac_ext
34194cat >>conftest.$ac_ext <<_ACEOF
34195/* end confdefs.h.  */
34196$ac_includes_default
34197#include <$ac_header>
34198_ACEOF
34199rm -f conftest.$ac_objext
34200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34201  (eval $ac_compile) 2>conftest.er1
34202  ac_status=$?
34203  grep -v '^ *+' conftest.er1 >conftest.err
34204  rm -f conftest.er1
34205  cat conftest.err >&5
34206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207  (exit $ac_status); } &&
34208	 { ac_try='test -z "$ac_cxx_werror_flag"
34209			 || test ! -s conftest.err'
34210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211  (eval $ac_try) 2>&5
34212  ac_status=$?
34213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214  (exit $ac_status); }; } &&
34215	 { ac_try='test -s conftest.$ac_objext'
34216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34217  (eval $ac_try) 2>&5
34218  ac_status=$?
34219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220  (exit $ac_status); }; }; then
34221  ac_header_compiler=yes
34222else
34223  echo "$as_me: failed program was:" >&5
34224sed 's/^/| /' conftest.$ac_ext >&5
34225
34226ac_header_compiler=no
34227fi
34228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34230echo "${ECHO_T}$ac_header_compiler" >&6
34231
34232# Is the header present?
34233echo "$as_me:$LINENO: checking $ac_header presence" >&5
34234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34235cat >conftest.$ac_ext <<_ACEOF
34236/* confdefs.h.  */
34237_ACEOF
34238cat confdefs.h >>conftest.$ac_ext
34239cat >>conftest.$ac_ext <<_ACEOF
34240/* end confdefs.h.  */
34241#include <$ac_header>
34242_ACEOF
34243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34245  ac_status=$?
34246  grep -v '^ *+' conftest.er1 >conftest.err
34247  rm -f conftest.er1
34248  cat conftest.err >&5
34249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250  (exit $ac_status); } >/dev/null; then
34251  if test -s conftest.err; then
34252    ac_cpp_err=$ac_cxx_preproc_warn_flag
34253    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
34254  else
34255    ac_cpp_err=
34256  fi
34257else
34258  ac_cpp_err=yes
34259fi
34260if test -z "$ac_cpp_err"; then
34261  ac_header_preproc=yes
34262else
34263  echo "$as_me: failed program was:" >&5
34264sed 's/^/| /' conftest.$ac_ext >&5
34265
34266  ac_header_preproc=no
34267fi
34268rm -f conftest.err conftest.$ac_ext
34269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34270echo "${ECHO_T}$ac_header_preproc" >&6
34271
34272# So?  What about this header?
34273case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
34274  yes:no: )
34275    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34277    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34279    ac_header_preproc=yes
34280    ;;
34281  no:yes:* )
34282    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34284    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34285echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34286    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34288    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34289echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34292    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34294    (
34295      cat <<\_ASBOX
34296## ----------------------------------------------------------------- ##
34297## Report this to https://github.com/aykutbulut/CGL-CONIC/issues/new ##
34298## ----------------------------------------------------------------- ##
34299_ASBOX
34300    ) |
34301      sed "s/^/$as_me: WARNING:     /" >&2
34302    ;;
34303esac
34304echo "$as_me:$LINENO: checking for $ac_header" >&5
34305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34306if eval "test \"\${$as_ac_Header+set}\" = set"; then
34307  echo $ECHO_N "(cached) $ECHO_C" >&6
34308else
34309  eval "$as_ac_Header=\$ac_header_preproc"
34310fi
34311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34313
34314fi
34315if test `eval echo '${'$as_ac_Header'}'` = yes; then
34316  cat >>confdefs.h <<_ACEOF
34317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34318_ACEOF
34319
34320fi
34321
34322done
34323
34324
34325fi
34326ac_ext=c
34327ac_cpp='$CPP $CPPFLAGS'
34328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34330ac_compiler_gnu=$ac_cv_c_compiler_gnu
34331
34332
34333ac_ext=cc
34334ac_cpp='$CXXCPP $CPPFLAGS'
34335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34338
34339#if test x"" = x; then
34340#  hdr="#include <cfloat>"
34341#else
34342#  hdr=""
34343#fi
34344#AC_CHECK_HEADERS([cfloat],[],[],[$hdr])
34345
34346for ac_header in cfloat
34347do
34348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34349if eval "test \"\${$as_ac_Header+set}\" = set"; then
34350  echo "$as_me:$LINENO: checking for $ac_header" >&5
34351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34352if eval "test \"\${$as_ac_Header+set}\" = set"; then
34353  echo $ECHO_N "(cached) $ECHO_C" >&6
34354fi
34355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34357else
34358  # Is the header compilable?
34359echo "$as_me:$LINENO: checking $ac_header usability" >&5
34360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34361cat >conftest.$ac_ext <<_ACEOF
34362/* confdefs.h.  */
34363_ACEOF
34364cat confdefs.h >>conftest.$ac_ext
34365cat >>conftest.$ac_ext <<_ACEOF
34366/* end confdefs.h.  */
34367$ac_includes_default
34368#include <$ac_header>
34369_ACEOF
34370rm -f conftest.$ac_objext
34371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34372  (eval $ac_compile) 2>conftest.er1
34373  ac_status=$?
34374  grep -v '^ *+' conftest.er1 >conftest.err
34375  rm -f conftest.er1
34376  cat conftest.err >&5
34377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378  (exit $ac_status); } &&
34379	 { ac_try='test -z "$ac_cxx_werror_flag"
34380			 || test ! -s conftest.err'
34381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34382  (eval $ac_try) 2>&5
34383  ac_status=$?
34384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385  (exit $ac_status); }; } &&
34386	 { ac_try='test -s conftest.$ac_objext'
34387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34388  (eval $ac_try) 2>&5
34389  ac_status=$?
34390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391  (exit $ac_status); }; }; then
34392  ac_header_compiler=yes
34393else
34394  echo "$as_me: failed program was:" >&5
34395sed 's/^/| /' conftest.$ac_ext >&5
34396
34397ac_header_compiler=no
34398fi
34399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34400echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34401echo "${ECHO_T}$ac_header_compiler" >&6
34402
34403# Is the header present?
34404echo "$as_me:$LINENO: checking $ac_header presence" >&5
34405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34406cat >conftest.$ac_ext <<_ACEOF
34407/* confdefs.h.  */
34408_ACEOF
34409cat confdefs.h >>conftest.$ac_ext
34410cat >>conftest.$ac_ext <<_ACEOF
34411/* end confdefs.h.  */
34412#include <$ac_header>
34413_ACEOF
34414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34415  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34416  ac_status=$?
34417  grep -v '^ *+' conftest.er1 >conftest.err
34418  rm -f conftest.er1
34419  cat conftest.err >&5
34420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421  (exit $ac_status); } >/dev/null; then
34422  if test -s conftest.err; then
34423    ac_cpp_err=$ac_cxx_preproc_warn_flag
34424    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
34425  else
34426    ac_cpp_err=
34427  fi
34428else
34429  ac_cpp_err=yes
34430fi
34431if test -z "$ac_cpp_err"; then
34432  ac_header_preproc=yes
34433else
34434  echo "$as_me: failed program was:" >&5
34435sed 's/^/| /' conftest.$ac_ext >&5
34436
34437  ac_header_preproc=no
34438fi
34439rm -f conftest.err conftest.$ac_ext
34440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34441echo "${ECHO_T}$ac_header_preproc" >&6
34442
34443# So?  What about this header?
34444case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
34445  yes:no: )
34446    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34448    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34450    ac_header_preproc=yes
34451    ;;
34452  no:yes:* )
34453    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34455    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34456echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34457    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34459    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34460echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34461    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34463    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34465    (
34466      cat <<\_ASBOX
34467## ----------------------------------------------------------------- ##
34468## Report this to https://github.com/aykutbulut/CGL-CONIC/issues/new ##
34469## ----------------------------------------------------------------- ##
34470_ASBOX
34471    ) |
34472      sed "s/^/$as_me: WARNING:     /" >&2
34473    ;;
34474esac
34475echo "$as_me:$LINENO: checking for $ac_header" >&5
34476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34477if eval "test \"\${$as_ac_Header+set}\" = set"; then
34478  echo $ECHO_N "(cached) $ECHO_C" >&6
34479else
34480  eval "$as_ac_Header=\$ac_header_preproc"
34481fi
34482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34484
34485fi
34486if test `eval echo '${'$as_ac_Header'}'` = yes; then
34487  cat >>confdefs.h <<_ACEOF
34488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34489_ACEOF
34490
34491fi
34492
34493done
34494
34495
34496if test "$ac_cv_header_cfloat" != "yes"; then
34497  #if test x"" = x; then
34498#  hdr="#include <float.h>"
34499#else
34500#  hdr=""
34501#fi
34502#AC_CHECK_HEADERS([float.h],[],[],[$hdr])
34503
34504for ac_header in float.h
34505do
34506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34507if eval "test \"\${$as_ac_Header+set}\" = set"; then
34508  echo "$as_me:$LINENO: checking for $ac_header" >&5
34509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34510if eval "test \"\${$as_ac_Header+set}\" = set"; then
34511  echo $ECHO_N "(cached) $ECHO_C" >&6
34512fi
34513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34515else
34516  # Is the header compilable?
34517echo "$as_me:$LINENO: checking $ac_header usability" >&5
34518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34519cat >conftest.$ac_ext <<_ACEOF
34520/* confdefs.h.  */
34521_ACEOF
34522cat confdefs.h >>conftest.$ac_ext
34523cat >>conftest.$ac_ext <<_ACEOF
34524/* end confdefs.h.  */
34525$ac_includes_default
34526#include <$ac_header>
34527_ACEOF
34528rm -f conftest.$ac_objext
34529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34530  (eval $ac_compile) 2>conftest.er1
34531  ac_status=$?
34532  grep -v '^ *+' conftest.er1 >conftest.err
34533  rm -f conftest.er1
34534  cat conftest.err >&5
34535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536  (exit $ac_status); } &&
34537	 { ac_try='test -z "$ac_cxx_werror_flag"
34538			 || test ! -s conftest.err'
34539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540  (eval $ac_try) 2>&5
34541  ac_status=$?
34542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543  (exit $ac_status); }; } &&
34544	 { ac_try='test -s conftest.$ac_objext'
34545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34546  (eval $ac_try) 2>&5
34547  ac_status=$?
34548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549  (exit $ac_status); }; }; then
34550  ac_header_compiler=yes
34551else
34552  echo "$as_me: failed program was:" >&5
34553sed 's/^/| /' conftest.$ac_ext >&5
34554
34555ac_header_compiler=no
34556fi
34557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34558echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34559echo "${ECHO_T}$ac_header_compiler" >&6
34560
34561# Is the header present?
34562echo "$as_me:$LINENO: checking $ac_header presence" >&5
34563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34564cat >conftest.$ac_ext <<_ACEOF
34565/* confdefs.h.  */
34566_ACEOF
34567cat confdefs.h >>conftest.$ac_ext
34568cat >>conftest.$ac_ext <<_ACEOF
34569/* end confdefs.h.  */
34570#include <$ac_header>
34571_ACEOF
34572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34573  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34574  ac_status=$?
34575  grep -v '^ *+' conftest.er1 >conftest.err
34576  rm -f conftest.er1
34577  cat conftest.err >&5
34578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579  (exit $ac_status); } >/dev/null; then
34580  if test -s conftest.err; then
34581    ac_cpp_err=$ac_cxx_preproc_warn_flag
34582    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
34583  else
34584    ac_cpp_err=
34585  fi
34586else
34587  ac_cpp_err=yes
34588fi
34589if test -z "$ac_cpp_err"; then
34590  ac_header_preproc=yes
34591else
34592  echo "$as_me: failed program was:" >&5
34593sed 's/^/| /' conftest.$ac_ext >&5
34594
34595  ac_header_preproc=no
34596fi
34597rm -f conftest.err conftest.$ac_ext
34598echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34599echo "${ECHO_T}$ac_header_preproc" >&6
34600
34601# So?  What about this header?
34602case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
34603  yes:no: )
34604    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34606    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34608    ac_header_preproc=yes
34609    ;;
34610  no:yes:* )
34611    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34613    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34614echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34615    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34617    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34618echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34621    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34623    (
34624      cat <<\_ASBOX
34625## ----------------------------------------------------------------- ##
34626## Report this to https://github.com/aykutbulut/CGL-CONIC/issues/new ##
34627## ----------------------------------------------------------------- ##
34628_ASBOX
34629    ) |
34630      sed "s/^/$as_me: WARNING:     /" >&2
34631    ;;
34632esac
34633echo "$as_me:$LINENO: checking for $ac_header" >&5
34634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34635if eval "test \"\${$as_ac_Header+set}\" = set"; then
34636  echo $ECHO_N "(cached) $ECHO_C" >&6
34637else
34638  eval "$as_ac_Header=\$ac_header_preproc"
34639fi
34640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34642
34643fi
34644if test `eval echo '${'$as_ac_Header'}'` = yes; then
34645  cat >>confdefs.h <<_ACEOF
34646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34647_ACEOF
34648
34649fi
34650
34651done
34652
34653
34654fi
34655ac_ext=c
34656ac_cpp='$CPP $CPPFLAGS'
34657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34659ac_compiler_gnu=$ac_cv_c_compiler_gnu
34660
34661
34662ac_ext=cc
34663ac_cpp='$CXXCPP $CPPFLAGS'
34664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34667
34668#if test x"" = x; then
34669#  hdr="#include <cieeefp>"
34670#else
34671#  hdr=""
34672#fi
34673#AC_CHECK_HEADERS([cieeefp],[],[],[$hdr])
34674
34675for ac_header in cieeefp
34676do
34677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34678if eval "test \"\${$as_ac_Header+set}\" = set"; then
34679  echo "$as_me:$LINENO: checking for $ac_header" >&5
34680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34681if eval "test \"\${$as_ac_Header+set}\" = set"; then
34682  echo $ECHO_N "(cached) $ECHO_C" >&6
34683fi
34684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34686else
34687  # Is the header compilable?
34688echo "$as_me:$LINENO: checking $ac_header usability" >&5
34689echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34690cat >conftest.$ac_ext <<_ACEOF
34691/* confdefs.h.  */
34692_ACEOF
34693cat confdefs.h >>conftest.$ac_ext
34694cat >>conftest.$ac_ext <<_ACEOF
34695/* end confdefs.h.  */
34696$ac_includes_default
34697#include <$ac_header>
34698_ACEOF
34699rm -f conftest.$ac_objext
34700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34701  (eval $ac_compile) 2>conftest.er1
34702  ac_status=$?
34703  grep -v '^ *+' conftest.er1 >conftest.err
34704  rm -f conftest.er1
34705  cat conftest.err >&5
34706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707  (exit $ac_status); } &&
34708	 { ac_try='test -z "$ac_cxx_werror_flag"
34709			 || test ! -s conftest.err'
34710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34711  (eval $ac_try) 2>&5
34712  ac_status=$?
34713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714  (exit $ac_status); }; } &&
34715	 { ac_try='test -s conftest.$ac_objext'
34716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717  (eval $ac_try) 2>&5
34718  ac_status=$?
34719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720  (exit $ac_status); }; }; then
34721  ac_header_compiler=yes
34722else
34723  echo "$as_me: failed program was:" >&5
34724sed 's/^/| /' conftest.$ac_ext >&5
34725
34726ac_header_compiler=no
34727fi
34728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34729echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34730echo "${ECHO_T}$ac_header_compiler" >&6
34731
34732# Is the header present?
34733echo "$as_me:$LINENO: checking $ac_header presence" >&5
34734echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34735cat >conftest.$ac_ext <<_ACEOF
34736/* confdefs.h.  */
34737_ACEOF
34738cat confdefs.h >>conftest.$ac_ext
34739cat >>conftest.$ac_ext <<_ACEOF
34740/* end confdefs.h.  */
34741#include <$ac_header>
34742_ACEOF
34743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34744  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34745  ac_status=$?
34746  grep -v '^ *+' conftest.er1 >conftest.err
34747  rm -f conftest.er1
34748  cat conftest.err >&5
34749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750  (exit $ac_status); } >/dev/null; then
34751  if test -s conftest.err; then
34752    ac_cpp_err=$ac_cxx_preproc_warn_flag
34753    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
34754  else
34755    ac_cpp_err=
34756  fi
34757else
34758  ac_cpp_err=yes
34759fi
34760if test -z "$ac_cpp_err"; then
34761  ac_header_preproc=yes
34762else
34763  echo "$as_me: failed program was:" >&5
34764sed 's/^/| /' conftest.$ac_ext >&5
34765
34766  ac_header_preproc=no
34767fi
34768rm -f conftest.err conftest.$ac_ext
34769echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34770echo "${ECHO_T}$ac_header_preproc" >&6
34771
34772# So?  What about this header?
34773case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
34774  yes:no: )
34775    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34776echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34777    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34778echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34779    ac_header_preproc=yes
34780    ;;
34781  no:yes:* )
34782    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34783echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34784    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34785echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34786    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34787echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34788    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34789echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34790    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34792    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34793echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34794    (
34795      cat <<\_ASBOX
34796## ----------------------------------------------------------------- ##
34797## Report this to https://github.com/aykutbulut/CGL-CONIC/issues/new ##
34798## ----------------------------------------------------------------- ##
34799_ASBOX
34800    ) |
34801      sed "s/^/$as_me: WARNING:     /" >&2
34802    ;;
34803esac
34804echo "$as_me:$LINENO: checking for $ac_header" >&5
34805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34806if eval "test \"\${$as_ac_Header+set}\" = set"; then
34807  echo $ECHO_N "(cached) $ECHO_C" >&6
34808else
34809  eval "$as_ac_Header=\$ac_header_preproc"
34810fi
34811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34813
34814fi
34815if test `eval echo '${'$as_ac_Header'}'` = yes; then
34816  cat >>confdefs.h <<_ACEOF
34817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34818_ACEOF
34819
34820fi
34821
34822done
34823
34824
34825if test "$ac_cv_header_cieeefp" != "yes"; then
34826  #if test x"" = x; then
34827#  hdr="#include <ieeefp.h>"
34828#else
34829#  hdr=""
34830#fi
34831#AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr])
34832
34833for ac_header in ieeefp.h
34834do
34835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34836if eval "test \"\${$as_ac_Header+set}\" = set"; then
34837  echo "$as_me:$LINENO: checking for $ac_header" >&5
34838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34839if eval "test \"\${$as_ac_Header+set}\" = set"; then
34840  echo $ECHO_N "(cached) $ECHO_C" >&6
34841fi
34842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34844else
34845  # Is the header compilable?
34846echo "$as_me:$LINENO: checking $ac_header usability" >&5
34847echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34848cat >conftest.$ac_ext <<_ACEOF
34849/* confdefs.h.  */
34850_ACEOF
34851cat confdefs.h >>conftest.$ac_ext
34852cat >>conftest.$ac_ext <<_ACEOF
34853/* end confdefs.h.  */
34854$ac_includes_default
34855#include <$ac_header>
34856_ACEOF
34857rm -f conftest.$ac_objext
34858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34859  (eval $ac_compile) 2>conftest.er1
34860  ac_status=$?
34861  grep -v '^ *+' conftest.er1 >conftest.err
34862  rm -f conftest.er1
34863  cat conftest.err >&5
34864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865  (exit $ac_status); } &&
34866	 { ac_try='test -z "$ac_cxx_werror_flag"
34867			 || test ! -s conftest.err'
34868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34869  (eval $ac_try) 2>&5
34870  ac_status=$?
34871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872  (exit $ac_status); }; } &&
34873	 { ac_try='test -s conftest.$ac_objext'
34874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34875  (eval $ac_try) 2>&5
34876  ac_status=$?
34877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34878  (exit $ac_status); }; }; then
34879  ac_header_compiler=yes
34880else
34881  echo "$as_me: failed program was:" >&5
34882sed 's/^/| /' conftest.$ac_ext >&5
34883
34884ac_header_compiler=no
34885fi
34886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34888echo "${ECHO_T}$ac_header_compiler" >&6
34889
34890# Is the header present?
34891echo "$as_me:$LINENO: checking $ac_header presence" >&5
34892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34893cat >conftest.$ac_ext <<_ACEOF
34894/* confdefs.h.  */
34895_ACEOF
34896cat confdefs.h >>conftest.$ac_ext
34897cat >>conftest.$ac_ext <<_ACEOF
34898/* end confdefs.h.  */
34899#include <$ac_header>
34900_ACEOF
34901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34902  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34903  ac_status=$?
34904  grep -v '^ *+' conftest.er1 >conftest.err
34905  rm -f conftest.er1
34906  cat conftest.err >&5
34907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908  (exit $ac_status); } >/dev/null; then
34909  if test -s conftest.err; then
34910    ac_cpp_err=$ac_cxx_preproc_warn_flag
34911    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
34912  else
34913    ac_cpp_err=
34914  fi
34915else
34916  ac_cpp_err=yes
34917fi
34918if test -z "$ac_cpp_err"; then
34919  ac_header_preproc=yes
34920else
34921  echo "$as_me: failed program was:" >&5
34922sed 's/^/| /' conftest.$ac_ext >&5
34923
34924  ac_header_preproc=no
34925fi
34926rm -f conftest.err conftest.$ac_ext
34927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34928echo "${ECHO_T}$ac_header_preproc" >&6
34929
34930# So?  What about this header?
34931case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
34932  yes:no: )
34933    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34935    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34937    ac_header_preproc=yes
34938    ;;
34939  no:yes:* )
34940    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34942    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34943echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34944    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34946    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34947echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34948    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34950    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34952    (
34953      cat <<\_ASBOX
34954## ----------------------------------------------------------------- ##
34955## Report this to https://github.com/aykutbulut/CGL-CONIC/issues/new ##
34956## ----------------------------------------------------------------- ##
34957_ASBOX
34958    ) |
34959      sed "s/^/$as_me: WARNING:     /" >&2
34960    ;;
34961esac
34962echo "$as_me:$LINENO: checking for $ac_header" >&5
34963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34964if eval "test \"\${$as_ac_Header+set}\" = set"; then
34965  echo $ECHO_N "(cached) $ECHO_C" >&6
34966else
34967  eval "$as_ac_Header=\$ac_header_preproc"
34968fi
34969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34971
34972fi
34973if test `eval echo '${'$as_ac_Header'}'` = yes; then
34974  cat >>confdefs.h <<_ACEOF
34975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34976_ACEOF
34977
34978fi
34979
34980done
34981
34982
34983fi
34984ac_ext=c
34985ac_cpp='$CPP $CPPFLAGS'
34986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34988ac_compiler_gnu=$ac_cv_c_compiler_gnu
34989
34990
34991
34992#############################################################################
34993#                   Determine list of all CglConic subprojects              #
34994#############################################################################
34995
34996# In order to avoid that one has to update this configure.ac and the
34997# Makefile.am whenever a new cut generator is added, we automatically determine
34998# the list of all subdirectories of src with a Makefile.in (CGL_SUBDIRS),
34999# and also a list of all sublibraries relative to src (CGL_SUBLIBS) that
35000# can be used in the src/Makefile.am.  (It is still necessary to manually
35001# add an entry to write the Makefile in the AC_CONFIG_FILES list below.)
35002
35003
35004
35005
35006curr_dir=`pwd`
35007cd $srcdir/src
35008for file in `ls */Makefile.in`; do
35009  newdir=`echo $file | sed -e s%/Makefile.in%% | sed -e s%^./%% `
35010  CGLCONIC_SUBDIRS="$CGLCONIC_SUBDIRS $newdir"
35011  CGLCONIC_SUBLIBS="$CGLCONIC_SUBLIBS $newdir/lib${newdir}.la"
35012done
35013cd $curr_dir
35014
35015##############################################################################
35016#                   VPATH links for example input files                      #
35017##############################################################################
35018# In case this is a VPATH configuration we need to make sure that the
35019# input files for the examples are available in the VPATH directory.
35020
35021echo "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5
35022echo $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6
35023if test `cd $srcdir; pwd` != `pwd`; then
35024  coin_vpath_config=yes;
35025else
35026  coin_vpath_config=no;
35027fi
35028echo "$as_me:$LINENO: result: $coin_vpath_config" >&5
35029echo "${ECHO_T}$coin_vpath_config" >&6
35030
35031
35032
35033# Allow for newlines in the parameter
35034if test $coin_vpath_config = yes; then
35035  cvl_tmp="examples/ex1.mps"
35036  for file in $cvl_tmp ; do
35037    coin_vpath_link_files="$coin_vpath_link_files $file"
35038  done
35039fi
35040
35041
35042#############################################################################
35043#                  Check for doxygen                                        #
35044#############################################################################
35045
35046
35047
35048{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
35049echo "$as_me: configuring doxygen documentation options" >&6;}
35050
35051# Check to see if doxygen is available.
35052
35053# Extract the first word of "doxygen", so it can be a program name with args.
35054set dummy doxygen; ac_word=$2
35055echo "$as_me:$LINENO: checking for $ac_word" >&5
35056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35057if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
35058  echo $ECHO_N "(cached) $ECHO_C" >&6
35059else
35060  if test -n "$coin_have_doxygen"; then
35061  ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
35062else
35063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35064for as_dir in $PATH
35065do
35066  IFS=$as_save_IFS
35067  test -z "$as_dir" && as_dir=.
35068  for ac_exec_ext in '' $ac_executable_extensions; do
35069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35070    ac_cv_prog_coin_have_doxygen="yes"
35071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35072    break 2
35073  fi
35074done
35075done
35076
35077  test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
35078fi
35079fi
35080coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
35081if test -n "$coin_have_doxygen"; then
35082  echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
35083echo "${ECHO_T}$coin_have_doxygen" >&6
35084else
35085  echo "$as_me:$LINENO: result: no" >&5
35086echo "${ECHO_T}no" >&6
35087fi
35088
35089# Extract the first word of "latex", so it can be a program name with args.
35090set dummy latex; ac_word=$2
35091echo "$as_me:$LINENO: checking for $ac_word" >&5
35092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35093if test "${ac_cv_prog_coin_have_latex+set}" = set; then
35094  echo $ECHO_N "(cached) $ECHO_C" >&6
35095else
35096  if test -n "$coin_have_latex"; then
35097  ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
35098else
35099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35100for as_dir in $PATH
35101do
35102  IFS=$as_save_IFS
35103  test -z "$as_dir" && as_dir=.
35104  for ac_exec_ext in '' $ac_executable_extensions; do
35105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35106    ac_cv_prog_coin_have_latex="yes"
35107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35108    break 2
35109  fi
35110done
35111done
35112
35113  test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
35114fi
35115fi
35116coin_have_latex=$ac_cv_prog_coin_have_latex
35117if test -n "$coin_have_latex"; then
35118  echo "$as_me:$LINENO: result: $coin_have_latex" >&5
35119echo "${ECHO_T}$coin_have_latex" >&6
35120else
35121  echo "$as_me:$LINENO: result: no" >&5
35122echo "${ECHO_T}no" >&6
35123fi
35124
35125
35126# Look for the dot tool from the graphviz package, unless the user has
35127# disabled it.
35128
35129
35130# Check whether --with-dot or --without-dot was given.
35131if test "${with_dot+set}" = set; then
35132  withval="$with_dot"
35133
35134else
35135  withval=yes
35136fi;
35137if test x"$withval" = xno ; then
35138  coin_doxy_usedot=NO
35139  echo "$as_me:$LINENO: checking for dot " >&5
35140echo $ECHO_N "checking for dot ... $ECHO_C" >&6
35141  echo "$as_me:$LINENO: result: disabled" >&5
35142echo "${ECHO_T}disabled" >&6
35143else
35144  # Extract the first word of "dot", so it can be a program name with args.
35145set dummy dot; ac_word=$2
35146echo "$as_me:$LINENO: checking for $ac_word" >&5
35147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35148if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
35149  echo $ECHO_N "(cached) $ECHO_C" >&6
35150else
35151  if test -n "$coin_doxy_usedot"; then
35152  ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
35153else
35154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35155for as_dir in $PATH
35156do
35157  IFS=$as_save_IFS
35158  test -z "$as_dir" && as_dir=.
35159  for ac_exec_ext in '' $ac_executable_extensions; do
35160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35161    ac_cv_prog_coin_doxy_usedot="YES"
35162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35163    break 2
35164  fi
35165done
35166done
35167
35168  test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
35169fi
35170fi
35171coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
35172if test -n "$coin_doxy_usedot"; then
35173  echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
35174echo "${ECHO_T}$coin_doxy_usedot" >&6
35175else
35176  echo "$as_me:$LINENO: result: no" >&5
35177echo "${ECHO_T}no" >&6
35178fi
35179
35180fi
35181
35182# Generate a tag file name and a log file name
35183
35184coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
35185
35186coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
35187
35188
35189
35190if test $coin_have_doxygen = yes; then
35191  COIN_HAS_DOXYGEN_TRUE=
35192  COIN_HAS_DOXYGEN_FALSE='#'
35193else
35194  COIN_HAS_DOXYGEN_TRUE='#'
35195  COIN_HAS_DOXYGEN_FALSE=
35196fi
35197
35198
35199
35200if test $coin_have_latex = yes; then
35201  COIN_HAS_LATEX_TRUE=
35202  COIN_HAS_LATEX_FALSE='#'
35203else
35204  COIN_HAS_LATEX_TRUE='#'
35205  COIN_HAS_LATEX_FALSE=
35206fi
35207
35208
35209# Process the list of project names and massage them into possible doxygen
35210# doc'n directories. Prefer 1) classic external, source processed using
35211# a project-specific doxygen.conf, we use the tag file; 2) classic
35212# external, source processed using package doxygen.conf; 3) installed
35213# doxydoc. Alternatives 1) and 2) are only possible if the directory will be
35214# configured, which we can't know unless this is the package base configure,
35215# since coin_subdirs is only set there. Hence it's sufficient to check for
35216# membership. If we use a tag file from a classic external, exclude the
35217# source from doxygen processing when doxygen runs in the base directory.
35218
35219coin_doxy_tagfiles=
35220coin_doxy_excludes=
35221tmp="CoinUtils Osi OsiConic Cgl OsiIpopt"
35222for proj in $tmp ; do
35223  lc_proj=`echo $proj | tr [A-Z] [a-z]`
35224  echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
35225echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
35226  doxytag=${lc_proj}_doxy.tag
35227  doxyfound=no
35228  # proj will be configured, hence doxydoc present in build tree
35229  doxysrcdir="${srcdir}/../${proj}"
35230  # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
35231  if test -d "$doxysrcdir" ; then
35232    # with a doxydoc directory?
35233    doxydir="$doxysrcdir/doxydoc"
35234    # AC_MSG_NOTICE([Considering $doxydir (base)])
35235    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
35236    if test -d "$doxydir" ; then
35237      # use tag file; don't process source
35238      doxydir="../${proj}/doxydoc"
35239      coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
35240      echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
35241echo "${ECHO_T}$doxydir (tag)" >&6
35242      coin_doxy_excludes="$coin_doxy_excludes */${proj}"
35243    else
35244      # will process the source -- nothing further to be done here
35245      echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
35246echo "${ECHO_T}$doxysrcdir (src)" >&6
35247    fi
35248    doxyfound=yes
35249  fi
35250  # Not built, fall back to installed tag file
35251  if test $doxyfound = no ; then
35252    eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
35253    # AC_MSG_NOTICE([Considering $doxydir (install)])
35254    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
35255    coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
35256    echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
35257echo "${ECHO_T}$doxydir (tag)" >&6
35258  fi
35259done
35260
35261
35262
35263
35264
35265##############################################################################
35266#                   Finishing up by writing all the output                   #
35267##############################################################################
35268
35269# Install files for unitTest
35270
35271# Here list all the files that configure should create (except for the
35272# configuration header file)
35273                                                                                                              ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile src/CglConicGD1/Makefile src/CglConicGD2/Makefile src/CglConicMIR/Makefile src/CglConicOA/Makefile src/CglConicIPM/Makefile src/CglConicIPMint/Makefile cglconic.pc cglconic-uninstalled.pc"
35274
35275          ac_config_files="$ac_config_files doxydoc/doxygen.conf"
35276
35277
35278# Here put the location and name of the configuration header file
35279                    ac_config_headers="$ac_config_headers src/config.h src/config_cglconic.h"
35280
35281
35282# Finally, we let configure write all the output...
35283
35284
35285
35286
35287echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
35288echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
35289coin_link_input_cmd="$LN_S"
35290case "$CC" in
35291  clang* ) ;;
35292  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
35293    coin_link_input_cmd=cp ;;
35294esac
35295echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
35296echo "${ECHO_T}$coin_link_input_cmd" >&6
35297
35298
35299
35300if test x$coin_skip_ac_output != xyes; then
35301
35302  # library extension
35303
35304  case "$CC" in
35305    clang* )
35306         LIBEXT=a ;;
35307    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
35308         LIBEXT=lib ;;
35309      *) LIBEXT=a ;;
35310  esac
35311
35312  # Define VPATH_DISTCLEANFILES to be everything that needs to be
35313  # cleaned for distclean in a vpath configuration
35314
35315  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
35316
35317  # Take out subdirectories if their configuration concluded that they
35318  # don't need to be compiled
35319  if test x"$coin_ac_skip_subdirs" != x; then
35320    new_subdirs=
35321    for i in $subdirs; do
35322      skipme=no
35323      for j in $coin_ac_skip_subdirs; do
35324        if test $i = $j; then
35325          skipme=yes;
35326        fi
35327      done
35328      if test $skipme = no; then
35329        new_subdirs="$new_subdirs $i"
35330      fi
35331    done
35332    subdirs="$new_subdirs"
35333  fi
35334
35335  # need to come before AC_OUTPUT
35336  if test x$coin_projectdir != xyes; then
35337    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
35338    echo $coin_subdirs > coin_subdirs.txt
35339  else
35340    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
35341    ABSBUILDDIR="`pwd`"
35342
35343  fi
35344
35345  cat >confcache <<\_ACEOF
35346# This file is a shell script that caches the results of configure
35347# tests run on this system so they can be shared between configure
35348# scripts and configure runs, see configure's option --config-cache.
35349# It is not useful on other systems.  If it contains results you don't
35350# want to keep, you may remove or edit it.
35351#
35352# config.status only pays attention to the cache file if you give it
35353# the --recheck option to rerun configure.
35354#
35355# `ac_cv_env_foo' variables (set or unset) will be overridden when
35356# loading this file, other *unset* `ac_cv_foo' will be assigned the
35357# following values.
35358
35359_ACEOF
35360
35361# The following way of writing the cache mishandles newlines in values,
35362# but we know of no workaround that is simple, portable, and efficient.
35363# So, don't put newlines in cache variables' values.
35364# Ultrix sh set writes to stderr and can't be redirected directly,
35365# and sets the high bit in the cache file unless we assign to the vars.
35366{
35367  (set) 2>&1 |
35368    case `(ac_space=' '; set | grep ac_space) 2>&1` in
35369    *ac_space=\ *)
35370      # `set' does not quote correctly, so add quotes (double-quote
35371      # substitution turns \\\\ into \\, and sed turns \\ into \).
35372      sed -n \
35373	"s/'/'\\\\''/g;
35374	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35375      ;;
35376    *)
35377      # `set' quotes correctly as required by POSIX, so do not add quotes.
35378      sed -n \
35379	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35380      ;;
35381    esac;
35382} |
35383  sed '
35384     t clear
35385     : clear
35386     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35387     t end
35388     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35389     : end' >>confcache
35390if diff $cache_file confcache >/dev/null 2>&1; then :; else
35391  if test -w $cache_file; then
35392    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35393    cat confcache >$cache_file
35394  else
35395    echo "not updating unwritable cache $cache_file"
35396  fi
35397fi
35398rm -f confcache
35399
35400test "x$prefix" = xNONE && prefix=$ac_default_prefix
35401# Let make expand exec_prefix.
35402test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35403
35404# VPATH may cause trouble with some makes, so we remove $(srcdir),
35405# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35406# trailing colons and then remove the whole line if VPATH becomes empty
35407# (actually we leave an empty line to preserve line numbers).
35408if test "x$srcdir" = x.; then
35409  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
35410s/:*\$(srcdir):*/:/;
35411s/:*\${srcdir}:*/:/;
35412s/:*@srcdir@:*/:/;
35413s/^\([^=]*=[	 ]*\):*/\1/;
35414s/:*$//;
35415s/^[^=]*=[	 ]*$//;
35416}'
35417fi
35418
35419DEFS=-DHAVE_CONFIG_H
35420
35421ac_libobjs=
35422ac_ltlibobjs=
35423for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35424  # 1. Remove the extension, and $U if already installed.
35425  ac_i=`echo "$ac_i" |
35426	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35427  # 2. Add them.
35428  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35429  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35430done
35431LIBOBJS=$ac_libobjs
35432
35433LTLIBOBJS=$ac_ltlibobjs
35434
35435
35436if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
35437  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
35438Usually this means the macro was only invoked conditionally." >&5
35439echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
35440Usually this means the macro was only invoked conditionally." >&2;}
35441   { (exit 1); exit 1; }; }
35442fi
35443if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
35444  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
35445Usually this means the macro was only invoked conditionally." >&5
35446echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
35447Usually this means the macro was only invoked conditionally." >&2;}
35448   { (exit 1); exit 1; }; }
35449fi
35450if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
35451  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
35452Usually this means the macro was only invoked conditionally." >&5
35453echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
35454Usually this means the macro was only invoked conditionally." >&2;}
35455   { (exit 1); exit 1; }; }
35456fi
35457if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35458  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
35459Usually this means the macro was only invoked conditionally." >&5
35460echo "$as_me: error: conditional \"AMDEP\" was never defined.
35461Usually this means the macro was only invoked conditionally." >&2;}
35462   { (exit 1); exit 1; }; }
35463fi
35464if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35465  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
35466Usually this means the macro was only invoked conditionally." >&5
35467echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
35468Usually this means the macro was only invoked conditionally." >&2;}
35469   { (exit 1); exit 1; }; }
35470fi
35471if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35472  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
35473Usually this means the macro was only invoked conditionally." >&5
35474echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
35475Usually this means the macro was only invoked conditionally." >&2;}
35476   { (exit 1); exit 1; }; }
35477fi
35478if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
35479  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
35480Usually this means the macro was only invoked conditionally." >&5
35481echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
35482Usually this means the macro was only invoked conditionally." >&2;}
35483   { (exit 1); exit 1; }; }
35484fi
35485if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
35486  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
35487Usually this means the macro was only invoked conditionally." >&5
35488echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
35489Usually this means the macro was only invoked conditionally." >&2;}
35490   { (exit 1); exit 1; }; }
35491fi
35492if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
35493  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
35494Usually this means the macro was only invoked conditionally." >&5
35495echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
35496Usually this means the macro was only invoked conditionally." >&2;}
35497   { (exit 1); exit 1; }; }
35498fi
35499if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
35500  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
35501Usually this means the macro was only invoked conditionally." >&5
35502echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
35503Usually this means the macro was only invoked conditionally." >&2;}
35504   { (exit 1); exit 1; }; }
35505fi
35506if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
35507  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
35508Usually this means the macro was only invoked conditionally." >&5
35509echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
35510Usually this means the macro was only invoked conditionally." >&2;}
35511   { (exit 1); exit 1; }; }
35512fi
35513if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
35514  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
35515Usually this means the macro was only invoked conditionally." >&5
35516echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
35517Usually this means the macro was only invoked conditionally." >&2;}
35518   { (exit 1); exit 1; }; }
35519fi
35520if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
35521  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
35522Usually this means the macro was only invoked conditionally." >&5
35523echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
35524Usually this means the macro was only invoked conditionally." >&2;}
35525   { (exit 1); exit 1; }; }
35526fi
35527if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
35528  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
35529Usually this means the macro was only invoked conditionally." >&5
35530echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
35531Usually this means the macro was only invoked conditionally." >&2;}
35532   { (exit 1); exit 1; }; }
35533fi
35534if test -z "${COIN_HAS_OSICLP_TRUE}" && test -z "${COIN_HAS_OSICLP_FALSE}"; then
35535  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSICLP\" was never defined.
35536Usually this means the macro was only invoked conditionally." >&5
35537echo "$as_me: error: conditional \"COIN_HAS_OSICLP\" was never defined.
35538Usually this means the macro was only invoked conditionally." >&2;}
35539   { (exit 1); exit 1; }; }
35540fi
35541if test -z "${COIN_HAS_OSICLP_TRUE}" && test -z "${COIN_HAS_OSICLP_FALSE}"; then
35542  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSICLP\" was never defined.
35543Usually this means the macro was only invoked conditionally." >&5
35544echo "$as_me: error: conditional \"COIN_HAS_OSICLP\" was never defined.
35545Usually this means the macro was only invoked conditionally." >&2;}
35546   { (exit 1); exit 1; }; }
35547fi
35548if test -z "${COIN_HAS_CGL_TRUE}" && test -z "${COIN_HAS_CGL_FALSE}"; then
35549  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CGL\" was never defined.
35550Usually this means the macro was only invoked conditionally." >&5
35551echo "$as_me: error: conditional \"COIN_HAS_CGL\" was never defined.
35552Usually this means the macro was only invoked conditionally." >&2;}
35553   { (exit 1); exit 1; }; }
35554fi
35555if test -z "${COIN_HAS_CGL_TRUE}" && test -z "${COIN_HAS_CGL_FALSE}"; then
35556  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CGL\" was never defined.
35557Usually this means the macro was only invoked conditionally." >&5
35558echo "$as_me: error: conditional \"COIN_HAS_CGL\" was never defined.
35559Usually this means the macro was only invoked conditionally." >&2;}
35560   { (exit 1); exit 1; }; }
35561fi
35562if test -z "${COIN_HAS_OSICONIC_TRUE}" && test -z "${COIN_HAS_OSICONIC_FALSE}"; then
35563  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSICONIC\" was never defined.
35564Usually this means the macro was only invoked conditionally." >&5
35565echo "$as_me: error: conditional \"COIN_HAS_OSICONIC\" was never defined.
35566Usually this means the macro was only invoked conditionally." >&2;}
35567   { (exit 1); exit 1; }; }
35568fi
35569if test -z "${COIN_HAS_OSICONIC_TRUE}" && test -z "${COIN_HAS_OSICONIC_FALSE}"; then
35570  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSICONIC\" was never defined.
35571Usually this means the macro was only invoked conditionally." >&5
35572echo "$as_me: error: conditional \"COIN_HAS_OSICONIC\" was never defined.
35573Usually this means the macro was only invoked conditionally." >&2;}
35574   { (exit 1); exit 1; }; }
35575fi
35576if test -z "${COIN_HAS_COLA_TRUE}" && test -z "${COIN_HAS_COLA_FALSE}"; then
35577  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COLA\" was never defined.
35578Usually this means the macro was only invoked conditionally." >&5
35579echo "$as_me: error: conditional \"COIN_HAS_COLA\" was never defined.
35580Usually this means the macro was only invoked conditionally." >&2;}
35581   { (exit 1); exit 1; }; }
35582fi
35583if test -z "${COIN_HAS_COLA_TRUE}" && test -z "${COIN_HAS_COLA_FALSE}"; then
35584  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COLA\" was never defined.
35585Usually this means the macro was only invoked conditionally." >&5
35586echo "$as_me: error: conditional \"COIN_HAS_COLA\" was never defined.
35587Usually this means the macro was only invoked conditionally." >&2;}
35588   { (exit 1); exit 1; }; }
35589fi
35590if test -z "${COIN_HAS_OSIIPOPT_TRUE}" && test -z "${COIN_HAS_OSIIPOPT_FALSE}"; then
35591  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSIIPOPT\" was never defined.
35592Usually this means the macro was only invoked conditionally." >&5
35593echo "$as_me: error: conditional \"COIN_HAS_OSIIPOPT\" was never defined.
35594Usually this means the macro was only invoked conditionally." >&2;}
35595   { (exit 1); exit 1; }; }
35596fi
35597if test -z "${COIN_HAS_OSIIPOPT_TRUE}" && test -z "${COIN_HAS_OSIIPOPT_FALSE}"; then
35598  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSIIPOPT\" was never defined.
35599Usually this means the macro was only invoked conditionally." >&5
35600echo "$as_me: error: conditional \"COIN_HAS_OSIIPOPT\" was never defined.
35601Usually this means the macro was only invoked conditionally." >&2;}
35602   { (exit 1); exit 1; }; }
35603fi
35604if test -z "${COIN_HAS_OSICPLEX_TRUE}" && test -z "${COIN_HAS_OSICPLEX_FALSE}"; then
35605  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSICPLEX\" was never defined.
35606Usually this means the macro was only invoked conditionally." >&5
35607echo "$as_me: error: conditional \"COIN_HAS_OSICPLEX\" was never defined.
35608Usually this means the macro was only invoked conditionally." >&2;}
35609   { (exit 1); exit 1; }; }
35610fi
35611if test -z "${COIN_HAS_OSICPLEX_TRUE}" && test -z "${COIN_HAS_OSICPLEX_FALSE}"; then
35612  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSICPLEX\" was never defined.
35613Usually this means the macro was only invoked conditionally." >&5
35614echo "$as_me: error: conditional \"COIN_HAS_OSICPLEX\" was never defined.
35615Usually this means the macro was only invoked conditionally." >&2;}
35616   { (exit 1); exit 1; }; }
35617fi
35618if test -z "${COIN_HAS_OSIMOSEK_TRUE}" && test -z "${COIN_HAS_OSIMOSEK_FALSE}"; then
35619  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSIMOSEK\" was never defined.
35620Usually this means the macro was only invoked conditionally." >&5
35621echo "$as_me: error: conditional \"COIN_HAS_OSIMOSEK\" was never defined.
35622Usually this means the macro was only invoked conditionally." >&2;}
35623   { (exit 1); exit 1; }; }
35624fi
35625if test -z "${COIN_HAS_OSIMOSEK_TRUE}" && test -z "${COIN_HAS_OSIMOSEK_FALSE}"; then
35626  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSIMOSEK\" was never defined.
35627Usually this means the macro was only invoked conditionally." >&5
35628echo "$as_me: error: conditional \"COIN_HAS_OSIMOSEK\" was never defined.
35629Usually this means the macro was only invoked conditionally." >&2;}
35630   { (exit 1); exit 1; }; }
35631fi
35632if test -z "${IPOPT_IPM_SOLVER_TRUE}" && test -z "${IPOPT_IPM_SOLVER_FALSE}"; then
35633  { { echo "$as_me:$LINENO: error: conditional \"IPOPT_IPM_SOLVER\" was never defined.
35634Usually this means the macro was only invoked conditionally." >&5
35635echo "$as_me: error: conditional \"IPOPT_IPM_SOLVER\" was never defined.
35636Usually this means the macro was only invoked conditionally." >&2;}
35637   { (exit 1); exit 1; }; }
35638fi
35639if test -z "${MOSEK_IPM_SOLVER_TRUE}" && test -z "${MOSEK_IPM_SOLVER_FALSE}"; then
35640  { { echo "$as_me:$LINENO: error: conditional \"MOSEK_IPM_SOLVER\" was never defined.
35641Usually this means the macro was only invoked conditionally." >&5
35642echo "$as_me: error: conditional \"MOSEK_IPM_SOLVER\" was never defined.
35643Usually this means the macro was only invoked conditionally." >&2;}
35644   { (exit 1); exit 1; }; }
35645fi
35646if test -z "${CPLEX_IPM_SOLVER_TRUE}" && test -z "${CPLEX_IPM_SOLVER_FALSE}"; then
35647  { { echo "$as_me:$LINENO: error: conditional \"CPLEX_IPM_SOLVER\" was never defined.
35648Usually this means the macro was only invoked conditionally." >&5
35649echo "$as_me: error: conditional \"CPLEX_IPM_SOLVER\" was never defined.
35650Usually this means the macro was only invoked conditionally." >&2;}
35651   { (exit 1); exit 1; }; }
35652fi
35653if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
35654  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
35655Usually this means the macro was only invoked conditionally." >&5
35656echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
35657Usually this means the macro was only invoked conditionally." >&2;}
35658   { (exit 1); exit 1; }; }
35659fi
35660if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
35661  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
35662Usually this means the macro was only invoked conditionally." >&5
35663echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
35664Usually this means the macro was only invoked conditionally." >&2;}
35665   { (exit 1); exit 1; }; }
35666fi
35667if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
35668  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
35669Usually this means the macro was only invoked conditionally." >&5
35670echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
35671Usually this means the macro was only invoked conditionally." >&2;}
35672   { (exit 1); exit 1; }; }
35673fi
35674if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
35675  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
35676Usually this means the macro was only invoked conditionally." >&5
35677echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
35678Usually this means the macro was only invoked conditionally." >&2;}
35679   { (exit 1); exit 1; }; }
35680fi
35681if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
35682  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
35683Usually this means the macro was only invoked conditionally." >&5
35684echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
35685Usually this means the macro was only invoked conditionally." >&2;}
35686   { (exit 1); exit 1; }; }
35687fi
35688if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
35689  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
35690Usually this means the macro was only invoked conditionally." >&5
35691echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
35692Usually this means the macro was only invoked conditionally." >&2;}
35693   { (exit 1); exit 1; }; }
35694fi
35695if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
35696  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
35697Usually this means the macro was only invoked conditionally." >&5
35698echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
35699Usually this means the macro was only invoked conditionally." >&2;}
35700   { (exit 1); exit 1; }; }
35701fi
35702if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
35703  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
35704Usually this means the macro was only invoked conditionally." >&5
35705echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
35706Usually this means the macro was only invoked conditionally." >&2;}
35707   { (exit 1); exit 1; }; }
35708fi
35709if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
35710  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
35711Usually this means the macro was only invoked conditionally." >&5
35712echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
35713Usually this means the macro was only invoked conditionally." >&2;}
35714   { (exit 1); exit 1; }; }
35715fi
35716if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
35717  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
35718Usually this means the macro was only invoked conditionally." >&5
35719echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
35720Usually this means the macro was only invoked conditionally." >&2;}
35721   { (exit 1); exit 1; }; }
35722fi
35723if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
35724  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
35725Usually this means the macro was only invoked conditionally." >&5
35726echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
35727Usually this means the macro was only invoked conditionally." >&2;}
35728   { (exit 1); exit 1; }; }
35729fi
35730if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
35731  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
35732Usually this means the macro was only invoked conditionally." >&5
35733echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
35734Usually this means the macro was only invoked conditionally." >&2;}
35735   { (exit 1); exit 1; }; }
35736fi
35737
35738: ${CONFIG_STATUS=./config.status}
35739ac_clean_files_save=$ac_clean_files
35740ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35741{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35742echo "$as_me: creating $CONFIG_STATUS" >&6;}
35743cat >$CONFIG_STATUS <<_ACEOF
35744#! $SHELL
35745# Generated by $as_me.
35746# Run this file to recreate the current configuration.
35747# Compiler output produced by configure, useful for debugging
35748# configure, is in config.log if it exists.
35749
35750debug=false
35751ac_cs_recheck=false
35752ac_cs_silent=false
35753SHELL=\${CONFIG_SHELL-$SHELL}
35754_ACEOF
35755
35756cat >>$CONFIG_STATUS <<\_ACEOF
35757## --------------------- ##
35758## M4sh Initialization.  ##
35759## --------------------- ##
35760
35761# Be Bourne compatible
35762if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35763  emulate sh
35764  NULLCMD=:
35765  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35766  # is contrary to our usage.  Disable this feature.
35767  alias -g '${1+"$@"}'='"$@"'
35768elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35769  set -o posix
35770fi
35771DUALCASE=1; export DUALCASE # for MKS sh
35772
35773# Support unset when possible.
35774if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35775  as_unset=unset
35776else
35777  as_unset=false
35778fi
35779
35780
35781# Work around bugs in pre-3.0 UWIN ksh.
35782$as_unset ENV MAIL MAILPATH
35783PS1='$ '
35784PS2='> '
35785PS4='+ '
35786
35787# NLS nuisances.
35788for as_var in \
35789  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35790  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35791  LC_TELEPHONE LC_TIME
35792do
35793  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35794    eval $as_var=C; export $as_var
35795  else
35796    $as_unset $as_var
35797  fi
35798done
35799
35800# Required to use basename.
35801if expr a : '\(a\)' >/dev/null 2>&1; then
35802  as_expr=expr
35803else
35804  as_expr=false
35805fi
35806
35807if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35808  as_basename=basename
35809else
35810  as_basename=false
35811fi
35812
35813
35814# Name of the executable.
35815as_me=`$as_basename "$0" ||
35816$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35817	 X"$0" : 'X\(//\)$' \| \
35818	 X"$0" : 'X\(/\)$' \| \
35819	 .     : '\(.\)' 2>/dev/null ||
35820echo X/"$0" |
35821    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35822  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
35823  	  /^X\/\(\/\).*/{ s//\1/; q; }
35824  	  s/.*/./; q'`
35825
35826
35827# PATH needs CR, and LINENO needs CR and PATH.
35828# Avoid depending upon Character Ranges.
35829as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35830as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35831as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35832as_cr_digits='0123456789'
35833as_cr_alnum=$as_cr_Letters$as_cr_digits
35834
35835# The user is always right.
35836if test "${PATH_SEPARATOR+set}" != set; then
35837  echo "#! /bin/sh" >conf$$.sh
35838  echo  "exit 0"   >>conf$$.sh
35839  chmod +x conf$$.sh
35840  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35841    PATH_SEPARATOR=';'
35842  else
35843    PATH_SEPARATOR=:
35844  fi
35845  rm -f conf$$.sh
35846fi
35847
35848
35849  as_lineno_1=$LINENO
35850  as_lineno_2=$LINENO
35851  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35852  test "x$as_lineno_1" != "x$as_lineno_2" &&
35853  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
35854  # Find who we are.  Look in the path if we contain no path at all
35855  # relative or not.
35856  case $0 in
35857    *[\\/]* ) as_myself=$0 ;;
35858    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35859for as_dir in $PATH
35860do
35861  IFS=$as_save_IFS
35862  test -z "$as_dir" && as_dir=.
35863  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35864done
35865
35866       ;;
35867  esac
35868  # We did not find ourselves, most probably we were run as `sh COMMAND'
35869  # in which case we are not to be found in the path.
35870  if test "x$as_myself" = x; then
35871    as_myself=$0
35872  fi
35873  if test ! -f "$as_myself"; then
35874    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35875echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35876   { (exit 1); exit 1; }; }
35877  fi
35878  case $CONFIG_SHELL in
35879  '')
35880    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35881for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35882do
35883  IFS=$as_save_IFS
35884  test -z "$as_dir" && as_dir=.
35885  for as_base in sh bash ksh sh5; do
35886	 case $as_dir in
35887	 /*)
35888	   if ("$as_dir/$as_base" -c '
35889  as_lineno_1=$LINENO
35890  as_lineno_2=$LINENO
35891  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35892  test "x$as_lineno_1" != "x$as_lineno_2" &&
35893  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
35894	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35895	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35896	     CONFIG_SHELL=$as_dir/$as_base
35897	     export CONFIG_SHELL
35898	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35899	   fi;;
35900	 esac
35901       done
35902done
35903;;
35904  esac
35905
35906  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35907  # uniformly replaced by the line number.  The first 'sed' inserts a
35908  # line-number line before each line; the second 'sed' does the real
35909  # work.  The second script uses 'N' to pair each line-number line
35910  # with the numbered line, and appends trailing '-' during
35911  # substitution so that $LINENO is not a special case at line end.
35912  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35913  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
35914  sed '=' <$as_myself |
35915    sed '
35916      N
35917      s,$,-,
35918      : loop
35919      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35920      t loop
35921      s,-$,,
35922      s,^['$as_cr_digits']*\n,,
35923    ' >$as_me.lineno &&
35924  chmod +x $as_me.lineno ||
35925    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35926echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35927   { (exit 1); exit 1; }; }
35928
35929  # Don't try to exec as it changes $[0], causing all sort of problems
35930  # (the dirname of $[0] is not the place where we might find the
35931  # original and so on.  Autoconf is especially sensible to this).
35932  . ./$as_me.lineno
35933  # Exit status is that of the last command.
35934  exit
35935}
35936
35937
35938case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35939  *c*,-n*) ECHO_N= ECHO_C='
35940' ECHO_T='	' ;;
35941  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35942  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
35943esac
35944
35945if expr a : '\(a\)' >/dev/null 2>&1; then
35946  as_expr=expr
35947else
35948  as_expr=false
35949fi
35950
35951rm -f conf$$ conf$$.exe conf$$.file
35952echo >conf$$.file
35953if ln -s conf$$.file conf$$ 2>/dev/null; then
35954  # We could just check for DJGPP; but this test a) works b) is more generic
35955  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35956  if test -f conf$$.exe; then
35957    # Don't use ln at all; we don't have any links
35958    as_ln_s='cp -p'
35959  else
35960    as_ln_s='ln -s'
35961  fi
35962elif ln conf$$.file conf$$ 2>/dev/null; then
35963  as_ln_s=ln
35964else
35965  as_ln_s='cp -p'
35966fi
35967rm -f conf$$ conf$$.exe conf$$.file
35968
35969if mkdir -p . 2>/dev/null; then
35970  as_mkdir_p=:
35971else
35972  test -d ./-p && rmdir ./-p
35973  as_mkdir_p=false
35974fi
35975
35976as_executable_p="test -f"
35977
35978# Sed expression to map a string onto a valid CPP name.
35979as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35980
35981# Sed expression to map a string onto a valid variable name.
35982as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35983
35984
35985# IFS
35986# We need space, tab and new line, in precisely that order.
35987as_nl='
35988'
35989IFS=" 	$as_nl"
35990
35991# CDPATH.
35992$as_unset CDPATH
35993
35994exec 6>&1
35995
35996# Open the log real soon, to keep \$[0] and so on meaningful, and to
35997# report actual input values of CONFIG_FILES etc. instead of their
35998# values after options handling.  Logging --version etc. is OK.
35999exec 5>>config.log
36000{
36001  echo
36002  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36003## Running $as_me. ##
36004_ASBOX
36005} >&5
36006cat >&5 <<_CSEOF
36007
36008This file was extended by CglConic $as_me 0.3, which was
36009generated by GNU Autoconf 2.59.  Invocation command line was
36010
36011  CONFIG_FILES    = $CONFIG_FILES
36012  CONFIG_HEADERS  = $CONFIG_HEADERS
36013  CONFIG_LINKS    = $CONFIG_LINKS
36014  CONFIG_COMMANDS = $CONFIG_COMMANDS
36015  $ $0 $@
36016
36017_CSEOF
36018echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36019echo >&5
36020_ACEOF
36021
36022# Files that config.status was made for.
36023if test -n "$ac_config_files"; then
36024  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36025fi
36026
36027if test -n "$ac_config_headers"; then
36028  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36029fi
36030
36031if test -n "$ac_config_links"; then
36032  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36033fi
36034
36035if test -n "$ac_config_commands"; then
36036  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36037fi
36038
36039cat >>$CONFIG_STATUS <<\_ACEOF
36040
36041ac_cs_usage="\
36042\`$as_me' instantiates files from templates according to the
36043current configuration.
36044
36045Usage: $0 [OPTIONS] [FILE]...
36046
36047  -h, --help       print this help, then exit
36048  -V, --version    print version number, then exit
36049  -q, --quiet      do not print progress messages
36050  -d, --debug      don't remove temporary files
36051      --recheck    update $as_me by reconfiguring in the same conditions
36052  --file=FILE[:TEMPLATE]
36053		   instantiate the configuration file FILE
36054  --header=FILE[:TEMPLATE]
36055		   instantiate the configuration header FILE
36056
36057Configuration files:
36058$config_files
36059
36060Configuration headers:
36061$config_headers
36062
36063Configuration commands:
36064$config_commands
36065
36066Report bugs to <bug-autoconf@gnu.org>."
36067_ACEOF
36068
36069cat >>$CONFIG_STATUS <<_ACEOF
36070ac_cs_version="\\
36071CglConic config.status 0.3
36072configured by $0, generated by GNU Autoconf 2.59,
36073  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36074
36075Copyright (C) 2003 Free Software Foundation, Inc.
36076This config.status script is free software; the Free Software Foundation
36077gives unlimited permission to copy, distribute and modify it."
36078srcdir=$srcdir
36079INSTALL="$INSTALL"
36080_ACEOF
36081
36082cat >>$CONFIG_STATUS <<\_ACEOF
36083# If no file are specified by the user, then we need to provide default
36084# value.  By we need to know if files were specified by the user.
36085ac_need_defaults=:
36086while test $# != 0
36087do
36088  case $1 in
36089  --*=*)
36090    ac_option=`expr "x$1" : 'x\([^=]*\)='`
36091    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36092    ac_shift=:
36093    ;;
36094  -*)
36095    ac_option=$1
36096    ac_optarg=$2
36097    ac_shift=shift
36098    ;;
36099  *) # This is not an option, so the user has probably given explicit
36100     # arguments.
36101     ac_option=$1
36102     ac_need_defaults=false;;
36103  esac
36104
36105  case $ac_option in
36106  # Handling of the options.
36107_ACEOF
36108cat >>$CONFIG_STATUS <<\_ACEOF
36109  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36110    ac_cs_recheck=: ;;
36111  --version | --vers* | -V )
36112    echo "$ac_cs_version"; exit 0 ;;
36113  --he | --h)
36114    # Conflict between --help and --header
36115    { { echo "$as_me:$LINENO: error: ambiguous option: $1
36116Try \`$0 --help' for more information." >&5
36117echo "$as_me: error: ambiguous option: $1
36118Try \`$0 --help' for more information." >&2;}
36119   { (exit 1); exit 1; }; };;
36120  --help | --hel | -h )
36121    echo "$ac_cs_usage"; exit 0 ;;
36122  --debug | --d* | -d )
36123    debug=: ;;
36124  --file | --fil | --fi | --f )
36125    $ac_shift
36126    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36127    ac_need_defaults=false;;
36128  --header | --heade | --head | --hea )
36129    $ac_shift
36130    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36131    ac_need_defaults=false;;
36132  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36133  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36134    ac_cs_silent=: ;;
36135
36136  # This is an error.
36137  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36138Try \`$0 --help' for more information." >&5
36139echo "$as_me: error: unrecognized option: $1
36140Try \`$0 --help' for more information." >&2;}
36141   { (exit 1); exit 1; }; } ;;
36142
36143  *) ac_config_targets="$ac_config_targets $1" ;;
36144
36145  esac
36146  shift
36147done
36148
36149ac_configure_extra_args=
36150
36151if $ac_cs_silent; then
36152  exec 6>/dev/null
36153  ac_configure_extra_args="$ac_configure_extra_args --silent"
36154fi
36155
36156_ACEOF
36157cat >>$CONFIG_STATUS <<_ACEOF
36158if \$ac_cs_recheck; then
36159  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36160  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36161fi
36162
36163_ACEOF
36164
36165cat >>$CONFIG_STATUS <<_ACEOF
36166#
36167# INIT-COMMANDS section.
36168#
36169
36170AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36171
36172_ACEOF
36173
36174
36175
36176cat >>$CONFIG_STATUS <<\_ACEOF
36177for ac_config_target in $ac_config_targets
36178do
36179  case "$ac_config_target" in
36180  # Handling of arguments.
36181  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36182  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
36183  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
36184  "src/CglConicGD1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CglConicGD1/Makefile" ;;
36185  "src/CglConicGD2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CglConicGD2/Makefile" ;;
36186  "src/CglConicMIR/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CglConicMIR/Makefile" ;;
36187  "src/CglConicOA/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CglConicOA/Makefile" ;;
36188  "src/CglConicIPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CglConicIPM/Makefile" ;;
36189  "src/CglConicIPMint/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CglConicIPMint/Makefile" ;;
36190  "cglconic.pc" ) CONFIG_FILES="$CONFIG_FILES cglconic.pc" ;;
36191  "cglconic-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES cglconic-uninstalled.pc" ;;
36192  "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
36193  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36194  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
36195  "src/config_cglconic.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_cglconic.h" ;;
36196  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36197echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36198   { (exit 1); exit 1; }; };;
36199  esac
36200done
36201
36202# If the user did not use the arguments to specify the items to instantiate,
36203# then the envvar interface is used.  Set only those that are not.
36204# We use the long form for the default assignment because of an extremely
36205# bizarre bug on SunOS 4.1.3.
36206if $ac_need_defaults; then
36207  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36208  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36209  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36210fi
36211
36212# Have a temporary directory for convenience.  Make it in the build tree
36213# simply because there is no reason to put it here, and in addition,
36214# creating and moving files from /tmp can sometimes cause problems.
36215# Create a temporary directory, and hook for its removal unless debugging.
36216$debug ||
36217{
36218  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36219  trap '{ (exit 1); exit 1; }' 1 2 13 15
36220}
36221
36222# Create a (secure) tmp directory for tmp files.
36223
36224{
36225  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36226  test -n "$tmp" && test -d "$tmp"
36227}  ||
36228{
36229  tmp=./confstat$$-$RANDOM
36230  (umask 077 && mkdir $tmp)
36231} ||
36232{
36233   echo "$me: cannot create a temporary directory in ." >&2
36234   { (exit 1); exit 1; }
36235}
36236
36237_ACEOF
36238
36239cat >>$CONFIG_STATUS <<_ACEOF
36240
36241#
36242# CONFIG_FILES section.
36243#
36244
36245# No need to generate the scripts if there are no CONFIG_FILES.
36246# This happens for instance when ./config.status config.h
36247if test -n "\$CONFIG_FILES"; then
36248  # Protect against being on the right side of a sed subst in config.status.
36249  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36250   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36251s,@SHELL@,$SHELL,;t t
36252s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36253s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36254s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36255s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36256s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36257s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36258s,@exec_prefix@,$exec_prefix,;t t
36259s,@prefix@,$prefix,;t t
36260s,@program_transform_name@,$program_transform_name,;t t
36261s,@bindir@,$bindir,;t t
36262s,@sbindir@,$sbindir,;t t
36263s,@libexecdir@,$libexecdir,;t t
36264s,@datadir@,$datadir,;t t
36265s,@sysconfdir@,$sysconfdir,;t t
36266s,@sharedstatedir@,$sharedstatedir,;t t
36267s,@localstatedir@,$localstatedir,;t t
36268s,@libdir@,$libdir,;t t
36269s,@includedir@,$includedir,;t t
36270s,@oldincludedir@,$oldincludedir,;t t
36271s,@infodir@,$infodir,;t t
36272s,@mandir@,$mandir,;t t
36273s,@build_alias@,$build_alias,;t t
36274s,@host_alias@,$host_alias,;t t
36275s,@target_alias@,$target_alias,;t t
36276s,@DEFS@,$DEFS,;t t
36277s,@ECHO_C@,$ECHO_C,;t t
36278s,@ECHO_N@,$ECHO_N,;t t
36279s,@ECHO_T@,$ECHO_T,;t t
36280s,@LIBS@,$LIBS,;t t
36281s,@build@,$build,;t t
36282s,@build_cpu@,$build_cpu,;t t
36283s,@build_vendor@,$build_vendor,;t t
36284s,@build_os@,$build_os,;t t
36285s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
36286s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
36287s,@have_svnversion@,$have_svnversion,;t t
36288s,@CGLCONIC_SVN_REV@,$CGLCONIC_SVN_REV,;t t
36289s,@CDEFS@,$CDEFS,;t t
36290s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
36291s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
36292s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
36293s,@sol_cc_compiler@,$sol_cc_compiler,;t t
36294s,@CC@,$CC,;t t
36295s,@CFLAGS@,$CFLAGS,;t t
36296s,@LDFLAGS@,$LDFLAGS,;t t
36297s,@CPPFLAGS@,$CPPFLAGS,;t t
36298s,@ac_ct_CC@,$ac_ct_CC,;t t
36299s,@EXEEXT@,$EXEEXT,;t t
36300s,@OBJEXT@,$OBJEXT,;t t
36301s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
36302s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
36303s,@MPICC@,$MPICC,;t t
36304s,@CXXDEFS@,$CXXDEFS,;t t
36305s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
36306s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
36307s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
36308s,@CXX@,$CXX,;t t
36309s,@CXXFLAGS@,$CXXFLAGS,;t t
36310s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36311s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
36312s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
36313s,@MPICXX@,$MPICXX,;t t
36314s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
36315s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
36316s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
36317s,@F77@,$F77,;t t
36318s,@ac_ct_F77@,$ac_ct_F77,;t t
36319s,@FFLAGS@,$FFLAGS,;t t
36320s,@MPIF77@,$MPIF77,;t t
36321s,@FLIBS@,$FLIBS,;t t
36322s,@EGREP@,$EGREP,;t t
36323s,@LN_S@,$LN_S,;t t
36324s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36325s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36326s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36327s,@CYGPATH_W@,$CYGPATH_W,;t t
36328s,@PACKAGE@,$PACKAGE,;t t
36329s,@VERSION@,$VERSION,;t t
36330s,@ACLOCAL@,$ACLOCAL,;t t
36331s,@AUTOCONF@,$AUTOCONF,;t t
36332s,@AUTOMAKE@,$AUTOMAKE,;t t
36333s,@AUTOHEADER@,$AUTOHEADER,;t t
36334s,@MAKEINFO@,$MAKEINFO,;t t
36335s,@install_sh@,$install_sh,;t t
36336s,@STRIP@,$STRIP,;t t
36337s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36338s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
36339s,@mkdir_p@,$mkdir_p,;t t
36340s,@AWK@,$AWK,;t t
36341s,@SET_MAKE@,$SET_MAKE,;t t
36342s,@am__leading_dot@,$am__leading_dot,;t t
36343s,@AMTAR@,$AMTAR,;t t
36344s,@am__tar@,$am__tar,;t t
36345s,@am__untar@,$am__untar,;t t
36346s,@DEPDIR@,$DEPDIR,;t t
36347s,@am__include@,$am__include,;t t
36348s,@am__quote@,$am__quote,;t t
36349s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
36350s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
36351s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
36352s,@CCDEPMODE@,$CCDEPMODE,;t t
36353s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
36354s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
36355s,@CXXDEPMODE@,$CXXDEPMODE,;t t
36356s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
36357s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
36358s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
36359s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
36360s,@MAINT@,$MAINT,;t t
36361s,@LIBTOOLM4@,$LIBTOOLM4,;t t
36362s,@have_autoconf@,$have_autoconf,;t t
36363s,@have_automake@,$have_automake,;t t
36364s,@have_svn@,$have_svn,;t t
36365s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
36366s,@AUX_DIR@,$AUX_DIR,;t t
36367s,@abs_source_dir@,$abs_source_dir,;t t
36368s,@abs_lib_dir@,$abs_lib_dir,;t t
36369s,@abs_include_dir@,$abs_include_dir,;t t
36370s,@abs_bin_dir@,$abs_bin_dir,;t t
36371s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
36372s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
36373s,@host@,$host,;t t
36374s,@host_cpu@,$host_cpu,;t t
36375s,@host_vendor@,$host_vendor,;t t
36376s,@host_os@,$host_os,;t t
36377s,@ECHO@,$ECHO,;t t
36378s,@AR@,$AR,;t t
36379s,@ac_ct_AR@,$ac_ct_AR,;t t
36380s,@RANLIB@,$RANLIB,;t t
36381s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36382s,@CPP@,$CPP,;t t
36383s,@CXXCPP@,$CXXCPP,;t t
36384s,@LIBTOOL@,$LIBTOOL,;t t
36385s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
36386s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
36387s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
36388s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
36389s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
36390s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
36391s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36392s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
36393s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
36394s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
36395s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
36396s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
36397s,@COINUTILS_LIBS@,$COINUTILS_LIBS,;t t
36398s,@COINUTILS_CFLAGS@,$COINUTILS_CFLAGS,;t t
36399s,@COINUTILS_DATA@,$COINUTILS_DATA,;t t
36400s,@COINUTILS_DEPENDENCIES@,$COINUTILS_DEPENDENCIES,;t t
36401s,@COINUTILS_LIBS_INSTALLED@,$COINUTILS_LIBS_INSTALLED,;t t
36402s,@COINUTILS_CFLAGS_INSTALLED@,$COINUTILS_CFLAGS_INSTALLED,;t t
36403s,@COINUTILS_DATA_INSTALLED@,$COINUTILS_DATA_INSTALLED,;t t
36404s,@CGLCONICLIB_CFLAGS@,$CGLCONICLIB_CFLAGS,;t t
36405s,@CGLCONICLIB_LIBS@,$CGLCONICLIB_LIBS,;t t
36406s,@CGLCONICLIB_PCLIBS@,$CGLCONICLIB_PCLIBS,;t t
36407s,@CGLCONICLIB_PCREQUIRES@,$CGLCONICLIB_PCREQUIRES,;t t
36408s,@CGLCONICLIB_DEPENDENCIES@,$CGLCONICLIB_DEPENDENCIES,;t t
36409s,@CGLCONICLIB_CFLAGS_INSTALLED@,$CGLCONICLIB_CFLAGS_INSTALLED,;t t
36410s,@CGLCONICLIB_LIBS_INSTALLED@,$CGLCONICLIB_LIBS_INSTALLED,;t t
36411s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t
36412s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t
36413s,@OSI_LIBS@,$OSI_LIBS,;t t
36414s,@OSI_CFLAGS@,$OSI_CFLAGS,;t t
36415s,@OSI_DATA@,$OSI_DATA,;t t
36416s,@OSI_DEPENDENCIES@,$OSI_DEPENDENCIES,;t t
36417s,@OSI_LIBS_INSTALLED@,$OSI_LIBS_INSTALLED,;t t
36418s,@OSI_CFLAGS_INSTALLED@,$OSI_CFLAGS_INSTALLED,;t t
36419s,@OSI_DATA_INSTALLED@,$OSI_DATA_INSTALLED,;t t
36420s,@COIN_HAS_OSI_TRUE@,$COIN_HAS_OSI_TRUE,;t t
36421s,@COIN_HAS_OSI_FALSE@,$COIN_HAS_OSI_FALSE,;t t
36422s,@OSICLP_LIBS@,$OSICLP_LIBS,;t t
36423s,@OSICLP_CFLAGS@,$OSICLP_CFLAGS,;t t
36424s,@OSICLP_DATA@,$OSICLP_DATA,;t t
36425s,@OSICLP_DEPENDENCIES@,$OSICLP_DEPENDENCIES,;t t
36426s,@OSICLP_LIBS_INSTALLED@,$OSICLP_LIBS_INSTALLED,;t t
36427s,@OSICLP_CFLAGS_INSTALLED@,$OSICLP_CFLAGS_INSTALLED,;t t
36428s,@OSICLP_DATA_INSTALLED@,$OSICLP_DATA_INSTALLED,;t t
36429s,@COIN_HAS_OSICLP_TRUE@,$COIN_HAS_OSICLP_TRUE,;t t
36430s,@COIN_HAS_OSICLP_FALSE@,$COIN_HAS_OSICLP_FALSE,;t t
36431s,@CGL_LIBS@,$CGL_LIBS,;t t
36432s,@CGL_CFLAGS@,$CGL_CFLAGS,;t t
36433s,@CGL_DATA@,$CGL_DATA,;t t
36434s,@CGL_DEPENDENCIES@,$CGL_DEPENDENCIES,;t t
36435s,@CGL_LIBS_INSTALLED@,$CGL_LIBS_INSTALLED,;t t
36436s,@CGL_CFLAGS_INSTALLED@,$CGL_CFLAGS_INSTALLED,;t t
36437s,@CGL_DATA_INSTALLED@,$CGL_DATA_INSTALLED,;t t
36438s,@COIN_HAS_CGL_TRUE@,$COIN_HAS_CGL_TRUE,;t t
36439s,@COIN_HAS_CGL_FALSE@,$COIN_HAS_CGL_FALSE,;t t
36440s,@OSICONIC_LIBS@,$OSICONIC_LIBS,;t t
36441s,@OSICONIC_CFLAGS@,$OSICONIC_CFLAGS,;t t
36442s,@OSICONIC_DATA@,$OSICONIC_DATA,;t t
36443s,@OSICONIC_DEPENDENCIES@,$OSICONIC_DEPENDENCIES,;t t
36444s,@OSICONIC_LIBS_INSTALLED@,$OSICONIC_LIBS_INSTALLED,;t t
36445s,@OSICONIC_CFLAGS_INSTALLED@,$OSICONIC_CFLAGS_INSTALLED,;t t
36446s,@OSICONIC_DATA_INSTALLED@,$OSICONIC_DATA_INSTALLED,;t t
36447s,@COIN_HAS_OSICONIC_TRUE@,$COIN_HAS_OSICONIC_TRUE,;t t
36448s,@COIN_HAS_OSICONIC_FALSE@,$COIN_HAS_OSICONIC_FALSE,;t t
36449s,@COLA_LIBS@,$COLA_LIBS,;t t
36450s,@COLA_CFLAGS@,$COLA_CFLAGS,;t t
36451s,@COLA_DATA@,$COLA_DATA,;t t
36452s,@COLA_DEPENDENCIES@,$COLA_DEPENDENCIES,;t t
36453s,@COLA_LIBS_INSTALLED@,$COLA_LIBS_INSTALLED,;t t
36454s,@COLA_CFLAGS_INSTALLED@,$COLA_CFLAGS_INSTALLED,;t t
36455s,@COLA_DATA_INSTALLED@,$COLA_DATA_INSTALLED,;t t
36456s,@COIN_HAS_COLA_TRUE@,$COIN_HAS_COLA_TRUE,;t t
36457s,@COIN_HAS_COLA_FALSE@,$COIN_HAS_COLA_FALSE,;t t
36458s,@OSIIPOPT_LIBS@,$OSIIPOPT_LIBS,;t t
36459s,@OSIIPOPT_CFLAGS@,$OSIIPOPT_CFLAGS,;t t
36460s,@OSIIPOPT_DATA@,$OSIIPOPT_DATA,;t t
36461s,@OSIIPOPT_DEPENDENCIES@,$OSIIPOPT_DEPENDENCIES,;t t
36462s,@OSIIPOPT_LIBS_INSTALLED@,$OSIIPOPT_LIBS_INSTALLED,;t t
36463s,@OSIIPOPT_CFLAGS_INSTALLED@,$OSIIPOPT_CFLAGS_INSTALLED,;t t
36464s,@OSIIPOPT_DATA_INSTALLED@,$OSIIPOPT_DATA_INSTALLED,;t t
36465s,@COIN_HAS_OSIIPOPT_TRUE@,$COIN_HAS_OSIIPOPT_TRUE,;t t
36466s,@COIN_HAS_OSIIPOPT_FALSE@,$COIN_HAS_OSIIPOPT_FALSE,;t t
36467s,@OSICPLEX_LIBS@,$OSICPLEX_LIBS,;t t
36468s,@OSICPLEX_CFLAGS@,$OSICPLEX_CFLAGS,;t t
36469s,@OSICPLEX_DATA@,$OSICPLEX_DATA,;t t
36470s,@OSICPLEX_DEPENDENCIES@,$OSICPLEX_DEPENDENCIES,;t t
36471s,@OSICPLEX_LIBS_INSTALLED@,$OSICPLEX_LIBS_INSTALLED,;t t
36472s,@OSICPLEX_CFLAGS_INSTALLED@,$OSICPLEX_CFLAGS_INSTALLED,;t t
36473s,@OSICPLEX_DATA_INSTALLED@,$OSICPLEX_DATA_INSTALLED,;t t
36474s,@COIN_HAS_OSICPLEX_TRUE@,$COIN_HAS_OSICPLEX_TRUE,;t t
36475s,@COIN_HAS_OSICPLEX_FALSE@,$COIN_HAS_OSICPLEX_FALSE,;t t
36476s,@OSIMOSEK_LIBS@,$OSIMOSEK_LIBS,;t t
36477s,@OSIMOSEK_CFLAGS@,$OSIMOSEK_CFLAGS,;t t
36478s,@OSIMOSEK_DATA@,$OSIMOSEK_DATA,;t t
36479s,@OSIMOSEK_DEPENDENCIES@,$OSIMOSEK_DEPENDENCIES,;t t
36480s,@OSIMOSEK_LIBS_INSTALLED@,$OSIMOSEK_LIBS_INSTALLED,;t t
36481s,@OSIMOSEK_CFLAGS_INSTALLED@,$OSIMOSEK_CFLAGS_INSTALLED,;t t
36482s,@OSIMOSEK_DATA_INSTALLED@,$OSIMOSEK_DATA_INSTALLED,;t t
36483s,@COIN_HAS_OSIMOSEK_TRUE@,$COIN_HAS_OSIMOSEK_TRUE,;t t
36484s,@COIN_HAS_OSIMOSEK_FALSE@,$COIN_HAS_OSIMOSEK_FALSE,;t t
36485s,@IPOPT_IPM_SOLVER_TRUE@,$IPOPT_IPM_SOLVER_TRUE,;t t
36486s,@IPOPT_IPM_SOLVER_FALSE@,$IPOPT_IPM_SOLVER_FALSE,;t t
36487s,@MOSEK_IPM_SOLVER_TRUE@,$MOSEK_IPM_SOLVER_TRUE,;t t
36488s,@MOSEK_IPM_SOLVER_FALSE@,$MOSEK_IPM_SOLVER_FALSE,;t t
36489s,@CPLEX_IPM_SOLVER_TRUE@,$CPLEX_IPM_SOLVER_TRUE,;t t
36490s,@CPLEX_IPM_SOLVER_FALSE@,$CPLEX_IPM_SOLVER_FALSE,;t t
36491s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
36492s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
36493s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
36494s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
36495s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
36496s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
36497s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
36498s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
36499s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
36500s,@BLAS_LIBS@,$BLAS_LIBS,;t t
36501s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t
36502s,@BLAS_DATA@,$BLAS_DATA,;t t
36503s,@BLAS_DEPENDENCIES@,$BLAS_DEPENDENCIES,;t t
36504s,@BLAS_LIBS_INSTALLED@,$BLAS_LIBS_INSTALLED,;t t
36505s,@BLAS_CFLAGS_INSTALLED@,$BLAS_CFLAGS_INSTALLED,;t t
36506s,@BLAS_DATA_INSTALLED@,$BLAS_DATA_INSTALLED,;t t
36507s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
36508s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
36509s,@LAPACK_LIBS@,$LAPACK_LIBS,;t t
36510s,@LAPACK_CFLAGS@,$LAPACK_CFLAGS,;t t
36511s,@LAPACK_DATA@,$LAPACK_DATA,;t t
36512s,@LAPACK_DEPENDENCIES@,$LAPACK_DEPENDENCIES,;t t
36513s,@LAPACK_LIBS_INSTALLED@,$LAPACK_LIBS_INSTALLED,;t t
36514s,@LAPACK_CFLAGS_INSTALLED@,$LAPACK_CFLAGS_INSTALLED,;t t
36515s,@LAPACK_DATA_INSTALLED@,$LAPACK_DATA_INSTALLED,;t t
36516s,@COIN_HAS_LAPACK_TRUE@,$COIN_HAS_LAPACK_TRUE,;t t
36517s,@COIN_HAS_LAPACK_FALSE@,$COIN_HAS_LAPACK_FALSE,;t t
36518s,@CGLCONIC_SUBDIRS@,$CGLCONIC_SUBDIRS,;t t
36519s,@CGLCONIC_SUBLIBS@,$CGLCONIC_SUBLIBS,;t t
36520s,@coin_have_doxygen@,$coin_have_doxygen,;t t
36521s,@coin_have_latex@,$coin_have_latex,;t t
36522s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
36523s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
36524s,@coin_doxy_logname@,$coin_doxy_logname,;t t
36525s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
36526s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
36527s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
36528s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
36529s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
36530s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
36531s,@LIBEXT@,$LIBEXT,;t t
36532s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
36533s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
36534s,@LIBOBJS@,$LIBOBJS,;t t
36535s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36536CEOF
36537
36538_ACEOF
36539
36540  cat >>$CONFIG_STATUS <<\_ACEOF
36541  # Split the substitutions into bite-sized pieces for seds with
36542  # small command number limits, like on Digital OSF/1 and HP-UX.
36543  ac_max_sed_lines=48
36544  ac_sed_frag=1 # Number of current file.
36545  ac_beg=1 # First line for current file.
36546  ac_end=$ac_max_sed_lines # Line after last line for current file.
36547  ac_more_lines=:
36548  ac_sed_cmds=
36549  while $ac_more_lines; do
36550    if test $ac_beg -gt 1; then
36551      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36552    else
36553      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36554    fi
36555    if test ! -s $tmp/subs.frag; then
36556      ac_more_lines=false
36557    else
36558      # The purpose of the label and of the branching condition is to
36559      # speed up the sed processing (if there are no `@' at all, there
36560      # is no need to browse any of the substitutions).
36561      # These are the two extra sed commands mentioned above.
36562      (echo ':t
36563  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36564      if test -z "$ac_sed_cmds"; then
36565	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36566      else
36567	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36568      fi
36569      ac_sed_frag=`expr $ac_sed_frag + 1`
36570      ac_beg=$ac_end
36571      ac_end=`expr $ac_end + $ac_max_sed_lines`
36572    fi
36573  done
36574  if test -z "$ac_sed_cmds"; then
36575    ac_sed_cmds=cat
36576  fi
36577fi # test -n "$CONFIG_FILES"
36578
36579_ACEOF
36580cat >>$CONFIG_STATUS <<\_ACEOF
36581for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36582  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36583  case $ac_file in
36584  - | *:- | *:-:* ) # input from stdin
36585	cat >$tmp/stdin
36586	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36587	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36588  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36589	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36590  * )   ac_file_in=$ac_file.in ;;
36591  esac
36592
36593  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36594  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36595$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36596	 X"$ac_file" : 'X\(//\)[^/]' \| \
36597	 X"$ac_file" : 'X\(//\)$' \| \
36598	 X"$ac_file" : 'X\(/\)' \| \
36599	 .     : '\(.\)' 2>/dev/null ||
36600echo X"$ac_file" |
36601    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36602  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36603  	  /^X\(\/\/\)$/{ s//\1/; q; }
36604  	  /^X\(\/\).*/{ s//\1/; q; }
36605  	  s/.*/./; q'`
36606  { if $as_mkdir_p; then
36607    mkdir -p "$ac_dir"
36608  else
36609    as_dir="$ac_dir"
36610    as_dirs=
36611    while test ! -d "$as_dir"; do
36612      as_dirs="$as_dir $as_dirs"
36613      as_dir=`(dirname "$as_dir") 2>/dev/null ||
36614$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36615	 X"$as_dir" : 'X\(//\)[^/]' \| \
36616	 X"$as_dir" : 'X\(//\)$' \| \
36617	 X"$as_dir" : 'X\(/\)' \| \
36618	 .     : '\(.\)' 2>/dev/null ||
36619echo X"$as_dir" |
36620    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36621  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36622  	  /^X\(\/\/\)$/{ s//\1/; q; }
36623  	  /^X\(\/\).*/{ s//\1/; q; }
36624  	  s/.*/./; q'`
36625    done
36626    test ! -n "$as_dirs" || mkdir $as_dirs
36627  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36628echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36629   { (exit 1); exit 1; }; }; }
36630
36631  ac_builddir=.
36632
36633if test "$ac_dir" != .; then
36634  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36635  # A "../" for each directory in $ac_dir_suffix.
36636  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36637else
36638  ac_dir_suffix= ac_top_builddir=
36639fi
36640
36641case $srcdir in
36642  .)  # No --srcdir option.  We are building in place.
36643    ac_srcdir=.
36644    if test -z "$ac_top_builddir"; then
36645       ac_top_srcdir=.
36646    else
36647       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36648    fi ;;
36649  [\\/]* | ?:[\\/]* )  # Absolute path.
36650    ac_srcdir=$srcdir$ac_dir_suffix;
36651    ac_top_srcdir=$srcdir ;;
36652  *) # Relative path.
36653    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36654    ac_top_srcdir=$ac_top_builddir$srcdir ;;
36655esac
36656
36657# Do not use `cd foo && pwd` to compute absolute paths, because
36658# the directories may not exist.
36659case `pwd` in
36660.) ac_abs_builddir="$ac_dir";;
36661*)
36662  case "$ac_dir" in
36663  .) ac_abs_builddir=`pwd`;;
36664  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
36665  *) ac_abs_builddir=`pwd`/"$ac_dir";;
36666  esac;;
36667esac
36668case $ac_abs_builddir in
36669.) ac_abs_top_builddir=${ac_top_builddir}.;;
36670*)
36671  case ${ac_top_builddir}. in
36672  .) ac_abs_top_builddir=$ac_abs_builddir;;
36673  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
36674  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
36675  esac;;
36676esac
36677case $ac_abs_builddir in
36678.) ac_abs_srcdir=$ac_srcdir;;
36679*)
36680  case $ac_srcdir in
36681  .) ac_abs_srcdir=$ac_abs_builddir;;
36682  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
36683  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
36684  esac;;
36685esac
36686case $ac_abs_builddir in
36687.) ac_abs_top_srcdir=$ac_top_srcdir;;
36688*)
36689  case $ac_top_srcdir in
36690  .) ac_abs_top_srcdir=$ac_abs_builddir;;
36691  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
36692  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
36693  esac;;
36694esac
36695
36696
36697  case $INSTALL in
36698  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36699  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
36700  esac
36701
36702  if test x"$ac_file" != x-; then
36703    { echo "$as_me:$LINENO: creating $ac_file" >&5
36704echo "$as_me: creating $ac_file" >&6;}
36705    rm -f "$ac_file"
36706  fi
36707  # Let's still pretend it is `configure' which instantiates (i.e., don't
36708  # use $as_me), people would be surprised to read:
36709  #    /* config.h.  Generated by config.status.  */
36710  if test x"$ac_file" = x-; then
36711    configure_input=
36712  else
36713    configure_input="$ac_file.  "
36714  fi
36715  configure_input=$configure_input"Generated from `echo $ac_file_in |
36716				     sed 's,.*/,,'` by configure."
36717
36718  # First look for the input files in the build tree, otherwise in the
36719  # src tree.
36720  ac_file_inputs=`IFS=:
36721    for f in $ac_file_in; do
36722      case $f in
36723      -) echo $tmp/stdin ;;
36724      [\\/$]*)
36725	 # Absolute (can't be DOS-style, as IFS=:)
36726	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36727echo "$as_me: error: cannot find input file: $f" >&2;}
36728   { (exit 1); exit 1; }; }
36729	 echo "$f";;
36730      *) # Relative
36731	 if test -f "$f"; then
36732	   # Build tree
36733	   echo "$f"
36734	 elif test -f "$srcdir/$f"; then
36735	   # Source tree
36736	   echo "$srcdir/$f"
36737	 else
36738	   # /dev/null tree
36739	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36740echo "$as_me: error: cannot find input file: $f" >&2;}
36741   { (exit 1); exit 1; }; }
36742	 fi;;
36743      esac
36744    done` || { (exit 1); exit 1; }
36745_ACEOF
36746cat >>$CONFIG_STATUS <<_ACEOF
36747  sed "$ac_vpsub
36748$extrasub
36749_ACEOF
36750cat >>$CONFIG_STATUS <<\_ACEOF
36751:t
36752/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36753s,@configure_input@,$configure_input,;t t
36754s,@srcdir@,$ac_srcdir,;t t
36755s,@abs_srcdir@,$ac_abs_srcdir,;t t
36756s,@top_srcdir@,$ac_top_srcdir,;t t
36757s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36758s,@builddir@,$ac_builddir,;t t
36759s,@abs_builddir@,$ac_abs_builddir,;t t
36760s,@top_builddir@,$ac_top_builddir,;t t
36761s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36762s,@INSTALL@,$ac_INSTALL,;t t
36763" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36764  rm -f $tmp/stdin
36765  if test x"$ac_file" != x-; then
36766    mv $tmp/out $ac_file
36767  else
36768    cat $tmp/out
36769    rm -f $tmp/out
36770  fi
36771
36772done
36773_ACEOF
36774cat >>$CONFIG_STATUS <<\_ACEOF
36775
36776#
36777# CONFIG_HEADER section.
36778#
36779
36780# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36781# NAME is the cpp macro being defined and VALUE is the value it is being given.
36782#
36783# ac_d sets the value in "#define NAME VALUE" lines.
36784ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
36785ac_dB='[	 ].*$,\1#\2'
36786ac_dC=' '
36787ac_dD=',;t'
36788# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36789ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
36790ac_uB='$,\1#\2define\3'
36791ac_uC=' '
36792ac_uD=',;t'
36793
36794for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36795  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36796  case $ac_file in
36797  - | *:- | *:-:* ) # input from stdin
36798	cat >$tmp/stdin
36799	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36800	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36801  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36802	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36803  * )   ac_file_in=$ac_file.in ;;
36804  esac
36805
36806  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36807echo "$as_me: creating $ac_file" >&6;}
36808
36809  # First look for the input files in the build tree, otherwise in the
36810  # src tree.
36811  ac_file_inputs=`IFS=:
36812    for f in $ac_file_in; do
36813      case $f in
36814      -) echo $tmp/stdin ;;
36815      [\\/$]*)
36816	 # Absolute (can't be DOS-style, as IFS=:)
36817	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36818echo "$as_me: error: cannot find input file: $f" >&2;}
36819   { (exit 1); exit 1; }; }
36820	 # Do quote $f, to prevent DOS paths from being IFS'd.
36821	 echo "$f";;
36822      *) # Relative
36823	 if test -f "$f"; then
36824	   # Build tree
36825	   echo "$f"
36826	 elif test -f "$srcdir/$f"; then
36827	   # Source tree
36828	   echo "$srcdir/$f"
36829	 else
36830	   # /dev/null tree
36831	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36832echo "$as_me: error: cannot find input file: $f" >&2;}
36833   { (exit 1); exit 1; }; }
36834	 fi;;
36835      esac
36836    done` || { (exit 1); exit 1; }
36837  # Remove the trailing spaces.
36838  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
36839
36840_ACEOF
36841
36842# Transform confdefs.h into two sed scripts, `conftest.defines' and
36843# `conftest.undefs', that substitutes the proper values into
36844# config.h.in to produce config.h.  The first handles `#define'
36845# templates, and the second `#undef' templates.
36846# And first: Protect against being on the right side of a sed subst in
36847# config.status.  Protect against being in an unquoted here document
36848# in config.status.
36849rm -f conftest.defines conftest.undefs
36850# Using a here document instead of a string reduces the quoting nightmare.
36851# Putting comments in sed scripts is not portable.
36852#
36853# `end' is used to avoid that the second main sed command (meant for
36854# 0-ary CPP macros) applies to n-ary macro definitions.
36855# See the Autoconf documentation for `clear'.
36856cat >confdef2sed.sed <<\_ACEOF
36857s/[\\&,]/\\&/g
36858s,[\\$`],\\&,g
36859t clear
36860: clear
36861s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36862t end
36863s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36864: end
36865_ACEOF
36866# If some macros were called several times there might be several times
36867# the same #defines, which is useless.  Nevertheless, we may not want to
36868# sort them, since we want the *last* AC-DEFINE to be honored.
36869uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36870sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36871rm -f confdef2sed.sed
36872
36873# This sed command replaces #undef with comments.  This is necessary, for
36874# example, in the case of _POSIX_SOURCE, which is predefined and required
36875# on some systems where configure will not decide to define it.
36876cat >>conftest.undefs <<\_ACEOF
36877s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36878_ACEOF
36879
36880# Break up conftest.defines because some shells have a limit on the size
36881# of here documents, and old seds have small limits too (100 cmds).
36882echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36883echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36884echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36885echo '  :' >>$CONFIG_STATUS
36886rm -f conftest.tail
36887while grep . conftest.defines >/dev/null
36888do
36889  # Write a limited-size here document to $tmp/defines.sed.
36890  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36891  # Speed up: don't consider the non `#define' lines.
36892  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
36893  # Work around the forget-to-reset-the-flag bug.
36894  echo 't clr' >>$CONFIG_STATUS
36895  echo ': clr' >>$CONFIG_STATUS
36896  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36897  echo 'CEOF
36898  sed -f $tmp/defines.sed $tmp/in >$tmp/out
36899  rm -f $tmp/in
36900  mv $tmp/out $tmp/in
36901' >>$CONFIG_STATUS
36902  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36903  rm -f conftest.defines
36904  mv conftest.tail conftest.defines
36905done
36906rm -f conftest.defines
36907echo '  fi # grep' >>$CONFIG_STATUS
36908echo >>$CONFIG_STATUS
36909
36910# Break up conftest.undefs because some shells have a limit on the size
36911# of here documents, and old seds have small limits too (100 cmds).
36912echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
36913rm -f conftest.tail
36914while grep . conftest.undefs >/dev/null
36915do
36916  # Write a limited-size here document to $tmp/undefs.sed.
36917  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36918  # Speed up: don't consider the non `#undef'
36919  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
36920  # Work around the forget-to-reset-the-flag bug.
36921  echo 't clr' >>$CONFIG_STATUS
36922  echo ': clr' >>$CONFIG_STATUS
36923  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
36924  echo 'CEOF
36925  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36926  rm -f $tmp/in
36927  mv $tmp/out $tmp/in
36928' >>$CONFIG_STATUS
36929  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36930  rm -f conftest.undefs
36931  mv conftest.tail conftest.undefs
36932done
36933rm -f conftest.undefs
36934
36935cat >>$CONFIG_STATUS <<\_ACEOF
36936  # Let's still pretend it is `configure' which instantiates (i.e., don't
36937  # use $as_me), people would be surprised to read:
36938  #    /* config.h.  Generated by config.status.  */
36939  if test x"$ac_file" = x-; then
36940    echo "/* Generated by configure.  */" >$tmp/config.h
36941  else
36942    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
36943  fi
36944  cat $tmp/in >>$tmp/config.h
36945  rm -f $tmp/in
36946  if test x"$ac_file" != x-; then
36947    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36948      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36949echo "$as_me: $ac_file is unchanged" >&6;}
36950    else
36951      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36952$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36953	 X"$ac_file" : 'X\(//\)[^/]' \| \
36954	 X"$ac_file" : 'X\(//\)$' \| \
36955	 X"$ac_file" : 'X\(/\)' \| \
36956	 .     : '\(.\)' 2>/dev/null ||
36957echo X"$ac_file" |
36958    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36959  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36960  	  /^X\(\/\/\)$/{ s//\1/; q; }
36961  	  /^X\(\/\).*/{ s//\1/; q; }
36962  	  s/.*/./; q'`
36963      { if $as_mkdir_p; then
36964    mkdir -p "$ac_dir"
36965  else
36966    as_dir="$ac_dir"
36967    as_dirs=
36968    while test ! -d "$as_dir"; do
36969      as_dirs="$as_dir $as_dirs"
36970      as_dir=`(dirname "$as_dir") 2>/dev/null ||
36971$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36972	 X"$as_dir" : 'X\(//\)[^/]' \| \
36973	 X"$as_dir" : 'X\(//\)$' \| \
36974	 X"$as_dir" : 'X\(/\)' \| \
36975	 .     : '\(.\)' 2>/dev/null ||
36976echo X"$as_dir" |
36977    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36978  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36979  	  /^X\(\/\/\)$/{ s//\1/; q; }
36980  	  /^X\(\/\).*/{ s//\1/; q; }
36981  	  s/.*/./; q'`
36982    done
36983    test ! -n "$as_dirs" || mkdir $as_dirs
36984  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36985echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36986   { (exit 1); exit 1; }; }; }
36987
36988      rm -f $ac_file
36989      mv $tmp/config.h $ac_file
36990    fi
36991  else
36992    cat $tmp/config.h
36993    rm -f $tmp/config.h
36994  fi
36995# Compute $ac_file's index in $config_headers.
36996_am_stamp_count=1
36997for _am_header in $config_headers :; do
36998  case $_am_header in
36999    $ac_file | $ac_file:* )
37000      break ;;
37001    * )
37002      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37003  esac
37004done
37005echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
37006$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37007	 X$ac_file : 'X\(//\)[^/]' \| \
37008	 X$ac_file : 'X\(//\)$' \| \
37009	 X$ac_file : 'X\(/\)' \| \
37010	 .     : '\(.\)' 2>/dev/null ||
37011echo X$ac_file |
37012    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37013  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37014  	  /^X\(\/\/\)$/{ s//\1/; q; }
37015  	  /^X\(\/\).*/{ s//\1/; q; }
37016  	  s/.*/./; q'`/stamp-h$_am_stamp_count
37017done
37018_ACEOF
37019cat >>$CONFIG_STATUS <<\_ACEOF
37020
37021#
37022# CONFIG_COMMANDS section.
37023#
37024for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37025  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37026  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37027  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37028$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37029	 X"$ac_dest" : 'X\(//\)[^/]' \| \
37030	 X"$ac_dest" : 'X\(//\)$' \| \
37031	 X"$ac_dest" : 'X\(/\)' \| \
37032	 .     : '\(.\)' 2>/dev/null ||
37033echo X"$ac_dest" |
37034    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37035  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37036  	  /^X\(\/\/\)$/{ s//\1/; q; }
37037  	  /^X\(\/\).*/{ s//\1/; q; }
37038  	  s/.*/./; q'`
37039  { if $as_mkdir_p; then
37040    mkdir -p "$ac_dir"
37041  else
37042    as_dir="$ac_dir"
37043    as_dirs=
37044    while test ! -d "$as_dir"; do
37045      as_dirs="$as_dir $as_dirs"
37046      as_dir=`(dirname "$as_dir") 2>/dev/null ||
37047$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37048	 X"$as_dir" : 'X\(//\)[^/]' \| \
37049	 X"$as_dir" : 'X\(//\)$' \| \
37050	 X"$as_dir" : 'X\(/\)' \| \
37051	 .     : '\(.\)' 2>/dev/null ||
37052echo X"$as_dir" |
37053    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37054  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37055  	  /^X\(\/\/\)$/{ s//\1/; q; }
37056  	  /^X\(\/\).*/{ s//\1/; q; }
37057  	  s/.*/./; q'`
37058    done
37059    test ! -n "$as_dirs" || mkdir $as_dirs
37060  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37061echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37062   { (exit 1); exit 1; }; }; }
37063
37064  ac_builddir=.
37065
37066if test "$ac_dir" != .; then
37067  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37068  # A "../" for each directory in $ac_dir_suffix.
37069  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37070else
37071  ac_dir_suffix= ac_top_builddir=
37072fi
37073
37074case $srcdir in
37075  .)  # No --srcdir option.  We are building in place.
37076    ac_srcdir=.
37077    if test -z "$ac_top_builddir"; then
37078       ac_top_srcdir=.
37079    else
37080       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37081    fi ;;
37082  [\\/]* | ?:[\\/]* )  # Absolute path.
37083    ac_srcdir=$srcdir$ac_dir_suffix;
37084    ac_top_srcdir=$srcdir ;;
37085  *) # Relative path.
37086    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37087    ac_top_srcdir=$ac_top_builddir$srcdir ;;
37088esac
37089
37090# Do not use `cd foo && pwd` to compute absolute paths, because
37091# the directories may not exist.
37092case `pwd` in
37093.) ac_abs_builddir="$ac_dir";;
37094*)
37095  case "$ac_dir" in
37096  .) ac_abs_builddir=`pwd`;;
37097  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
37098  *) ac_abs_builddir=`pwd`/"$ac_dir";;
37099  esac;;
37100esac
37101case $ac_abs_builddir in
37102.) ac_abs_top_builddir=${ac_top_builddir}.;;
37103*)
37104  case ${ac_top_builddir}. in
37105  .) ac_abs_top_builddir=$ac_abs_builddir;;
37106  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
37107  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
37108  esac;;
37109esac
37110case $ac_abs_builddir in
37111.) ac_abs_srcdir=$ac_srcdir;;
37112*)
37113  case $ac_srcdir in
37114  .) ac_abs_srcdir=$ac_abs_builddir;;
37115  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
37116  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
37117  esac;;
37118esac
37119case $ac_abs_builddir in
37120.) ac_abs_top_srcdir=$ac_top_srcdir;;
37121*)
37122  case $ac_top_srcdir in
37123  .) ac_abs_top_srcdir=$ac_abs_builddir;;
37124  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
37125  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
37126  esac;;
37127esac
37128
37129
37130  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37131echo "$as_me: executing $ac_dest commands" >&6;}
37132  case $ac_dest in
37133    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37134  # Strip MF so we end up with the name of the file.
37135  mf=`echo "$mf" | sed -e 's/:.*$//'`
37136  # Check whether this is an Automake generated Makefile or not.
37137  # We used to match only the files named `Makefile.in', but
37138  # some people rename them; so instead we look at the file content.
37139  # Grep'ing the first line is not enough: some people post-process
37140  # each Makefile.in and add a new line on top of each file to say so.
37141  # So let's grep whole file.
37142  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
37143    dirpart=`(dirname "$mf") 2>/dev/null ||
37144$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37145	 X"$mf" : 'X\(//\)[^/]' \| \
37146	 X"$mf" : 'X\(//\)$' \| \
37147	 X"$mf" : 'X\(/\)' \| \
37148	 .     : '\(.\)' 2>/dev/null ||
37149echo X"$mf" |
37150    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37151  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37152  	  /^X\(\/\/\)$/{ s//\1/; q; }
37153  	  /^X\(\/\).*/{ s//\1/; q; }
37154  	  s/.*/./; q'`
37155  else
37156    continue
37157  fi
37158  # Extract the definition of DEPDIR, am__include, and am__quote
37159  # from the Makefile without running `make'.
37160  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37161  test -z "$DEPDIR" && continue
37162  am__include=`sed -n 's/^am__include = //p' < "$mf"`
37163  test -z "am__include" && continue
37164  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37165  # When using ansi2knr, U may be empty or an underscore; expand it
37166  U=`sed -n 's/^U = //p' < "$mf"`
37167  # Find all dependency output files, they are included files with
37168  # $(DEPDIR) in their names.  We invoke sed twice because it is the
37169  # simplest approach to changing $(DEPDIR) to its actual value in the
37170  # expansion.
37171  for file in `sed -n "
37172    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37173       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37174    # Make sure the directory exists.
37175    test -f "$dirpart/$file" && continue
37176    fdir=`(dirname "$file") 2>/dev/null ||
37177$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37178	 X"$file" : 'X\(//\)[^/]' \| \
37179	 X"$file" : 'X\(//\)$' \| \
37180	 X"$file" : 'X\(/\)' \| \
37181	 .     : '\(.\)' 2>/dev/null ||
37182echo X"$file" |
37183    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37184  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37185  	  /^X\(\/\/\)$/{ s//\1/; q; }
37186  	  /^X\(\/\).*/{ s//\1/; q; }
37187  	  s/.*/./; q'`
37188    { if $as_mkdir_p; then
37189    mkdir -p $dirpart/$fdir
37190  else
37191    as_dir=$dirpart/$fdir
37192    as_dirs=
37193    while test ! -d "$as_dir"; do
37194      as_dirs="$as_dir $as_dirs"
37195      as_dir=`(dirname "$as_dir") 2>/dev/null ||
37196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37197	 X"$as_dir" : 'X\(//\)[^/]' \| \
37198	 X"$as_dir" : 'X\(//\)$' \| \
37199	 X"$as_dir" : 'X\(/\)' \| \
37200	 .     : '\(.\)' 2>/dev/null ||
37201echo X"$as_dir" |
37202    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37203  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37204  	  /^X\(\/\/\)$/{ s//\1/; q; }
37205  	  /^X\(\/\).*/{ s//\1/; q; }
37206  	  s/.*/./; q'`
37207    done
37208    test ! -n "$as_dirs" || mkdir $as_dirs
37209  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
37210echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
37211   { (exit 1); exit 1; }; }; }
37212
37213    # echo "creating $dirpart/$file"
37214    echo '# dummy' > "$dirpart/$file"
37215  done
37216done
37217 ;;
37218  esac
37219done
37220_ACEOF
37221
37222cat >>$CONFIG_STATUS <<\_ACEOF
37223
37224{ (exit 0); exit 0; }
37225_ACEOF
37226chmod +x $CONFIG_STATUS
37227ac_clean_files=$ac_clean_files_save
37228
37229
37230# configure is writing to config.log, and then calls config.status.
37231# config.status does its own redirection, appending to config.log.
37232# Unfortunately, on DOS this fails, as config.log is still kept open
37233# by configure, so config.status won't be able to write to it; its
37234# output is simply discarded.  So we exec the FD to /dev/null,
37235# effectively closing config.log, so it can be properly (re)opened and
37236# appended to by config.status.  When coming back to configure, we
37237# need to make the FD available again.
37238if test "$no_create" != yes; then
37239  ac_cs_success=:
37240  ac_config_status_args=
37241  test "$silent" = yes &&
37242    ac_config_status_args="$ac_config_status_args --quiet"
37243  exec 5>/dev/null
37244  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37245  exec 5>>config.log
37246  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37247  # would make configure fail if this is the last instruction.
37248  $ac_cs_success || { (exit 1); exit 1; }
37249fi
37250
37251
37252  if test x"$coin_vpath_link_files" = x; then : ; else
37253    lnkcmd="$coin_link_input_cmd"
37254    if test "$lnkcmd" = cp; then
37255      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
37256echo "$as_me: Copying data files for VPATH configuration" >&6;}
37257    else
37258      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
37259echo "$as_me: Creating VPATH links for data files" >&6;}
37260    fi
37261    for file in $coin_vpath_link_files; do
37262      dir=`(dirname "./$file") 2>/dev/null ||
37263$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37264	 X"./$file" : 'X\(//\)[^/]' \| \
37265	 X"./$file" : 'X\(//\)$' \| \
37266	 X"./$file" : 'X\(/\)' \| \
37267	 .     : '\(.\)' 2>/dev/null ||
37268echo X"./$file" |
37269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37270  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37271  	  /^X\(\/\/\)$/{ s//\1/; q; }
37272  	  /^X\(\/\).*/{ s//\1/; q; }
37273  	  s/.*/./; q'`
37274      if test -d $dir; then : ; else
37275        { if $as_mkdir_p; then
37276    mkdir -p $dir
37277  else
37278    as_dir=$dir
37279    as_dirs=
37280    while test ! -d "$as_dir"; do
37281      as_dirs="$as_dir $as_dirs"
37282      as_dir=`(dirname "$as_dir") 2>/dev/null ||
37283$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37284	 X"$as_dir" : 'X\(//\)[^/]' \| \
37285	 X"$as_dir" : 'X\(//\)$' \| \
37286	 X"$as_dir" : 'X\(/\)' \| \
37287	 .     : '\(.\)' 2>/dev/null ||
37288echo X"$as_dir" |
37289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37290  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37291  	  /^X\(\/\/\)$/{ s//\1/; q; }
37292  	  /^X\(\/\).*/{ s//\1/; q; }
37293  	  s/.*/./; q'`
37294    done
37295    test ! -n "$as_dirs" || mkdir $as_dirs
37296  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
37297echo "$as_me: error: cannot create directory $dir" >&2;}
37298   { (exit 1); exit 1; }; }; }
37299
37300      fi
37301      rm -f $file
37302      $lnkcmd $abs_source_dir/$file $file
37303    done
37304  fi
37305
37306  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
37307echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
37308  if test x$coin_projectdir = xyes; then
37309    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
37310echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
37311  else
37312    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
37313echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
37314  fi
37315else
37316  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
37317echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
37318fi
37319
37320
37321