source: trunk/Couenne/configure @ 585

Last change on this file since 585 was 585, checked in by stefan, 9 years ago

rerun autotools

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