source: ThirdParty/Blas/trunk/configure @ 2886

Last change on this file since 2886 was 2886, checked in by tkr, 6 years ago

Re-running autotools

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