source: ThirdParty/HSL/stable/1.5/configure @ 3730

Last change on this file since 3730 was 3730, checked in by stefan, 3 years ago

temporarily committing release candidate

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