source: trunk/Couenne/configure @ 563

Last change on this file since 563 was 563, checked in by pbelotti, 9 years ago

fixing reformulation of products of xka * xkb

File size: 934.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Couenne trunk.
4#
5# Report bugs to <couenne@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 Carnegie Mellon University, 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 Eclipse 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='Couenne'
431PACKAGE_TARNAME='couenne'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Couenne trunk'
434PACKAGE_BUGREPORT='couenne@list.coin-or.org'
435
436ac_unique_file="src/expression/expression.cpp"
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
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COUENNE_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BONMIN_LIBS BONMIN_CFLAGS BONMIN_DATA BONMIN_DEPENDENCIES BONMIN_LIBS_INSTALLED BONMIN_CFLAGS_INSTALLED BONMIN_DATA_INSTALLED COUENNELIB_CFLAGS COUENNELIB_LIBS COUENNELIB_PCLIBS COUENNELIB_PCREQUIRES COUENNELIB_DEPENDENCIES COUENNELIB_CFLAGS_INSTALLED COUENNELIB_LIBS_INSTALLED COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE CPXINCDIR GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
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
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Couenne trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Couenne trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-couenne compile this project (Couenne) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --disable-dependency-tracking  speeds up one-time build
1091  --enable-dependency-tracking   do not reject slow dependency extractors
1092  --enable-maintainer-mode  enable make rules and dependencies not useful
1093                          (and sometimes confusing) to the casual installer
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099  --enable-pkg-config     use pkg-config if available (default is yes)
1100  --enable-interpackage-dependencies
1101                          whether to deduce Makefile dependencies from package
1102                          linker flags (default: yes)
1103  --enable-nauty-libcheck use disable-nauty-libcheck to skip the
1104                          link check at configuration time
1105
1106Optional Packages:
1107  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1108  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1109  --with-couenne-verbosity
1110                          specify the debug verbosity level for project
1111                          Couenne
1112  --with-couenne-checklevel
1113                          specify the sanity check level for project Couenne
1114  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1115  --with-pic              try to use only PIC/non-PIC objects [default=use
1116                          both]
1117  --with-tags[=TAGS]
1118                          include additional configurations [automatic]
1119  --with-coin-instdir     prefix of installation directory for precompiled
1120                          COIN packages
1121  --with-bonmin-lib linker flags for using package Bonmin
1122  --with-bonmin-incdir directory with header files for using package Bonmin
1123  --with-bonmin-datadir directory with data files for using package Bonmin
1124  --with-asl-lib linker flags for using package ASL
1125  --with-asl-incdir directory with header files for using package ASL
1126  --with-asl-datadir directory with data files for using package ASL
1127  --with-nauty-incdir specify the header file directory for library Nauty
1128  --with-nauty-lib specify the flags used to link with the library Nauty
1129  --with-cpx-lib linker flags for using package Cpx
1130  --with-cpx-incdir directory with header files for using package Cpx
1131  --with-cpx-datadir directory with data files for using package Cpx
1132  --with-cplex-incdir     specify the header file directory for library cplex
1133  --with-grb-lib linker flags for using package Grb
1134  --with-grb-incdir directory with header files for using package Grb
1135  --with-grb-datadir directory with data files for using package Grb
1136  --with-msk-lib linker flags for using package Msk
1137  --with-msk-incdir directory with header files for using package Msk
1138  --with-msk-datadir directory with data files for using package Msk
1139  --with-spx-lib linker flags for using package Spx
1140  --with-spx-incdir directory with header files for using package Spx
1141  --with-spx-datadir directory with data files for using package Spx
1142  --with-xpr-lib linker flags for using package Xpr
1143  --with-xpr-incdir directory with header files for using package Xpr
1144  --with-xpr-datadir directory with data files for using package Xpr
1145
1146Some influential environment variables:
1147  CDEFS       Additional -D flags to be used when compiling C code.
1148  ADD_CFLAGS  Additional C compiler options
1149  DBG_CFLAGS  Debug C compiler options
1150  OPT_CFLAGS  Optimize C compiler options
1151  CC          C compiler command
1152  CFLAGS      C compiler flags
1153  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1154              nonstandard directory <lib dir>
1155  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1156              headers in a nonstandard directory <include dir>
1157  MPICC       C MPI Compiler
1158  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1159  ADD_CXXFLAGS
1160              Additional C++ compiler options
1161  DBG_CXXFLAGS
1162              Debug C++ compiler options
1163  OPT_CXXFLAGS
1164              Optimize C++ compiler options
1165  CXX         C++ compiler command
1166  CXXFLAGS    C++ compiler flags
1167  MPICXX      C++ MPI Compiler
1168  CPP         C preprocessor
1169  CXXCPP      C++ preprocessor
1170  F77         Fortran 77 compiler command
1171  FFLAGS      Fortran 77 compiler flags
1172  PKG_CONFIG  path to pkg-config utility
1173
1174Use these variables to override the choices made by `configure' or to help
1175it to find libraries and programs with nonstandard names/locations.
1176
1177Report bugs to <couenne@list.coin-or.org>.
1178_ACEOF
1179fi
1180
1181if test "$ac_init_help" = "recursive"; then
1182  # If there are subdirs, report their specific --help.
1183  ac_popdir=`pwd`
1184  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1185    test -d $ac_dir || continue
1186    ac_builddir=.
1187
1188if test "$ac_dir" != .; then
1189  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1190  # A "../" for each directory in $ac_dir_suffix.
1191  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1192else
1193  ac_dir_suffix= ac_top_builddir=
1194fi
1195
1196case $srcdir in
1197  .)  # No --srcdir option.  We are building in place.
1198    ac_srcdir=.
1199    if test -z "$ac_top_builddir"; then
1200       ac_top_srcdir=.
1201    else
1202       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1203    fi ;;
1204  [\\/]* | ?:[\\/]* )  # Absolute path.
1205    ac_srcdir=$srcdir$ac_dir_suffix;
1206    ac_top_srcdir=$srcdir ;;
1207  *) # Relative path.
1208    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1209    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1210esac
1211
1212# Do not use `cd foo && pwd` to compute absolute paths, because
1213# the directories may not exist.
1214case `pwd` in
1215.) ac_abs_builddir="$ac_dir";;
1216*)
1217  case "$ac_dir" in
1218  .) ac_abs_builddir=`pwd`;;
1219  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1220  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1221  esac;;
1222esac
1223case $ac_abs_builddir in
1224.) ac_abs_top_builddir=${ac_top_builddir}.;;
1225*)
1226  case ${ac_top_builddir}. in
1227  .) ac_abs_top_builddir=$ac_abs_builddir;;
1228  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1229  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1230  esac;;
1231esac
1232case $ac_abs_builddir in
1233.) ac_abs_srcdir=$ac_srcdir;;
1234*)
1235  case $ac_srcdir in
1236  .) ac_abs_srcdir=$ac_abs_builddir;;
1237  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1238  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1239  esac;;
1240esac
1241case $ac_abs_builddir in
1242.) ac_abs_top_srcdir=$ac_top_srcdir;;
1243*)
1244  case $ac_top_srcdir in
1245  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1246  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1247  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1248  esac;;
1249esac
1250
1251    cd $ac_dir
1252    # Check for guested configure; otherwise get Cygnus style configure.
1253    if test -f $ac_srcdir/configure.gnu; then
1254      echo
1255      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1256    elif test -f $ac_srcdir/configure; then
1257      echo
1258      $SHELL $ac_srcdir/configure  --help=recursive
1259    elif test -f $ac_srcdir/configure.ac ||
1260           test -f $ac_srcdir/configure.in; then
1261      echo
1262      $ac_configure --help
1263    else
1264      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1265    fi
1266    cd $ac_popdir
1267  done
1268fi
1269
1270test -n "$ac_init_help" && exit 0
1271if $ac_init_version; then
1272  cat <<\_ACEOF
1273Couenne configure trunk
1274generated by GNU Autoconf 2.59
1275
1276Copyright (C) 2003 Free Software Foundation, Inc.
1277This configure script is free software; the Free Software Foundation
1278gives unlimited permission to copy, distribute and modify it.
1279
1280
1281Copyright 2006 Carnegie Mellon University, International Business Machines and others.
1282All Rights Reserved.
1283This file is part of the open source package Coin which is distributed
1284under the Eclipse Public License.
1285_ACEOF
1286  exit 0
1287fi
1288exec 5>config.log
1289cat >&5 <<_ACEOF
1290This file contains any messages produced by compilers while
1291running configure, to aid debugging if configure makes a mistake.
1292
1293It was created by Couenne $as_me trunk, which was
1294generated by GNU Autoconf 2.59.  Invocation command line was
1295
1296  $ $0 $@
1297
1298_ACEOF
1299{
1300cat <<_ASUNAME
1301## --------- ##
1302## Platform. ##
1303## --------- ##
1304
1305hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1306uname -m = `(uname -m) 2>/dev/null || echo unknown`
1307uname -r = `(uname -r) 2>/dev/null || echo unknown`
1308uname -s = `(uname -s) 2>/dev/null || echo unknown`
1309uname -v = `(uname -v) 2>/dev/null || echo unknown`
1310
1311/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1312/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1313
1314/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1315/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1316/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1317hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1318/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1319/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1320/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1321
1322_ASUNAME
1323
1324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325for as_dir in $PATH
1326do
1327  IFS=$as_save_IFS
1328  test -z "$as_dir" && as_dir=.
1329  echo "PATH: $as_dir"
1330done
1331
1332} >&5
1333
1334cat >&5 <<_ACEOF
1335
1336
1337## ----------- ##
1338## Core tests. ##
1339## ----------- ##
1340
1341_ACEOF
1342
1343
1344# Keep a trace of the command line.
1345# Strip out --no-create and --no-recursion so they do not pile up.
1346# Strip out --silent because we don't want to record it for future runs.
1347# Also quote any args containing shell meta-characters.
1348# Make two passes to allow for proper duplicate-argument suppression.
1349ac_configure_args=
1350ac_configure_args0=
1351ac_configure_args1=
1352ac_sep=
1353ac_must_keep_next=false
1354for ac_pass in 1 2
1355do
1356  for ac_arg
1357  do
1358    case $ac_arg in
1359    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1360    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1361    | -silent | --silent | --silen | --sile | --sil)
1362      continue ;;
1363    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1364      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1365    esac
1366    case $ac_pass in
1367    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1368    2)
1369      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1370      if test $ac_must_keep_next = true; then
1371        ac_must_keep_next=false # Got value, back to normal.
1372      else
1373        case $ac_arg in
1374          *=* | --config-cache | -C | -disable-* | --disable-* \
1375          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1376          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1377          | -with-* | --with-* | -without-* | --without-* | --x)
1378            case "$ac_configure_args0 " in
1379              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1380            esac
1381            ;;
1382          -* ) ac_must_keep_next=true ;;
1383        esac
1384      fi
1385      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1386      # Get rid of the leading space.
1387      ac_sep=" "
1388      ;;
1389    esac
1390  done
1391done
1392$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1393$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1394
1395# When interrupted or exit'd, cleanup temporary files, and complete
1396# config.log.  We remove comments because anyway the quotes in there
1397# would cause problems or look ugly.
1398# WARNING: Be sure not to use single quotes in there, as some shells,
1399# such as our DU 5.0 friend, will then `close' the trap.
1400trap 'exit_status=$?
1401  # Save into config.log some information that might help in debugging.
1402  {
1403    echo
1404
1405    cat <<\_ASBOX
1406## ---------------- ##
1407## Cache variables. ##
1408## ---------------- ##
1409_ASBOX
1410    echo
1411    # The following way of writing the cache mishandles newlines in values,
1412{
1413  (set) 2>&1 |
1414    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1415    *ac_space=\ *)
1416      sed -n \
1417        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1418          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1419      ;;
1420    *)
1421      sed -n \
1422        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1423      ;;
1424    esac;
1425}
1426    echo
1427
1428    cat <<\_ASBOX
1429## ----------------- ##
1430## Output variables. ##
1431## ----------------- ##
1432_ASBOX
1433    echo
1434    for ac_var in $ac_subst_vars
1435    do
1436      eval ac_val=$`echo $ac_var`
1437      echo "$ac_var='"'"'$ac_val'"'"'"
1438    done | sort
1439    echo
1440
1441    if test -n "$ac_subst_files"; then
1442      cat <<\_ASBOX
1443## ------------- ##
1444## Output files. ##
1445## ------------- ##
1446_ASBOX
1447      echo
1448      for ac_var in $ac_subst_files
1449      do
1450        eval ac_val=$`echo $ac_var`
1451        echo "$ac_var='"'"'$ac_val'"'"'"
1452      done | sort
1453      echo
1454    fi
1455
1456    if test -s confdefs.h; then
1457      cat <<\_ASBOX
1458## ----------- ##
1459## confdefs.h. ##
1460## ----------- ##
1461_ASBOX
1462      echo
1463      sed "/^$/d" confdefs.h | sort
1464      echo
1465    fi
1466    test "$ac_signal" != 0 &&
1467      echo "$as_me: caught signal $ac_signal"
1468    echo "$as_me: exit $exit_status"
1469  } >&5
1470  rm -f core *.core &&
1471  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1472    exit $exit_status
1473     ' 0
1474for ac_signal in 1 2 13 15; do
1475  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1476done
1477ac_signal=0
1478
1479# confdefs.h avoids OS command line length limits that DEFS can exceed.
1480rm -rf conftest* confdefs.h
1481# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1482echo >confdefs.h
1483
1484# Predefined preprocessor variables.
1485
1486cat >>confdefs.h <<_ACEOF
1487#define PACKAGE_NAME "$PACKAGE_NAME"
1488_ACEOF
1489
1490
1491cat >>confdefs.h <<_ACEOF
1492#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1493_ACEOF
1494
1495
1496cat >>confdefs.h <<_ACEOF
1497#define PACKAGE_VERSION "$PACKAGE_VERSION"
1498_ACEOF
1499
1500
1501cat >>confdefs.h <<_ACEOF
1502#define PACKAGE_STRING "$PACKAGE_STRING"
1503_ACEOF
1504
1505
1506cat >>confdefs.h <<_ACEOF
1507#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1508_ACEOF
1509
1510
1511# Let the site file select an alternate cache file if it wants to.
1512# Prefer explicitly selected file to automatically selected ones.
1513if test -z "$CONFIG_SITE"; then
1514  if test "x$prefix" != xNONE; then
1515    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1516  else
1517    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1518  fi
1519fi
1520for ac_site_file in $CONFIG_SITE; do
1521  if test -r "$ac_site_file"; then
1522    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1523echo "$as_me: loading site script $ac_site_file" >&6;}
1524    sed 's/^/| /' "$ac_site_file" >&5
1525    . "$ac_site_file"
1526  fi
1527done
1528
1529if test -r "$cache_file"; then
1530  # Some versions of bash will fail to source /dev/null (special
1531  # files actually), so we avoid doing that.
1532  if test -f "$cache_file"; then
1533    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1534echo "$as_me: loading cache $cache_file" >&6;}
1535    case $cache_file in
1536      [\\/]* | ?:[\\/]* ) . $cache_file;;
1537      *)                      . ./$cache_file;;
1538    esac
1539  fi
1540else
1541  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1542echo "$as_me: creating cache $cache_file" >&6;}
1543  >$cache_file
1544fi
1545
1546# Check that the precious variables saved in the cache have kept the same
1547# value.
1548ac_cache_corrupted=false
1549for ac_var in `(set) 2>&1 |
1550               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1551  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1552  eval ac_new_set=\$ac_env_${ac_var}_set
1553  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1554  eval ac_new_val="\$ac_env_${ac_var}_value"
1555  case $ac_old_set,$ac_new_set in
1556    set,)
1557      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1558echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1559      ac_cache_corrupted=: ;;
1560    ,set)
1561      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1562echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1563      ac_cache_corrupted=: ;;
1564    ,);;
1565    *)
1566      if test "x$ac_old_val" != "x$ac_new_val"; then
1567        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1568echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1569        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1570echo "$as_me:   former value:  $ac_old_val" >&2;}
1571        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1572echo "$as_me:   current value: $ac_new_val" >&2;}
1573        ac_cache_corrupted=:
1574      fi;;
1575  esac
1576  # Pass precious variables to config.status.
1577  if test "$ac_new_set" = set; then
1578    case $ac_new_val in
1579    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1580      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1581    *) ac_arg=$ac_var=$ac_new_val ;;
1582    esac
1583    case " $ac_configure_args " in
1584      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1585      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1586    esac
1587  fi
1588done
1589if $ac_cache_corrupted; then
1590  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1591echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1592  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1593echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1594   { (exit 1); exit 1; }; }
1595fi
1596
1597ac_ext=c
1598ac_cpp='$CPP $CPPFLAGS'
1599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1601ac_compiler_gnu=$ac_cv_c_compiler_gnu
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632# List one file in the package so that the configure script can test
1633# whether the package is actually there
1634
1635
1636# Where should everything be installed by default?  Here, we want it
1637# to be installed directly in 'bin', 'lib', 'include' subdirectories
1638# of the directory where configure is run.  The default would be
1639# /usr/local.
1640
1641
1642#############################################################################
1643#                         Standard build tool stuff                         #
1644#############################################################################
1645
1646# Get the system type
1647ac_aux_dir=
1648for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1649  if test -f $ac_dir/install-sh; then
1650    ac_aux_dir=$ac_dir
1651    ac_install_sh="$ac_aux_dir/install-sh -c"
1652    break
1653  elif test -f $ac_dir/install.sh; then
1654    ac_aux_dir=$ac_dir
1655    ac_install_sh="$ac_aux_dir/install.sh -c"
1656    break
1657  elif test -f $ac_dir/shtool; then
1658    ac_aux_dir=$ac_dir
1659    ac_install_sh="$ac_aux_dir/shtool install -c"
1660    break
1661  fi
1662done
1663if test -z "$ac_aux_dir"; then
1664  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1665echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1666   { (exit 1); exit 1; }; }
1667fi
1668ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1669ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1670ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1671
1672# Make sure we can run config.sub.
1673$ac_config_sub sun4 >/dev/null 2>&1 ||
1674  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1675echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1676   { (exit 1); exit 1; }; }
1677
1678echo "$as_me:$LINENO: checking build system type" >&5
1679echo $ECHO_N "checking build system type... $ECHO_C" >&6
1680if test "${ac_cv_build+set}" = set; then
1681  echo $ECHO_N "(cached) $ECHO_C" >&6
1682else
1683  ac_cv_build_alias=$build_alias
1684test -z "$ac_cv_build_alias" &&
1685  ac_cv_build_alias=`$ac_config_guess`
1686test -z "$ac_cv_build_alias" &&
1687  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1688echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1689   { (exit 1); exit 1; }; }
1690ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1691  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1692echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1693   { (exit 1); exit 1; }; }
1694
1695fi
1696echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1697echo "${ECHO_T}$ac_cv_build" >&6
1698build=$ac_cv_build
1699build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1700build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1701build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1702
1703
1704
1705# Initialization specifically for project main directories
1706
1707# As backup, we make sure we don't loose an FLIBS if it has been set
1708# by the user
1709save_FLIBS="$FLIBS"
1710
1711# A useful makefile conditional that is always false
1712
1713
1714if false; then
1715  ALWAYS_FALSE_TRUE=
1716  ALWAYS_FALSE_FALSE='#'
1717else
1718  ALWAYS_FALSE_TRUE='#'
1719  ALWAYS_FALSE_FALSE=
1720fi
1721
1722
1723# We set the following variable so that we know later in AC_COIN_FINALIZE
1724# that we are in a project main directory
1725coin_projectdir=yes
1726
1727# Set the project's version numbers
1728
1729
1730cat >>confdefs.h <<_ACEOF
1731#define COUENNE_VERSION "$PACKAGE_VERSION"
1732_ACEOF
1733
1734
1735  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1736  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1737  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1738  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1739  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1740  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1741
1742cat >>confdefs.h <<_ACEOF
1743#define COUENNE_VERSION_MAJOR $coin_majorver
1744_ACEOF
1745
1746
1747cat >>confdefs.h <<_ACEOF
1748#define COUENNE_VERSION_MINOR $coin_minorver
1749_ACEOF
1750
1751
1752cat >>confdefs.h <<_ACEOF
1753#define COUENNE_VERSION_RELEASE $coin_releasever
1754_ACEOF
1755
1756
1757  # We use the following variable to have a string with the upper case
1758  # version of the project name
1759  COIN_PRJCT=COUENNE
1760
1761  # Set the project's SVN revision number. The complicated sed expression
1762  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1763  # as a single number.
1764  # Extract the first word of "svnversion", so it can be a program name with args.
1765set dummy svnversion; ac_word=$2
1766echo "$as_me:$LINENO: checking for $ac_word" >&5
1767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768if test "${ac_cv_prog_have_svnversion+set}" = set; then
1769  echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771  if test -n "$have_svnversion"; then
1772  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1773else
1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775for as_dir in $PATH
1776do
1777  IFS=$as_save_IFS
1778  test -z "$as_dir" && as_dir=.
1779  for ac_exec_ext in '' $ac_executable_extensions; do
1780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781    ac_cv_prog_have_svnversion="yes"
1782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783    break 2
1784  fi
1785done
1786done
1787
1788  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1789fi
1790fi
1791have_svnversion=$ac_cv_prog_have_svnversion
1792if test -n "$have_svnversion"; then
1793  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1794echo "${ECHO_T}$have_svnversion" >&6
1795else
1796  echo "$as_me:$LINENO: result: no" >&5
1797echo "${ECHO_T}no" >&6
1798fi
1799
1800  if test "x$have_svnversion" = xyes; then
1801
1802    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1803    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1804      COUENNE_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1805
1806cat >>confdefs.h <<_ACEOF
1807#define COUENNE_SVN_REV $COUENNE_SVN_REV
1808_ACEOF
1809
1810    fi
1811  fi
1812
1813
1814
1815# Capture libtool library version, if given.
1816
1817
1818
1819
1820# Check if user wants to produce debugging code
1821
1822echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1823echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1824
1825# Check whether --enable-debug or --disable-debug was given.
1826if test "${enable_debug+set}" = set; then
1827  enableval="$enable_debug"
1828  case "${enableval}" in
1829   yes) coin_debug_compile=true
1830        if test "${enable_shared+set}" = set; then :; else
1831          enable_shared=no
1832        fi
1833        ;;
1834   no)  coin_debug_compile=false
1835        ;;
1836   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1837echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1838   { (exit 1); exit 1; }; }
1839        ;;
1840esac
1841else
1842  coin_debug_compile=false
1843fi;
1844
1845# Check whether --enable-debug-couenne or --disable-debug-couenne was given.
1846if test "${enable_debug_couenne+set}" = set; then
1847  enableval="$enable_debug_couenne"
1848  case "${enableval}" in
1849    yes) coin_debug_compile=true
1850         enable_shared=no
1851         ;;
1852    no)  coin_debug_compile=false
1853         ;;
1854    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
1855echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
1856   { (exit 1); exit 1; }; }
1857         ;;
1858 esac
1859else
1860  :
1861fi;
1862
1863 # m4_ifvaln([Couenne],
1864
1865if test $coin_debug_compile = true; then
1866  echo "$as_me:$LINENO: result: yes" >&5
1867echo "${ECHO_T}yes" >&6
1868else
1869  echo "$as_me:$LINENO: result: no" >&5
1870echo "${ECHO_T}no" >&6
1871fi
1872
1873
1874# Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
1875if test "${with_couenne_verbosity+set}" = set; then
1876  withval="$with_couenne_verbosity"
1877  if test "$withval" = yes; then
1878                withval=1
1879              fi
1880              coin_couenne_verbosity=$withval
1881else
1882  coin_couenne_verbosity=0
1883fi;
1884
1885cat >>confdefs.h <<_ACEOF
1886#define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
1887_ACEOF
1888
1889
1890
1891# Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
1892if test "${with_couenne_checklevel+set}" = set; then
1893  withval="$with_couenne_checklevel"
1894  if test "$withval" = yes; then
1895                withval=1
1896              fi
1897              coin_couenne_checklevel=$withval
1898else
1899  coin_couenne_checklevel=0
1900fi;
1901
1902cat >>confdefs.h <<_ACEOF
1903#define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
1904_ACEOF
1905
1906
1907 # m4_ifvaln([Couenne],
1908
1909
1910
1911# Get the name of the C++ compiler and appropriate compiler options
1912case $build in
1913  *-mingw*)
1914    if test "${LD+set}" = set; then :; else
1915      LD=link
1916    fi
1917    ;;
1918 esac
1919 case $enable_doscompile in
1920   msvc)
1921     if test "x${LD+set}" = xset; then :; else
1922       LD=link
1923     fi
1924     ;;
1925 esac
1926
1927
1928 # Check whether --enable-doscompile or --disable-doscompile was given.
1929if test "${enable_doscompile+set}" = set; then
1930  enableval="$enable_doscompile"
1931  if test "$enable_doscompile" != no; then
1932     case $build in
1933       *-cygwin* | *-mingw*) ;;
1934       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1935echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1936   { (exit 1); exit 1; }; } ;;
1937     esac
1938   fi
1939else
1940  enable_doscompile=no
1941fi;
1942 case "$enable_doscompile" in
1943   mingw)
1944     case $build in
1945       *-mingw*) enable_doscompile=no ;;
1946     esac
1947     ;;
1948   msvc|no) ;;
1949   yes) enable_doscompile=mingw ;;
1950   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1951                    Try configure --help=recursive." >&5
1952echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1953                    Try configure --help=recursive." >&2;}
1954   { (exit 1); exit 1; }; }
1955      ;;
1956  esac
1957  if test "$enable_doscompile" != no ; then
1958    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1959echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1960  fi
1961
1962
1963
1964
1965ac_ext=c
1966ac_cpp='$CPP $CPPFLAGS'
1967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970
1971
1972# For consistency, we set the C compiler to the same value of the C++
1973# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1974if test x"$CXX" != x; then
1975  case "$CXX" in
1976    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1977      if test x"$CC" = x; then
1978        CC="$CXX"
1979        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1980echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1981      fi
1982      ;;
1983  esac
1984fi
1985
1986
1987
1988
1989
1990
1991coin_has_cc=yes
1992
1993save_cflags="$CFLAGS"
1994
1995# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1996# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1997# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1998# compiler. In this case, put cc after gcc.
1999
2000case $build in
2001  *-cygwin* | *-mingw*)
2002             if test "$enable_doscompile" = msvc ; then
2003               comps="icl cl"
2004             else
2005               comps="gcc cl"
2006             fi ;;
2007  *-*-solaris*)
2008             # Extract the first word of "cc", so it can be a program name with args.
2009set dummy cc; ac_word=$2
2010echo "$as_me:$LINENO: checking for $ac_word" >&5
2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2013  echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015  if test -n "$sol_cc_compiler"; then
2016  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2017else
2018  ac_prog_rejected=no
2019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020for as_dir in $PATH
2021do
2022  IFS=$as_save_IFS
2023  test -z "$as_dir" && as_dir=.
2024  for ac_exec_ext in '' $ac_executable_extensions; do
2025  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2027       ac_prog_rejected=yes
2028       continue
2029     fi
2030    ac_cv_prog_sol_cc_compiler="cc"
2031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032    break 2
2033  fi
2034done
2035done
2036
2037if test $ac_prog_rejected = yes; then
2038  # We found a bogon in the path, so make sure we never use it.
2039  set dummy $ac_cv_prog_sol_cc_compiler
2040  shift
2041  if test $# != 0; then
2042    # We chose a different compiler from the bogus one.
2043    # However, it has the same basename, so the bogon will be chosen
2044    # first if we set sol_cc_compiler to just the basename; use the full file name.
2045    shift
2046    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2047  fi
2048fi
2049fi
2050fi
2051sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2052if test -n "$sol_cc_compiler"; then
2053  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2054echo "${ECHO_T}$sol_cc_compiler" >&6
2055else
2056  echo "$as_me:$LINENO: result: no" >&5
2057echo "${ECHO_T}no" >&6
2058fi
2059
2060             if test "$sol_cc_compiler" = "cc" ; then
2061               comps="cc xlc gcc pgcc icc"
2062             else
2063               comps="xlc gcc pgcc icc cc"
2064             fi
2065             ;;
2066  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2067  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2068  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2069esac
2070
2071# We delete the cached value, since the test might not have been
2072# performed with our choice of compilers earlier
2073$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2074# AC_MSG_NOTICE([C compiler candidates: $comps])
2075ac_ext=c
2076ac_cpp='$CPP $CPPFLAGS'
2077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2079ac_compiler_gnu=$ac_cv_c_compiler_gnu
2080if test -n "$ac_tool_prefix"; then
2081  for ac_prog in $comps
2082  do
2083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2085echo "$as_me:$LINENO: checking for $ac_word" >&5
2086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087if test "${ac_cv_prog_CC+set}" = set; then
2088  echo $ECHO_N "(cached) $ECHO_C" >&6
2089else
2090  if test -n "$CC"; then
2091  ac_cv_prog_CC="$CC" # Let the user override the test.
2092else
2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094for as_dir in $PATH
2095do
2096  IFS=$as_save_IFS
2097  test -z "$as_dir" && as_dir=.
2098  for ac_exec_ext in '' $ac_executable_extensions; do
2099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102    break 2
2103  fi
2104done
2105done
2106
2107fi
2108fi
2109CC=$ac_cv_prog_CC
2110if test -n "$CC"; then
2111  echo "$as_me:$LINENO: result: $CC" >&5
2112echo "${ECHO_T}$CC" >&6
2113else
2114  echo "$as_me:$LINENO: result: no" >&5
2115echo "${ECHO_T}no" >&6
2116fi
2117
2118    test -n "$CC" && break
2119  done
2120fi
2121if test -z "$CC"; then
2122  ac_ct_CC=$CC
2123  for ac_prog in $comps
2124do
2125  # Extract the first word of "$ac_prog", so it can be a program name with args.
2126set dummy $ac_prog; ac_word=$2
2127echo "$as_me:$LINENO: checking for $ac_word" >&5
2128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  if test -n "$ac_ct_CC"; then
2133  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2134else
2135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140  for ac_exec_ext in '' $ac_executable_extensions; do
2141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2142    ac_cv_prog_ac_ct_CC="$ac_prog"
2143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144    break 2
2145  fi
2146done
2147done
2148
2149fi
2150fi
2151ac_ct_CC=$ac_cv_prog_ac_ct_CC
2152if test -n "$ac_ct_CC"; then
2153  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2154echo "${ECHO_T}$ac_ct_CC" >&6
2155else
2156  echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6
2158fi
2159
2160  test -n "$ac_ct_CC" && break
2161done
2162
2163  CC=$ac_ct_CC
2164fi
2165
2166
2167test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2168See \`config.log' for more details." >&5
2169echo "$as_me: error: no acceptable C compiler found in \$PATH
2170See \`config.log' for more details." >&2;}
2171   { (exit 1); exit 1; }; }
2172
2173# Provide some information about the compiler.
2174echo "$as_me:$LINENO:" \
2175     "checking for C compiler version" >&5
2176ac_compiler=`set X $ac_compile; echo $2`
2177{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2178  (eval $ac_compiler --version </dev/null >&5) 2>&5
2179  ac_status=$?
2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181  (exit $ac_status); }
2182{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2183  (eval $ac_compiler -v </dev/null >&5) 2>&5
2184  ac_status=$?
2185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186  (exit $ac_status); }
2187{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2188  (eval $ac_compiler -V </dev/null >&5) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }
2192
2193cat >conftest.$ac_ext <<_ACEOF
2194/* confdefs.h.  */
2195_ACEOF
2196cat confdefs.h >>conftest.$ac_ext
2197cat >>conftest.$ac_ext <<_ACEOF
2198/* end confdefs.h.  */
2199
2200int
2201main ()
2202{
2203
2204  ;
2205  return 0;
2206}
2207_ACEOF
2208ac_clean_files_save=$ac_clean_files
2209ac_clean_files="$ac_clean_files a.out a.exe b.out"
2210# Try to create an executable without -o first, disregard a.out.
2211# It will help us diagnose broken compilers, and finding out an intuition
2212# of exeext.
2213echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2214echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2215ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2216if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2217  (eval $ac_link_default) 2>&5
2218  ac_status=$?
2219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220  (exit $ac_status); }; then
2221  # Find the output, starting from the most likely.  This scheme is
2222# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2223# resort.
2224
2225# Be careful to initialize this variable, since it used to be cached.
2226# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2227ac_cv_exeext=
2228# b.out is created by i960 compilers.
2229for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2230do
2231  test -f "$ac_file" || continue
2232  case $ac_file in
2233    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2234        ;;
2235    conftest.$ac_ext )
2236        # This is the source file.
2237        ;;
2238    [ab].out )
2239        # We found the default executable, but exeext='' is most
2240        # certainly right.
2241        break;;
2242    *.* )
2243        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244        # FIXME: I believe we export ac_cv_exeext for Libtool,
2245        # but it would be cool to find out if it's true.  Does anybody
2246        # maintain Libtool? --akim.
2247        export ac_cv_exeext
2248        break;;
2249    * )
2250        break;;
2251  esac
2252done
2253else
2254  echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2258See \`config.log' for more details." >&5
2259echo "$as_me: error: C compiler cannot create executables
2260See \`config.log' for more details." >&2;}
2261   { (exit 77); exit 77; }; }
2262fi
2263
2264ac_exeext=$ac_cv_exeext
2265echo "$as_me:$LINENO: result: $ac_file" >&5
2266echo "${ECHO_T}$ac_file" >&6
2267
2268# Check the compiler produces executables we can run.  If not, either
2269# the compiler is broken, or we cross compile.
2270echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2271echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2272# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2273# If not cross compiling, check that we can run a simple program.
2274if test "$cross_compiling" != yes; then
2275  if { ac_try='./$ac_file'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281    cross_compiling=no
2282  else
2283    if test "$cross_compiling" = maybe; then
2284        cross_compiling=yes
2285    else
2286        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287If you meant to cross compile, use \`--host'.
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&2;}
2292   { (exit 1); exit 1; }; }
2293    fi
2294  fi
2295fi
2296echo "$as_me:$LINENO: result: yes" >&5
2297echo "${ECHO_T}yes" >&6
2298
2299rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300ac_clean_files=$ac_clean_files_save
2301# Check the compiler produces executables we can run.  If not, either
2302# the compiler is broken, or we cross compile.
2303echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2305echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306echo "${ECHO_T}$cross_compiling" >&6
2307
2308echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2311  (eval $ac_link) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; then
2315  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2316# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2317# work properly (i.e., refer to `conftest.exe'), while it won't with
2318# `rm'.
2319for ac_file in conftest.exe conftest conftest.*; do
2320  test -f "$ac_file" || continue
2321  case $ac_file in
2322    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2323    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324          export ac_cv_exeext
2325          break;;
2326    * ) break;;
2327  esac
2328done
2329else
2330  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2333See \`config.log' for more details." >&2;}
2334   { (exit 1); exit 1; }; }
2335fi
2336
2337rm -f conftest$ac_cv_exeext
2338echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2339echo "${ECHO_T}$ac_cv_exeext" >&6
2340
2341rm -f conftest.$ac_ext
2342EXEEXT=$ac_cv_exeext
2343ac_exeext=$EXEEXT
2344echo "$as_me:$LINENO: checking for suffix of object files" >&5
2345echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2346if test "${ac_cv_objext+set}" = set; then
2347  echo $ECHO_N "(cached) $ECHO_C" >&6
2348else
2349  cat >conftest.$ac_ext <<_ACEOF
2350/* confdefs.h.  */
2351_ACEOF
2352cat confdefs.h >>conftest.$ac_ext
2353cat >>conftest.$ac_ext <<_ACEOF
2354/* end confdefs.h.  */
2355
2356int
2357main ()
2358{
2359
2360  ;
2361  return 0;
2362}
2363_ACEOF
2364rm -f conftest.o conftest.obj
2365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366  (eval $ac_compile) 2>&5
2367  ac_status=$?
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); }; then
2370  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2371  case $ac_file in
2372    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2373    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2374       break;;
2375  esac
2376done
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382See \`config.log' for more details." >&5
2383echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384See \`config.log' for more details." >&2;}
2385   { (exit 1); exit 1; }; }
2386fi
2387
2388rm -f conftest.$ac_cv_objext conftest.$ac_ext
2389fi
2390echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391echo "${ECHO_T}$ac_cv_objext" >&6
2392OBJEXT=$ac_cv_objext
2393ac_objext=$OBJEXT
2394echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2396if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397  echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399  cat >conftest.$ac_ext <<_ACEOF
2400/* confdefs.h.  */
2401_ACEOF
2402cat confdefs.h >>conftest.$ac_ext
2403cat >>conftest.$ac_ext <<_ACEOF
2404/* end confdefs.h.  */
2405
2406int
2407main ()
2408{
2409#ifndef __GNUC__
2410       choke me
2411#endif
2412
2413  ;
2414  return 0;
2415}
2416_ACEOF
2417rm -f conftest.$ac_objext
2418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419  (eval $ac_compile) 2>conftest.er1
2420  ac_status=$?
2421  grep -v '^ *+' conftest.er1 >conftest.err
2422  rm -f conftest.er1
2423  cat conftest.err >&5
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); } &&
2426         { ac_try='test -z "$ac_c_werror_flag"
2427                         || test ! -s conftest.err'
2428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429  (eval $ac_try) 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; } &&
2433         { ac_try='test -s conftest.$ac_objext'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; }; then
2439  ac_compiler_gnu=yes
2440else
2441  echo "$as_me: failed program was:" >&5
2442sed 's/^/| /' conftest.$ac_ext >&5
2443
2444ac_compiler_gnu=no
2445fi
2446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447ac_cv_c_compiler_gnu=$ac_compiler_gnu
2448
2449fi
2450echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2451echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2452GCC=`test $ac_compiler_gnu = yes && echo yes`
2453ac_test_CFLAGS=${CFLAGS+set}
2454ac_save_CFLAGS=$CFLAGS
2455CFLAGS="-g"
2456echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2458if test "${ac_cv_prog_cc_g+set}" = set; then
2459  echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
2461  cat >conftest.$ac_ext <<_ACEOF
2462/* confdefs.h.  */
2463_ACEOF
2464cat confdefs.h >>conftest.$ac_ext
2465cat >>conftest.$ac_ext <<_ACEOF
2466/* end confdefs.h.  */
2467
2468int
2469main ()
2470{
2471
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476rm -f conftest.$ac_objext
2477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478  (eval $ac_compile) 2>conftest.er1
2479  ac_status=$?
2480  grep -v '^ *+' conftest.er1 >conftest.err
2481  rm -f conftest.er1
2482  cat conftest.err >&5
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); } &&
2485         { ac_try='test -z "$ac_c_werror_flag"
2486                         || test ! -s conftest.err'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; } &&
2492         { ac_try='test -s conftest.$ac_objext'
2493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494  (eval $ac_try) 2>&5
2495  ac_status=$?
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); }; }; then
2498  ac_cv_prog_cc_g=yes
2499else
2500  echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503ac_cv_prog_cc_g=no
2504fi
2505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506fi
2507echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2508echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2509if test "$ac_test_CFLAGS" = set; then
2510  CFLAGS=$ac_save_CFLAGS
2511elif test $ac_cv_prog_cc_g = yes; then
2512  if test "$GCC" = yes; then
2513    CFLAGS="-g -O2"
2514  else
2515    CFLAGS="-g"
2516  fi
2517else
2518  if test "$GCC" = yes; then
2519    CFLAGS="-O2"
2520  else
2521    CFLAGS=
2522  fi
2523fi
2524echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2525echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2526if test "${ac_cv_prog_cc_stdc+set}" = set; then
2527  echo $ECHO_N "(cached) $ECHO_C" >&6
2528else
2529  ac_cv_prog_cc_stdc=no
2530ac_save_CC=$CC
2531cat >conftest.$ac_ext <<_ACEOF
2532/* confdefs.h.  */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h.  */
2537#include <stdarg.h>
2538#include <stdio.h>
2539#include <sys/types.h>
2540#include <sys/stat.h>
2541/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2542struct buf { int x; };
2543FILE * (*rcsopen) (struct buf *, struct stat *, int);
2544static char *e (p, i)
2545     char **p;
2546     int i;
2547{
2548  return p[i];
2549}
2550static char *f (char * (*g) (char **, int), char **p, ...)
2551{
2552  char *s;
2553  va_list v;
2554  va_start (v,p);
2555  s = g (p, va_arg (v,int));
2556  va_end (v);
2557  return s;
2558}
2559
2560/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2561   function prototypes and stuff, but not '\xHH' hex character constants.
2562   These don't provoke an error unfortunately, instead are silently treated
2563   as 'x'.  The following induces an error, until -std1 is added to get
2564   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2565   array size at least.  It's necessary to write '\x00'==0 to get something
2566   that's true only with -std1.  */
2567int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2568
2569int test (int i, double x);
2570struct s1 {int (*f) (int a);};
2571struct s2 {int (*f) (double a);};
2572int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2573int argc;
2574char **argv;
2575int
2576main ()
2577{
2578return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2579  ;
2580  return 0;
2581}
2582_ACEOF
2583# Don't try gcc -ansi; that turns off useful extensions and
2584# breaks some systems' header files.
2585# AIX                   -qlanglvl=ansi
2586# Ultrix and OSF/1      -std1
2587# HP-UX 10.20 and later -Ae
2588# HP-UX older versions  -Aa -D_HPUX_SOURCE
2589# SVR4                  -Xc -D__EXTENSIONS__
2590for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2591do
2592  CC="$ac_save_CC $ac_arg"
2593  rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595  (eval $ac_compile) 2>conftest.er1
2596  ac_status=$?
2597  grep -v '^ *+' conftest.er1 >conftest.err
2598  rm -f conftest.er1
2599  cat conftest.err >&5
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); } &&
2602         { ac_try='test -z "$ac_c_werror_flag"
2603                         || test ! -s conftest.err'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; } &&
2609         { ac_try='test -s conftest.$ac_objext'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; }; then
2615  ac_cv_prog_cc_stdc=$ac_arg
2616break
2617else
2618  echo "$as_me: failed program was:" >&5
2619sed 's/^/| /' conftest.$ac_ext >&5
2620
2621fi
2622rm -f conftest.err conftest.$ac_objext
2623done
2624rm -f conftest.$ac_ext conftest.$ac_objext
2625CC=$ac_save_CC
2626
2627fi
2628
2629case "x$ac_cv_prog_cc_stdc" in
2630  x|xno)
2631    echo "$as_me:$LINENO: result: none needed" >&5
2632echo "${ECHO_T}none needed" >&6 ;;
2633  *)
2634    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2635echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2636    CC="$CC $ac_cv_prog_cc_stdc" ;;
2637esac
2638
2639# Some people use a C++ compiler to compile C.  Since we use `exit',
2640# in C++ we need to declare it.  In case someone uses the same compiler
2641# for both compiling C and C++ we need to have the C++ compiler decide
2642# the declaration of exit, since it's the most demanding environment.
2643cat >conftest.$ac_ext <<_ACEOF
2644#ifndef __cplusplus
2645  choke me
2646#endif
2647_ACEOF
2648rm -f conftest.$ac_objext
2649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650  (eval $ac_compile) 2>conftest.er1
2651  ac_status=$?
2652  grep -v '^ *+' conftest.er1 >conftest.err
2653  rm -f conftest.er1
2654  cat conftest.err >&5
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); } &&
2657         { ac_try='test -z "$ac_c_werror_flag"
2658                         || test ! -s conftest.err'
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); }; } &&
2664         { ac_try='test -s conftest.$ac_objext'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; }; then
2670  for ac_declaration in \
2671   '' \
2672   'extern "C" void std::exit (int) throw (); using std::exit;' \
2673   'extern "C" void std::exit (int); using std::exit;' \
2674   'extern "C" void exit (int) throw ();' \
2675   'extern "C" void exit (int);' \
2676   'void exit (int);'
2677do
2678  cat >conftest.$ac_ext <<_ACEOF
2679/* confdefs.h.  */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
2683/* end confdefs.h.  */
2684$ac_declaration
2685#include <stdlib.h>
2686int
2687main ()
2688{
2689exit (42);
2690  ;
2691  return 0;
2692}
2693_ACEOF
2694rm -f conftest.$ac_objext
2695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696  (eval $ac_compile) 2>conftest.er1
2697  ac_status=$?
2698  grep -v '^ *+' conftest.er1 >conftest.err
2699  rm -f conftest.er1
2700  cat conftest.err >&5
2701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702  (exit $ac_status); } &&
2703         { ac_try='test -z "$ac_c_werror_flag"
2704                         || test ! -s conftest.err'
2705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706  (eval $ac_try) 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }; } &&
2710         { ac_try='test -s conftest.$ac_objext'
2711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712  (eval $ac_try) 2>&5
2713  ac_status=$?
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); }; }; then
2716  :
2717else
2718  echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721continue
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724  cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h.  */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h.  */
2730$ac_declaration
2731int
2732main ()
2733{
2734exit (42);
2735  ;
2736  return 0;
2737}
2738_ACEOF
2739rm -f conftest.$ac_objext
2740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741  (eval $ac_compile) 2>conftest.er1
2742  ac_status=$?
2743  grep -v '^ *+' conftest.er1 >conftest.err
2744  rm -f conftest.er1
2745  cat conftest.err >&5
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); } &&
2748         { ac_try='test -z "$ac_c_werror_flag"
2749                         || test ! -s conftest.err'
2750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751  (eval $ac_try) 2>&5
2752  ac_status=$?
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); }; } &&
2755         { ac_try='test -s conftest.$ac_objext'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; }; then
2761  break
2762else
2763  echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766fi
2767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768done
2769rm -f conftest*
2770if test -n "$ac_declaration"; then
2771  echo '#ifdef __cplusplus' >>confdefs.h
2772  echo $ac_declaration      >>confdefs.h
2773  echo '#endif'             >>confdefs.h
2774fi
2775
2776else
2777  echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780fi
2781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782ac_ext=c
2783ac_cpp='$CPP $CPPFLAGS'
2784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787
2788if test -z "$CC" ; then
2789  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2790echo "$as_me: error: Failed to find a C compiler!" >&2;}
2791   { (exit 1); exit 1; }; }
2792fi
2793# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2794case "$CC" in
2795  cl* | */cl* | CL* | */CL* )
2796    if test "$ac_cv_prog_cc_g" = yes ; then
2797      ac_cv_prog_cc_g=no
2798      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2799echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2800    fi ;;
2801esac
2802CFLAGS="$save_cflags"
2803
2804# add automake conditional so we can recognize cl compiler in makefile
2805coin_cc_is_cl=false
2806case "$CC" in
2807  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2808    coin_cc_is_cl=true
2809    ;;
2810esac
2811
2812
2813if test $coin_cc_is_cl = true; then
2814  COIN_CC_IS_CL_TRUE=
2815  COIN_CC_IS_CL_FALSE='#'
2816else
2817  COIN_CC_IS_CL_TRUE='#'
2818  COIN_CC_IS_CL_FALSE=
2819fi
2820
2821
2822# Check if a project specific CFLAGS variable has been set
2823if test x$COIN_PRJCT != x; then
2824  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2825  if test x$coin_tmp = xset; then
2826    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2827  fi
2828fi
2829
2830if test x"$CFLAGS" = x; then
2831
2832  coin_add_cflags=
2833  coin_opt_cflags=
2834  coin_dbg_cflags=
2835  coin_warn_cflags=
2836
2837  if test "$GCC" = "yes"; then
2838    case "$CC" in
2839      icc* | */icc*)
2840        ;;
2841      *)
2842        coin_opt_cflags="-O3"
2843        coin_add_cflags="-pipe"
2844        coin_dbg_cflags="-g"
2845        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2846        case $build in
2847          *-darwin*)
2848            ;;
2849          *)
2850            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2851            ;;
2852        esac
2853        case $enable_doscompile in
2854          mingw)
2855            CFLAGS="-mno-cygwin"
2856            cat >conftest.$ac_ext <<_ACEOF
2857/* confdefs.h.  */
2858_ACEOF
2859cat confdefs.h >>conftest.$ac_ext
2860cat >>conftest.$ac_ext <<_ACEOF
2861/* end confdefs.h.  */
2862
2863int
2864main ()
2865{
2866int i=0; i++;
2867  ;
2868  return 0;
2869}
2870_ACEOF
2871rm -f conftest.$ac_objext conftest$ac_exeext
2872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2873  (eval $ac_link) 2>conftest.er1
2874  ac_status=$?
2875  grep -v '^ *+' conftest.er1 >conftest.err
2876  rm -f conftest.er1
2877  cat conftest.err >&5
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); } &&
2880         { ac_try='test -z "$ac_c_werror_flag"
2881                         || test ! -s conftest.err'
2882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883  (eval $ac_try) 2>&5
2884  ac_status=$?
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); }; } &&
2887         { ac_try='test -s conftest$ac_exeext'
2888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889  (eval $ac_try) 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }; }; then
2893  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2894else
2895  echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898fi
2899rm -f conftest.err conftest.$ac_objext \
2900      conftest$ac_exeext conftest.$ac_ext
2901            CFLAGS=
2902          ;;
2903        esac
2904    esac
2905  fi
2906  if test -z "$coin_opt_cflags"; then
2907    case $build in
2908      *-cygwin* | *-mingw*)
2909        case "$CC" in
2910          cl* | */cl* | CL* | */CL*)
2911            coin_opt_cflags='-MT -O2'
2912            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2913            coin_dbg_cflags='-MTd'
2914            ;;
2915          icl* | */icl* | ICL* | */ICL*)
2916            coin_opt_cflags='-MT -Ox'
2917            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2918            coin_dbg_cflags='-MTd -debug'
2919            ;;
2920        esac
2921        ;;
2922      *-linux-*)
2923        case "$CC" in
2924          icc* | */icc*)
2925            coin_opt_cflags="-O3 -ip -mp1"
2926            coin_add_cflags=""
2927            coin_dbg_cflags="-g"
2928            # Check if -i_dynamic is necessary (for new glibc library)
2929            CFLAGS=
2930            cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h.  */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h.  */
2936
2937int
2938main ()
2939{
2940int i=0; i++;
2941  ;
2942  return 0;
2943}
2944_ACEOF
2945rm -f conftest.$ac_objext conftest$ac_exeext
2946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2947  (eval $ac_link) 2>conftest.er1
2948  ac_status=$?
2949  grep -v '^ *+' conftest.er1 >conftest.err
2950  rm -f conftest.er1
2951  cat conftest.err >&5
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); } &&
2954         { ac_try='test -z "$ac_c_werror_flag"
2955                         || test ! -s conftest.err'
2956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957  (eval $ac_try) 2>&5
2958  ac_status=$?
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); }; } &&
2961         { ac_try='test -s conftest$ac_exeext'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; }; then
2967  :
2968else
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972coin_add_cflags="-i_dynamic $coin_add_cflags"
2973fi
2974rm -f conftest.err conftest.$ac_objext \
2975      conftest$ac_exeext conftest.$ac_ext
2976            ;;
2977          pgcc* | */pgcc*)
2978            coin_opt_cflags="-fast"
2979            coin_add_cflags="-Kieee -pc 64"
2980            coin_dbg_cflags="-g"
2981            ;;
2982        esac
2983        ;;
2984      *-ibm-*)
2985        case "$CC" in
2986          xlc* | */xlc* | mpxlc* | */mpxlc*)
2987            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2988            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2989            coin_dbg_cflags="-g"
2990          ;;
2991        esac
2992        ;;
2993      *-hp-*)
2994        coin_opt_cflags="-O"
2995        coin_add_cflags="-Ae"
2996        coin_dbg_cflags="-g"
2997        ;;
2998      *-*-solaris*)
2999        coin_opt_cflags="-xO4"
3000        coin_dbg_cflags="-g"
3001        ;;
3002      *-sgi-*)
3003        coin_opt_cflags="-O -OPT:Olimit=0"
3004        coin_dbg_cflags="-g"
3005        ;;
3006    esac
3007  fi
3008
3009  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3010    coin_dbg_cflags="-g"
3011  fi
3012
3013  if test -z "$coin_opt_cflags"; then
3014    # Try if -O option works if nothing else is set
3015    CFLAGS="-O"
3016    cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h.  */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h.  */
3022
3023int
3024main ()
3025{
3026int i=0; i++;
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext conftest$ac_exeext
3032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033  (eval $ac_link) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest$ac_exeext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  coin_opt_cflags="-O"
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058fi
3059rm -f conftest.err conftest.$ac_objext \
3060      conftest$ac_exeext conftest.$ac_ext
3061  fi
3062
3063  # if PM doesn't want the warning messages, take them out
3064  if test x"$coin_skip_warn_cflags" = xyes; then
3065    coin_warn_cflags=
3066  fi
3067
3068  if test x${DBG_CFLAGS+set} != xset; then
3069    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3070  fi
3071  if test x${OPT_CFLAGS+set} != xset; then
3072    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3073  fi
3074
3075  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3076  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3077
3078  if test "$coin_debug_compile" = "true"; then
3079    CFLAGS="$DBG_CFLAGS"
3080  else
3081    CFLAGS="$OPT_CFLAGS"
3082  fi
3083else
3084  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3085  if test x${DBG_CFLAGS+set} != xset; then
3086    DBG_CFLAGS="$CFLAGS"
3087  fi
3088  if test x${OPT_CFLAGS+set} != xset; then
3089    OPT_CFLAGS="$CFLAGS"
3090  fi
3091fi
3092
3093# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3094
3095case "$CFLAGS" in
3096  *-mno-cygwin*)
3097    if test x${CPPFLAGS+set} != xset ; then
3098      CPPFLAGS="-mno-cygwin"
3099    else
3100      case "$CPPFLAGS" in
3101        *-mno-cygwin*)
3102          ;;
3103        *)
3104          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3105          ;;
3106      esac
3107    fi ;;
3108esac
3109
3110# Try if CFLAGS works
3111save_CFLAGS="$CFLAGS"
3112cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h.  */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h.  */
3118
3119int
3120main ()
3121{
3122int i=0; i++;
3123  ;
3124  return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext conftest$ac_exeext
3128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3129  (eval $ac_link) 2>conftest.er1
3130  ac_status=$?
3131  grep -v '^ *+' conftest.er1 >conftest.err
3132  rm -f conftest.er1
3133  cat conftest.err >&5
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); } &&
3136         { ac_try='test -z "$ac_c_werror_flag"
3137                         || test ! -s conftest.err'
3138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139  (eval $ac_try) 2>&5
3140  ac_status=$?
3141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142  (exit $ac_status); }; } &&
3143         { ac_try='test -s conftest$ac_exeext'
3144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145  (eval $ac_try) 2>&5
3146  ac_status=$?
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); }; }; then
3149  :
3150else
3151  echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154CFLAGS=
3155fi
3156rm -f conftest.err conftest.$ac_objext \
3157      conftest$ac_exeext conftest.$ac_ext
3158if test -z "$CFLAGS"; then
3159  { 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
3160echo "$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;}
3161  CFLAGS='-O'
3162  cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h.  */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h.  */
3168
3169int
3170main ()
3171{
3172int i=0; i++;
3173  ;
3174  return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext conftest$ac_exeext
3178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179  (eval $ac_link) 2>conftest.er1
3180  ac_status=$?
3181  grep -v '^ *+' conftest.er1 >conftest.err
3182  rm -f conftest.er1
3183  cat conftest.err >&5
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); } &&
3186         { ac_try='test -z "$ac_c_werror_flag"
3187                         || test ! -s conftest.err'
3188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189  (eval $ac_try) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; } &&
3193         { ac_try='test -s conftest$ac_exeext'
3194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195  (eval $ac_try) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }; }; then
3199  :
3200else
3201  echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204CFLAGS=
3205fi
3206rm -f conftest.err conftest.$ac_objext \
3207      conftest$ac_exeext conftest.$ac_ext
3208  if test -z "$CFLAGS"; then
3209    { 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
3210echo "$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;}
3211  fi
3212fi
3213
3214{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3215echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3216
3217
3218if test x"$MPICC" = x; then :; else
3219  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3220echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3221  CC="$MPICC"
3222fi
3223
3224# Correct the LD variable if we are using the MS or Intel-windows compiler
3225case "$CC" in
3226  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3227    case $build in
3228  *-mingw*)
3229    if test "${LD+set}" = set; then :; else
3230      LD=link
3231    fi
3232    ;;
3233 esac
3234 case $enable_doscompile in
3235   msvc)
3236     if test "x${LD+set}" = xset; then :; else
3237       LD=link
3238     fi
3239     ;;
3240 esac
3241
3242    ;;
3243esac
3244
3245ac_ext=c
3246ac_cpp='$CPP $CPPFLAGS'
3247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251
3252
3253 #Let's try if that overcomes configuration problem with VC++ 6.0
3254
3255ac_ext=cc
3256ac_cpp='$CXXCPP $CPPFLAGS'
3257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3260
3261
3262
3263
3264
3265
3266
3267coin_has_cxx=yes
3268
3269save_cxxflags="$CXXFLAGS"
3270# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3271case $build in
3272  *-cygwin* | *-mingw*)
3273             if test "$enable_doscompile" = msvc ; then
3274               comps="icl cl"
3275             else
3276               comps="g++ cl"
3277             fi ;;
3278  *-*-solaris*)
3279             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3280  *-darwin*) comps="g++ c++ CC" ;;
3281  *-linux-gnu*)
3282             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3283          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3284esac
3285
3286# We delete the cached value, since the test might not have been
3287# performed with our choice of compilers earlier
3288$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3289# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3290ac_ext=cc
3291ac_cpp='$CXXCPP $CPPFLAGS'
3292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3295if test -n "$ac_tool_prefix"; then
3296  for ac_prog in $CCC $comps
3297  do
3298    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3299set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3300echo "$as_me:$LINENO: checking for $ac_word" >&5
3301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302if test "${ac_cv_prog_CXX+set}" = set; then
3303  echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305  if test -n "$CXX"; then
3306  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3307else
3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
3311  IFS=$as_save_IFS
3312  test -z "$as_dir" && as_dir=.
3313  for ac_exec_ext in '' $ac_executable_extensions; do
3314  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317    break 2
3318  fi
3319done
3320done
3321
3322fi
3323fi
3324CXX=$ac_cv_prog_CXX
3325if test -n "$CXX"; then
3326  echo "$as_me:$LINENO: result: $CXX" >&5
3327echo "${ECHO_T}$CXX" >&6
3328else
3329  echo "$as_me:$LINENO: result: no" >&5
3330echo "${ECHO_T}no" >&6
3331fi
3332
3333    test -n "$CXX" && break
3334  done
3335fi
3336if test -z "$CXX"; then
3337  ac_ct_CXX=$CXX
3338  for ac_prog in $CCC $comps
3339do
3340  # Extract the first word of "$ac_prog", so it can be a program name with args.
3341set dummy $ac_prog; ac_word=$2
3342echo "$as_me:$LINENO: checking for $ac_word" >&5
3343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3345  echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347  if test -n "$ac_ct_CXX"; then
3348  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353  IFS=$as_save_IFS
3354  test -z "$as_dir" && as_dir=.
3355  for ac_exec_ext in '' $ac_executable_extensions; do
3356  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357    ac_cv_prog_ac_ct_CXX="$ac_prog"
3358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359    break 2
3360  fi
3361done
3362done
3363
3364fi
3365fi
3366ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3367if test -n "$ac_ct_CXX"; then
3368  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3369echo "${ECHO_T}$ac_ct_CXX" >&6
3370else
3371  echo "$as_me:$LINENO: result: no" >&5
3372echo "${ECHO_T}no" >&6
3373fi
3374
3375  test -n "$ac_ct_CXX" && break
3376done
3377test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3378
3379  CXX=$ac_ct_CXX
3380fi
3381
3382
3383# Provide some information about the compiler.
3384echo "$as_me:$LINENO:" \
3385     "checking for C++ compiler version" >&5
3386ac_compiler=`set X $ac_compile; echo $2`
3387{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3388  (eval $ac_compiler --version </dev/null >&5) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }
3392{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3393  (eval $ac_compiler -v </dev/null >&5) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }
3397{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3398  (eval $ac_compiler -V </dev/null >&5) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }
3402
3403echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3404echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3405if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3406  echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408  cat >conftest.$ac_ext <<_ACEOF
3409/* confdefs.h.  */
3410_ACEOF
3411cat confdefs.h >>conftest.$ac_ext
3412cat >>conftest.$ac_ext <<_ACEOF
3413/* end confdefs.h.  */
3414
3415int
3416main ()
3417{
3418#ifndef __GNUC__
3419       choke me
3420#endif
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428  (eval $ac_compile) 2>conftest.er1
3429  ac_status=$?
3430  grep -v '^ *+' conftest.er1 >conftest.err
3431  rm -f conftest.er1
3432  cat conftest.err >&5
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); } &&
3435         { ac_try='test -z "$ac_cxx_werror_flag"
3436                         || test ! -s conftest.err'
3437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438  (eval $ac_try) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }; } &&
3442         { ac_try='test -s conftest.$ac_objext'
3443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444  (eval $ac_try) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }; }; then
3448  ac_compiler_gnu=yes
3449else
3450  echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453ac_compiler_gnu=no
3454fi
3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3457
3458fi
3459echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3460echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3461GXX=`test $ac_compiler_gnu = yes && echo yes`
3462ac_test_CXXFLAGS=${CXXFLAGS+set}
3463ac_save_CXXFLAGS=$CXXFLAGS
3464CXXFLAGS="-g"
3465echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3466echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3467if test "${ac_cv_prog_cxx_g+set}" = set; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470  cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h.  */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h.  */
3476
3477int
3478main ()
3479{
3480
3481  ;
3482  return 0;
3483}
3484_ACEOF
3485rm -f conftest.$ac_objext
3486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487  (eval $ac_compile) 2>conftest.er1
3488  ac_status=$?
3489  grep -v '^ *+' conftest.er1 >conftest.err
3490  rm -f conftest.er1
3491  cat conftest.err >&5
3492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493  (exit $ac_status); } &&
3494         { ac_try='test -z "$ac_cxx_werror_flag"
3495                         || test ! -s conftest.err'
3496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497  (eval $ac_try) 2>&5
3498  ac_status=$?
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); }; } &&
3501         { ac_try='test -s conftest.$ac_objext'
3502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503  (eval $ac_try) 2>&5
3504  ac_status=$?
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); }; }; then
3507  ac_cv_prog_cxx_g=yes
3508else
3509  echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512ac_cv_prog_cxx_g=no
3513fi
3514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
3516echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3517echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3518if test "$ac_test_CXXFLAGS" = set; then
3519  CXXFLAGS=$ac_save_CXXFLAGS
3520elif test $ac_cv_prog_cxx_g = yes; then
3521  if test "$GXX" = yes; then
3522    CXXFLAGS="-g -O2"
3523  else
3524    CXXFLAGS="-g"
3525  fi
3526else
3527  if test "$GXX" = yes; then
3528    CXXFLAGS="-O2"
3529  else
3530    CXXFLAGS=
3531  fi
3532fi
3533for ac_declaration in \
3534   '' \
3535   'extern "C" void std::exit (int) throw (); using std::exit;' \
3536   'extern "C" void std::exit (int); using std::exit;' \
3537   'extern "C" void exit (int) throw ();' \
3538   'extern "C" void exit (int);' \
3539   'void exit (int);'
3540do
3541  cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h.  */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h.  */
3547$ac_declaration
3548#include <stdlib.h>
3549int
3550main ()
3551{
3552exit (42);
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557rm -f conftest.$ac_objext
3558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559  (eval $ac_compile) 2>conftest.er1
3560  ac_status=$?
3561  grep -v '^ *+' conftest.er1 >conftest.err
3562  rm -f conftest.er1
3563  cat conftest.err >&5
3564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565  (exit $ac_status); } &&
3566         { ac_try='test -z "$ac_cxx_werror_flag"
3567                         || test ! -s conftest.err'
3568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569  (eval $ac_try) 2>&5
3570  ac_status=$?
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); }; } &&
3573         { ac_try='test -s conftest.$ac_objext'
3574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575  (eval $ac_try) 2>&5
3576  ac_status=$?
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); }; }; then
3579  :
3580else
3581  echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584continue
3585fi
3586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587  cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h.  */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h.  */
3593$ac_declaration
3594int
3595main ()
3596{
3597exit (42);
3598  ;
3599  return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext
3603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604  (eval $ac_compile) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } &&
3611         { ac_try='test -z "$ac_cxx_werror_flag"
3612                         || test ! -s conftest.err'
3613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614  (eval $ac_try) 2>&5
3615  ac_status=$?
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); }; } &&
3618         { ac_try='test -s conftest.$ac_objext'
3619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620  (eval $ac_try) 2>&5
3621  ac_status=$?
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); }; }; then
3624  break
3625else
3626  echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629fi
3630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631done
3632rm -f conftest*
3633if test -n "$ac_declaration"; then
3634  echo '#ifdef __cplusplus' >>confdefs.h
3635  echo $ac_declaration      >>confdefs.h
3636  echo '#endif'             >>confdefs.h
3637fi
3638
3639ac_ext=cc
3640ac_cpp='$CXXCPP $CPPFLAGS'
3641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3644
3645
3646#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3647#thus, we test here whether $CXX is actually working
3648ac_ext=cc
3649ac_cpp='$CXXCPP $CPPFLAGS'
3650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3653
3654echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3655echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3656cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h.  */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h.  */
3662
3663int
3664main ()
3665{
3666int i=0;
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671rm -f conftest.$ac_objext
3672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673  (eval $ac_compile) 2>conftest.er1
3674  ac_status=$?
3675  grep -v '^ *+' conftest.er1 >conftest.err
3676  rm -f conftest.er1
3677  cat conftest.err >&5
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); } &&
3680         { ac_try='test -z "$ac_cxx_werror_flag"
3681                         || test ! -s conftest.err'
3682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683  (eval $ac_try) 2>&5
3684  ac_status=$?
3685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686  (exit $ac_status); }; } &&
3687         { ac_try='test -s conftest.$ac_objext'
3688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689  (eval $ac_try) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }; }; then
3693  echo "$as_me:$LINENO: result: yes" >&5
3694echo "${ECHO_T}yes" >&6
3695else
3696  echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3702echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3703   { (exit 1); exit 1; }; }
3704
3705fi
3706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707ac_ext=cc
3708ac_cpp='$CXXCPP $CPPFLAGS'
3709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3712
3713
3714coin_cxx_is_cl=false
3715# It seems that we need to cleanup something here for the Windows
3716case "$CXX" in
3717  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3718    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3719    mv confdefs.hh confdefs.h
3720    coin_cxx_is_cl=true
3721    ;;
3722esac
3723
3724# add automake conditional so we can recognize cl compiler in makefile
3725
3726
3727if test $coin_cxx_is_cl = true; then
3728  COIN_CXX_IS_CL_TRUE=
3729  COIN_CXX_IS_CL_FALSE='#'
3730else
3731  COIN_CXX_IS_CL_TRUE='#'
3732  COIN_CXX_IS_CL_FALSE=
3733fi
3734
3735
3736# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3737case "$CXX" in
3738  cl* | */cl* | CL* | */CL* )
3739    if test "$ac_cv_prog_cxx_g" = yes ; then
3740      ac_cv_prog_cxx_g=no
3741      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3742echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3743    fi ;;
3744esac
3745CXXFLAGS="$save_cxxflags"
3746
3747# Check if a project specific CXXFLAGS variable has been set
3748if test x$COIN_PRJCT != x; then
3749  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3750  if test x$coin_tmp = xset; then
3751    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3752  fi
3753fi
3754
3755if test x"$CXXFLAGS" = x; then
3756
3757# ToDo decide whether we want -DNDEBUG for optimization
3758  coin_add_cxxflags=
3759  coin_opt_cxxflags=
3760  coin_dbg_cxxflags=
3761  coin_warn_cxxflags=
3762
3763  if test "$GXX" = "yes"; then
3764    case "$CXX" in
3765      icpc* | */icpc*)
3766        ;;
3767      *)
3768# ToDo decide about unroll-loops
3769        coin_opt_cxxflags="-O3"
3770        coin_add_cxxflags="-pipe"
3771        coin_dbg_cxxflags="-g"
3772        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3773        case $build in
3774          *-darwin*)
3775            ;;
3776          *)
3777            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3778            ;;
3779        esac
3780
3781        case $enable_doscompile in
3782          mingw)
3783            CXXFLAGS="-mno-cygwin"
3784            cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h.  */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h.  */
3790
3791int
3792main ()
3793{
3794int i=0; i++;
3795  ;
3796  return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext conftest$ac_exeext
3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801  (eval $ac_link) 2>conftest.er1
3802  ac_status=$?
3803  grep -v '^ *+' conftest.er1 >conftest.err
3804  rm -f conftest.er1
3805  cat conftest.err >&5
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); } &&
3808         { ac_try='test -z "$ac_cxx_werror_flag"
3809                         || test ! -s conftest.err'
3810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811  (eval $ac_try) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; } &&
3815         { ac_try='test -s conftest$ac_exeext'
3816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817  (eval $ac_try) 2>&5
3818  ac_status=$?
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); }; }; then
3821  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3822else
3823  echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826fi
3827rm -f conftest.err conftest.$ac_objext \
3828      conftest$ac_exeext conftest.$ac_ext
3829            CXXFLAGS=
3830          ;;
3831        esac
3832    esac
3833  fi
3834
3835# Note that we do not need to cover GCC in the following tests.
3836
3837  if test -z "$coin_opt_cxxflags"; then
3838    case $build in
3839      *-cygwin* | *-mingw*)
3840        case "$CXX" in
3841          cl* | */cl* | CL* | */CL*)
3842            # The MT and MTd options are mutually exclusive
3843            coin_opt_cxxflags='-MT -O2'
3844            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3845            coin_dbg_cxxflags='-MTd'
3846            ;;
3847          icl* | */icl* | ICL* | */ICL*)
3848            # The MT and MTd options are mutually exclusive
3849            coin_opt_cxxflags='-MT -Ox'
3850            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3851            coin_dbg_cxxflags='-MTd -debug'
3852            ;;
3853        esac
3854        ;;
3855      *-linux-*)
3856        case "$CXX" in
3857          icpc* | */icpc*)
3858            coin_opt_cxxflags="-O3 -ip -mp1"
3859            coin_add_cxxflags=""
3860            coin_dbg_cxxflags="-g"
3861            # Check if -i_dynamic is necessary (for new glibc library)
3862            CXXFLAGS=
3863            cat >conftest.$ac_ext <<_ACEOF
3864/* confdefs.h.  */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
3868/* end confdefs.h.  */
3869
3870int
3871main ()
3872{
3873int i=0; i++;
3874  ;
3875  return 0;
3876}
3877_ACEOF
3878rm -f conftest.$ac_objext conftest$ac_exeext
3879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880  (eval $ac_link) 2>conftest.er1
3881  ac_status=$?
3882  grep -v '^ *+' conftest.er1 >conftest.err
3883  rm -f conftest.er1
3884  cat conftest.err >&5
3885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886  (exit $ac_status); } &&
3887         { ac_try='test -z "$ac_cxx_werror_flag"
3888                         || test ! -s conftest.err'
3889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890  (eval $ac_try) 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); }; } &&
3894         { ac_try='test -s conftest$ac_exeext'
3895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896  (eval $ac_try) 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); }; }; then
3900  :
3901else
3902  echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
3904
3905coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3906fi
3907rm -f conftest.err conftest.$ac_objext \
3908      conftest$ac_exeext conftest.$ac_ext
3909            ;;
3910          pgCC* | */pgCC*)
3911            coin_opt_cxxflags="-fast"
3912            coin_add_cxxflags="-Kieee -pc 64"
3913            coin_dbg_cxxflags="-g"
3914            ;;
3915        esac
3916        ;;
3917      *-ibm-*)
3918        case "$CXX" in
3919          xlC* | */xlC* | mpxlC* | */mpxlC*)
3920            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3921            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3922            coin_dbg_cxxflags="-g"
3923            ;;
3924        esac
3925        ;;
3926      *-hp-*)
3927        case "$CXX" in
3928          aCC* | */aCC* )
3929            coin_opt_cxxflags="-O"
3930            coin_add_cxxflags="-AA"
3931            coin_dbg_cxxflags="-g"
3932            ;;
3933        esac
3934        ;;
3935      *-*-solaris*)
3936          coin_opt_cxxflags="-O4"
3937          coin_dbg_cxxflags="-g"
3938        ;;
3939    esac
3940  fi
3941
3942# Generic flag settings. If these don't work, add a case above.
3943
3944  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3945    coin_dbg_cxxflags="-g"
3946  fi
3947
3948  if test -z "$coin_opt_cxxflags"; then
3949    # Try if -O option works if nothing else is set
3950    CXXFLAGS=-O
3951    cat >conftest.$ac_ext <<_ACEOF
3952/* confdefs.h.  */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h.  */
3957
3958int
3959main ()
3960{
3961int i=0; i++;
3962  ;
3963  return 0;
3964}
3965_ACEOF
3966rm -f conftest.$ac_objext conftest$ac_exeext
3967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968  (eval $ac_link) 2>conftest.er1
3969  ac_status=$?
3970  grep -v '^ *+' conftest.er1 >conftest.err
3971  rm -f conftest.er1
3972  cat conftest.err >&5
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); } &&
3975         { ac_try='test -z "$ac_cxx_werror_flag"
3976                         || test ! -s conftest.err'
3977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978  (eval $ac_try) 2>&5
3979  ac_status=$?
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); }; } &&
3982         { ac_try='test -s conftest$ac_exeext'
3983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984  (eval $ac_try) 2>&5
3985  ac_status=$?
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); }; }; then
3988  coin_opt_cxxflags="-O"
3989else
3990  echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993fi
3994rm -f conftest.err conftest.$ac_objext \
3995      conftest$ac_exeext conftest.$ac_ext
3996  fi
3997
3998  # if PM doesn't want the warning messages, take them out
3999  if test x"$coin_skip_warn_cxxflags" = xyes; then
4000    coin_warn_cxxflags=
4001  fi
4002
4003# Do final setup of flags based on values determined above.
4004
4005  if test x${DBG_CXXFLAGS+set} != xset; then
4006    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4007  fi
4008  if test x${OPT_CXXFLAGS+set} != xset; then
4009    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4010  fi
4011
4012  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4013  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4014
4015  if test "$coin_debug_compile" = "true"; then
4016    CXXFLAGS="$DBG_CXXFLAGS"
4017  else
4018    CXXFLAGS="$OPT_CXXFLAGS"
4019  fi
4020
4021# Handle the case where CXXFLAGS was set externally.
4022else
4023  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4024  if test x${DBG_CXXFLAGS+set} != xset; then
4025    DBG_CXXFLAGS="$CXXFLAGS"
4026  fi
4027  if test x${OPT_CXXFLAGS+set} != xset; then
4028    OPT_CXXFLAGS="$CXXFLAGS"
4029  fi
4030fi
4031
4032# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4033
4034case "$CXXFLAGS" in
4035  *-mno-cygwin*)
4036    if test x${CPPFLAGS+set} != xset ; then
4037      CPPFLAGS="-mno-cygwin"
4038    else
4039      case "$CPPFLAGS" in
4040        *-mno-cygwin*)
4041          ;;
4042        *)
4043          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4044          ;;
4045      esac
4046    fi ;;
4047esac
4048
4049# Try if CXXFLAGS works
4050save_CXXFLAGS="$CXXFLAGS"
4051cat >conftest.$ac_ext <<_ACEOF
4052/* confdefs.h.  */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h.  */
4057
4058int
4059main ()
4060{
4061int i=0; i++;
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066rm -f conftest.$ac_objext conftest$ac_exeext
4067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4068  (eval $ac_link) 2>conftest.er1
4069  ac_status=$?
4070  grep -v '^ *+' conftest.er1 >conftest.err
4071  rm -f conftest.er1
4072  cat conftest.err >&5
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); } &&
4075         { ac_try='test -z "$ac_cxx_werror_flag"
4076                         || test ! -s conftest.err'
4077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078  (eval $ac_try) 2>&5
4079  ac_status=$?
4080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081  (exit $ac_status); }; } &&
4082         { ac_try='test -s conftest$ac_exeext'
4083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084  (eval $ac_try) 2>&5
4085  ac_status=$?
4086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087  (exit $ac_status); }; }; then
4088  :
4089else
4090  echo "$as_me: failed program was:" >&5
4091sed 's/^/| /' conftest.$ac_ext >&5
4092
4093CXXFLAGS=
4094fi
4095rm -f conftest.err conftest.$ac_objext \
4096      conftest$ac_exeext conftest.$ac_ext
4097if test -z "$CXXFLAGS"; then
4098  { 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
4099echo "$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;}
4100  CXXFLAGS='-O'
4101  cat >conftest.$ac_ext <<_ACEOF
4102/* confdefs.h.  */
4103_ACEOF
4104cat confdefs.h >>conftest.$ac_ext
4105cat >>conftest.$ac_ext <<_ACEOF
4106/* end confdefs.h.  */
4107
4108int
4109main ()
4110{
4111int i=0; i++;
4112  ;
4113  return 0;
4114}
4115_ACEOF
4116rm -f conftest.$ac_objext conftest$ac_exeext
4117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4118  (eval $ac_link) 2>conftest.er1
4119  ac_status=$?
4120  grep -v '^ *+' conftest.er1 >conftest.err
4121  rm -f conftest.er1
4122  cat conftest.err >&5
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); } &&
4125         { ac_try='test -z "$ac_cxx_werror_flag"
4126                         || test ! -s conftest.err'
4127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128  (eval $ac_try) 2>&5
4129  ac_status=$?
4130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131  (exit $ac_status); }; } &&
4132         { ac_try='test -s conftest$ac_exeext'
4133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134  (eval $ac_try) 2>&5
4135  ac_status=$?
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); }; }; then
4138  :
4139else
4140  echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143CXXFLAGS=
4144fi
4145rm -f conftest.err conftest.$ac_objext \
4146      conftest$ac_exeext conftest.$ac_ext
4147  if test -z "$CXXFLAGS"; then
4148    { 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
4149echo "$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;}
4150  fi
4151fi
4152
4153{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4154echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4155
4156
4157if test x"$MPICXX" = x; then :; else
4158  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4159echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4160  CXX="$MPICXX"
4161fi
4162
4163# correct the LD variable in a mingw build with MS or intel compiler
4164case "$CXX" in
4165  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4166    case $build in
4167  *-mingw*)
4168    if test "${LD+set}" = set; then :; else
4169      LD=link
4170    fi
4171    ;;
4172 esac
4173 case $enable_doscompile in
4174   msvc)
4175     if test "x${LD+set}" = xset; then :; else
4176       LD=link
4177     fi
4178     ;;
4179 esac
4180
4181    ;;
4182esac
4183
4184ac_ext=c
4185ac_cpp='$CPP $CPPFLAGS'
4186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190
4191
4192# Get the name of the C compiler and appropriate compiler options
4193
4194
4195ac_ext=c
4196ac_cpp='$CPP $CPPFLAGS'
4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200
4201
4202# For consistency, we set the C compiler to the same value of the C++
4203# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
4204if test x"$CXX" != x; then
4205  case "$CXX" in
4206    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4207      if test x"$CC" = x; then
4208        CC="$CXX"
4209        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
4210echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
4211      fi
4212      ;;
4213  esac
4214fi
4215
4216
4217
4218
4219
4220
4221coin_has_cc=yes
4222
4223save_cflags="$CFLAGS"
4224
4225# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
4226# Depending on the user's PATH, when Studio/Workshop cc is not present we may
4227# find /usr/ucb/cc, which is almost certainly not a good choice for the C
4228# compiler. In this case, put cc after gcc.
4229
4230case $build in
4231  *-cygwin* | *-mingw*)
4232             if test "$enable_doscompile" = msvc ; then
4233               comps="icl cl"
4234             else
4235               comps="gcc cl"
4236             fi ;;
4237  *-*-solaris*)
4238             # Extract the first word of "cc", so it can be a program name with args.
4239set dummy cc; ac_word=$2
4240echo "$as_me:$LINENO: checking for $ac_word" >&5
4241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
4243  echo $ECHO_N "(cached) $ECHO_C" >&6
4244else
4245  if test -n "$sol_cc_compiler"; then
4246  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
4247else
4248  ac_prog_rejected=no
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252  IFS=$as_save_IFS
4253  test -z "$as_dir" && as_dir=.
4254  for ac_exec_ext in '' $ac_executable_extensions; do
4255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4257       ac_prog_rejected=yes
4258       continue
4259     fi
4260    ac_cv_prog_sol_cc_compiler="cc"
4261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262    break 2
4263  fi
4264done
4265done
4266
4267if test $ac_prog_rejected = yes; then
4268  # We found a bogon in the path, so make sure we never use it.
4269  set dummy $ac_cv_prog_sol_cc_compiler
4270  shift
4271  if test $# != 0; then
4272    # We chose a different compiler from the bogus one.
4273    # However, it has the same basename, so the bogon will be chosen
4274    # first if we set sol_cc_compiler to just the basename; use the full file name.
4275    shift
4276    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
4277  fi
4278fi
4279fi
4280fi
4281sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
4282if test -n "$sol_cc_compiler"; then
4283  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
4284echo "${ECHO_T}$sol_cc_compiler" >&6
4285else
4286  echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
4288fi
4289
4290             if test "$sol_cc_compiler" = "cc" ; then
4291               comps="cc xlc gcc pgcc icc"
4292             else
4293               comps="xlc gcc pgcc icc cc"
4294             fi
4295             ;;
4296  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
4297  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
4298  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
4299esac
4300
4301# We delete the cached value, since the test might not have been
4302# performed with our choice of compilers earlier
4303$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
4304# AC_MSG_NOTICE([C compiler candidates: $comps])
4305ac_ext=c
4306ac_cpp='$CPP $CPPFLAGS'
4307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310if test -n "$ac_tool_prefix"; then
4311  for ac_prog in $comps
4312  do
4313    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4314set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4315echo "$as_me:$LINENO: checking for $ac_word" >&5
4316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4317if test "${ac_cv_prog_CC+set}" = set; then
4318  echo $ECHO_N "(cached) $ECHO_C" >&6
4319else
4320  if test -n "$CC"; then
4321  ac_cv_prog_CC="$CC" # Let the user override the test.
4322else
4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326  IFS=$as_save_IFS
4327  test -z "$as_dir" && as_dir=.
4328  for ac_exec_ext in '' $ac_executable_extensions; do
4329  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332    break 2
4333  fi
4334done
4335done
4336
4337fi
4338fi
4339CC=$ac_cv_prog_CC
4340if test -n "$CC"; then
4341  echo "$as_me:$LINENO: result: $CC" >&5
4342echo "${ECHO_T}$CC" >&6
4343else
4344  echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
4346fi
4347
4348    test -n "$CC" && break
4349  done
4350fi
4351if test -z "$CC"; then
4352  ac_ct_CC=$CC
4353  for ac_prog in $comps
4354do
4355  # Extract the first word of "$ac_prog", so it can be a program name with args.
4356set dummy $ac_prog; ac_word=$2
4357echo "$as_me:$LINENO: checking for $ac_word" >&5
4358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4360  echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362  if test -n "$ac_ct_CC"; then
4363  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4364else
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368  IFS=$as_save_IFS
4369  test -z "$as_dir" && as_dir=.
4370  for ac_exec_ext in '' $ac_executable_extensions; do
4371  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372    ac_cv_prog_ac_ct_CC="$ac_prog"
4373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374    break 2
4375  fi
4376done
4377done
4378
4379fi
4380fi
4381ac_ct_CC=$ac_cv_prog_ac_ct_CC
4382if test -n "$ac_ct_CC"; then
4383  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4384echo "${ECHO_T}$ac_ct_CC" >&6
4385else
4386  echo "$as_me:$LINENO: result: no" >&5
4387echo "${ECHO_T}no" >&6
4388fi
4389
4390  test -n "$ac_ct_CC" && break
4391done
4392
4393  CC=$ac_ct_CC
4394fi
4395
4396
4397test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4398See \`config.log' for more details." >&5
4399echo "$as_me: error: no acceptable C compiler found in \$PATH
4400See \`config.log' for more details." >&2;}
4401   { (exit 1); exit 1; }; }
4402
4403# Provide some information about the compiler.
4404echo "$as_me:$LINENO:" \
4405     "checking for C compiler version" >&5
4406ac_compiler=`set X $ac_compile; echo $2`
4407{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4408  (eval $ac_compiler --version </dev/null >&5) 2>&5
4409  ac_status=$?
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); }
4412{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4413  (eval $ac_compiler -v </dev/null >&5) 2>&5
4414  ac_status=$?
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); }
4417{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4418  (eval $ac_compiler -V </dev/null >&5) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }
4422
4423echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4424echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4425if test "${ac_cv_c_compiler_gnu+set}" = set; then
4426  echo $ECHO_N "(cached) $ECHO_C" >&6
4427else
4428  cat >conftest.$ac_ext <<_ACEOF
4429/* confdefs.h.  */
4430_ACEOF
4431cat confdefs.h >>conftest.$ac_ext
4432cat >>conftest.$ac_ext <<_ACEOF
4433/* end confdefs.h.  */
4434
4435int
4436main ()
4437{
4438#ifndef __GNUC__
4439       choke me
4440#endif
4441
4442  ;
4443  return 0;
4444}
4445_ACEOF
4446rm -f conftest.$ac_objext
4447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448  (eval $ac_compile) 2>conftest.er1
4449  ac_status=$?
4450  grep -v '^ *+' conftest.er1 >conftest.err
4451  rm -f conftest.er1
4452  cat conftest.err >&5
4453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454  (exit $ac_status); } &&
4455         { ac_try='test -z "$ac_c_werror_flag"
4456                         || test ! -s conftest.err'
4457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458  (eval $ac_try) 2>&5
4459  ac_status=$?
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); }; } &&
4462         { ac_try='test -s conftest.$ac_objext'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; }; then
4468  ac_compiler_gnu=yes
4469else
4470  echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
4473ac_compiler_gnu=no
4474fi
4475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4476ac_cv_c_compiler_gnu=$ac_compiler_gnu
4477
4478fi
4479echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4480echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4481GCC=`test $ac_compiler_gnu = yes && echo yes`
4482ac_test_CFLAGS=${CFLAGS+set}
4483ac_save_CFLAGS=$CFLAGS
4484CFLAGS="-g"
4485echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4486echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4487if test "${ac_cv_prog_cc_g+set}" = set; then
4488  echo $ECHO_N "(cached) $ECHO_C" >&6
4489else
4490  cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h.  */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h.  */
4496
4497int
4498main ()
4499{
4500
4501  ;
4502  return 0;
4503}
4504_ACEOF
4505rm -f conftest.$ac_objext
4506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507  (eval $ac_compile) 2>conftest.er1
4508  ac_status=$?
4509  grep -v '^ *+' conftest.er1 >conftest.err
4510  rm -f conftest.er1
4511  cat conftest.err >&5
4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513  (exit $ac_status); } &&
4514         { ac_try='test -z "$ac_c_werror_flag"
4515                         || test ! -s conftest.err'
4516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517  (eval $ac_try) 2>&5
4518  ac_status=$?
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); }; } &&
4521         { ac_try='test -s conftest.$ac_objext'
4522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523  (eval $ac_try) 2>&5
4524  ac_status=$?
4525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526  (exit $ac_status); }; }; then
4527  ac_cv_prog_cc_g=yes
4528else
4529  echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532ac_cv_prog_cc_g=no
4533fi
4534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4535fi
4536echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4537echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4538if test "$ac_test_CFLAGS" = set; then
4539  CFLAGS=$ac_save_CFLAGS
4540elif test $ac_cv_prog_cc_g = yes; then
4541  if test "$GCC" = yes; then
4542    CFLAGS="-g -O2"
4543  else
4544    CFLAGS="-g"
4545  fi
4546else
4547  if test "$GCC" = yes; then
4548    CFLAGS="-O2"
4549  else
4550    CFLAGS=
4551  fi
4552fi
4553echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4554echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4555if test "${ac_cv_prog_cc_stdc+set}" = set; then
4556  echo $ECHO_N "(cached) $ECHO_C" >&6
4557else
4558  ac_cv_prog_cc_stdc=no
4559ac_save_CC=$CC
4560cat >conftest.$ac_ext <<_ACEOF
4561/* confdefs.h.  */
4562_ACEOF
4563cat confdefs.h >>conftest.$ac_ext
4564cat >>conftest.$ac_ext <<_ACEOF
4565/* end confdefs.h.  */
4566#include <stdarg.h>
4567#include <stdio.h>
4568#include <sys/types.h>
4569#include <sys/stat.h>
4570/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4571struct buf { int x; };
4572FILE * (*rcsopen) (struct buf *, struct stat *, int);
4573static char *e (p, i)
4574     char **p;
4575     int i;
4576{
4577  return p[i];
4578}
4579static char *f (char * (*g) (char **, int), char **p, ...)
4580{
4581  char *s;
4582  va_list v;
4583  va_start (v,p);
4584  s = g (p, va_arg (v,int));
4585  va_end (v);
4586  return s;
4587}
4588
4589/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4590   function prototypes and stuff, but not '\xHH' hex character constants.
4591   These don't provoke an error unfortunately, instead are silently treated
4592   as 'x'.  The following induces an error, until -std1 is added to get
4593   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4594   array size at least.  It's necessary to write '\x00'==0 to get something
4595   that's true only with -std1.  */
4596int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4597
4598int test (int i, double x);
4599struct s1 {int (*f) (int a);};
4600struct s2 {int (*f) (double a);};
4601int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4602int argc;
4603char **argv;
4604int
4605main ()
4606{
4607return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4608  ;
4609  return 0;
4610}
4611_ACEOF
4612# Don't try gcc -ansi; that turns off useful extensions and
4613# breaks some systems' header files.
4614# AIX                   -qlanglvl=ansi
4615# Ultrix and OSF/1      -std1
4616# HP-UX 10.20 and later -Ae
4617# HP-UX older versions  -Aa -D_HPUX_SOURCE
4618# SVR4                  -Xc -D__EXTENSIONS__
4619for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4620do
4621  CC="$ac_save_CC $ac_arg"
4622  rm -f conftest.$ac_objext
4623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624  (eval $ac_compile) 2>conftest.er1
4625  ac_status=$?
4626  grep -v '^ *+' conftest.er1 >conftest.err
4627  rm -f conftest.er1
4628  cat conftest.err >&5
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); } &&
4631         { ac_try='test -z "$ac_c_werror_flag"
4632                         || test ! -s conftest.err'
4633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634  (eval $ac_try) 2>&5
4635  ac_status=$?
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); }; } &&
4638         { ac_try='test -s conftest.$ac_objext'
4639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640  (eval $ac_try) 2>&5
4641  ac_status=$?
4642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643  (exit $ac_status); }; }; then
4644  ac_cv_prog_cc_stdc=$ac_arg
4645break
4646else
4647  echo "$as_me: failed program was:" >&5
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
4650fi
4651rm -f conftest.err conftest.$ac_objext
4652done
4653rm -f conftest.$ac_ext conftest.$ac_objext
4654CC=$ac_save_CC
4655
4656fi
4657
4658case "x$ac_cv_prog_cc_stdc" in
4659  x|xno)
4660    echo "$as_me:$LINENO: result: none needed" >&5
4661echo "${ECHO_T}none needed" >&6 ;;
4662  *)
4663    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4664echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4665    CC="$CC $ac_cv_prog_cc_stdc" ;;
4666esac
4667
4668# Some people use a C++ compiler to compile C.  Since we use `exit',
4669# in C++ we need to declare it.  In case someone uses the same compiler
4670# for both compiling C and C++ we need to have the C++ compiler decide
4671# the declaration of exit, since it's the most demanding environment.
4672cat >conftest.$ac_ext <<_ACEOF
4673#ifndef __cplusplus
4674  choke me
4675#endif
4676_ACEOF
4677rm -f conftest.$ac_objext
4678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679  (eval $ac_compile) 2>conftest.er1
4680  ac_status=$?
4681  grep -v '^ *+' conftest.er1 >conftest.err
4682  rm -f conftest.er1
4683  cat conftest.err >&5
4684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685  (exit $ac_status); } &&
4686         { ac_try='test -z "$ac_c_werror_flag"
4687                         || test ! -s conftest.err'
4688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689  (eval $ac_try) 2>&5
4690  ac_status=$?
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); }; } &&
4693         { ac_try='test -s conftest.$ac_objext'
4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695  (eval $ac_try) 2>&5
4696  ac_status=$?
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); }; }; then
4699  for ac_declaration in \
4700   '' \
4701   'extern "C" void std::exit (int) throw (); using std::exit;' \
4702   'extern "C" void std::exit (int); using std::exit;' \
4703   'extern "C" void exit (int) throw ();' \
4704   'extern "C" void exit (int);' \
4705   'void exit (int);'
4706do
4707  cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h.  */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h.  */
4713$ac_declaration
4714#include <stdlib.h>
4715int
4716main ()
4717{
4718exit (42);
4719  ;
4720  return 0;
4721}
4722_ACEOF
4723rm -f conftest.$ac_objext
4724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725  (eval $ac_compile) 2>conftest.er1
4726  ac_status=$?
4727  grep -v '^ *+' conftest.er1 >conftest.err
4728  rm -f conftest.er1
4729  cat conftest.err >&5
4730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731  (exit $ac_status); } &&
4732         { ac_try='test -z "$ac_c_werror_flag"
4733                         || test ! -s conftest.err'
4734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735  (eval $ac_try) 2>&5
4736  ac_status=$?
4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738  (exit $ac_status); }; } &&
4739         { ac_try='test -s conftest.$ac_objext'
4740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741  (eval $ac_try) 2>&5
4742  ac_status=$?
4743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744  (exit $ac_status); }; }; then
4745  :
4746else
4747  echo "$as_me: failed program was:" >&5
4748sed 's/^/| /' conftest.$ac_ext >&5
4749
4750continue
4751fi
4752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753  cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h.  */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h.  */
4759$ac_declaration
4760int
4761main ()
4762{
4763exit (42);
4764  ;
4765  return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext
4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770  (eval $ac_compile) 2>conftest.er1
4771  ac_status=$?
4772  grep -v '^ *+' conftest.er1 >conftest.err
4773  rm -f conftest.er1
4774  cat conftest.err >&5
4775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776  (exit $ac_status); } &&
4777         { ac_try='test -z "$ac_c_werror_flag"
4778                         || test ! -s conftest.err'
4779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780  (eval $ac_try) 2>&5
4781  ac_status=$?
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); }; } &&
4784         { ac_try='test -s conftest.$ac_objext'
4785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786  (eval $ac_try) 2>&5
4787  ac_status=$?
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); }; }; then
4790  break
4791else
4792  echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795fi
4796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4797done
4798rm -f conftest*
4799if test -n "$ac_declaration"; then
4800  echo '#ifdef __cplusplus' >>confdefs.h
4801  echo $ac_declaration      >>confdefs.h
4802  echo '#endif'             >>confdefs.h
4803fi
4804
4805else
4806  echo "$as_me: failed program was:" >&5
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
4809fi
4810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811ac_ext=c
4812ac_cpp='$CPP $CPPFLAGS'
4813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816
4817if test -z "$CC" ; then
4818  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
4819echo "$as_me: error: Failed to find a C compiler!" >&2;}
4820   { (exit 1); exit 1; }; }
4821fi
4822# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
4823case "$CC" in
4824  cl* | */cl* | CL* | */CL* )
4825    if test "$ac_cv_prog_cc_g" = yes ; then
4826      ac_cv_prog_cc_g=no
4827      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
4828echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
4829    fi ;;
4830esac
4831CFLAGS="$save_cflags"
4832
4833# add automake conditional so we can recognize cl compiler in makefile
4834coin_cc_is_cl=false
4835case "$CC" in
4836  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4837    coin_cc_is_cl=true
4838    ;;
4839esac
4840
4841
4842if test $coin_cc_is_cl = true; then
4843  COIN_CC_IS_CL_TRUE=
4844  COIN_CC_IS_CL_FALSE='#'
4845else
4846  COIN_CC_IS_CL_TRUE='#'
4847  COIN_CC_IS_CL_FALSE=
4848fi
4849
4850
4851# Check if a project specific CFLAGS variable has been set
4852if test x$COIN_PRJCT != x; then
4853  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
4854  if test x$coin_tmp = xset; then
4855    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
4856  fi
4857fi
4858
4859if test x"$CFLAGS" = x; then
4860
4861  coin_add_cflags=
4862  coin_opt_cflags=
4863  coin_dbg_cflags=
4864  coin_warn_cflags=
4865
4866  if test "$GCC" = "yes"; then
4867    case "$CC" in
4868      icc* | */icc*)
4869        ;;
4870      *)
4871        coin_opt_cflags="-O3"
4872        coin_add_cflags="-pipe"
4873        coin_dbg_cflags="-g"
4874        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
4875        case $build in
4876          *-darwin*)
4877            ;;
4878          *)
4879            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
4880            ;;
4881        esac
4882        case $enable_doscompile in
4883          mingw)
4884            CFLAGS="-mno-cygwin"
4885            cat >conftest.$ac_ext <<_ACEOF
4886/* confdefs.h.  */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h.  */
4891
4892int
4893main ()
4894{
4895int i=0; i++;
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900rm -f conftest.$ac_objext conftest$ac_exeext
4901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902  (eval $ac_link) 2>conftest.er1
4903  ac_status=$?
4904  grep -v '^ *+' conftest.er1 >conftest.err
4905  rm -f conftest.er1
4906  cat conftest.err >&5
4907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908  (exit $ac_status); } &&
4909         { ac_try='test -z "$ac_c_werror_flag"
4910                         || test ! -s conftest.err'
4911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912  (eval $ac_try) 2>&5
4913  ac_status=$?
4914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915  (exit $ac_status); }; } &&
4916         { ac_try='test -s conftest$ac_exeext'
4917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918  (eval $ac_try) 2>&5
4919  ac_status=$?
4920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921  (exit $ac_status); }; }; then
4922  coin_add_cflags="-mno-cygwin $coin_add_cflags"
4923else
4924  echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927fi
4928rm -f conftest.err conftest.$ac_objext \
4929      conftest$ac_exeext conftest.$ac_ext
4930            CFLAGS=
4931          ;;
4932        esac
4933    esac
4934  fi
4935  if test -z "$coin_opt_cflags"; then
4936    case $build in
4937      *-cygwin* | *-mingw*)
4938        case "$CC" in
4939          cl* | */cl* | CL* | */CL*)
4940            coin_opt_cflags='-MT -O2'
4941            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
4942            coin_dbg_cflags='-MTd'
4943            ;;
4944          icl* | */icl* | ICL* | */ICL*)
4945            coin_opt_cflags='-MT -Ox'
4946            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
4947            coin_dbg_cflags='-MTd -debug'
4948            ;;
4949        esac
4950        ;;
4951      *-linux-*)
4952        case "$CC" in
4953          icc* | */icc*)
4954            coin_opt_cflags="-O3 -ip -mp1"
4955            coin_add_cflags=""
4956            coin_dbg_cflags="-g"
4957            # Check if -i_dynamic is necessary (for new glibc library)
4958            CFLAGS=
4959            cat >conftest.$ac_ext <<_ACEOF
4960/* confdefs.h.  */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h.  */
4965
4966int
4967main ()
4968{
4969int i=0; i++;
4970  ;
4971  return 0;
4972}
4973_ACEOF
4974rm -f conftest.$ac_objext conftest$ac_exeext
4975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976  (eval $ac_link) 2>conftest.er1
4977  ac_status=$?
4978  grep -v '^ *+' conftest.er1 >conftest.err
4979  rm -f conftest.er1
4980  cat conftest.err >&5
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); } &&
4983         { ac_try='test -z "$ac_c_werror_flag"
4984                         || test ! -s conftest.err'
4985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986  (eval $ac_try) 2>&5
4987  ac_status=$?
4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); }; } &&
4990         { ac_try='test -s conftest$ac_exeext'
4991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992  (eval $ac_try) 2>&5
4993  ac_status=$?
4994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995  (exit $ac_status); }; }; then
4996  :
4997else
4998  echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
5001coin_add_cflags="-i_dynamic $coin_add_cflags"
5002fi
5003rm -f conftest.err conftest.$ac_objext \
5004      conftest$ac_exeext conftest.$ac_ext
5005            ;;
5006          pgcc* | */pgcc*)
5007            coin_opt_cflags="-fast"
5008            coin_add_cflags="-Kieee -pc 64"
5009            coin_dbg_cflags="-g"
5010            ;;
5011        esac
5012        ;;
5013      *-ibm-*)
5014        case "$CC" in
5015          xlc* | */xlc* | mpxlc* | */mpxlc*)
5016            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
5017            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
5018            coin_dbg_cflags="-g"
5019          ;;
5020        esac
5021        ;;
5022      *-hp-*)
5023        coin_opt_cflags="-O"
5024        coin_add_cflags="-Ae"
5025        coin_dbg_cflags="-g"
5026        ;;
5027      *-*-solaris*)
5028        coin_opt_cflags="-xO4"
5029        coin_dbg_cflags="-g"
5030        ;;
5031      *-sgi-*)
5032        coin_opt_cflags="-O -OPT:Olimit=0"
5033        coin_dbg_cflags="-g"
5034        ;;
5035    esac
5036  fi
5037
5038  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
5039    coin_dbg_cflags="-g"
5040  fi
5041
5042  if test -z "$coin_opt_cflags"; then
5043    # Try if -O option works if nothing else is set
5044    CFLAGS="-O"
5045    cat >conftest.$ac_ext <<_ACEOF
5046/* confdefs.h.  */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h.  */
5051
5052int
5053main ()
5054{
5055int i=0; i++;
5056  ;
5057  return 0;
5058}
5059_ACEOF
5060rm -f conftest.$ac_objext conftest$ac_exeext
5061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062  (eval $ac_link) 2>conftest.er1
5063  ac_status=$?
5064  grep -v '^ *+' conftest.er1 >conftest.err
5065  rm -f conftest.er1
5066  cat conftest.err >&5
5067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068  (exit $ac_status); } &&
5069         { ac_try='test -z "$ac_c_werror_flag"
5070                         || test ! -s conftest.err'
5071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072  (eval $ac_try) 2>&5
5073  ac_status=$?
5074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075  (exit $ac_status); }; } &&
5076         { ac_try='test -s conftest$ac_exeext'
5077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078  (eval $ac_try) 2>&5
5079  ac_status=$?
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); }; }; then
5082  coin_opt_cflags="-O"
5083else
5084  echo "$as_me: failed program was:" >&5
5085sed 's/^/| /' conftest.$ac_ext >&5
5086
5087fi
5088rm -f conftest.err conftest.$ac_objext \
5089      conftest$ac_exeext conftest.$ac_ext
5090  fi
5091
5092  # if PM doesn't want the warning messages, take them out
5093  if test x"$coin_skip_warn_cflags" = xyes; then
5094    coin_warn_cflags=
5095  fi
5096
5097  if test x${DBG_CFLAGS+set} != xset; then
5098    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
5099  fi
5100  if test x${OPT_CFLAGS+set} != xset; then
5101    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
5102  fi
5103
5104  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
5105  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
5106
5107  if test "$coin_debug_compile" = "true"; then
5108    CFLAGS="$DBG_CFLAGS"
5109  else
5110    CFLAGS="$OPT_CFLAGS"
5111  fi
5112else
5113  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
5114  if test x${DBG_CFLAGS+set} != xset; then
5115    DBG_CFLAGS="$CFLAGS"
5116  fi
5117  if test x${OPT_CFLAGS+set} != xset; then
5118    OPT_CFLAGS="$CFLAGS"
5119  fi
5120fi
5121
5122# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
5123
5124case "$CFLAGS" in
5125  *-mno-cygwin*)
5126    if test x${CPPFLAGS+set} != xset ; then
5127      CPPFLAGS="-mno-cygwin"
5128    else
5129      case "$CPPFLAGS" in
5130        *-mno-cygwin*)
5131          ;;
5132        *)
5133          CPPFLAGS="$CPPFLAGS -mno-cygwin"
5134          ;;
5135      esac
5136    fi ;;
5137esac
5138
5139# Try if CFLAGS works
5140save_CFLAGS="$CFLAGS"
5141cat >conftest.$ac_ext <<_ACEOF
5142/* confdefs.h.  */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h.  */
5147
5148int
5149main ()
5150{
5151int i=0; i++;
5152  ;
5153  return 0;
5154}
5155_ACEOF
5156rm -f conftest.$ac_objext conftest$ac_exeext
5157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158  (eval $ac_link) 2>conftest.er1
5159  ac_status=$?
5160  grep -v '^ *+' conftest.er1 >conftest.err
5161  rm -f conftest.er1
5162  cat conftest.err >&5
5163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164  (exit $ac_status); } &&
5165         { ac_try='test -z "$ac_c_werror_flag"
5166                         || test ! -s conftest.err'
5167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168  (eval $ac_try) 2>&5
5169  ac_status=$?
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); }; } &&
5172         { ac_try='test -s conftest$ac_exeext'
5173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174  (eval $ac_try) 2>&5
5175  ac_status=$?
5176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177  (exit $ac_status); }; }; then
5178  :
5179else
5180  echo "$as_me: failed program was:" >&5
5181sed 's/^/| /' conftest.$ac_ext >&5
5182
5183CFLAGS=
5184fi
5185rm -f conftest.err conftest.$ac_objext \
5186      conftest$ac_exeext conftest.$ac_ext
5187if test -z "$CFLAGS"; then
5188  { 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
5189echo "$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;}
5190  CFLAGS='-O'
5191  cat >conftest.$ac_ext <<_ACEOF
5192/* confdefs.h.  */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h.  */
5197
5198int
5199main ()
5200{
5201int i=0; i++;
5202  ;
5203  return 0;
5204}
5205_ACEOF
5206rm -f conftest.$ac_objext conftest$ac_exeext
5207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208  (eval $ac_link) 2>conftest.er1
5209  ac_status=$?
5210  grep -v '^ *+' conftest.er1 >conftest.err
5211  rm -f conftest.er1
5212  cat conftest.err >&5
5213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214  (exit $ac_status); } &&
5215         { ac_try='test -z "$ac_c_werror_flag"
5216                         || test ! -s conftest.err'
5217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218  (eval $ac_try) 2>&5
5219  ac_status=$?
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); }; } &&
5222         { ac_try='test -s conftest$ac_exeext'
5223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224  (eval $ac_try) 2>&5
5225  ac_status=$?
5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227  (exit $ac_status); }; }; then
5228  :
5229else
5230  echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233CFLAGS=
5234fi
5235rm -f conftest.err conftest.$ac_objext \
5236      conftest$ac_exeext conftest.$ac_ext
5237  if test -z "$CFLAGS"; then
5238    { 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
5239echo "$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;}
5240  fi
5241fi
5242
5243{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
5244echo "$as_me: C compiler options are: $CFLAGS" >&6;}
5245
5246
5247if test x"$MPICC" = x; then :; else
5248  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
5249echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
5250  CC="$MPICC"
5251fi
5252
5253# Correct the LD variable if we are using the MS or Intel-windows compiler
5254case "$CC" in
5255  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5256    case $build in
5257  *-mingw*)
5258    if test "${LD+set}" = set; then :; else
5259      LD=link
5260    fi
5261    ;;
5262 esac
5263 case $enable_doscompile in
5264   msvc)
5265     if test "x${LD+set}" = xset; then :; else
5266       LD=link
5267     fi
5268     ;;
5269 esac
5270
5271    ;;
5272esac
5273
5274ac_ext=c
5275ac_cpp='$CPP $CPPFLAGS'
5276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278ac_compiler_gnu=$ac_cv_c_compiler_gnu
5279
5280
5281
5282# Initialize automake and libtool
5283{
5284
5285
5286
5287# START
5288
5289# Test if force_shared has been set
5290if test "x" = xforce_shared; then
5291  if test x$enable_shared = xno; then
5292    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5293echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5294   { (exit 1); exit 1; }; }
5295  fi
5296  enable_shared=yes;
5297else
5298  # On Cygwin and AIX, building DLLs doesn't work
5299  case $build in
5300    *-cygwin*)
5301      coin_disable_shared=yes
5302      platform=Cygwin
5303    ;;
5304    *-aix*)
5305      coin_disable_shared=yes
5306      platform=AIX
5307    ;;
5308    *-mingw*)
5309      coin_disable_shared=yes
5310      platform="Msys"
5311#      case "$CXX" in
5312#        cl*)
5313#          coin_disable_shared=yes
5314#          platform="Msys with cl"
5315#      ;;
5316#      esac
5317    ;;
5318  esac
5319fi
5320if test x"$coin_disable_shared" = xyes; then
5321  if test x"$enable_shared" = xyes; then
5322    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5323echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5324  fi
5325  enable_shared=no
5326fi
5327# By default, we only want the shared objects to be compiled
5328# Check whether --enable-static or --disable-static was given.
5329if test "${enable_static+set}" = set; then
5330  enableval="$enable_static"
5331  p=${PACKAGE-default}
5332    case $enableval in
5333    yes) enable_static=yes ;;
5334    no) enable_static=no ;;
5335    *)
5336     enable_static=no
5337      # Look at the argument we got.  We use all the common list separators.
5338      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5339      for pkg in $enableval; do
5340        IFS="$lt_save_ifs"
5341        if test "X$pkg" = "X$p"; then
5342          enable_static=yes
5343        fi
5344      done
5345      IFS="$lt_save_ifs"
5346      ;;
5347    esac
5348else
5349  enable_static=no
5350fi;
5351
5352
5353
5354
5355# Initialize automake
5356echo "$as_me:$LINENO: checking for egrep" >&5
5357echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5358if test "${ac_cv_prog_egrep+set}" = set; then
5359  echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5362    then ac_cv_prog_egrep='grep -E'
5363    else ac_cv_prog_egrep='egrep'
5364    fi
5365fi
5366echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5367echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5368 EGREP=$ac_cv_prog_egrep
5369
5370
5371echo "$as_me:$LINENO: checking whether ln -s works" >&5
5372echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5373LN_S=$as_ln_s
5374if test "$LN_S" = "ln -s"; then
5375  echo "$as_me:$LINENO: result: yes" >&5
5376echo "${ECHO_T}yes" >&6
5377else
5378  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5379echo "${ECHO_T}no, using $LN_S" >&6
5380fi
5381
5382am__api_version="1.9"
5383# Find a good install program.  We prefer a C program (faster),
5384# so one script is as good as another.  But avoid the broken or
5385# incompatible versions:
5386# SysV /etc/install, /usr/sbin/install
5387# SunOS /usr/etc/install
5388# IRIX /sbin/install
5389# AIX /bin/install
5390# AmigaOS /C/install, which installs bootblocks on floppy discs
5391# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5392# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5393# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5394# OS/2's system install, which has a completely different semantic
5395# ./install, which can be erroneously created by make from ./install.sh.
5396echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5397echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5398if test -z "$INSTALL"; then
5399if test "${ac_cv_path_install+set}" = set; then
5400  echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405  IFS=$as_save_IFS
5406  test -z "$as_dir" && as_dir=.
5407  # Account for people who put trailing slashes in PATH elements.
5408case $as_dir/ in
5409  ./ | .// | /cC/* | \
5410  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5411  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5412  /usr/ucb/* ) ;;
5413  *)
5414    # OSF1 and SCO ODT 3.0 have their own names for install.
5415    # Don't use installbsd from OSF since it installs stuff as root
5416    # by default.
5417    for ac_prog in ginstall scoinst install; do
5418      for ac_exec_ext in '' $ac_executable_extensions; do
5419        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5420          if test $ac_prog = install &&
5421            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5422            # AIX install.  It has an incompatible calling convention.
5423            :
5424          elif test $ac_prog = install &&
5425            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5426            # program-specific install script used by HP pwplus--don't use.
5427            :
5428          else
5429            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5430            break 3
5431          fi
5432        fi
5433      done
5434    done
5435    ;;
5436esac
5437done
5438
5439
5440fi
5441  if test "${ac_cv_path_install+set}" = set; then
5442    INSTALL=$ac_cv_path_install
5443  else
5444    # As a last resort, use the slow shell script.  We don't cache a
5445    # path for INSTALL within a source directory, because that will
5446    # break other packages using the cache if that directory is
5447    # removed, or if the path is relative.
5448    INSTALL=$ac_install_sh
5449  fi
5450fi
5451echo "$as_me:$LINENO: result: $INSTALL" >&5
5452echo "${ECHO_T}$INSTALL" >&6
5453
5454# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5455# It thinks the first close brace ends the variable substitution.
5456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5457
5458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5459
5460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5461
5462echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5463echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5464# Just in case
5465sleep 1
5466echo timestamp > conftest.file
5467# Do `set' in a subshell so we don't clobber the current shell's
5468# arguments.  Must try -L first in case configure is actually a
5469# symlink; some systems play weird games with the mod time of symlinks
5470# (eg FreeBSD returns the mod time of the symlink's containing
5471# directory).
5472if (
5473   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5474   if test "$*" = "X"; then
5475      # -L didn't work.
5476      set X `ls -t $srcdir/configure conftest.file`
5477   fi
5478   rm -f conftest.file
5479   if test "$*" != "X $srcdir/configure conftest.file" \
5480      && test "$*" != "X conftest.file $srcdir/configure"; then
5481
5482      # If neither matched, then we have a broken ls.  This can happen
5483      # if, for instance, CONFIG_SHELL is bash and it inherits a
5484      # broken ls alias from the environment.  This has actually
5485      # happened.  Such a system could not be considered "sane".
5486      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5487alias in your environment" >&5
5488echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5489alias in your environment" >&2;}
5490   { (exit 1); exit 1; }; }
5491   fi
5492
5493   test "$2" = conftest.file
5494   )
5495then
5496   # Ok.
5497   :
5498else
5499   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5500Check your system clock" >&5
5501echo "$as_me: error: newly created file is older than distributed files!
5502Check your system clock" >&2;}
5503   { (exit 1); exit 1; }; }
5504fi
5505echo "$as_me:$LINENO: result: yes" >&5
5506echo "${ECHO_T}yes" >&6
5507test "$program_prefix" != NONE &&
5508  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5509# Use a double $ so make ignores it.
5510test "$program_suffix" != NONE &&
5511  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5512# Double any \ or $.  echo might interpret backslashes.
5513# By default was `s,x,x', remove it if useless.
5514cat <<\_ACEOF >conftest.sed
5515s/[\\$]/&&/g;s/;s,x,x,$//
5516_ACEOF
5517program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5518rm conftest.sed
5519
5520# expand $ac_aux_dir to an absolute path
5521am_aux_dir=`cd $ac_aux_dir && pwd`
5522
5523test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5524# Use eval to expand $SHELL
5525if eval "$MISSING --run true"; then
5526  am_missing_run="$MISSING --run "
5527else
5528  am_missing_run=
5529  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5530echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5531fi
5532
5533if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5534  # We used to keeping the `.' as first argument, in order to
5535  # allow $(mkdir_p) to be used without argument.  As in
5536  #   $(mkdir_p) $(somedir)
5537  # where $(somedir) is conditionally defined.  However this is wrong
5538  # for two reasons:
5539  #  1. if the package is installed by a user who cannot write `.'
5540  #     make install will fail,
5541  #  2. the above comment should most certainly read
5542  #     $(mkdir_p) $(DESTDIR)$(somedir)
5543  #     so it does not work when $(somedir) is undefined and
5544  #     $(DESTDIR) is not.
5545  #  To support the latter case, we have to write
5546  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5547  #  so the `.' trick is pointless.
5548  mkdir_p='mkdir -p --'
5549else
5550  # On NextStep and OpenStep, the `mkdir' command does not
5551  # recognize any option.  It will interpret all options as
5552  # directories to create, and then abort because `.' already
5553  # exists.
5554  for d in ./-p ./--version;
5555  do
5556    test -d $d && rmdir $d
5557  done
5558  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5559  if test -f "$ac_aux_dir/mkinstalldirs"; then
5560    mkdir_p='$(mkinstalldirs)'
5561  else
5562    mkdir_p='$(install_sh) -d'
5563  fi
5564fi
5565
5566for ac_prog in gawk mawk nawk awk
5567do
5568  # Extract the first word of "$ac_prog", so it can be a program name with args.
5569set dummy $ac_prog; ac_word=$2
5570echo "$as_me:$LINENO: checking for $ac_word" >&5
5571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5572if test "${ac_cv_prog_AWK+set}" = set; then
5573  echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
5575  if test -n "$AWK"; then
5576  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583  for ac_exec_ext in '' $ac_executable_extensions; do
5584  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585    ac_cv_prog_AWK="$ac_prog"
5586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587    break 2
5588  fi
5589done
5590done
5591
5592fi
5593fi
5594AWK=$ac_cv_prog_AWK
5595if test -n "$AWK"; then
5596  echo "$as_me:$LINENO: result: $AWK" >&5
5597echo "${ECHO_T}$AWK" >&6
5598else
5599  echo "$as_me:$LINENO: result: no" >&5
5600echo "${ECHO_T}no" >&6
5601fi
5602
5603  test -n "$AWK" && break
5604done
5605
5606echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5607echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5608set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5609if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5610  echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612  cat >conftest.make <<\_ACEOF
5613all:
5614        @echo 'ac_maketemp="$(MAKE)"'
5615_ACEOF
5616# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5617eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5618if test -n "$ac_maketemp"; then
5619  eval ac_cv_prog_make_${ac_make}_set=yes
5620else
5621  eval ac_cv_prog_make_${ac_make}_set=no
5622fi
5623rm -f conftest.make
5624fi
5625if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5626  echo "$as_me:$LINENO: result: yes" >&5
5627echo "${ECHO_T}yes" >&6
5628  SET_MAKE=
5629else
5630  echo "$as_me:$LINENO: result: no" >&5
5631echo "${ECHO_T}no" >&6
5632  SET_MAKE="MAKE=${MAKE-make}"
5633fi
5634
5635rm -rf .tst 2>/dev/null
5636mkdir .tst 2>/dev/null
5637if test -d .tst; then
5638  am__leading_dot=.
5639else
5640  am__leading_dot=_
5641fi
5642rmdir .tst 2>/dev/null
5643
5644DEPDIR="${am__leading_dot}deps"
5645
5646          ac_config_commands="$ac_config_commands depfiles"
5647
5648
5649am_make=${MAKE-make}
5650cat > confinc << 'END'
5651am__doit:
5652        @echo done
5653.PHONY: am__doit
5654END
5655# If we don't find an include directive, just comment out the code.
5656echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5657echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5658am__include="#"
5659am__quote=
5660_am_result=none
5661# First try GNU make style include.
5662echo "include confinc" > confmf
5663# We grep out `Entering directory' and `Leaving directory'
5664# messages which can occur if `w' ends up in MAKEFLAGS.
5665# In particular we don't look at `^make:' because GNU make might
5666# be invoked under some other name (usually "gmake"), in which
5667# case it prints its new name instead of `make'.
5668if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5669   am__include=include
5670   am__quote=
5671   _am_result=GNU
5672fi
5673# Now try BSD make style include.
5674if test "$am__include" = "#"; then
5675   echo '.include "confinc"' > confmf
5676   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5677      am__include=.include
5678      am__quote="\""
5679      _am_result=BSD
5680   fi
5681fi
5682
5683
5684echo "$as_me:$LINENO: result: $_am_result" >&5
5685echo "${ECHO_T}$_am_result" >&6
5686rm -f confinc confmf
5687
5688# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5689if test "${enable_dependency_tracking+set}" = set; then
5690  enableval="$enable_dependency_tracking"
5691
5692fi;
5693if test "x$enable_dependency_tracking" != xno; then
5694  am_depcomp="$ac_aux_dir/depcomp"
5695  AMDEPBACKSLASH='\'
5696fi
5697
5698
5699if test "x$enable_dependency_tracking" != xno; then
5700  AMDEP_TRUE=
5701  AMDEP_FALSE='#'
5702else
5703  AMDEP_TRUE='#'
5704  AMDEP_FALSE=
5705fi
5706
5707
5708
5709
5710
5711
5712# AC_MSG_NOTICE([Beginning automake initialisation.])
5713# Stuff for automake
5714# test to see if srcdir already configured
5715if test "`cd $srcdir && pwd`" != "`pwd`" &&
5716   test -f $srcdir/config.status; then
5717  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5718echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5719   { (exit 1); exit 1; }; }
5720fi
5721
5722# test whether we have cygpath
5723if test -z "$CYGPATH_W"; then
5724  if (cygpath --version) >/dev/null 2>/dev/null; then
5725    CYGPATH_W='cygpath -w'
5726  else
5727    CYGPATH_W=echo
5728  fi
5729fi
5730
5731
5732# Define the identity of the package.
5733 PACKAGE='couenne'
5734 VERSION='trunk'
5735
5736
5737cat >>confdefs.h <<_ACEOF
5738#define PACKAGE "$PACKAGE"
5739_ACEOF
5740
5741
5742cat >>confdefs.h <<_ACEOF
5743#define VERSION "$VERSION"
5744_ACEOF
5745
5746# Some tools Automake needs.
5747
5748ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5749
5750
5751AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5752
5753
5754AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5755
5756
5757AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5758
5759
5760MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5761
5762install_sh=${install_sh-"$am_aux_dir/install-sh"}
5763
5764# Installed binaries are usually stripped using `strip' when the user
5765# run `make install-strip'.  However `strip' might not be the right
5766# tool to use in cross-compilation environments, therefore Automake
5767# will honor the `STRIP' environment variable to overrule this program.
5768if test "$cross_compiling" != no; then
5769  if test -n "$ac_tool_prefix"; then
5770  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5771set dummy ${ac_tool_prefix}strip; ac_word=$2
5772echo "$as_me:$LINENO: checking for $ac_word" >&5
5773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774if test "${ac_cv_prog_STRIP+set}" = set; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777  if test -n "$STRIP"; then
5778  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783  IFS=$as_save_IFS
5784  test -z "$as_dir" && as_dir=.
5785  for ac_exec_ext in '' $ac_executable_extensions; do
5786  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789    break 2
5790  fi
5791done
5792done
5793
5794fi
5795fi
5796STRIP=$ac_cv_prog_STRIP
5797if test -n "$STRIP"; then
5798  echo "$as_me:$LINENO: result: $STRIP" >&5
5799echo "${ECHO_T}$STRIP" >&6
5800else
5801  echo "$as_me:$LINENO: result: no" >&5
5802echo "${ECHO_T}no" >&6
5803fi
5804
5805fi
5806if test -z "$ac_cv_prog_STRIP"; then
5807  ac_ct_STRIP=$STRIP
5808  # Extract the first word of "strip", so it can be a program name with args.
5809set dummy strip; ac_word=$2
5810echo "$as_me:$LINENO: checking for $ac_word" >&5
5811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5813  echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815  if test -n "$ac_ct_STRIP"; then
5816  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821  IFS=$as_save_IFS
5822  test -z "$as_dir" && as_dir=.
5823  for ac_exec_ext in '' $ac_executable_extensions; do
5824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825    ac_cv_prog_ac_ct_STRIP="strip"
5826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827    break 2
5828  fi
5829done
5830done
5831
5832  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5833fi
5834fi
5835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5836if test -n "$ac_ct_STRIP"; then
5837  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5838echo "${ECHO_T}$ac_ct_STRIP" >&6
5839else
5840  echo "$as_me:$LINENO: result: no" >&5
5841echo "${ECHO_T}no" >&6
5842fi
5843
5844  STRIP=$ac_ct_STRIP
5845else
5846  STRIP="$ac_cv_prog_STRIP"
5847fi
5848
5849fi
5850INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5851
5852# We need awk for the "check" target.  The system "awk" is bad on
5853# some platforms.
5854# Always define AMTAR for backward compatibility.
5855
5856AMTAR=${AMTAR-"${am_missing_run}tar"}
5857
5858am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5859
5860
5861
5862
5863depcc="$CC"   am_compiler_list=
5864
5865echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5866echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5867if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5868  echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5871  # We make a subdir and do the tests there.  Otherwise we can end up
5872  # making bogus files that we don't know about and never remove.  For
5873  # instance it was reported that on HP-UX the gcc test will end up
5874  # making a dummy file named `D' -- because `-MD' means `put the output
5875  # in D'.
5876  mkdir conftest.dir
5877  # Copy depcomp to subdir because otherwise we won't find it if we're
5878  # using a relative directory.
5879  cp "$am_depcomp" conftest.dir
5880  cd conftest.dir
5881  # We will build objects and dependencies in a subdirectory because
5882  # it helps to detect inapplicable dependency modes.  For instance
5883  # both Tru64's cc and ICC support -MD to output dependencies as a
5884  # side effect of compilation, but ICC will put the dependencies in
5885  # the current directory while Tru64 will put them in the object
5886  # directory.
5887  mkdir sub
5888
5889  am_cv_CC_dependencies_compiler_type=none
5890  if test "$am_compiler_list" = ""; then
5891     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5892  fi
5893  for depmode in $am_compiler_list; do
5894    # Setup a source with many dependencies, because some compilers
5895    # like to wrap large dependency lists on column 80 (with \), and
5896    # we should not choose a depcomp mode which is confused by this.
5897    #
5898    # We need to recreate these files for each test, as the compiler may
5899    # overwrite some of them when testing with obscure command lines.
5900    # This happens at least with the AIX C compiler.
5901    : > sub/conftest.c
5902    for i in 1 2 3 4 5 6; do
5903      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5904      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5905      # Solaris 8's {/usr,}/bin/sh.
5906      touch sub/conftst$i.h
5907    done
5908    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5909
5910    case $depmode in
5911    nosideeffect)
5912      # after this tag, mechanisms are not by side-effect, so they'll
5913      # only be used when explicitly requested
5914      if test "x$enable_dependency_tracking" = xyes; then
5915        continue
5916      else
5917        break
5918      fi
5919      ;;
5920    none) break ;;
5921    esac
5922    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5923    # mode.  It turns out that the SunPro C++ compiler does not properly
5924    # handle `-M -o', and we need to detect this.
5925    if depmode=$depmode \
5926       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5927       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5928       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5929         >/dev/null 2>conftest.err &&
5930       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5931       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5932       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5933      # icc doesn't choke on unknown options, it will just issue warnings
5934      # or remarks (even with -Werror).  So we grep stderr for any message
5935      # that says an option was ignored or not supported.
5936      # When given -MP, icc 7.0 and 7.1 complain thusly:
5937      #   icc: Command line warning: ignoring option '-M'; no argument required
5938      # The diagnosis changed in icc 8.0:
5939      #   icc: Command line remark: option '-MP' not supported
5940      if (grep 'ignoring option' conftest.err ||
5941          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5942        am_cv_CC_dependencies_compiler_type=$depmode
5943        break
5944      fi
5945    fi
5946  done
5947
5948  cd ..
5949  rm -rf conftest.dir
5950else
5951  am_cv_CC_dependencies_compiler_type=none
5952fi
5953
5954fi
5955echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5956echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5957CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5958
5959
5960
5961if
5962  test "x$enable_dependency_tracking" != xno \
5963  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5964  am__fastdepCC_TRUE=
5965  am__fastdepCC_FALSE='#'
5966else
5967  am__fastdepCC_TRUE='#'
5968  am__fastdepCC_FALSE=
5969fi
5970
5971
5972depcc="$CXX"  am_compiler_list=
5973
5974echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5975echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5976if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5977  echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5980  # We make a subdir and do the tests there.  Otherwise we can end up
5981  # making bogus files that we don't know about and never remove.  For
5982  # instance it was reported that on HP-UX the gcc test will end up
5983  # making a dummy file named `D' -- because `-MD' means `put the output
5984  # in D'.
5985  mkdir conftest.dir
5986  # Copy depcomp to subdir because otherwise we won't find it if we're
5987  # using a relative directory.
5988  cp "$am_depcomp" conftest.dir
5989  cd conftest.dir
5990  # We will build objects and dependencies in a subdirectory because
5991  # it helps to detect inapplicable dependency modes.  For instance
5992  # both Tru64's cc and ICC support -MD to output dependencies as a
5993  # side effect of compilation, but ICC will put the dependencies in
5994  # the current directory while Tru64 will put them in the object
5995  # directory.
5996  mkdir sub
5997
5998  am_cv_CXX_dependencies_compiler_type=none
5999  if test "$am_compiler_list" = ""; then
6000     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6001  fi
6002  for depmode in $am_compiler_list; do
6003    # Setup a source with many dependencies, because some compilers
6004    # like to wrap large dependency lists on column 80 (with \), and
6005    # we should not choose a depcomp mode which is confused by this.
6006    #
6007    # We need to recreate these files for each test, as the compiler may
6008    # overwrite some of them when testing with obscure command lines.
6009    # This happens at least with the AIX C compiler.
6010    : > sub/conftest.c
6011    for i in 1 2 3 4 5 6; do
6012      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6013      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6014      # Solaris 8's {/usr,}/bin/sh.
6015      touch sub/conftst$i.h
6016    done
6017    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6018
6019    case $depmode in
6020    nosideeffect)
6021      # after this tag, mechanisms are not by side-effect, so they'll
6022      # only be used when explicitly requested
6023      if test "x$enable_dependency_tracking" = xyes; then
6024        continue
6025      else
6026        break
6027      fi
6028      ;;
6029    none) break ;;
6030    esac
6031    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6032    # mode.  It turns out that the SunPro C++ compiler does not properly
6033    # handle `-M -o', and we need to detect this.
6034    if depmode=$depmode \
6035       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6036       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6037       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6038         >/dev/null 2>conftest.err &&
6039       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6040       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6041       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6042      # icc doesn't choke on unknown options, it will just issue warnings
6043      # or remarks (even with -Werror).  So we grep stderr for any message
6044      # that says an option was ignored or not supported.
6045      # When given -MP, icc 7.0 and 7.1 complain thusly:
6046      #   icc: Command line warning: ignoring option '-M'; no argument required
6047      # The diagnosis changed in icc 8.0:
6048      #   icc: Command line remark: option '-MP' not supported
6049      if (grep 'ignoring option' conftest.err ||
6050          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6051        am_cv_CXX_dependencies_compiler_type=$depmode
6052        break
6053      fi
6054    fi
6055  done
6056
6057  cd ..
6058  rm -rf conftest.dir
6059else
6060  am_cv_CXX_dependencies_compiler_type=none
6061fi
6062
6063fi
6064echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6065echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6066CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6067
6068
6069
6070if
6071  test "x$enable_dependency_tracking" != xno \
6072  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6073  am__fastdepCXX_TRUE=
6074  am__fastdepCXX_FALSE='#'
6075else
6076  am__fastdepCXX_TRUE='#'
6077  am__fastdepCXX_FALSE=
6078fi
6079
6080
6081
6082echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6083echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6084    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6085if test "${enable_maintainer_mode+set}" = set; then
6086  enableval="$enable_maintainer_mode"
6087  USE_MAINTAINER_MODE=$enableval
6088else
6089  USE_MAINTAINER_MODE=no
6090fi;
6091  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6092echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6093
6094
6095if test $USE_MAINTAINER_MODE = yes; then
6096  MAINTAINER_MODE_TRUE=
6097  MAINTAINER_MODE_FALSE='#'
6098else
6099  MAINTAINER_MODE_TRUE='#'
6100  MAINTAINER_MODE_FALSE=
6101fi
6102
6103  MAINT=$MAINTAINER_MODE_TRUE
6104
6105
6106
6107coin_have_externals=no
6108if test "$enable_maintainer_mode" = yes; then
6109
6110  # If maintainer mode is chosen, we make sure that the correct versions
6111  # of the tools are used, and that we know where libtool.m4 is (to
6112  # recreate acinclude.m4)
6113
6114
6115  LIBTOOLM4=
6116  # Normally, $HOME
6117  AUTOTOOLS_DFLT=$HOME
6118
6119  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6120echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6121if test "${ac_cv_use_correct_autotools+set}" = set; then
6122  echo $ECHO_N "(cached) $ECHO_C" >&6
6123else
6124  ac_cv_use_correct_autotools=check
6125fi
6126echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6127echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6128
6129  if test $ac_cv_use_correct_autotools = check; then
6130    ac_cv_use_correct_autotools=yes
6131    # Check if we have autoconf
6132    # Extract the first word of "autoconf", so it can be a program name with args.
6133set dummy autoconf; ac_word=$2
6134echo "$as_me:$LINENO: checking for $ac_word" >&5
6135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6136if test "${ac_cv_prog_have_autoconf+set}" = set; then
6137  echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139  if test -n "$have_autoconf"; then
6140  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145  IFS=$as_save_IFS
6146  test -z "$as_dir" && as_dir=.
6147  for ac_exec_ext in '' $ac_executable_extensions; do
6148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149    ac_cv_prog_have_autoconf="yes"
6150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151    break 2
6152  fi
6153done
6154done
6155
6156  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6157fi
6158fi
6159have_autoconf=$ac_cv_prog_have_autoconf
6160if test -n "$have_autoconf"; then
6161  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6162echo "${ECHO_T}$have_autoconf" >&6
6163else
6164  echo "$as_me:$LINENO: result: no" >&5
6165echo "${ECHO_T}no" >&6
6166fi
6167
6168    if test $have_autoconf = no; then
6169      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6170echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6171   { (exit 1); exit 1; }; }
6172    fi
6173
6174    # Check whether autoconf is the correct version
6175    correct_version='2.59'
6176    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6177    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6178echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6179    autoconf --version > confauto.out 2>&1
6180    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6181      echo "$as_me:$LINENO: result: yes" >&5
6182echo "${ECHO_T}yes" >&6
6183    else
6184      rm -f confauto.out
6185      echo "$as_me:$LINENO: result: no" >&5
6186echo "${ECHO_T}no" >&6
6187      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6188echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6189   { (exit 1); exit 1; }; }
6190    fi
6191    rm -f confauto.out
6192
6193    # Check if the executable autoconf is picked up from the correct location
6194    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6195echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6196    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6197    autoconf_dir=`cd $autoconf_dir; pwd`
6198    if test x$AUTOTOOLS_DIR = x; then
6199      want_dir=$AUTOTOOLS_DFLT/bin
6200    else
6201      want_dir=$AUTOTOOLS_DIR/bin
6202    fi
6203    if test $autoconf_dir = `cd $want_dir; pwd`; then
6204      echo "$as_me:$LINENO: result: yes" >&5
6205echo "${ECHO_T}yes" >&6
6206    else
6207      rm -f confauto.out
6208      echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6211echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6212   { (exit 1); exit 1; }; }
6213    fi
6214
6215    # Check if we have automake
6216    # Extract the first word of "automake", so it can be a program name with args.
6217set dummy automake; ac_word=$2
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_have_automake+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  if test -n "$have_automake"; then
6224  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231  for ac_exec_ext in '' $ac_executable_extensions; do
6232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233    ac_cv_prog_have_automake="yes"
6234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238done
6239
6240  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6241fi
6242fi
6243have_automake=$ac_cv_prog_have_automake
6244if test -n "$have_automake"; then
6245  echo "$as_me:$LINENO: result: $have_automake" >&5
6246echo "${ECHO_T}$have_automake" >&6
6247else
6248  echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6
6250fi
6251
6252    if test $have_automake = no; then
6253      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6254echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6255   { (exit 1); exit 1; }; }
6256    fi
6257
6258    # Check whether automake is the correct version
6259    correct_version='1.9.6'
6260    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6261    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6262echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6263    automake --version > confauto.out 2>&1
6264    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6265      echo "$as_me:$LINENO: result: yes" >&5
6266echo "${ECHO_T}yes" >&6
6267    else
6268      rm -f confauto.out
6269      echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6272echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6273   { (exit 1); exit 1; }; }
6274    fi
6275    rm -f confauto.out
6276
6277    # Check if the executable automake is picked up from the correct location
6278    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6279echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6280    automake_dir=`which automake | sed -e 's=/automake=='`
6281    automake_dir=`cd $automake_dir; pwd`
6282    if test x$AUTOTOOLS_DIR = x; then
6283      want_dir=$AUTOTOOLS_DFLT/bin
6284    else
6285      want_dir=$AUTOTOOLS_DIR/bin
6286    fi
6287    if test $automake_dir = `cd $want_dir; pwd`; then
6288      echo "$as_me:$LINENO: result: yes" >&5
6289echo "${ECHO_T}yes" >&6
6290    else
6291      rm -f confauto.out
6292      echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6
6294      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6295echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6296   { (exit 1); exit 1; }; }
6297    fi
6298
6299    # Check if this is the correct version of libtool (with escaped dots)
6300    if test x$AUTOTOOLS_DIR = x; then
6301      want_dir=$AUTOTOOLS_DFLT/share
6302    else
6303      want_dir=$AUTOTOOLS_DIR/share
6304    fi
6305    correct_version='1.5.22'
6306    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6307    if test -r $want_dir/libtool/ltmain.sh; then
6308  have_ltmain=yes
6309  :
6310else
6311  have_ltmain=no
6312  :
6313fi
6314
6315    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6316echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6317    if test $have_ltmain = yes; then
6318    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6319        echo "$as_me:$LINENO: result: yes" >&5
6320echo "${ECHO_T}yes" >&6
6321      else
6322        echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6
6324        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6325echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6326   { (exit 1); exit 1; }; }
6327      fi
6328    else
6329      echo "$as_me:$LINENO: result: no" >&5
6330echo "${ECHO_T}no" >&6
6331      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6332echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6333   { (exit 1); exit 1; }; }
6334    fi
6335  fi
6336
6337  # Check if we can find the libtool file
6338  if test x$AUTOTOOLS_DIR = x; then
6339    want_dir=$AUTOTOOLS_DFLT/share
6340  else
6341    want_dir=$AUTOTOOLS_DIR/share
6342  fi
6343  if test -r $want_dir/aclocal/libtool.m4; then
6344  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6345  :
6346else
6347  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6348echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6349   { (exit 1); exit 1; }; }
6350  :
6351fi
6352
6353
6354  # Check if we have an Dependencies file
6355  if test -r $srcdir/Dependencies; then
6356    coin_have_externals=yes
6357  fi
6358  # Check if subversion is installed and understands https
6359  # Extract the first word of "svn", so it can be a program name with args.
6360set dummy svn; ac_word=$2
6361echo "$as_me:$LINENO: checking for $ac_word" >&5
6362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6363if test "${ac_cv_prog_have_svn+set}" = set; then
6364  echo $ECHO_N "(cached) $ECHO_C" >&6
6365else
6366  if test -n "$have_svn"; then
6367  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6368else
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372  IFS=$as_save_IFS
6373  test -z "$as_dir" && as_dir=.
6374  for ac_exec_ext in '' $ac_executable_extensions; do
6375  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376    ac_cv_prog_have_svn="yes"
6377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378    break 2
6379  fi
6380done
6381done
6382
6383  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6384fi
6385fi
6386have_svn=$ac_cv_prog_have_svn
6387if test -n "$have_svn"; then
6388  echo "$as_me:$LINENO: result: $have_svn" >&5
6389echo "${ECHO_T}$have_svn" >&6
6390else
6391  echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
6393fi
6394
6395  if test x$have_svn = xyes; then
6396    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6397echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6398if test "${ac_cv_svn_understands_https+set}" = set; then
6399  echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401  svn --version > confauto.out 2>&1
6402                    if $EGREP https confauto.out >/dev/null 2>&1; then
6403                      ac_cv_svn_understands_https=yes
6404                    else
6405                      ac_cv_svn_understands_https=no
6406                      have_svn=no
6407                      ac_cv_prog_have_svn=no
6408                    fi
6409                    rm -f confauto.out
6410fi
6411echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6412echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6413  fi
6414
6415  # Find the location of the BuildTools directory
6416  BUILDTOOLSDIR=
6417  if test -r $srcdir/BuildTools/coin.m4; then
6418    BUILDTOOLSDIR=$srcdir/BuildTools
6419  else
6420    if test -r $srcdir/../BuildTools/coin.m4; then
6421      BUILDTOOLSDIR=$srcdir/../BuildTools
6422    else
6423      if test -r $srcdir/../../BuildTools/coin.m4; then
6424        BUILDTOOLSDIR=$srcdir/../../BuildTools
6425      else
6426        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6427echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6428   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6429      fi
6430    fi
6431  fi
6432
6433
6434  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6435  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6436    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6437  fi
6438
6439  # The following variable is set to the name of the directory where
6440  # the autotool scripts are located
6441
6442  AUX_DIR=$ac_aux_dir
6443fi
6444
6445# helpful variable for the base directory of this package
6446abs_source_dir=`cd $srcdir; pwd`
6447
6448
6449# Stuff for example Makefiles
6450if test x$prefix = xNONE; then
6451  full_prefix=$ac_default_prefix
6452else
6453  full_prefix=$prefix
6454fi
6455full_prefix=`cd $full_prefix ; pwd`
6456
6457abs_lib_dir=$full_prefix/lib
6458
6459abs_include_dir=$full_prefix/include
6460
6461abs_bin_dir=$full_prefix/bin
6462
6463
6464
6465if test $coin_have_externals = yes && test x$have_svn = xyes; then
6466  HAVE_EXTERNALS_TRUE=
6467  HAVE_EXTERNALS_FALSE='#'
6468else
6469  HAVE_EXTERNALS_TRUE='#'
6470  HAVE_EXTERNALS_FALSE=
6471fi
6472
6473
6474# AC_MSG_NOTICE([End automake initialisation.])
6475
6476
6477
6478LIBTOOL=
6479if test -r ../libtool; then
6480  coin_config_dir=..
6481  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6482fi
6483if test "x$LIBTOOL" = x; then
6484  if test -r ../../libtool; then
6485    coin_config_dir=../..
6486    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6487  fi
6488fi
6489
6490if test "x$LIBTOOL" = x; then
6491# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6492  # Stuff for libtool
6493  # Check whether --enable-shared or --disable-shared was given.
6494if test "${enable_shared+set}" = set; then
6495  enableval="$enable_shared"
6496  p=${PACKAGE-default}
6497    case $enableval in
6498    yes) enable_shared=yes ;;
6499    no) enable_shared=no ;;
6500    *)
6501      enable_shared=no
6502      # Look at the argument we got.  We use all the common list separators.
6503      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6504      for pkg in $enableval; do
6505        IFS="$lt_save_ifs"
6506        if test "X$pkg" = "X$p"; then
6507          enable_shared=yes
6508        fi
6509      done
6510      IFS="$lt_save_ifs"
6511      ;;
6512    esac
6513else
6514  enable_shared=yes
6515fi;
6516
6517# Check whether --enable-fast-install or --disable-fast-install was given.
6518if test "${enable_fast_install+set}" = set; then
6519  enableval="$enable_fast_install"
6520  p=${PACKAGE-default}
6521    case $enableval in
6522    yes) enable_fast_install=yes ;;
6523    no) enable_fast_install=no ;;
6524    *)
6525      enable_fast_install=no
6526      # Look at the argument we got.  We use all the common list separators.
6527      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6528      for pkg in $enableval; do
6529        IFS="$lt_save_ifs"
6530        if test "X$pkg" = "X$p"; then
6531          enable_fast_install=yes
6532        fi
6533      done
6534      IFS="$lt_save_ifs"
6535      ;;
6536    esac
6537else
6538  enable_fast_install=yes
6539fi;
6540
6541echo "$as_me:$LINENO: checking host system type" >&5
6542echo $ECHO_N "checking host system type... $ECHO_C" >&6
6543if test "${ac_cv_host+set}" = set; then
6544  echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546  ac_cv_host_alias=$host_alias
6547test -z "$ac_cv_host_alias" &&
6548  ac_cv_host_alias=$ac_cv_build_alias
6549ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6550  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6551echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6552   { (exit 1); exit 1; }; }
6553
6554fi
6555echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6556echo "${ECHO_T}$ac_cv_host" >&6
6557host=$ac_cv_host
6558host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6559host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6560host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6561
6562
6563echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6564echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6565if test "${lt_cv_path_SED+set}" = set; then
6566  echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568  # Loop through the user's path and test for sed and gsed.
6569# Then use that list of sed's as ones to test for truncation.
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573  IFS=$as_save_IFS
6574  test -z "$as_dir" && as_dir=.
6575  for lt_ac_prog in sed gsed; do
6576    for ac_exec_ext in '' $ac_executable_extensions; do
6577      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6578        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6579      fi
6580    done
6581  done
6582done
6583lt_ac_max=0
6584lt_ac_count=0
6585# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6586# along with /bin/sed that truncates output.
6587for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6588  test ! -f $lt_ac_sed && continue
6589  cat /dev/null > conftest.in
6590  lt_ac_count=0
6591  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6592  # Check for GNU sed and select it if it is found.
6593  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6594    lt_cv_path_SED=$lt_ac_sed
6595    break
6596  fi
6597  while true; do
6598    cat conftest.in conftest.in >conftest.tmp
6599    mv conftest.tmp conftest.in
6600    cp conftest.in conftest.nl
6601    echo >>conftest.nl
6602    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6603    cmp -s conftest.out conftest.nl || break
6604    # 10000 chars as input seems more than enough
6605    test $lt_ac_count -gt 10 && break
6606    lt_ac_count=`expr $lt_ac_count + 1`
6607    if test $lt_ac_count -gt $lt_ac_max; then
6608      lt_ac_max=$lt_ac_count
6609      lt_cv_path_SED=$lt_ac_sed
6610    fi
6611  done
6612done
6613
6614fi
6615
6616SED=$lt_cv_path_SED
6617echo "$as_me:$LINENO: result: $SED" >&5
6618echo "${ECHO_T}$SED" >&6
6619
6620
6621# Check whether --with-gnu-ld or --without-gnu-ld was given.
6622if test "${with_gnu_ld+set}" = set; then
6623  withval="$with_gnu_ld"
6624  test "$withval" = no || with_gnu_ld=yes
6625else
6626  with_gnu_ld=no
6627fi;
6628ac_prog=ld
6629if test "$GCC" = yes; then
6630  # Check if gcc -print-prog-name=ld gives a path.
6631  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6632echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6633  case $host in
6634  *-*-mingw*)
6635    # gcc leaves a trailing carriage return which upsets mingw
6636    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6637  *)
6638    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6639  esac
6640  case $ac_prog in
6641    # Accept absolute paths.
6642    [\\/]* | ?:[\\/]*)
6643      re_direlt='/[^/][^/]*/\.\./'
6644      # Canonicalize the pathname of ld
6645      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6646      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6647        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6648      done
6649      test -z "$LD" && LD="$ac_prog"
6650      ;;
6651  "")
6652    # If it fails, then pretend we aren't using GCC.
6653    ac_prog=ld
6654    ;;
6655  *)
6656    # If it is relative, then search for the first ld in PATH.
6657    with_gnu_ld=unknown
6658    ;;
6659  esac
6660elif test "$with_gnu_ld" = yes; then
6661  echo "$as_me:$LINENO: checking for GNU ld" >&5
6662echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6663else
6664  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6665echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6666fi
6667if test "${lt_cv_path_LD+set}" = set; then
6668  echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670  if test -z "$LD"; then
6671  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6672  for ac_dir in $PATH; do
6673    IFS="$lt_save_ifs"
6674    test -z "$ac_dir" && ac_dir=.
6675    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6676      lt_cv_path_LD="$ac_dir/$ac_prog"
6677      # Check to see if the program is GNU ld.  I'd rather use --version,
6678      # but apparently some variants of GNU ld only accept -v.
6679      # Break only if it was the GNU/non-GNU ld that we prefer.
6680      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6681      *GNU* | *'with BFD'*)
6682        test "$with_gnu_ld" != no && break
6683        ;;
6684      *)
6685        test "$with_gnu_ld" != yes && break
6686        ;;
6687      esac
6688    fi
6689  done
6690  IFS="$lt_save_ifs"
6691else
6692  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6693fi
6694fi
6695
6696LD="$lt_cv_path_LD"
6697if test -n "$LD"; then
6698  echo "$as_me:$LINENO: result: $LD" >&5
6699echo "${ECHO_T}$LD" >&6
6700else
6701  echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6
6703fi
6704test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6705echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6706   { (exit 1); exit 1; }; }
6707echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6708echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6709if test "${lt_cv_prog_gnu_ld+set}" = set; then
6710  echo $ECHO_N "(cached) $ECHO_C" >&6
6711else
6712  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6713case `$LD -v 2>&1 </dev/null` in
6714*GNU* | *'with BFD'*)
6715  lt_cv_prog_gnu_ld=yes
6716  ;;
6717*)
6718  lt_cv_prog_gnu_ld=no
6719  ;;
6720esac
6721fi
6722echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6723echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6724with_gnu_ld=$lt_cv_prog_gnu_ld
6725
6726
6727echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6728echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6729if test "${lt_cv_ld_reload_flag+set}" = set; then
6730  echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732  lt_cv_ld_reload_flag='-r'
6733fi
6734echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6735echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6736reload_flag=$lt_cv_ld_reload_flag
6737case $reload_flag in
6738"" | " "*) ;;
6739*) reload_flag=" $reload_flag" ;;
6740esac
6741reload_cmds='$LD$reload_flag -o $output$reload_objs'
6742case $host_os in
6743  darwin*)
6744    if test "$GCC" = yes; then
6745      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6746    else
6747      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6748    fi
6749    ;;
6750esac
6751
6752echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6753echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6754if test "${lt_cv_path_NM+set}" = set; then
6755  echo $ECHO_N "(cached) $ECHO_C" >&6
6756else
6757  if test -n "$NM"; then
6758  # Let the user override the test.
6759  lt_cv_path_NM="$NM"
6760else
6761  lt_nm_to_check="${ac_tool_prefix}nm"
6762  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6763    lt_nm_to_check="$lt_nm_to_check nm"
6764  fi
6765  for lt_tmp_nm in $lt_nm_to_check; do
6766    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6767    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6768      IFS="$lt_save_ifs"
6769      test -z "$ac_dir" && ac_dir=.
6770      tmp_nm="$ac_dir/$lt_tmp_nm"
6771      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6772        # Check to see if the nm accepts a BSD-compat flag.
6773        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6774        #   nm: unknown option "B" ignored
6775        # Tru64's nm complains that /dev/null is an invalid object file
6776        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6777        */dev/null* | *'Invalid file or object type'*)
6778          lt_cv_path_NM="$tmp_nm -B"
6779          break
6780          ;;
6781        *)
6782          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6783          */dev/null*)
6784            lt_cv_path_NM="$tmp_nm -p"
6785            break
6786            ;;
6787          *)
6788            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6789            continue # so that we can try to find one that supports BSD flags
6790            ;;
6791          esac
6792          ;;
6793        esac
6794      fi
6795    done
6796    IFS="$lt_save_ifs"
6797  done
6798  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6799fi
6800fi
6801echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6802echo "${ECHO_T}$lt_cv_path_NM" >&6
6803NM="$lt_cv_path_NM"
6804
6805echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6806echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6807if test "${lt_cv_deplibs_check_method+set}" = set; then
6808  echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810  lt_cv_file_magic_cmd='$MAGIC_CMD'
6811lt_cv_file_magic_test_file=
6812lt_cv_deplibs_check_method='unknown'
6813# Need to set the preceding variable on all platforms that support
6814# interlibrary dependencies.
6815# 'none' -- dependencies not supported.
6816# `unknown' -- same as none, but documents that we really don't know.
6817# 'pass_all' -- all dependencies passed with no checks.
6818# 'test_compile' -- check by making test program.
6819# 'file_magic [[regex]]' -- check by looking for files in library path
6820# which responds to the $file_magic_cmd with a given extended regex.
6821# If you have `file' or equivalent on your system and you're not sure
6822# whether `pass_all' will *always* work, you probably want this one.
6823
6824case $host_os in
6825aix4* | aix5*)
6826  lt_cv_deplibs_check_method=pass_all
6827  ;;
6828
6829beos*)
6830  lt_cv_deplibs_check_method=pass_all
6831  ;;
6832
6833bsdi[45]*)
6834  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6835  lt_cv_file_magic_cmd='/usr/bin/file -L'
6836  lt_cv_file_magic_test_file=/shlib/libc.so
6837  ;;
6838
6839cygwin*)
6840  # func_win32_libid is a shell function defined in ltmain.sh
6841  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6842  lt_cv_file_magic_cmd='func_win32_libid'
6843  ;;
6844
6845mingw* | pw32*)
6846  # Base MSYS/MinGW do not provide the 'file' command needed by
6847  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6848  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6849  lt_cv_file_magic_cmd='$OBJDUMP -f'
6850  ;;
6851
6852darwin* | rhapsody*)
6853  lt_cv_deplibs_check_method=pass_all
6854  ;;
6855
6856freebsd* | kfreebsd*-gnu | dragonfly*)
6857  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6858    case $host_cpu in
6859    i*86 )
6860      # Not sure whether the presence of OpenBSD here was a mistake.
6861      # Let's accept both of them until this is cleared up.
6862      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6863      lt_cv_file_magic_cmd=/usr/bin/file
6864      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6865      ;;
6866    esac
6867  else
6868    lt_cv_deplibs_check_method=pass_all
6869  fi
6870  ;;
6871
6872gnu*)
6873  lt_cv_deplibs_check_method=pass_all
6874  ;;
6875
6876hpux10.20* | hpux11*)
6877  lt_cv_file_magic_cmd=/usr/bin/file
6878  case $host_cpu in
6879  ia64*)
6880    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6881    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6882    ;;
6883  hppa*64*)
6884    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6885    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6886    ;;
6887  *)
6888    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6889    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6890    ;;
6891  esac
6892  ;;
6893
6894interix3*)
6895  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6896  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6897  ;;
6898
6899irix5* | irix6* | nonstopux*)
6900  case $LD in
6901  *-32|*"-32 ") libmagic=32-bit;;
6902  *-n32|*"-n32 ") libmagic=N32;;
6903  *-64|*"-64 ") libmagic=64-bit;;
6904  *) libmagic=never-match;;
6905  esac
6906  lt_cv_deplibs_check_method=pass_all
6907  ;;
6908
6909# This must be Linux ELF.
6910linux*)
6911  lt_cv_deplibs_check_method=pass_all
6912  ;;
6913
6914netbsd*)
6915  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6916    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6917  else
6918    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6919  fi
6920  ;;
6921
6922newos6*)
6923  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6924  lt_cv_file_magic_cmd=/usr/bin/file
6925  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6926  ;;
6927
6928nto-qnx*)
6929  lt_cv_deplibs_check_method=unknown
6930  ;;
6931
6932openbsd*)
6933  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6934    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6935  else
6936    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6937  fi
6938  ;;
6939
6940osf3* | osf4* | osf5*)
6941  lt_cv_deplibs_check_method=pass_all
6942  ;;
6943
6944solaris*)
6945  lt_cv_deplibs_check_method=pass_all
6946  ;;
6947
6948sysv4 | sysv4.3*)
6949  case $host_vendor in
6950  motorola)
6951    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6952    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6953    ;;
6954  ncr)
6955    lt_cv_deplibs_check_method=pass_all
6956    ;;
6957  sequent)
6958    lt_cv_file_magic_cmd='/bin/file'
6959    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6960    ;;
6961  sni)
6962    lt_cv_file_magic_cmd='/bin/file'
6963    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6964    lt_cv_file_magic_test_file=/lib/libc.so
6965    ;;
6966  siemens)
6967    lt_cv_deplibs_check_method=pass_all
6968    ;;
6969  pc)
6970    lt_cv_deplibs_check_method=pass_all
6971    ;;
6972  esac
6973  ;;
6974
6975sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6976  lt_cv_deplibs_check_method=pass_all
6977  ;;
6978esac
6979
6980fi
6981echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6982echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6983file_magic_cmd=$lt_cv_file_magic_cmd
6984deplibs_check_method=$lt_cv_deplibs_check_method
6985test -z "$deplibs_check_method" && deplibs_check_method=unknown
6986
6987
6988
6989
6990# If no C compiler was specified, use CC.
6991LTCC=${LTCC-"$CC"}
6992
6993# If no C compiler flags were specified, use CFLAGS.
6994LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6995
6996# Allow CC to be a program name with arguments.
6997compiler=$CC
6998
6999# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7000if test "${enable_libtool_lock+set}" = set; then
7001  enableval="$enable_libtool_lock"
7002
7003fi;
7004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7005
7006# Some flags need to be propagated to the compiler or linker for good
7007# libtool support.
7008case $host in
7009ia64-*-hpux*)
7010  # Find out which ABI we are using.
7011  echo 'int i;' > conftest.$ac_ext
7012  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013  (eval $ac_compile) 2>&5
7014  ac_status=$?
7015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016  (exit $ac_status); }; then
7017    case `/usr/bin/file conftest.$ac_objext` in
7018    *ELF-32*)
7019      HPUX_IA64_MODE="32"
7020      ;;
7021    *ELF-64*)
7022      HPUX_IA64_MODE="64"
7023      ;;
7024    esac
7025  fi
7026  rm -rf conftest*
7027  ;;
7028*-*-irix6*)
7029  # Find out which ABI we are using.
7030  echo '#line 7030 "configure"' > conftest.$ac_ext
7031  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7032  (eval $ac_compile) 2>&5
7033  ac_status=$?
7034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035  (exit $ac_status); }; then
7036   if test "$lt_cv_prog_gnu_ld" = yes; then
7037    case `/usr/bin/file conftest.$ac_objext` in
7038    *32-bit*)
7039      LD="${LD-ld} -melf32bsmip"
7040      ;;
7041    *N32*)
7042      LD="${LD-ld} -melf32bmipn32"
7043      ;;
7044    *64-bit*)
7045      LD="${LD-ld} -melf64bmip"
7046      ;;
7047    esac
7048   else
7049    case `/usr/bin/file conftest.$ac_objext` in
7050    *32-bit*)
7051      LD="${LD-ld} -32"
7052      ;;
7053    *N32*)
7054      LD="${LD-ld} -n32"
7055      ;;
7056    *64-bit*)
7057      LD="${LD-ld} -64"
7058      ;;
7059    esac
7060   fi
7061  fi
7062  rm -rf conftest*
7063  ;;
7064
7065x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7066  # Find out which ABI we are using.
7067  echo 'int i;' > conftest.$ac_ext
7068  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069  (eval $ac_compile) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; then
7073    case `/usr/bin/file conftest.o` in
7074    *32-bit*)
7075      case $host in
7076        x86_64-*linux*)
7077          LD="${LD-ld} -m elf_i386"
7078          ;;
7079        ppc64-*linux*|powerpc64-*linux*)
7080          LD="${LD-ld} -m elf32ppclinux"
7081          ;;
7082        s390x-*linux*)
7083          LD="${LD-ld} -m elf_s390"
7084          ;;
7085        sparc64-*linux*)
7086          LD="${LD-ld} -m elf32_sparc"
7087          ;;
7088      esac
7089      ;;
7090    *64-bit*)
7091      case $host in
7092        x86_64-*linux*)
7093          LD="${LD-ld} -m elf_x86_64"
7094          ;;
7095        ppc*-*linux*|powerpc*-*linux*)
7096          LD="${LD-ld} -m elf64ppc"
7097          ;;
7098        s390*-*linux*)
7099          LD="${LD-ld} -m elf64_s390"
7100          ;;
7101        sparc*-*linux*)
7102          LD="${LD-ld} -m elf64_sparc"
7103          ;;
7104      esac
7105      ;;
7106    esac
7107  fi
7108  rm -rf conftest*
7109  ;;
7110
7111*-*-sco3.2v5*)
7112  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7113  SAVE_CFLAGS="$CFLAGS"
7114  CFLAGS="$CFLAGS -belf"
7115  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7116echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7117if test "${lt_cv_cc_needs_belf+set}" = set; then
7118  echo $ECHO_N "(cached) $ECHO_C" >&6
7119else
7120  ac_ext=c
7121ac_cpp='$CPP $CPPFLAGS'
7122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125
7126     cat >conftest.$ac_ext <<_ACEOF
7127/* confdefs.h.  */
7128_ACEOF
7129cat confdefs.h >>conftest.$ac_ext
7130cat >>conftest.$ac_ext <<_ACEOF
7131/* end confdefs.h.  */
7132
7133int
7134main ()
7135{
7136
7137  ;
7138  return 0;
7139}
7140_ACEOF
7141rm -f conftest.$ac_objext conftest$ac_exeext
7142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143  (eval $ac_link) 2>conftest.er1
7144  ac_status=$?
7145  grep -v '^ *+' conftest.er1 >conftest.err
7146  rm -f conftest.er1
7147  cat conftest.err >&5
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); } &&
7150         { ac_try='test -z "$ac_c_werror_flag"
7151                         || test ! -s conftest.err'
7152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153  (eval $ac_try) 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); }; } &&
7157         { ac_try='test -s conftest$ac_exeext'
7158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159  (eval $ac_try) 2>&5
7160  ac_status=$?
7161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162  (exit $ac_status); }; }; then
7163  lt_cv_cc_needs_belf=yes
7164else
7165  echo "$as_me: failed program was:" >&5
7166sed 's/^/| /' conftest.$ac_ext >&5
7167
7168lt_cv_cc_needs_belf=no
7169fi
7170rm -f conftest.err conftest.$ac_objext \
7171      conftest$ac_exeext conftest.$ac_ext
7172     ac_ext=c
7173ac_cpp='$CPP $CPPFLAGS'
7174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7176ac_compiler_gnu=$ac_cv_c_compiler_gnu
7177
7178fi
7179echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7180echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7181  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7182    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7183    CFLAGS="$SAVE_CFLAGS"
7184  fi
7185  ;;
7186sparc*-*solaris*)
7187  # Find out which ABI we are using.
7188  echo 'int i;' > conftest.$ac_ext
7189  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190  (eval $ac_compile) 2>&5
7191  ac_status=$?
7192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193  (exit $ac_status); }; then
7194    case `/usr/bin/file conftest.o` in
7195    *64-bit*)
7196      case $lt_cv_prog_gnu_ld in
7197      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7198      *)    LD="${LD-ld} -64" ;;
7199      esac
7200      ;;
7201    esac
7202  fi
7203  rm -rf conftest*
7204  ;;
7205
7206
7207esac
7208
7209need_locks="$enable_libtool_lock"
7210
7211
7212ac_ext=c
7213ac_cpp='$CPP $CPPFLAGS'
7214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7218echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7219# On Suns, sometimes $CPP names a directory.
7220if test -n "$CPP" && test -d "$CPP"; then
7221  CPP=
7222fi
7223if test -z "$CPP"; then
7224  if test "${ac_cv_prog_CPP+set}" = set; then
7225  echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227      # Double quotes because CPP needs to be expanded
7228    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7229    do
7230      ac_preproc_ok=false
7231for ac_c_preproc_warn_flag in '' yes
7232do
7233  # Use a header file that comes with gcc, so configuring glibc
7234  # with a fresh cross-compiler works.
7235  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7236  # <limits.h> exists even on freestanding compilers.
7237  # On the NeXT, cc -E runs the code through the compiler's parser,
7238  # not just through cpp. "Syntax error" is here to catch this case.
7239  cat >conftest.$ac_ext <<_ACEOF
7240/* confdefs.h.  */
7241_ACEOF
7242cat confdefs.h >>conftest.$ac_ext
7243cat >>conftest.$ac_ext <<_ACEOF
7244/* end confdefs.h.  */
7245#ifdef __STDC__
7246# include <limits.h>
7247#else
7248# include <assert.h>
7249#endif
7250                     Syntax error
7251_ACEOF
7252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7253  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7254  ac_status=$?
7255  grep -v '^ *+' conftest.er1 >conftest.err
7256  rm -f conftest.er1
7257  cat conftest.err >&5
7258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259  (exit $ac_status); } >/dev/null; then
7260  if test -s conftest.err; then
7261    ac_cpp_err=$ac_c_preproc_warn_flag
7262    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7263  else
7264    ac_cpp_err=
7265  fi
7266else
7267  ac_cpp_err=yes
7268fi
7269if test -z "$ac_cpp_err"; then
7270  :
7271else
7272  echo "$as_me: failed program was:" >&5
7273sed 's/^/| /' conftest.$ac_ext >&5
7274
7275  # Broken: fails on valid input.
7276continue
7277fi
7278rm -f conftest.err conftest.$ac_ext
7279
7280  # OK, works on sane cases.  Now check whether non-existent headers
7281  # can be detected and how.
7282  cat >conftest.$ac_ext <<_ACEOF
7283/* confdefs.h.  */
7284_ACEOF
7285cat confdefs.h >>conftest.$ac_ext
7286cat >>conftest.$ac_ext <<_ACEOF
7287/* end confdefs.h.  */
7288#include <ac_nonexistent.h>
7289_ACEOF
7290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7291  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7292  ac_status=$?
7293  grep -v '^ *+' conftest.er1 >conftest.err
7294  rm -f conftest.er1
7295  cat conftest.err >&5
7296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297  (exit $ac_status); } >/dev/null; then
7298  if test -s conftest.err; then
7299    ac_cpp_err=$ac_c_preproc_warn_flag
7300    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7301  else
7302    ac_cpp_err=
7303  fi
7304else
7305  ac_cpp_err=yes
7306fi
7307if test -z "$ac_cpp_err"; then
7308  # Broken: success on invalid input.
7309continue
7310else
7311  echo "$as_me: failed program was:" >&5
7312sed 's/^/| /' conftest.$ac_ext >&5
7313
7314  # Passes both tests.
7315ac_preproc_ok=:
7316break
7317fi
7318rm -f conftest.err conftest.$ac_ext
7319
7320done
7321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7322rm -f conftest.err conftest.$ac_ext
7323if $ac_preproc_ok; then
7324  break
7325fi
7326
7327    done
7328    ac_cv_prog_CPP=$CPP
7329
7330fi
7331  CPP=$ac_cv_prog_CPP
7332else
7333  ac_cv_prog_CPP=$CPP
7334fi
7335echo "$as_me:$LINENO: result: $CPP" >&5
7336echo "${ECHO_T}$CPP" >&6
7337ac_preproc_ok=false
7338for ac_c_preproc_warn_flag in '' yes
7339do
7340  # Use a header file that comes with gcc, so configuring glibc
7341  # with a fresh cross-compiler works.
7342  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7343  # <limits.h> exists even on freestanding compilers.
7344  # On the NeXT, cc -E runs the code through the compiler's parser,
7345  # not just through cpp. "Syntax error" is here to catch this case.
7346  cat >conftest.$ac_ext <<_ACEOF
7347/* confdefs.h.  */
7348_ACEOF
7349cat confdefs.h >>conftest.$ac_ext
7350cat >>conftest.$ac_ext <<_ACEOF
7351/* end confdefs.h.  */
7352#ifdef __STDC__
7353# include <limits.h>
7354#else
7355# include <assert.h>
7356#endif
7357                     Syntax error
7358_ACEOF
7359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7360  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7361  ac_status=$?
7362  grep -v '^ *+' conftest.er1 >conftest.err
7363  rm -f conftest.er1
7364  cat conftest.err >&5
7365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366  (exit $ac_status); } >/dev/null; then
7367  if test -s conftest.err; then
7368    ac_cpp_err=$ac_c_preproc_warn_flag
7369    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7370  else
7371    ac_cpp_err=
7372  fi
7373else
7374  ac_cpp_err=yes
7375fi
7376if test -z "$ac_cpp_err"; then
7377  :
7378else
7379  echo "$as_me: failed program was:" >&5
7380sed 's/^/| /' conftest.$ac_ext >&5
7381
7382  # Broken: fails on valid input.
7383continue
7384fi
7385rm -f conftest.err conftest.$ac_ext
7386
7387  # OK, works on sane cases.  Now check whether non-existent headers
7388  # can be detected and how.
7389  cat >conftest.$ac_ext <<_ACEOF
7390/* confdefs.h.  */
7391_ACEOF
7392cat confdefs.h >>conftest.$ac_ext
7393cat >>conftest.$ac_ext <<_ACEOF
7394/* end confdefs.h.  */
7395#include <ac_nonexistent.h>
7396_ACEOF
7397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7398  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7399  ac_status=$?
7400  grep -v '^ *+' conftest.er1 >conftest.err
7401  rm -f conftest.er1
7402  cat conftest.err >&5
7403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404  (exit $ac_status); } >/dev/null; then
7405  if test -s conftest.err; then
7406    ac_cpp_err=$ac_c_preproc_warn_flag
7407    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7408  else
7409    ac_cpp_err=
7410  fi
7411else
7412  ac_cpp_err=yes
7413fi
7414if test -z "$ac_cpp_err"; then
7415  # Broken: success on invalid input.
7416continue
7417else
7418  echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
7420
7421  # Passes both tests.
7422ac_preproc_ok=:
7423break
7424fi
7425rm -f conftest.err conftest.$ac_ext
7426
7427done
7428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7429rm -f conftest.err conftest.$ac_ext
7430if $ac_preproc_ok; then
7431  :
7432else
7433  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7434See \`config.log' for more details." >&5
7435echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7436See \`config.log' for more details." >&2;}
7437   { (exit 1); exit 1; }; }
7438fi
7439
7440ac_ext=c
7441ac_cpp='$CPP $CPPFLAGS'
7442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444ac_compiler_gnu=$ac_cv_c_compiler_gnu
7445
7446
7447echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7448echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7449if test "${ac_cv_header_stdc+set}" = set; then
7450  echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452  cat >conftest.$ac_ext <<_ACEOF
7453/* confdefs.h.  */
7454_ACEOF
7455cat confdefs.h >>conftest.$ac_ext
7456cat >>conftest.$ac_ext <<_ACEOF
7457/* end confdefs.h.  */
7458#include <stdlib.h>
7459#include <stdarg.h>
7460#include <string.h>
7461#include <float.h>
7462
7463int
7464main ()
7465{
7466
7467  ;
7468  return 0;
7469}
7470_ACEOF
7471rm -f conftest.$ac_objext
7472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473  (eval $ac_compile) 2>conftest.er1
7474  ac_status=$?
7475  grep -v '^ *+' conftest.er1 >conftest.err
7476  rm -f conftest.er1
7477  cat conftest.err >&5
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); } &&
7480         { ac_try='test -z "$ac_c_werror_flag"
7481                         || test ! -s conftest.err'
7482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483  (eval $ac_try) 2>&5
7484  ac_status=$?
7485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486  (exit $ac_status); }; } &&
7487         { ac_try='test -s conftest.$ac_objext'
7488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489  (eval $ac_try) 2>&5
7490  ac_status=$?
7491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492  (exit $ac_status); }; }; then
7493  ac_cv_header_stdc=yes
7494else
7495  echo "$as_me: failed program was:" >&5
7496sed 's/^/| /' conftest.$ac_ext >&5
7497
7498ac_cv_header_stdc=no
7499fi
7500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7501
7502if test $ac_cv_header_stdc = yes; then
7503  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7504  cat >conftest.$ac_ext <<_ACEOF
7505/* confdefs.h.  */
7506_ACEOF
7507cat confdefs.h >>conftest.$ac_ext
7508cat >>conftest.$ac_ext <<_ACEOF
7509/* end confdefs.h.  */
7510#include <string.h>
7511
7512_ACEOF
7513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7514  $EGREP "memchr" >/dev/null 2>&1; then
7515  :
7516else
7517  ac_cv_header_stdc=no
7518fi
7519rm -f conftest*
7520
7521fi
7522
7523if test $ac_cv_header_stdc = yes; then
7524  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7525  cat >conftest.$ac_ext <<_ACEOF
7526/* confdefs.h.  */
7527_ACEOF
7528cat confdefs.h >>conftest.$ac_ext
7529cat >>conftest.$ac_ext <<_ACEOF
7530/* end confdefs.h.  */
7531#include <stdlib.h>
7532
7533_ACEOF
7534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535  $EGREP "free" >/dev/null 2>&1; then
7536  :
7537else
7538  ac_cv_header_stdc=no
7539fi
7540rm -f conftest*
7541
7542fi
7543
7544if test $ac_cv_header_stdc = yes; then
7545  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7546  if test "$cross_compiling" = yes; then
7547  :
7548else
7549  cat >conftest.$ac_ext <<_ACEOF
7550/* confdefs.h.  */
7551_ACEOF
7552cat confdefs.h >>conftest.$ac_ext
7553cat >>conftest.$ac_ext <<_ACEOF
7554/* end confdefs.h.  */
7555#include <ctype.h>
7556#if ((' ' & 0x0FF) == 0x020)
7557# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7558# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7559#else
7560# define ISLOWER(c) \
7561                   (('a' <= (c) && (c) <= 'i') \
7562                     || ('j' <= (c) && (c) <= 'r') \
7563                     || ('s' <= (c) && (c) <= 'z'))
7564# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7565#endif
7566
7567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7568int
7569main ()
7570{
7571  int i;
7572  for (i = 0; i < 256; i++)
7573    if (XOR (islower (i), ISLOWER (i))
7574        || toupper (i) != TOUPPER (i))
7575      exit(2);
7576  exit (0);
7577}
7578_ACEOF
7579rm -f conftest$ac_exeext
7580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581  (eval $ac_link) 2>&5
7582  ac_status=$?
7583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586  (eval $ac_try) 2>&5
7587  ac_status=$?
7588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589  (exit $ac_status); }; }; then
7590  :
7591else
7592  echo "$as_me: program exited with status $ac_status" >&5
7593echo "$as_me: failed program was:" >&5
7594sed 's/^/| /' conftest.$ac_ext >&5
7595
7596( exit $ac_status )
7597ac_cv_header_stdc=no
7598fi
7599rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7600fi
7601fi
7602fi
7603echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7604echo "${ECHO_T}$ac_cv_header_stdc" >&6
7605if test $ac_cv_header_stdc = yes; then
7606
7607cat >>confdefs.h <<\_ACEOF
7608#define STDC_HEADERS 1
7609_ACEOF
7610
7611fi
7612
7613# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7624                  inttypes.h stdint.h unistd.h
7625do
7626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7627echo "$as_me:$LINENO: checking for $ac_header" >&5
7628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7629if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630  echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632  cat >conftest.$ac_ext <<_ACEOF
7633/* confdefs.h.  */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h.  */
7638$ac_includes_default
7639
7640#include <$ac_header>
7641_ACEOF
7642rm -f conftest.$ac_objext
7643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644  (eval $ac_compile) 2>conftest.er1
7645  ac_status=$?
7646  grep -v '^ *+' conftest.er1 >conftest.err
7647  rm -f conftest.er1
7648  cat conftest.err >&5
7649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650  (exit $ac_status); } &&
7651         { ac_try='test -z "$ac_c_werror_flag"
7652                         || test ! -s conftest.err'
7653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654  (eval $ac_try) 2>&5
7655  ac_status=$?
7656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657  (exit $ac_status); }; } &&
7658         { ac_try='test -s conftest.$ac_objext'
7659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660  (eval $ac_try) 2>&5
7661  ac_status=$?
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); }; }; then
7664  eval "$as_ac_Header=yes"
7665else
7666  echo "$as_me: failed program was:" >&5
7667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669eval "$as_ac_Header=no"
7670fi
7671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7672fi
7673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7675if test `eval echo '${'$as_ac_Header'}'` = yes; then
7676  cat >>confdefs.h <<_ACEOF
7677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7678_ACEOF
7679
7680fi
7681
7682done
7683
7684
7685
7686for ac_header in dlfcn.h
7687do
7688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7689if eval "test \"\${$as_ac_Header+set}\" = set"; then
7690  echo "$as_me:$LINENO: checking for $ac_header" >&5
7691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7692if eval "test \"\${$as_ac_Header+set}\" = set"; then
7693  echo $ECHO_N "(cached) $ECHO_C" >&6
7694fi
7695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7697else
7698  # Is the header compilable?
7699echo "$as_me:$LINENO: checking $ac_header usability" >&5
7700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7701cat >conftest.$ac_ext <<_ACEOF
7702/* confdefs.h.  */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h.  */
7707$ac_includes_default
7708#include <$ac_header>
7709_ACEOF
7710rm -f conftest.$ac_objext
7711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7712  (eval $ac_compile) 2>conftest.er1
7713  ac_status=$?
7714  grep -v '^ *+' conftest.er1 >conftest.err
7715  rm -f conftest.er1
7716  cat conftest.err >&5
7717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718  (exit $ac_status); } &&
7719         { ac_try='test -z "$ac_c_werror_flag"
7720                         || test ! -s conftest.err'
7721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722  (eval $ac_try) 2>&5
7723  ac_status=$?
7724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725  (exit $ac_status); }; } &&
7726         { ac_try='test -s conftest.$ac_objext'
7727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728  (eval $ac_try) 2>&5
7729  ac_status=$?
7730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731  (exit $ac_status); }; }; then
7732  ac_header_compiler=yes
7733else
7734  echo "$as_me: failed program was:" >&5
7735sed 's/^/| /' conftest.$ac_ext >&5
7736
7737ac_header_compiler=no
7738fi
7739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7741echo "${ECHO_T}$ac_header_compiler" >&6
7742
7743# Is the header present?
7744echo "$as_me:$LINENO: checking $ac_header presence" >&5
7745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7746cat >conftest.$ac_ext <<_ACEOF
7747/* confdefs.h.  */
7748_ACEOF
7749cat confdefs.h >>conftest.$ac_ext
7750cat >>conftest.$ac_ext <<_ACEOF
7751/* end confdefs.h.  */
7752#include <$ac_header>
7753_ACEOF
7754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7755  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7756  ac_status=$?
7757  grep -v '^ *+' conftest.er1 >conftest.err
7758  rm -f conftest.er1
7759  cat conftest.err >&5
7760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761  (exit $ac_status); } >/dev/null; then
7762  if test -s conftest.err; then
7763    ac_cpp_err=$ac_c_preproc_warn_flag
7764    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7765  else
7766    ac_cpp_err=
7767  fi
7768else
7769  ac_cpp_err=yes
7770fi
7771if test -z "$ac_cpp_err"; then
7772  ac_header_preproc=yes
7773else
7774  echo "$as_me: failed program was:" >&5
7775sed 's/^/| /' conftest.$ac_ext >&5
7776
7777  ac_header_preproc=no
7778fi
7779rm -f conftest.err conftest.$ac_ext
7780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7781echo "${ECHO_T}$ac_header_preproc" >&6
7782
7783# So?  What about this header?
7784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7785  yes:no: )
7786    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7788    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7790    ac_header_preproc=yes
7791    ;;
7792  no:yes:* )
7793    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7795    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7796echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7797    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7799    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7800echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7801    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7803    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7805    (
7806      cat <<\_ASBOX
7807## --------------------------------------- ##
7808## Report this to couenne@list.coin-or.org ##
7809## --------------------------------------- ##
7810_ASBOX
7811    ) |
7812      sed "s/^/$as_me: WARNING:     /" >&2
7813    ;;
7814esac
7815echo "$as_me:$LINENO: checking for $ac_header" >&5
7816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7817if eval "test \"\${$as_ac_Header+set}\" = set"; then
7818  echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820  eval "$as_ac_Header=\$ac_header_preproc"
7821fi
7822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7824
7825fi
7826if test `eval echo '${'$as_ac_Header'}'` = yes; then
7827  cat >>confdefs.h <<_ACEOF
7828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7829_ACEOF
7830
7831fi
7832
7833done
7834
7835
7836
7837if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7838    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7839    (test "X$CXX" != "Xg++"))) ; then
7840  ac_ext=cc
7841ac_cpp='$CXXCPP $CPPFLAGS'
7842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7845echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7846echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7847if test -z "$CXXCPP"; then
7848  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7849  echo $ECHO_N "(cached) $ECHO_C" >&6
7850else
7851      # Double quotes because CXXCPP needs to be expanded
7852    for CXXCPP in "$CXX -E" "/lib/cpp"
7853    do
7854      ac_preproc_ok=false
7855for ac_cxx_preproc_warn_flag in '' yes
7856do
7857  # Use a header file that comes with gcc, so configuring glibc
7858  # with a fresh cross-compiler works.
7859  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7860  # <limits.h> exists even on freestanding compilers.
7861  # On the NeXT, cc -E runs the code through the compiler's parser,
7862  # not just through cpp. "Syntax error" is here to catch this case.
7863  cat >conftest.$ac_ext <<_ACEOF
7864/* confdefs.h.  */
7865_ACEOF
7866cat confdefs.h >>conftest.$ac_ext
7867cat >>conftest.$ac_ext <<_ACEOF
7868/* end confdefs.h.  */
7869#ifdef __STDC__
7870# include <limits.h>
7871#else
7872# include <assert.h>
7873#endif
7874                     Syntax error
7875_ACEOF
7876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7877  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7878  ac_status=$?
7879  grep -v '^ *+' conftest.er1 >conftest.err
7880  rm -f conftest.er1
7881  cat conftest.err >&5
7882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883  (exit $ac_status); } >/dev/null; then
7884  if test -s conftest.err; then
7885    ac_cpp_err=$ac_cxx_preproc_warn_flag
7886    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7887  else
7888    ac_cpp_err=
7889  fi
7890else
7891  ac_cpp_err=yes
7892fi
7893if test -z "$ac_cpp_err"; then
7894  :
7895else
7896  echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899  # Broken: fails on valid input.
7900continue
7901fi
7902rm -f conftest.err conftest.$ac_ext
7903
7904  # OK, works on sane cases.  Now check whether non-existent headers
7905  # can be detected and how.
7906  cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h.  */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h.  */
7912#include <ac_nonexistent.h>
7913_ACEOF
7914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7915  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7916  ac_status=$?
7917  grep -v '^ *+' conftest.er1 >conftest.err
7918  rm -f conftest.er1
7919  cat conftest.err >&5
7920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921  (exit $ac_status); } >/dev/null; then
7922  if test -s conftest.err; then
7923    ac_cpp_err=$ac_cxx_preproc_warn_flag
7924    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7925  else
7926    ac_cpp_err=
7927  fi
7928else
7929  ac_cpp_err=yes
7930fi
7931if test -z "$ac_cpp_err"; then
7932  # Broken: success on invalid input.
7933continue
7934else
7935  echo "$as_me: failed program was:" >&5
7936sed 's/^/| /' conftest.$ac_ext >&5
7937
7938  # Passes both tests.
7939ac_preproc_ok=:
7940break
7941fi
7942rm -f conftest.err conftest.$ac_ext
7943
7944done
7945# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7946rm -f conftest.err conftest.$ac_ext
7947if $ac_preproc_ok; then
7948  break
7949fi
7950
7951    done
7952    ac_cv_prog_CXXCPP=$CXXCPP
7953
7954fi
7955  CXXCPP=$ac_cv_prog_CXXCPP
7956else
7957  ac_cv_prog_CXXCPP=$CXXCPP
7958fi
7959echo "$as_me:$LINENO: result: $CXXCPP" >&5
7960echo "${ECHO_T}$CXXCPP" >&6
7961ac_preproc_ok=false
7962for ac_cxx_preproc_warn_flag in '' yes
7963do
7964  # Use a header file that comes with gcc, so configuring glibc
7965  # with a fresh cross-compiler works.
7966  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7967  # <limits.h> exists even on freestanding compilers.
7968  # On the NeXT, cc -E runs the code through the compiler's parser,
7969  # not just through cpp. "Syntax error" is here to catch this case.
7970  cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h.  */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h.  */
7976#ifdef __STDC__
7977# include <limits.h>
7978#else
7979# include <assert.h>
7980#endif
7981                     Syntax error
7982_ACEOF
7983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7984  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7985  ac_status=$?
7986  grep -v '^ *+' conftest.er1 >conftest.err
7987  rm -f conftest.er1
7988  cat conftest.err >&5
7989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990  (exit $ac_status); } >/dev/null; then
7991  if test -s conftest.err; then
7992    ac_cpp_err=$ac_cxx_preproc_warn_flag
7993    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7994  else
7995    ac_cpp_err=
7996  fi
7997else
7998  ac_cpp_err=yes
7999fi
8000if test -z "$ac_cpp_err"; then
8001  :
8002else
8003  echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006  # Broken: fails on valid input.
8007continue
8008fi
8009rm -f conftest.err conftest.$ac_ext
8010
8011  # OK, works on sane cases.  Now check whether non-existent headers
8012  # can be detected and how.
8013  cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h.  */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h.  */
8019#include <ac_nonexistent.h>
8020_ACEOF
8021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8022  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8023  ac_status=$?
8024  grep -v '^ *+' conftest.er1 >conftest.err
8025  rm -f conftest.er1
8026  cat conftest.err >&5
8027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028  (exit $ac_status); } >/dev/null; then
8029  if test -s conftest.err; then
8030    ac_cpp_err=$ac_cxx_preproc_warn_flag
8031    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8032  else
8033    ac_cpp_err=
8034  fi
8035else
8036  ac_cpp_err=yes
8037fi
8038if test -z "$ac_cpp_err"; then
8039  # Broken: success on invalid input.
8040continue
8041else
8042  echo "$as_me: failed program was:" >&5
8043sed 's/^/| /' conftest.$ac_ext >&5
8044
8045  # Passes both tests.
8046ac_preproc_ok=:
8047break
8048fi
8049rm -f conftest.err conftest.$ac_ext
8050
8051done
8052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8053rm -f conftest.err conftest.$ac_ext
8054if $ac_preproc_ok; then
8055  :
8056else
8057  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8058See \`config.log' for more details." >&5
8059echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8060See \`config.log' for more details." >&2;}
8061   { (exit 1); exit 1; }; }
8062fi
8063
8064ac_ext=cc
8065ac_cpp='$CXXCPP $CPPFLAGS'
8066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8069
8070fi
8071
8072ac_ext=f
8073ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8074ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8076if test -n "$ac_tool_prefix"; then
8077  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8078  do
8079    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8081echo "$as_me:$LINENO: checking for $ac_word" >&5
8082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8083if test "${ac_cv_prog_F77+set}" = set; then
8084  echo $ECHO_N "(cached) $ECHO_C" >&6
8085else
8086  if test -n "$F77"; then
8087  ac_cv_prog_F77="$F77" # Let the user override the test.
8088else
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092  IFS=$as_save_IFS
8093  test -z "$as_dir" && as_dir=.
8094  for ac_exec_ext in '' $ac_executable_extensions; do
8095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098    break 2
8099  fi
8100done
8101done
8102
8103fi
8104fi
8105F77=$ac_cv_prog_F77
8106if test -n "$F77"; then
8107  echo "$as_me:$LINENO: result: $F77" >&5
8108echo "${ECHO_T}$F77" >&6
8109else
8110  echo "$as_me:$LINENO: result: no" >&5
8111echo "${ECHO_T}no" >&6
8112fi
8113
8114    test -n "$F77" && break
8115  done
8116fi
8117if test -z "$F77"; then
8118  ac_ct_F77=$F77
8119  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8120do
8121  # Extract the first word of "$ac_prog", so it can be a program name with args.
8122set dummy $ac_prog; ac_word=$2
8123echo "$as_me:$LINENO: checking for $ac_word" >&5
8124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8125if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8126  echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128  if test -n "$ac_ct_F77"; then
8129  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8130else
8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134  IFS=$as_save_IFS
8135  test -z "$as_dir" && as_dir=.
8136  for ac_exec_ext in '' $ac_executable_extensions; do
8137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138    ac_cv_prog_ac_ct_F77="$ac_prog"
8139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140    break 2
8141  fi
8142done
8143done
8144
8145fi
8146fi
8147ac_ct_F77=$ac_cv_prog_ac_ct_F77
8148if test -n "$ac_ct_F77"; then
8149  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8150echo "${ECHO_T}$ac_ct_F77" >&6
8151else
8152  echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154fi
8155
8156  test -n "$ac_ct_F77" && break
8157done
8158
8159  F77=$ac_ct_F77
8160fi
8161
8162
8163# Provide some information about the compiler.
8164echo "$as_me:8164:" \
8165     "checking for Fortran 77 compiler version" >&5
8166ac_compiler=`set X $ac_compile; echo $2`
8167{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8168  (eval $ac_compiler --version </dev/null >&5) 2>&5
8169  ac_status=$?
8170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171  (exit $ac_status); }
8172{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8173  (eval $ac_compiler -v </dev/null >&5) 2>&5
8174  ac_status=$?
8175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176  (exit $ac_status); }
8177{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8178  (eval $ac_compiler -V </dev/null >&5) 2>&5
8179  ac_status=$?
8180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181  (exit $ac_status); }
8182rm -f a.out
8183
8184# If we don't use `.F' as extension, the preprocessor is not run on the
8185# input file.  (Note that this only needs to work for GNU compilers.)
8186ac_save_ext=$ac_ext
8187ac_ext=F
8188echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8189echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8190if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8191  echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193  cat >conftest.$ac_ext <<_ACEOF
8194      program main
8195#ifndef __GNUC__
8196       choke me
8197#endif
8198
8199      end
8200_ACEOF
8201rm -f conftest.$ac_objext
8202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8203  (eval $ac_compile) 2>conftest.er1
8204  ac_status=$?
8205  grep -v '^ *+' conftest.er1 >conftest.err
8206  rm -f conftest.er1
8207  cat conftest.err >&5
8208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209  (exit $ac_status); } &&
8210         { ac_try='test -z "$ac_f77_werror_flag"
8211                         || test ! -s conftest.err'
8212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213  (eval $ac_try) 2>&5
8214  ac_status=$?
8215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216  (exit $ac_status); }; } &&
8217         { ac_try='test -s conftest.$ac_objext'
8218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219  (eval $ac_try) 2>&5
8220  ac_status=$?
8221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222  (exit $ac_status); }; }; then
8223  ac_compiler_gnu=yes
8224else
8225  echo "$as_me: failed program was:" >&5
8226sed 's/^/| /' conftest.$ac_ext >&5
8227
8228ac_compiler_gnu=no
8229fi
8230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8231ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8232
8233fi
8234echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8235echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8236ac_ext=$ac_save_ext
8237ac_test_FFLAGS=${FFLAGS+set}
8238ac_save_FFLAGS=$FFLAGS
8239FFLAGS=
8240echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8241echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8242if test "${ac_cv_prog_f77_g+set}" = set; then
8243  echo $ECHO_N "(cached) $ECHO_C" >&6
8244else
8245  FFLAGS=-g
8246cat >conftest.$ac_ext <<_ACEOF
8247      program main
8248
8249      end
8250_ACEOF
8251rm -f conftest.$ac_objext
8252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8253  (eval $ac_compile) 2>conftest.er1
8254  ac_status=$?
8255  grep -v '^ *+' conftest.er1 >conftest.err
8256  rm -f conftest.er1
8257  cat conftest.err >&5
8258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259  (exit $ac_status); } &&
8260         { ac_try='test -z "$ac_f77_werror_flag"
8261                         || test ! -s conftest.err'
8262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263  (eval $ac_try) 2>&5
8264  ac_status=$?
8265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266  (exit $ac_status); }; } &&
8267         { ac_try='test -s conftest.$ac_objext'
8268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269  (eval $ac_try) 2>&5
8270  ac_status=$?
8271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272  (exit $ac_status); }; }; then
8273  ac_cv_prog_f77_g=yes
8274else
8275  echo "$as_me: failed program was:" >&5
8276sed 's/^/| /' conftest.$ac_ext >&5
8277
8278ac_cv_prog_f77_g=no
8279fi
8280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8281
8282fi
8283echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8284echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8285if test "$ac_test_FFLAGS" = set; then
8286  FFLAGS=$ac_save_FFLAGS
8287elif test $ac_cv_prog_f77_g = yes; then
8288  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8289    FFLAGS="-g -O2"
8290  else
8291    FFLAGS="-g"
8292  fi
8293else
8294  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8295    FFLAGS="-O2"
8296  else
8297    FFLAGS=
8298  fi
8299fi
8300
8301G77=`test $ac_compiler_gnu = yes && echo yes`
8302ac_ext=c
8303ac_cpp='$CPP $CPPFLAGS'
8304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8306ac_compiler_gnu=$ac_cv_c_compiler_gnu
8307
8308
8309
8310# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8311
8312# find the maximum length of command line arguments
8313echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8314echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8315if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8316  echo $ECHO_N "(cached) $ECHO_C" >&6
8317else
8318    i=0
8319  teststring="ABCD"
8320
8321  case $build_os in
8322  msdosdjgpp*)
8323    # On DJGPP, this test can blow up pretty badly due to problems in libc
8324    # (any single argument exceeding 2000 bytes causes a buffer overrun
8325    # during glob expansion).  Even if it were fixed, the result of this
8326    # check would be larger than it should be.
8327    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8328    ;;
8329
8330  gnu*)
8331    # Under GNU Hurd, this test is not required because there is
8332    # no limit to the length of command line arguments.
8333    # Libtool will interpret -1 as no limit whatsoever
8334    lt_cv_sys_max_cmd_len=-1;
8335    ;;
8336
8337  cygwin* | mingw*)
8338    # On Win9x/ME, this test blows up -- it succeeds, but takes
8339    # about 5 minutes as the teststring grows exponentially.
8340    # Worse, since 9x/ME are not pre-emptively multitasking,
8341    # you end up with a "frozen" computer, even though with patience
8342    # the test eventually succeeds (with a max line length of 256k).
8343    # Instead, let's just punt: use the minimum linelength reported by
8344    # all of the supported platforms: 8192 (on NT/2K/XP).
8345    lt_cv_sys_max_cmd_len=8192;
8346    ;;
8347
8348  amigaos*)
8349    # On AmigaOS with pdksh, this test takes hours, literally.
8350    # So we just punt and use a minimum line length of 8192.
8351    lt_cv_sys_max_cmd_len=8192;
8352    ;;
8353
8354  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8355    # This has been around since 386BSD, at least.  Likely further.
8356    if test -x /sbin/sysctl; then
8357      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8358    elif test -x /usr/sbin/sysctl; then
8359      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8360    else
8361      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8362    fi
8363    # And add a safety zone
8364    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8365    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8366    ;;
8367
8368  interix*)
8369    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8370    lt_cv_sys_max_cmd_len=196608
8371    ;;
8372
8373  osf*)
8374    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8375    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8376    # nice to cause kernel panics so lets avoid the loop below.
8377    # First set a reasonable default.
8378    lt_cv_sys_max_cmd_len=16384
8379    #
8380    if test -x /sbin/sysconfig; then
8381      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8382        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8383      esac
8384    fi
8385    ;;
8386  sco3.2v5*)
8387    lt_cv_sys_max_cmd_len=102400
8388    ;;
8389  sysv5* | sco5v6* | sysv4.2uw2*)
8390    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8391    if test -n "$kargmax"; then
8392      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8393    else
8394      lt_cv_sys_max_cmd_len=32768
8395    fi
8396    ;;
8397  *)
8398    # If test is not a shell built-in, we'll probably end up computing a
8399    # maximum length that is only half of the actual maximum length, but
8400    # we can't tell.
8401    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8402    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8403               = "XX$teststring") >/dev/null 2>&1 &&
8404            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8405            lt_cv_sys_max_cmd_len=$new_result &&
8406            test $i != 17 # 1/2 MB should be enough
8407    do
8408      i=`expr $i + 1`
8409      teststring=$teststring$teststring
8410    done
8411    teststring=
8412    # Add a significant safety factor because C++ compilers can tack on massive
8413    # amounts of additional arguments before passing them to the linker.
8414    # It appears as though 1/2 is a usable value.
8415    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8416    ;;
8417  esac
8418
8419fi
8420
8421if test -n $lt_cv_sys_max_cmd_len ; then
8422  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8423echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8424else
8425  echo "$as_me:$LINENO: result: none" >&5
8426echo "${ECHO_T}none" >&6
8427fi
8428
8429
8430
8431
8432# Check for command to grab the raw symbol name followed by C symbol from nm.
8433echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8434echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8435if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8436  echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438
8439# These are sane defaults that work on at least a few old systems.
8440# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8441
8442# Character class describing NM global symbol codes.
8443symcode='[BCDEGRST]'
8444
8445# Regexp to match symbols that can be accessed directly from C.
8446sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8447
8448# Transform an extracted symbol line into a proper C declaration
8449lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8450
8451# Transform an extracted symbol line into symbol name and symbol address
8452lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8453
8454# Define system-specific variables.
8455case $host_os in
8456aix*)
8457  symcode='[BCDT]'
8458  ;;
8459cygwin* | mingw* | pw32*)
8460  symcode='[ABCDGISTW]'
8461  ;;
8462hpux*) # Its linker distinguishes data from code symbols
8463  if test "$host_cpu" = ia64; then
8464    symcode='[ABCDEGRST]'
8465  fi
8466  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8467  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8468  ;;
8469linux*)
8470  if test "$host_cpu" = ia64; then
8471    symcode='[ABCDGIRSTW]'
8472    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8473    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8474  fi
8475  ;;
8476irix* | nonstopux*)
8477  symcode='[BCDEGRST]'
8478  ;;
8479osf*)
8480  symcode='[BCDEGQRST]'
8481  ;;
8482solaris*)
8483  symcode='[BDRT]'
8484  ;;
8485sco3.2v5*)
8486  symcode='[DT]'
8487  ;;
8488sysv4.2uw2*)
8489  symcode='[DT]'
8490  ;;
8491sysv5* | sco5v6* | unixware* | OpenUNIX*)
8492  symcode='[ABDT]'
8493  ;;
8494sysv4)
8495  symcode='[DFNSTU]'
8496  ;;
8497esac
8498
8499# Handle CRLF in mingw tool chain
8500opt_cr=
8501case $build_os in
8502mingw*)
8503  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8504  ;;
8505esac
8506
8507# If we're using GNU nm, then use its standard symbol codes.
8508case `$NM -V 2>&1` in
8509*GNU* | *'with BFD'*)
8510  symcode='[ABCDGIRSTW]' ;;
8511esac
8512
8513# Try without a prefix undercore, then with it.
8514for ac_symprfx in "" "_"; do
8515
8516  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8517  symxfrm="\\1 $ac_symprfx\\2 \\2"
8518
8519  # Write the raw and C identifiers.
8520  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8521
8522  # Check to see that the pipe works correctly.
8523  pipe_works=no
8524
8525  rm -f conftest*
8526  cat > conftest.$ac_ext <<EOF
8527#ifdef __cplusplus
8528extern "C" {
8529#endif
8530char nm_test_var;
8531void nm_test_func(){}
8532#ifdef __cplusplus
8533}
8534#endif
8535int main(){nm_test_var='a';nm_test_func();return(0);}
8536EOF
8537
8538  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539  (eval $ac_compile) 2>&5
8540  ac_status=$?
8541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542  (exit $ac_status); }; then
8543    # Now try to grab the symbols.
8544    nlist=conftest.nm
8545    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8546  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8547  ac_status=$?
8548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549  (exit $ac_status); } && test -s "$nlist"; then
8550      # Try sorting and uniquifying the output.
8551      if sort "$nlist" | uniq > "$nlist"T; then
8552        mv -f "$nlist"T "$nlist"
8553      else
8554        rm -f "$nlist"T
8555      fi
8556
8557      # Make sure that we snagged all the symbols we need.
8558      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8559        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8560          cat <<EOF > conftest.$ac_ext
8561#ifdef __cplusplus
8562extern "C" {
8563#endif
8564
8565EOF
8566          # Now generate the symbol file.
8567          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8568
8569          cat <<EOF >> conftest.$ac_ext
8570#if defined (__STDC__) && __STDC__
8571# define lt_ptr_t void *
8572#else
8573# define lt_ptr_t char *
8574# define const
8575#endif
8576
8577/* The mapping between symbol names and symbols. */
8578const struct {
8579  const char *name;
8580  lt_ptr_t address;
8581}
8582lt_preloaded_symbols[] =
8583{
8584EOF
8585          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8586          cat <<\EOF >> conftest.$ac_ext
8587  {0, (lt_ptr_t) 0}
8588};
8589
8590#ifdef __cplusplus
8591}
8592#endif
8593EOF
8594          # Now try linking the two files.
8595          mv conftest.$ac_objext conftstm.$ac_objext
8596          lt_save_LIBS="$LIBS"
8597          lt_save_CFLAGS="$CFLAGS"
8598          LIBS="conftstm.$ac_objext"
8599          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8600          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601  (eval $ac_link) 2>&5
8602  ac_status=$?
8603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8605            pipe_works=yes
8606          fi
8607          LIBS="$lt_save_LIBS"
8608          CFLAGS="$lt_save_CFLAGS"
8609        else
8610          echo "cannot find nm_test_func in $nlist" >&5
8611        fi
8612      else
8613        echo "cannot find nm_test_var in $nlist" >&5
8614      fi
8615    else
8616      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8617    fi
8618  else
8619    echo "$progname: failed program was:" >&5
8620    cat conftest.$ac_ext >&5
8621  fi
8622  rm -f conftest* conftst*
8623
8624  # Do not use the global_symbol_pipe unless it works.
8625  if test "$pipe_works" = yes; then
8626    break
8627  else
8628    lt_cv_sys_global_symbol_pipe=
8629  fi
8630done
8631
8632fi
8633
8634if test -z "$lt_cv_sys_global_symbol_pipe"; then
8635  lt_cv_sys_global_symbol_to_cdecl=
8636fi
8637if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8638  echo "$as_me:$LINENO: result: failed" >&5
8639echo "${ECHO_T}failed" >&6
8640else
8641  echo "$as_me:$LINENO: result: ok" >&5
8642echo "${ECHO_T}ok" >&6
8643fi
8644
8645echo "$as_me:$LINENO: checking for objdir" >&5
8646echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8647if test "${lt_cv_objdir+set}" = set; then
8648  echo $ECHO_N "(cached) $ECHO_C" >&6
8649else
8650  rm -f .libs 2>/dev/null
8651mkdir .libs 2>/dev/null
8652if test -d .libs; then
8653  lt_cv_objdir=.libs
8654else
8655  # MS-DOS does not allow filenames that begin with a dot.
8656  lt_cv_objdir=_libs
8657fi
8658rmdir .libs 2>/dev/null
8659fi
8660echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8661echo "${ECHO_T}$lt_cv_objdir" >&6
8662objdir=$lt_cv_objdir
8663
8664
8665
8666
8667
8668case $host_os in
8669aix3*)
8670  # AIX sometimes has problems with the GCC collect2 program.  For some
8671  # reason, if we set the COLLECT_NAMES environment variable, the problems
8672  # vanish in a puff of smoke.
8673  if test "X${COLLECT_NAMES+set}" != Xset; then
8674    COLLECT_NAMES=
8675    export COLLECT_NAMES
8676  fi
8677  ;;
8678esac
8679
8680# Sed substitution that helps us do robust quoting.  It backslashifies
8681# metacharacters that are still active within double-quoted strings.
8682Xsed='sed -e 1s/^X//'
8683sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8684
8685# Same as above, but do not quote variable references.
8686double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8687
8688# Sed substitution to delay expansion of an escaped shell variable in a
8689# double_quote_subst'ed string.
8690delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8691
8692# Sed substitution to avoid accidental globbing in evaled expressions
8693no_glob_subst='s/\*/\\\*/g'
8694
8695# Constants:
8696rm="rm -f"
8697
8698# Global variables:
8699default_ofile=libtool
8700can_build_shared=yes
8701
8702# All known linkers require a `.a' archive for static linking (except MSVC,
8703# which needs '.lib').
8704libext=a
8705ltmain="$ac_aux_dir/ltmain.sh"
8706ofile="$default_ofile"
8707with_gnu_ld="$lt_cv_prog_gnu_ld"
8708
8709if test -n "$ac_tool_prefix"; then
8710  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8711set dummy ${ac_tool_prefix}ar; ac_word=$2
8712echo "$as_me:$LINENO: checking for $ac_word" >&5
8713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8714if test "${ac_cv_prog_AR+set}" = set; then
8715  echo $ECHO_N "(cached) $ECHO_C" >&6
8716else
8717  if test -n "$AR"; then
8718  ac_cv_prog_AR="$AR" # Let the user override the test.
8719else
8720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721for as_dir in $PATH
8722do
8723  IFS=$as_save_IFS
8724  test -z "$as_dir" && as_dir=.
8725  for ac_exec_ext in '' $ac_executable_extensions; do
8726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727    ac_cv_prog_AR="${ac_tool_prefix}ar"
8728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8729    break 2
8730  fi
8731done
8732done
8733
8734fi
8735fi
8736AR=$ac_cv_prog_AR
8737if test -n "$AR"; then
8738  echo "$as_me:$LINENO: result: $AR" >&5
8739echo "${ECHO_T}$AR" >&6
8740else
8741  echo "$as_me:$LINENO: result: no" >&5
8742echo "${ECHO_T}no" >&6
8743fi
8744
8745fi
8746if test -z "$ac_cv_prog_AR"; then
8747  ac_ct_AR=$AR
8748  # Extract the first word of "ar", so it can be a program name with args.
8749set dummy ar; ac_word=$2
8750echo "$as_me:$LINENO: checking for $ac_word" >&5
8751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8752if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8753  echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755  if test -n "$ac_ct_AR"; then
8756  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8757else
8758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759for as_dir in $PATH
8760do
8761  IFS=$as_save_IFS
8762  test -z "$as_dir" && as_dir=.
8763  for ac_exec_ext in '' $ac_executable_extensions; do
8764  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8765    ac_cv_prog_ac_ct_AR="ar"
8766    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767    break 2
8768  fi
8769done
8770done
8771
8772  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8773fi
8774fi
8775ac_ct_AR=$ac_cv_prog_ac_ct_AR
8776if test -n "$ac_ct_AR"; then
8777  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8778echo "${ECHO_T}$ac_ct_AR" >&6
8779else
8780  echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
8782fi
8783
8784  AR=$ac_ct_AR
8785else
8786  AR="$ac_cv_prog_AR"
8787fi
8788
8789if test -n "$ac_tool_prefix"; then
8790  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8791set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8792echo "$as_me:$LINENO: checking for $ac_word" >&5
8793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8794if test "${ac_cv_prog_RANLIB+set}" = set; then
8795  echo $ECHO_N "(cached) $ECHO_C" >&6
8796else
8797  if test -n "$RANLIB"; then
8798  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8799else
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803  IFS=$as_save_IFS
8804  test -z "$as_dir" && as_dir=.
8805  for ac_exec_ext in '' $ac_executable_extensions; do
8806  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8808    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8809    break 2
8810  fi
8811done
8812done
8813
8814fi
8815fi
8816RANLIB=$ac_cv_prog_RANLIB
8817if test -n "$RANLIB"; then
8818  echo "$as_me:$LINENO: result: $RANLIB" >&5
8819echo "${ECHO_T}$RANLIB" >&6
8820else
8821  echo "$as_me:$LINENO: result: no" >&5
8822echo "${ECHO_T}no" >&6
8823fi
8824
8825fi
8826if test -z "$ac_cv_prog_RANLIB"; then
8827  ac_ct_RANLIB=$RANLIB
8828  # Extract the first word of "ranlib", so it can be a program name with args.
8829set dummy ranlib; ac_word=$2
8830echo "$as_me:$LINENO: checking for $ac_word" >&5
8831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8832if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8833  echo $ECHO_N "(cached) $ECHO_C" >&6
8834else
8835  if test -n "$ac_ct_RANLIB"; then
8836  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8837else
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841  IFS=$as_save_IFS
8842  test -z "$as_dir" && as_dir=.
8843  for ac_exec_ext in '' $ac_executable_extensions; do
8844  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845    ac_cv_prog_ac_ct_RANLIB="ranlib"
8846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8847    break 2
8848  fi
8849done
8850done
8851
8852  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8853fi
8854fi
8855ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8856if test -n "$ac_ct_RANLIB"; then
8857  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8858echo "${ECHO_T}$ac_ct_RANLIB" >&6
8859else
8860  echo "$as_me:$LINENO: result: no" >&5
8861echo "${ECHO_T}no" >&6
8862fi
8863
8864  RANLIB=$ac_ct_RANLIB
8865else
8866  RANLIB="$ac_cv_prog_RANLIB"
8867fi
8868
8869if test -n "$ac_tool_prefix"; then
8870  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8871set dummy ${ac_tool_prefix}strip; ac_word=$2
8872echo "$as_me:$LINENO: checking for $ac_word" >&5
8873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8874if test "${ac_cv_prog_STRIP+set}" = set; then
8875  echo $ECHO_N "(cached) $ECHO_C" >&6
8876else
8877  if test -n "$STRIP"; then
8878  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8879else
8880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881for as_dir in $PATH
8882do
8883  IFS=$as_save_IFS
8884  test -z "$as_dir" && as_dir=.
8885  for ac_exec_ext in '' $ac_executable_extensions; do
8886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8889    break 2
8890  fi
8891done
8892done
8893
8894fi
8895fi
8896STRIP=$ac_cv_prog_STRIP
8897if test -n "$STRIP"; then
8898  echo "$as_me:$LINENO: result: $STRIP" >&5
8899echo "${ECHO_T}$STRIP" >&6
8900else
8901  echo "$as_me:$LINENO: result: no" >&5
8902echo "${ECHO_T}no" >&6
8903fi
8904
8905fi
8906if test -z "$ac_cv_prog_STRIP"; then
8907  ac_ct_STRIP=$STRIP
8908  # Extract the first word of "strip", so it can be a program name with args.
8909set dummy strip; ac_word=$2
8910echo "$as_me:$LINENO: checking for $ac_word" >&5
8911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8913  echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915  if test -n "$ac_ct_STRIP"; then
8916  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8917else
8918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919for as_dir in $PATH
8920do
8921  IFS=$as_save_IFS
8922  test -z "$as_dir" && as_dir=.
8923  for ac_exec_ext in '' $ac_executable_extensions; do
8924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8925    ac_cv_prog_ac_ct_STRIP="strip"
8926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8927    break 2
8928  fi
8929done
8930done
8931
8932  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8933fi
8934fi
8935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8936if test -n "$ac_ct_STRIP"; then
8937  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8938echo "${ECHO_T}$ac_ct_STRIP" >&6
8939else
8940  echo "$as_me:$LINENO: result: no" >&5
8941echo "${ECHO_T}no" >&6
8942fi
8943
8944  STRIP=$ac_ct_STRIP
8945else
8946  STRIP="$ac_cv_prog_STRIP"
8947fi
8948
8949
8950old_CC="$CC"
8951old_CFLAGS="$CFLAGS"
8952
8953# Set sane defaults for various variables
8954test -z "$AR" && AR=ar
8955test -z "$AR_FLAGS" && AR_FLAGS=cru
8956test -z "$AS" && AS=as
8957test -z "$CC" && CC=cc
8958test -z "$LTCC" && LTCC=$CC
8959test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8960test -z "$DLLTOOL" && DLLTOOL=dlltool
8961test -z "$LD" && LD=ld
8962test -z "$LN_S" && LN_S="ln -s"
8963test -z "$MAGIC_CMD" && MAGIC_CMD=file
8964test -z "$NM" && NM=nm
8965test -z "$SED" && SED=sed
8966test -z "$OBJDUMP" && OBJDUMP=objdump
8967test -z "$RANLIB" && RANLIB=:
8968test -z "$STRIP" && STRIP=:
8969test -z "$ac_objext" && ac_objext=o
8970
8971# Determine commands to create old-style static archives.
8972old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8973old_postinstall_cmds='chmod 644 $oldlib'
8974old_postuninstall_cmds=
8975
8976if test -n "$RANLIB"; then
8977  case $host_os in
8978  openbsd*)
8979    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8980    ;;
8981  *)
8982    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8983    ;;
8984  esac
8985  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8986fi
8987
8988for cc_temp in $compiler""; do
8989  case $cc_temp in
8990    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8991    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8992    \-*) ;;
8993    *) break;;
8994  esac
8995done
8996cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8997
8998
8999# Only perform the check for file, if the check method requires it
9000case $deplibs_check_method in
9001file_magic*)
9002  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9003    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9004echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9005if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9006  echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008  case $MAGIC_CMD in
9009[\\/*] |  ?:[\\/]*)
9010  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9011  ;;
9012*)
9013  lt_save_MAGIC_CMD="$MAGIC_CMD"
9014  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9015  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9016  for ac_dir in $ac_dummy; do
9017    IFS="$lt_save_ifs"
9018    test -z "$ac_dir" && ac_dir=.
9019    if test -f $ac_dir/${ac_tool_prefix}file; then
9020      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9021      if test -n "$file_magic_test_file"; then
9022        case $deplibs_check_method in
9023        "file_magic "*)
9024          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9025          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9026          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9027            $EGREP "$file_magic_regex" > /dev/null; then
9028            :
9029          else
9030            cat <<EOF 1>&2
9031
9032*** Warning: the command libtool uses to detect shared libraries,
9033*** $file_magic_cmd, produces output that libtool cannot recognize.
9034*** The result is that libtool may fail to recognize shared libraries
9035*** as such.  This will affect the creation of libtool libraries that
9036*** depend on shared libraries, but programs linked with such libtool
9037*** libraries will work regardless of this problem.  Nevertheless, you
9038*** may want to report the problem to your system manager and/or to
9039*** bug-libtool@gnu.org
9040
9041EOF
9042          fi ;;
9043        esac
9044      fi
9045      break
9046    fi
9047  done
9048  IFS="$lt_save_ifs"
9049  MAGIC_CMD="$lt_save_MAGIC_CMD"
9050  ;;
9051esac
9052fi
9053
9054MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9055if test -n "$MAGIC_CMD"; then
9056  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9057echo "${ECHO_T}$MAGIC_CMD" >&6
9058else
9059  echo "$as_me:$LINENO: result: no" >&5
9060echo "${ECHO_T}no" >&6
9061fi
9062
9063if test -z "$lt_cv_path_MAGIC_CMD"; then
9064  if test -n "$ac_tool_prefix"; then
9065    echo "$as_me:$LINENO: checking for file" >&5
9066echo $ECHO_N "checking for file... $ECHO_C" >&6
9067if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9068  echo $ECHO_N "(cached) $ECHO_C" >&6
9069else
9070  case $MAGIC_CMD in
9071[\\/*] |  ?:[\\/]*)
9072  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9073  ;;
9074*)
9075  lt_save_MAGIC_CMD="$MAGIC_CMD"
9076  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9077  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9078  for ac_dir in $ac_dummy; do
9079    IFS="$lt_save_ifs"
9080    test -z "$ac_dir" && ac_dir=.
9081    if test -f $ac_dir/file; then
9082      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9083      if test -n "$file_magic_test_file"; then
9084        case $deplibs_check_method in
9085        "file_magic "*)
9086          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9087          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9088          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9089            $EGREP "$file_magic_regex" > /dev/null; then
9090            :
9091          else
9092            cat <<EOF 1>&2
9093
9094*** Warning: the command libtool uses to detect shared libraries,
9095*** $file_magic_cmd, produces output that libtool cannot recognize.
9096*** The result is that libtool may fail to recognize shared libraries
9097*** as such.  This will affect the creation of libtool libraries that
9098*** depend on shared libraries, but programs linked with such libtool
9099*** libraries will work regardless of this problem.  Nevertheless, you
9100*** may want to report the problem to your system manager and/or to
9101*** bug-libtool@gnu.org
9102
9103EOF
9104          fi ;;
9105        esac
9106      fi
9107      break
9108    fi
9109  done
9110  IFS="$lt_save_ifs"
9111  MAGIC_CMD="$lt_save_MAGIC_CMD"
9112  ;;
9113esac
9114fi
9115
9116MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9117if test -n "$MAGIC_CMD"; then
9118  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9119echo "${ECHO_T}$MAGIC_CMD" >&6
9120else
9121  echo "$as_me:$LINENO: result: no" >&5
9122echo "${ECHO_T}no" >&6
9123fi
9124
9125  else
9126    MAGIC_CMD=:
9127  fi
9128fi
9129
9130  fi
9131  ;;
9132esac
9133
9134enable_dlopen=no
9135enable_win32_dll=no
9136
9137# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9138if test "${enable_libtool_lock+set}" = set; then
9139  enableval="$enable_libtool_lock"
9140
9141fi;
9142test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9143
9144
9145# Check whether --with-pic or --without-pic was given.
9146if test "${with_pic+set}" = set; then
9147  withval="$with_pic"
9148  pic_mode="$withval"
9149else
9150  pic_mode=default
9151fi;
9152test -z "$pic_mode" && pic_mode=default
9153
9154# Use C for the default configuration in the libtool script
9155tagname=
9156lt_save_CC="$CC"
9157ac_ext=c
9158ac_cpp='$CPP $CPPFLAGS'
9159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9161ac_compiler_gnu=$ac_cv_c_compiler_gnu
9162
9163
9164# Source file extension for C test sources.
9165ac_ext=c
9166
9167# Object file extension for compiled C test sources.
9168objext=o
9169objext=$objext
9170
9171# Code to be used in simple compile tests
9172lt_simple_compile_test_code="int some_variable = 0;\n"
9173
9174# Code to be used in simple link tests
9175lt_simple_link_test_code='int main(){return(0);}\n'
9176
9177
9178# If no C compiler was specified, use CC.
9179LTCC=${LTCC-"$CC"}
9180
9181# If no C compiler flags were specified, use CFLAGS.
9182LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9183
9184# Allow CC to be a program name with arguments.
9185compiler=$CC
9186
9187
9188# save warnings/boilerplate of simple test code
9189ac_outfile=conftest.$ac_objext
9190printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9191eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9192_lt_compiler_boilerplate=`cat conftest.err`
9193$rm conftest*
9194
9195ac_outfile=conftest.$ac_objext
9196printf "$lt_simple_link_test_code" >conftest.$ac_ext
9197eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9198_lt_linker_boilerplate=`cat conftest.err`
9199$rm conftest*
9200
9201
9202## CAVEAT EMPTOR:
9203## There is no encapsulation within the following macros, do not change
9204## the running order or otherwise move them around unless you know exactly
9205## what you are doing...
9206
9207lt_prog_compiler_no_builtin_flag=
9208
9209if test "$GCC" = yes; then
9210  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9211
9212
9213echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9214echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9215if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9216  echo $ECHO_N "(cached) $ECHO_C" >&6
9217else
9218  lt_cv_prog_compiler_rtti_exceptions=no
9219  ac_outfile=conftest.$ac_objext
9220   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9221   lt_compiler_flag="-fno-rtti -fno-exceptions"
9222   # Insert the option either (1) after the last *FLAGS variable, or
9223   # (2) before a word containing "conftest.", or (3) at the end.
9224   # Note that $ac_compile itself does not contain backslashes and begins
9225   # with a dollar sign (not a hyphen), so the echo should work correctly.
9226   # The option is referenced via a variable to avoid confusing sed.
9227   lt_compile=`echo "$ac_compile" | $SED \
9228   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9229   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9230   -e 's:$: $lt_compiler_flag:'`
9231   (eval echo "\"\$as_me:9231: $lt_compile\"" >&5)
9232   (eval "$lt_compile" 2>conftest.err)
9233   ac_status=$?
9234   cat conftest.err >&5
9235   echo "$as_me:9235: \$? = $ac_status" >&5
9236   if (exit $ac_status) && test -s "$ac_outfile"; then
9237     # The compiler can only warn and ignore the option if not recognized
9238     # So say no if there are warnings other than the usual output.
9239     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9240     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9241     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9242       lt_cv_prog_compiler_rtti_exceptions=yes
9243     fi
9244   fi
9245   $rm conftest*
9246
9247fi
9248echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9249echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9250
9251if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9252    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9253else
9254    :
9255fi
9256
9257fi
9258
9259lt_prog_compiler_wl=
9260lt_prog_compiler_pic=
9261lt_prog_compiler_static=
9262
9263echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9264echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9265
9266  if test "$GCC" = yes; then
9267    lt_prog_compiler_wl='-Wl,'
9268    lt_prog_compiler_static='-static'
9269
9270    case $host_os in
9271      aix*)
9272      # All AIX code is PIC.
9273      if test "$host_cpu" = ia64; then
9274        # AIX 5 now supports IA64 processor
9275        lt_prog_compiler_static='-Bstatic'
9276      fi
9277      ;;
9278
9279    amigaos*)
9280      # FIXME: we need at least 68020 code to build shared libraries, but
9281      # adding the `-m68020' flag to GCC prevents building anything better,
9282      # like `-m68040'.
9283      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9284      ;;
9285
9286    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9287      # PIC is the default for these OSes.
9288      ;;
9289
9290    mingw* | pw32* | os2*)
9291      # This hack is so that the source file can tell whether it is being
9292      # built for inclusion in a dll (and should export symbols for example).
9293      lt_prog_compiler_pic='-DDLL_EXPORT'
9294      ;;
9295
9296    darwin* | rhapsody*)
9297      # PIC is the default on this platform
9298      # Common symbols not allowed in MH_DYLIB files
9299      lt_prog_compiler_pic='-fno-common'
9300      ;;
9301
9302    interix3*)
9303      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9304      # Instead, we relocate shared libraries at runtime.
9305      ;;
9306
9307    msdosdjgpp*)
9308      # Just because we use GCC doesn't mean we suddenly get shared libraries
9309      # on systems that don't support them.
9310      lt_prog_compiler_can_build_shared=no
9311      enable_shared=no
9312      ;;
9313
9314    sysv4*MP*)
9315      if test -d /usr/nec; then
9316        lt_prog_compiler_pic=-Kconform_pic
9317      fi
9318      ;;
9319
9320    hpux*)
9321      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9322      # not for PA HP-UX.
9323      case $host_cpu in
9324      hppa*64*|ia64*)
9325        # +Z the default
9326        ;;
9327      *)
9328        lt_prog_compiler_pic='-fPIC'
9329        ;;
9330      esac
9331      ;;
9332
9333    *)
9334      lt_prog_compiler_pic='-fPIC'
9335      ;;
9336    esac
9337  else
9338    # PORTME Check for flag to pass linker flags through the system compiler.
9339    case $host_os in
9340    aix*)
9341      lt_prog_compiler_wl='-Wl,'
9342      if test "$host_cpu" = ia64; then
9343        # AIX 5 now supports IA64 processor
9344        lt_prog_compiler_static='-Bstatic'
9345      else
9346        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9347      fi
9348      ;;
9349      darwin*)
9350        # PIC is the default on this platform
9351        # Common symbols not allowed in MH_DYLIB files
9352       case $cc_basename in
9353         xlc*)
9354         lt_prog_compiler_pic='-qnocommon'
9355         lt_prog_compiler_wl='-Wl,'
9356         ;;
9357       esac
9358       ;;
9359
9360    mingw* | pw32* | os2*)
9361      # This hack is so that the source file can tell whether it is being
9362      # built for inclusion in a dll (and should export symbols for example).
9363      lt_prog_compiler_pic='-DDLL_EXPORT'
9364      ;;
9365
9366    hpux9* | hpux10* | hpux11*)
9367      lt_prog_compiler_wl='-Wl,'
9368      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9369      # not for PA HP-UX.
9370      case $host_cpu in
9371      hppa*64*|ia64*)
9372        # +Z the default
9373        ;;
9374      *)
9375        lt_prog_compiler_pic='+Z'
9376        ;;
9377      esac
9378      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9379      lt_prog_compiler_static='${wl}-a ${wl}archive'
9380      ;;
9381
9382    irix5* | irix6* | nonstopux*)
9383      lt_prog_compiler_wl='-Wl,'
9384      # PIC (with -KPIC) is the default.
9385      lt_prog_compiler_static='-non_shared'
9386      ;;
9387
9388    newsos6)
9389      lt_prog_compiler_pic='-KPIC'
9390      lt_prog_compiler_static='-Bstatic'
9391      ;;
9392
9393    linux*)
9394      case $cc_basename in
9395      icc* | ecc*)
9396        lt_prog_compiler_wl='-Wl,'
9397        lt_prog_compiler_pic='-KPIC'
9398        lt_prog_compiler_static='-static'
9399        ;;
9400      pgcc* | pgf77* | pgf90* | pgf95*)
9401        # Portland Group compilers (*not* the Pentium gcc compiler,
9402        # which looks to be a dead project)
9403        lt_prog_compiler_wl='-Wl,'
9404        lt_prog_compiler_pic='-fpic'
9405        lt_prog_compiler_static='-Bstatic'
9406        ;;
9407      ccc*)
9408        lt_prog_compiler_wl='-Wl,'
9409        # All Alpha code is PIC.
9410        lt_prog_compiler_static='-non_shared'
9411        ;;
9412      esac
9413      ;;
9414
9415    osf3* | osf4* | osf5*)
9416      lt_prog_compiler_wl='-Wl,'
9417      # All OSF/1 code is PIC.
9418      lt_prog_compiler_static='-non_shared'
9419      ;;
9420
9421    solaris*)
9422      lt_prog_compiler_pic='-KPIC'
9423      lt_prog_compiler_static='-Bstatic'
9424      case $cc_basename in
9425      f77* | f90* | f95*)
9426        lt_prog_compiler_wl='-Qoption ld ';;
9427      *)
9428        lt_prog_compiler_wl='-Wl,';;
9429      esac
9430      ;;
9431
9432    sunos4*)
9433      lt_prog_compiler_wl='-Qoption ld '
9434      lt_prog_compiler_pic='-PIC'
9435      lt_prog_compiler_static='-Bstatic'
9436      ;;
9437
9438    sysv4 | sysv4.2uw2* | sysv4.3*)
9439      lt_prog_compiler_wl='-Wl,'
9440      lt_prog_compiler_pic='-KPIC'
9441      lt_prog_compiler_static='-Bstatic'
9442      ;;
9443
9444    sysv4*MP*)
9445      if test -d /usr/nec ;then
9446        lt_prog_compiler_pic='-Kconform_pic'
9447        lt_prog_compiler_static='-Bstatic'
9448      fi
9449      ;;
9450
9451    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9452      lt_prog_compiler_wl='-Wl,'
9453      lt_prog_compiler_pic='-KPIC'
9454      lt_prog_compiler_static='-Bstatic'
9455      ;;
9456
9457    unicos*)
9458      lt_prog_compiler_wl='-Wl,'
9459      lt_prog_compiler_can_build_shared=no
9460      ;;
9461
9462    uts4*)
9463      lt_prog_compiler_pic='-pic'
9464      lt_prog_compiler_static='-Bstatic'
9465      ;;
9466
9467    *)
9468      lt_prog_compiler_can_build_shared=no
9469      ;;
9470    esac
9471  fi
9472
9473echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9474echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9475
9476#
9477# Check to make sure the PIC flag actually works.
9478#
9479if test -n "$lt_prog_compiler_pic"; then
9480
9481echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9482echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9483if test "${lt_prog_compiler_pic_works+set}" = set; then
9484  echo $ECHO_N "(cached) $ECHO_C" >&6
9485else
9486  lt_prog_compiler_pic_works=no
9487  ac_outfile=conftest.$ac_objext
9488   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9489   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9490   # Insert the option either (1) after the last *FLAGS variable, or
9491   # (2) before a word containing "conftest.", or (3) at the end.
9492   # Note that $ac_compile itself does not contain backslashes and begins
9493   # with a dollar sign (not a hyphen), so the echo should work correctly.
9494   # The option is referenced via a variable to avoid confusing sed.
9495   lt_compile=`echo "$ac_compile" | $SED \
9496   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9498   -e 's:$: $lt_compiler_flag:'`
9499   (eval echo "\"\$as_me:9499: $lt_compile\"" >&5)
9500   (eval "$lt_compile" 2>conftest.err)
9501   ac_status=$?
9502   cat conftest.err >&5
9503   echo "$as_me:9503: \$? = $ac_status" >&5
9504   if (exit $ac_status) && test -s "$ac_outfile"; then
9505     # The compiler can only warn and ignore the option if not recognized
9506     # So say no if there are warnings other than the usual output.
9507     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9508     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9509     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9510       lt_prog_compiler_pic_works=yes
9511     fi
9512   fi
9513   $rm conftest*
9514
9515fi
9516echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9517echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9518
9519if test x"$lt_prog_compiler_pic_works" = xyes; then
9520    case $lt_prog_compiler_pic in
9521     "" | " "*) ;;
9522     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9523     esac
9524else
9525    lt_prog_compiler_pic=
9526     lt_prog_compiler_can_build_shared=no
9527fi
9528
9529fi
9530case $host_os in
9531  # For platforms which do not support PIC, -DPIC is meaningless:
9532  *djgpp*)
9533    lt_prog_compiler_pic=
9534    ;;
9535  *)
9536    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9537    ;;
9538esac
9539
9540#
9541# Check to make sure the static flag actually works.
9542#
9543wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9544echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9545echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9546if test "${lt_prog_compiler_static_works+set}" = set; then
9547  echo $ECHO_N "(cached) $ECHO_C" >&6
9548else
9549  lt_prog_compiler_static_works=no
9550   save_LDFLAGS="$LDFLAGS"
9551   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9552   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9553   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9554     # The linker can only warn and ignore the option if not recognized
9555     # So say no if there are warnings
9556     if test -s conftest.err; then
9557       # Append any errors to the config.log.
9558       cat conftest.err 1>&5
9559       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9560       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9561       if diff conftest.exp conftest.er2 >/dev/null; then
9562         lt_prog_compiler_static_works=yes
9563       fi
9564     else
9565       lt_prog_compiler_static_works=yes
9566     fi
9567   fi
9568   $rm conftest*
9569   LDFLAGS="$save_LDFLAGS"
9570
9571fi
9572echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9573echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9574
9575if test x"$lt_prog_compiler_static_works" = xyes; then
9576    :
9577else
9578    lt_prog_compiler_static=
9579fi
9580
9581
9582echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9583echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9584if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9585  echo $ECHO_N "(cached) $ECHO_C" >&6
9586else
9587  lt_cv_prog_compiler_c_o=no
9588   $rm -r conftest 2>/dev/null
9589   mkdir conftest
9590   cd conftest
9591   mkdir out
9592   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9593
9594   lt_compiler_flag="-o out/conftest2.$ac_objext"
9595   # Insert the option either (1) after the last *FLAGS variable, or
9596   # (2) before a word containing "conftest.", or (3) at the end.
9597   # Note that $ac_compile itself does not contain backslashes and begins
9598   # with a dollar sign (not a hyphen), so the echo should work correctly.
9599   lt_compile=`echo "$ac_compile" | $SED \
9600   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9601   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9602   -e 's:$: $lt_compiler_flag:'`
9603   (eval echo "\"\$as_me:9603: $lt_compile\"" >&5)
9604   (eval "$lt_compile" 2>out/conftest.err)
9605   ac_status=$?
9606   cat out/conftest.err >&5
9607   echo "$as_me:9607: \$? = $ac_status" >&5
9608   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9609   then
9610     # The compiler can only warn and ignore the option if not recognized
9611     # So say no if there are warnings
9612     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9613     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9614     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9615       lt_cv_prog_compiler_c_o=yes
9616     fi
9617   fi
9618   chmod u+w . 2>&5
9619   $rm conftest*
9620   # SGI C++ compiler will create directory out/ii_files/ for
9621   # template instantiation
9622   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9623   $rm out/* && rmdir out
9624   cd ..
9625   rmdir conftest
9626   $rm conftest*
9627
9628fi
9629echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9630echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9631
9632
9633hard_links="nottested"
9634if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9635  # do not overwrite the value of need_locks provided by the user
9636  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9637echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9638  hard_links=yes
9639  $rm conftest*
9640  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9641  touch conftest.a
9642  ln conftest.a conftest.b 2>&5 || hard_links=no
9643  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9644  echo "$as_me:$LINENO: result: $hard_links" >&5
9645echo "${ECHO_T}$hard_links" >&6
9646  if test "$hard_links" = no; then
9647    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9648echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9649    need_locks=warn
9650  fi
9651else
9652  need_locks=no
9653fi
9654
9655echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9656echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9657
9658  runpath_var=
9659  allow_undefined_flag=
9660  enable_shared_with_static_runtimes=no
9661  archive_cmds=
9662  archive_expsym_cmds=
9663  old_archive_From_new_cmds=
9664  old_archive_from_expsyms_cmds=
9665  export_dynamic_flag_spec=
9666  whole_archive_flag_spec=
9667  thread_safe_flag_spec=
9668  hardcode_libdir_flag_spec=
9669  hardcode_libdir_flag_spec_ld=
9670  hardcode_libdir_separator=
9671  hardcode_direct=no
9672  hardcode_minus_L=no
9673  hardcode_shlibpath_var=unsupported
9674  link_all_deplibs=unknown
9675  hardcode_automatic=no
9676  module_cmds=
9677  module_expsym_cmds=
9678  always_export_symbols=no
9679  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9680  # include_expsyms should be a list of space-separated symbols to be *always*
9681  # included in the symbol list
9682  include_expsyms=
9683  # exclude_expsyms can be an extended regexp of symbols to exclude
9684  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9685  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9686  # as well as any symbol that contains `d'.
9687  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9688  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9689  # platforms (ab)use it in PIC code, but their linkers get confused if
9690  # the symbol is explicitly referenced.  Since portable code cannot
9691  # rely on this symbol name, it's probably fine to never include it in
9692  # preloaded symbol tables.
9693  extract_expsyms_cmds=
9694  # Just being paranoid about ensuring that cc_basename is set.
9695  for cc_temp in $compiler""; do
9696  case $cc_temp in
9697    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9698    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9699    \-*) ;;
9700    *) break;;
9701  esac
9702done
9703cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9704
9705  case $host_os in
9706  cygwin* | mingw* | pw32*)
9707    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9708    # When not using gcc, we currently assume that we are using
9709    # Microsoft Visual C++.
9710    if test "$GCC" != yes; then
9711      with_gnu_ld=no
9712    fi
9713    ;;
9714  interix*)
9715    # we just hope/assume this is gcc and not c89 (= MSVC++)
9716    with_gnu_ld=yes
9717    ;;
9718  openbsd*)
9719    with_gnu_ld=no
9720    ;;
9721  esac
9722
9723  ld_shlibs=yes
9724  if test "$with_gnu_ld" = yes; then
9725    # If archive_cmds runs LD, not CC, wlarc should be empty
9726    wlarc='${wl}'
9727
9728    # Set some defaults for GNU ld with shared library support. These
9729    # are reset later if shared libraries are not supported. Putting them
9730    # here allows them to be overridden if necessary.
9731    runpath_var=LD_RUN_PATH
9732    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9733    export_dynamic_flag_spec='${wl}--export-dynamic'
9734    # ancient GNU ld didn't support --whole-archive et. al.
9735    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9736        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9737      else
9738        whole_archive_flag_spec=
9739    fi
9740    supports_anon_versioning=no
9741    case `$LD -v 2>/dev/null` in
9742      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9743      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9744      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9745      *\ 2.11.*) ;; # other 2.11 versions
9746      *) supports_anon_versioning=yes ;;
9747    esac
9748
9749    # See if GNU ld supports shared libraries.
9750    case $host_os in
9751    aix3* | aix4* | aix5*)
9752      # On AIX/PPC, the GNU linker is very broken
9753      if test "$host_cpu" != ia64; then
9754        ld_shlibs=no
9755        cat <<EOF 1>&2
9756
9757*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9758*** to be unable to reliably create shared libraries on AIX.
9759*** Therefore, libtool is disabling shared libraries support.  If you
9760*** really care for shared libraries, you may want to modify your PATH
9761*** so that a non-GNU linker is found, and then restart.
9762
9763EOF
9764      fi
9765      ;;
9766
9767    amigaos*)
9768      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9769      hardcode_libdir_flag_spec='-L$libdir'
9770      hardcode_minus_L=yes
9771
9772      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9773      # that the semantics of dynamic libraries on AmigaOS, at least up
9774      # to version 4, is to share data among multiple programs linked
9775      # with the same dynamic library.  Since this doesn't match the
9776      # behavior of shared libraries on other platforms, we can't use
9777      # them.
9778      ld_shlibs=no
9779      ;;
9780
9781    beos*)
9782      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9783        allow_undefined_flag=unsupported
9784        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9785        # support --undefined.  This deserves some investigation.  FIXME
9786        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787      else
9788        ld_shlibs=no
9789      fi
9790      ;;
9791
9792    cygwin* | mingw* | pw32*)
9793      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9794      # as there is no search path for DLLs.
9795      hardcode_libdir_flag_spec='-L$libdir'
9796      allow_undefined_flag=unsupported
9797      always_export_symbols=no
9798      enable_shared_with_static_runtimes=yes
9799      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9800
9801      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9802        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9803        # If the export-symbols file already is a .def file (1st line
9804        # is EXPORTS), use it as is; otherwise, prepend...
9805        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9806          cp $export_symbols $output_objdir/$soname.def;
9807        else
9808          echo EXPORTS > $output_objdir/$soname.def;
9809          cat $export_symbols >> $output_objdir/$soname.def;
9810        fi~
9811        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9812      else
9813        ld_shlibs=no
9814      fi
9815      ;;
9816
9817    interix3*)
9818      hardcode_direct=no
9819      hardcode_shlibpath_var=no
9820      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9821      export_dynamic_flag_spec='${wl}-E'
9822      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9823      # Instead, shared libraries are loaded at an image base (0x10000000 by
9824      # default) and relocated if they conflict, which is a slow very memory
9825      # consuming and fragmenting process.  To avoid this, we pick a random,
9826      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9827      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9828      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9829      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9830      ;;
9831
9832    linux*)
9833      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9834        tmp_addflag=
9835        case $cc_basename,$host_cpu in
9836        pgcc*)                          # Portland Group C compiler
9837          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9838          tmp_addflag=' $pic_flag'
9839          ;;
9840        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9841          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9842          tmp_addflag=' $pic_flag -Mnomain' ;;
9843        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9844          tmp_addflag=' -i_dynamic' ;;
9845        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9846          tmp_addflag=' -i_dynamic -nofor_main' ;;
9847        ifc* | ifort*)                  # Intel Fortran compiler
9848          tmp_addflag=' -nofor_main' ;;
9849        esac
9850        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851
9852        if test $supports_anon_versioning = yes; then
9853          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9854  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9855  $echo "local: *; };" >> $output_objdir/$libname.ver~
9856          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9857        fi
9858      else
9859        ld_shlibs=no
9860      fi
9861      ;;
9862
9863    netbsd*)
9864      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9865        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9866        wlarc=
9867      else
9868        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9869        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9870      fi
9871      ;;
9872
9873    solaris*)
9874      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9875        ld_shlibs=no
9876        cat <<EOF 1>&2
9877
9878*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9879*** create shared libraries on Solaris systems.  Therefore, libtool
9880*** is disabling shared libraries support.  We urge you to upgrade GNU
9881*** binutils to release 2.9.1 or newer.  Another option is to modify
9882*** your PATH or compiler configuration so that the native linker is
9883*** used, and then restart.
9884
9885EOF
9886      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9887        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9888        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9889      else
9890        ld_shlibs=no
9891      fi
9892      ;;
9893
9894    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9895      case `$LD -v 2>&1` in
9896        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9897        ld_shlibs=no
9898        cat <<_LT_EOF 1>&2
9899
9900*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9901*** reliably create shared libraries on SCO systems.  Therefore, libtool
9902*** is disabling shared libraries support.  We urge you to upgrade GNU
9903*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9904*** your PATH or compiler configuration so that the native linker is
9905*** used, and then restart.
9906
9907_LT_EOF
9908        ;;
9909        *)
9910          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9911            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9912            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9913            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9914          else
9915            ld_shlibs=no
9916          fi
9917        ;;
9918      esac
9919      ;;
9920
9921    sunos4*)
9922      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9923      wlarc=
9924      hardcode_direct=yes
9925      hardcode_shlibpath_var=no
9926      ;;
9927
9928    *)
9929      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9930        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9932      else
9933        ld_shlibs=no
9934      fi
9935      ;;
9936    esac
9937
9938    if test "$ld_shlibs" = no; then
9939      runpath_var=
9940      hardcode_libdir_flag_spec=
9941      export_dynamic_flag_spec=
9942      whole_archive_flag_spec=
9943    fi
9944  else
9945    # PORTME fill in a description of your system's linker (not GNU ld)
9946    case $host_os in
9947    aix3*)
9948      allow_undefined_flag=unsupported
9949      always_export_symbols=yes
9950      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9951      # Note: this linker hardcodes the directories in LIBPATH if there
9952      # are no directories specified by -L.
9953      hardcode_minus_L=yes
9954      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9955        # Neither direct hardcoding nor static linking is supported with a
9956        # broken collect2.
9957        hardcode_direct=unsupported
9958      fi
9959      ;;
9960
9961    aix4* | aix5*)
9962      if test "$host_cpu" = ia64; then
9963        # On IA64, the linker does run time linking by default, so we don't
9964        # have to do anything special.
9965        aix_use_runtimelinking=no
9966        exp_sym_flag='-Bexport'
9967        no_entry_flag=""
9968      else
9969        # If we're using GNU nm, then we don't want the "-C" option.
9970        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9971        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9972          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9973        else
9974          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9975        fi
9976        aix_use_runtimelinking=no
9977
9978        # Test if we are trying to use run time linking or normal
9979        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9980        # need to do runtime linking.
9981        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9982          for ld_flag in $LDFLAGS; do
9983          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9984            aix_use_runtimelinking=yes
9985            break
9986          fi
9987          done
9988          ;;
9989        esac
9990
9991        exp_sym_flag='-bexport'
9992        no_entry_flag='-bnoentry'
9993      fi
9994
9995      # When large executables or shared objects are built, AIX ld can
9996      # have problems creating the table of contents.  If linking a library
9997      # or program results in "error TOC overflow" add -mminimal-toc to
9998      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9999      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10000
10001      archive_cmds=''
10002      hardcode_direct=yes
10003      hardcode_libdir_separator=':'
10004      link_all_deplibs=yes
10005
10006      if test "$GCC" = yes; then
10007        case $host_os in aix4.[012]|aix4.[012].*)
10008        # We only want to do this on AIX 4.2 and lower, the check
10009        # below for broken collect2 doesn't work under 4.3+
10010          collect2name=`${CC} -print-prog-name=collect2`
10011          if test -f "$collect2name" && \
10012           strings "$collect2name" | grep resolve_lib_name >/dev/null
10013          then
10014          # We have reworked collect2
10015          hardcode_direct=yes
10016          else
10017          # We have old collect2
10018          hardcode_direct=unsupported
10019          # It fails to find uninstalled libraries when the uninstalled
10020          # path is not listed in the libpath.  Setting hardcode_minus_L
10021          # to unsupported forces relinking
10022          hardcode_minus_L=yes
10023          hardcode_libdir_flag_spec='-L$libdir'
10024          hardcode_libdir_separator=
10025          fi
10026          ;;
10027        esac
10028        shared_flag='-shared'
10029        if test "$aix_use_runtimelinking" = yes; then
10030          shared_flag="$shared_flag "'${wl}-G'
10031        fi
10032      else
10033        # not using gcc
10034        if test "$host_cpu" = ia64; then
10035        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10036        # chokes on -Wl,-G. The following line is correct:
10037          shared_flag='-G'
10038        else
10039          if test "$aix_use_runtimelinking" = yes; then
10040            shared_flag='${wl}-G'
10041          else
10042            shared_flag='${wl}-bM:SRE'
10043          fi
10044        fi
10045      fi
10046
10047      # It seems that -bexpall does not export symbols beginning with
10048      # underscore (_), so it is better to generate a list of symbols to export.
10049      always_export_symbols=yes
10050      if test "$aix_use_runtimelinking" = yes; then
10051        # Warning - without using the other runtime loading flags (-brtl),
10052        # -berok will link without error, but may produce a broken library.
10053        allow_undefined_flag='-berok'
10054       # Determine the default libpath from the value encoded in an empty executable.
10055       cat >conftest.$ac_ext <<_ACEOF
10056/* confdefs.h.  */
10057_ACEOF
10058cat confdefs.h >>conftest.$ac_ext
10059cat >>conftest.$ac_ext <<_ACEOF
10060/* end confdefs.h.  */
10061
10062int
10063main ()
10064{
10065
10066  ;
10067  return 0;
10068}
10069_ACEOF
10070rm -f conftest.$ac_objext conftest$ac_exeext
10071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10072  (eval $ac_link) 2>conftest.er1
10073  ac_status=$?
10074  grep -v '^ *+' conftest.er1 >conftest.err
10075  rm -f conftest.er1
10076  cat conftest.err >&5
10077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078  (exit $ac_status); } &&
10079         { ac_try='test -z "$ac_c_werror_flag"
10080                         || test ! -s conftest.err'
10081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082  (eval $ac_try) 2>&5
10083  ac_status=$?
10084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085  (exit $ac_status); }; } &&
10086         { ac_try='test -s conftest$ac_exeext'
10087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088  (eval $ac_try) 2>&5
10089  ac_status=$?
10090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091  (exit $ac_status); }; }; then
10092
10093aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10094}'`
10095# Check for a 64-bit object if we didn't find anything.
10096if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10097}'`; fi
10098else
10099  echo "$as_me: failed program was:" >&5
10100sed 's/^/| /' conftest.$ac_ext >&5
10101
10102fi
10103rm -f conftest.err conftest.$ac_objext \
10104      conftest$ac_exeext conftest.$ac_ext
10105if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10106
10107       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10108        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10109       else
10110        if test "$host_cpu" = ia64; then
10111          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10112          allow_undefined_flag="-z nodefs"
10113          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10114        else
10115         # Determine the default libpath from the value encoded in an empty executable.
10116         cat >conftest.$ac_ext <<_ACEOF
10117/* confdefs.h.  */
10118_ACEOF
10119cat confdefs.h >>conftest.$ac_ext
10120cat >>conftest.$ac_ext <<_ACEOF
10121/* end confdefs.h.  */
10122
10123int
10124main ()
10125{
10126
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131rm -f conftest.$ac_objext conftest$ac_exeext
10132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133  (eval $ac_link) 2>conftest.er1
10134  ac_status=$?
10135  grep -v '^ *+' conftest.er1 >conftest.err
10136  rm -f conftest.er1
10137  cat conftest.err >&5
10138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139  (exit $ac_status); } &&
10140         { ac_try='test -z "$ac_c_werror_flag"
10141                         || test ! -s conftest.err'
10142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143  (eval $ac_try) 2>&5
10144  ac_status=$?
10145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146  (exit $ac_status); }; } &&
10147         { ac_try='test -s conftest$ac_exeext'
10148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149  (eval $ac_try) 2>&5
10150  ac_status=$?
10151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); }; }; then
10153
10154aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10155}'`
10156# Check for a 64-bit object if we didn't find anything.
10157if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10158}'`; fi
10159else
10160  echo "$as_me: failed program was:" >&5
10161sed 's/^/| /' conftest.$ac_ext >&5
10162
10163fi
10164rm -f conftest.err conftest.$ac_objext \
10165      conftest$ac_exeext conftest.$ac_ext
10166if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10167
10168         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10169          # Warning - without using the other run time loading flags,
10170          # -berok will link without error, but may produce a broken library.
10171          no_undefined_flag=' ${wl}-bernotok'
10172          allow_undefined_flag=' ${wl}-berok'
10173          # Exported symbols can be pulled into shared objects from archives
10174          whole_archive_flag_spec='$convenience'
10175          archive_cmds_need_lc=yes
10176          # This is similar to how AIX traditionally builds its shared libraries.
10177          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10178        fi
10179      fi
10180      ;;
10181
10182    amigaos*)
10183      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10184      hardcode_libdir_flag_spec='-L$libdir'
10185      hardcode_minus_L=yes
10186      # see comment about different semantics on the GNU ld section
10187      ld_shlibs=no
10188      ;;
10189
10190    bsdi[45]*)
10191      export_dynamic_flag_spec=-rdynamic
10192      ;;
10193
10194    cygwin* | mingw* | pw32*)
10195      # When not using gcc, we currently assume that we are using
10196      # Microsoft Visual C++.
10197      # hardcode_libdir_flag_spec is actually meaningless, as there is
10198      # no search path for DLLs.
10199      hardcode_libdir_flag_spec=' '
10200      allow_undefined_flag=unsupported
10201      # Tell ltmain to make .lib files, not .a files.
10202      libext=lib
10203      # Tell ltmain to make .dll files, not .so files.
10204      shrext_cmds=".dll"
10205      # FIXME: Setting linknames here is a bad hack.
10206      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10207      # The linker will automatically build a .lib file if we build a DLL.
10208      old_archive_From_new_cmds='true'
10209      # FIXME: Should let the user specify the lib program.
10210      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10211      fix_srcfile_path='`cygpath -w "$srcfile"`'
10212      enable_shared_with_static_runtimes=yes
10213      ;;
10214
10215    darwin* | rhapsody*)
10216      case $host_os in
10217        rhapsody* | darwin1.[012])
10218         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10219         ;;
10220       *) # Darwin 1.3 on
10221         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10222           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10223         else
10224           case ${MACOSX_DEPLOYMENT_TARGET} in
10225             10.[012])
10226               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10227               ;;
10228             10.*)
10229               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10230               ;;
10231           esac
10232         fi
10233         ;;
10234      esac
10235      archive_cmds_need_lc=no
10236      hardcode_direct=no
10237      hardcode_automatic=yes
10238      hardcode_shlibpath_var=unsupported
10239      whole_archive_flag_spec=''
10240      link_all_deplibs=yes
10241    if test "$GCC" = yes ; then
10242        output_verbose_link_cmd='echo'
10243        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10244      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10245      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10246      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10247      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10248    else
10249      case $cc_basename in
10250        xlc*)
10251         output_verbose_link_cmd='echo'
10252         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10253         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10254          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10255         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10256          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10257          ;;
10258       *)
10259         ld_shlibs=no
10260          ;;
10261      esac
10262    fi
10263      ;;
10264
10265    dgux*)
10266      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267      hardcode_libdir_flag_spec='-L$libdir'
10268      hardcode_shlibpath_var=no
10269      ;;
10270
10271    freebsd1*)
10272      ld_shlibs=no
10273      ;;
10274
10275    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10276    # support.  Future versions do this automatically, but an explicit c++rt0.o
10277    # does not break anything, and helps significantly (at the cost of a little
10278    # extra space).
10279    freebsd2.2*)
10280      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10281      hardcode_libdir_flag_spec='-R$libdir'
10282      hardcode_direct=yes
10283      hardcode_shlibpath_var=no
10284      ;;
10285
10286    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10287    freebsd2*)
10288      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10289      hardcode_direct=yes
10290      hardcode_minus_L=yes
10291      hardcode_shlibpath_var=no
10292      ;;
10293
10294    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10295    freebsd* | kfreebsd*-gnu | dragonfly*)
10296      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10297      hardcode_libdir_flag_spec='-R$libdir'
10298      hardcode_direct=yes
10299      hardcode_shlibpath_var=no
10300      ;;
10301
10302    hpux9*)
10303      if test "$GCC" = yes; then
10304        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10305      else
10306        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10307      fi
10308      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10309      hardcode_libdir_separator=:
10310      hardcode_direct=yes
10311
10312      # hardcode_minus_L: Not really in the search PATH,
10313      # but as the default location of the library.
10314      hardcode_minus_L=yes
10315      export_dynamic_flag_spec='${wl}-E'
10316      ;;
10317
10318    hpux10*)
10319      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10320        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10321      else
10322        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10323      fi
10324      if test "$with_gnu_ld" = no; then
10325        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10326        hardcode_libdir_separator=:
10327
10328        hardcode_direct=yes
10329        export_dynamic_flag_spec='${wl}-E'
10330
10331        # hardcode_minus_L: Not really in the search PATH,
10332        # but as the default location of the library.
10333        hardcode_minus_L=yes
10334      fi
10335      ;;
10336
10337    hpux11*)
10338      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10339        case $host_cpu in
10340        hppa*64*)
10341          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10342          ;;
10343        ia64*)
10344          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10345          ;;
10346        *)
10347          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10348          ;;
10349        esac
10350      else
10351        case $host_cpu in
10352        hppa*64*)
10353          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10354          ;;
10355        ia64*)
10356          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10357          ;;
10358        *)
10359          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10360          ;;
10361        esac
10362      fi
10363      if test "$with_gnu_ld" = no; then
10364        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10365        hardcode_libdir_separator=:
10366
10367        case $host_cpu in
10368        hppa*64*|ia64*)
10369          hardcode_libdir_flag_spec_ld='+b $libdir'
10370          hardcode_direct=no
10371          hardcode_shlibpath_var=no
10372          ;;
10373        *)
10374          hardcode_direct=yes
10375          export_dynamic_flag_spec='${wl}-E'
10376
10377          # hardcode_minus_L: Not really in the search PATH,
10378          # but as the default location of the library.
10379          hardcode_minus_L=yes
10380          ;;
10381        esac
10382      fi
10383      ;;
10384
10385    irix5* | irix6* | nonstopux*)
10386      if test "$GCC" = yes; then
10387        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10388      else
10389        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10390        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10391      fi
10392      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10393      hardcode_libdir_separator=:
10394      link_all_deplibs=yes
10395      ;;
10396
10397    netbsd*)
10398      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10399        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10400      else
10401        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10402      fi
10403      hardcode_libdir_flag_spec='-R$libdir'
10404      hardcode_direct=yes
10405      hardcode_shlibpath_var=no
10406      ;;
10407
10408    newsos6)
10409      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410      hardcode_direct=yes
10411      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10412      hardcode_libdir_separator=:
10413      hardcode_shlibpath_var=no
10414      ;;
10415
10416    openbsd*)
10417      hardcode_direct=yes
10418      hardcode_shlibpath_var=no
10419      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10420        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10421        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10422        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10423        export_dynamic_flag_spec='${wl}-E'
10424      else
10425       case $host_os in
10426         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10427           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10428           hardcode_libdir_flag_spec='-R$libdir'
10429           ;;
10430         *)
10431           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10432           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10433           ;;
10434       esac
10435      fi
10436      ;;
10437
10438    os2*)
10439      hardcode_libdir_flag_spec='-L$libdir'
10440      hardcode_minus_L=yes
10441      allow_undefined_flag=unsupported
10442      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10443      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10444      ;;
10445
10446    osf3*)
10447      if test "$GCC" = yes; then
10448        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10449        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10450      else
10451        allow_undefined_flag=' -expect_unresolved \*'
10452        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10453      fi
10454      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10455      hardcode_libdir_separator=:
10456      ;;
10457
10458    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10459      if test "$GCC" = yes; then
10460        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10461        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10462        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10463      else
10464        allow_undefined_flag=' -expect_unresolved \*'
10465        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10466        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10467        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10468
10469        # Both c and cxx compiler support -rpath directly
10470        hardcode_libdir_flag_spec='-rpath $libdir'
10471      fi
10472      hardcode_libdir_separator=:
10473      ;;
10474
10475    solaris*)
10476      no_undefined_flag=' -z text'
10477      if test "$GCC" = yes; then
10478        wlarc='${wl}'
10479        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10480        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10481          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10482      else
10483        wlarc=''
10484        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10485        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10486        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10487      fi
10488      hardcode_libdir_flag_spec='-R$libdir'
10489      hardcode_shlibpath_var=no
10490      case $host_os in
10491      solaris2.[0-5] | solaris2.[0-5].*) ;;
10492      *)
10493        # The compiler driver will combine linker options so we
10494        # cannot just pass the convience library names through
10495        # without $wl, iff we do not link with $LD.
10496        # Luckily, gcc supports the same syntax we need for Sun Studio.
10497        # Supported since Solaris 2.6 (maybe 2.5.1?)
10498        case $wlarc in
10499        '')
10500          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10501        *)
10502          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10503        esac ;;
10504      esac
10505      link_all_deplibs=yes
10506      ;;
10507
10508    sunos4*)
10509      if test "x$host_vendor" = xsequent; then
10510        # Use $CC to link under sequent, because it throws in some extra .o
10511        # files that make .init and .fini sections work.
10512        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10513      else
10514        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10515      fi
10516      hardcode_libdir_flag_spec='-L$libdir'
10517      hardcode_direct=yes
10518      hardcode_minus_L=yes
10519      hardcode_shlibpath_var=no
10520      ;;
10521
10522    sysv4)
10523      case $host_vendor in
10524        sni)
10525          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526          hardcode_direct=yes # is this really true???
10527        ;;
10528        siemens)
10529          ## LD is ld it makes a PLAMLIB
10530          ## CC just makes a GrossModule.
10531          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10532          reload_cmds='$CC -r -o $output$reload_objs'
10533          hardcode_direct=no
10534        ;;
10535        motorola)
10536          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10538        ;;
10539      esac
10540      runpath_var='LD_RUN_PATH'
10541      hardcode_shlibpath_var=no
10542      ;;
10543
10544    sysv4.3*)
10545      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546      hardcode_shlibpath_var=no
10547      export_dynamic_flag_spec='-Bexport'
10548      ;;
10549
10550    sysv4*MP*)
10551      if test -d /usr/nec; then
10552        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553        hardcode_shlibpath_var=no
10554        runpath_var=LD_RUN_PATH
10555        hardcode_runpath_var=yes
10556        ld_shlibs=yes
10557      fi
10558      ;;
10559
10560    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10561      no_undefined_flag='${wl}-z,text'
10562      archive_cmds_need_lc=no
10563      hardcode_shlibpath_var=no
10564      runpath_var='LD_RUN_PATH'
10565
10566      if test "$GCC" = yes; then
10567        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10568        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569      else
10570        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10571        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10572      fi
10573      ;;
10574
10575    sysv5* | sco3.2v5* | sco5v6*)
10576      # Note: We can NOT use -z defs as we might desire, because we do not
10577      # link with -lc, and that would cause any symbols used from libc to
10578      # always be unresolved, which means just about no library would
10579      # ever link correctly.  If we're not using GNU ld we use -z text
10580      # though, which does catch some bad symbols but isn't as heavy-handed
10581      # as -z defs.
10582      no_undefined_flag='${wl}-z,text'
10583      allow_undefined_flag='${wl}-z,nodefs'
10584      archive_cmds_need_lc=no
10585      hardcode_shlibpath_var=no
10586      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10587      hardcode_libdir_separator=':'
10588      link_all_deplibs=yes
10589      export_dynamic_flag_spec='${wl}-Bexport'
10590      runpath_var='LD_RUN_PATH'
10591
10592      if test "$GCC" = yes; then
10593        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10594        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10595      else
10596        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10597        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10598      fi
10599      ;;
10600
10601    uts4*)
10602      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603      hardcode_libdir_flag_spec='-L$libdir'
10604      hardcode_shlibpath_var=no
10605      ;;
10606
10607    *)
10608      ld_shlibs=no
10609      ;;
10610    esac
10611  fi
10612
10613echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10614echo "${ECHO_T}$ld_shlibs" >&6
10615test "$ld_shlibs" = no && can_build_shared=no
10616
10617#
10618# Do we need to explicitly link libc?
10619#
10620case "x$archive_cmds_need_lc" in
10621x|xyes)
10622  # Assume -lc should be added
10623  archive_cmds_need_lc=yes
10624
10625  if test "$enable_shared" = yes && test "$GCC" = yes; then
10626    case $archive_cmds in
10627    *'~'*)
10628      # FIXME: we may have to deal with multi-command sequences.
10629      ;;
10630    '$CC '*)
10631      # Test whether the compiler implicitly links with -lc since on some
10632      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10633      # to ld, don't add -lc before -lgcc.
10634      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10635echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10636      $rm conftest*
10637      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10638
10639      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10640  (eval $ac_compile) 2>&5
10641  ac_status=$?
10642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643  (exit $ac_status); } 2>conftest.err; then
10644        soname=conftest
10645        lib=conftest
10646        libobjs=conftest.$ac_objext
10647        deplibs=
10648        wl=$lt_prog_compiler_wl
10649        pic_flag=$lt_prog_compiler_pic
10650        compiler_flags=-v
10651        linker_flags=-v
10652        verstring=
10653        output_objdir=.
10654        libname=conftest
10655        lt_save_allow_undefined_flag=$allow_undefined_flag
10656        allow_undefined_flag=
10657        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10658  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10659  ac_status=$?
10660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661  (exit $ac_status); }
10662        then
10663          archive_cmds_need_lc=no
10664        else
10665          archive_cmds_need_lc=yes
10666        fi
10667        allow_undefined_flag=$lt_save_allow_undefined_flag
10668      else
10669        cat conftest.err 1>&5
10670      fi
10671      $rm conftest*
10672      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10673echo "${ECHO_T}$archive_cmds_need_lc" >&6
10674      ;;
10675    esac
10676  fi
10677  ;;
10678esac
10679
10680echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10681echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10682library_names_spec=
10683libname_spec='lib$name'
10684soname_spec=
10685shrext_cmds=".so"
10686postinstall_cmds=
10687postuninstall_cmds=
10688finish_cmds=
10689finish_eval=
10690shlibpath_var=
10691shlibpath_overrides_runpath=unknown
10692version_type=none
10693dynamic_linker="$host_os ld.so"
10694sys_lib_dlsearch_path_spec="/lib /usr/lib"
10695if test "$GCC" = yes; then
10696  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10697  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10698    # if the path contains ";" then we assume it to be the separator
10699    # otherwise default to the standard path separator (i.e. ":") - it is
10700    # assumed that no part of a normal pathname contains ";" but that should
10701    # okay in the real world where ";" in dirpaths is itself problematic.
10702    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10703  else
10704    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10705  fi
10706else
10707  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10708fi
10709need_lib_prefix=unknown
10710hardcode_into_libs=no
10711
10712# when you set need_version to no, make sure it does not cause -set_version
10713# flags to be left without arguments
10714need_version=unknown
10715
10716case $host_os in
10717aix3*)
10718  version_type=linux
10719  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10720  shlibpath_var=LIBPATH
10721
10722  # AIX 3 has no versioning support, so we append a major version to the name.
10723  soname_spec='${libname}${release}${shared_ext}$major'
10724  ;;
10725
10726aix4* | aix5*)
10727  version_type=linux
10728  need_lib_prefix=no
10729  need_version=no
10730  hardcode_into_libs=yes
10731  if test "$host_cpu" = ia64; then
10732    # AIX 5 supports IA64
10733    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10734    shlibpath_var=LD_LIBRARY_PATH
10735  else
10736    # With GCC up to 2.95.x, collect2 would create an import file
10737    # for dependence libraries.  The import file would start with
10738    # the line `#! .'.  This would cause the generated library to
10739    # depend on `.', always an invalid library.  This was fixed in
10740    # development snapshots of GCC prior to 3.0.
10741    case $host_os in
10742      aix4 | aix4.[01] | aix4.[01].*)
10743      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10744           echo ' yes '
10745           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10746        :
10747      else
10748        can_build_shared=no
10749      fi
10750      ;;
10751    esac
10752    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10753    # soname into executable. Probably we can add versioning support to
10754    # collect2, so additional links can be useful in future.
10755    if test "$aix_use_runtimelinking" = yes; then
10756      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10757      # instead of lib<name>.a to let people know that these are not
10758      # typical AIX shared libraries.
10759      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760    else
10761      # We preserve .a as extension for shared libraries through AIX4.2
10762      # and later when we are not doing run time linking.
10763      library_names_spec='${libname}${release}.a $libname.a'
10764      soname_spec='${libname}${release}${shared_ext}$major'
10765    fi
10766    shlibpath_var=LIBPATH
10767  fi
10768  ;;
10769
10770amigaos*)
10771  library_names_spec='$libname.ixlibrary $libname.a'
10772  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10773  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10774  ;;
10775
10776beos*)
10777  library_names_spec='${libname}${shared_ext}'
10778  dynamic_linker="$host_os ld.so"
10779  shlibpath_var=LIBRARY_PATH
10780  ;;
10781
10782bsdi[45]*)
10783  version_type=linux
10784  need_version=no
10785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786  soname_spec='${libname}${release}${shared_ext}$major'
10787  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10788  shlibpath_var=LD_LIBRARY_PATH
10789  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10790  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10791  # the default ld.so.conf also contains /usr/contrib/lib and
10792  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10793<