source: ThirdParty/HSL/trunk/configure @ 2275

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

rerun autotools again

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