source: ThirdParty/HSL/trunk/configure @ 2172

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

rerun autotools

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