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

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

restoring BuildTools/ThirdParty/Blas?/stable/1.3

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