source: ThirdParty/Blas/releases/1.3.7/configure @ 2985

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

revert r2394:HEAD - releases are not to be modified

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