source: stable/BSPsplit/CoinMP/configure @ 274

Last change on this file since 274 was 274, checked in by andreasw, 10 years ago

correct -version-info option

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