source: ThirdParty/HSL/trunk/configure @ 2151

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