source: trunk/Cbc/configure @ 1660

Last change on this file since 1660 was 1660, checked in by stefan, 8 years ago

change to new way of using and installing configuration header files

  • Property svn:executable set to *
File size: 1.0 MB
RevLine 
[311]1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
[1578]3# Generated by GNU Autoconf 2.59 for Cbc trunk.
[311]4#
[1464]5# Report bugs to <cbc@lists.coin-or.org>.
[311]6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
[1565]15# under the Eclipse Public License.
[311]16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
[1578]432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Cbc trunk'
[1464]434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
[311]435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
[1646]475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
[311]476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
[326]916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
[405]920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
[326]932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
[351]948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
[311]952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
[405]956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
[311]968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
[351]976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
[311]980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
[1464]996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
[311]1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
[1578]1008\`configure' configures Cbc trunk to adapt to many kinds of systems.
[311]1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
[1578]1074     short | recursive ) echo "Configuration of Cbc trunk:";;
[311]1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
[405]1081  --enable-debug          compile all projects with debug options tests
[1655]1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile this project (Cbc) with debug compiler flags
[458]1084  --enable-doscompile     Under Cygwin, compile so that executables run under
[527]1085                          DOS. Set to mingw to use gcc/g++/ld with
[865]1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
[311]1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
[1464]1100  --enable-pkg-config     use pkg-config if available (default is yes)
[1583]1101  --enable-interpackage-dependencies
1102                          whether to deduce Makefile dependencies from package
1103                          linker flags (default: yes)
[1646]1104  --enable-gnu-packages   compile with GNU packages (disabled by default)
[640]1105  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
[311]1106
1107Optional Packages:
1108  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1109  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
[405]1110  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1111  --with-cbc-checklevel specify the sanity check level for project Cbc
[311]1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
[1464]1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
[1655]1119
[1501]1120  --with-coindepend-lib linker flags for using package CoinDepend
[1464]1121  --with-coindepend-incdir
[1501]1122                          directory with header files for using package
[1464]1123                          CoinDepend
1124  --with-coindepend-datadir
[1501]1125                          directory with data files for using package
[1464]1126                          CoinDepend
[1501]1127  --with-clp-lib linker flags for using package Clp
1128  --with-clp-incdir directory with header files for using package Clp
1129  --with-clp-datadir directory with data files for using package Clp
1130  --with-ositests-lib linker flags for using package OsiTests
1131  --with-ositests-incdir directory with header files for using package
1132                          OsiTests
1133  --with-ositests-datadir directory with data files for using package OsiTests
1134  --with-sample-lib linker flags for using package Sample
1135  --with-sample-incdir directory with header files for using package Sample
1136  --with-sample-datadir directory with data files for using package Sample
1137  --with-netlib-lib linker flags for using package Netlib
1138  --with-netlib-incdir directory with header files for using package Netlib
1139  --with-netlib-datadir directory with data files for using package Netlib
1140  --with-miplib3-lib linker flags for using package Miplib3
1141  --with-miplib3-incdir directory with header files for using package Miplib3
1142  --with-miplib3-datadir directory with data files for using package Miplib3
1143  --with-dylp-lib linker flags for using package DyLP
1144  --with-dylp-incdir directory with header files for using package DyLP
1145  --with-dylp-datadir directory with data files for using package DyLP
1146  --with-vol-lib linker flags for using package Vol
1147  --with-vol-incdir directory with header files for using package Vol
1148  --with-vol-datadir directory with data files for using package Vol
1149  --with-cpx-lib linker flags for using package Cpx
1150  --with-cpx-incdir directory with header files for using package Cpx
1151  --with-cpx-datadir directory with data files for using package Cpx
1152  --with-glpk-lib linker flags for using package Glpk
1153  --with-glpk-incdir directory with header files for using package Glpk
1154  --with-glpk-datadir directory with data files for using package Glpk
1155  --with-grb-lib linker flags for using package Grb
1156  --with-grb-incdir directory with header files for using package Grb
1157  --with-grb-datadir directory with data files for using package Grb
1158  --with-msk-lib linker flags for using package Msk
1159  --with-msk-incdir directory with header files for using package Msk
1160  --with-msk-datadir directory with data files for using package Msk
1161  --with-spx-lib linker flags for using package Spx
1162  --with-spx-incdir directory with header files for using package Spx
1163  --with-spx-datadir directory with data files for using package Spx
1164  --with-xpr-lib linker flags for using package Xpr
1165  --with-xpr-incdir directory with header files for using package Xpr
1166  --with-xpr-datadir directory with data files for using package Xpr
1167  --with-asl-lib linker flags for using package ASL
1168  --with-asl-incdir directory with header files for using package ASL
1169  --with-asl-datadir directory with data files for using package ASL
[640]1170  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1171  --with-cbc-generic-solver
1172                          specify default solver for cbc-generic in lower case
1173                          letters (if not given, clp is assumed)
[1464]1174  --with-osicbc-default-solver
1175                          specify underlying solver for OsiCbc (default clp)
[1490]1176  --with-dot              use dot (from graphviz) when creating documentation
1177                          with doxygen if available; --without-dot to disable
[311]1178
1179Some influential environment variables:
[326]1180  CDEFS       Additional -D flags to be used when compiling C code.
[405]1181  ADD_CFLAGS  Additional C compiler options
1182  DBG_CFLAGS  Debug C compiler options
1183  OPT_CFLAGS  Optimize C compiler options
[326]1184  CC          C compiler command
1185  CFLAGS      C compiler flags
[311]1186  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1187              nonstandard directory <lib dir>
1188  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1189              headers in a nonstandard directory <include dir>
[351]1190  MPICC       C MPI Compiler
[326]1191  CXXDEFS     Additional -D flags to be used when compiling C++ code.
[405]1192  ADD_CXXFLAGS
1193              Additional C++ compiler options
1194  DBG_CXXFLAGS
1195              Debug C++ compiler options
1196  OPT_CXXFLAGS
1197              Optimize C++ compiler options
[326]1198  CXX         C++ compiler command
1199  CXXFLAGS    C++ compiler flags
[351]1200  MPICXX      C++ MPI Compiler
[311]1201  CPP         C preprocessor
1202  CXXCPP      C++ preprocessor
1203  F77         Fortran 77 compiler command
1204  FFLAGS      Fortran 77 compiler flags
[1464]1205  PKG_CONFIG  path to pkg-config utility
[311]1206
1207Use these variables to override the choices made by `configure' or to help
1208it to find libraries and programs with nonstandard names/locations.
1209
[1464]1210Report bugs to <cbc@lists.coin-or.org>.
[311]1211_ACEOF
1212fi
1213
1214if test "$ac_init_help" = "recursive"; then
1215  # If there are subdirs, report their specific --help.
1216  ac_popdir=`pwd`
1217  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1218    test -d $ac_dir || continue
1219    ac_builddir=.
1220
1221if test "$ac_dir" != .; then
1222  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1223  # A "../" for each directory in $ac_dir_suffix.
1224  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1225else
1226  ac_dir_suffix= ac_top_builddir=
1227fi
1228
1229case $srcdir in
1230  .)  # No --srcdir option.  We are building in place.
1231    ac_srcdir=.
1232    if test -z "$ac_top_builddir"; then
1233       ac_top_srcdir=.
1234    else
1235       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1236    fi ;;
1237  [\\/]* | ?:[\\/]* )  # Absolute path.
1238    ac_srcdir=$srcdir$ac_dir_suffix;
1239    ac_top_srcdir=$srcdir ;;
1240  *) # Relative path.
1241    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1242    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1243esac
1244
1245# Do not use `cd foo && pwd` to compute absolute paths, because
1246# the directories may not exist.
1247case `pwd` in
1248.) ac_abs_builddir="$ac_dir";;
1249*)
1250  case "$ac_dir" in
1251  .) ac_abs_builddir=`pwd`;;
1252  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1253  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1254  esac;;
1255esac
1256case $ac_abs_builddir in
1257.) ac_abs_top_builddir=${ac_top_builddir}.;;
1258*)
1259  case ${ac_top_builddir}. in
1260  .) ac_abs_top_builddir=$ac_abs_builddir;;
1261  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1262  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1263  esac;;
1264esac
1265case $ac_abs_builddir in
1266.) ac_abs_srcdir=$ac_srcdir;;
1267*)
1268  case $ac_srcdir in
1269  .) ac_abs_srcdir=$ac_abs_builddir;;
1270  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1271  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1272  esac;;
1273esac
1274case $ac_abs_builddir in
1275.) ac_abs_top_srcdir=$ac_top_srcdir;;
1276*)
1277  case $ac_top_srcdir in
1278  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1279  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1280  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1281  esac;;
1282esac
1283
1284    cd $ac_dir
1285    # Check for guested configure; otherwise get Cygnus style configure.
1286    if test -f $ac_srcdir/configure.gnu; then
1287      echo
1288      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1289    elif test -f $ac_srcdir/configure; then
1290      echo
1291      $SHELL $ac_srcdir/configure  --help=recursive
1292    elif test -f $ac_srcdir/configure.ac ||
1293           test -f $ac_srcdir/configure.in; then
1294      echo
1295      $ac_configure --help
1296    else
1297      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1298    fi
1299    cd $ac_popdir
1300  done
1301fi
1302
1303test -n "$ac_init_help" && exit 0
1304if $ac_init_version; then
1305  cat <<\_ACEOF
[1578]1306Cbc configure trunk
[311]1307generated by GNU Autoconf 2.59
1308
1309Copyright (C) 2003 Free Software Foundation, Inc.
1310This configure script is free software; the Free Software Foundation
1311gives unlimited permission to copy, distribute and modify it.
1312
1313
1314Copyright 2006 International Business Machines and others.
1315All Rights Reserved.
1316This file is part of the open source package Coin which is distributed
[1565]1317under the Eclipse Public License.
[311]1318_ACEOF
1319  exit 0
1320fi
1321exec 5>config.log
1322cat >&5 <<_ACEOF
1323This file contains any messages produced by compilers while
1324running configure, to aid debugging if configure makes a mistake.
1325
[1578]1326It was created by Cbc $as_me trunk, which was
[311]1327generated by GNU Autoconf 2.59.  Invocation command line was
1328
1329  $ $0 $@
1330
1331_ACEOF
1332{
1333cat <<_ASUNAME
1334## --------- ##
1335## Platform. ##
1336## --------- ##
1337
1338hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1339uname -m = `(uname -m) 2>/dev/null || echo unknown`
1340uname -r = `(uname -r) 2>/dev/null || echo unknown`
1341uname -s = `(uname -s) 2>/dev/null || echo unknown`
1342uname -v = `(uname -v) 2>/dev/null || echo unknown`
1343
1344/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1345/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1346
1347/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1348/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1349/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1350hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1351/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1352/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1353/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1354
1355_ASUNAME
1356
1357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358for as_dir in $PATH
1359do
1360  IFS=$as_save_IFS
1361  test -z "$as_dir" && as_dir=.
1362  echo "PATH: $as_dir"
1363done
1364
1365} >&5
1366
1367cat >&5 <<_ACEOF
1368
1369
1370## ----------- ##
1371## Core tests. ##
1372## ----------- ##
1373
1374_ACEOF
1375
1376
1377# Keep a trace of the command line.
1378# Strip out --no-create and --no-recursion so they do not pile up.
1379# Strip out --silent because we don't want to record it for future runs.
1380# Also quote any args containing shell meta-characters.
1381# Make two passes to allow for proper duplicate-argument suppression.
1382ac_configure_args=
1383ac_configure_args0=
1384ac_configure_args1=
1385ac_sep=
1386ac_must_keep_next=false
1387for ac_pass in 1 2
1388do
1389  for ac_arg
1390  do
1391    case $ac_arg in
1392    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1393    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1394    | -silent | --silent | --silen | --sile | --sil)
1395      continue ;;
1396    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1397      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1398    esac
1399    case $ac_pass in
1400    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1401    2)
1402      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1403      if test $ac_must_keep_next = true; then
1404        ac_must_keep_next=false # Got value, back to normal.
1405      else
1406        case $ac_arg in
1407          *=* | --config-cache | -C | -disable-* | --disable-* \
1408          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1409          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1410          | -with-* | --with-* | -without-* | --without-* | --x)
1411            case "$ac_configure_args0 " in
1412              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1413            esac
1414            ;;
1415          -* ) ac_must_keep_next=true ;;
1416        esac
1417      fi
1418      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1419      # Get rid of the leading space.
1420      ac_sep=" "
1421      ;;
1422    esac
1423  done
1424done
1425$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1426$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1427
1428# When interrupted or exit'd, cleanup temporary files, and complete
1429# config.log.  We remove comments because anyway the quotes in there
1430# would cause problems or look ugly.
1431# WARNING: Be sure not to use single quotes in there, as some shells,
1432# such as our DU 5.0 friend, will then `close' the trap.
1433trap 'exit_status=$?
1434  # Save into config.log some information that might help in debugging.
1435  {
1436    echo
1437
1438    cat <<\_ASBOX
1439## ---------------- ##
1440## Cache variables. ##
1441## ---------------- ##
1442_ASBOX
1443    echo
1444    # The following way of writing the cache mishandles newlines in values,
1445{
1446  (set) 2>&1 |
1447    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1448    *ac_space=\ *)
1449      sed -n \
1450        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1451          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1452      ;;
1453    *)
1454      sed -n \
1455        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1456      ;;
1457    esac;
1458}
1459    echo
1460
1461    cat <<\_ASBOX
1462## ----------------- ##
1463## Output variables. ##
1464## ----------------- ##
1465_ASBOX
1466    echo
1467    for ac_var in $ac_subst_vars
1468    do
1469      eval ac_val=$`echo $ac_var`
1470      echo "$ac_var='"'"'$ac_val'"'"'"
1471    done | sort
1472    echo
1473
1474    if test -n "$ac_subst_files"; then
1475      cat <<\_ASBOX
1476## ------------- ##
1477## Output files. ##
1478## ------------- ##
1479_ASBOX
1480      echo
1481      for ac_var in $ac_subst_files
1482      do
1483        eval ac_val=$`echo $ac_var`
1484        echo "$ac_var='"'"'$ac_val'"'"'"
1485      done | sort
1486      echo
1487    fi
1488
1489    if test -s confdefs.h; then
1490      cat <<\_ASBOX
1491## ----------- ##
1492## confdefs.h. ##
1493## ----------- ##
1494_ASBOX
1495      echo
1496      sed "/^$/d" confdefs.h | sort
1497      echo
1498    fi
1499    test "$ac_signal" != 0 &&
1500      echo "$as_me: caught signal $ac_signal"
1501    echo "$as_me: exit $exit_status"
1502  } >&5
1503  rm -f core *.core &&
1504  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1505    exit $exit_status
1506     ' 0
1507for ac_signal in 1 2 13 15; do
1508  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1509done
1510ac_signal=0
1511
1512# confdefs.h avoids OS command line length limits that DEFS can exceed.
1513rm -rf conftest* confdefs.h
1514# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1515echo >confdefs.h
1516
1517# Predefined preprocessor variables.
1518
1519cat >>confdefs.h <<_ACEOF
1520#define PACKAGE_NAME "$PACKAGE_NAME"
1521_ACEOF
1522
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_VERSION "$PACKAGE_VERSION"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_STRING "$PACKAGE_STRING"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1541_ACEOF
1542
1543
1544# Let the site file select an alternate cache file if it wants to.
1545# Prefer explicitly selected file to automatically selected ones.
1546if test -z "$CONFIG_SITE"; then
1547  if test "x$prefix" != xNONE; then
1548    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1549  else
1550    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1551  fi
1552fi
1553for ac_site_file in $CONFIG_SITE; do
1554  if test -r "$ac_site_file"; then
1555    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1556echo "$as_me: loading site script $ac_site_file" >&6;}
1557    sed 's/^/| /' "$ac_site_file" >&5
1558    . "$ac_site_file"
1559  fi
1560done
1561
1562if test -r "$cache_file"; then
1563  # Some versions of bash will fail to source /dev/null (special
1564  # files actually), so we avoid doing that.
1565  if test -f "$cache_file"; then
1566    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1567echo "$as_me: loading cache $cache_file" >&6;}
1568    case $cache_file in
1569      [\\/]* | ?:[\\/]* ) . $cache_file;;
1570      *)                      . ./$cache_file;;
1571    esac
1572  fi
1573else
1574  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1575echo "$as_me: creating cache $cache_file" >&6;}
1576  >$cache_file
1577fi
1578
1579# Check that the precious variables saved in the cache have kept the same
1580# value.
1581ac_cache_corrupted=false
1582for ac_var in `(set) 2>&1 |
1583               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1584  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1585  eval ac_new_set=\$ac_env_${ac_var}_set
1586  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1587  eval ac_new_val="\$ac_env_${ac_var}_value"
1588  case $ac_old_set,$ac_new_set in
1589    set,)
1590      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1591echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1592      ac_cache_corrupted=: ;;
1593    ,set)
1594      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1595echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1596      ac_cache_corrupted=: ;;
1597    ,);;
1598    *)
1599      if test "x$ac_old_val" != "x$ac_new_val"; then
1600        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1601echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1602        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1603echo "$as_me:   former value:  $ac_old_val" >&2;}
1604        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1605echo "$as_me:   current value: $ac_new_val" >&2;}
1606        ac_cache_corrupted=:
1607      fi;;
1608  esac
1609  # Pass precious variables to config.status.
1610  if test "$ac_new_set" = set; then
1611    case $ac_new_val in
1612    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1613      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1614    *) ac_arg=$ac_var=$ac_new_val ;;
1615    esac
1616    case " $ac_configure_args " in
1617      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1618      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1619    esac
1620  fi
1621done
1622if $ac_cache_corrupted; then
1623  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1624echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1625  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1626echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1627   { (exit 1); exit 1; }; }
1628fi
1629
1630ac_ext=c
1631ac_cpp='$CPP $CPPFLAGS'
1632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665# List one file in the package so that the configure script can test
1666# whether the package is actually there
1667
1668
[340]1669# Where should everything be installed by default?  Here, we want it
1670# to be installed directly in 'bin', 'lib', 'include' subdirectories
1671# of the directory where configure is run.  The default would be
1672# /usr/local.
1673
1674
[311]1675#############################################################################
1676#                         Standard build tool stuff                         #
1677#############################################################################
1678
1679# Get the system type
1680ac_aux_dir=
1681for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1682  if test -f $ac_dir/install-sh; then
1683    ac_aux_dir=$ac_dir
1684    ac_install_sh="$ac_aux_dir/install-sh -c"
1685    break
1686  elif test -f $ac_dir/install.sh; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/install.sh -c"
1689    break
1690  elif test -f $ac_dir/shtool; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/shtool install -c"
1693    break
1694  fi
1695done
1696if test -z "$ac_aux_dir"; then
1697  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1698echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1699   { (exit 1); exit 1; }; }
1700fi
1701ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1702ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1703ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1704
1705# Make sure we can run config.sub.
1706$ac_config_sub sun4 >/dev/null 2>&1 ||
1707  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1708echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1709   { (exit 1); exit 1; }; }
1710
1711echo "$as_me:$LINENO: checking build system type" >&5
1712echo $ECHO_N "checking build system type... $ECHO_C" >&6
1713if test "${ac_cv_build+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  ac_cv_build_alias=$build_alias
1717test -z "$ac_cv_build_alias" &&
1718  ac_cv_build_alias=`$ac_config_guess`
1719test -z "$ac_cv_build_alias" &&
1720  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1721echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1722   { (exit 1); exit 1; }; }
1723ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1724  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1725echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1726   { (exit 1); exit 1; }; }
1727
1728fi
1729echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1730echo "${ECHO_T}$ac_cv_build" >&6
1731build=$ac_cv_build
1732build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1733build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1734build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1735
1736
1737
1738# If this project depends on external projects, the Externals file in
1739# the source root directory contains definition of where to find those
1740# externals.  The following macro ensures that those externals are
1741# retrieved by svn if they are not there yet.
1742
[1203]1743# As backup, we make sure we don't loose an FLIBS if it has been set
1744# by the user
1745save_FLIBS="$FLIBS"
1746
[311]1747# A useful makefile conditional that is always false
1748
1749
1750if false; then
1751  ALWAYS_FALSE_TRUE=
1752  ALWAYS_FALSE_FALSE='#'
1753else
1754  ALWAYS_FALSE_TRUE='#'
1755  ALWAYS_FALSE_FALSE=
1756fi
1757
1758
[1475]1759# We set the following variable so that we know later in AC_COIN_FINALIZE
1760# that we are in a project main directory
1761coin_projectdir=yes
1762
[1610]1763# Set the project's version numbers
[1464]1764
[1604]1765
[1464]1766cat >>confdefs.h <<_ACEOF
1767#define CBC_VERSION "$PACKAGE_VERSION"
1768_ACEOF
1769
1770
[1610]1771  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1772  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1773  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1774  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1775  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1776  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1777
1778cat >>confdefs.h <<_ACEOF
1779#define CBC_VERSION_MAJOR $coin_majorver
1780_ACEOF
1781
1782
1783cat >>confdefs.h <<_ACEOF
1784#define CBC_VERSION_MINOR $coin_minorver
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define CBC_VERSION_RELEASE $coin_releasever
1790_ACEOF
1791
1792
[1604]1793  # We use the following variable to have a string with the upper case
1794  # version of the project name
1795  COIN_PRJCT=CBC
1796
1797  # Set the project's SVN revision number. The complicated sed expression
1798  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1799  # as a single number.
1800  # Extract the first word of "svnversion", so it can be a program name with args.
[1464]1801set dummy svnversion; ac_word=$2
1802echo "$as_me:$LINENO: checking for $ac_word" >&5
1803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804if test "${ac_cv_prog_have_svnversion+set}" = set; then
1805  echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807  if test -n "$have_svnversion"; then
1808  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1809else
1810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811for as_dir in $PATH
1812do
1813  IFS=$as_save_IFS
1814  test -z "$as_dir" && as_dir=.
1815  for ac_exec_ext in '' $ac_executable_extensions; do
1816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817    ac_cv_prog_have_svnversion="yes"
1818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819    break 2
1820  fi
1821done
1822done
1823
1824  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1825fi
1826fi
1827have_svnversion=$ac_cv_prog_have_svnversion
1828if test -n "$have_svnversion"; then
1829  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1830echo "${ECHO_T}$have_svnversion" >&6
1831else
1832  echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
[1604]1836  if test "x$have_svnversion" = xyes; then
[1464]1837
[1631]1838    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
[1633]1839    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
[1631]1840      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
[1464]1841
1842cat >>confdefs.h <<_ACEOF
[1501]1843#define CBC_SVN_REV $CBC_SVN_REV
[1464]1844_ACEOF
1845
[1604]1846    fi
[1464]1847  fi
1848
[1604]1849
1850
[1475]1851# Capture libtool library version, if given.
[311]1852
[340]1853
[1456]1854
[1604]1855
[311]1856# Check if user wants to produce debugging code
1857
1858echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1859echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1860
1861# Check whether --enable-debug or --disable-debug was given.
1862if test "${enable_debug+set}" = set; then
1863  enableval="$enable_debug"
1864  case "${enableval}" in
[405]1865   yes) coin_debug_compile=true
[710]1866        if test "${enable_shared+set}" = set; then :; else
1867          enable_shared=no
1868        fi
[405]1869        ;;
1870   no)  coin_debug_compile=false
1871        ;;
1872   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
[311]1873echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1874   { (exit 1); exit 1; }; }
[405]1875        ;;
1876esac
[311]1877else
1878  coin_debug_compile=false
1879fi;
1880
[405]1881# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1882if test "${enable_debug_cbc+set}" = set; then
1883  enableval="$enable_debug_cbc"
1884  case "${enableval}" in
1885    yes) coin_debug_compile=true
1886         ;;
1887    no)  coin_debug_compile=false
1888         ;;
1889    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1890echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1891   { (exit 1); exit 1; }; }
1892         ;;
1893 esac
1894else
1895  :
1896fi;
1897
1898 # m4_ifvaln([Cbc],
1899
[311]1900if test $coin_debug_compile = true; then
1901  echo "$as_me:$LINENO: result: yes" >&5
1902echo "${ECHO_T}yes" >&6
1903else
1904  echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908
[405]1909# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1910if test "${with_cbc_verbosity+set}" = set; then
1911  withval="$with_cbc_verbosity"
[640]1912  if test "$withval" = yes; then
1913                withval=1
1914              fi
1915              coin_cbc_verbosity=$withval
[405]1916else
1917  coin_cbc_verbosity=0
1918fi;
[311]1919
[405]1920cat >>confdefs.h <<_ACEOF
1921#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1922_ACEOF
1923
1924
1925
1926# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1927if test "${with_cbc_checklevel+set}" = set; then
1928  withval="$with_cbc_checklevel"
[640]1929  if test "$withval" = yes; then
1930                withval=1
1931              fi
1932              coin_cbc_checklevel=$withval
[311]1933else
[405]1934  coin_cbc_checklevel=0
1935fi;
[311]1936
[405]1937cat >>confdefs.h <<_ACEOF
1938#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1939_ACEOF
[311]1940
1941
[405]1942 # m4_ifvaln([Cbc],
1943
1944
1945
[326]1946# Get the name of the C++ compiler and appropriate compiler options
[363]1947case $build in
1948  *-mingw*)
1949    if test "${LD+set}" = set; then :; else
1950      LD=link
1951    fi
1952    ;;
[527]1953 esac
1954 case $enable_doscompile in
1955   msvc)
1956     if test "x${LD+set}" = xset; then :; else
1957       LD=link
1958     fi
1959     ;;
1960 esac
[317]1961
[527]1962
1963 # Check whether --enable-doscompile or --disable-doscompile was given.
[458]1964if test "${enable_doscompile+set}" = set; then
1965  enableval="$enable_doscompile"
[527]1966  if test "$enable_doscompile" != no; then
1967     case $build in
[765]1968       *-cygwin* | *-mingw*) ;;
1969       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1970echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
[458]1971   { (exit 1); exit 1; }; } ;;
[527]1972     esac
1973   fi
[458]1974else
1975  enable_doscompile=no
1976fi;
[527]1977 case "$enable_doscompile" in
[765]1978   mingw)
1979     case $build in
1980       *-mingw*) enable_doscompile=no ;;
1981     esac
1982     ;;
1983   msvc|no) ;;
[527]1984   yes) enable_doscompile=mingw ;;
1985   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1986                    Try configure --help=recursive." >&5
1987echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1988                    Try configure --help=recursive." >&2;}
1989   { (exit 1); exit 1; }; }
1990      ;;
1991  esac
1992  if test "$enable_doscompile" != no ; then
1993    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1994echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1995  fi
[363]1996
1997
[458]1998
1999
[326]2000ac_ext=c
2001ac_cpp='$CPP $CPPFLAGS'
2002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004ac_compiler_gnu=$ac_cv_c_compiler_gnu
[317]2005
[311]2006
[326]2007# For consistency, we set the C compiler to the same value of the C++
2008# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2009if test x"$CXX" != x; then
[389]2010  case "$CXX" in
[865]2011    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
[326]2012      if test x"$CC" = x; then
2013        CC="$CXX"
2014        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2015echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2016      fi
2017      ;;
2018  esac
2019fi
[311]2020
2021
2022
[405]2023
2024
2025
[326]2026coin_has_cc=yes
[311]2027
[326]2028save_cflags="$CFLAGS"
[835]2029
2030# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2031# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2032# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2033# compiler. In this case, put cc after gcc.
2034
[311]2035case $build in
[318]2036  *-cygwin* | *-mingw*)
[527]2037             if test "$enable_doscompile" = msvc ; then
[865]2038               comps="icl cl"
[527]2039             else
2040               comps="gcc cl"
2041             fi ;;
[835]2042  *-*-solaris*)
2043             # Extract the first word of "cc", so it can be a program name with args.
2044set dummy cc; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2048  echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050  if test -n "$sol_cc_compiler"; then
2051  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2052else
2053  ac_prog_rejected=no
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057  IFS=$as_save_IFS
2058  test -z "$as_dir" && as_dir=.
2059  for ac_exec_ext in '' $ac_executable_extensions; do
2060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2062       ac_prog_rejected=yes
2063       continue
2064     fi
2065    ac_cv_prog_sol_cc_compiler="cc"
2066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067    break 2
2068  fi
2069done
2070done
2071
2072if test $ac_prog_rejected = yes; then
2073  # We found a bogon in the path, so make sure we never use it.
2074  set dummy $ac_cv_prog_sol_cc_compiler
2075  shift
2076  if test $# != 0; then
2077    # We chose a different compiler from the bogus one.
2078    # However, it has the same basename, so the bogon will be chosen
2079    # first if we set sol_cc_compiler to just the basename; use the full file name.
2080    shift
2081    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2082  fi
2083fi
2084fi
2085fi
2086sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2087if test -n "$sol_cc_compiler"; then
2088  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2089echo "${ECHO_T}$sol_cc_compiler" >&6
2090else
2091  echo "$as_me:$LINENO: result: no" >&5
2092echo "${ECHO_T}no" >&6
2093fi
2094
2095             if test "$sol_cc_compiler" = "cc" ; then
2096               comps="cc xlc gcc pgcc icc"
2097             else
2098               comps="xlc gcc pgcc icc cc"
2099             fi
2100             ;;
[1566]2101  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
[326]2102  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
[405]2103  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
[311]2104esac
[389]2105
2106# We delete the cached value, since the test might not have been
[527]2107# performed with our choice of compilers earlier
[405]2108$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
[527]2109# AC_MSG_NOTICE([C compiler candidates: $comps])
[326]2110ac_ext=c
2111ac_cpp='$CPP $CPPFLAGS'
2112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2114ac_compiler_gnu=$ac_cv_c_compiler_gnu
[311]2115if test -n "$ac_tool_prefix"; then
[326]2116  for ac_prog in $comps
[311]2117  do
2118    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2120echo "$as_me:$LINENO: checking for $ac_word" >&5
2121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
[326]2122if test "${ac_cv_prog_CC+set}" = set; then
[311]2123  echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
[326]2125  if test -n "$CC"; then
2126  ac_cv_prog_CC="$CC" # Let the user override the test.
[311]2127else
2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131  IFS=$as_save_IFS
2132  test -z "$as_dir" && as_dir=.
2133  for ac_exec_ext in '' $ac_executable_extensions; do
2134  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[326]2135    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
[311]2136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137    break 2
2138  fi
2139done
2140done
2141
2142fi
2143fi
[326]2144CC=$ac_cv_prog_CC
2145if test -n "$CC"; then
2146  echo "$as_me:$LINENO: result: $CC" >&5
2147echo "${ECHO_T}$CC" >&6
[311]2148else
2149  echo "$as_me:$LINENO: result: no" >&5
2150echo "${ECHO_T}no" >&6
2151fi
2152
[326]2153    test -n "$CC" && break
[311]2154  done
2155fi
[326]2156if test -z "$CC"; then
2157  ac_ct_CC=$CC
2158  for ac_prog in $comps
[311]2159do
2160  # Extract the first word of "$ac_prog", so it can be a program name with args.
2161set dummy $ac_prog; ac_word=$2
2162echo "$as_me:$LINENO: checking for $ac_word" >&5
2163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
[326]2164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
[311]2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
[326]2167  if test -n "$ac_ct_CC"; then
2168  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
[311]2169else
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173  IFS=$as_save_IFS
2174  test -z "$as_dir" && as_dir=.
2175  for ac_exec_ext in '' $ac_executable_extensions; do
2176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[326]2177    ac_cv_prog_ac_ct_CC="$ac_prog"
[311]2178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179    break 2
2180  fi
2181done
2182done
2183
2184fi
2185fi
[326]2186ac_ct_CC=$ac_cv_prog_ac_ct_CC
2187if test -n "$ac_ct_CC"; then
2188  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2189echo "${ECHO_T}$ac_ct_CC" >&6
[311]2190else
2191  echo "$as_me:$LINENO: result: no" >&5
2192echo "${ECHO_T}no" >&6
2193fi
2194
[326]2195  test -n "$ac_ct_CC" && break
[311]2196done
2197
[326]2198  CC=$ac_ct_CC
[311]2199fi
2200
2201
[326]2202test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: no acceptable C compiler found in \$PATH
2205See \`config.log' for more details." >&2;}
2206   { (exit 1); exit 1; }; }
2207
[311]2208# Provide some information about the compiler.
2209echo "$as_me:$LINENO:" \
[326]2210     "checking for C compiler version" >&5
[311]2211ac_compiler=`set X $ac_compile; echo $2`
2212{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2213  (eval $ac_compiler --version </dev/null >&5) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }
2217{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2218  (eval $ac_compiler -v </dev/null >&5) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }
2222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2223  (eval $ac_compiler -V </dev/null >&5) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }
2227
2228cat >conftest.$ac_ext <<_ACEOF
2229/* confdefs.h.  */
2230_ACEOF
2231cat confdefs.h >>conftest.$ac_ext
2232cat >>conftest.$ac_ext <<_ACEOF
2233/* end confdefs.h.  */
2234
2235int
2236main ()
2237{
2238
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243ac_clean_files_save=$ac_clean_files
2244ac_clean_files="$ac_clean_files a.out a.exe b.out"
2245# Try to create an executable without -o first, disregard a.out.
2246# It will help us diagnose broken compilers, and finding out an intuition
2247# of exeext.
[326]2248echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2249echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
[311]2250ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2251if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2252  (eval $ac_link_default) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; then
2256  # Find the output, starting from the most likely.  This scheme is
2257# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2258# resort.
2259
2260# Be careful to initialize this variable, since it used to be cached.
2261# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2262ac_cv_exeext=
2263# b.out is created by i960 compilers.
2264for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2265do
2266  test -f "$ac_file" || continue
2267  case $ac_file in
2268    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2269        ;;
2270    conftest.$ac_ext )
2271        # This is the source file.
2272        ;;
2273    [ab].out )
2274        # We found the default executable, but exeext='' is most
2275        # certainly right.
2276        break;;
2277    *.* )
2278        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279        # FIXME: I believe we export ac_cv_exeext for Libtool,
2280        # but it would be cool to find out if it's true.  Does anybody
2281        # maintain Libtool? --akim.
2282        export ac_cv_exeext
2283        break;;
2284    * )
2285        break;;
2286  esac
2287done
2288else
2289  echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
[326]2292{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
[311]2293See \`config.log' for more details." >&5
[326]2294echo "$as_me: error: C compiler cannot create executables
[311]2295See \`config.log' for more details." >&2;}
2296   { (exit 77); exit 77; }; }
2297fi
2298
2299ac_exeext=$ac_cv_exeext
2300echo "$as_me:$LINENO: result: $ac_file" >&5
2301echo "${ECHO_T}$ac_file" >&6
2302
2303# Check the compiler produces executables we can run.  If not, either
2304# the compiler is broken, or we cross compile.
[326]2305echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2306echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
[311]2307# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2308# If not cross compiling, check that we can run a simple program.
2309if test "$cross_compiling" != yes; then
2310  if { ac_try='./$ac_file'
2311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312  (eval $ac_try) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }; }; then
2316    cross_compiling=no
2317  else
2318    if test "$cross_compiling" = maybe; then
2319        cross_compiling=yes
2320    else
[326]2321        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
[311]2322If you meant to cross compile, use \`--host'.
2323See \`config.log' for more details." >&5
[326]2324echo "$as_me: error: cannot run C compiled programs.
[311]2325If you meant to cross compile, use \`--host'.
2326See \`config.log' for more details." >&2;}
2327   { (exit 1); exit 1; }; }
2328    fi
2329  fi
2330fi
2331echo "$as_me:$LINENO: result: yes" >&5
2332echo "${ECHO_T}yes" >&6
2333
2334rm -f a.out a.exe conftest$ac_cv_exeext b.out
2335ac_clean_files=$ac_clean_files_save
2336# Check the compiler produces executables we can run.  If not, either
2337# the compiler is broken, or we cross compile.
2338echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2339echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2340echo "$as_me:$LINENO: result: $cross_compiling" >&5
2341echo "${ECHO_T}$cross_compiling" >&6
2342
2343echo "$as_me:$LINENO: checking for suffix of executables" >&5
2344echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2346  (eval $ac_link) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; then
2350  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2351# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2352# work properly (i.e., refer to `conftest.exe'), while it won't with
2353# `rm'.
2354for ac_file in conftest.exe conftest conftest.*; do
2355  test -f "$ac_file" || continue
2356  case $ac_file in
2357    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2358    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2359          export ac_cv_exeext
2360          break;;
2361    * ) break;;
2362  esac
2363done
2364else
2365  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2366See \`config.log' for more details." >&5
2367echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2368See \`config.log' for more details." >&2;}
2369   { (exit 1); exit 1; }; }
2370fi
2371
2372rm -f conftest$ac_cv_exeext
2373echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2374echo "${ECHO_T}$ac_cv_exeext" >&6
2375
2376rm -f conftest.$ac_ext
2377EXEEXT=$ac_cv_exeext
2378ac_exeext=$EXEEXT
2379echo "$as_me:$LINENO: checking for suffix of object files" >&5
2380echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2381if test "${ac_cv_objext+set}" = set; then
2382  echo $ECHO_N "(cached) $ECHO_C" >&6
2383else
2384  cat >conftest.$ac_ext <<_ACEOF
2385/* confdefs.h.  */
2386_ACEOF
2387cat confdefs.h >>conftest.$ac_ext
2388cat >>conftest.$ac_ext <<_ACEOF
2389/* end confdefs.h.  */
2390
2391int
2392main ()
2393{
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399rm -f conftest.o conftest.obj
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; then
2405  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2406  case $ac_file in
2407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2408    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2409       break;;
2410  esac
2411done
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2417See \`config.log' for more details." >&5
2418echo "$as_me: error: cannot compute suffix of object files: cannot compile
2419See \`config.log' for more details." >&2;}
2420   { (exit 1); exit 1; }; }
2421fi
2422
2423rm -f conftest.$ac_cv_objext conftest.$ac_ext
2424fi
2425echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2426echo "${ECHO_T}$ac_cv_objext" >&6
2427OBJEXT=$ac_cv_objext
2428ac_objext=$OBJEXT
[326]2429echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2430echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2431if test "${ac_cv_c_compiler_gnu+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444#ifndef __GNUC__
2445       choke me
2446#endif
2447
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454  (eval $ac_compile) 2>conftest.er1
2455  ac_status=$?
2456  grep -v '^ *+' conftest.er1 >conftest.err
2457  rm -f conftest.er1
2458  cat conftest.err >&5
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); } &&
2461         { ac_try='test -z "$ac_c_werror_flag"
2462                         || test ! -s conftest.err'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; } &&
2468         { ac_try='test -s conftest.$ac_objext'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; }; then
2474  ac_compiler_gnu=yes
2475else
2476  echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479ac_compiler_gnu=no
2480fi
2481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482ac_cv_c_compiler_gnu=$ac_compiler_gnu
2483
2484fi
2485echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2486echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2487GCC=`test $ac_compiler_gnu = yes && echo yes`
2488ac_test_CFLAGS=${CFLAGS+set}
2489ac_save_CFLAGS=$CFLAGS
2490CFLAGS="-g"
2491echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2492echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2493if test "${ac_cv_prog_cc_g+set}" = set; then
2494  echo $ECHO_N "(cached) $ECHO_C" >&6
2495else
2496  cat >conftest.$ac_ext <<_ACEOF
2497/* confdefs.h.  */
2498_ACEOF
2499cat confdefs.h >>conftest.$ac_ext
2500cat >>conftest.$ac_ext <<_ACEOF
2501/* end confdefs.h.  */
2502
2503int
2504main ()
2505{
2506
2507  ;
2508  return 0;
2509}
2510_ACEOF
2511rm -f conftest.$ac_objext
2512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513  (eval $ac_compile) 2>conftest.er1
2514  ac_status=$?
2515  grep -v '^ *+' conftest.er1 >conftest.err
2516  rm -f conftest.er1
2517  cat conftest.err >&5
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); } &&
2520         { ac_try='test -z "$ac_c_werror_flag"
2521                         || test ! -s conftest.err'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; } &&
2527         { ac_try='test -s conftest.$ac_objext'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; }; then
2533  ac_cv_prog_cc_g=yes
2534else
2535  echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538ac_cv_prog_cc_g=no
2539fi
2540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541fi
2542echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2543echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2544if test "$ac_test_CFLAGS" = set; then
2545  CFLAGS=$ac_save_CFLAGS
2546elif test $ac_cv_prog_cc_g = yes; then
2547  if test "$GCC" = yes; then
2548    CFLAGS="-g -O2"
2549  else
2550    CFLAGS="-g"
2551  fi
2552else
2553  if test "$GCC" = yes; then
2554    CFLAGS="-O2"
2555  else
2556    CFLAGS=
2557  fi
2558fi
2559echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2560echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2561if test "${ac_cv_prog_cc_stdc+set}" = set; then
2562  echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564  ac_cv_prog_cc_stdc=no
2565ac_save_CC=$CC
2566cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h.  */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h.  */
2572#include <stdarg.h>
2573#include <stdio.h>
2574#include <sys/types.h>
2575#include <sys/stat.h>
2576/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2577struct buf { int x; };
2578FILE * (*rcsopen) (struct buf *, struct stat *, int);
2579static char *e (p, i)
2580     char **p;
2581     int i;
2582{
2583  return p[i];
2584}
2585static char *f (char * (*g) (char **, int), char **p, ...)
2586{
2587  char *s;
2588  va_list v;
2589  va_start (v,p);
2590  s = g (p, va_arg (v,int));
2591  va_end (v);
2592  return s;
2593}
2594
2595/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2596   function prototypes and stuff, but not '\xHH' hex character constants.
2597   These don't provoke an error unfortunately, instead are silently treated
2598   as 'x'.  The following induces an error, until -std1 is added to get
2599   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2600   array size at least.  It's necessary to write '\x00'==0 to get something
2601   that's true only with -std1.  */
2602int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2603
2604int test (int i, double x);
2605struct s1 {int (*f) (int a);};
2606struct s2 {int (*f) (double a);};
2607int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2608int argc;
2609char **argv;
2610int
2611main ()
2612{
2613return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2614  ;
2615  return 0;
2616}
2617_ACEOF
2618# Don't try gcc -ansi; that turns off useful extensions and
2619# breaks some systems' header files.
2620# AIX                   -qlanglvl=ansi
2621# Ultrix and OSF/1      -std1
2622# HP-UX 10.20 and later -Ae
2623# HP-UX older versions  -Aa -D_HPUX_SOURCE
2624# SVR4                  -Xc -D__EXTENSIONS__
2625for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2626do
2627  CC="$ac_save_CC $ac_arg"
2628  rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637         { ac_try='test -z "$ac_c_werror_flag"
2638                         || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644         { ac_try='test -s conftest.$ac_objext'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; }; then
2650  ac_cv_prog_cc_stdc=$ac_arg
2651break
2652else
2653  echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656fi
2657rm -f conftest.err conftest.$ac_objext
2658done
2659rm -f conftest.$ac_ext conftest.$ac_objext
2660CC=$ac_save_CC
2661
2662fi
2663
2664case "x$ac_cv_prog_cc_stdc" in
2665  x|xno)
2666    echo "$as_me:$LINENO: result: none needed" >&5
2667echo "${ECHO_T}none needed" >&6 ;;
2668  *)
2669    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2670echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2671    CC="$CC $ac_cv_prog_cc_stdc" ;;
2672esac
2673
2674# Some people use a C++ compiler to compile C.  Since we use `exit',
2675# in C++ we need to declare it.  In case someone uses the same compiler
2676# for both compiling C and C++ we need to have the C++ compiler decide
2677# the declaration of exit, since it's the most demanding environment.
2678cat >conftest.$ac_ext <<_ACEOF
2679#ifndef __cplusplus
2680  choke me
2681#endif
2682_ACEOF
2683rm -f conftest.$ac_objext
2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685  (eval $ac_compile) 2>conftest.er1
2686  ac_status=$?
2687  grep -v '^ *+' conftest.er1 >conftest.err
2688  rm -f conftest.er1
2689  cat conftest.err >&5
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); } &&
2692         { ac_try='test -z "$ac_c_werror_flag"
2693                         || test ! -s conftest.err'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; } &&
2699         { ac_try='test -s conftest.$ac_objext'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; }; then
2705  for ac_declaration in \
2706   '' \
2707   'extern "C" void std::exit (int) throw (); using std::exit;' \
2708   'extern "C" void std::exit (int); using std::exit;' \
2709   'extern "C" void exit (int) throw ();' \
2710   'extern "C" void exit (int);' \
2711   'void exit (int);'
2712do
2713  cat >conftest.$ac_ext <<_ACEOF
2714/* confdefs.h.  */
2715_ACEOF
2716cat confdefs.h >>conftest.$ac_ext
2717cat >>conftest.$ac_ext <<_ACEOF
2718/* end confdefs.h.  */
2719$ac_declaration
2720#include <stdlib.h>
2721int
2722main ()
2723{
2724exit (42);
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731  (eval $ac_compile) 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } &&
2738         { ac_try='test -z "$ac_c_werror_flag"
2739                         || test ! -s conftest.err'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; } &&
2745         { ac_try='test -s conftest.$ac_objext'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; }; then
2751  :
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756continue
2757fi
2758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759  cat >conftest.$ac_ext <<_ACEOF
2760/* confdefs.h.  */
2761_ACEOF
2762cat confdefs.h >>conftest.$ac_ext
2763cat >>conftest.$ac_ext <<_ACEOF
2764/* end confdefs.h.  */
2765$ac_declaration
2766int
2767main ()
2768{
2769exit (42);
2770  ;
2771  return 0;
2772}
2773_ACEOF
2774rm -f conftest.$ac_objext
2775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776  (eval $ac_compile) 2>conftest.er1
2777  ac_status=$?
2778  grep -v '^ *+' conftest.er1 >conftest.err
2779  rm -f conftest.er1
2780  cat conftest.err >&5
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); } &&
2783         { ac_try='test -z "$ac_c_werror_flag"
2784                         || test ! -s conftest.err'
2785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786  (eval $ac_try) 2>&5
2787  ac_status=$?
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); }; } &&
2790         { ac_try='test -s conftest.$ac_objext'
2791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792  (eval $ac_try) 2>&5
2793  ac_status=$?
2794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795  (exit $ac_status); }; }; then
2796  break
2797else
2798  echo "$as_me: failed program was:" >&5
2799sed 's/^/| /' conftest.$ac_ext >&5
2800
2801fi
2802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803done
2804rm -f conftest*
2805if test -n "$ac_declaration"; then
2806  echo '#ifdef __cplusplus' >>confdefs.h
2807  echo $ac_declaration      >>confdefs.h
2808  echo '#endif'             >>confdefs.h
2809fi
2810
2811else
2812  echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815fi
2816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
[527]2823if test -z "$CC" ; then
2824  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2825echo "$as_me: error: Failed to find a C compiler!" >&2;}
2826   { (exit 1); exit 1; }; }
2827fi
2828# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2829case "$CC" in
2830  cl* | */cl* | CL* | */CL* )
2831    if test "$ac_cv_prog_cc_g" = yes ; then
2832      ac_cv_prog_cc_g=no
2833      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2834echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2835    fi ;;
2836esac
[326]2837CFLAGS="$save_cflags"
2838
[1635]2839# add automake conditional so we can recognize cl compiler in makefile
2840coin_cc_is_cl=false
2841case "$CC" in
2842  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2843    coin_cc_is_cl=true
2844    ;;
2845esac
2846
2847
2848if test $coin_cc_is_cl = true; then
2849  COIN_CC_IS_CL_TRUE=
2850  COIN_CC_IS_CL_FALSE='#'
2851else
2852  COIN_CC_IS_CL_TRUE='#'
2853  COIN_CC_IS_CL_FALSE=
2854fi
2855
2856
[405]2857# Check if a project specific CFLAGS variable has been set
2858if test x$COIN_PRJCT != x; then
2859  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2860  if test x$coin_tmp = xset; then
2861    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2862  fi
2863fi
[326]2864
[405]2865if test x"$CFLAGS" = x; then
2866
[326]2867  coin_add_cflags=
2868  coin_opt_cflags=
2869  coin_dbg_cflags=
2870  coin_warn_cflags=
2871
2872  if test "$GCC" = "yes"; then
2873    case "$CC" in
[357]2874      icc* | */icc*)
[326]2875        ;;
2876      *)
[1475]2877        coin_opt_cflags="-O3"
[326]2878        coin_add_cflags="-pipe"
[1660]2879        coin_dbg_cflags="-g -O0"
[1610]2880        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
[1052]2881        case $build in
2882          *-darwin*)
2883            ;;
2884          *)
2885            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2886            ;;
2887        esac
[527]2888        case $enable_doscompile in
2889          mingw)
2890            CFLAGS="-mno-cygwin"
2891            cat >conftest.$ac_ext <<_ACEOF
[326]2892/* confdefs.h.  */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901int i=0; i++;
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext conftest$ac_exeext
2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908  (eval $ac_link) 2>conftest.er1
2909  ac_status=$?
2910  grep -v '^ *+' conftest.er1 >conftest.err
2911  rm -f conftest.er1
2912  cat conftest.err >&5
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); } &&
2915         { ac_try='test -z "$ac_c_werror_flag"
2916                         || test ! -s conftest.err'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; } &&
2922         { ac_try='test -s conftest$ac_exeext'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; }; then
2928  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2929else
2930  echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933fi
2934rm -f conftest.err conftest.$ac_objext \
2935      conftest$ac_exeext conftest.$ac_ext
[527]2936            CFLAGS=
2937          ;;
2938        esac
[326]2939    esac
2940  fi
2941  if test -z "$coin_opt_cflags"; then
2942    case $build in
2943      *-cygwin* | *-mingw*)
2944        case "$CC" in
[527]2945          cl* | */cl* | CL* | */CL*)
2946            coin_opt_cflags='-MT -O2'
[710]2947            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
[527]2948            coin_dbg_cflags='-MTd'
[326]2949            ;;
[865]2950          icl* | */icl* | ICL* | */ICL*)
2951            coin_opt_cflags='-MT -Ox'
2952            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2953            coin_dbg_cflags='-MTd -debug'
2954            ;;
[326]2955        esac
2956        ;;
2957      *-linux-*)
2958        case "$CC" in
[357]2959          icc* | */icc*)
[1052]2960            coin_opt_cflags="-O3 -ip -mp1"
[326]2961            coin_add_cflags=""
2962            coin_dbg_cflags="-g"
2963            # Check if -i_dynamic is necessary (for new glibc library)
2964            CFLAGS=
2965            cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h.  */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h.  */
2971
2972int
2973main ()
2974{
2975int i=0; i++;
2976  ;
2977  return 0;
2978}
2979_ACEOF
2980rm -f conftest.$ac_objext conftest$ac_exeext
2981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2982  (eval $ac_link) 2>conftest.er1
2983  ac_status=$?
2984  grep -v '^ *+' conftest.er1 >conftest.err
2985  rm -f conftest.er1
2986  cat conftest.err >&5
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); } &&
2989         { ac_try='test -z "$ac_c_werror_flag"
2990                         || test ! -s conftest.err'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; } &&
2996         { ac_try='test -s conftest$ac_exeext'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; }; then
3002  :
3003else
3004  echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007coin_add_cflags="-i_dynamic $coin_add_cflags"
3008fi
3009rm -f conftest.err conftest.$ac_objext \
3010      conftest$ac_exeext conftest.$ac_ext
3011            ;;
[357]3012          pgcc* | */pgcc*)
[326]3013            coin_opt_cflags="-fast"
3014            coin_add_cflags="-Kieee -pc 64"
3015            coin_dbg_cflags="-g"
3016            ;;
3017        esac
3018        ;;
3019      *-ibm-*)
3020        case "$CC" in
3021          xlc* | */xlc* | mpxlc* | */mpxlc*)
[1069]3022            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
[765]3023            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
[326]3024            coin_dbg_cflags="-g"
3025          ;;
3026        esac
3027        ;;
3028      *-hp-*)
3029        coin_opt_cflags="-O"
3030        coin_add_cflags="-Ae"
3031        coin_dbg_cflags="-g"
3032        ;;
[835]3033      *-*-solaris*)
[335]3034        coin_opt_cflags="-xO4"
[326]3035        coin_dbg_cflags="-g"
3036        ;;
3037      *-sgi-*)
3038        coin_opt_cflags="-O -OPT:Olimit=0"
3039        coin_dbg_cflags="-g"
3040        ;;
3041    esac
3042  fi
3043
3044  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3045    coin_dbg_cflags="-g"
3046  fi
3047
[405]3048  if test -z "$coin_opt_cflags"; then
3049    # Try if -O option works if nothing else is set
3050    CFLAGS="-O"
3051    cat >conftest.$ac_ext <<_ACEOF
[326]3052/* confdefs.h.  */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061int i=0; i++;
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext conftest$ac_exeext
3067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3068  (eval $ac_link) 2>conftest.er1
3069  ac_status=$?
3070  grep -v '^ *+' conftest.er1 >conftest.err
3071  rm -f conftest.er1
3072  cat conftest.err >&5
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); } &&
3075         { ac_try='test -z "$ac_c_werror_flag"
3076                         || test ! -s conftest.err'
3077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078  (eval $ac_try) 2>&5
3079  ac_status=$?
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); }; } &&
3082         { ac_try='test -s conftest$ac_exeext'
3083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084  (eval $ac_try) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }; }; then
3088  coin_opt_cflags="-O"
3089else
3090  echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093fi
3094rm -f conftest.err conftest.$ac_objext \
3095      conftest$ac_exeext conftest.$ac_ext
3096  fi
[405]3097
[527]3098  # if PM doesn't want the warning messages, take them out
3099  if test x"$coin_skip_warn_cflags" = xyes; then
3100    coin_warn_cflags=
3101  fi
3102
[405]3103  if test x${DBG_CFLAGS+set} != xset; then
3104    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3105  fi
3106  if test x${OPT_CFLAGS+set} != xset; then
3107    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3108  fi
3109
3110  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3111  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3112
3113  if test "$coin_debug_compile" = "true"; then
3114    CFLAGS="$DBG_CFLAGS"
3115  else
3116    CFLAGS="$OPT_CFLAGS"
3117  fi
3118else
3119  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3120  if test x${DBG_CFLAGS+set} != xset; then
3121    DBG_CFLAGS="$CFLAGS"
3122  fi
3123  if test x${OPT_CFLAGS+set} != xset; then
3124    OPT_CFLAGS="$CFLAGS"
3125  fi
[326]3126fi
3127
[527]3128# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
[374]3129
[527]3130case "$CFLAGS" in
3131  *-mno-cygwin*)
3132    if test x${CPPFLAGS+set} != xset ; then
3133      CPPFLAGS="-mno-cygwin"
3134    else
3135      case "$CPPFLAGS" in
3136        *-mno-cygwin*)
3137          ;;
3138        *)
3139          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3140          ;;
3141      esac
3142    fi ;;
3143esac
[374]3144
[1646]3145# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3146if test x$COIN_PRJCT != x; then
3147  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3148fi
3149
[326]3150# Try if CFLAGS works
[405]3151save_CFLAGS="$CFLAGS"
[326]3152cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h.  */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h.  */
3158
3159int
3160main ()
3161{
3162int i=0; i++;
3163  ;
3164  return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext conftest$ac_exeext
3168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169  (eval $ac_link) 2>conftest.er1
3170  ac_status=$?
3171  grep -v '^ *+' conftest.er1 >conftest.err
3172  rm -f conftest.er1
3173  cat conftest.err >&5
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); } &&
3176         { ac_try='test -z "$ac_c_werror_flag"
3177                         || test ! -s conftest.err'
3178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179  (eval $ac_try) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; } &&
3183         { ac_try='test -s conftest$ac_exeext'
3184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185  (eval $ac_try) 2>&5
3186  ac_status=$?
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }; }; then
3189  :
3190else
3191  echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194CFLAGS=
3195fi
3196rm -f conftest.err conftest.$ac_objext \
3197      conftest$ac_exeext conftest.$ac_ext
3198if test -z "$CFLAGS"; then
[405]3199  { 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
3200echo "$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;}
[326]3201  CFLAGS='-O'
3202  cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h.  */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212int i=0; i++;
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext conftest$ac_exeext
3218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3219  (eval $ac_link) 2>conftest.er1
3220  ac_status=$?
3221  grep -v '^ *+' conftest.er1 >conftest.err
3222  rm -f conftest.er1
3223  cat conftest.err >&5
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); } &&
3226         { ac_try='test -z "$ac_c_werror_flag"
3227                         || test ! -s conftest.err'
3228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229  (eval $ac_try) 2>&5
3230  ac_status=$?
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }; } &&
3233         { ac_try='test -s conftest$ac_exeext'
3234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235  (eval $ac_try) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; }; then
3239  :
3240else
3241  echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244CFLAGS=
3245fi
3246rm -f conftest.err conftest.$ac_objext \
3247      conftest$ac_exeext conftest.$ac_ext
3248  if test -z "$CFLAGS"; then
3249    { 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
3250echo "$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;}
3251  fi
3252fi
3253
[405]3254{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3255echo "$as_me: C compiler options are: $CFLAGS" >&6;}
[326]3256
[351]3257
3258if test x"$MPICC" = x; then :; else
3259  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3260echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3261  CC="$MPICC"
3262fi
3263
[1566]3264# Correct the LD variable if we are using the MS or Intel-windows compiler
[357]3265case "$CC" in
[865]3266  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
[365]3267    case $build in
3268  *-mingw*)
3269    if test "${LD+set}" = set; then :; else
3270      LD=link
3271    fi
[357]3272    ;;
[527]3273 esac
3274 case $enable_doscompile in
3275   msvc)
3276     if test "x${LD+set}" = xset; then :; else
3277       LD=link
3278     fi
3279     ;;
3280 esac
[357]3281
[365]3282    ;;
3283esac
3284
[326]3285ac_ext=c
3286ac_cpp='$CPP $CPPFLAGS'
3287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290
3291
3292
3293 #Let's try if that overcomes configuration problem with VC++ 6.0
[458]3294
[326]3295ac_ext=cc
3296ac_cpp='$CXXCPP $CPPFLAGS'
3297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3300
3301
3302
3303
[405]3304
3305
3306
[326]3307coin_has_cxx=yes
3308
3309save_cxxflags="$CXXFLAGS"
[835]3310# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
[326]3311case $build in
3312  *-cygwin* | *-mingw*)
[527]3313             if test "$enable_doscompile" = msvc ; then
[865]3314               comps="icl cl"
[527]3315             else
3316               comps="g++ cl"
3317             fi ;;
[835]3318  *-*-solaris*)
[1052]3319             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
[326]3320  *-darwin*) comps="g++ c++ CC" ;;
[1566]3321  *-linux-gnu*)
3322             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
[1052]3323          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
[326]3324esac
[389]3325
3326# We delete the cached value, since the test might not have been
[527]3327# performed with our choice of compilers earlier
[405]3328$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
[527]3329# AC_MSG_NOTICE([C++ compiler candidates: $comps])
[326]3330ac_ext=cc
3331ac_cpp='$CXXCPP $CPPFLAGS'
3332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3335if test -n "$ac_tool_prefix"; then
3336  for ac_prog in $CCC $comps
3337  do
3338    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340echo "$as_me:$LINENO: checking for $ac_word" >&5
3341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342if test "${ac_cv_prog_CXX+set}" = set; then
3343  echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345  if test -n "$CXX"; then
3346  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353  for ac_exec_ext in '' $ac_executable_extensions; do
3354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360done
3361
3362fi
3363fi
3364CXX=$ac_cv_prog_CXX
3365if test -n "$CXX"; then
3366  echo "$as_me:$LINENO: result: $CXX" >&5
3367echo "${ECHO_T}$CXX" >&6
3368else
3369  echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
3371fi
3372
3373    test -n "$CXX" && break
3374  done
3375fi
3376if test -z "$CXX"; then
3377  ac_ct_CXX=$CXX
3378  for ac_prog in $CCC $comps
3379do
3380  # Extract the first word of "$ac_prog", so it can be a program name with args.
3381set dummy $ac_prog; ac_word=$2
3382echo "$as_me:$LINENO: checking for $ac_word" >&5
3383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3385  echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387  if test -n "$ac_ct_CXX"; then
3388  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393  IFS=$as_save_IFS
3394  test -z "$as_dir" && as_dir=.
3395  for ac_exec_ext in '' $ac_executable_extensions; do
3396  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397    ac_cv_prog_ac_ct_CXX="$ac_prog"
3398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399    break 2
3400  fi
3401done
3402done
3403
3404fi
3405fi
3406ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3407if test -n "$ac_ct_CXX"; then
3408  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3409echo "${ECHO_T}$ac_ct_CXX" >&6
3410else
3411  echo "$as_me:$LINENO: result: no" >&5
3412echo "${ECHO_T}no" >&6
3413fi
3414
3415  test -n "$ac_ct_CXX" && break
3416done
3417test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3418
3419  CXX=$ac_ct_CXX
3420fi
3421
3422
3423# Provide some information about the compiler.
3424echo "$as_me:$LINENO:" \
3425     "checking for C++ compiler version" >&5
3426ac_compiler=`set X $ac_compile; echo $2`
3427{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3428  (eval $ac_compiler --version </dev/null >&5) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }
3432{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3433  (eval $ac_compiler -v </dev/null >&5) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }
3437{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3438  (eval $ac_compiler -V </dev/null >&5) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }
3442
[311]3443echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3444echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3445if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3446  echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448  cat >conftest.$ac_ext <<_ACEOF
3449/* confdefs.h.  */
3450_ACEOF
3451cat confdefs.h >>conftest.$ac_ext
3452cat >>conftest.$ac_ext <<_ACEOF
3453/* end confdefs.h.  */
3454
3455int
3456main ()
3457{
3458#ifndef __GNUC__
3459       choke me
3460#endif
3461
3462  ;
3463  return 0;
3464}
3465_ACEOF
3466rm -f conftest.$ac_objext
3467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3468  (eval $ac_compile) 2>conftest.er1
3469  ac_status=$?
3470  grep -v '^ *+' conftest.er1 >conftest.err
3471  rm -f conftest.er1
3472  cat conftest.err >&5
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); } &&
3475         { ac_try='test -z "$ac_cxx_werror_flag"
3476                         || test ! -s conftest.err'
3477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478  (eval $ac_try) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }; } &&
3482         { ac_try='test -s conftest.$ac_objext'
3483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484  (eval $ac_try) 2>&5
3485  ac_status=$?
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); }; }; then
3488  ac_compiler_gnu=yes
3489else
3490  echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493ac_compiler_gnu=no
3494fi
3495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3496ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3497
3498fi
3499echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3500echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3501GXX=`test $ac_compiler_gnu = yes && echo yes`
3502ac_test_CXXFLAGS=${CXXFLAGS+set}
3503ac_save_CXXFLAGS=$CXXFLAGS
3504CXXFLAGS="-g"
3505echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3506echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3507if test "${ac_cv_prog_cxx_g+set}" = set; then
3508  echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510  cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h.  */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
3526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527  (eval $ac_compile) 2>conftest.er1
3528  ac_status=$?
3529  grep -v '^ *+' conftest.er1 >conftest.err
3530  rm -f conftest.er1
3531  cat conftest.err >&5
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); } &&
3534         { ac_try='test -z "$ac_cxx_werror_flag"
3535                         || test ! -s conftest.err'
3536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537  (eval $ac_try) 2>&5
3538  ac_status=$?
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); }; } &&
3541         { ac_try='test -s conftest.$ac_objext'
3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543  (eval $ac_try) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; }; then
3547  ac_cv_prog_cxx_g=yes
3548else
3549  echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552ac_cv_prog_cxx_g=no
3553fi
3554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3557echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3558if test "$ac_test_CXXFLAGS" = set; then
3559  CXXFLAGS=$ac_save_CXXFLAGS
3560elif test $ac_cv_prog_cxx_g = yes; then
3561  if test "$GXX" = yes; then
3562    CXXFLAGS="-g -O2"
3563  else
3564    CXXFLAGS="-g"
3565  fi
3566else
3567  if test "$GXX" = yes; then
3568    CXXFLAGS="-O2"
3569  else
3570    CXXFLAGS=
3571  fi
3572fi
3573for ac_declaration in \
3574   '' \
3575   'extern "C" void std::exit (int) throw (); using std::exit;' \
3576   'extern "C" void std::exit (int); using std::exit;' \
3577   'extern "C" void exit (int) throw ();' \
3578   'extern "C" void exit (int);' \
3579   'void exit (int);'
3580do
3581  cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h.  */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h.  */
3587$ac_declaration
3588#include <stdlib.h>
3589int
3590main ()
3591{
3592exit (42);
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597rm -f conftest.$ac_objext
3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599  (eval $ac_compile) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606         { ac_try='test -z "$ac_cxx_werror_flag"
3607                         || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613         { ac_try='test -s conftest.$ac_objext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  :
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624continue
3625fi
3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627  cat >conftest.$ac_ext <<_ACEOF
3628/* confdefs.h.  */
3629_ACEOF
3630cat confdefs.h >>conftest.$ac_ext
3631cat >>conftest.$ac_ext <<_ACEOF
3632/* end confdefs.h.  */
3633$ac_declaration
3634int
3635main ()
3636{
3637exit (42);
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642rm -f conftest.$ac_objext
3643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644  (eval $ac_compile) 2>conftest.er1
3645  ac_status=$?
3646  grep -v '^ *+' conftest.er1 >conftest.err
3647  rm -f conftest.er1
3648  cat conftest.err >&5
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); } &&
3651         { ac_try='test -z "$ac_cxx_werror_flag"
3652                         || test ! -s conftest.err'
3653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654  (eval $ac_try) 2>&5
3655  ac_status=$?
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); }; } &&
3658         { ac_try='test -s conftest.$ac_objext'
3659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660  (eval $ac_try) 2>&5
3661  ac_status=$?
3662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663  (exit $ac_status); }; }; then
3664  break
3665else
3666  echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669fi
3670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671done
3672rm -f conftest*
3673if test -n "$ac_declaration"; then
3674  echo '#ifdef __cplusplus' >>confdefs.h
3675  echo $ac_declaration      >>confdefs.h
3676  echo '#endif'             >>confdefs.h
3677fi
3678
3679ac_ext=cc
3680ac_cpp='$CXXCPP $CPPFLAGS'
3681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3684
[1069]3685
3686#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3687#thus, we test here whether $CXX is actually working
3688ac_ext=cc
3689ac_cpp='$CXXCPP $CPPFLAGS'
3690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3693
3694echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3695echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3696cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h.  */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h.  */
3702
3703int
3704main ()
3705{
3706int i=0;
3707  ;
3708  return 0;
3709}
3710_ACEOF
3711rm -f conftest.$ac_objext
3712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713  (eval $ac_compile) 2>conftest.er1
3714  ac_status=$?
3715  grep -v '^ *+' conftest.er1 >conftest.err
3716  rm -f conftest.er1
3717  cat conftest.err >&5
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); } &&
3720         { ac_try='test -z "$ac_cxx_werror_flag"
3721                         || test ! -s conftest.err'
3722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723  (eval $ac_try) 2>&5
3724  ac_status=$?
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); }; } &&
3727         { ac_try='test -s conftest.$ac_objext'
3728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729  (eval $ac_try) 2>&5
3730  ac_status=$?
3731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732  (exit $ac_status); }; }; then
3733  echo "$as_me:$LINENO: result: yes" >&5
3734echo "${ECHO_T}yes" >&6
3735else
3736  echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3742echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
[527]3743   { (exit 1); exit 1; }; }
[1069]3744
[527]3745fi
[1069]3746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3747ac_ext=cc
3748ac_cpp='$CXXCPP $CPPFLAGS'
3749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
[527]3752
[1069]3753
[1541]3754coin_cxx_is_cl=false
[710]3755# It seems that we need to cleanup something here for the Windows
3756case "$CXX" in
[865]3757  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
[710]3758    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3759    mv confdefs.hh confdefs.h
[1541]3760    coin_cxx_is_cl=true
[710]3761    ;;
3762esac
3763
[1541]3764# add automake conditional so we can recognize cl compiler in makefile
3765
3766
3767if test $coin_cxx_is_cl = true; then
3768  COIN_CXX_IS_CL_TRUE=
3769  COIN_CXX_IS_CL_FALSE='#'
3770else
3771  COIN_CXX_IS_CL_TRUE='#'
3772  COIN_CXX_IS_CL_FALSE=
3773fi
3774
3775
[527]3776# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3777case "$CXX" in
3778  cl* | */cl* | CL* | */CL* )
3779    if test "$ac_cv_prog_cxx_g" = yes ; then
3780      ac_cv_prog_cxx_g=no
3781      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3782echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3783    fi ;;
3784esac
[311]3785CXXFLAGS="$save_cxxflags"
3786
[405]3787# Check if a project specific CXXFLAGS variable has been set
3788if test x$COIN_PRJCT != x; then
3789  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3790  if test x$coin_tmp = xset; then
3791    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3792  fi
3793fi
[311]3794
[405]3795if test x"$CXXFLAGS" = x; then
3796
[311]3797# ToDo decide whether we want -DNDEBUG for optimization
3798  coin_add_cxxflags=
3799  coin_opt_cxxflags=
3800  coin_dbg_cxxflags=
3801  coin_warn_cxxflags=
3802
3803  if test "$GXX" = "yes"; then
3804    case "$CXX" in
[357]3805      icpc* | */icpc*)
[311]3806        ;;
3807      *)
3808# ToDo decide about unroll-loops
[1475]3809        coin_opt_cxxflags="-O3"
[311]3810        coin_add_cxxflags="-pipe"
[1660]3811        coin_dbg_cxxflags="-g -O0"
[1655]3812        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
[1052]3813        case $build in
3814          *-darwin*)
3815            ;;
3816          *)
3817            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3818            ;;
3819        esac
3820
3821        case $enable_doscompile in
3822          mingw)
3823            CXXFLAGS="-mno-cygwin"
3824            cat >conftest.$ac_ext <<_ACEOF
[311]3825/* confdefs.h.  */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h.  */
3830
3831int
3832main ()
3833{
3834int i=0; i++;
3835  ;
3836  return 0;
3837}
3838_ACEOF
3839rm -f conftest.$ac_objext conftest$ac_exeext
3840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841  (eval $ac_link) 2>conftest.er1
3842  ac_status=$?
3843  grep -v '^ *+' conftest.er1 >conftest.err
3844  rm -f conftest.er1
3845  cat conftest.err >&5
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } &&
3848         { ac_try='test -z "$ac_cxx_werror_flag"
3849                         || test ! -s conftest.err'
3850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851  (eval $ac_try) 2>&5
3852  ac_status=$?
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); }; } &&
3855         { ac_try='test -s conftest$ac_exeext'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3862else
3863  echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
3866fi
3867rm -f conftest.err conftest.$ac_objext \
3868      conftest$ac_exeext conftest.$ac_ext
[1052]3869            CXXFLAGS=
3870          ;;
3871        esac
[311]3872    esac
3873  fi
[527]3874
3875# Note that we do not need to cover GCC in the following tests.
3876
[311]3877  if test -z "$coin_opt_cxxflags"; then
3878    case $build in
[318]3879      *-cygwin* | *-mingw*)
[311]3880        case "$CXX" in
[527]3881          cl* | */cl* | CL* | */CL*)
3882            # The MT and MTd options are mutually exclusive
3883            coin_opt_cxxflags='-MT -O2'
[710]3884            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
[527]3885            coin_dbg_cxxflags='-MTd'
[311]3886            ;;
[865]3887          icl* | */icl* | ICL* | */ICL*)
3888            # The MT and MTd options are mutually exclusive
3889            coin_opt_cxxflags='-MT -Ox'
3890            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3891            coin_dbg_cxxflags='-MTd -debug'
3892            ;;
[311]3893        esac
3894        ;;
3895      *-linux-*)
3896        case "$CXX" in
[357]3897          icpc* | */icpc*)
[1052]3898            coin_opt_cxxflags="-O3 -ip -mp1"
[311]3899            coin_add_cxxflags=""
3900            coin_dbg_cxxflags="-g"
3901            # Check if -i_dynamic is necessary (for new glibc library)
3902            CXXFLAGS=
3903            cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h.  */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h.  */
3909
3910int
3911main ()
3912{
3913int i=0; i++;
3914  ;
3915  return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext conftest$ac_exeext
3919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920  (eval $ac_link) 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } &&
3927         { ac_try='test -z "$ac_cxx_werror_flag"
3928                         || test ! -s conftest.err'
3929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930  (eval $ac_try) 2>&5
3931  ac_status=$?
3932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933  (exit $ac_status); }; } &&
3934         { ac_try='test -s conftest$ac_exeext'
3935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936  (eval $ac_try) 2>&5
3937  ac_status=$?
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); }; }; then
3940  :
3941else
3942  echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3946fi
3947rm -f conftest.err conftest.$ac_objext \
3948      conftest$ac_exeext conftest.$ac_ext
3949            ;;
[357]3950          pgCC* | */pgCC*)
[311]3951            coin_opt_cxxflags="-fast"
3952            coin_add_cxxflags="-Kieee -pc 64"
3953            coin_dbg_cxxflags="-g"
3954            ;;
3955        esac
3956        ;;
3957      *-ibm-*)
3958        case "$CXX" in
3959          xlC* | */xlC* | mpxlC* | */mpxlC*)
[1069]3960            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
[1052]3961            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
[311]3962            coin_dbg_cxxflags="-g"
3963            ;;
3964        esac
3965        ;;
3966      *-hp-*)
3967        case "$CXX" in
[357]3968          aCC* | */aCC* )
[311]3969            coin_opt_cxxflags="-O"
3970            coin_add_cxxflags="-AA"
3971            coin_dbg_cxxflags="-g"
3972            ;;
3973        esac
3974        ;;
[835]3975      *-*-solaris*)
[335]3976          coin_opt_cxxflags="-O4"
[311]3977          coin_dbg_cxxflags="-g"
3978        ;;
3979    esac
3980  fi
3981
[527]3982# Generic flag settings. If these don't work, add a case above.
3983
[311]3984  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3985    coin_dbg_cxxflags="-g"
3986  fi
3987
[405]3988  if test -z "$coin_opt_cxxflags"; then
3989    # Try if -O option works if nothing else is set
3990    CXXFLAGS=-O
3991    cat >conftest.$ac_ext <<_ACEOF
[311]3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997
3998int
3999main ()
4000{
4001int i=0; i++;
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008  (eval $ac_link) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015         { ac_try='test -z "$ac_cxx_werror_flag"
4016                         || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022         { ac_try='test -s conftest$ac_exeext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  coin_opt_cxxflags="-O"
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033fi
4034rm -f conftest.err conftest.$ac_objext \
4035      conftest$ac_exeext conftest.$ac_ext
4036  fi
4037
[527]4038  # if PM doesn't want the warning messages, take them out
4039  if test x"$coin_skip_warn_cxxflags" = xyes; then
4040    coin_warn_cxxflags=
4041  fi
4042
4043# Do final setup of flags based on values determined above.
4044
[405]4045  if test x${DBG_CXXFLAGS+set} != xset; then
4046    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4047  fi
4048  if test x${OPT_CXXFLAGS+set} != xset; then
4049    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4050  fi
[374]4051
[405]4052  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4053  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4054
4055  if test "$coin_debug_compile" = "true"; then
4056    CXXFLAGS="$DBG_CXXFLAGS"
4057  else
4058    CXXFLAGS="$OPT_CXXFLAGS"
4059  fi
[527]4060
4061# Handle the case where CXXFLAGS was set externally.
[405]4062else
4063  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4064  if test x${DBG_CXXFLAGS+set} != xset; then
4065    DBG_CXXFLAGS="$CXXFLAGS"
4066  fi
4067  if test x${OPT_CXXFLAGS+set} != xset; then
4068    OPT_CXXFLAGS="$CXXFLAGS"
4069  fi
[374]4070fi
4071
[527]4072# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4073
4074case "$CXXFLAGS" in
4075  *-mno-cygwin*)
4076    if test x${CPPFLAGS+set} != xset ; then
4077      CPPFLAGS="-mno-cygwin"
4078    else
4079      case "$CPPFLAGS" in
4080        *-mno-cygwin*)
4081          ;;
4082        *)
4083          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4084          ;;
4085      esac
4086    fi ;;
4087esac
4088
[1646]4089# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4090if test x$COIN_PRJCT != x; then
4091  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4092fi
4093
[311]4094# Try if CXXFLAGS works
[405]4095save_CXXFLAGS="$CXXFLAGS"
[311]4096cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h.  */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h.  */
4102
4103int
4104main ()
4105{
4106int i=0; i++;
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111rm -f conftest.$ac_objext conftest$ac_exeext
4112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4113  (eval $ac_link) 2>conftest.er1
4114  ac_status=$?
4115  grep -v '^ *+' conftest.er1 >conftest.err
4116  rm -f conftest.er1
4117  cat conftest.err >&5
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); } &&
4120         { ac_try='test -z "$ac_cxx_werror_flag"
4121                         || test ! -s conftest.err'
4122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123  (eval $ac_try) 2>&5
4124  ac_status=$?
4125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126  (exit $ac_status); }; } &&
4127         { ac_try='test -s conftest$ac_exeext'
4128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129  (eval $ac_try) 2>&5
4130  ac_status=$?
4131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132  (exit $ac_status); }; }; then
4133  :
4134else
4135  echo "$as_me: failed program was:" >&5
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
4138CXXFLAGS=
4139fi
4140rm -f conftest.err conftest.$ac_objext \
4141      conftest$ac_exeext conftest.$ac_ext
4142if test -z "$CXXFLAGS"; then
[405]4143  { 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
4144echo "$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;}
[311]4145  CXXFLAGS='-O'
4146  cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h.  */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
4151/* end confdefs.h.  */
4152
4153int
4154main ()
4155{
4156int i=0; i++;
4157  ;
4158  return 0;
4159}
4160_ACEOF
4161rm -f conftest.$ac_objext conftest$ac_exeext
4162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4163  (eval $ac_link) 2>conftest.er1
4164  ac_status=$?
4165  grep -v '^ *+' conftest.er1 >conftest.err
4166  rm -f conftest.er1
4167  cat conftest.err >&5
4168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169  (exit $ac_status); } &&
4170         { ac_try='test -z "$ac_cxx_werror_flag"
4171                         || test ! -s conftest.err'
4172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173  (eval $ac_try) 2>&5
4174  ac_status=$?
4175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176  (exit $ac_status); }; } &&
4177         { ac_try='test -s conftest$ac_exeext'
4178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179  (eval $ac_try) 2>&5
4180  ac_status=$?
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); }; }; then
4183  :
4184else
4185  echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188CXXFLAGS=
4189fi
4190rm -f conftest.err conftest.$ac_objext \
4191      conftest$ac_exeext conftest.$ac_ext
4192  if test -z "$CXXFLAGS"; then
4193    { 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
4194echo "$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;}
4195  fi
4196fi
4197
[405]4198{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4199echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
[311]4200
[351]4201
4202if test x"$MPICXX" = x; then :; else
4203  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4204echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4205  CXX="$MPICXX"
4206fi
4207
[1566]4208# correct the LD variable in a mingw build with MS or intel compiler
[365]4209case "$CXX" in
[1566]4210  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
[365]4211    case $build in
4212  *-mingw*)
4213    if test "${LD+set}" = set; then :; else
4214      LD=link
4215    fi
4216    ;;
[527]4217 esac
4218 case $enable_doscompile in
4219   msvc)
4220     if test "x${LD+set}" = xset; then :; else
4221       LD=link
4222     fi
4223     ;;
4224 esac
[365]4225
4226    ;;
4227esac
4228
[326]4229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
[311]4234
4235
4236
4237# Initialize automake and libtool
[527]4238{
[311]4239
[527]4240
4241
4242# START
4243
[914]4244# Test if force_shared has been set
4245if test "x" = xforce_shared; then
4246  if test x$enable_shared = xno; then
4247    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4248echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4249   { (exit 1); exit 1; }; }
4250  fi
4251  enable_shared=yes;
4252else
4253  # On Cygwin and AIX, building DLLs doesn't work
4254  case $build in
4255    *-cygwin*)
4256      coin_disable_shared=yes
4257      platform=Cygwin
4258    ;;
4259    *-aix*)
4260      coin_disable_shared=yes
4261      platform=AIX
4262    ;;
4263    *-mingw*)
4264      coin_disable_shared=yes
4265      platform="Msys"
4266#      case "$CXX" in
4267#        cl*)
4268#          coin_disable_shared=yes
4269#          platform="Msys with cl"
4270#      ;;
4271#      esac
4272    ;;
4273  esac
4274fi
[318]4275if test x"$coin_disable_shared" = xyes; then
4276  if test x"$enable_shared" = xyes; then
[327]4277    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4278echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
[318]4279  fi
[363]4280  enable_shared=no
[318]4281fi
[311]4282# By default, we only want the shared objects to be compiled
4283# Check whether --enable-static or --disable-static was given.
4284if test "${enable_static+set}" = set; then
4285  enableval="$enable_static"
4286  p=${PACKAGE-default}
4287    case $enableval in
4288    yes) enable_static=yes ;;
4289    no) enable_static=no ;;
4290    *)
4291     enable_static=no
4292      # Look at the argument we got.  We use all the common list separators.
4293      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4294      for pkg in $enableval; do
4295        IFS="$lt_save_ifs"
4296        if test "X$pkg" = "X$p"; then
4297          enable_static=yes
4298        fi
4299      done
4300      IFS="$lt_save_ifs"
4301      ;;
4302    esac
4303else
4304  enable_static=no
4305fi;
4306
4307
4308
[527]4309
4310# Initialize automake
[311]4311echo "$as_me:$LINENO: checking for egrep" >&5
4312echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4313if test "${ac_cv_prog_egrep+set}" = set; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4317    then ac_cv_prog_egrep='grep -E'
4318    else ac_cv_prog_egrep='egrep'
4319    fi
4320fi
4321echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4322echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4323 EGREP=$ac_cv_prog_egrep
4324
4325
[1604]4326echo "$as_me:$LINENO: checking whether ln -s works" >&5
4327echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4328LN_S=$as_ln_s
4329if test "$LN_S" = "ln -s"; then
4330  echo "$as_me:$LINENO: result: yes" >&5
4331echo "${ECHO_T}yes" >&6
4332else
4333  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4334echo "${ECHO_T}no, using $LN_S" >&6
4335fi
4336
[311]4337am__api_version="1.9"
4338# Find a good install program.  We prefer a C program (faster),
4339# so one script is as good as another.  But avoid the broken or
4340# incompatible versions:
4341# SysV /etc/install, /usr/sbin/install
4342# SunOS /usr/etc/install
4343# IRIX /sbin/install
4344# AIX /bin/install
4345# AmigaOS /C/install, which installs bootblocks on floppy discs
4346# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4347# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4348# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4349# OS/2's system install, which has a completely different semantic
4350# ./install, which can be erroneously created by make from ./install.sh.
4351echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4352echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4353if test -z "$INSTALL"; then
4354if test "${ac_cv_path_install+set}" = set; then
4355  echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360  IFS=$as_save_IFS
4361  test -z "$as_dir" && as_dir=.
4362  # Account for people who put trailing slashes in PATH elements.
4363case $as_dir/ in
4364  ./ | .// | /cC/* | \
4365  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4366  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4367  /usr/ucb/* ) ;;
4368  *)
4369    # OSF1 and SCO ODT 3.0 have their own names for install.
4370    # Don't use installbsd from OSF since it installs stuff as root
4371    # by default.
4372    for ac_prog in ginstall scoinst install; do
4373      for ac_exec_ext in '' $ac_executable_extensions; do
4374        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4375          if test $ac_prog = install &&
4376            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4377            # AIX install.  It has an incompatible calling convention.
4378            :
4379          elif test $ac_prog = install &&
4380            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4381            # program-specific install script used by HP pwplus--don't use.
4382            :
4383          else
4384            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4385            break 3
4386          fi
4387        fi
4388      done
4389    done
4390    ;;
4391esac
4392done
4393
4394
4395fi
4396  if test "${ac_cv_path_install+set}" = set; then
4397    INSTALL=$ac_cv_path_install
4398  else
4399    # As a last resort, use the slow shell script.  We don't cache a
4400    # path for INSTALL within a source directory, because that will
4401    # break other packages using the cache if that directory is
4402    # removed, or if the path is relative.
4403    INSTALL=$ac_install_sh
4404  fi
4405fi
4406echo "$as_me:$LINENO: result: $INSTALL" >&5
4407echo "${ECHO_T}$INSTALL" >&6
4408
4409# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4410# It thinks the first close brace ends the variable substitution.
4411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4412
4413test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4414
4415test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4416
4417echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4418echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4419# Just in case
4420sleep 1
4421echo timestamp > conftest.file
4422# Do `set' in a subshell so we don't clobber the current shell's
4423# arguments.  Must try -L first in case configure is actually a
4424# symlink; some systems play weird games with the mod time of symlinks
4425# (eg FreeBSD returns the mod time of the symlink's containing
4426# directory).
4427if (
4428   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4429   if test "$*" = "X"; then
4430      # -L didn't work.
4431      set X `ls -t $srcdir/configure conftest.file`
4432   fi
4433   rm -f conftest.file
4434   if test "$*" != "X $srcdir/configure conftest.file" \
4435      && test "$*" != "X conftest.file $srcdir/configure"; then
4436
4437      # If neither matched, then we have a broken ls.  This can happen
4438      # if, for instance, CONFIG_SHELL is bash and it inherits a
4439      # broken ls alias from the environment.  This has actually
4440      # happened.  Such a system could not be considered "sane".
4441      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4442alias in your environment" >&5
4443echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4444alias in your environment" >&2;}
4445   { (exit 1); exit 1; }; }
4446   fi
4447
4448   test "$2" = conftest.file
4449   )
4450then
4451   # Ok.
4452   :
4453else
4454   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4455Check your system clock" >&5
4456echo "$as_me: error: newly created file is older than distributed files!
4457Check your system clock" >&2;}
4458   { (exit 1); exit 1; }; }
4459fi
4460echo "$as_me:$LINENO: result: yes" >&5
4461echo "${ECHO_T}yes" >&6
4462test "$program_prefix" != NONE &&
4463  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4464# Use a double $ so make ignores it.
4465test "$program_suffix" != NONE &&
4466  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4467# Double any \ or $.  echo might interpret backslashes.
4468# By default was `s,x,x', remove it if useless.
4469cat <<\_ACEOF >conftest.sed
4470s/[\\$]/&&/g;s/;s,x,x,$//
4471_ACEOF
4472program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4473rm conftest.sed
4474
4475# expand $ac_aux_dir to an absolute path
4476am_aux_dir=`cd $ac_aux_dir && pwd`
4477
4478test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4479# Use eval to expand $SHELL
4480if eval "$MISSING --run true"; then
4481  am_missing_run="$MISSING --run "
4482else
4483  am_missing_run=
4484  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4485echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4486fi
4487
4488if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4489  # We used to keeping the `.' as first argument, in order to
4490  # allow $(mkdir_p) to be used without argument.  As in
4491  #   $(mkdir_p) $(somedir)
4492  # where $(somedir) is conditionally defined.  However this is wrong
4493  # for two reasons:
4494  #  1. if the package is installed by a user who cannot write `.'
4495  #     make install will fail,
4496  #  2. the above comment should most certainly read
4497  #     $(mkdir_p) $(DESTDIR)$(somedir)
4498  #     so it does not work when $(somedir) is undefined and
4499  #     $(DESTDIR) is not.
4500  #  To support the latter case, we have to write
4501  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4502  #  so the `.' trick is pointless.
4503  mkdir_p='mkdir -p --'
4504else
4505  # On NextStep and OpenStep, the `mkdir' command does not
4506  # recognize any option.  It will interpret all options as
4507  # directories to create, and then abort because `.' already
4508  # exists.
4509  for d in ./-p ./--version;
4510  do
4511    test -d $d && rmdir $d
4512  done
4513  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4514  if test -f "$ac_aux_dir/mkinstalldirs"; then
4515    mkdir_p='$(mkinstalldirs)'
4516  else
4517    mkdir_p='$(install_sh) -d'
4518  fi
4519fi
4520
4521for ac_prog in gawk mawk nawk awk
4522do
4523  # Extract the first word of "$ac_prog", so it can be a program name with args.
4524set dummy $ac_prog; ac_word=$2
4525echo "$as_me:$LINENO: checking for $ac_word" >&5
4526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527if test "${ac_cv_prog_AWK+set}" = set; then
4528  echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530  if test -n "$AWK"; then
4531  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4532else
4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538  for ac_exec_ext in '' $ac_executable_extensions; do
4539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540    ac_cv_prog_AWK="$ac_prog"
4541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542    break 2
4543  fi
4544done
4545done
4546
4547fi
4548fi
4549AWK=$ac_cv_prog_AWK
4550if test -n "$AWK"; then
4551  echo "$as_me:$LINENO: result: $AWK" >&5
4552echo "${ECHO_T}$AWK" >&6
4553else
4554  echo "$as_me:$LINENO: result: no" >&5
4555echo "${ECHO_T}no" >&6
4556fi
4557
4558  test -n "$AWK" && break
4559done
4560
4561echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4562echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4563set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4564if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4565  echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567  cat >conftest.make <<\_ACEOF
4568all:
4569        @echo 'ac_maketemp="$(MAKE)"'
4570_ACEOF
4571# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4572eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4573if test -n "$ac_maketemp"; then
4574  eval ac_cv_prog_make_${ac_make}_set=yes
4575else
4576  eval ac_cv_prog_make_${ac_make}_set=no
4577fi
4578rm -f conftest.make
4579fi
4580if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4581  echo "$as_me:$LINENO: result: yes" >&5
4582echo "${ECHO_T}yes" >&6
4583  SET_MAKE=
4584else
4585  echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587  SET_MAKE="MAKE=${MAKE-make}"
4588fi
4589
4590rm -rf .tst 2>/dev/null
4591mkdir .tst 2>/dev/null
4592if test -d .tst; then
4593  am__leading_dot=.
4594else
4595  am__leading_dot=_
4596fi
4597rmdir .tst 2>/dev/null
4598
4599DEPDIR="${am__leading_dot}deps"
4600
4601          ac_config_commands="$ac_config_commands depfiles"
4602
4603
4604am_make=${MAKE-make}
4605cat > confinc << 'END'
4606am__doit:
4607        @echo done
4608.PHONY: am__doit
4609END
4610# If we don't find an include directive, just comment out the code.
4611echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4612echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4613am__include="#"
4614am__quote=
4615_am_result=none
4616# First try GNU make style include.
4617echo "include confinc" > confmf
4618# We grep out `Entering directory' and `Leaving directory'
4619# messages which can occur if `w' ends up in MAKEFLAGS.
4620# In particular we don't look at `^make:' because GNU make might
4621# be invoked under some other name (usually "gmake"), in which
4622# case it prints its new name instead of `make'.
4623if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4624   am__include=include
4625   am__quote=
4626   _am_result=GNU
4627fi
4628# Now try BSD make style include.
4629if test "$am__include" = "#"; then
4630   echo '.include "confinc"' > confmf
4631   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4632      am__include=.include
4633      am__quote="\""
4634      _am_result=BSD
4635   fi
4636fi
4637
4638
4639echo "$as_me:$LINENO: result: $_am_result" >&5
4640echo "${ECHO_T}$_am_result" >&6
4641rm -f confinc confmf
4642
4643# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4644if test "${enable_dependency_tracking+set}" = set; then
4645  enableval="$enable_dependency_tracking"
4646
4647fi;
4648if test "x$enable_dependency_tracking" != xno; then
4649  am_depcomp="$ac_aux_dir/depcomp"
4650  AMDEPBACKSLASH='\'
4651fi
4652
4653
4654if test "x$enable_dependency_tracking" != xno; then
4655  AMDEP_TRUE=
4656  AMDEP_FALSE='#'
4657else
4658  AMDEP_TRUE='#'
4659  AMDEP_FALSE=
4660fi
4661
4662
4663
4664
[527]4665
[1604]4666
[527]4667# AC_MSG_NOTICE([Beginning automake initialisation.])
4668# Stuff for automake
4669# test to see if srcdir already configured
4670if test "`cd $srcdir && pwd`" != "`pwd`" &&
4671   test -f $srcdir/config.status; then
4672  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4673echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4674   { (exit 1); exit 1; }; }
4675fi
4676
4677# test whether we have cygpath
4678if test -z "$CYGPATH_W"; then
4679  if (cygpath --version) >/dev/null 2>/dev/null; then
4680    CYGPATH_W='cygpath -w'
4681  else
4682    CYGPATH_W=echo
4683  fi
4684fi
4685
4686
4687# Define the identity of the package.
4688 PACKAGE='cbc'
[1578]4689 VERSION='trunk'
[527]4690
4691
4692cat >>confdefs.h <<_ACEOF
4693#define PACKAGE "$PACKAGE"
4694_ACEOF
4695
4696
4697cat >>confdefs.h <<_ACEOF
4698#define VERSION "$VERSION"
4699_ACEOF
4700
4701# Some tools Automake needs.
4702
4703ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4704
4705
4706AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4707
4708
4709AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4710
4711
4712AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4713
4714
4715MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4716
4717install_sh=${install_sh-"$am_aux_dir/install-sh"}
4718
4719# Installed binaries are usually stripped using `strip' when the user
4720# run `make install-strip'.  However `strip' might not be the right
4721# tool to use in cross-compilation environments, therefore Automake
4722# will honor the `STRIP' environment variable to overrule this program.
4723if test "$cross_compiling" != no; then
4724  if test -n "$ac_tool_prefix"; then
4725  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4726set dummy ${ac_tool_prefix}strip; ac_word=$2
4727echo "$as_me:$LINENO: checking for $ac_word" >&5
4728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729if test "${ac_cv_prog_STRIP+set}" = set; then
4730  echo $ECHO_N "(cached) $ECHO_C" >&6
[311]4731else
[527]4732  if test -n "$STRIP"; then
4733  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4734else
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738  IFS=$as_save_IFS
4739  test -z "$as_dir" && as_dir=.
4740  for ac_exec_ext in '' $ac_executable_extensions; do
4741  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4742    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4743    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744    break 2
4745  fi
4746done
4747done
4748
[311]4749fi
[527]4750fi
4751STRIP=$ac_cv_prog_STRIP
4752if test -n "$STRIP"; then
4753  echo "$as_me:$LINENO: result: $STRIP" >&5
4754echo "${ECHO_T}$STRIP" >&6
4755else
4756  echo "$as_me:$LINENO: result: no" >&5
4757echo "${ECHO_T}no" >&6
4758fi
[311]4759
[527]4760fi
4761if test -z "$ac_cv_prog_STRIP"; then
4762  ac_ct_STRIP=$STRIP
4763  # Extract the first word of "strip", so it can be a program name with args.
4764set dummy strip; ac_word=$2
4765echo "$as_me:$LINENO: checking for $ac_word" >&5
4766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4767if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4768  echo $ECHO_N "(cached) $ECHO_C" >&6
4769else
4770  if test -n "$ac_ct_STRIP"; then
4771  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
[311]4775do
[527]4776  IFS=$as_save_IFS
4777  test -z "$as_dir" && as_dir=.
4778  for ac_exec_ext in '' $ac_executable_extensions; do
4779  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780    ac_cv_prog_ac_ct_STRIP="strip"
4781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782    break 2
4783  fi
4784done
4785done
4786
4787  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4788fi
4789fi
4790ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4791if test -n "$ac_ct_STRIP"; then
4792  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4793echo "${ECHO_T}$ac_ct_STRIP" >&6
4794else
4795  echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797fi
4798
4799  STRIP=$ac_ct_STRIP
4800else
4801  STRIP="$ac_cv_prog_STRIP"
4802fi
4803
4804fi
4805INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4806
4807# We need awk for the "check" target.  The system "awk" is bad on
4808# some platforms.
4809# Always define AMTAR for backward compatibility.
4810
4811AMTAR=${AMTAR-"${am_missing_run}tar"}
4812
4813am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4814
4815
4816
4817
4818depcc="$CC"   am_compiler_list=
4819
4820echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4821echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4822if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
[311]4823  echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
[527]4825  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4826  # We make a subdir and do the tests there.  Otherwise we can end up
4827  # making bogus files that we don't know about and never remove.  For
4828  # instance it was reported that on HP-UX the gcc test will end up
4829  # making a dummy file named `D' -- because `-MD' means `put the output
4830  # in D'.
4831  mkdir conftest.dir
4832  # Copy depcomp to subdir because otherwise we won't find it if we're
4833  # using a relative directory.
4834  cp "$am_depcomp" conftest.dir
4835  cd conftest.dir
4836  # We will build objects and dependencies in a subdirectory because
4837  # it helps to detect inapplicable dependency modes.  For instance
4838  # both Tru64's cc and ICC support -MD to output dependencies as a
4839  # side effect of compilation, but ICC will put the dependencies in
4840  # the current directory while Tru64 will put them in the object
4841  # directory.
4842  mkdir sub
[311]4843
[527]4844  am_cv_CC_dependencies_compiler_type=none
4845  if test "$am_compiler_list" = ""; then
4846     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4847  fi
4848  for depmode in $am_compiler_list; do
4849    # Setup a source with many dependencies, because some compilers
4850    # like to wrap large dependency lists on column 80 (with \), and
4851    # we should not choose a depcomp mode which is confused by this.
4852    #
4853    # We need to recreate these files for each test, as the compiler may
4854    # overwrite some of them when testing with obscure command lines.
4855    # This happens at least with the AIX C compiler.
4856    : > sub/conftest.c
4857    for i in 1 2 3 4 5 6; do
4858      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4859      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4860      # Solaris 8's {/usr,}/bin/sh.
4861      touch sub/conftst$i.h
4862    done
4863    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4864
4865    case $depmode in
4866    nosideeffect)
4867      # after this tag, mechanisms are not by side-effect, so they'll
4868      # only be used when explicitly requested
4869      if test "x$enable_dependency_tracking" = xyes; then
4870        continue
4871      else
4872        break
4873      fi
4874      ;;
4875    none) break ;;
4876    esac
4877    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4878    # mode.  It turns out that the SunPro C++ compiler does not properly
4879    # handle `-M -o', and we need to detect this.
4880    if depmode=$depmode \
4881       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4882       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4883       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4884         >/dev/null 2>conftest.err &&
4885       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4886       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4887       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4888      # icc doesn't choke on unknown options, it will just issue warnings
4889      # or remarks (even with -Werror).  So we grep stderr for any message
4890      # that says an option was ignored or not supported.
4891      # When given -MP, icc 7.0 and 7.1 complain thusly:
4892      #   icc: Command line warning: ignoring option '-M'; no argument required
4893      # The diagnosis changed in icc 8.0:
4894      #   icc: Command line remark: option '-MP' not supported
4895      if (grep 'ignoring option' conftest.err ||
4896          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4897        am_cv_CC_dependencies_compiler_type=$depmode
4898        break
4899      fi
4900    fi
4901  done
4902
4903  cd ..
4904  rm -rf conftest.dir
[311]4905else
[527]4906  am_cv_CC_dependencies_compiler_type=none
4907fi
[311]4908
4909fi
[527]4910echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4911echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4912CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4913
4914
4915
4916if
4917  test "x$enable_dependency_tracking" != xno \
4918  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4919  am__fastdepCC_TRUE=
4920  am__fastdepCC_FALSE='#'
4921else
4922  am__fastdepCC_TRUE='#'
4923  am__fastdepCC_FALSE=
[311]4924fi
4925
[527]4926
4927depcc="$CXX"  am_compiler_list=
4928
4929echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4930echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4931if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4932  echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4935  # We make a subdir and do the tests there.  Otherwise we can end up
4936  # making bogus files that we don't know about and never remove.  For
4937  # instance it was reported that on HP-UX the gcc test will end up
4938  # making a dummy file named `D' -- because `-MD' means `put the output
4939  # in D'.
4940  mkdir conftest.dir
4941  # Copy depcomp to subdir because otherwise we won't find it if we're
4942  # using a relative directory.
4943  cp "$am_depcomp" conftest.dir
4944  cd conftest.dir
4945  # We will build objects and dependencies in a subdirectory because
4946  # it helps to detect inapplicable dependency modes.  For instance
4947  # both Tru64's cc and ICC support -MD to output dependencies as a
4948  # side effect of compilation, but ICC will put the dependencies in
4949  # the current directory while Tru64 will put them in the object
4950  # directory.
4951  mkdir sub
4952
4953  am_cv_CXX_dependencies_compiler_type=none
4954  if test "$am_compiler_list" = ""; then
4955     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4956  fi
4957  for depmode in $am_compiler_list; do
4958    # Setup a source with many dependencies, because some compilers
4959    # like to wrap large dependency lists on column 80 (with \), and
4960    # we should not choose a depcomp mode which is confused by this.
4961    #
4962    # We need to recreate these files for each test, as the compiler may
4963    # overwrite some of them when testing with obscure command lines.
4964    # This happens at least with the AIX C compiler.
4965    : > sub/conftest.c
4966    for i in 1 2 3 4 5 6; do
4967      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4968      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4969      # Solaris 8's {/usr,}/bin/sh.
4970      touch sub/conftst$i.h
4971    done
4972    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4973
4974    case $depmode in
4975    nosideeffect)
4976      # after this tag, mechanisms are not by side-effect, so they'll
4977      # only be used when explicitly requested
4978      if test "x$enable_dependency_tracking" = xyes; then
4979        continue
4980      else
4981        break
4982      fi
4983      ;;
4984    none) break ;;
4985    esac
4986    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4987    # mode.  It turns out that the SunPro C++ compiler does not properly
4988    # handle `-M -o', and we need to detect this.
4989    if depmode=$depmode \
4990       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4991       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4992       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4993         >/dev/null 2>conftest.err &&
4994       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4995       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4996       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4997      # icc doesn't choke on unknown options, it will just issue warnings
4998      # or remarks (even with -Werror).  So we grep stderr for any message
4999      # that says an option was ignored or not supported.
5000      # When given -MP, icc 7.0 and 7.1 complain thusly:
5001      #   icc: Command line warning: ignoring option '-M'; no argument required
5002      # The diagnosis changed in icc 8.0:
5003      #   icc: Command line remark: option '-MP' not supported
5004      if (grep 'ignoring option' conftest.err ||
5005          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5006        am_cv_CXX_dependencies_compiler_type=$depmode
5007        break
5008      fi
5009    fi
5010  done
5011
5012  cd ..
5013  rm -rf conftest.dir
5014else
5015  am_cv_CXX_dependencies_compiler_type=none
[311]5016fi
5017
[527]5018fi
5019echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5020echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5021CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5022
5023
5024
5025if
5026  test "x$enable_dependency_tracking" != xno \
5027  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5028  am__fastdepCXX_TRUE=
5029  am__fastdepCXX_FALSE='#'
5030else
5031  am__fastdepCXX_TRUE='#'
5032  am__fastdepCXX_FALSE=
5033fi
5034
5035
5036
5037echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5038echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5039    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5040if test "${enable_maintainer_mode+set}" = set; then
5041  enableval="$enable_maintainer_mode"
5042  USE_MAINTAINER_MODE=$enableval
5043else
5044  USE_MAINTAINER_MODE=no
5045fi;
5046  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5047echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5048
5049
5050if test $USE_MAINTAINER_MODE = yes; then
5051  MAINTAINER_MODE_TRUE=
5052  MAINTAINER_MODE_FALSE='#'
5053else
5054  MAINTAINER_MODE_TRUE='#'
5055  MAINTAINER_MODE_FALSE=
5056fi
5057
5058  MAINT=$MAINTAINER_MODE_TRUE
5059
5060
5061
5062coin_have_externals=no
5063if test "$enable_maintainer_mode" = yes; then
5064
5065  # If maintainer mode is chosen, we make sure that the correct versions
5066  # of the tools are used, and that we know where libtool.m4 is (to
5067  # recreate acinclude.m4)
5068
5069
5070  LIBTOOLM4=
5071  # Normally, $HOME
5072  AUTOTOOLS_DFLT=$HOME
5073
5074  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5075echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5076if test "${ac_cv_use_correct_autotools+set}" = set; then
5077  echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079  ac_cv_use_correct_autotools=check
5080fi
5081echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5082echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5083
5084  if test $ac_cv_use_correct_autotools = check; then
5085    ac_cv_use_correct_autotools=yes
5086    # Check if we have autoconf
5087    # Extract the first word of "autoconf", so it can be a program name with args.
5088set dummy autoconf; ac_word=$2
5089echo "$as_me:$LINENO: checking for $ac_word" >&5
5090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091if test "${ac_cv_prog_have_autoconf+set}" = set; then
5092  echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094  if test -n "$have_autoconf"; then
5095  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100  IFS=$as_save_IFS
5101  test -z "$as_dir" && as_dir=.
5102  for ac_exec_ext in '' $ac_executable_extensions; do
5103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104    ac_cv_prog_have_autoconf="yes"
5105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106    break 2
5107  fi
[311]5108done
[527]5109done
[311]5110
[527]5111  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5112fi
5113fi
5114have_autoconf=$ac_cv_prog_have_autoconf
5115if test -n "$have_autoconf"; then
5116  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5117echo "${ECHO_T}$have_autoconf" >&6
5118else
5119  echo "$as_me:$LINENO: result: no" >&5
5120echo "${ECHO_T}no" >&6
5121fi
[311]5122
[527]5123    if test $have_autoconf = no; then
5124      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5125echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5126   { (exit 1); exit 1; }; }
5127    fi
[311]5128
[527]5129    # Check whether autoconf is the correct version
5130    correct_version='2.59'
5131    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5132    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5133echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5134    autoconf --version > confauto.out 2>&1
5135    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5136      echo "$as_me:$LINENO: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
5138    else
5139      rm -f confauto.out
5140      echo "$as_me:$LINENO: result: no" >&5
5141echo "${ECHO_T}no" >&6
5142      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5143echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5144   { (exit 1); exit 1; }; }
5145    fi
5146    rm -f confauto.out
[311]5147
[527]5148    # Check if the executable autoconf is picked up from the correct location
5149    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5150echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5151    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5152    autoconf_dir=`cd $autoconf_dir; pwd`
5153    if test x$AUTOTOOLS_DIR = x; then
5154      want_dir=$AUTOTOOLS_DFLT/bin
5155    else
5156      want_dir=$AUTOTOOLS_DIR/bin
5157    fi
5158    if test $autoconf_dir = `cd $want_dir; pwd`; then
5159      echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161    else
5162      rm -f confauto.out
5163      echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5166echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5167   { (exit 1); exit 1; }; }
5168    fi
5169
5170    # Check if we have automake
5171    # Extract the first word of "automake", so it can be a program name with args.
5172set dummy automake; ac_word=$2
5173echo "$as_me:$LINENO: checking for $ac_word" >&5
5174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5175if test "${ac_cv_prog_have_automake+set}" = set; then
5176  echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178  if test -n "$have_automake"; then
5179  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186  for ac_exec_ext in '' $ac_executable_extensions; do
5187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188    ac_cv_prog_have_automake="yes"
5189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190    break 2
5191  fi
5192done
5193done
5194
5195  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5196fi
5197fi
5198have_automake=$ac_cv_prog_have_automake
5199if test -n "$have_automake"; then