source: stable/2.6/Cbc/configure @ 1902

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

rerun autotools; merge fixes in example Makefiles for mingw/cl from trunk

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