source: ThirdParty/HSL/stable/1.4/configure @ 2922

Last change on this file since 2922 was 2922, checked in by stefan, 7 years ago

temporarily committing release candidate

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