source: ThirdParty/HSL/trunk/configure @ 2087

Last change on this file since 2087 was 2087, checked in by stefan, 10 years ago

if MA57 is there but no Metis, give an error

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