source: trunk/Clp/configure @ 1735

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

rerun autotools

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