source: ThirdParty/Blas/stable/1.3/configure @ 2718

Last change on this file since 2718 was 2718, checked in by stefan, 6 years ago

temporarily committing release candidate

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