source: ThirdParty/Blas/trunk/configure @ 2168

Last change on this file since 2168 was 2168, checked in by stefan, 11 years ago

rerun autotools

  • Property svn:executable set to *
File size: 740.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyBlas trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion BLAS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS BLAS_PCLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyBlas trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyBlas trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-blas compile this project (Blas) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-pkg-config     use pkg-config if available (default is yes)
1085  --enable-static[=PKGS]
1086                          build static libraries [default=no]
1087  --disable-dependency-tracking  speeds up one-time build
1088  --enable-dependency-tracking   do not reject slow dependency extractors
1089  --enable-maintainer-mode  enable make rules and dependencies not useful
1090                          (and sometimes confusing) to the casual installer
1091  --enable-shared[=PKGS]
1092                          build shared libraries [default=yes]
1093  --enable-fast-install[=PKGS]
1094                          optimize for fast installation [default=yes]
1095  --disable-libtool-lock  avoid locking (might break parallel builds)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-blas-verbosity specify the debug verbosity level for project Blas
1101  --with-blas-checklevel specify the sanity check level for project Blas
1102  --with-coin-instdir     prefix of installation directory for precompiled
1103                          COIN packages
1104  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1105  --with-pic              try to use only PIC/non-PIC objects [default=use
1106                          both]
1107  --with-tags[=TAGS]
1108                          include additional configurations [automatic]
1109
1110Some influential environment variables:
1111  CDEFS       Additional -D flags to be used when compiling C code.
1112  ADD_CFLAGS  Additional C compiler options
1113  DBG_CFLAGS  Debug C compiler options
1114  OPT_CFLAGS  Optimize C compiler options
1115  CC          C compiler command
1116  CFLAGS      C compiler flags
1117  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1118              nonstandard directory <lib dir>
1119  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1120              headers in a nonstandard directory <include dir>
1121  MPICC       C MPI Compiler
1122  ADD_FFLAGS  Additional Fortran compiler options
1123  DBG_FFLAGS  Debug Fortran compiler options
1124  OPT_FFLAGS  Optimize Fortran compiler options
1125  F77         Fortran 77 compiler command
1126  FFLAGS      Fortran 77 compiler flags
1127  MPIF77      Fortran MPI Compiler
1128  PKG_CONFIG  path to pkg-config utility
1129  CPP         C preprocessor
1130  CXX         C++ compiler command
1131  CXXFLAGS    C++ compiler flags
1132  CXXCPP      C++ preprocessor
1133
1134Use these variables to override the choices made by `configure' or to help
1135it to find libraries and programs with nonstandard names/locations.
1136
1137Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1138_ACEOF
1139fi
1140
1141if test "$ac_init_help" = "recursive"; then
1142  # If there are subdirs, report their specific --help.
1143  ac_popdir=`pwd`
1144  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1145    test -d $ac_dir || continue
1146    ac_builddir=.
1147
1148if test "$ac_dir" != .; then
1149  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1150  # A "../" for each directory in $ac_dir_suffix.
1151  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1152else
1153  ac_dir_suffix= ac_top_builddir=
1154fi
1155
1156case $srcdir in
1157  .)  # No --srcdir option.  We are building in place.
1158    ac_srcdir=.
1159    if test -z "$ac_top_builddir"; then
1160       ac_top_srcdir=.
1161    else
1162       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1163    fi ;;
1164  [\\/]* | ?:[\\/]* )  # Absolute path.
1165    ac_srcdir=$srcdir$ac_dir_suffix;
1166    ac_top_srcdir=$srcdir ;;
1167  *) # Relative path.
1168    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1169    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1170esac
1171
1172# Do not use `cd foo && pwd` to compute absolute paths, because
1173# the directories may not exist.
1174case `pwd` in
1175.) ac_abs_builddir="$ac_dir";;
1176*)
1177  case "$ac_dir" in
1178  .) ac_abs_builddir=`pwd`;;
1179  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1180  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1181  esac;;
1182esac
1183case $ac_abs_builddir in
1184.) ac_abs_top_builddir=${ac_top_builddir}.;;
1185*)
1186  case ${ac_top_builddir}. in
1187  .) ac_abs_top_builddir=$ac_abs_builddir;;
1188  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1189  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1190  esac;;
1191esac
1192case $ac_abs_builddir in
1193.) ac_abs_srcdir=$ac_srcdir;;
1194*)
1195  case $ac_srcdir in
1196  .) ac_abs_srcdir=$ac_abs_builddir;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1198  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_top_srcdir=$ac_top_srcdir;;
1203*)
1204  case $ac_top_srcdir in
1205  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1207  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1208  esac;;
1209esac
1210
1211    cd $ac_dir
1212    # Check for guested configure; otherwise get Cygnus style configure.
1213    if test -f $ac_srcdir/configure.gnu; then
1214      echo
1215      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1216    elif test -f $ac_srcdir/configure; then
1217      echo
1218      $SHELL $ac_srcdir/configure  --help=recursive
1219    elif test -f $ac_srcdir/configure.ac ||
1220           test -f $ac_srcdir/configure.in; then
1221      echo
1222      $ac_configure --help
1223    else
1224      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1225    fi
1226    cd $ac_popdir
1227  done
1228fi
1229
1230test -n "$ac_init_help" && exit 0
1231if $ac_init_version; then
1232  cat <<\_ACEOF
1233ThirdPartyBlas configure trunk
1234generated by GNU Autoconf 2.59
1235
1236Copyright (C) 2003 Free Software Foundation, Inc.
1237This configure script is free software; the Free Software Foundation
1238gives unlimited permission to copy, distribute and modify it.
1239
1240
1241Copyright 2006 International Business Machines and others.
1242All Rights Reserved.
1243This file is part of the open source package Coin which is distributed
1244under the Eclipse Public License.
1245_ACEOF
1246  exit 0
1247fi
1248exec 5>config.log
1249cat >&5 <<_ACEOF
1250This file contains any messages produced by compilers while
1251running configure, to aid debugging if configure makes a mistake.
1252
1253It was created by ThirdPartyBlas $as_me trunk, which was
1254generated by GNU Autoconf 2.59.  Invocation command line was
1255
1256  $ $0 $@
1257
1258_ACEOF
1259{
1260cat <<_ASUNAME
1261## --------- ##
1262## Platform. ##
1263## --------- ##
1264
1265hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1266uname -m = `(uname -m) 2>/dev/null || echo unknown`
1267uname -r = `(uname -r) 2>/dev/null || echo unknown`
1268uname -s = `(uname -s) 2>/dev/null || echo unknown`
1269uname -v = `(uname -v) 2>/dev/null || echo unknown`
1270
1271/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1272/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1273
1274/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1275/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1276/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1277hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1278/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1279/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1280/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1281
1282_ASUNAME
1283
1284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1285for as_dir in $PATH
1286do
1287  IFS=$as_save_IFS
1288  test -z "$as_dir" && as_dir=.
1289  echo "PATH: $as_dir"
1290done
1291
1292} >&5
1293
1294cat >&5 <<_ACEOF
1295
1296
1297## ----------- ##
1298## Core tests. ##
1299## ----------- ##
1300
1301_ACEOF
1302
1303
1304# Keep a trace of the command line.
1305# Strip out --no-create and --no-recursion so they do not pile up.
1306# Strip out --silent because we don't want to record it for future runs.
1307# Also quote any args containing shell meta-characters.
1308# Make two passes to allow for proper duplicate-argument suppression.
1309ac_configure_args=
1310ac_configure_args0=
1311ac_configure_args1=
1312ac_sep=
1313ac_must_keep_next=false
1314for ac_pass in 1 2
1315do
1316  for ac_arg
1317  do
1318    case $ac_arg in
1319    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1320    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321    | -silent | --silent | --silen | --sile | --sil)
1322      continue ;;
1323    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1325    esac
1326    case $ac_pass in
1327    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1328    2)
1329      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1330      if test $ac_must_keep_next = true; then
1331        ac_must_keep_next=false # Got value, back to normal.
1332      else
1333        case $ac_arg in
1334          *=* | --config-cache | -C | -disable-* | --disable-* \
1335          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1336          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1337          | -with-* | --with-* | -without-* | --without-* | --x)
1338            case "$ac_configure_args0 " in
1339              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1340            esac
1341            ;;
1342          -* ) ac_must_keep_next=true ;;
1343        esac
1344      fi
1345      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1346      # Get rid of the leading space.
1347      ac_sep=" "
1348      ;;
1349    esac
1350  done
1351done
1352$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1353$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1354
1355# When interrupted or exit'd, cleanup temporary files, and complete
1356# config.log.  We remove comments because anyway the quotes in there
1357# would cause problems or look ugly.
1358# WARNING: Be sure not to use single quotes in there, as some shells,
1359# such as our DU 5.0 friend, will then `close' the trap.
1360trap 'exit_status=$?
1361  # Save into config.log some information that might help in debugging.
1362  {
1363    echo
1364
1365    cat <<\_ASBOX
1366## ---------------- ##
1367## Cache variables. ##
1368## ---------------- ##
1369_ASBOX
1370    echo
1371    # The following way of writing the cache mishandles newlines in values,
1372{
1373  (set) 2>&1 |
1374    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1375    *ac_space=\ *)
1376      sed -n \
1377        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1378          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1379      ;;
1380    *)
1381      sed -n \
1382        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1383      ;;
1384    esac;
1385}
1386    echo
1387
1388    cat <<\_ASBOX
1389## ----------------- ##
1390## Output variables. ##
1391## ----------------- ##
1392_ASBOX
1393    echo
1394    for ac_var in $ac_subst_vars
1395    do
1396      eval ac_val=$`echo $ac_var`
1397      echo "$ac_var='"'"'$ac_val'"'"'"
1398    done | sort
1399    echo
1400
1401    if test -n "$ac_subst_files"; then
1402      cat <<\_ASBOX
1403## ------------- ##
1404## Output files. ##
1405## ------------- ##
1406_ASBOX
1407      echo
1408      for ac_var in $ac_subst_files
1409      do
1410        eval ac_val=$`echo $ac_var`
1411        echo "$ac_var='"'"'$ac_val'"'"'"
1412      done | sort
1413      echo
1414    fi
1415
1416    if test -s confdefs.h; then
1417      cat <<\_ASBOX
1418## ----------- ##
1419## confdefs.h. ##
1420## ----------- ##
1421_ASBOX
1422      echo
1423      sed "/^$/d" confdefs.h | sort
1424      echo
1425    fi
1426    test "$ac_signal" != 0 &&
1427      echo "$as_me: caught signal $ac_signal"
1428    echo "$as_me: exit $exit_status"
1429  } >&5
1430  rm -f core *.core &&
1431  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1432    exit $exit_status
1433     ' 0
1434for ac_signal in 1 2 13 15; do
1435  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1436done
1437ac_signal=0
1438
1439# confdefs.h avoids OS command line length limits that DEFS can exceed.
1440rm -rf conftest* confdefs.h
1441# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1442echo >confdefs.h
1443
1444# Predefined preprocessor variables.
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_NAME "$PACKAGE_NAME"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_VERSION "$PACKAGE_VERSION"
1458_ACEOF
1459
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_STRING "$PACKAGE_STRING"
1463_ACEOF
1464
1465
1466cat >>confdefs.h <<_ACEOF
1467#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1468_ACEOF
1469
1470
1471# Let the site file select an alternate cache file if it wants to.
1472# Prefer explicitly selected file to automatically selected ones.
1473if test -z "$CONFIG_SITE"; then
1474  if test "x$prefix" != xNONE; then
1475    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1476  else
1477    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1478  fi
1479fi
1480for ac_site_file in $CONFIG_SITE; do
1481  if test -r "$ac_site_file"; then
1482    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1483echo "$as_me: loading site script $ac_site_file" >&6;}
1484    sed 's/^/| /' "$ac_site_file" >&5
1485    . "$ac_site_file"
1486  fi
1487done
1488
1489if test -r "$cache_file"; then
1490  # Some versions of bash will fail to source /dev/null (special
1491  # files actually), so we avoid doing that.
1492  if test -f "$cache_file"; then
1493    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1494echo "$as_me: loading cache $cache_file" >&6;}
1495    case $cache_file in
1496      [\\/]* | ?:[\\/]* ) . $cache_file;;
1497      *)                      . ./$cache_file;;
1498    esac
1499  fi
1500else
1501  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1502echo "$as_me: creating cache $cache_file" >&6;}
1503  >$cache_file
1504fi
1505
1506# Check that the precious variables saved in the cache have kept the same
1507# value.
1508ac_cache_corrupted=false
1509for ac_var in `(set) 2>&1 |
1510               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1511  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1512  eval ac_new_set=\$ac_env_${ac_var}_set
1513  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1514  eval ac_new_val="\$ac_env_${ac_var}_value"
1515  case $ac_old_set,$ac_new_set in
1516    set,)
1517      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1518echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1519      ac_cache_corrupted=: ;;
1520    ,set)
1521      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1522echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1523      ac_cache_corrupted=: ;;
1524    ,);;
1525    *)
1526      if test "x$ac_old_val" != "x$ac_new_val"; then
1527        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1528echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1529        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1530echo "$as_me:   former value:  $ac_old_val" >&2;}
1531        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1532echo "$as_me:   current value: $ac_new_val" >&2;}
1533        ac_cache_corrupted=:
1534      fi;;
1535  esac
1536  # Pass precious variables to config.status.
1537  if test "$ac_new_set" = set; then
1538    case $ac_new_val in
1539    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1540      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1541    *) ac_arg=$ac_var=$ac_new_val ;;
1542    esac
1543    case " $ac_configure_args " in
1544      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1545      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1546    esac
1547  fi
1548done
1549if $ac_cache_corrupted; then
1550  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1551echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1552  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1553echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1554   { (exit 1); exit 1; }; }
1555fi
1556
1557ac_ext=c
1558ac_cpp='$CPP $CPPFLAGS'
1559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1561ac_compiler_gnu=$ac_cv_c_compiler_gnu
1562
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# List one file in the package so that the configure script can test
1593# whether the package is actually there
1594
1595
1596# Where should everything be installed by default?  Here, we want it
1597# to be installed directly in 'bin', 'lib', 'include' subdirectories
1598# of the directory where configure is run.  The default would be
1599# /usr/local.
1600
1601
1602
1603# As backup, we make sure we don't loose an FLIBS if it has been set
1604# by the user
1605save_FLIBS="$FLIBS"
1606
1607# A useful makefile conditional that is always false
1608
1609
1610if false; then
1611  ALWAYS_FALSE_TRUE=
1612  ALWAYS_FALSE_FALSE='#'
1613else
1614  ALWAYS_FALSE_TRUE='#'
1615  ALWAYS_FALSE_FALSE=
1616fi
1617
1618
1619# We set the following variable so that we know later in AC_COIN_FINALIZE
1620# that we are in a project main directory
1621coin_projectdir=yes
1622
1623# Set the project's version numbers
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define BLAS_VERSION "$PACKAGE_VERSION"
1628_ACEOF
1629
1630
1631  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1632  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1633  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1634  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1635  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1636  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1637
1638cat >>confdefs.h <<_ACEOF
1639#define BLAS_VERSION_MAJOR $coin_majorver
1640_ACEOF
1641
1642
1643cat >>confdefs.h <<_ACEOF
1644#define BLAS_VERSION_MINOR $coin_minorver
1645_ACEOF
1646
1647
1648cat >>confdefs.h <<_ACEOF
1649#define BLAS_VERSION_RELEASE $coin_releasever
1650_ACEOF
1651
1652
1653  # We use the following variable to have a string with the upper case
1654  # version of the project name
1655  COIN_PRJCT=BLAS
1656
1657  # Set the project's SVN revision number. The complicated sed expression
1658  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1659  # as a single number.
1660  # Extract the first word of "svnversion", so it can be a program name with args.
1661set dummy svnversion; ac_word=$2
1662echo "$as_me:$LINENO: checking for $ac_word" >&5
1663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664if test "${ac_cv_prog_have_svnversion+set}" = set; then
1665  echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667  if test -n "$have_svnversion"; then
1668  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1669else
1670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671for as_dir in $PATH
1672do
1673  IFS=$as_save_IFS
1674  test -z "$as_dir" && as_dir=.
1675  for ac_exec_ext in '' $ac_executable_extensions; do
1676  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677    ac_cv_prog_have_svnversion="yes"
1678    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679    break 2
1680  fi
1681done
1682done
1683
1684  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1685fi
1686fi
1687have_svnversion=$ac_cv_prog_have_svnversion
1688if test -n "$have_svnversion"; then
1689  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1690echo "${ECHO_T}$have_svnversion" >&6
1691else
1692  echo "$as_me:$LINENO: result: no" >&5
1693echo "${ECHO_T}no" >&6
1694fi
1695
1696  if test "x$have_svnversion" = xyes; then
1697
1698    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1699    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1700      BLAS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1701
1702cat >>confdefs.h <<_ACEOF
1703#define BLAS_SVN_REV $BLAS_SVN_REV
1704_ACEOF
1705
1706    fi
1707  fi
1708
1709
1710
1711# Capture libtool library version, if given.
1712
1713
1714
1715
1716#############################################################################
1717#                         Standard build tool stuff                         #
1718#############################################################################
1719
1720# Get the system type
1721ac_aux_dir=
1722for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1723  if test -f $ac_dir/install-sh; then
1724    ac_aux_dir=$ac_dir
1725    ac_install_sh="$ac_aux_dir/install-sh -c"
1726    break
1727  elif test -f $ac_dir/install.sh; then
1728    ac_aux_dir=$ac_dir
1729    ac_install_sh="$ac_aux_dir/install.sh -c"
1730    break
1731  elif test -f $ac_dir/shtool; then
1732    ac_aux_dir=$ac_dir
1733    ac_install_sh="$ac_aux_dir/shtool install -c"
1734    break
1735  fi
1736done
1737if test -z "$ac_aux_dir"; then
1738  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1739echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1740   { (exit 1); exit 1; }; }
1741fi
1742ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1743ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1744ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1745
1746# Make sure we can run config.sub.
1747$ac_config_sub sun4 >/dev/null 2>&1 ||
1748  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1749echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1750   { (exit 1); exit 1; }; }
1751
1752echo "$as_me:$LINENO: checking build system type" >&5
1753echo $ECHO_N "checking build system type... $ECHO_C" >&6
1754if test "${ac_cv_build+set}" = set; then
1755  echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757  ac_cv_build_alias=$build_alias
1758test -z "$ac_cv_build_alias" &&
1759  ac_cv_build_alias=`$ac_config_guess`
1760test -z "$ac_cv_build_alias" &&
1761  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1762echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1763   { (exit 1); exit 1; }; }
1764ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1765  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1766echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1767   { (exit 1); exit 1; }; }
1768
1769fi
1770echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1771echo "${ECHO_T}$ac_cv_build" >&6
1772build=$ac_cv_build
1773build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776
1777
1778
1779#turn off warnings and pedantic mode since they could make trouble on some platforms,
1780#and we couldn't fix them anyway
1781coin_skip_warn_fflags=yes
1782
1783# Check if user wants to produce debugging code
1784
1785echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1786echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1787
1788# Check whether --enable-debug or --disable-debug was given.
1789if test "${enable_debug+set}" = set; then
1790  enableval="$enable_debug"
1791  case "${enableval}" in
1792   yes) coin_debug_compile=true
1793        if test "${enable_shared+set}" = set; then :; else
1794          enable_shared=no
1795        fi
1796        ;;
1797   no)  coin_debug_compile=false
1798        ;;
1799   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1800echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1801   { (exit 1); exit 1; }; }
1802        ;;
1803esac
1804else
1805  coin_debug_compile=false
1806fi;
1807
1808# Check whether --enable-debug-blas or --disable-debug-blas was given.
1809if test "${enable_debug_blas+set}" = set; then
1810  enableval="$enable_debug_blas"
1811  case "${enableval}" in
1812    yes) coin_debug_compile=true
1813         enable_shared=no
1814         ;;
1815    no)  coin_debug_compile=false
1816         ;;
1817    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1818echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1819   { (exit 1); exit 1; }; }
1820         ;;
1821 esac
1822else
1823  :
1824fi;
1825
1826 # m4_ifvaln([Blas],
1827
1828if test $coin_debug_compile = true; then
1829  echo "$as_me:$LINENO: result: yes" >&5
1830echo "${ECHO_T}yes" >&6
1831else
1832  echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836
1837# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1838if test "${with_blas_verbosity+set}" = set; then
1839  withval="$with_blas_verbosity"
1840  if test "$withval" = yes; then
1841                withval=1
1842              fi
1843              coin_blas_verbosity=$withval
1844else
1845  coin_blas_verbosity=0
1846fi;
1847
1848cat >>confdefs.h <<_ACEOF
1849#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1850_ACEOF
1851
1852
1853
1854# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1855if test "${with_blas_checklevel+set}" = set; then
1856  withval="$with_blas_checklevel"
1857  if test "$withval" = yes; then
1858                withval=1
1859              fi
1860              coin_blas_checklevel=$withval
1861else
1862  coin_blas_checklevel=0
1863fi;
1864
1865cat >>confdefs.h <<_ACEOF
1866#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1867_ACEOF
1868
1869
1870 # m4_ifvaln([Blas],
1871
1872
1873
1874# Get the name of the Fortran compiler and appropriate compiler options
1875case $build in
1876  *-mingw*)
1877    if test "${LD+set}" = set; then :; else
1878      LD=link
1879    fi
1880    ;;
1881 esac
1882 case $enable_doscompile in
1883   msvc)
1884     if test "x${LD+set}" = xset; then :; else
1885       LD=link
1886     fi
1887     ;;
1888 esac
1889
1890
1891 # Check whether --enable-doscompile or --disable-doscompile was given.
1892if test "${enable_doscompile+set}" = set; then
1893  enableval="$enable_doscompile"
1894  if test "$enable_doscompile" != no; then
1895     case $build in
1896       *-cygwin* | *-mingw*) ;;
1897       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1898echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1899   { (exit 1); exit 1; }; } ;;
1900     esac
1901   fi
1902else
1903  enable_doscompile=no
1904fi;
1905 case "$enable_doscompile" in
1906   mingw)
1907     case $build in
1908       *-mingw*) enable_doscompile=no ;;
1909     esac
1910     ;;
1911   msvc|no) ;;
1912   yes) enable_doscompile=mingw ;;
1913   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1914                    Try configure --help=recursive." >&5
1915echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1916                    Try configure --help=recursive." >&2;}
1917   { (exit 1); exit 1; }; }
1918      ;;
1919  esac
1920  if test "$enable_doscompile" != no ; then
1921    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1922echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1923  fi
1924
1925
1926
1927
1928ac_ext=c
1929ac_cpp='$CPP $CPPFLAGS'
1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935# For consistency, we set the C compiler to the same value of the C++
1936# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1937if test x"$CXX" != x; then
1938  case "$CXX" in
1939    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1940      if test x"$CC" = x; then
1941        CC="$CXX"
1942        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1943echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1944      fi
1945      ;;
1946  esac
1947fi
1948
1949
1950
1951
1952
1953
1954coin_has_cc=yes
1955
1956save_cflags="$CFLAGS"
1957
1958# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1959# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1960# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1961# compiler. In this case, put cc after gcc.
1962
1963case $build in
1964  *-cygwin* | *-mingw*)
1965             if test "$enable_doscompile" = msvc ; then
1966               comps="icl cl"
1967             else
1968               comps="gcc cl"
1969             fi ;;
1970  *-*-solaris*)
1971             # Extract the first word of "cc", so it can be a program name with args.
1972set dummy cc; ac_word=$2
1973echo "$as_me:$LINENO: checking for $ac_word" >&5
1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1976  echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978  if test -n "$sol_cc_compiler"; then
1979  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1980else
1981  ac_prog_rejected=no
1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983for as_dir in $PATH
1984do
1985  IFS=$as_save_IFS
1986  test -z "$as_dir" && as_dir=.
1987  for ac_exec_ext in '' $ac_executable_extensions; do
1988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1990       ac_prog_rejected=yes
1991       continue
1992     fi
1993    ac_cv_prog_sol_cc_compiler="cc"
1994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995    break 2
1996  fi
1997done
1998done
1999
2000if test $ac_prog_rejected = yes; then
2001  # We found a bogon in the path, so make sure we never use it.
2002  set dummy $ac_cv_prog_sol_cc_compiler
2003  shift
2004  if test $# != 0; then
2005    # We chose a different compiler from the bogus one.
2006    # However, it has the same basename, so the bogon will be chosen
2007    # first if we set sol_cc_compiler to just the basename; use the full file name.
2008    shift
2009    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2010  fi
2011fi
2012fi
2013fi
2014sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2015if test -n "$sol_cc_compiler"; then
2016  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2017echo "${ECHO_T}$sol_cc_compiler" >&6
2018else
2019  echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023             if test "$sol_cc_compiler" = "cc" ; then
2024               comps="cc xlc gcc pgcc icc"
2025             else
2026               comps="xlc gcc pgcc icc cc"
2027             fi
2028             ;;
2029  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2030  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2031  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2032esac
2033
2034# We delete the cached value, since the test might not have been
2035# performed with our choice of compilers earlier
2036$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2037# AC_MSG_NOTICE([C compiler candidates: $comps])
2038ac_ext=c
2039ac_cpp='$CPP $CPPFLAGS'
2040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043if test -n "$ac_tool_prefix"; then
2044  for ac_prog in $comps
2045  do
2046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074  echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077  echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081    test -n "$CC" && break
2082  done
2083fi
2084if test -z "$CC"; then
2085  ac_ct_CC=$CC
2086  for ac_prog in $comps
2087do
2088  # Extract the first word of "$ac_prog", so it can be a program name with args.
2089set dummy $ac_prog; ac_word=$2
2090echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093  echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095  if test -n "$ac_ct_CC"; then
2096  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101  IFS=$as_save_IFS
2102  test -z "$as_dir" && as_dir=.
2103  for ac_exec_ext in '' $ac_executable_extensions; do
2104  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105    ac_cv_prog_ac_ct_CC="$ac_prog"
2106    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107    break 2
2108  fi
2109done
2110done
2111
2112fi
2113fi
2114ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115if test -n "$ac_ct_CC"; then
2116  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117echo "${ECHO_T}$ac_ct_CC" >&6
2118else
2119  echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6
2121fi
2122
2123  test -n "$ac_ct_CC" && break
2124done
2125
2126  CC=$ac_ct_CC
2127fi
2128
2129
2130test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2131See \`config.log' for more details." >&5
2132echo "$as_me: error: no acceptable C compiler found in \$PATH
2133See \`config.log' for more details." >&2;}
2134   { (exit 1); exit 1; }; }
2135
2136# Provide some information about the compiler.
2137echo "$as_me:$LINENO:" \
2138     "checking for C compiler version" >&5
2139ac_compiler=`set X $ac_compile; echo $2`
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2141  (eval $ac_compiler --version </dev/null >&5) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }
2145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2146  (eval $ac_compiler -v </dev/null >&5) 2>&5
2147  ac_status=$?
2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149  (exit $ac_status); }
2150{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2151  (eval $ac_compiler -V </dev/null >&5) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }
2155
2156cat >conftest.$ac_ext <<_ACEOF
2157/* confdefs.h.  */
2158_ACEOF
2159cat confdefs.h >>conftest.$ac_ext
2160cat >>conftest.$ac_ext <<_ACEOF
2161/* end confdefs.h.  */
2162
2163int
2164main ()
2165{
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171ac_clean_files_save=$ac_clean_files
2172ac_clean_files="$ac_clean_files a.out a.exe b.out"
2173# Try to create an executable without -o first, disregard a.out.
2174# It will help us diagnose broken compilers, and finding out an intuition
2175# of exeext.
2176echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2177echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2178ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2180  (eval $ac_link_default) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }; then
2184  # Find the output, starting from the most likely.  This scheme is
2185# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2186# resort.
2187
2188# Be careful to initialize this variable, since it used to be cached.
2189# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2190ac_cv_exeext=
2191# b.out is created by i960 compilers.
2192for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2193do
2194  test -f "$ac_file" || continue
2195  case $ac_file in
2196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2197        ;;
2198    conftest.$ac_ext )
2199        # This is the source file.
2200        ;;
2201    [ab].out )
2202        # We found the default executable, but exeext='' is most
2203        # certainly right.
2204        break;;
2205    *.* )
2206        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207        # FIXME: I believe we export ac_cv_exeext for Libtool,
2208        # but it would be cool to find out if it's true.  Does anybody
2209        # maintain Libtool? --akim.
2210        export ac_cv_exeext
2211        break;;
2212    * )
2213        break;;
2214  esac
2215done
2216else
2217  echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2221See \`config.log' for more details." >&5
2222echo "$as_me: error: C compiler cannot create executables
2223See \`config.log' for more details." >&2;}
2224   { (exit 77); exit 77; }; }
2225fi
2226
2227ac_exeext=$ac_cv_exeext
2228echo "$as_me:$LINENO: result: $ac_file" >&5
2229echo "${ECHO_T}$ac_file" >&6
2230
2231# Check the compiler produces executables we can run.  If not, either
2232# the compiler is broken, or we cross compile.
2233echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2234echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2235# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2236# If not cross compiling, check that we can run a simple program.
2237if test "$cross_compiling" != yes; then
2238  if { ac_try='./$ac_file'
2239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240  (eval $ac_try) 2>&5
2241  ac_status=$?
2242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243  (exit $ac_status); }; }; then
2244    cross_compiling=no
2245  else
2246    if test "$cross_compiling" = maybe; then
2247        cross_compiling=yes
2248    else
2249        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2250If you meant to cross compile, use \`--host'.
2251See \`config.log' for more details." >&5
2252echo "$as_me: error: cannot run C compiled programs.
2253If you meant to cross compile, use \`--host'.
2254See \`config.log' for more details." >&2;}
2255   { (exit 1); exit 1; }; }
2256    fi
2257  fi
2258fi
2259echo "$as_me:$LINENO: result: yes" >&5
2260echo "${ECHO_T}yes" >&6
2261
2262rm -f a.out a.exe conftest$ac_cv_exeext b.out
2263ac_clean_files=$ac_clean_files_save
2264# Check the compiler produces executables we can run.  If not, either
2265# the compiler is broken, or we cross compile.
2266echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2267echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2268echo "$as_me:$LINENO: result: $cross_compiling" >&5
2269echo "${ECHO_T}$cross_compiling" >&6
2270
2271echo "$as_me:$LINENO: checking for suffix of executables" >&5
2272echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2274  (eval $ac_link) 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; then
2278  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2280# work properly (i.e., refer to `conftest.exe'), while it won't with
2281# `rm'.
2282for ac_file in conftest.exe conftest conftest.*; do
2283  test -f "$ac_file" || continue
2284  case $ac_file in
2285    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2286    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287          export ac_cv_exeext
2288          break;;
2289    * ) break;;
2290  esac
2291done
2292else
2293  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&2;}
2297   { (exit 1); exit 1; }; }
2298fi
2299
2300rm -f conftest$ac_cv_exeext
2301echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302echo "${ECHO_T}$ac_cv_exeext" >&6
2303
2304rm -f conftest.$ac_ext
2305EXEEXT=$ac_cv_exeext
2306ac_exeext=$EXEEXT
2307echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2309if test "${ac_cv_objext+set}" = set; then
2310  echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312  cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h.  */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h.  */
2318
2319int
2320main ()
2321{
2322
2323  ;
2324  return 0;
2325}
2326_ACEOF
2327rm -f conftest.o conftest.obj
2328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329  (eval $ac_compile) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; then
2333  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2334  case $ac_file in
2335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2336    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337       break;;
2338  esac
2339done
2340else
2341  echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&5
2346echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&2;}
2348   { (exit 1); exit 1; }; }
2349fi
2350
2351rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352fi
2353echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354echo "${ECHO_T}$ac_cv_objext" >&6
2355OBJEXT=$ac_cv_objext
2356ac_objext=$OBJEXT
2357echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2359if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360  echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362  cat >conftest.$ac_ext <<_ACEOF
2363/* confdefs.h.  */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h.  */
2368
2369int
2370main ()
2371{
2372#ifndef __GNUC__
2373       choke me
2374#endif
2375
2376  ;
2377  return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
2381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382  (eval $ac_compile) 2>conftest.er1
2383  ac_status=$?
2384  grep -v '^ *+' conftest.er1 >conftest.err
2385  rm -f conftest.er1
2386  cat conftest.err >&5
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); } &&
2389         { ac_try='test -z "$ac_c_werror_flag"
2390                         || test ! -s conftest.err'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; } &&
2396         { ac_try='test -s conftest.$ac_objext'
2397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398  (eval $ac_try) 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; }; then
2402  ac_compiler_gnu=yes
2403else
2404  echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407ac_compiler_gnu=no
2408fi
2409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410ac_cv_c_compiler_gnu=$ac_compiler_gnu
2411
2412fi
2413echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415GCC=`test $ac_compiler_gnu = yes && echo yes`
2416ac_test_CFLAGS=${CFLAGS+set}
2417ac_save_CFLAGS=$CFLAGS
2418CFLAGS="-g"
2419echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421if test "${ac_cv_prog_cc_g+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430
2431int
2432main ()
2433{
2434
2435  ;
2436  return 0;
2437}
2438_ACEOF
2439rm -f conftest.$ac_objext
2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441  (eval $ac_compile) 2>conftest.er1
2442  ac_status=$?
2443  grep -v '^ *+' conftest.er1 >conftest.err
2444  rm -f conftest.er1
2445  cat conftest.err >&5
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); } &&
2448         { ac_try='test -z "$ac_c_werror_flag"
2449                         || test ! -s conftest.err'
2450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451  (eval $ac_try) 2>&5
2452  ac_status=$?
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); }; } &&
2455         { ac_try='test -s conftest.$ac_objext'
2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457  (eval $ac_try) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; }; then
2461  ac_cv_prog_cc_g=yes
2462else
2463  echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466ac_cv_prog_cc_g=no
2467fi
2468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469fi
2470echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472if test "$ac_test_CFLAGS" = set; then
2473  CFLAGS=$ac_save_CFLAGS
2474elif test $ac_cv_prog_cc_g = yes; then
2475  if test "$GCC" = yes; then
2476    CFLAGS="-g -O2"
2477  else
2478    CFLAGS="-g"
2479  fi
2480else
2481  if test "$GCC" = yes; then
2482    CFLAGS="-O2"
2483  else
2484    CFLAGS=
2485  fi
2486fi
2487echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490  echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492  ac_cv_prog_cc_stdc=no
2493ac_save_CC=$CC
2494cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h.  */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h.  */
2500#include <stdarg.h>
2501#include <stdio.h>
2502#include <sys/types.h>
2503#include <sys/stat.h>
2504/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2505struct buf { int x; };
2506FILE * (*rcsopen) (struct buf *, struct stat *, int);
2507static char *e (p, i)
2508     char **p;
2509     int i;
2510{
2511  return p[i];
2512}
2513static char *f (char * (*g) (char **, int), char **p, ...)
2514{
2515  char *s;
2516  va_list v;
2517  va_start (v,p);
2518  s = g (p, va_arg (v,int));
2519  va_end (v);
2520  return s;
2521}
2522
2523/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2524   function prototypes and stuff, but not '\xHH' hex character constants.
2525   These don't provoke an error unfortunately, instead are silently treated
2526   as 'x'.  The following induces an error, until -std1 is added to get
2527   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2528   array size at least.  It's necessary to write '\x00'==0 to get something
2529   that's true only with -std1.  */
2530int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531
2532int test (int i, double x);
2533struct s1 {int (*f) (int a);};
2534struct s2 {int (*f) (double a);};
2535int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536int argc;
2537char **argv;
2538int
2539main ()
2540{
2541return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2542  ;
2543  return 0;
2544}
2545_ACEOF
2546# Don't try gcc -ansi; that turns off useful extensions and
2547# breaks some systems' header files.
2548# AIX                   -qlanglvl=ansi
2549# Ultrix and OSF/1      -std1
2550# HP-UX 10.20 and later -Ae
2551# HP-UX older versions  -Aa -D_HPUX_SOURCE
2552# SVR4                  -Xc -D__EXTENSIONS__
2553for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554do
2555  CC="$ac_save_CC $ac_arg"
2556  rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558  (eval $ac_compile) 2>conftest.er1
2559  ac_status=$?
2560  grep -v '^ *+' conftest.er1 >conftest.err
2561  rm -f conftest.er1
2562  cat conftest.err >&5
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); } &&
2565         { ac_try='test -z "$ac_c_werror_flag"
2566                         || test ! -s conftest.err'
2567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568  (eval $ac_try) 2>&5
2569  ac_status=$?
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); }; } &&
2572         { ac_try='test -s conftest.$ac_objext'
2573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574  (eval $ac_try) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; }; then
2578  ac_cv_prog_cc_stdc=$ac_arg
2579break
2580else
2581  echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584fi
2585rm -f conftest.err conftest.$ac_objext
2586done
2587rm -f conftest.$ac_ext conftest.$ac_objext
2588CC=$ac_save_CC
2589
2590fi
2591
2592case "x$ac_cv_prog_cc_stdc" in
2593  x|xno)
2594    echo "$as_me:$LINENO: result: none needed" >&5
2595echo "${ECHO_T}none needed" >&6 ;;
2596  *)
2597    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2598echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2599    CC="$CC $ac_cv_prog_cc_stdc" ;;
2600esac
2601
2602# Some people use a C++ compiler to compile C.  Since we use `exit',
2603# in C++ we need to declare it.  In case someone uses the same compiler
2604# for both compiling C and C++ we need to have the C++ compiler decide
2605# the declaration of exit, since it's the most demanding environment.
2606cat >conftest.$ac_ext <<_ACEOF
2607#ifndef __cplusplus
2608  choke me
2609#endif
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620         { ac_try='test -z "$ac_c_werror_flag"
2621                         || test ! -s conftest.err'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; } &&
2627         { ac_try='test -s conftest.$ac_objext'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; }; then
2633  for ac_declaration in \
2634   '' \
2635   'extern "C" void std::exit (int) throw (); using std::exit;' \
2636   'extern "C" void std::exit (int); using std::exit;' \
2637   'extern "C" void exit (int) throw ();' \
2638   'extern "C" void exit (int);' \
2639   'void exit (int);'
2640do
2641  cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h.  */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h.  */
2647$ac_declaration
2648#include <stdlib.h>
2649int
2650main ()
2651{
2652exit (42);
2653  ;
2654  return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666         { ac_try='test -z "$ac_c_werror_flag"
2667                         || test ! -s conftest.err'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; } &&
2673         { ac_try='test -s conftest.$ac_objext'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679  :
2680else
2681  echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684continue
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693$ac_declaration
2694int
2695main ()
2696{
2697exit (42);
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704  (eval $ac_compile) 2>conftest.er1
2705  ac_status=$?
2706  grep -v '^ *+' conftest.er1 >conftest.err
2707  rm -f conftest.er1
2708  cat conftest.err >&5
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); } &&
2711         { ac_try='test -z "$ac_c_werror_flag"
2712                         || test ! -s conftest.err'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; } &&
2718         { ac_try='test -s conftest.$ac_objext'
2719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720  (eval $ac_try) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; }; then
2724  break
2725else
2726  echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729fi
2730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731done
2732rm -f conftest*
2733if test -n "$ac_declaration"; then
2734  echo '#ifdef __cplusplus' >>confdefs.h
2735  echo $ac_declaration      >>confdefs.h
2736  echo '#endif'             >>confdefs.h
2737fi
2738
2739else
2740  echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743fi
2744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745ac_ext=c
2746ac_cpp='$CPP $CPPFLAGS'
2747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
2751if test -z "$CC" ; then
2752  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2753echo "$as_me: error: Failed to find a C compiler!" >&2;}
2754   { (exit 1); exit 1; }; }
2755fi
2756# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2757case "$CC" in
2758  cl* | */cl* | CL* | */CL* )
2759    if test "$ac_cv_prog_cc_g" = yes ; then
2760      ac_cv_prog_cc_g=no
2761      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2762echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2763    fi ;;
2764esac
2765CFLAGS="$save_cflags"
2766
2767# add automake conditional so we can recognize cl compiler in makefile
2768coin_cc_is_cl=false
2769case "$CC" in
2770  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2771    coin_cc_is_cl=true
2772    ;;
2773esac
2774
2775
2776if test $coin_cc_is_cl = true; then
2777  COIN_CC_IS_CL_TRUE=
2778  COIN_CC_IS_CL_FALSE='#'
2779else
2780  COIN_CC_IS_CL_TRUE='#'
2781  COIN_CC_IS_CL_FALSE=
2782fi
2783
2784
2785# Check if a project specific CFLAGS variable has been set
2786if test x$COIN_PRJCT != x; then
2787  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2788  if test x$coin_tmp = xset; then
2789    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2790  fi
2791fi
2792
2793if test x"$CFLAGS" = x; then
2794
2795  coin_add_cflags=
2796  coin_opt_cflags=
2797  coin_dbg_cflags=
2798  coin_warn_cflags=
2799
2800  if test "$GCC" = "yes"; then
2801    case "$CC" in
2802      icc* | */icc*)
2803        ;;
2804      *)
2805        coin_opt_cflags="-O3"
2806        coin_add_cflags="-pipe"
2807        coin_dbg_cflags="-g"
2808        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2809        case $build in
2810          *-darwin*)
2811            ;;
2812          *)
2813            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2814            ;;
2815        esac
2816        case $enable_doscompile in
2817          mingw)
2818            CFLAGS="-mno-cygwin"
2819            cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h.  */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h.  */
2825
2826int
2827main ()
2828{
2829int i=0; i++;
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834rm -f conftest.$ac_objext conftest$ac_exeext
2835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836  (eval $ac_link) 2>conftest.er1
2837  ac_status=$?
2838  grep -v '^ *+' conftest.er1 >conftest.err
2839  rm -f conftest.er1
2840  cat conftest.err >&5
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); } &&
2843         { ac_try='test -z "$ac_c_werror_flag"
2844                         || test ! -s conftest.err'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; } &&
2850         { ac_try='test -s conftest$ac_exeext'
2851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852  (eval $ac_try) 2>&5
2853  ac_status=$?
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); }; }; then
2856  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2857else
2858  echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861fi
2862rm -f conftest.err conftest.$ac_objext \
2863      conftest$ac_exeext conftest.$ac_ext
2864            CFLAGS=
2865          ;;
2866        esac
2867    esac
2868  fi
2869  if test -z "$coin_opt_cflags"; then
2870    case $build in
2871      *-cygwin* | *-mingw*)
2872        case "$CC" in
2873          cl* | */cl* | CL* | */CL*)
2874            coin_opt_cflags='-MT -O2'
2875            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2876            coin_dbg_cflags='-MTd'
2877            ;;
2878          icl* | */icl* | ICL* | */ICL*)
2879            coin_opt_cflags='-MT -Ox'
2880            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2881            coin_dbg_cflags='-MTd -debug'
2882            ;;
2883        esac
2884        ;;
2885      *-linux-*)
2886        case "$CC" in
2887          icc* | */icc*)
2888            coin_opt_cflags="-O3 -ip -mp1"
2889            coin_add_cflags=""
2890            coin_dbg_cflags="-g"
2891            # Check if -i_dynamic is necessary (for new glibc library)
2892            CFLAGS=
2893            cat >conftest.$ac_ext <<_ACEOF
2894/* confdefs.h.  */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
2898/* end confdefs.h.  */
2899
2900int
2901main ()
2902{
2903int i=0; i++;
2904  ;
2905  return 0;
2906}
2907_ACEOF
2908rm -f conftest.$ac_objext conftest$ac_exeext
2909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2910  (eval $ac_link) 2>conftest.er1
2911  ac_status=$?
2912  grep -v '^ *+' conftest.er1 >conftest.err
2913  rm -f conftest.er1
2914  cat conftest.err >&5
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); } &&
2917         { ac_try='test -z "$ac_c_werror_flag"
2918                         || test ! -s conftest.err'
2919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920  (eval $ac_try) 2>&5
2921  ac_status=$?
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); }; } &&
2924         { ac_try='test -s conftest$ac_exeext'
2925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926  (eval $ac_try) 2>&5
2927  ac_status=$?
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); }; }; then
2930  :
2931else
2932  echo "$as_me: failed program was:" >&5
2933sed 's/^/| /' conftest.$ac_ext >&5
2934
2935coin_add_cflags="-i_dynamic $coin_add_cflags"
2936fi
2937rm -f conftest.err conftest.$ac_objext \
2938      conftest$ac_exeext conftest.$ac_ext
2939            ;;
2940          pgcc* | */pgcc*)
2941            coin_opt_cflags="-fast"
2942            coin_add_cflags="-Kieee -pc 64"
2943            coin_dbg_cflags="-g"
2944            ;;
2945        esac
2946        ;;
2947      *-ibm-*)
2948        case "$CC" in
2949          xlc* | */xlc* | mpxlc* | */mpxlc*)
2950            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2951            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2952            coin_dbg_cflags="-g"
2953          ;;
2954        esac
2955        ;;
2956      *-hp-*)
2957        coin_opt_cflags="-O"
2958        coin_add_cflags="-Ae"
2959        coin_dbg_cflags="-g"
2960        ;;
2961      *-*-solaris*)
2962        coin_opt_cflags="-xO4"
2963        coin_dbg_cflags="-g"
2964        ;;
2965      *-sgi-*)
2966        coin_opt_cflags="-O -OPT:Olimit=0"
2967        coin_dbg_cflags="-g"
2968        ;;
2969    esac
2970  fi
2971
2972  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2973    coin_dbg_cflags="-g"
2974  fi
2975
2976  if test -z "$coin_opt_cflags"; then
2977    # Try if -O option works if nothing else is set
2978    CFLAGS="-O"
2979    cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h.  */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h.  */
2985
2986int
2987main ()
2988{
2989int i=0; i++;
2990  ;
2991  return 0;
2992}
2993_ACEOF
2994rm -f conftest.$ac_objext conftest$ac_exeext
2995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2996  (eval $ac_link) 2>conftest.er1
2997  ac_status=$?
2998  grep -v '^ *+' conftest.er1 >conftest.err
2999  rm -f conftest.er1
3000  cat conftest.err >&5
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); } &&
3003         { ac_try='test -z "$ac_c_werror_flag"
3004                         || test ! -s conftest.err'
3005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006  (eval $ac_try) 2>&5
3007  ac_status=$?
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); }; } &&
3010         { ac_try='test -s conftest$ac_exeext'
3011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012  (eval $ac_try) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }; }; then
3016  coin_opt_cflags="-O"
3017else
3018  echo "$as_me: failed program was:" >&5
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021fi
3022rm -f conftest.err conftest.$ac_objext \
3023      conftest$ac_exeext conftest.$ac_ext
3024  fi
3025
3026  # if PM doesn't want the warning messages, take them out
3027  if test x"$coin_skip_warn_cflags" = xyes; then
3028    coin_warn_cflags=
3029  fi
3030
3031  if test x${DBG_CFLAGS+set} != xset; then
3032    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3033  fi
3034  if test x${OPT_CFLAGS+set} != xset; then
3035    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3036  fi
3037
3038  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3039  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3040
3041  if test "$coin_debug_compile" = "true"; then
3042    CFLAGS="$DBG_CFLAGS"
3043  else
3044    CFLAGS="$OPT_CFLAGS"
3045  fi
3046else
3047  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3048  if test x${DBG_CFLAGS+set} != xset; then
3049    DBG_CFLAGS="$CFLAGS"
3050  fi
3051  if test x${OPT_CFLAGS+set} != xset; then
3052    OPT_CFLAGS="$CFLAGS"
3053  fi
3054fi
3055
3056# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3057
3058case "$CFLAGS" in
3059  *-mno-cygwin*)
3060    if test x${CPPFLAGS+set} != xset ; then
3061      CPPFLAGS="-mno-cygwin"
3062    else
3063      case "$CPPFLAGS" in
3064        *-mno-cygwin*)
3065          ;;
3066        *)
3067          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3068          ;;
3069      esac
3070    fi ;;
3071esac
3072
3073# Try if CFLAGS works
3074save_CFLAGS="$CFLAGS"
3075cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085int i=0; i++;
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext conftest$ac_exeext
3091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3092  (eval $ac_link) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest$ac_exeext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  :
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117CFLAGS=
3118fi
3119rm -f conftest.err conftest.$ac_objext \
3120      conftest$ac_exeext conftest.$ac_ext
3121if test -z "$CFLAGS"; then
3122  { 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
3123echo "$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;}
3124  CFLAGS='-O'
3125  cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h.  */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h.  */
3131
3132int
3133main ()
3134{
3135int i=0; i++;
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140rm -f conftest.$ac_objext conftest$ac_exeext
3141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142  (eval $ac_link) 2>conftest.er1
3143  ac_status=$?
3144  grep -v '^ *+' conftest.er1 >conftest.err
3145  rm -f conftest.er1
3146  cat conftest.err >&5
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } &&
3149         { ac_try='test -z "$ac_c_werror_flag"
3150                         || test ! -s conftest.err'
3151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152  (eval $ac_try) 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }; } &&
3156         { ac_try='test -s conftest$ac_exeext'
3157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158  (eval $ac_try) 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; }; then
3162  :
3163else
3164  echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167CFLAGS=
3168fi
3169rm -f conftest.err conftest.$ac_objext \
3170      conftest$ac_exeext conftest.$ac_ext
3171  if test -z "$CFLAGS"; then
3172    { 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
3173echo "$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;}
3174  fi
3175fi
3176
3177{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3178echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3179
3180
3181if test x"$MPICC" = x; then :; else
3182  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3183echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3184  CC="$MPICC"
3185fi
3186
3187# Correct the LD variable if we are using the MS or Intel-windows compiler
3188case "$CC" in
3189  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3190    case $build in
3191  *-mingw*)
3192    if test "${LD+set}" = set; then :; else
3193      LD=link
3194    fi
3195    ;;
3196 esac
3197 case $enable_doscompile in
3198   msvc)
3199     if test "x${LD+set}" = xset; then :; else
3200       LD=link
3201     fi
3202     ;;
3203 esac
3204
3205    ;;
3206esac
3207
3208ac_ext=c
3209ac_cpp='$CPP $CPPFLAGS'
3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
3214
3215case $build in
3216  *-cygwin* | *-mingw*)
3217     if test "$enable_doscompile" = msvc ; then
3218       coin_f77_comps="ifort fl32 compile_f2c"
3219     else
3220       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3221     fi ;;
3222  *-*-solaris*)
3223     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3224  *-linux-gnu*)
3225     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3226  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3227 esac
3228
3229
3230
3231
3232
3233
3234ac_ext=f
3235ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3236ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3238
3239
3240
3241
3242
3243
3244coin_has_f77=yes
3245
3246save_fflags="$FFLAGS"
3247
3248# We delete the cached value, since the test might not have been
3249# performed with our choice of compilers earlier
3250$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3251
3252# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3253# coin_f77_comps to see if there's a program that matches one of the names.
3254# If there's no such program, F77 = unavailable. If we match the name,
3255# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3256# compiler.
3257# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3258
3259
3260{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3261echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3262for ac_prog in $coin_f77_comps
3263do
3264  # Extract the first word of "$ac_prog", so it can be a program name with args.
3265set dummy $ac_prog; ac_word=$2
3266echo "$as_me:$LINENO: checking for $ac_word" >&5
3267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268if test "${ac_cv_prog_F77+set}" = set; then
3269  echo $ECHO_N "(cached) $ECHO_C" >&6
3270else
3271  if test -n "$F77"; then
3272  ac_cv_prog_F77="$F77" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277  IFS=$as_save_IFS
3278  test -z "$as_dir" && as_dir=.
3279  for ac_exec_ext in '' $ac_executable_extensions; do
3280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281    ac_cv_prog_F77="$ac_prog"
3282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283    break 2
3284  fi
3285done
3286done
3287
3288fi
3289fi
3290F77=$ac_cv_prog_F77
3291if test -n "$F77"; then
3292  echo "$as_me:$LINENO: result: $F77" >&5
3293echo "${ECHO_T}$F77" >&6
3294else
3295  echo "$as_me:$LINENO: result: no" >&5
3296echo "${ECHO_T}no" >&6
3297fi
3298
3299  test -n "$F77" && break
3300done
3301test -n "$F77" || F77="unavailable"
3302
3303
3304if test "$F77" != "unavailable" ; then
3305  ac_ext=f
3306ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3307ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3309if test -n "$ac_tool_prefix"; then
3310  for ac_prog in $coin_f77_comps
3311  do
3312    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3314echo "$as_me:$LINENO: checking for $ac_word" >&5
3315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316if test "${ac_cv_prog_F77+set}" = set; then
3317  echo $ECHO_N "(cached) $ECHO_C" >&6
3318else
3319  if test -n "$F77"; then
3320  ac_cv_prog_F77="$F77" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  test -z "$as_dir" && as_dir=.
3327  for ac_exec_ext in '' $ac_executable_extensions; do
3328  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331    break 2
3332  fi
3333done
3334done
3335
3336fi
3337fi
3338F77=$ac_cv_prog_F77
3339if test -n "$F77"; then
3340  echo "$as_me:$LINENO: result: $F77" >&5
3341echo "${ECHO_T}$F77" >&6
3342else
3343  echo "$as_me:$LINENO: result: no" >&5
3344echo "${ECHO_T}no" >&6
3345fi
3346
3347    test -n "$F77" && break
3348  done
3349fi
3350if test -z "$F77"; then
3351  ac_ct_F77=$F77
3352  for ac_prog in $coin_f77_comps
3353do
3354  # Extract the first word of "$ac_prog", so it can be a program name with args.
3355set dummy $ac_prog; ac_word=$2
3356echo "$as_me:$LINENO: checking for $ac_word" >&5
3357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  if test -n "$ac_ct_F77"; then
3362  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3363else
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369  for ac_exec_ext in '' $ac_executable_extensions; do
3370  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371    ac_cv_prog_ac_ct_F77="$ac_prog"
3372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373    break 2
3374  fi
3375done
3376done
3377
3378fi
3379fi
3380ac_ct_F77=$ac_cv_prog_ac_ct_F77
3381if test -n "$ac_ct_F77"; then
3382  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3383echo "${ECHO_T}$ac_ct_F77" >&6
3384else
3385  echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
3387fi
3388
3389  test -n "$ac_ct_F77" && break
3390done
3391
3392  F77=$ac_ct_F77
3393fi
3394
3395
3396# Provide some information about the compiler.
3397echo "$as_me:3397:" \
3398     "checking for Fortran 77 compiler version" >&5
3399ac_compiler=`set X $ac_compile; echo $2`
3400{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3401  (eval $ac_compiler --version </dev/null >&5) 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }
3405{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3406  (eval $ac_compiler -v </dev/null >&5) 2>&5
3407  ac_status=$?
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }
3410{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3411  (eval $ac_compiler -V </dev/null >&5) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }
3415rm -f a.out
3416
3417# If we don't use `.F' as extension, the preprocessor is not run on the
3418# input file.  (Note that this only needs to work for GNU compilers.)
3419ac_save_ext=$ac_ext
3420ac_ext=F
3421echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3422echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3423if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3424  echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426  cat >conftest.$ac_ext <<_ACEOF
3427      program main
3428#ifndef __GNUC__
3429       choke me
3430#endif
3431
3432      end
3433_ACEOF
3434rm -f conftest.$ac_objext
3435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3436  (eval $ac_compile) 2>conftest.er1
3437  ac_status=$?
3438  grep -v '^ *+' conftest.er1 >conftest.err
3439  rm -f conftest.er1
3440  cat conftest.err >&5
3441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); } &&
3443         { ac_try='test -z "$ac_f77_werror_flag"
3444                         || test ! -s conftest.err'
3445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446  (eval $ac_try) 2>&5
3447  ac_status=$?
3448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449  (exit $ac_status); }; } &&
3450         { ac_try='test -s conftest.$ac_objext'
3451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452  (eval $ac_try) 2>&5
3453  ac_status=$?
3454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455  (exit $ac_status); }; }; then
3456  ac_compiler_gnu=yes
3457else
3458  echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461ac_compiler_gnu=no
3462fi
3463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3464ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3465
3466fi
3467echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3468echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3469ac_ext=$ac_save_ext
3470ac_test_FFLAGS=${FFLAGS+set}
3471ac_save_FFLAGS=$FFLAGS
3472FFLAGS=
3473echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3474echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3475if test "${ac_cv_prog_f77_g+set}" = set; then
3476  echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
3478  FFLAGS=-g
3479cat >conftest.$ac_ext <<_ACEOF
3480      program main
3481
3482      end
3483_ACEOF
3484rm -f conftest.$ac_objext
3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486  (eval $ac_compile) 2>conftest.er1
3487  ac_status=$?
3488  grep -v '^ *+' conftest.er1 >conftest.err
3489  rm -f conftest.er1
3490  cat conftest.err >&5
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); } &&
3493         { ac_try='test -z "$ac_f77_werror_flag"
3494                         || test ! -s conftest.err'
3495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496  (eval $ac_try) 2>&5
3497  ac_status=$?
3498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); }; } &&
3500         { ac_try='test -s conftest.$ac_objext'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; }; then
3506  ac_cv_prog_f77_g=yes
3507else
3508  echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511ac_cv_prog_f77_g=no
3512fi
3513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3514
3515fi
3516echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3517echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3518if test "$ac_test_FFLAGS" = set; then
3519  FFLAGS=$ac_save_FFLAGS
3520elif test $ac_cv_prog_f77_g = yes; then
3521  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3522    FFLAGS="-g -O2"
3523  else
3524    FFLAGS="-g"
3525  fi
3526else
3527  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3528    FFLAGS="-O2"
3529  else
3530    FFLAGS=
3531  fi
3532fi
3533
3534G77=`test $ac_compiler_gnu = yes && echo yes`
3535ac_ext=f
3536ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3537ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3539
3540else
3541  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3542echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3543fi
3544
3545FFLAGS="$save_fflags"
3546
3547# Check if a project specific FFLAGS variable has been set
3548if test x$COIN_PRJCT != x; then
3549  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3550  if test x$coin_tmp = xset; then
3551    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3552  fi
3553fi
3554
3555if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3556
3557  coin_add_fflags=
3558  coin_opt_fflags=
3559  coin_dbg_fflags=
3560  coin_warn_fflags=
3561
3562  if test "$G77" = "yes"; then
3563    coin_opt_fflags="-O3"
3564    coin_add_fflags="-pipe"
3565    coin_dbg_fflags="-g"
3566    case $enable_doscompile in
3567      mingw)
3568        FFLAGS="-mno-cygwin"
3569        cat >conftest.$ac_ext <<_ACEOF
3570      program main
3571      write(*,*) 'Hello world'
3572      end
3573_ACEOF
3574rm -f conftest.$ac_objext conftest$ac_exeext
3575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3576  (eval $ac_link) 2>conftest.er1
3577  ac_status=$?
3578  grep -v '^ *+' conftest.er1 >conftest.err
3579  rm -f conftest.er1
3580  cat conftest.err >&5
3581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582  (exit $ac_status); } &&
3583         { ac_try='test -z "$ac_f77_werror_flag"
3584                         || test ! -s conftest.err'
3585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586  (eval $ac_try) 2>&5
3587  ac_status=$?
3588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589  (exit $ac_status); }; } &&
3590         { ac_try='test -s conftest$ac_exeext'
3591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592  (eval $ac_try) 2>&5
3593  ac_status=$?
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); }; }; then
3596  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3597else
3598  echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601fi
3602rm -f conftest.err conftest.$ac_objext \
3603      conftest$ac_exeext conftest.$ac_ext
3604        FFLAGS=
3605      ;;
3606    esac
3607  else
3608    case $build in
3609      *-cygwin* | *-mingw*)
3610        case $F77 in
3611          ifort* | */ifort* | IFORT* | */IFORT* )
3612            coin_opt_fflags='-MT -O3'
3613            coin_add_fflags='-fpp -nologo'
3614            coin_dbg_fflags='-MTd -debug'
3615          ;;
3616          compile_f2c*)
3617            coin_opt_fflags='-MT -O2'
3618            coin_add_fflags='-nologo -wd4996'
3619            coin_dbg_fflags='-MTd'
3620          ;;
3621        esac
3622        ;;
3623      *-linux-*)
3624        case $F77 in
3625          ifc* | */ifc* | ifort* | */ifort*)
3626            coin_opt_fflags="-O3 -ip"
3627            coin_add_fflags="-cm -w90 -w95"
3628            coin_dbg_fflags="-g -CA -CB -CS"
3629            # Check if -i_dynamic is necessary (for new glibc library)
3630            FFLAGS=
3631            cat >conftest.$ac_ext <<_ACEOF
3632      program main
3633      write(*,*) 'Hello world'
3634      end
3635_ACEOF
3636rm -f conftest.$ac_objext conftest$ac_exeext
3637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3638  (eval $ac_link) 2>conftest.er1
3639  ac_status=$?
3640  grep -v '^ *+' conftest.er1 >conftest.err
3641  rm -f conftest.er1
3642  cat conftest.err >&5
3643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644  (exit $ac_status); } &&
3645         { ac_try='test -z "$ac_f77_werror_flag"
3646                         || test ! -s conftest.err'
3647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648  (eval $ac_try) 2>&5
3649  ac_status=$?
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); }; } &&
3652         { ac_try='test -s conftest$ac_exeext'
3653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654  (eval $ac_try) 2>&5
3655  ac_status=$?
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); }; }; then
3658  :
3659else
3660  echo "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
3663coin_add_fflags="-i_dynamic $coin_add_fflags"
3664fi
3665rm -f conftest.err conftest.$ac_objext \
3666      conftest$ac_exeext conftest.$ac_ext
3667            ;;
3668          pgf77* | */pgf77* | pgf90* | */pgf90*)
3669            coin_opt_fflags="-fast"
3670            coin_add_fflags="-Kieee -pc 64"
3671            coin_dbg_fflags="-g"
3672          ;;
3673        esac
3674        ;;
3675      *-ibm-*)
3676        case "$F77" in
3677          xlf* | */xlf* | mpxlf* | */mpxlf* )
3678            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3679            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3680            coin_dbg_fflags="-g -C"
3681            ;;
3682        esac
3683        ;;
3684      *-hp-*)
3685        coin_opt_fflags="+O3"
3686        coin_add_fflags="+U77"
3687        coin_dbg_fflags="-C -g"
3688        ;;
3689      *-*-solaris*)
3690        coin_opt_fflags="-O4"
3691        coin_dbg_fflags="-g"
3692        ;;
3693      *-sgi-*)
3694        coin_opt_fflags="-O5 -OPT:Olimit=0"
3695        coin_dbg_fflags="-g"
3696        ;;
3697    esac
3698  fi
3699
3700  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3701    coin_dbg_fflags="-g"
3702  fi
3703
3704  if test -z "$coin_opt_fflags"; then
3705    # Try if -O option works if nothing else is set
3706    FFLAGS=-O
3707    cat >conftest.$ac_ext <<_ACEOF
3708      program main
3709      integer i
3710      end
3711_ACEOF
3712rm -f conftest.$ac_objext conftest$ac_exeext
3713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714  (eval $ac_link) 2>conftest.er1
3715  ac_status=$?
3716  grep -v '^ *+' conftest.er1 >conftest.err
3717  rm -f conftest.er1
3718  cat conftest.err >&5
3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720  (exit $ac_status); } &&
3721         { ac_try='test -z "$ac_f77_werror_flag"
3722                         || test ! -s conftest.err'
3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724  (eval $ac_try) 2>&5
3725  ac_status=$?
3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); }; } &&
3728         { ac_try='test -s conftest$ac_exeext'
3729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730  (eval $ac_try) 2>&5
3731  ac_status=$?
3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733  (exit $ac_status); }; }; then
3734  coin_opt_fflags="-O"
3735else
3736  echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739fi
3740rm -f conftest.err conftest.$ac_objext \
3741      conftest$ac_exeext conftest.$ac_ext
3742  fi
3743
3744  # if PM doesn't want the warning messages, take them out
3745  if test x"$coin_skip_warn_fflags" = xyes; then
3746    coin_warn_fflags=
3747  fi
3748
3749  if test x${DBG_FFLAGS+set} != xset; then
3750    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3751  fi
3752  if test x${OPT_FFLAGS+set} != xset; then
3753    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3754  fi
3755
3756  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3757  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3758
3759  if test "$coin_debug_compile" = "true"; then
3760    FFLAGS="$DBG_FFLAGS"
3761  else
3762    FFLAGS="$OPT_FFLAGS"
3763  fi
3764else
3765  FFLAGS="$FFLAGS $ADD_FFLAGS"
3766  if test x${DBG_FFLAGS+set} != xset; then
3767    DBG_FFLAGS="$FFLAGS"
3768  fi
3769  if test x${OPT_FFLAGS+set} != xset; then
3770    OPT_FFLAGS="$FFLAGS"
3771  fi
3772fi
3773
3774# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3775case "$FFLAGS" in
3776  *-mno-cygwin*)
3777    if test x${CPPFLAGS+set} != xset ; then
3778      CPPFLAGS="-mno-cygwin"
3779    else
3780      case "$CPPFLAGS" in
3781        *-mno-cygwin*)
3782          ;;
3783        *)
3784          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3785          ;;
3786      esac
3787    fi ;;
3788esac
3789
3790# Try if FFLAGS works
3791if test "$F77" != "unavailable" ; then
3792  cat >conftest.$ac_ext <<_ACEOF
3793      program main
3794      integer i
3795      end
3796_ACEOF
3797rm -f conftest.$ac_objext conftest$ac_exeext
3798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799  (eval $ac_link) 2>conftest.er1
3800  ac_status=$?
3801  grep -v '^ *+' conftest.er1 >conftest.err
3802  rm -f conftest.er1
3803  cat conftest.err >&5
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); } &&
3806         { ac_try='test -z "$ac_f77_werror_flag"
3807                         || test ! -s conftest.err'
3808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809  (eval $ac_try) 2>&5
3810  ac_status=$?
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); }; } &&
3813         { ac_try='test -s conftest$ac_exeext'
3814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815  (eval $ac_try) 2>&5
3816  ac_status=$?
3817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818  (exit $ac_status); }; }; then
3819  :
3820else
3821  echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824FFLAGS=
3825fi
3826rm -f conftest.err conftest.$ac_objext \
3827      conftest$ac_exeext conftest.$ac_ext
3828  if test -z "$FFLAGS"; then
3829    { 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
3830echo "$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;}
3831    FFLAGS='-O'
3832    cat >conftest.$ac_ext <<_ACEOF
3833      program main
3834      integer i
3835      end
3836_ACEOF
3837rm -f conftest.$ac_objext conftest$ac_exeext
3838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3839  (eval $ac_link) 2>conftest.er1
3840  ac_status=$?
3841  grep -v '^ *+' conftest.er1 >conftest.err
3842  rm -f conftest.er1
3843  cat conftest.err >&5
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); } &&
3846         { ac_try='test -z "$ac_f77_werror_flag"
3847                         || test ! -s conftest.err'
3848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849  (eval $ac_try) 2>&5
3850  ac_status=$?
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); }; } &&
3853         { ac_try='test -s conftest$ac_exeext'
3854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855  (eval $ac_try) 2>&5
3856  ac_status=$?
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); }; }; then
3859  :
3860else
3861  echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864FFLAGS=
3865fi
3866rm -f conftest.err conftest.$ac_objext \
3867      conftest$ac_exeext conftest.$ac_ext
3868    if test -z "$FFLAGS"; then
3869      { 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
3870echo "$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;}
3871    fi
3872  fi
3873fi
3874
3875{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3876echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3877
3878
3879if test x"$MPIF77" = x; then :; else
3880  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3881echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3882  F77="$MPIF77"
3883fi
3884
3885# correct the LD variable if we use the intel fortran compiler in windows
3886case "$F77" in
3887  ifort* | */ifort* | IFORT* | */IFORT*)
3888    case $build in
3889  *-mingw*)
3890    if test "${LD+set}" = set; then :; else
3891      LD=link
3892    fi
3893    ;;
3894 esac
3895 case $enable_doscompile in
3896   msvc)
3897     if test "x${LD+set}" = xset; then :; else
3898       LD=link
3899     fi
3900     ;;
3901 esac
3902
3903    ;;
3904esac
3905
3906ac_ext=c
3907ac_cpp='$CPP $CPPFLAGS'
3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911
3912
3913
3914# Get the linker flags (FLIBS) that are required for linking against this blas library
3915
3916# get FLIBS
3917ac_ext=f
3918ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3919ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3921echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3922echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3923if test "${ac_cv_prog_f77_v+set}" = set; then
3924  echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926  cat >conftest.$ac_ext <<_ACEOF
3927      program main
3928
3929      end
3930_ACEOF
3931rm -f conftest.$ac_objext
3932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933  (eval $ac_compile) 2>conftest.er1
3934  ac_status=$?
3935  grep -v '^ *+' conftest.er1 >conftest.err
3936  rm -f conftest.er1
3937  cat conftest.err >&5
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); } &&
3940         { ac_try='test -z "$ac_f77_werror_flag"
3941                         || test ! -s conftest.err'
3942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943  (eval $ac_try) 2>&5
3944  ac_status=$?
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); }; } &&
3947         { ac_try='test -s conftest.$ac_objext'
3948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949  (eval $ac_try) 2>&5
3950  ac_status=$?
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); }; }; then
3953  ac_cv_prog_f77_v=
3954# Try some options frequently used verbose output
3955for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3956  cat >conftest.$ac_ext <<_ACEOF
3957      program main
3958
3959      end
3960_ACEOF
3961
3962# Compile and link our simple test program by passing a flag (argument
3963# 1 to this macro) to the Fortran compiler in order to get
3964# "verbose" output that we can then parse for the Fortran linker
3965# flags.
3966ac_save_FFLAGS=$FFLAGS
3967FFLAGS="$FFLAGS $ac_verb"
3968(eval echo $as_me:3968: \"$ac_link\") >&5
3969ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3970echo "$ac_f77_v_output" >&5
3971FFLAGS=$ac_save_FFLAGS
3972
3973rm -f conftest*
3974
3975# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3976# /foo, /bar, and /baz are search directories for the Fortran linker.
3977# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3978ac_f77_v_output="`echo $ac_f77_v_output |
3979        grep 'LPATH is:' |
3980        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3981
3982case $ac_f77_v_output in
3983  # If we are using xlf then replace all the commas with spaces.
3984  *xlfentry*)
3985    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3986
3987  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3988  # $LIBS confuse us, and the libraries appear later in the output anyway).
3989  *mGLOB_options_string*)
3990    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3991
3992  # If we are using Cray Fortran then delete quotes.
3993  # Use "\"" instead of '"' for font-lock-mode.
3994  # FIXME: a more general fix for quoted arguments with spaces?
3995  *cft90*)
3996    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3997esac
3998
3999
4000  # look for -l* and *.a constructs in the output
4001  for ac_arg in $ac_f77_v_output; do
4002     case $ac_arg in
4003        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4004          ac_cv_prog_f77_v=$ac_verb
4005          break 2 ;;
4006     esac
4007  done
4008done
4009if test -z "$ac_cv_prog_f77_v"; then
4010   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4011echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4012fi
4013else
4014  echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4018echo "$as_me: WARNING: compilation failed" >&2;}
4019fi
4020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4021
4022fi
4023echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4024echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4025echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4026echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4027if test "${ac_cv_f77_libs+set}" = set; then
4028  echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030  if test "x$FLIBS" != "x"; then
4031  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4032else
4033
4034cat >conftest.$ac_ext <<_ACEOF
4035      program main
4036
4037      end
4038_ACEOF
4039
4040# Compile and link our simple test program by passing a flag (argument
4041# 1 to this macro) to the Fortran compiler in order to get
4042# "verbose" output that we can then parse for the Fortran linker
4043# flags.
4044ac_save_FFLAGS=$FFLAGS
4045FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4046(eval echo $as_me:4046: \"$ac_link\") >&5
4047ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4048echo "$ac_f77_v_output" >&5
4049FFLAGS=$ac_save_FFLAGS
4050
4051rm -f conftest*
4052
4053# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4054# /foo, /bar, and /baz are search directories for the Fortran linker.
4055# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4056ac_f77_v_output="`echo $ac_f77_v_output |
4057        grep 'LPATH is:' |
4058        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4059
4060case $ac_f77_v_output in
4061  # If we are using xlf then replace all the commas with spaces.
4062  *xlfentry*)
4063    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4064
4065  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4066  # $LIBS confuse us, and the libraries appear later in the output anyway).
4067  *mGLOB_options_string*)
4068    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4069
4070  # If we are using Cray Fortran then delete quotes.
4071  # Use "\"" instead of '"' for font-lock-mode.
4072  # FIXME: a more general fix for quoted arguments with spaces?
4073  *cft90*)
4074    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4075esac
4076
4077
4078
4079ac_cv_f77_libs=
4080
4081# Save positional arguments (if any)
4082ac_save_positional="$@"
4083
4084set X $ac_f77_v_output
4085while test $# != 1; do
4086  shift
4087  ac_arg=$1
4088  case $ac_arg in
4089        [\\/]*.a | ?:[\\/]*.a)
4090            ac_exists=false
4091  for ac_i in $ac_cv_f77_libs; do
4092    if test x"$ac_arg" = x"$ac_i"; then
4093      ac_exists=true
4094      break
4095    fi
4096  done
4097
4098  if test x"$ac_exists" = xtrue; then
4099  :
4100else
4101  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4102fi
4103
4104          ;;
4105        -bI:*)
4106            ac_exists=false
4107  for ac_i in $ac_cv_f77_libs; do
4108    if test x"$ac_arg" = x"$ac_i"; then
4109      ac_exists=true
4110      break
4111    fi
4112  done
4113
4114  if test x"$ac_exists" = xtrue; then
4115  :
4116else
4117  if test "$ac_compiler_gnu" = yes; then
4118  for ac_link_opt in $ac_arg; do
4119    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4120  done
4121else
4122  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4123fi
4124fi
4125
4126          ;;
4127          # Ignore these flags.
4128        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4129          ;;
4130        -lkernel32)
4131          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4132          ;;
4133        -[LRuY])
4134          # These flags, when seen by themselves, take an argument.
4135          # We remove the space between option and argument and re-iterate
4136          # unless we find an empty arg or a new option (starting with -)
4137          case $2 in
4138             "" | -*);;
4139             *)
4140                ac_arg="$ac_arg$2"
4141                shift; shift
4142                set X $ac_arg "$@"
4143                ;;
4144          esac
4145          ;;
4146        -YP,*)
4147          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4148              ac_exists=false
4149  for ac_i in $ac_cv_f77_libs; do
4150    if test x"$ac_j" = x"$ac_i"; then
4151      ac_exists=true
4152      break
4153    fi
4154  done
4155
4156  if test x"$ac_exists" = xtrue; then
4157  :
4158else
4159  ac_arg="$ac_arg $ac_j"
4160                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4161fi
4162
4163          done
4164          ;;
4165        -[lLR]*)
4166            ac_exists=false
4167  for ac_i in $ac_cv_f77_libs; do
4168    if test x"$ac_arg" = x"$ac_i"; then
4169      ac_exists=true
4170      break
4171    fi
4172  done
4173
4174  if test x"$ac_exists" = xtrue; then
4175  :
4176else
4177  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4178fi
4179
4180          ;;
4181          # Ignore everything else.
4182  esac
4183done
4184# restore positional arguments
4185set X $ac_save_positional; shift
4186
4187# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4188# then we insist that the "run path" must be an absolute path (i.e. it
4189# must begin with a "/").
4190case `(uname -sr) 2>/dev/null` in
4191   "SunOS 5"*)
4192      ac_ld_run_path=`echo $ac_f77_v_output |
4193                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4194      test "x$ac_ld_run_path" != x &&
4195        if test "$ac_compiler_gnu" = yes; then
4196  for ac_link_opt in $ac_ld_run_path; do
4197    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4198  done
4199else
4200  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4201fi
4202      ;;
4203esac
4204fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4205
4206fi
4207echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4208echo "${ECHO_T}$ac_cv_f77_libs" >&6
4209FLIBS="$ac_cv_f77_libs"
4210
4211
4212ac_ext=c
4213ac_cpp='$CPP $CPPFLAGS'
4214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217
4218orig_FLIBS="$FLIBS"
4219
4220# If FLIBS has been set by the user, we just restore its value here
4221if test x"$save_FLIBS" != x; then
4222  FLIBS="$save_FLIBS"
4223else
4224  # This is to correct a missing exclusion in autoconf 2.59
4225  if test x"$FLIBS" != x; then
4226    my_flibs=
4227    for flag in $FLIBS; do
4228      case $flag in
4229        -lcrt*.o) ;;
4230        -lcygwin) ;;
4231               *) my_flibs="$my_flibs $flag" ;;
4232      esac
4233    done
4234    FLIBS="$my_flibs"
4235  fi
4236
4237  case $build in
4238  # The following is a fix to define FLIBS for ifort on Windows
4239  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4240  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4241  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4242  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4243  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4244     *-cygwin* | *-mingw*)
4245       case "$F77" in
4246#         ifort* | */ifort* | IFORT* | */IFORT*)
4247#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4248#           if "$coin_debug_compile" = true ; then
4249#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4250#           else
4251#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4252#           fi
4253#           ;;
4254         compile_f2c*)
4255           FLIBS=`$F77 -FLIBS` ;;
4256       esac;;
4257     *-hp-*)
4258         FLIBS="$FLIBS -lm";;
4259     *-ibm-*)
4260         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4261     *-linux-*)
4262       case "$F77" in
4263         pgf77* | */pgf77* | pgf90* | */pgf90*)
4264# ask linker to go through the archives multiple times
4265# (the Fortran compiler seems to do that automatically...)
4266           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4267       esac
4268  esac
4269  ac_cv_f77_libs="$FLIBS"
4270fi
4271
4272if test "x$orig_FLIBS" != "x$FLIBS" ; then
4273  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4274echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4275fi
4276
4277ac_ext=f
4278ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4279ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4281
4282echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4283echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4284if test "${ac_cv_f77_dummy_main+set}" = set; then
4285  echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
4287  ac_f77_dm_save_LIBS=$LIBS
4288 LIBS="$LIBS $FLIBS"
4289 ac_fortran_dm_var=F77_DUMMY_MAIN
4290 ac_ext=c
4291ac_cpp='$CPP $CPPFLAGS'
4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296 # First, try linking without a dummy main:
4297 cat >conftest.$ac_ext <<_ACEOF
4298/* confdefs.h.  */
4299_ACEOF
4300cat confdefs.h >>conftest.$ac_ext
4301cat >>conftest.$ac_ext <<_ACEOF
4302/* end confdefs.h.  */
4303
4304#ifdef F77_DUMMY_MAIN
4305
4306#  ifdef __cplusplus
4307     extern "C"
4308#  endif
4309   int F77_DUMMY_MAIN() { return 1; }
4310
4311#endif
4312int
4313main ()
4314{
4315
4316  ;
4317  return 0;
4318}
4319_ACEOF
4320rm -f conftest.$ac_objext conftest$ac_exeext
4321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4322  (eval $ac_link) 2>conftest.er1
4323  ac_status=$?
4324  grep -v '^ *+' conftest.er1 >conftest.err
4325  rm -f conftest.er1
4326  cat conftest.err >&5
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); } &&
4329         { ac_try='test -z "$ac_c_werror_flag"
4330                         || test ! -s conftest.err'
4331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332  (eval $ac_try) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }; } &&
4336         { ac_try='test -s conftest$ac_exeext'
4337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338  (eval $ac_try) 2>&5
4339  ac_status=$?
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); }; }; then
4342  ac_cv_fortran_dummy_main=none
4343else
4344  echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347ac_cv_fortran_dummy_main=unknown
4348fi
4349rm -f conftest.err conftest.$ac_objext \
4350      conftest$ac_exeext conftest.$ac_ext
4351
4352 if test $ac_cv_fortran_dummy_main = unknown; then
4353   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4354     cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h.  */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h.  */
4360#define $ac_fortran_dm_var $ac_func
4361#ifdef F77_DUMMY_MAIN
4362
4363#  ifdef __cplusplus
4364     extern "C"
4365#  endif
4366   int F77_DUMMY_MAIN() { return 1; }
4367
4368#endif
4369int
4370main ()
4371{
4372
4373  ;
4374  return 0;
4375}
4376_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext
4378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379  (eval $ac_link) 2>conftest.er1
4380  ac_status=$?
4381  grep -v '^ *+' conftest.er1 >conftest.err
4382  rm -f conftest.er1
4383  cat conftest.err >&5
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); } &&
4386         { ac_try='test -z "$ac_c_werror_flag"
4387                         || test ! -s conftest.err'
4388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389  (eval $ac_try) 2>&5
4390  ac_status=$?
4391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392  (exit $ac_status); }; } &&
4393         { ac_try='test -s conftest$ac_exeext'
4394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395  (eval $ac_try) 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; }; then
4399  ac_cv_fortran_dummy_main=$ac_func; break
4400else
4401  echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404fi
4405rm -f conftest.err conftest.$ac_objext \
4406      conftest$ac_exeext conftest.$ac_ext
4407   done
4408 fi
4409 ac_ext=f
4410ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4411ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4413 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4414 rm -f conftest*
4415 LIBS=$ac_f77_dm_save_LIBS
4416
4417fi
4418echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4419echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4420F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4421if test "$F77_DUMMY_MAIN" != unknown; then
4422  if test $F77_DUMMY_MAIN != none; then
4423
4424cat >>confdefs.h <<_ACEOF
4425#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4426_ACEOF
4427
4428  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4429
4430cat >>confdefs.h <<\_ACEOF
4431#define FC_DUMMY_MAIN_EQ_F77 1
4432_ACEOF
4433
4434  fi
4435fi
4436else
4437  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4438See \`config.log' for more details." >&5
4439echo "$as_me: error: linking to Fortran libraries from C fails
4440See \`config.log' for more details." >&2;}
4441   { (exit 1); exit 1; }; }
4442fi
4443
4444
4445ac_ext=f
4446ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4447ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4449
4450ac_ext=f
4451ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4452ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4454echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4455echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4456if test "${ac_cv_f77_mangling+set}" = set; then
4457  echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459  cat >conftest.$ac_ext <<_ACEOF
4460      subroutine foobar()
4461      return
4462      end
4463      subroutine foo_bar()
4464      return
4465      end
4466_ACEOF
4467rm -f conftest.$ac_objext
4468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469  (eval $ac_compile) 2>conftest.er1
4470  ac_status=$?
4471  grep -v '^ *+' conftest.er1 >conftest.err
4472  rm -f conftest.er1
4473  cat conftest.err >&5
4474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475  (exit $ac_status); } &&
4476         { ac_try='test -z "$ac_f77_werror_flag"
4477                         || test ! -s conftest.err'
4478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479  (eval $ac_try) 2>&5
4480  ac_status=$?
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); }; } &&
4483         { ac_try='test -s conftest.$ac_objext'
4484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485  (eval $ac_try) 2>&5
4486  ac_status=$?
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); }; }; then
4489  mv conftest.$ac_objext cfortran_test.$ac_objext
4490
4491  ac_save_LIBS=$LIBS
4492  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4493
4494  ac_ext=c
4495ac_cpp='$CPP $CPPFLAGS'
4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499  ac_success=no
4500  for ac_foobar in foobar FOOBAR; do
4501    for ac_underscore in "" "_"; do
4502      ac_func="$ac_foobar$ac_underscore"
4503      cat >conftest.$ac_ext <<_ACEOF
4504/* confdefs.h.  */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h.  */
4509
4510/* Override any gcc2 internal prototype to avoid an error.  */
4511#ifdef __cplusplus
4512extern "C"
4513#endif
4514/* We use char because int might match the return type of a gcc2
4515   builtin and then its argument prototype would still apply.  */
4516char $ac_func ();
4517#ifdef F77_DUMMY_MAIN
4518
4519#  ifdef __cplusplus
4520     extern "C"
4521#  endif
4522   int F77_DUMMY_MAIN() { return 1; }
4523
4524#endif
4525int
4526main ()
4527{
4528$ac_func ();
4529  ;
4530  return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext conftest$ac_exeext
4534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4535  (eval $ac_link) 2>conftest.er1
4536  ac_status=$?
4537  grep -v '^ *+' conftest.er1 >conftest.err
4538  rm -f conftest.er1
4539  cat conftest.err >&5
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); } &&
4542         { ac_try='test -z "$ac_c_werror_flag"
4543                         || test ! -s conftest.err'
4544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545  (eval $ac_try) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; } &&
4549         { ac_try='test -s conftest$ac_exeext'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; }; then
4555  ac_success=yes; break 2
4556else
4557  echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560fi
4561rm -f conftest.err conftest.$ac_objext \
4562      conftest$ac_exeext conftest.$ac_ext
4563    done
4564  done
4565  ac_ext=f
4566ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4567ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4569
4570  if test "$ac_success" = "yes"; then
4571     case $ac_foobar in
4572        foobar)
4573           ac_case=lower
4574           ac_foo_bar=foo_bar
4575           ;;
4576        FOOBAR)
4577           ac_case=upper
4578           ac_foo_bar=FOO_BAR
4579           ;;
4580     esac
4581
4582     ac_ext=c
4583ac_cpp='$CPP $CPPFLAGS'
4584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587     ac_success_extra=no
4588     for ac_extra in "" "_"; do
4589        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4590        cat >conftest.$ac_ext <<_ACEOF
4591/* confdefs.h.  */
4592_ACEOF
4593cat confdefs.h >>conftest.$ac_ext
4594cat >>conftest.$ac_ext <<_ACEOF
4595/* end confdefs.h.  */
4596
4597/* Override any gcc2 internal prototype to avoid an error.  */
4598#ifdef __cplusplus
4599extern "C"
4600#endif
4601/* We use char because int might match the return type of a gcc2
4602   builtin and then its argument prototype would still apply.  */
4603char $ac_func ();
4604#ifdef F77_DUMMY_MAIN
4605
4606#  ifdef __cplusplus
4607     extern "C"
4608#  endif
4609   int F77_DUMMY_MAIN() { return 1; }
4610
4611#endif
4612int
4613main ()
4614{
4615$ac_func ();
4616  ;
4617  return 0;
4618}
4619_ACEOF
4620rm -f conftest.$ac_objext conftest$ac_exeext
4621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4622  (eval $ac_link) 2>conftest.er1
4623  ac_status=$?
4624  grep -v '^ *+' conftest.er1 >conftest.err
4625  rm -f conftest.er1
4626  cat conftest.err >&5
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); } &&
4629         { ac_try='test -z "$ac_c_werror_flag"
4630                         || test ! -s conftest.err'
4631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632  (eval $ac_try) 2>&5
4633  ac_status=$?
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); }; } &&
4636         { ac_try='test -s conftest$ac_exeext'
4637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638  (eval $ac_try) 2>&5
4639  ac_status=$?
4640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641  (exit $ac_status); }; }; then
4642  ac_success_extra=yes; break
4643else
4644  echo "$as_me: failed program was:" >&5
4645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647fi
4648rm -f conftest.err conftest.$ac_objext \
4649      conftest$ac_exeext conftest.$ac_ext
4650     done
4651     ac_ext=f
4652ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4653ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4655
4656     if test "$ac_success_extra" = "yes"; then
4657        ac_cv_f77_mangling="$ac_case case"
4658        if test -z "$ac_underscore"; then
4659           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4660        else
4661           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4662        fi
4663        if test -z "$ac_extra"; then
4664           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4665        else
4666           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4667        fi
4668      else
4669        ac_cv_f77_mangling="unknown"
4670      fi
4671  else
4672     ac_cv_f77_mangling="unknown"
4673  fi
4674
4675  LIBS=$ac_save_LIBS
4676  rm -f cfortran_test* conftest*
4677else
4678  echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4682See \`config.log' for more details." >&5
4683echo "$as_me: error: cannot compile a simple Fortran program
4684See \`config.log' for more details." >&2;}
4685   { (exit 1); exit 1; }; }
4686fi
4687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4688
4689fi
4690echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4691echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4692
4693ac_ext=f
4694ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4695ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4697
4698
4699ac_ext=f
4700ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4701ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4703
4704ac_ext=f
4705ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4706ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4708
4709
4710case $ac_cv_f77_mangling in
4711  "lower case, no underscore, no extra underscore")
4712          cat >>confdefs.h <<\_ACEOF
4713#define F77_FUNC(name,NAME) name
4714_ACEOF
4715
4716          cat >>confdefs.h <<\_ACEOF
4717#define F77_FUNC_(name,NAME) name
4718_ACEOF
4719 ;;
4720  "lower case, no underscore, extra underscore")
4721          cat >>confdefs.h <<\_ACEOF
4722#define F77_FUNC(name,NAME) name
4723_ACEOF
4724
4725          cat >>confdefs.h <<\_ACEOF
4726#define F77_FUNC_(name,NAME) name ## _
4727_ACEOF
4728 ;;
4729  "lower case, underscore, no extra underscore")
4730          cat >>confdefs.h <<\_ACEOF
4731#define F77_FUNC(name,NAME) name ## _
4732_ACEOF
4733
4734          cat >>confdefs.h <<\_ACEOF
4735#define F77_FUNC_(name,NAME) name ## _
4736_ACEOF
4737 ;;
4738  "lower case, underscore, extra underscore")
4739          cat >>confdefs.h <<\_ACEOF
4740#define F77_FUNC(name,NAME) name ## _
4741_ACEOF
4742
4743          cat >>confdefs.h <<\_ACEOF
4744#define F77_FUNC_(name,NAME) name ## __
4745_ACEOF
4746 ;;
4747  "upper case, no underscore, no extra underscore")
4748          cat >>confdefs.h <<\_ACEOF
4749#define F77_FUNC(name,NAME) NAME
4750_ACEOF
4751
4752          cat >>confdefs.h <<\_ACEOF
4753#define F77_FUNC_(name,NAME) NAME
4754_ACEOF
4755 ;;
4756  "upper case, no underscore, extra underscore")
4757          cat >>confdefs.h <<\_ACEOF
4758#define F77_FUNC(name,NAME) NAME
4759_ACEOF
4760
4761          cat >>confdefs.h <<\_ACEOF
4762#define F77_FUNC_(name,NAME) NAME ## _
4763_ACEOF
4764 ;;
4765  "upper case, underscore, no extra underscore")
4766          cat >>confdefs.h <<\_ACEOF
4767#define F77_FUNC(name,NAME) NAME ## _
4768_ACEOF
4769
4770          cat >>confdefs.h <<\_ACEOF
4771#define F77_FUNC_(name,NAME) NAME ## _
4772_ACEOF
4773 ;;
4774  "upper case, underscore, extra underscore")
4775          cat >>confdefs.h <<\_ACEOF
4776#define F77_FUNC(name,NAME) NAME ## _
4777_ACEOF
4778
4779          cat >>confdefs.h <<\_ACEOF
4780#define F77_FUNC_(name,NAME) NAME ## __
4781_ACEOF
4782 ;;
4783  *)
4784          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4785echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4786          ;;
4787esac
4788
4789ac_ext=f
4790ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4791ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4793
4794ac_ext=c
4795ac_cpp='$CPP $CPPFLAGS'
4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800
4801
4802
4803# Add FLIBS to BLAS_PCLIBS, so that they get into the .pc files
4804BLAS_PCLIBS="$FLIBS"
4805
4806
4807# Check if pkg-config is available (to setup addlibs file)
4808
4809
4810# Check whether --enable-pkg-config or --disable-pkg-config was given.
4811if test "${enable_pkg_config+set}" = set; then
4812  enableval="$enable_pkg_config"
4813  use_pkgconfig="$enableval"
4814else
4815  use_pkgconfig=yes
4816fi;
4817
4818if test $use_pkgconfig = yes ; then
4819  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4820    if test -n "$ac_tool_prefix"; then
4821  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4822set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4823echo "$as_me:$LINENO: checking for $ac_word" >&5
4824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4826  echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828  case $PKG_CONFIG in
4829  [\\/]* | ?:[\\/]*)
4830  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4831  ;;
4832  *)
4833  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836  IFS=$as_save_IFS
4837  test -z "$as_dir" && as_dir=.
4838  for ac_exec_ext in '' $ac_executable_extensions; do
4839  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842    break 2
4843  fi
4844done
4845done
4846
4847  ;;
4848esac
4849fi
4850PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4851
4852if test -n "$PKG_CONFIG"; then
4853  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4854echo "${ECHO_T}$PKG_CONFIG" >&6
4855else
4856  echo "$as_me:$LINENO: result: no" >&5
4857echo "${ECHO_T}no" >&6
4858fi
4859
4860fi
4861if test -z "$ac_cv_path_PKG_CONFIG"; then
4862  ac_pt_PKG_CONFIG=$PKG_CONFIG
4863  # Extract the first word of "pkg-config", so it can be a program name with args.
4864set dummy pkg-config; ac_word=$2
4865echo "$as_me:$LINENO: checking for $ac_word" >&5
4866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4867if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4868  echo $ECHO_N "(cached) $ECHO_C" >&6
4869else
4870  case $ac_pt_PKG_CONFIG in
4871  [\\/]* | ?:[\\/]*)
4872  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4873  ;;
4874  *)
4875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878  IFS=$as_save_IFS
4879  test -z "$as_dir" && as_dir=.
4880  for ac_exec_ext in '' $ac_executable_extensions; do
4881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884    break 2
4885  fi
4886done
4887done
4888
4889  ;;
4890esac
4891fi
4892ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4893
4894if test -n "$ac_pt_PKG_CONFIG"; then
4895  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4896echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4897else
4898  echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900fi
4901
4902  PKG_CONFIG=$ac_pt_PKG_CONFIG
4903else
4904  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4905fi
4906
4907  fi
4908  if test -n "$PKG_CONFIG"; then
4909    _pkg_min_version=0.16.0
4910    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4911echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4912    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4913      echo "$as_me:$LINENO: result: yes" >&5
4914echo "${ECHO_T}yes" >&6
4915    else
4916      echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6
4918      PKG_CONFIG=""
4919    fi
4920  fi
4921
4922  # check if pkg-config supports the short-errors flag
4923  if test -n "$PKG_CONFIG" && \
4924    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4925    pkg_short_errors=" --short-errors "
4926  else
4927    pkg_short_errors=""
4928  fi
4929fi
4930
4931
4932
4933if test -n "$PKG_CONFIG"; then
4934  COIN_HAS_PKGCONFIG_TRUE=
4935  COIN_HAS_PKGCONFIG_FALSE='#'
4936else
4937  COIN_HAS_PKGCONFIG_TRUE='#'
4938  COIN_HAS_PKGCONFIG_FALSE=
4939fi
4940
4941
4942
4943# assemble pkg-config search path for installed projects
4944COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4945
4946# 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
4947# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4948# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4949if test "x${prefix}" = xNONE ; then
4950  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4951else
4952  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4953fi
4954
4955
4956# Check whether --with-coin-instdir or --without-coin-instdir was given.
4957if test "${with_coin_instdir+set}" = set; then
4958  withval="$with_coin_instdir"
4959  if test -d "$withval"; then : ; else
4960     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4961echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4962   { (exit 1); exit 1; }; }
4963   fi
4964   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4965
4966fi;
4967
4968
4969
4970# assemble additional pkg-config search paths for uninstalled projects
4971if test x$coin_projectdir = xyes ; then
4972  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4973  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4974  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4975  # 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)
4976  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4977  if test -e ../coin_subdirs.txt ; then
4978    for i in `cat ../coin_subdirs.txt` ; do
4979      if test -d ../$i ; then
4980        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4981      fi
4982      if test -d ../$i/pkgconfig ; then
4983        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4984      fi
4985    done
4986  fi
4987
4988  if test -e ../../coin_subdirs.txt ; then
4989    for i in `cat ../../coin_subdirs.txt` ; do
4990      if test -d ../../$i ; then
4991        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4992      fi
4993      if test -d ../../$i/pkgconfig ; then
4994        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4995      fi
4996    done
4997  fi
4998
4999
5000fi
5001
5002if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5003  { 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
5004echo "$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;}
5005fi
5006
5007
5008
5009# Initialize automake
5010{
5011
5012
5013
5014# START
5015
5016# Test if force_shared has been set
5017if test "x" = xforce_shared; then
5018  if test x$enable_shared = xno; then
5019    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5020echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5021   { (exit 1); exit 1; }; }
5022  fi
5023  enable_shared=yes;
5024else
5025  # On Cygwin and AIX, building DLLs doesn't work
5026  case $build in
5027    *-cygwin*)
5028      coin_disable_shared=yes
5029      platform=Cygwin
5030    ;;
5031    *-aix*)
5032      coin_disable_shared=yes
5033      platform=AIX
5034    ;;
5035    *-mingw*)
5036      coin_disable_shared=yes
5037      platform="Msys"
5038#      case "$CXX" in
5039#        cl*)
5040#          coin_disable_shared=yes
5041#          platform="Msys with cl"
5042#      ;;
5043#      esac
5044    ;;
5045  esac
5046fi
5047if test x"$coin_disable_shared" = xyes; then
5048  if test x"$enable_shared" = xyes; then
5049    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5050echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5051  fi
5052  enable_shared=no
5053fi
5054# By default, we only want the shared objects to be compiled
5055# Check whether --enable-static or --disable-static was given.
5056if test "${enable_static+set}" = set; then
5057  enableval="$enable_static"
5058  p=${PACKAGE-default}
5059    case $enableval in
5060    yes) enable_static=yes ;;
5061    no) enable_static=no ;;
5062    *)
5063     enable_static=no
5064      # Look at the argument we got.  We use all the common list separators.
5065      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5066      for pkg in $enableval; do
5067        IFS="$lt_save_ifs"
5068        if test "X$pkg" = "X$p"; then
5069          enable_static=yes
5070        fi
5071      done
5072      IFS="$lt_save_ifs"
5073      ;;
5074    esac
5075else
5076  enable_static=no
5077fi;
5078
5079
5080
5081
5082# Initialize automake
5083echo "$as_me:$LINENO: checking for egrep" >&5
5084echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5085if test "${ac_cv_prog_egrep+set}" = set; then
5086  echo $ECHO_N "(cached) $ECHO_C" >&6
5087else
5088  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5089    then ac_cv_prog_egrep='grep -E'
5090    else ac_cv_prog_egrep='egrep'
5091    fi
5092fi
5093echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5094echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5095 EGREP=$ac_cv_prog_egrep
5096
5097
5098echo "$as_me:$LINENO: checking whether ln -s works" >&5
5099echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5100LN_S=$as_ln_s
5101if test "$LN_S" = "ln -s"; then
5102  echo "$as_me:$LINENO: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
5104else
5105  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5106echo "${ECHO_T}no, using $LN_S" >&6
5107fi
5108
5109am__api_version="1.9"
5110# Find a good install program.  We prefer a C program (faster),
5111# so one script is as good as another.  But avoid the broken or
5112# incompatible versions:
5113# SysV /etc/install, /usr/sbin/install
5114# SunOS /usr/etc/install
5115# IRIX /sbin/install
5116# AIX /bin/install
5117# AmigaOS /C/install, which installs bootblocks on floppy discs
5118# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5119# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5120# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5121# OS/2's system install, which has a completely different semantic
5122# ./install, which can be erroneously created by make from ./install.sh.
5123echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5124echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5125if test -z "$INSTALL"; then
5126if test "${ac_cv_path_install+set}" = set; then
5127  echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH
5131do
5132  IFS=$as_save_IFS
5133  test -z "$as_dir" && as_dir=.
5134  # Account for people who put trailing slashes in PATH elements.
5135case $as_dir/ in
5136  ./ | .// | /cC/* | \
5137  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5138  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5139  /usr/ucb/* ) ;;
5140  *)
5141    # OSF1 and SCO ODT 3.0 have their own names for install.
5142    # Don't use installbsd from OSF since it installs stuff as root
5143    # by default.
5144    for ac_prog in ginstall scoinst install; do
5145      for ac_exec_ext in '' $ac_executable_extensions; do
5146        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5147          if test $ac_prog = install &&
5148            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5149            # AIX install.  It has an incompatible calling convention.
5150            :
5151          elif test $ac_prog = install &&
5152            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5153            # program-specific install script used by HP pwplus--don't use.
5154            :
5155          else
5156            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5157            break 3
5158          fi
5159        fi
5160      done
5161    done
5162    ;;
5163esac
5164done
5165
5166
5167fi
5168  if test "${ac_cv_path_install+set}" = set; then
5169    INSTALL=$ac_cv_path_install
5170  else
5171    # As a last resort, use the slow shell script.  We don't cache a
5172    # path for INSTALL within a source directory, because that will
5173    # break other packages using the cache if that directory is
5174    # removed, or if the path is relative.
5175    INSTALL=$ac_install_sh
5176  fi
5177fi
5178echo "$as_me:$LINENO: result: $INSTALL" >&5
5179echo "${ECHO_T}$INSTALL" >&6
5180
5181# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5182# It thinks the first close brace ends the variable substitution.
5183test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5184
5185test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5186
5187test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5188
5189echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5190echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5191# Just in case
5192sleep 1
5193echo timestamp > conftest.file
5194# Do `set' in a subshell so we don't clobber the current shell's
5195# arguments.  Must try -L first in case configure is actually a
5196# symlink; some systems play weird games with the mod time of symlinks
5197# (eg FreeBSD returns the mod time of the symlink's containing
5198# directory).
5199if (
5200   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5201   if test "$*" = "X"; then
5202      # -L didn't work.
5203      set X `ls -t $srcdir/configure conftest.file`
5204   fi
5205   rm -f conftest.file
5206   if test "$*" != "X $srcdir/configure conftest.file" \
5207      && test "$*" != "X conftest.file $srcdir/configure"; then
5208
5209      # If neither matched, then we have a broken ls.  This can happen
5210      # if, for instance, CONFIG_SHELL is bash and it inherits a
5211      # broken ls alias from the environment.  This has actually
5212      # happened.  Such a system could not be considered "sane".
5213      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5214alias in your environment" >&5
5215echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5216alias in your environment" >&2;}
5217   { (exit 1); exit 1; }; }
5218   fi
5219
5220   test "$2" = conftest.file
5221   )
5222then
5223   # Ok.
5224   :
5225else
5226   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5227Check your system clock" >&5
5228echo "$as_me: error: newly created file is older than distributed files!
5229Check your system clock" >&2;}
5230   { (exit 1); exit 1; }; }
5231fi
5232echo "$as_me:$LINENO: result: yes" >&5
5233echo "${ECHO_T}yes" >&6
5234test "$program_prefix" != NONE &&
5235  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5236# Use a double $ so make ignores it.
5237test "$program_suffix" != NONE &&
5238  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5239# Double any \ or $.  echo might interpret backslashes.
5240# By default was `s,x,x', remove it if useless.
5241cat <<\_ACEOF >conftest.sed
5242s/[\\$]/&&/g;s/;s,x,x,$//
5243_ACEOF
5244program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5245rm conftest.sed
5246
5247# expand $ac_aux_dir to an absolute path
5248am_aux_dir=`cd $ac_aux_dir && pwd`
5249
5250test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5251# Use eval to expand $SHELL
5252if eval "$MISSING --run true"; then
5253  am_missing_run="$MISSING --run "
5254else
5255  am_missing_run=
5256  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5257echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5258fi
5259
5260if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5261  # We used to keeping the `.' as first argument, in order to
5262  # allow $(mkdir_p) to be used without argument.  As in
5263  #   $(mkdir_p) $(somedir)
5264  # where $(somedir) is conditionally defined.  However this is wrong
5265  # for two reasons:
5266  #  1. if the package is installed by a user who cannot write `.'
5267  #     make install will fail,
5268  #  2. the above comment should most certainly read
5269  #     $(mkdir_p) $(DESTDIR)$(somedir)
5270  #     so it does not work when $(somedir) is undefined and
5271  #     $(DESTDIR) is not.
5272  #  To support the latter case, we have to write
5273  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5274  #  so the `.' trick is pointless.
5275  mkdir_p='mkdir -p --'
5276else
5277  # On NextStep and OpenStep, the `mkdir' command does not
5278  # recognize any option.  It will interpret all options as
5279  # directories to create, and then abort because `.' already
5280  # exists.
5281  for d in ./-p ./--version;
5282  do
5283    test -d $d && rmdir $d
5284  done
5285  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5286  if test -f "$ac_aux_dir/mkinstalldirs"; then
5287    mkdir_p='$(mkinstalldirs)'
5288  else
5289    mkdir_p='$(install_sh) -d'
5290  fi
5291fi
5292
5293for ac_prog in gawk mawk nawk awk
5294do
5295  # Extract the first word of "$ac_prog", so it can be a program name with args.
5296set dummy $ac_prog; ac_word=$2
5297echo "$as_me:$LINENO: checking for $ac_word" >&5
5298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299if test "${ac_cv_prog_AWK+set}" = set; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302  if test -n "$AWK"; then
5303  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308  IFS=$as_save_IFS
5309  test -z "$as_dir" && as_dir=.
5310  for ac_exec_ext in '' $ac_executable_extensions; do
5311  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312    ac_cv_prog_AWK="$ac_prog"
5313    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314    break 2
5315  fi
5316done
5317done
5318
5319fi
5320fi
5321AWK=$ac_cv_prog_AWK
5322if test -n "$AWK"; then
5323  echo "$as_me:$LINENO: result: $AWK" >&5
5324echo "${ECHO_T}$AWK" >&6
5325else
5326  echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
5328fi
5329
5330  test -n "$AWK" && break
5331done
5332
5333echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5334echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5335set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5336if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5337  echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339  cat >conftest.make <<\_ACEOF
5340all:
5341        @echo 'ac_maketemp="$(MAKE)"'
5342_ACEOF
5343# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5344eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5345if test -n "$ac_maketemp"; then
5346  eval ac_cv_prog_make_${ac_make}_set=yes
5347else
5348  eval ac_cv_prog_make_${ac_make}_set=no
5349fi
5350rm -f conftest.make
5351fi
5352if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5353  echo "$as_me:$LINENO: result: yes" >&5
5354echo "${ECHO_T}yes" >&6
5355  SET_MAKE=
5356else
5357  echo "$as_me:$LINENO: result: no" >&5
5358echo "${ECHO_T}no" >&6
5359  SET_MAKE="MAKE=${MAKE-make}"
5360fi
5361
5362rm -rf .tst 2>/dev/null
5363mkdir .tst 2>/dev/null
5364if test -d .tst; then
5365  am__leading_dot=.
5366else
5367  am__leading_dot=_
5368fi
5369rmdir .tst 2>/dev/null
5370
5371DEPDIR="${am__leading_dot}deps"
5372
5373          ac_config_commands="$ac_config_commands depfiles"
5374
5375
5376am_make=${MAKE-make}
5377cat > confinc << 'END'
5378am__doit:
5379        @echo done
5380.PHONY: am__doit
5381END
5382# If we don't find an include directive, just comment out the code.
5383echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5384echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5385am__include="#"
5386am__quote=
5387_am_result=none
5388# First try GNU make style include.
5389echo "include confinc" > confmf
5390# We grep out `Entering directory' and `Leaving directory'
5391# messages which can occur if `w' ends up in MAKEFLAGS.
5392# In particular we don't look at `^make:' because GNU make might
5393# be invoked under some other name (usually "gmake"), in which
5394# case it prints its new name instead of `make'.
5395if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5396   am__include=include
5397   am__quote=
5398   _am_result=GNU
5399fi
5400# Now try BSD make style include.
5401if test "$am__include" = "#"; then
5402   echo '.include "confinc"' > confmf
5403   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5404      am__include=.include
5405      am__quote="\""
5406      _am_result=BSD
5407   fi
5408fi
5409
5410
5411echo "$as_me:$LINENO: result: $_am_result" >&5
5412echo "${ECHO_T}$_am_result" >&6
5413rm -f confinc confmf
5414
5415# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5416if test "${enable_dependency_tracking+set}" = set; then
5417  enableval="$enable_dependency_tracking"
5418
5419fi;
5420if test "x$enable_dependency_tracking" != xno; then
5421  am_depcomp="$ac_aux_dir/depcomp"
5422  AMDEPBACKSLASH='\'
5423fi
5424
5425
5426if test "x$enable_dependency_tracking" != xno; then
5427  AMDEP_TRUE=
5428  AMDEP_FALSE='#'
5429else
5430  AMDEP_TRUE='#'
5431  AMDEP_FALSE=
5432fi
5433
5434
5435
5436
5437
5438
5439# AC_MSG_NOTICE([Beginning automake initialisation.])
5440# Stuff for automake
5441# test to see if srcdir already configured
5442if test "`cd $srcdir && pwd`" != "`pwd`" &&
5443   test -f $srcdir/config.status; then
5444  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5445echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5446   { (exit 1); exit 1; }; }
5447fi
5448
5449# test whether we have cygpath
5450if test -z "$CYGPATH_W"; then
5451  if (cygpath --version) >/dev/null 2>/dev/null; then
5452    CYGPATH_W='cygpath -w'
5453  else
5454    CYGPATH_W=echo
5455  fi
5456fi
5457
5458
5459# Define the identity of the package.
5460 PACKAGE='thirdpartyblas'
5461 VERSION='trunk'
5462
5463
5464cat >>confdefs.h <<_ACEOF
5465#define PACKAGE "$PACKAGE"
5466_ACEOF
5467
5468
5469cat >>confdefs.h <<_ACEOF
5470#define VERSION "$VERSION"
5471_ACEOF
5472
5473# Some tools Automake needs.
5474
5475ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5476
5477
5478AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5479
5480
5481AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5482
5483
5484AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5485
5486
5487MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5488
5489install_sh=${install_sh-"$am_aux_dir/install-sh"}
5490
5491# Installed binaries are usually stripped using `strip' when the user
5492# run `make install-strip'.  However `strip' might not be the right
5493# tool to use in cross-compilation environments, therefore Automake
5494# will honor the `STRIP' environment variable to overrule this program.
5495if test "$cross_compiling" != no; then
5496  if test -n "$ac_tool_prefix"; then
5497  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5498set dummy ${ac_tool_prefix}strip; ac_word=$2
5499echo "$as_me:$LINENO: checking for $ac_word" >&5
5500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5501if test "${ac_cv_prog_STRIP+set}" = set; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  if test -n "$STRIP"; then
5505  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510  IFS=$as_save_IFS
5511  test -z "$as_dir" && as_dir=.
5512  for ac_exec_ext in '' $ac_executable_extensions; do
5513  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516    break 2
5517  fi
5518done
5519done
5520
5521fi
5522fi
5523STRIP=$ac_cv_prog_STRIP
5524if test -n "$STRIP"; then
5525  echo "$as_me:$LINENO: result: $STRIP" >&5
5526echo "${ECHO_T}$STRIP" >&6
5527else
5528  echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6
5530fi
5531
5532fi
5533if test -z "$ac_cv_prog_STRIP"; then
5534  ac_ct_STRIP=$STRIP
5535  # Extract the first word of "strip", so it can be a program name with args.
5536set dummy strip; ac_word=$2
5537echo "$as_me:$LINENO: checking for $ac_word" >&5
5538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5539if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5540  echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
5542  if test -n "$ac_ct_STRIP"; then
5543  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548  IFS=$as_save_IFS
5549  test -z "$as_dir" && as_dir=.
5550  for ac_exec_ext in '' $ac_executable_extensions; do
5551  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552    ac_cv_prog_ac_ct_STRIP="strip"
5553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5554    break 2
5555  fi
5556done
5557done
5558
5559  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5560fi
5561fi
5562ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5563if test -n "$ac_ct_STRIP"; then
5564  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5565echo "${ECHO_T}$ac_ct_STRIP" >&6
5566else
5567  echo "$as_me:$LINENO: result: no" >&5
5568echo "${ECHO_T}no" >&6
5569fi
5570
5571  STRIP=$ac_ct_STRIP
5572else
5573  STRIP="$ac_cv_prog_STRIP"
5574fi
5575
5576fi
5577INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5578
5579# We need awk for the "check" target.  The system "awk" is bad on
5580# some platforms.
5581# Always define AMTAR for backward compatibility.
5582
5583AMTAR=${AMTAR-"${am_missing_run}tar"}
5584
5585am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5586
5587
5588
5589
5590depcc="$CC"   am_compiler_list=
5591
5592echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5593echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5594if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5595  echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5598  # We make a subdir and do the tests there.  Otherwise we can end up
5599  # making bogus files that we don't know about and never remove.  For
5600  # instance it was reported that on HP-UX the gcc test will end up
5601  # making a dummy file named `D' -- because `-MD' means `put the output
5602  # in D'.
5603  mkdir conftest.dir
5604  # Copy depcomp to subdir because otherwise we won't find it if we're
5605  # using a relative directory.
5606  cp "$am_depcomp" conftest.dir
5607  cd conftest.dir
5608  # We will build objects and dependencies in a subdirectory because
5609  # it helps to detect inapplicable dependency modes.  For instance
5610  # both Tru64's cc and ICC support -MD to output dependencies as a
5611  # side effect of compilation, but ICC will put the dependencies in
5612  # the current directory while Tru64 will put them in the object
5613  # directory.
5614  mkdir sub
5615
5616  am_cv_CC_dependencies_compiler_type=none
5617  if test "$am_compiler_list" = ""; then
5618     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5619  fi
5620  for depmode in $am_compiler_list; do
5621    # Setup a source with many dependencies, because some compilers
5622    # like to wrap large dependency lists on column 80 (with \), and
5623    # we should not choose a depcomp mode which is confused by this.
5624    #
5625    # We need to recreate these files for each test, as the compiler may
5626    # overwrite some of them when testing with obscure command lines.
5627    # This happens at least with the AIX C compiler.
5628    : > sub/conftest.c
5629    for i in 1 2 3 4 5 6; do
5630      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5631      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5632      # Solaris 8's {/usr,}/bin/sh.
5633      touch sub/conftst$i.h
5634    done
5635    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5636
5637    case $depmode in
5638    nosideeffect)
5639      # after this tag, mechanisms are not by side-effect, so they'll
5640      # only be used when explicitly requested
5641      if test "x$enable_dependency_tracking" = xyes; then
5642        continue
5643      else
5644        break
5645      fi
5646      ;;
5647    none) break ;;
5648    esac
5649    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5650    # mode.  It turns out that the SunPro C++ compiler does not properly
5651    # handle `-M -o', and we need to detect this.
5652    if depmode=$depmode \
5653       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5654       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5655       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5656         >/dev/null 2>conftest.err &&
5657       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5658       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5659       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5660      # icc doesn't choke on unknown options, it will just issue warnings
5661      # or remarks (even with -Werror).  So we grep stderr for any message
5662      # that says an option was ignored or not supported.
5663      # When given -MP, icc 7.0 and 7.1 complain thusly:
5664      #   icc: Command line warning: ignoring option '-M'; no argument required
5665      # The diagnosis changed in icc 8.0:
5666      #   icc: Command line remark: option '-MP' not supported
5667      if (grep 'ignoring option' conftest.err ||
5668          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5669        am_cv_CC_dependencies_compiler_type=$depmode
5670        break
5671      fi
5672    fi
5673  done
5674
5675  cd ..
5676  rm -rf conftest.dir
5677else
5678  am_cv_CC_dependencies_compiler_type=none
5679fi
5680
5681fi
5682echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5683echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5684CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5685
5686
5687
5688if
5689  test "x$enable_dependency_tracking" != xno \
5690  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5691  am__fastdepCC_TRUE=
5692  am__fastdepCC_FALSE='#'
5693else
5694  am__fastdepCC_TRUE='#'
5695  am__fastdepCC_FALSE=
5696fi
5697
5698
5699
5700echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5701echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5702    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5703if test "${enable_maintainer_mode+set}" = set; then
5704  enableval="$enable_maintainer_mode"
5705  USE_MAINTAINER_MODE=$enableval
5706else
5707  USE_MAINTAINER_MODE=no
5708fi;
5709  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5710echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5711
5712
5713if test $USE_MAINTAINER_MODE = yes; then
5714  MAINTAINER_MODE_TRUE=
5715  MAINTAINER_MODE_FALSE='#'
5716else
5717  MAINTAINER_MODE_TRUE='#'
5718  MAINTAINER_MODE_FALSE=
5719fi
5720
5721  MAINT=$MAINTAINER_MODE_TRUE
5722
5723
5724
5725coin_have_externals=no
5726if test "$enable_maintainer_mode" = yes; then
5727
5728  # If maintainer mode is chosen, we make sure that the correct versions
5729  # of the tools are used, and that we know where libtool.m4 is (to
5730  # recreate acinclude.m4)
5731
5732
5733  LIBTOOLM4=
5734  # Normally, $HOME
5735  AUTOTOOLS_DFLT=$HOME
5736
5737  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5738echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5739if test "${ac_cv_use_correct_autotools+set}" = set; then
5740  echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742  ac_cv_use_correct_autotools=check
5743fi
5744echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5745echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5746
5747  if test $ac_cv_use_correct_autotools = check; then
5748    ac_cv_use_correct_autotools=yes
5749    # Check if we have autoconf
5750    # Extract the first word of "autoconf", so it can be a program name with args.
5751set dummy autoconf; ac_word=$2
5752echo "$as_me:$LINENO: checking for $ac_word" >&5
5753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5754if test "${ac_cv_prog_have_autoconf+set}" = set; then
5755  echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757  if test -n "$have_autoconf"; then
5758  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763  IFS=$as_save_IFS
5764  test -z "$as_dir" && as_dir=.
5765  for ac_exec_ext in '' $ac_executable_extensions; do
5766  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767    ac_cv_prog_have_autoconf="yes"
5768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769    break 2
5770  fi
5771done
5772done
5773
5774  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5775fi
5776fi
5777have_autoconf=$ac_cv_prog_have_autoconf
5778if test -n "$have_autoconf"; then
5779  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5780echo "${ECHO_T}$have_autoconf" >&6
5781else
5782  echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784fi
5785
5786    if test $have_autoconf = no; then
5787      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5788echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5789   { (exit 1); exit 1; }; }
5790    fi
5791
5792    # Check whether autoconf is the correct version
5793    correct_version='2.59'
5794    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5795    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5796echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5797    autoconf --version > confauto.out 2>&1
5798    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5799      echo "$as_me:$LINENO: result: yes" >&5
5800echo "${ECHO_T}yes" >&6
5801    else
5802      rm -f confauto.out
5803      echo "$as_me:$LINENO: result: no" >&5
5804echo "${ECHO_T}no" >&6
5805      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5806echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5807   { (exit 1); exit 1; }; }
5808    fi
5809    rm -f confauto.out
5810
5811    # Check if the executable autoconf is picked up from the correct location
5812    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5813echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5814    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5815    autoconf_dir=`cd $autoconf_dir; pwd`
5816    if test x$AUTOTOOLS_DIR = x; then
5817      want_dir=$AUTOTOOLS_DFLT/bin
5818    else
5819      want_dir=$AUTOTOOLS_DIR/bin
5820    fi
5821    if test $autoconf_dir = `cd $want_dir; pwd`; then
5822      echo "$as_me:$LINENO: result: yes" >&5
5823echo "${ECHO_T}yes" >&6
5824    else
5825      rm -f confauto.out
5826      echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5829echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5830   { (exit 1); exit 1; }; }
5831    fi
5832
5833    # Check if we have automake
5834    # Extract the first word of "automake", so it can be a program name with args.
5835set dummy automake; ac_word=$2
5836echo "$as_me:$LINENO: checking for $ac_word" >&5
5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838if test "${ac_cv_prog_have_automake+set}" = set; then
5839  echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841  if test -n "$have_automake"; then
5842  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847  IFS=$as_save_IFS
5848  test -z "$as_dir" && as_dir=.
5849  for ac_exec_ext in '' $ac_executable_extensions; do
5850  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851    ac_cv_prog_have_automake="yes"
5852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853    break 2
5854  fi
5855done
5856done
5857
5858  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5859fi
5860fi
5861have_automake=$ac_cv_prog_have_automake
5862if test -n "$have_automake"; then
5863  echo "$as_me:$LINENO: result: $have_automake" >&5
5864echo "${ECHO_T}$have_automake" >&6
5865else
5866  echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6
5868fi
5869
5870    if test $have_automake = no; then
5871      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5872echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5873   { (exit 1); exit 1; }; }
5874    fi
5875
5876    # Check whether automake is the correct version
5877    correct_version='1.9.6'
5878    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5879    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5880echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5881    automake --version > confauto.out 2>&1
5882    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5883      echo "$as_me:$LINENO: result: yes" >&5
5884echo "${ECHO_T}yes" >&6
5885    else
5886      rm -f confauto.out
5887      echo "$as_me:$LINENO: result: no" >&5
5888echo "${ECHO_T}no" >&6
5889      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5890echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5891   { (exit 1); exit 1; }; }
5892    fi
5893    rm -f confauto.out
5894
5895    # Check if the executable automake is picked up from the correct location
5896    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5897echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5898    automake_dir=`which automake | sed -e 's=/automake=='`
5899    automake_dir=`cd $automake_dir; pwd`
5900    if test x$AUTOTOOLS_DIR = x; then
5901      want_dir=$AUTOTOOLS_DFLT/bin
5902    else
5903      want_dir=$AUTOTOOLS_DIR/bin
5904    fi
5905    if test $automake_dir = `cd $want_dir; pwd`; then
5906      echo "$as_me:$LINENO: result: yes" >&5
5907echo "${ECHO_T}yes" >&6
5908    else
5909      rm -f confauto.out
5910      echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6
5912      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5913echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5914   { (exit 1); exit 1; }; }
5915    fi
5916
5917    # Check if this is the correct version of libtool (with escaped dots)
5918    if test x$AUTOTOOLS_DIR = x; then
5919      want_dir=$AUTOTOOLS_DFLT/share
5920    else
5921      want_dir=$AUTOTOOLS_DIR/share
5922    fi
5923    correct_version='1.5.22'
5924    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5925    if test -r $want_dir/libtool/ltmain.sh; then
5926  have_ltmain=yes
5927  :
5928else
5929  have_ltmain=no
5930  :
5931fi
5932
5933    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5934echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5935    if test $have_ltmain = yes; then
5936    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5937        echo "$as_me:$LINENO: result: yes" >&5
5938echo "${ECHO_T}yes" >&6
5939      else
5940        echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6
5942        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5943echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5944   { (exit 1); exit 1; }; }
5945      fi
5946    else
5947      echo "$as_me:$LINENO: result: no" >&5
5948echo "${ECHO_T}no" >&6
5949      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5950echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5951   { (exit 1); exit 1; }; }
5952    fi
5953  fi
5954
5955  # Check if we can find the libtool file
5956  if test x$AUTOTOOLS_DIR = x; then
5957    want_dir=$AUTOTOOLS_DFLT/share
5958  else
5959    want_dir=$AUTOTOOLS_DIR/share
5960  fi
5961  if test -r $want_dir/aclocal/libtool.m4; then
5962  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5963  :
5964else
5965  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5966echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5967   { (exit 1); exit 1; }; }
5968  :
5969fi
5970
5971
5972  # Check if we have an Dependencies file
5973  if test -r $srcdir/Dependencies; then
5974    coin_have_externals=yes
5975  fi
5976  # Check if subversion is installed and understands https
5977  # Extract the first word of "svn", so it can be a program name with args.
5978set dummy svn; ac_word=$2
5979echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981if test "${ac_cv_prog_have_svn+set}" = set; then
5982  echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984  if test -n "$have_svn"; then
5985  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5986else
5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988for as_dir in $PATH
5989do
5990  IFS=$as_save_IFS
5991  test -z "$as_dir" && as_dir=.
5992  for ac_exec_ext in '' $ac_executable_extensions; do
5993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994    ac_cv_prog_have_svn="yes"
5995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996    break 2
5997  fi
5998done
5999done
6000
6001  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6002fi
6003fi
6004have_svn=$ac_cv_prog_have_svn
6005if test -n "$have_svn"; then
6006  echo "$as_me:$LINENO: result: $have_svn" >&5
6007echo "${ECHO_T}$have_svn" >&6
6008else
6009  echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011fi
6012
6013  if test x$have_svn = xyes; then
6014    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6015echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6016if test "${ac_cv_svn_understands_https+set}" = set; then
6017  echo $ECHO_N "(cached) $ECHO_C" >&6
6018else
6019  svn --version > confauto.out 2>&1
6020                    if $EGREP https confauto.out >/dev/null 2>&1; then
6021                      ac_cv_svn_understands_https=yes
6022                    else
6023                      ac_cv_svn_understands_https=no
6024                      have_svn=no
6025                      ac_cv_prog_have_svn=no
6026                    fi
6027                    rm -f confauto.out
6028fi
6029echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6030echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6031  fi
6032
6033  # Find the location of the BuildTools directory
6034  BUILDTOOLSDIR=
6035  if test -r $srcdir/BuildTools/coin.m4; then
6036    BUILDTOOLSDIR=$srcdir/BuildTools
6037  else
6038    if test -r $srcdir/../BuildTools/coin.m4; then
6039      BUILDTOOLSDIR=$srcdir/../BuildTools
6040    else
6041      if test -r $srcdir/../../BuildTools/coin.m4; then
6042        BUILDTOOLSDIR=$srcdir/../../BuildTools
6043      else
6044        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6045echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6046   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6047      fi
6048    fi
6049  fi
6050
6051
6052  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6053  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6054    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6055  fi
6056
6057  # The following variable is set to the name of the directory where
6058  # the autotool scripts are located
6059
6060  AUX_DIR=$ac_aux_dir
6061fi
6062
6063# helpful variable for the base directory of this package
6064abs_source_dir=`cd $srcdir; pwd`
6065
6066
6067# Stuff for example Makefiles
6068if test x$prefix = xNONE; then
6069  full_prefix=$ac_default_prefix
6070else
6071  full_prefix=$prefix
6072fi
6073full_prefix=`cd $full_prefix ; pwd`
6074
6075abs_lib_dir=$full_prefix/lib
6076
6077abs_include_dir=$full_prefix/include
6078
6079abs_bin_dir=$full_prefix/bin
6080
6081
6082
6083if test $coin_have_externals = yes && test x$have_svn = xyes; then
6084  HAVE_EXTERNALS_TRUE=
6085  HAVE_EXTERNALS_FALSE='#'
6086else
6087  HAVE_EXTERNALS_TRUE='#'
6088  HAVE_EXTERNALS_FALSE=
6089fi
6090
6091
6092# AC_MSG_NOTICE([End automake initialisation.])
6093
6094
6095
6096LIBTOOL=
6097if test -r ../libtool; then
6098  coin_config_dir=..
6099  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6100fi
6101if test "x$LIBTOOL" = x; then
6102  if test -r ../../libtool; then
6103    coin_config_dir=../..
6104    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6105  fi
6106fi
6107
6108if test "x$LIBTOOL" = x; then
6109# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6110  # Stuff for libtool
6111  # Check whether --enable-shared or --disable-shared was given.
6112if test "${enable_shared+set}" = set; then
6113  enableval="$enable_shared"
6114  p=${PACKAGE-default}
6115    case $enableval in
6116    yes) enable_shared=yes ;;
6117    no) enable_shared=no ;;
6118    *)
6119      enable_shared=no
6120      # Look at the argument we got.  We use all the common list separators.
6121      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6122      for pkg in $enableval; do
6123        IFS="$lt_save_ifs"
6124        if test "X$pkg" = "X$p"; then
6125          enable_shared=yes
6126        fi
6127      done
6128      IFS="$lt_save_ifs"
6129      ;;
6130    esac
6131else
6132  enable_shared=yes
6133fi;
6134
6135# Check whether --enable-fast-install or --disable-fast-install was given.
6136if test "${enable_fast_install+set}" = set; then
6137  enableval="$enable_fast_install"
6138  p=${PACKAGE-default}
6139    case $enableval in
6140    yes) enable_fast_install=yes ;;
6141    no) enable_fast_install=no ;;
6142    *)
6143      enable_fast_install=no
6144      # Look at the argument we got.  We use all the common list separators.
6145      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6146      for pkg in $enableval; do
6147        IFS="$lt_save_ifs"
6148        if test "X$pkg" = "X$p"; then
6149          enable_fast_install=yes
6150        fi
6151      done
6152      IFS="$lt_save_ifs"
6153      ;;
6154    esac
6155else
6156  enable_fast_install=yes
6157fi;
6158
6159echo "$as_me:$LINENO: checking host system type" >&5
6160echo $ECHO_N "checking host system type... $ECHO_C" >&6
6161if test "${ac_cv_host+set}" = set; then
6162  echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164  ac_cv_host_alias=$host_alias
6165test -z "$ac_cv_host_alias" &&
6166  ac_cv_host_alias=$ac_cv_build_alias
6167ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6168  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6169echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6170   { (exit 1); exit 1; }; }
6171
6172fi
6173echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6174echo "${ECHO_T}$ac_cv_host" >&6
6175host=$ac_cv_host
6176host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6177host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6178host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6179
6180
6181echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6182echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6183if test "${lt_cv_path_SED+set}" = set; then
6184  echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186  # Loop through the user's path and test for sed and gsed.
6187# Then use that list of sed's as ones to test for truncation.
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193  for lt_ac_prog in sed gsed; do
6194    for ac_exec_ext in '' $ac_executable_extensions; do
6195      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6196        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6197      fi
6198    done
6199  done
6200done
6201lt_ac_max=0
6202lt_ac_count=0
6203# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6204# along with /bin/sed that truncates output.
6205for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6206  test ! -f $lt_ac_sed && continue
6207  cat /dev/null > conftest.in
6208  lt_ac_count=0
6209  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6210  # Check for GNU sed and select it if it is found.
6211  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6212    lt_cv_path_SED=$lt_ac_sed
6213    break
6214  fi
6215  while true; do
6216    cat conftest.in conftest.in >conftest.tmp
6217    mv conftest.tmp conftest.in
6218    cp conftest.in conftest.nl
6219    echo >>conftest.nl
6220    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6221    cmp -s conftest.out conftest.nl || break
6222    # 10000 chars as input seems more than enough
6223    test $lt_ac_count -gt 10 && break
6224    lt_ac_count=`expr $lt_ac_count + 1`
6225    if test $lt_ac_count -gt $lt_ac_max; then
6226      lt_ac_max=$lt_ac_count
6227      lt_cv_path_SED=$lt_ac_sed
6228    fi
6229  done
6230done
6231
6232fi
6233
6234SED=$lt_cv_path_SED
6235echo "$as_me:$LINENO: result: $SED" >&5
6236echo "${ECHO_T}$SED" >&6
6237
6238
6239# Check whether --with-gnu-ld or --without-gnu-ld was given.
6240if test "${with_gnu_ld+set}" = set; then
6241  withval="$with_gnu_ld"
6242  test "$withval" = no || with_gnu_ld=yes
6243else
6244  with_gnu_ld=no
6245fi;
6246ac_prog=ld
6247if test "$GCC" = yes; then
6248  # Check if gcc -print-prog-name=ld gives a path.
6249  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6250echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6251  case $host in
6252  *-*-mingw*)
6253    # gcc leaves a trailing carriage return which upsets mingw
6254    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6255  *)
6256    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6257  esac
6258  case $ac_prog in
6259    # Accept absolute paths.
6260    [\\/]* | ?:[\\/]*)
6261      re_direlt='/[^/][^/]*/\.\./'
6262      # Canonicalize the pathname of ld
6263      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6264      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6265        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6266      done
6267      test -z "$LD" && LD="$ac_prog"
6268      ;;
6269  "")
6270    # If it fails, then pretend we aren't using GCC.
6271    ac_prog=ld
6272    ;;
6273  *)
6274    # If it is relative, then search for the first ld in PATH.
6275    with_gnu_ld=unknown
6276    ;;
6277  esac
6278elif test "$with_gnu_ld" = yes; then
6279  echo "$as_me:$LINENO: checking for GNU ld" >&5
6280echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6281else
6282  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6283echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6284fi
6285if test "${lt_cv_path_LD+set}" = set; then
6286  echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288  if test -z "$LD"; then
6289  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6290  for ac_dir in $PATH; do
6291    IFS="$lt_save_ifs"
6292    test -z "$ac_dir" && ac_dir=.
6293    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6294      lt_cv_path_LD="$ac_dir/$ac_prog"
6295      # Check to see if the program is GNU ld.  I'd rather use --version,
6296      # but apparently some variants of GNU ld only accept -v.
6297      # Break only if it was the GNU/non-GNU ld that we prefer.
6298      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6299      *GNU* | *'with BFD'*)
6300        test "$with_gnu_ld" != no && break
6301        ;;
6302      *)
6303        test "$with_gnu_ld" != yes && break
6304        ;;
6305      esac
6306    fi
6307  done
6308  IFS="$lt_save_ifs"
6309else
6310  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6311fi
6312fi
6313
6314LD="$lt_cv_path_LD"
6315if test -n "$LD"; then
6316  echo "$as_me:$LINENO: result: $LD" >&5
6317echo "${ECHO_T}$LD" >&6
6318else
6319  echo "$as_me:$LINENO: result: no" >&5
6320echo "${ECHO_T}no" >&6
6321fi
6322test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6323echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6324   { (exit 1); exit 1; }; }
6325echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6326echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6327if test "${lt_cv_prog_gnu_ld+set}" = set; then
6328  echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6331case `$LD -v 2>&1 </dev/null` in
6332*GNU* | *'with BFD'*)
6333  lt_cv_prog_gnu_ld=yes
6334  ;;
6335*)
6336  lt_cv_prog_gnu_ld=no
6337  ;;
6338esac
6339fi
6340echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6341echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6342with_gnu_ld=$lt_cv_prog_gnu_ld
6343
6344
6345echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6346echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6347if test "${lt_cv_ld_reload_flag+set}" = set; then
6348  echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350  lt_cv_ld_reload_flag='-r'
6351fi
6352echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6353echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6354reload_flag=$lt_cv_ld_reload_flag
6355case $reload_flag in
6356"" | " "*) ;;
6357*) reload_flag=" $reload_flag" ;;
6358esac
6359reload_cmds='$LD$reload_flag -o $output$reload_objs'
6360case $host_os in
6361  darwin*)
6362    if test "$GCC" = yes; then
6363      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6364    else
6365      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6366    fi
6367    ;;
6368esac
6369
6370echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6371echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6372if test "${lt_cv_path_NM+set}" = set; then
6373  echo $ECHO_N "(cached) $ECHO_C" >&6
6374else
6375  if test -n "$NM"; then
6376  # Let the user override the test.
6377  lt_cv_path_NM="$NM"
6378else
6379  lt_nm_to_check="${ac_tool_prefix}nm"
6380  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6381    lt_nm_to_check="$lt_nm_to_check nm"
6382  fi
6383  for lt_tmp_nm in $lt_nm_to_check; do
6384    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6385    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6386      IFS="$lt_save_ifs"
6387      test -z "$ac_dir" && ac_dir=.
6388      tmp_nm="$ac_dir/$lt_tmp_nm"
6389      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6390        # Check to see if the nm accepts a BSD-compat flag.
6391        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6392        #   nm: unknown option "B" ignored
6393        # Tru64's nm complains that /dev/null is an invalid object file
6394        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6395        */dev/null* | *'Invalid file or object type'*)
6396          lt_cv_path_NM="$tmp_nm -B"
6397          break
6398          ;;
6399        *)
6400          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6401          */dev/null*)
6402            lt_cv_path_NM="$tmp_nm -p"
6403            break
6404            ;;
6405          *)
6406            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6407            continue # so that we can try to find one that supports BSD flags
6408            ;;
6409          esac
6410          ;;
6411        esac
6412      fi
6413    done
6414    IFS="$lt_save_ifs"
6415  done
6416  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6417fi
6418fi
6419echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6420echo "${ECHO_T}$lt_cv_path_NM" >&6
6421NM="$lt_cv_path_NM"
6422
6423echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6424echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6425if test "${lt_cv_deplibs_check_method+set}" = set; then
6426  echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
6428  lt_cv_file_magic_cmd='$MAGIC_CMD'
6429lt_cv_file_magic_test_file=
6430lt_cv_deplibs_check_method='unknown'
6431# Need to set the preceding variable on all platforms that support
6432# interlibrary dependencies.
6433# 'none' -- dependencies not supported.
6434# `unknown' -- same as none, but documents that we really don't know.
6435# 'pass_all' -- all dependencies passed with no checks.
6436# 'test_compile' -- check by making test program.
6437# 'file_magic [[regex]]' -- check by looking for files in library path
6438# which responds to the $file_magic_cmd with a given extended regex.
6439# If you have `file' or equivalent on your system and you're not sure
6440# whether `pass_all' will *always* work, you probably want this one.
6441
6442case $host_os in
6443aix4* | aix5*)
6444  lt_cv_deplibs_check_method=pass_all
6445  ;;
6446
6447beos*)
6448  lt_cv_deplibs_check_method=pass_all
6449  ;;
6450
6451bsdi[45]*)
6452  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6453  lt_cv_file_magic_cmd='/usr/bin/file -L'
6454  lt_cv_file_magic_test_file=/shlib/libc.so
6455  ;;
6456
6457cygwin*)
6458  # func_win32_libid is a shell function defined in ltmain.sh
6459  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6460  lt_cv_file_magic_cmd='func_win32_libid'
6461  ;;
6462
6463mingw* | pw32*)
6464  # Base MSYS/MinGW do not provide the 'file' command needed by
6465  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6466  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6467  lt_cv_file_magic_cmd='$OBJDUMP -f'
6468  ;;
6469
6470darwin* | rhapsody*)
6471  lt_cv_deplibs_check_method=pass_all
6472  ;;
6473
6474freebsd* | kfreebsd*-gnu | dragonfly*)
6475  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6476    case $host_cpu in
6477    i*86 )
6478      # Not sure whether the presence of OpenBSD here was a mistake.
6479      # Let's accept both of them until this is cleared up.
6480      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6481      lt_cv_file_magic_cmd=/usr/bin/file
6482      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6483      ;;
6484    esac
6485  else
6486    lt_cv_deplibs_check_method=pass_all
6487  fi
6488  ;;
6489
6490gnu*)
6491  lt_cv_deplibs_check_method=pass_all
6492  ;;
6493
6494hpux10.20* | hpux11*)
6495  lt_cv_file_magic_cmd=/usr/bin/file
6496  case $host_cpu in
6497  ia64*)
6498    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6499    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6500    ;;
6501  hppa*64*)
6502    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]'
6503    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6504    ;;
6505  *)
6506    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6507    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6508    ;;
6509  esac
6510  ;;
6511
6512interix3*)
6513  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6514  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6515  ;;
6516
6517irix5* | irix6* | nonstopux*)
6518  case $LD in
6519  *-32|*"-32 ") libmagic=32-bit;;
6520  *-n32|*"-n32 ") libmagic=N32;;
6521  *-64|*"-64 ") libmagic=64-bit;;
6522  *) libmagic=never-match;;
6523  esac
6524  lt_cv_deplibs_check_method=pass_all
6525  ;;
6526
6527# This must be Linux ELF.
6528linux*)
6529  lt_cv_deplibs_check_method=pass_all
6530  ;;
6531
6532netbsd*)
6533  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6534    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6535  else
6536    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6537  fi
6538  ;;
6539
6540newos6*)
6541  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6542  lt_cv_file_magic_cmd=/usr/bin/file
6543  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6544  ;;
6545
6546nto-qnx*)
6547  lt_cv_deplibs_check_method=unknown
6548  ;;
6549
6550openbsd*)
6551  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6552    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6553  else
6554    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6555  fi
6556  ;;
6557
6558osf3* | osf4* | osf5*)
6559  lt_cv_deplibs_check_method=pass_all
6560  ;;
6561
6562solaris*)
6563  lt_cv_deplibs_check_method=pass_all
6564  ;;
6565
6566sysv4 | sysv4.3*)
6567  case $host_vendor in
6568  motorola)
6569    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]'
6570    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6571    ;;
6572  ncr)
6573    lt_cv_deplibs_check_method=pass_all
6574    ;;
6575  sequent)
6576    lt_cv_file_magic_cmd='/bin/file'
6577    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6578    ;;
6579  sni)
6580    lt_cv_file_magic_cmd='/bin/file'
6581    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6582    lt_cv_file_magic_test_file=/lib/libc.so
6583    ;;
6584  siemens)
6585    lt_cv_deplibs_check_method=pass_all
6586    ;;
6587  pc)
6588    lt_cv_deplibs_check_method=pass_all
6589    ;;
6590  esac
6591  ;;
6592
6593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6594  lt_cv_deplibs_check_method=pass_all
6595  ;;
6596esac
6597
6598fi
6599echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6600echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6601file_magic_cmd=$lt_cv_file_magic_cmd
6602deplibs_check_method=$lt_cv_deplibs_check_method
6603test -z "$deplibs_check_method" && deplibs_check_method=unknown
6604
6605
6606
6607
6608# If no C compiler was specified, use CC.
6609LTCC=${LTCC-"$CC"}
6610
6611# If no C compiler flags were specified, use CFLAGS.
6612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6613
6614# Allow CC to be a program name with arguments.
6615compiler=$CC
6616
6617# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6618if test "${enable_libtool_lock+set}" = set; then
6619  enableval="$enable_libtool_lock"
6620
6621fi;
6622test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6623
6624# Some flags need to be propagated to the compiler or linker for good
6625# libtool support.
6626case $host in
6627ia64-*-hpux*)
6628  # Find out which ABI we are using.
6629  echo 'int i;' > conftest.$ac_ext
6630  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631  (eval $ac_compile) 2>&5
6632  ac_status=$?
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); }; then
6635    case `/usr/bin/file conftest.$ac_objext` in
6636    *ELF-32*)
6637      HPUX_IA64_MODE="32"
6638      ;;
6639    *ELF-64*)
6640      HPUX_IA64_MODE="64"
6641      ;;
6642    esac
6643  fi
6644  rm -rf conftest*
6645  ;;
6646*-*-irix6*)
6647  # Find out which ABI we are using.
6648  echo '#line 6648 "configure"' > conftest.$ac_ext
6649  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650  (eval $ac_compile) 2>&5
6651  ac_status=$?
6652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653  (exit $ac_status); }; then
6654   if test "$lt_cv_prog_gnu_ld" = yes; then
6655    case `/usr/bin/file conftest.$ac_objext` in
6656    *32-bit*)
6657      LD="${LD-ld} -melf32bsmip"
6658      ;;
6659    *N32*)
6660      LD="${LD-ld} -melf32bmipn32"
6661      ;;
6662    *64-bit*)
6663      LD="${LD-ld} -melf64bmip"
6664      ;;
6665    esac
6666   else
6667    case `/usr/bin/file conftest.$ac_objext` in
6668    *32-bit*)
6669      LD="${LD-ld} -32"
6670      ;;
6671    *N32*)
6672      LD="${LD-ld} -n32"
6673      ;;
6674    *64-bit*)
6675      LD="${LD-ld} -64"
6676      ;;
6677    esac
6678   fi
6679  fi
6680  rm -rf conftest*
6681  ;;
6682
6683x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6684  # Find out which ABI we are using.
6685  echo 'int i;' > conftest.$ac_ext
6686  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6687  (eval $ac_compile) 2>&5
6688  ac_status=$?
6689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690  (exit $ac_status); }; then
6691    case `/usr/bin/file conftest.o` in
6692    *32-bit*)
6693      case $host in
6694        x86_64-*linux*)
6695          LD="${LD-ld} -m elf_i386"
6696          ;;
6697        ppc64-*linux*|powerpc64-*linux*)
6698          LD="${LD-ld} -m elf32ppclinux"
6699          ;;
6700        s390x-*linux*)
6701          LD="${LD-ld} -m elf_s390"
6702          ;;
6703        sparc64-*linux*)
6704          LD="${LD-ld} -m elf32_sparc"
6705          ;;
6706      esac
6707      ;;
6708    *64-bit*)
6709      case $host in
6710        x86_64-*linux*)
6711          LD="${LD-ld} -m elf_x86_64"
6712          ;;
6713        ppc*-*linux*|powerpc*-*linux*)
6714          LD="${LD-ld} -m elf64ppc"
6715          ;;
6716        s390*-*linux*)
6717          LD="${LD-ld} -m elf64_s390"
6718          ;;
6719        sparc*-*linux*)
6720          LD="${LD-ld} -m elf64_sparc"
6721          ;;
6722      esac
6723      ;;
6724    esac
6725  fi
6726  rm -rf conftest*
6727  ;;
6728
6729*-*-sco3.2v5*)
6730  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6731  SAVE_CFLAGS="$CFLAGS"
6732  CFLAGS="$CFLAGS -belf"
6733  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6734echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6735if test "${lt_cv_cc_needs_belf+set}" = set; then
6736  echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738  ac_ext=c
6739ac_cpp='$CPP $CPPFLAGS'
6740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743
6744     cat >conftest.$ac_ext <<_ACEOF
6745/* confdefs.h.  */
6746_ACEOF
6747cat confdefs.h >>conftest.$ac_ext
6748cat >>conftest.$ac_ext <<_ACEOF
6749/* end confdefs.h.  */
6750
6751#ifdef F77_DUMMY_MAIN
6752
6753#  ifdef __cplusplus
6754     extern "C"
6755#  endif
6756   int F77_DUMMY_MAIN() { return 1; }
6757
6758#endif
6759int
6760main ()
6761{
6762
6763  ;
6764  return 0;
6765}
6766_ACEOF
6767rm -f conftest.$ac_objext conftest$ac_exeext
6768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769  (eval $ac_link) 2>conftest.er1
6770  ac_status=$?
6771  grep -v '^ *+' conftest.er1 >conftest.err
6772  rm -f conftest.er1
6773  cat conftest.err >&5
6774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775  (exit $ac_status); } &&
6776         { ac_try='test -z "$ac_c_werror_flag"
6777                         || test ! -s conftest.err'
6778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779  (eval $ac_try) 2>&5
6780  ac_status=$?
6781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782  (exit $ac_status); }; } &&
6783         { ac_try='test -s conftest$ac_exeext'
6784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785  (eval $ac_try) 2>&5
6786  ac_status=$?
6787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788  (exit $ac_status); }; }; then
6789  lt_cv_cc_needs_belf=yes
6790else
6791  echo "$as_me: failed program was:" >&5
6792sed 's/^/| /' conftest.$ac_ext >&5
6793
6794lt_cv_cc_needs_belf=no
6795fi
6796rm -f conftest.err conftest.$ac_objext \
6797      conftest$ac_exeext conftest.$ac_ext
6798     ac_ext=c
6799ac_cpp='$CPP $CPPFLAGS'
6800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6802ac_compiler_gnu=$ac_cv_c_compiler_gnu
6803
6804fi
6805echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6806echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6807  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6808    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6809    CFLAGS="$SAVE_CFLAGS"
6810  fi
6811  ;;
6812sparc*-*solaris*)
6813  # Find out which ABI we are using.
6814  echo 'int i;' > conftest.$ac_ext
6815  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816  (eval $ac_compile) 2>&5
6817  ac_status=$?
6818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819  (exit $ac_status); }; then
6820    case `/usr/bin/file conftest.o` in
6821    *64-bit*)
6822      case $lt_cv_prog_gnu_ld in
6823      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6824      *)    LD="${LD-ld} -64" ;;
6825      esac
6826      ;;
6827    esac
6828  fi
6829  rm -rf conftest*
6830  ;;
6831
6832
6833esac
6834
6835need_locks="$enable_libtool_lock"
6836
6837
6838ac_ext=c
6839ac_cpp='$CPP $CPPFLAGS'
6840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842ac_compiler_gnu=$ac_cv_c_compiler_gnu
6843echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6844echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6845# On Suns, sometimes $CPP names a directory.
6846if test -n "$CPP" && test -d "$CPP"; then
6847  CPP=
6848fi
6849if test -z "$CPP"; then
6850  if test "${ac_cv_prog_CPP+set}" = set; then
6851  echo $ECHO_N "(cached) $ECHO_C" >&6
6852else
6853      # Double quotes because CPP needs to be expanded
6854    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6855    do
6856      ac_preproc_ok=false
6857for ac_c_preproc_warn_flag in '' yes
6858do
6859  # Use a header file that comes with gcc, so configuring glibc
6860  # with a fresh cross-compiler works.
6861  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6862  # <limits.h> exists even on freestanding compilers.
6863  # On the NeXT, cc -E runs the code through the compiler's parser,
6864  # not just through cpp. "Syntax error" is here to catch this case.
6865  cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h.  */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h.  */
6871#ifdef __STDC__
6872# include <limits.h>
6873#else
6874# include <assert.h>
6875#endif
6876                     Syntax error
6877_ACEOF
6878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6879  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6880  ac_status=$?
6881  grep -v '^ *+' conftest.er1 >conftest.err
6882  rm -f conftest.er1
6883  cat conftest.err >&5
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); } >/dev/null; then
6886  if test -s conftest.err; then
6887    ac_cpp_err=$ac_c_preproc_warn_flag
6888    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6889  else
6890    ac_cpp_err=
6891  fi
6892else
6893  ac_cpp_err=yes
6894fi
6895if test -z "$ac_cpp_err"; then
6896  :
6897else
6898  echo "$as_me: failed program was:" >&5
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
6901  # Broken: fails on valid input.
6902continue
6903fi
6904rm -f conftest.err conftest.$ac_ext
6905
6906  # OK, works on sane cases.  Now check whether non-existent headers
6907  # can be detected and how.
6908  cat >conftest.$ac_ext <<_ACEOF
6909/* confdefs.h.  */
6910_ACEOF
6911cat confdefs.h >>conftest.$ac_ext
6912cat >>conftest.$ac_ext <<_ACEOF
6913/* end confdefs.h.  */
6914#include <ac_nonexistent.h>
6915_ACEOF
6916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6917  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6918  ac_status=$?
6919  grep -v '^ *+' conftest.er1 >conftest.err
6920  rm -f conftest.er1
6921  cat conftest.err >&5
6922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923  (exit $ac_status); } >/dev/null; then
6924  if test -s conftest.err; then
6925    ac_cpp_err=$ac_c_preproc_warn_flag
6926    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6927  else
6928    ac_cpp_err=
6929  fi
6930else
6931  ac_cpp_err=yes
6932fi
6933if test -z "$ac_cpp_err"; then
6934  # Broken: success on invalid input.
6935continue
6936else
6937  echo "$as_me: failed program was:" >&5
6938sed 's/^/| /' conftest.$ac_ext >&5
6939
6940  # Passes both tests.
6941ac_preproc_ok=:
6942break
6943fi
6944rm -f conftest.err conftest.$ac_ext
6945
6946done
6947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6948rm -f conftest.err conftest.$ac_ext
6949if $ac_preproc_ok; then
6950  break
6951fi
6952
6953    done
6954    ac_cv_prog_CPP=$CPP
6955
6956fi
6957  CPP=$ac_cv_prog_CPP
6958else
6959  ac_cv_prog_CPP=$CPP
6960fi
6961echo "$as_me:$LINENO: result: $CPP" >&5
6962echo "${ECHO_T}$CPP" >&6
6963ac_preproc_ok=false
6964for ac_c_preproc_warn_flag in '' yes
6965do
6966  # Use a header file that comes with gcc, so configuring glibc
6967  # with a fresh cross-compiler works.
6968  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6969  # <limits.h> exists even on freestanding compilers.
6970  # On the NeXT, cc -E runs the code through the compiler's parser,
6971  # not just through cpp. "Syntax error" is here to catch this case.
6972  cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h.  */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h.  */
6978#ifdef __STDC__
6979# include <limits.h>
6980#else
6981# include <assert.h>
6982#endif
6983                     Syntax error
6984_ACEOF
6985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6986  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6987  ac_status=$?
6988  grep -v '^ *+' conftest.er1 >conftest.err
6989  rm -f conftest.er1
6990  cat conftest.err >&5
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); } >/dev/null; then
6993  if test -s conftest.err; then
6994    ac_cpp_err=$ac_c_preproc_warn_flag
6995    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6996  else
6997    ac_cpp_err=
6998  fi
6999else
7000  ac_cpp_err=yes
7001fi
7002if test -z "$ac_cpp_err"; then
7003  :
7004else
7005  echo "$as_me: failed program was:" >&5
7006sed 's/^/| /' conftest.$ac_ext >&5
7007
7008  # Broken: fails on valid input.
7009continue
7010fi
7011rm -f conftest.err conftest.$ac_ext
7012
7013  # OK, works on sane cases.  Now check whether non-existent headers
7014  # can be detected and how.
7015  cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h.  */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h.  */
7021#include <ac_nonexistent.h>
7022_ACEOF
7023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7024  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7025  ac_status=$?
7026  grep -v '^ *+' conftest.er1 >conftest.err
7027  rm -f conftest.er1
7028  cat conftest.err >&5
7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030  (exit $ac_status); } >/dev/null; then
7031  if test -s conftest.err; then
7032    ac_cpp_err=$ac_c_preproc_warn_flag
7033    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7034  else
7035    ac_cpp_err=
7036  fi
7037else
7038  ac_cpp_err=yes
7039fi
7040if test -z "$ac_cpp_err"; then
7041  # Broken: success on invalid input.
7042continue
7043else
7044  echo "$as_me: failed program was:" >&5
7045sed 's/^/| /' conftest.$ac_ext >&5
7046
7047  # Passes both tests.
7048ac_preproc_ok=:
7049break
7050fi
7051rm -f conftest.err conftest.$ac_ext
7052
7053done
7054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7055rm -f conftest.err conftest.$ac_ext
7056if $ac_preproc_ok; then
7057  :
7058else
7059  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7060See \`config.log' for more details." >&5
7061echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7062See \`config.log' for more details." >&2;}
7063   { (exit 1); exit 1; }; }
7064fi
7065
7066ac_ext=c
7067ac_cpp='$CPP $CPPFLAGS'
7068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7070ac_compiler_gnu=$ac_cv_c_compiler_gnu
7071
7072
7073echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7074echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7075if test "${ac_cv_header_stdc+set}" = set; then
7076  echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078  cat >conftest.$ac_ext <<_ACEOF
7079/* confdefs.h.  */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h.  */
7084#include <stdlib.h>
7085#include <stdarg.h>
7086#include <string.h>
7087#include <float.h>
7088
7089#ifdef F77_DUMMY_MAIN
7090
7091#  ifdef __cplusplus
7092     extern "C"
7093#  endif
7094   int F77_DUMMY_MAIN() { return 1; }
7095
7096#endif
7097int
7098main ()
7099{
7100
7101  ;
7102  return 0;
7103}
7104_ACEOF
7105rm -f conftest.$ac_objext
7106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107  (eval $ac_compile) 2>conftest.er1
7108  ac_status=$?
7109  grep -v '^ *+' conftest.er1 >conftest.err
7110  rm -f conftest.er1
7111  cat conftest.err >&5
7112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113  (exit $ac_status); } &&
7114         { ac_try='test -z "$ac_c_werror_flag"
7115                         || test ! -s conftest.err'
7116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117  (eval $ac_try) 2>&5
7118  ac_status=$?
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); }; } &&
7121         { ac_try='test -s conftest.$ac_objext'
7122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123  (eval $ac_try) 2>&5
7124  ac_status=$?
7125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126  (exit $ac_status); }; }; then
7127  ac_cv_header_stdc=yes
7128else
7129  echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5
7131
7132ac_cv_header_stdc=no
7133fi
7134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7135
7136if test $ac_cv_header_stdc = yes; then
7137  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7138  cat >conftest.$ac_ext <<_ACEOF
7139/* confdefs.h.  */
7140_ACEOF
7141cat confdefs.h >>conftest.$ac_ext
7142cat >>conftest.$ac_ext <<_ACEOF
7143/* end confdefs.h.  */
7144#include <string.h>
7145
7146_ACEOF
7147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7148  $EGREP "memchr" >/dev/null 2>&1; then
7149  :
7150else
7151  ac_cv_header_stdc=no
7152fi
7153rm -f conftest*
7154
7155fi
7156
7157if test $ac_cv_header_stdc = yes; then
7158  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7159  cat >conftest.$ac_ext <<_ACEOF
7160/* confdefs.h.  */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h.  */
7165#include <stdlib.h>
7166
7167_ACEOF
7168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169  $EGREP "free" >/dev/null 2>&1; then
7170  :
7171else
7172  ac_cv_header_stdc=no
7173fi
7174rm -f conftest*
7175
7176fi
7177
7178if test $ac_cv_header_stdc = yes; then
7179  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7180  if test "$cross_compiling" = yes; then
7181  :
7182else
7183  cat >conftest.$ac_ext <<_ACEOF
7184/* confdefs.h.  */
7185_ACEOF
7186cat confdefs.h >>conftest.$ac_ext
7187cat >>conftest.$ac_ext <<_ACEOF
7188/* end confdefs.h.  */
7189#include <ctype.h>
7190#if ((' ' & 0x0FF) == 0x020)
7191# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7192# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7193#else
7194# define ISLOWER(c) \
7195                   (('a' <= (c) && (c) <= 'i') \
7196                     || ('j' <= (c) && (c) <= 'r') \
7197                     || ('s' <= (c) && (c) <= 'z'))
7198# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7199#endif
7200
7201#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7202int
7203main ()
7204{
7205  int i;
7206  for (i = 0; i < 256; i++)
7207    if (XOR (islower (i), ISLOWER (i))
7208        || toupper (i) != TOUPPER (i))
7209      exit(2);
7210  exit (0);
7211}
7212_ACEOF
7213rm -f conftest$ac_exeext
7214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7215  (eval $ac_link) 2>&5
7216  ac_status=$?
7217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; }; then
7224  :
7225else
7226  echo "$as_me: program exited with status $ac_status" >&5
7227echo "$as_me: failed program was:" >&5
7228sed 's/^/| /' conftest.$ac_ext >&5
7229
7230( exit $ac_status )
7231ac_cv_header_stdc=no
7232fi
7233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7234fi
7235fi
7236fi
7237echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7238echo "${ECHO_T}$ac_cv_header_stdc" >&6
7239if test $ac_cv_header_stdc = yes; then
7240
7241cat >>confdefs.h <<\_ACEOF
7242#define STDC_HEADERS 1
7243_ACEOF
7244
7245fi
7246
7247# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7258                  inttypes.h stdint.h unistd.h
7259do
7260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7261echo "$as_me:$LINENO: checking for $ac_header" >&5
7262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7263if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264  echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266  cat >conftest.$ac_ext <<_ACEOF
7267/* confdefs.h.  */
7268_ACEOF
7269cat confdefs.h >>conftest.$ac_ext
7270cat >>conftest.$ac_ext <<_ACEOF
7271/* end confdefs.h.  */
7272$ac_includes_default
7273
7274#include <$ac_header>
7275_ACEOF
7276rm -f conftest.$ac_objext
7277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278  (eval $ac_compile) 2>conftest.er1
7279  ac_status=$?
7280  grep -v '^ *+' conftest.er1 >conftest.err
7281  rm -f conftest.er1
7282  cat conftest.err >&5
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); } &&
7285         { ac_try='test -z "$ac_c_werror_flag"
7286                         || test ! -s conftest.err'
7287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288  (eval $ac_try) 2>&5
7289  ac_status=$?
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); }; } &&
7292         { ac_try='test -s conftest.$ac_objext'
7293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294  (eval $ac_try) 2>&5
7295  ac_status=$?
7296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297  (exit $ac_status); }; }; then
7298  eval "$as_ac_Header=yes"
7299else
7300  echo "$as_me: failed program was:" >&5
7301sed 's/^/| /' conftest.$ac_ext >&5
7302
7303eval "$as_ac_Header=no"
7304fi
7305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306fi
7307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7309if test `eval echo '${'$as_ac_Header'}'` = yes; then
7310  cat >>confdefs.h <<_ACEOF
7311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7312_ACEOF
7313
7314fi
7315
7316done
7317
7318
7319
7320for ac_header in dlfcn.h
7321do
7322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7323if eval "test \"\${$as_ac_Header+set}\" = set"; then
7324  echo "$as_me:$LINENO: checking for $ac_header" >&5
7325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7326if eval "test \"\${$as_ac_Header+set}\" = set"; then
7327  echo $ECHO_N "(cached) $ECHO_C" >&6
7328fi
7329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7331else
7332  # Is the header compilable?
7333echo "$as_me:$LINENO: checking $ac_header usability" >&5
7334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7335cat >conftest.$ac_ext <<_ACEOF
7336/* confdefs.h.  */
7337_ACEOF
7338cat confdefs.h >>conftest.$ac_ext
7339cat >>conftest.$ac_ext <<_ACEOF
7340/* end confdefs.h.  */
7341$ac_includes_default
7342#include <$ac_header>
7343_ACEOF
7344rm -f conftest.$ac_objext
7345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346  (eval $ac_compile) 2>conftest.er1
7347  ac_status=$?
7348  grep -v '^ *+' conftest.er1 >conftest.err
7349  rm -f conftest.er1
7350  cat conftest.err >&5
7351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352  (exit $ac_status); } &&
7353         { ac_try='test -z "$ac_c_werror_flag"
7354                         || test ! -s conftest.err'
7355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356  (eval $ac_try) 2>&5
7357  ac_status=$?
7358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359  (exit $ac_status); }; } &&
7360         { ac_try='test -s conftest.$ac_objext'
7361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362  (eval $ac_try) 2>&5
7363  ac_status=$?
7364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365  (exit $ac_status); }; }; then
7366  ac_header_compiler=yes
7367else
7368  echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371ac_header_compiler=no
7372fi
7373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7375echo "${ECHO_T}$ac_header_compiler" >&6
7376
7377# Is the header present?
7378echo "$as_me:$LINENO: checking $ac_header presence" >&5
7379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7380cat >conftest.$ac_ext <<_ACEOF
7381/* confdefs.h.  */
7382_ACEOF
7383cat confdefs.h >>conftest.$ac_ext
7384cat >>conftest.$ac_ext <<_ACEOF
7385/* end confdefs.h.  */
7386#include <$ac_header>
7387_ACEOF
7388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7389  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7390  ac_status=$?
7391  grep -v '^ *+' conftest.er1 >conftest.err
7392  rm -f conftest.er1
7393  cat conftest.err >&5
7394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395  (exit $ac_status); } >/dev/null; then
7396  if test -s conftest.err; then
7397    ac_cpp_err=$ac_c_preproc_warn_flag
7398    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7399  else
7400    ac_cpp_err=
7401  fi
7402else
7403  ac_cpp_err=yes
7404fi
7405if test -z "$ac_cpp_err"; then
7406  ac_header_preproc=yes
7407else
7408  echo "$as_me: failed program was:" >&5
7409sed 's/^/| /' conftest.$ac_ext >&5
7410
7411  ac_header_preproc=no
7412fi
7413rm -f conftest.err conftest.$ac_ext
7414echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7415echo "${ECHO_T}$ac_header_preproc" >&6
7416
7417# So?  What about this header?
7418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7419  yes:no: )
7420    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7421echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7422    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7423echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7424    ac_header_preproc=yes
7425    ;;
7426  no:yes:* )
7427    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7428echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7429    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7430echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7431    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7432echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7433    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7434echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7435    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7437    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7438echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7439    (
7440      cat <<\_ASBOX
7441## --------------------------------------------------------------- ##
7442## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7443## --------------------------------------------------------------- ##
7444_ASBOX
7445    ) |
7446      sed "s/^/$as_me: WARNING:     /" >&2
7447    ;;
7448esac
7449echo "$as_me:$LINENO: checking for $ac_header" >&5
7450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7451if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452  echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454  eval "$as_ac_Header=\$ac_header_preproc"
7455fi
7456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7458
7459fi
7460if test `eval echo '${'$as_ac_Header'}'` = yes; then
7461  cat >>confdefs.h <<_ACEOF
7462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7463_ACEOF
7464
7465fi
7466
7467done
7468
7469ac_ext=cc
7470ac_cpp='$CXXCPP $CPPFLAGS'
7471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7474if test -n "$ac_tool_prefix"; then
7475  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7476  do
7477    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7479echo "$as_me:$LINENO: checking for $ac_word" >&5
7480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7481if test "${ac_cv_prog_CXX+set}" = set; then
7482  echo $ECHO_N "(cached) $ECHO_C" >&6
7483else
7484  if test -n "$CXX"; then
7485  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7486else
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490  IFS=$as_save_IFS
7491  test -z "$as_dir" && as_dir=.
7492  for ac_exec_ext in '' $ac_executable_extensions; do
7493  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7495    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496    break 2
7497  fi
7498done
7499done
7500
7501fi
7502fi
7503CXX=$ac_cv_prog_CXX
7504if test -n "$CXX"; then
7505  echo "$as_me:$LINENO: result: $CXX" >&5
7506echo "${ECHO_T}$CXX" >&6
7507else
7508  echo "$as_me:$LINENO: result: no" >&5
7509echo "${ECHO_T}no" >&6
7510fi
7511
7512    test -n "$CXX" && break
7513  done
7514fi
7515if test -z "$CXX"; then
7516  ac_ct_CXX=$CXX
7517  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7518do
7519  # Extract the first word of "$ac_prog", so it can be a program name with args.
7520set dummy $ac_prog; ac_word=$2
7521echo "$as_me:$LINENO: checking for $ac_word" >&5
7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7523if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7524  echo $ECHO_N "(cached) $ECHO_C" >&6
7525else
7526  if test -n "$ac_ct_CXX"; then
7527  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7528else
7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532  IFS=$as_save_IFS
7533  test -z "$as_dir" && as_dir=.
7534  for ac_exec_ext in '' $ac_executable_extensions; do
7535  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536    ac_cv_prog_ac_ct_CXX="$ac_prog"
7537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538    break 2
7539  fi
7540done
7541done
7542
7543fi
7544fi
7545ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7546if test -n "$ac_ct_CXX"; then
7547  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7548echo "${ECHO_T}$ac_ct_CXX" >&6
7549else
7550  echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
7552fi
7553
7554  test -n "$ac_ct_CXX" && break
7555done
7556test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7557
7558  CXX=$ac_ct_CXX
7559fi
7560
7561
7562# Provide some information about the compiler.
7563echo "$as_me:$LINENO:" \
7564     "checking for C++ compiler version" >&5
7565ac_compiler=`set X $ac_compile; echo $2`
7566{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7567  (eval $ac_compiler --version </dev/null >&5) 2>&5
7568  ac_status=$?
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); }
7571{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7572  (eval $ac_compiler -v </dev/null >&5) 2>&5
7573  ac_status=$?
7574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575  (exit $ac_status); }
7576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7577  (eval $ac_compiler -V </dev/null >&5) 2>&5
7578  ac_status=$?
7579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580  (exit $ac_status); }
7581
7582echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7583echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7584if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7585  echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587  cat >conftest.$ac_ext <<_ACEOF
7588/* confdefs.h.  */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h.  */
7593
7594#ifdef F77_DUMMY_MAIN
7595
7596#  ifdef __cplusplus
7597     extern "C"
7598#  endif
7599   int F77_DUMMY_MAIN() { return 1; }
7600
7601#endif
7602int
7603main ()
7604{
7605#ifndef __GNUC__
7606       choke me
7607#endif
7608
7609  ;
7610  return 0;
7611}
7612_ACEOF
7613rm -f conftest.$ac_objext
7614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615  (eval $ac_compile) 2>conftest.er1
7616  ac_status=$?
7617  grep -v '^ *+' conftest.er1 >conftest.err
7618  rm -f conftest.er1
7619  cat conftest.err >&5
7620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621  (exit $ac_status); } &&
7622         { ac_try='test -z "$ac_cxx_werror_flag"
7623                         || test ! -s conftest.err'
7624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625  (eval $ac_try) 2>&5
7626  ac_status=$?
7627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628  (exit $ac_status); }; } &&
7629         { ac_try='test -s conftest.$ac_objext'
7630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631  (eval $ac_try) 2>&5
7632  ac_status=$?
7633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634  (exit $ac_status); }; }; then
7635  ac_compiler_gnu=yes
7636else
7637  echo "$as_me: failed program was:" >&5
7638sed 's/^/| /' conftest.$ac_ext >&5
7639
7640ac_compiler_gnu=no
7641fi
7642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7643ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7644
7645fi
7646echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7647echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7648GXX=`test $ac_compiler_gnu = yes && echo yes`
7649ac_test_CXXFLAGS=${CXXFLAGS+set}
7650ac_save_CXXFLAGS=$CXXFLAGS
7651CXXFLAGS="-g"
7652echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7653echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7654if test "${ac_cv_prog_cxx_g+set}" = set; then
7655  echo $ECHO_N "(cached) $ECHO_C" >&6
7656else
7657  cat >conftest.$ac_ext <<_ACEOF
7658/* confdefs.h.  */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
7662/* end confdefs.h.  */
7663
7664#ifdef F77_DUMMY_MAIN
7665
7666#  ifdef __cplusplus
7667     extern "C"
7668#  endif
7669   int F77_DUMMY_MAIN() { return 1; }
7670
7671#endif
7672int
7673main ()
7674{
7675
7676  ;
7677  return 0;
7678}
7679_ACEOF
7680rm -f conftest.$ac_objext
7681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682  (eval $ac_compile) 2>conftest.er1
7683  ac_status=$?
7684  grep -v '^ *+' conftest.er1 >conftest.err
7685  rm -f conftest.er1
7686  cat conftest.err >&5
7687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688  (exit $ac_status); } &&
7689         { ac_try='test -z "$ac_cxx_werror_flag"
7690                         || test ! -s conftest.err'
7691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692  (eval $ac_try) 2>&5
7693  ac_status=$?
7694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695  (exit $ac_status); }; } &&
7696         { ac_try='test -s conftest.$ac_objext'
7697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698  (eval $ac_try) 2>&5
7699  ac_status=$?
7700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701  (exit $ac_status); }; }; then
7702  ac_cv_prog_cxx_g=yes
7703else
7704  echo "$as_me: failed program was:" >&5
7705sed 's/^/| /' conftest.$ac_ext >&5
7706
7707ac_cv_prog_cxx_g=no
7708fi
7709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7710fi
7711echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7712echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7713if test "$ac_test_CXXFLAGS" = set; then
7714  CXXFLAGS=$ac_save_CXXFLAGS
7715elif test $ac_cv_prog_cxx_g = yes; then
7716  if test "$GXX" = yes; then
7717    CXXFLAGS="-g -O2"
7718  else
7719    CXXFLAGS="-g"
7720  fi
7721else
7722  if test "$GXX" = yes; then
7723    CXXFLAGS="-O2"
7724  else
7725    CXXFLAGS=
7726  fi
7727fi
7728for ac_declaration in \
7729   '' \
7730   'extern "C" void std::exit (int) throw (); using std::exit;' \
7731   'extern "C" void std::exit (int); using std::exit;' \
7732   'extern "C" void exit (int) throw ();' \
7733   'extern "C" void exit (int);' \
7734   'void exit (int);'
7735do
7736  cat >conftest.$ac_ext <<_ACEOF
7737/* confdefs.h.  */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h.  */
7742$ac_declaration
7743#include <stdlib.h>
7744#ifdef F77_DUMMY_MAIN
7745
7746#  ifdef __cplusplus
7747     extern "C"
7748#  endif
7749   int F77_DUMMY_MAIN() { return 1; }
7750
7751#endif
7752int
7753main ()
7754{
7755exit (42);
7756  ;
7757  return 0;
7758}
7759_ACEOF
7760rm -f conftest.$ac_objext
7761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762  (eval $ac_compile) 2>conftest.er1
7763  ac_status=$?
7764  grep -v '^ *+' conftest.er1 >conftest.err
7765  rm -f conftest.er1
7766  cat conftest.err >&5
7767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768  (exit $ac_status); } &&
7769         { ac_try='test -z "$ac_cxx_werror_flag"
7770                         || test ! -s conftest.err'
7771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772  (eval $ac_try) 2>&5
7773  ac_status=$?
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); }; } &&
7776         { ac_try='test -s conftest.$ac_objext'
7777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778  (eval $ac_try) 2>&5
7779  ac_status=$?
7780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781  (exit $ac_status); }; }; then
7782  :
7783else
7784  echo "$as_me: failed program was:" >&5
7785sed 's/^/| /' conftest.$ac_ext >&5
7786
7787continue
7788fi
7789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7790  cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h.  */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h.  */
7796$ac_declaration
7797#ifdef F77_DUMMY_MAIN
7798
7799#  ifdef __cplusplus
7800     extern "C"
7801#  endif
7802   int F77_DUMMY_MAIN() { return 1; }
7803
7804#endif
7805int
7806main ()
7807{
7808exit (42);
7809  ;
7810  return 0;
7811}
7812_ACEOF
7813rm -f conftest.$ac_objext
7814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7815  (eval $ac_compile) 2>conftest.er1
7816  ac_status=$?
7817  grep -v '^ *+' conftest.er1 >conftest.err
7818  rm -f conftest.er1
7819  cat conftest.err >&5
7820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821  (exit $ac_status); } &&
7822         { ac_try='test -z "$ac_cxx_werror_flag"
7823                         || test ! -s conftest.err'
7824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825  (eval $ac_try) 2>&5
7826  ac_status=$?
7827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828  (exit $ac_status); }; } &&
7829         { ac_try='test -s conftest.$ac_objext'
7830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831  (eval $ac_try) 2>&5
7832  ac_status=$?
7833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834  (exit $ac_status); }; }; then
7835  break
7836else
7837  echo "$as_me: failed program was:" >&5
7838sed 's/^/| /' conftest.$ac_ext >&5
7839
7840fi
7841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7842done
7843rm -f conftest*
7844if test -n "$ac_declaration"; then
7845  echo '#ifdef __cplusplus' >>confdefs.h
7846  echo $ac_declaration      >>confdefs.h
7847  echo '#endif'             >>confdefs.h
7848fi
7849
7850ac_ext=cc
7851ac_cpp='$CXXCPP $CPPFLAGS'
7852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7855
7856depcc="$CXX"  am_compiler_list=
7857
7858echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7859echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7860if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7861  echo $ECHO_N "(cached) $ECHO_C" >&6
7862else
7863  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7864  # We make a subdir and do the tests there.  Otherwise we can end up
7865  # making bogus files that we don't know about and never remove.  For
7866  # instance it was reported that on HP-UX the gcc test will end up
7867  # making a dummy file named `D' -- because `-MD' means `put the output
7868  # in D'.
7869  mkdir conftest.dir
7870  # Copy depcomp to subdir because otherwise we won't find it if we're
7871  # using a relative directory.
7872  cp "$am_depcomp" conftest.dir
7873  cd conftest.dir
7874  # We will build objects and dependencies in a subdirectory because
7875  # it helps to detect inapplicable dependency modes.  For instance
7876  # both Tru64's cc and ICC support -MD to output dependencies as a
7877  # side effect of compilation, but ICC will put the dependencies in
7878  # the current directory while Tru64 will put them in the object
7879  # directory.
7880  mkdir sub
7881
7882  am_cv_CXX_dependencies_compiler_type=none
7883  if test "$am_compiler_list" = ""; then
7884     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7885  fi
7886  for depmode in $am_compiler_list; do
7887    # Setup a source with many dependencies, because some compilers
7888    # like to wrap large dependency lists on column 80 (with \), and
7889    # we should not choose a depcomp mode which is confused by this.
7890    #
7891    # We need to recreate these files for each test, as the compiler may
7892    # overwrite some of them when testing with obscure command lines.
7893    # This happens at least with the AIX C compiler.
7894    : > sub/conftest.c
7895    for i in 1 2 3 4 5 6; do
7896      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7897      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7898      # Solaris 8's {/usr,}/bin/sh.
7899      touch sub/conftst$i.h
7900    done
7901    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7902
7903    case $depmode in
7904    nosideeffect)
7905      # after this tag, mechanisms are not by side-effect, so they'll
7906      # only be used when explicitly requested
7907      if test "x$enable_dependency_tracking" = xyes; then
7908        continue
7909      else
7910        break
7911      fi
7912      ;;
7913    none) break ;;
7914    esac
7915    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7916    # mode.  It turns out that the SunPro C++ compiler does not properly
7917    # handle `-M -o', and we need to detect this.
7918    if depmode=$depmode \
7919       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7920       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7921       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7922         >/dev/null 2>conftest.err &&
7923       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7924       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7925       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7926      # icc doesn't choke on unknown options, it will just issue warnings
7927      # or remarks (even with -Werror).  So we grep stderr for any message
7928      # that says an option was ignored or not supported.
7929      # When given -MP, icc 7.0 and 7.1 complain thusly:
7930      #   icc: Command line warning: ignoring option '-M'; no argument required
7931      # The diagnosis changed in icc 8.0:
7932      #   icc: Command line remark: option '-MP' not supported
7933      if (grep 'ignoring option' conftest.err ||
7934          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7935        am_cv_CXX_dependencies_compiler_type=$depmode
7936        break
7937      fi
7938    fi
7939  done
7940
7941  cd ..
7942  rm -rf conftest.dir
7943else
7944  am_cv_CXX_dependencies_compiler_type=none
7945fi
7946
7947fi
7948echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7949echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7950CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7951
7952
7953
7954if
7955  test "x$enable_dependency_tracking" != xno \
7956  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7957  am__fastdepCXX_TRUE=
7958  am__fastdepCXX_FALSE='#'
7959else
7960  am__fastdepCXX_TRUE='#'
7961  am__fastdepCXX_FALSE=
7962fi
7963
7964
7965
7966
7967if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7968    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7969    (test "X$CXX" != "Xg++"))) ; then
7970  ac_ext=cc
7971ac_cpp='$CXXCPP $CPPFLAGS'
7972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7975echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7976echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7977if test -z "$CXXCPP"; then
7978  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7979  echo $ECHO_N "(cached) $ECHO_C" >&6
7980else
7981      # Double quotes because CXXCPP needs to be expanded
7982    for CXXCPP in "$CXX -E" "/lib/cpp"
7983    do
7984      ac_preproc_ok=false
7985for ac_cxx_preproc_warn_flag in '' yes
7986do
7987  # Use a header file that comes with gcc, so configuring glibc
7988  # with a fresh cross-compiler works.
7989  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7990  # <limits.h> exists even on freestanding compilers.
7991  # On the NeXT, cc -E runs the code through the compiler's parser,
7992  # not just through cpp. "Syntax error" is here to catch this case.
7993  cat >conftest.$ac_ext <<_ACEOF
7994/* confdefs.h.  */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h.  */
7999#ifdef __STDC__
8000# include <limits.h>
8001#else
8002# include <assert.h>
8003#endif
8004                     Syntax error
8005_ACEOF
8006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8007  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8008  ac_status=$?
8009  grep -v '^ *+' conftest.er1 >conftest.err
8010  rm -f conftest.er1
8011  cat conftest.err >&5
8012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013  (exit $ac_status); } >/dev/null; then
8014  if test -s conftest.err; then
8015    ac_cpp_err=$ac_cxx_preproc_warn_flag
8016    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8017  else
8018    ac_cpp_err=
8019  fi
8020else
8021  ac_cpp_err=yes
8022fi
8023if test -z "$ac_cpp_err"; then
8024  :
8025else
8026  echo "$as_me: failed program was:" >&5
8027sed 's/^/| /' conftest.$ac_ext >&5
8028
8029  # Broken: fails on valid input.
8030continue
8031fi
8032rm -f conftest.err conftest.$ac_ext
8033
8034  # OK, works on sane cases.  Now check whether non-existent headers
8035  # can be detected and how.
8036  cat >conftest.$ac_ext <<_ACEOF
8037/* confdefs.h.  */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
8041/* end confdefs.h.  */
8042#include <ac_nonexistent.h>
8043_ACEOF
8044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8046  ac_status=$?
8047  grep -v '^ *+' conftest.er1 >conftest.err
8048  rm -f conftest.er1
8049  cat conftest.err >&5
8050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051  (exit $ac_status); } >/dev/null; then
8052  if test -s conftest.err; then
8053    ac_cpp_err=$ac_cxx_preproc_warn_flag
8054    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8055  else
8056    ac_cpp_err=
8057  fi
8058else
8059  ac_cpp_err=yes
8060fi
8061if test -z "$ac_cpp_err"; then
8062  # Broken: success on invalid input.
8063continue
8064else
8065  echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068  # Passes both tests.
8069ac_preproc_ok=:
8070break
8071fi
8072rm -f conftest.err conftest.$ac_ext
8073
8074done
8075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8076rm -f conftest.err conftest.$ac_ext
8077if $ac_preproc_ok; then
8078  break
8079fi
8080
8081    done
8082    ac_cv_prog_CXXCPP=$CXXCPP
8083
8084fi
8085  CXXCPP=$ac_cv_prog_CXXCPP
8086else
8087  ac_cv_prog_CXXCPP=$CXXCPP
8088fi
8089echo "$as_me:$LINENO: result: $CXXCPP" >&5
8090echo "${ECHO_T}$CXXCPP" >&6
8091ac_preproc_ok=false
8092for ac_cxx_preproc_warn_flag in '' yes
8093do
8094  # Use a header file that comes with gcc, so configuring glibc
8095  # with a fresh cross-compiler works.
8096  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8097  # <limits.h> exists even on freestanding compilers.
8098  # On the NeXT, cc -E runs the code through the compiler's parser,
8099  # not just through cpp. "Syntax error" is here to catch this case.
8100  cat >conftest.$ac_ext <<_ACEOF
8101/* confdefs.h.  */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h.  */
8106#ifdef __STDC__
8107# include <limits.h>
8108#else
8109# include <assert.h>
8110#endif
8111                     Syntax error
8112_ACEOF
8113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8114  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8115  ac_status=$?
8116  grep -v '^ *+' conftest.er1 >conftest.err
8117  rm -f conftest.er1
8118  cat conftest.err >&5
8119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120  (exit $ac_status); } >/dev/null; then
8121  if test -s conftest.err; then
8122    ac_cpp_err=$ac_cxx_preproc_warn_flag
8123    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8124  else
8125    ac_cpp_err=
8126  fi
8127else
8128  ac_cpp_err=yes
8129fi
8130if test -z "$ac_cpp_err"; then
8131  :
8132else
8133  echo "$as_me: failed program was:" >&5
8134sed 's/^/| /' conftest.$ac_ext >&5
8135
8136  # Broken: fails on valid input.
8137continue
8138fi
8139rm -f conftest.err conftest.$ac_ext
8140
8141  # OK, works on sane cases.  Now check whether non-existent headers
8142  # can be detected and how.
8143  cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h.  */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h.  */
8149#include <ac_nonexistent.h>
8150_ACEOF
8151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8152  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8153  ac_status=$?
8154  grep -v '^ *+' conftest.er1 >conftest.err
8155  rm -f conftest.er1
8156  cat conftest.err >&5
8157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158  (exit $ac_status); } >/dev/null; then
8159  if test -s conftest.err; then
8160    ac_cpp_err=$ac_cxx_preproc_warn_flag
8161    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8162  else
8163    ac_cpp_err=
8164  fi
8165else
8166  ac_cpp_err=yes
8167fi
8168if test -z "$ac_cpp_err"; then
8169  # Broken: success on invalid input.
8170continue
8171else
8172  echo "$as_me: failed program was:" >&5
8173sed 's/^/| /' conftest.$ac_ext >&5
8174
8175  # Passes both tests.
8176ac_preproc_ok=:
8177break
8178fi
8179rm -f conftest.err conftest.$ac_ext
8180
8181done
8182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8183rm -f conftest.err conftest.$ac_ext
8184if $ac_preproc_ok; then
8185  :
8186else
8187  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8188See \`config.log' for more details." >&5
8189echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8190See \`config.log' for more details." >&2;}
8191   { (exit 1); exit 1; }; }
8192fi
8193
8194ac_ext=cc
8195ac_cpp='$CXXCPP $CPPFLAGS'
8196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8199
8200fi
8201
8202
8203
8204# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8205
8206# find the maximum length of command line arguments
8207echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8208echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8209if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8210  echo $ECHO_N "(cached) $ECHO_C" >&6
8211else
8212    i=0
8213  teststring="ABCD"
8214
8215  case $build_os in
8216  msdosdjgpp*)
8217    # On DJGPP, this test can blow up pretty badly due to problems in libc
8218    # (any single argument exceeding 2000 bytes causes a buffer overrun
8219    # during glob expansion).  Even if it were fixed, the result of this
8220    # check would be larger than it should be.
8221    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8222    ;;
8223
8224  gnu*)
8225    # Under GNU Hurd, this test is not required because there is
8226    # no limit to the length of command line arguments.
8227    # Libtool will interpret -1 as no limit whatsoever
8228    lt_cv_sys_max_cmd_len=-1;
8229    ;;
8230
8231  cygwin* | mingw*)
8232    # On Win9x/ME, this test blows up -- it succeeds, but takes
8233    # about 5 minutes as the teststring grows exponentially.
8234    # Worse, since 9x/ME are not pre-emptively multitasking,
8235    # you end up with a "frozen" computer, even though with patience
8236    # the test eventually succeeds (with a max line length of 256k).
8237    # Instead, let's just punt: use the minimum linelength reported by
8238    # all of the supported platforms: 8192 (on NT/2K/XP).
8239    lt_cv_sys_max_cmd_len=8192;
8240    ;;
8241
8242  amigaos*)
8243    # On AmigaOS with pdksh, this test takes hours, literally.
8244    # So we just punt and use a minimum line length of 8192.
8245    lt_cv_sys_max_cmd_len=8192;
8246    ;;
8247
8248  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8249    # This has been around since 386BSD, at least.  Likely further.
8250    if test -x /sbin/sysctl; then
8251      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8252    elif test -x /usr/sbin/sysctl; then
8253      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8254    else
8255      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8256    fi
8257    # And add a safety zone
8258    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8259    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8260    ;;
8261
8262  interix*)
8263    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8264    lt_cv_sys_max_cmd_len=196608
8265    ;;
8266
8267  osf*)
8268    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8269    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8270    # nice to cause kernel panics so lets avoid the loop below.
8271    # First set a reasonable default.
8272    lt_cv_sys_max_cmd_len=16384
8273    #
8274    if test -x /sbin/sysconfig; then
8275      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8276        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8277      esac
8278    fi
8279    ;;
8280  sco3.2v5*)
8281    lt_cv_sys_max_cmd_len=102400
8282    ;;
8283  sysv5* | sco5v6* | sysv4.2uw2*)
8284    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8285    if test -n "$kargmax"; then
8286      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8287    else
8288      lt_cv_sys_max_cmd_len=32768
8289    fi
8290    ;;
8291  *)
8292    # If test is not a shell built-in, we'll probably end up computing a
8293    # maximum length that is only half of the actual maximum length, but
8294    # we can't tell.
8295    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8296    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8297               = "XX$teststring") >/dev/null 2>&1 &&
8298            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8299            lt_cv_sys_max_cmd_len=$new_result &&
8300            test $i != 17 # 1/2 MB should be enough
8301    do
8302      i=`expr $i + 1`
8303      teststring=$teststring$teststring
8304    done
8305    teststring=
8306    # Add a significant safety factor because C++ compilers can tack on massive
8307    # amounts of additional arguments before passing them to the linker.
8308    # It appears as though 1/2 is a usable value.
8309    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8310    ;;
8311  esac
8312
8313fi
8314
8315if test -n $lt_cv_sys_max_cmd_len ; then
8316  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8317echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8318else
8319  echo "$as_me:$LINENO: result: none" >&5
8320echo "${ECHO_T}none" >&6
8321fi
8322
8323
8324
8325
8326# Check for command to grab the raw symbol name followed by C symbol from nm.
8327echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8328echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8329if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8330  echo $ECHO_N "(cached) $ECHO_C" >&6
8331else
8332
8333# These are sane defaults that work on at least a few old systems.
8334# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8335
8336# Character class describing NM global symbol codes.
8337symcode='[BCDEGRST]'
8338
8339# Regexp to match symbols that can be accessed directly from C.
8340sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8341
8342# Transform an extracted symbol line into a proper C declaration
8343lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8344
8345# Transform an extracted symbol line into symbol name and symbol address
8346lt_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'"
8347
8348# Define system-specific variables.
8349case $host_os in
8350aix*)
8351  symcode='[BCDT]'
8352  ;;
8353cygwin* | mingw* | pw32*)
8354  symcode='[ABCDGISTW]'
8355  ;;
8356hpux*) # Its linker distinguishes data from code symbols
8357  if test "$host_cpu" = ia64; then
8358    symcode='[ABCDEGRST]'
8359  fi
8360  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8361  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'"
8362  ;;
8363linux*)
8364  if test "$host_cpu" = ia64; then
8365    symcode='[ABCDGIRSTW]'
8366    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8367    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'"
8368  fi
8369  ;;
8370irix* | nonstopux*)
8371  symcode='[BCDEGRST]'
8372  ;;
8373osf*)
8374  symcode='[BCDEGQRST]'
8375  ;;
8376solaris*)
8377  symcode='[BDRT]'
8378  ;;
8379sco3.2v5*)
8380  symcode='[DT]'
8381  ;;
8382sysv4.2uw2*)
8383  symcode='[DT]'
8384  ;;
8385sysv5* | sco5v6* | unixware* | OpenUNIX*)
8386  symcode='[ABDT]'
8387  ;;
8388sysv4)
8389  symcode='[DFNSTU]'
8390  ;;
8391esac
8392
8393# Handle CRLF in mingw tool chain
8394opt_cr=
8395case $build_os in
8396mingw*)
8397  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8398  ;;
8399esac
8400
8401# If we're using GNU nm, then use its standard symbol codes.
8402case `$NM -V 2>&1` in
8403*GNU* | *'with BFD'*)
8404  symcode='[ABCDGIRSTW]' ;;
8405esac
8406
8407# Try without a prefix undercore, then with it.
8408for ac_symprfx in "" "_"; do
8409
8410  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8411  symxfrm="\\1 $ac_symprfx\\2 \\2"
8412
8413  # Write the raw and C identifiers.
8414  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8415
8416  # Check to see that the pipe works correctly.
8417  pipe_works=no
8418
8419  rm -f conftest*
8420  cat > conftest.$ac_ext <<EOF
8421#ifdef __cplusplus
8422extern "C" {
8423#endif
8424char nm_test_var;
8425void nm_test_func(){}
8426#ifdef __cplusplus
8427}
8428#endif
8429int main(){nm_test_var='a';nm_test_func();return(0);}
8430EOF
8431
8432  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8433  (eval $ac_compile) 2>&5
8434  ac_status=$?
8435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436  (exit $ac_status); }; then
8437    # Now try to grab the symbols.
8438    nlist=conftest.nm
8439    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8440  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8441  ac_status=$?
8442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443  (exit $ac_status); } && test -s "$nlist"; then
8444      # Try sorting and uniquifying the output.
8445      if sort "$nlist" | uniq > "$nlist"T; then
8446        mv -f "$nlist"T "$nlist"
8447      else
8448        rm -f "$nlist"T
8449      fi
8450
8451      # Make sure that we snagged all the symbols we need.
8452      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8453        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8454          cat <<EOF > conftest.$ac_ext
8455#ifdef __cplusplus
8456extern "C" {
8457#endif
8458
8459EOF
8460          # Now generate the symbol file.
8461          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8462
8463          cat <<EOF >> conftest.$ac_ext
8464#if defined (__STDC__) && __STDC__
8465# define lt_ptr_t void *
8466#else
8467# define lt_ptr_t char *
8468# define const
8469#endif
8470
8471/* The mapping between symbol names and symbols. */
8472const struct {
8473  const char *name;
8474  lt_ptr_t address;
8475}
8476lt_preloaded_symbols[] =
8477{
8478EOF
8479          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8480          cat <<\EOF >> conftest.$ac_ext
8481  {0, (lt_ptr_t) 0}
8482};
8483
8484#ifdef __cplusplus
8485}
8486#endif
8487EOF
8488          # Now try linking the two files.
8489          mv conftest.$ac_objext conftstm.$ac_objext
8490          lt_save_LIBS="$LIBS"
8491          lt_save_CFLAGS="$CFLAGS"
8492          LIBS="conftstm.$ac_objext"
8493          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8494          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495  (eval $ac_link) 2>&5
8496  ac_status=$?
8497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8499            pipe_works=yes
8500          fi
8501          LIBS="$lt_save_LIBS"
8502          CFLAGS="$lt_save_CFLAGS"
8503        else
8504          echo "cannot find nm_test_func in $nlist" >&5
8505        fi
8506      else
8507        echo "cannot find nm_test_var in $nlist" >&5
8508      fi
8509    else
8510      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8511    fi
8512  else
8513    echo "$progname: failed program was:" >&5
8514    cat conftest.$ac_ext >&5
8515  fi
8516  rm -f conftest* conftst*
8517
8518  # Do not use the global_symbol_pipe unless it works.
8519  if test "$pipe_works" = yes; then
8520    break
8521  else
8522    lt_cv_sys_global_symbol_pipe=
8523  fi
8524done
8525
8526fi
8527
8528if test -z "$lt_cv_sys_global_symbol_pipe"; then
8529  lt_cv_sys_global_symbol_to_cdecl=
8530fi
8531if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8532  echo "$as_me:$LINENO: result: failed" >&5
8533echo "${ECHO_T}failed" >&6
8534else
8535  echo "$as_me:$LINENO: result: ok" >&5
8536echo "${ECHO_T}ok" >&6
8537fi
8538
8539echo "$as_me:$LINENO: checking for objdir" >&5
8540echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8541if test "${lt_cv_objdir+set}" = set; then
8542  echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544  rm -f .libs 2>/dev/null
8545mkdir .libs 2>/dev/null
8546if test -d .libs; then
8547  lt_cv_objdir=.libs
8548else
8549  # MS-DOS does not allow filenames that begin with a dot.
8550  lt_cv_objdir=_libs
8551fi
8552rmdir .libs 2>/dev/null
8553fi
8554echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8555echo "${ECHO_T}$lt_cv_objdir" >&6
8556objdir=$lt_cv_objdir
8557
8558
8559
8560
8561
8562case $host_os in
8563aix3*)
8564  # AIX sometimes has problems with the GCC collect2 program.  For some
8565  # reason, if we set the COLLECT_NAMES environment variable, the problems
8566  # vanish in a puff of smoke.
8567  if test "X${COLLECT_NAMES+set}" != Xset; then
8568    COLLECT_NAMES=
8569    export COLLECT_NAMES
8570  fi
8571  ;;
8572esac
8573
8574# Sed substitution that helps us do robust quoting.  It backslashifies
8575# metacharacters that are still active within double-quoted strings.
8576Xsed='sed -e 1s/^X//'
8577sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8578
8579# Same as above, but do not quote variable references.
8580double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8581
8582# Sed substitution to delay expansion of an escaped shell variable in a
8583# double_quote_subst'ed string.
8584delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8585
8586# Sed substitution to avoid accidental globbing in evaled expressions
8587no_glob_subst='s/\*/\\\*/g'
8588
8589# Constants:
8590rm="rm -f"
8591
8592# Global variables:
8593default_ofile=libtool
8594can_build_shared=yes
8595
8596# All known linkers require a `.a' archive for static linking (except MSVC,
8597# which needs '.lib').
8598libext=a
8599ltmain="$ac_aux_dir/ltmain.sh"
8600ofile="$default_ofile"
8601with_gnu_ld="$lt_cv_prog_gnu_ld"
8602
8603if test -n "$ac_tool_prefix"; then
8604  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8605set dummy ${ac_tool_prefix}ar; ac_word=$2
8606echo "$as_me:$LINENO: checking for $ac_word" >&5
8607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8608if test "${ac_cv_prog_AR+set}" = set; then
8609  echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611  if test -n "$AR"; then
8612  ac_cv_prog_AR="$AR" # Let the user override the test.
8613else
8614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617  IFS=$as_save_IFS
8618  test -z "$as_dir" && as_dir=.
8619  for ac_exec_ext in '' $ac_executable_extensions; do
8620  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621    ac_cv_prog_AR="${ac_tool_prefix}ar"
8622    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8623    break 2
8624  fi
8625done
8626done
8627
8628fi
8629fi
8630AR=$ac_cv_prog_AR
8631if test -n "$AR"; then
8632  echo "$as_me:$LINENO: result: $AR" >&5
8633echo "${ECHO_T}$AR" >&6
8634else
8635  echo "$as_me:$LINENO: result: no" >&5
8636echo "${ECHO_T}no" >&6
8637fi
8638
8639fi
8640if test -z "$ac_cv_prog_AR"; then
8641  ac_ct_AR=$AR
8642  # Extract the first word of "ar", so it can be a program name with args.
8643set dummy ar; ac_word=$2
8644echo "$as_me:$LINENO: checking for $ac_word" >&5
8645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8646if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8647  echo $ECHO_N "(cached) $ECHO_C" >&6
8648else
8649  if test -n "$ac_ct_AR"; then
8650  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8651else
8652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653for as_dir in $PATH
8654do
8655  IFS=$as_save_IFS
8656  test -z "$as_dir" && as_dir=.
8657  for ac_exec_ext in '' $ac_executable_extensions; do
8658  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659    ac_cv_prog_ac_ct_AR="ar"
8660    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8661    break 2
8662  fi
8663done
8664done
8665
8666  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8667fi
8668fi
8669ac_ct_AR=$ac_cv_prog_ac_ct_AR
8670if test -n "$ac_ct_AR"; then
8671  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8672echo "${ECHO_T}$ac_ct_AR" >&6
8673else
8674  echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6
8676fi
8677
8678  AR=$ac_ct_AR
8679else
8680  AR="$ac_cv_prog_AR"
8681fi
8682
8683if test -n "$ac_tool_prefix"; then
8684  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8685set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8686echo "$as_me:$LINENO: checking for $ac_word" >&5
8687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8688if test "${ac_cv_prog_RANLIB+set}" = set; then
8689  echo $ECHO_N "(cached) $ECHO_C" >&6
8690else
8691  if test -n "$RANLIB"; then
8692  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8693else
8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697  IFS=$as_save_IFS
8698  test -z "$as_dir" && as_dir=.
8699  for ac_exec_ext in '' $ac_executable_extensions; do
8700  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8701    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8703    break 2
8704  fi
8705done
8706done
8707
8708fi
8709fi
8710RANLIB=$ac_cv_prog_RANLIB
8711if test -n "$RANLIB"; then
8712  echo "$as_me:$LINENO: result: $RANLIB" >&5
8713echo "${ECHO_T}$RANLIB" >&6
8714else
8715  echo "$as_me:$LINENO: result: no" >&5
8716echo "${ECHO_T}no" >&6
8717fi
8718
8719fi
8720if test -z "$ac_cv_prog_RANLIB"; then
8721  ac_ct_RANLIB=$RANLIB
8722  # Extract the first word of "ranlib", so it can be a program name with args.
8723set dummy ranlib; ac_word=$2
8724echo "$as_me:$LINENO: checking for $ac_word" >&5
8725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8726if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8727  echo $ECHO_N "(cached) $ECHO_C" >&6
8728else
8729  if test -n "$ac_ct_RANLIB"; then
8730  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8731else
8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733for as_dir in $PATH
8734do
8735  IFS=$as_save_IFS
8736  test -z "$as_dir" && as_dir=.
8737  for ac_exec_ext in '' $ac_executable_extensions; do
8738  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8739    ac_cv_prog_ac_ct_RANLIB="ranlib"
8740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8741    break 2
8742  fi
8743done
8744done
8745
8746  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8747fi
8748fi
8749ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8750if test -n "$ac_ct_RANLIB"; then
8751  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8752echo "${ECHO_T}$ac_ct_RANLIB" >&6
8753else
8754  echo "$as_me:$LINENO: result: no" >&5
8755echo "${ECHO_T}no" >&6
8756fi
8757
8758  RANLIB=$ac_ct_RANLIB
8759else
8760  RANLIB="$ac_cv_prog_RANLIB"
8761fi
8762
8763if test -n "$ac_tool_prefix"; then
8764  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8765set dummy ${ac_tool_prefix}strip; ac_word=$2
8766echo "$as_me:$LINENO: checking for $ac_word" >&5
8767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8768if test "${ac_cv_prog_STRIP+set}" = set; then
8769  echo $ECHO_N "(cached) $ECHO_C" >&6
8770else
8771  if test -n "$STRIP"; then
8772  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8773else
8774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775for as_dir in $PATH
8776do
8777  IFS=$as_save_IFS
8778  test -z "$as_dir" && as_dir=.
8779  for ac_exec_ext in '' $ac_executable_extensions; do
8780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8783    break 2
8784  fi
8785done
8786done
8787
8788fi
8789fi
8790STRIP=$ac_cv_prog_STRIP
8791if test -n "$STRIP"; then
8792  echo "$as_me:$LINENO: result: $STRIP" >&5
8793echo "${ECHO_T}$STRIP" >&6
8794else
8795  echo "$as_me:$LINENO: result: no" >&5
8796echo "${ECHO_T}no" >&6
8797fi
8798
8799fi
8800if test -z "$ac_cv_prog_STRIP"; then
8801  ac_ct_STRIP=$STRIP
8802  # Extract the first word of "strip", so it can be a program name with args.
8803set dummy strip; ac_word=$2
8804echo "$as_me:$LINENO: checking for $ac_word" >&5
8805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8806if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8807  echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809  if test -n "$ac_ct_STRIP"; then
8810  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815  IFS=$as_save_IFS
8816  test -z "$as_dir" && as_dir=.
8817  for ac_exec_ext in '' $ac_executable_extensions; do
8818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819    ac_cv_prog_ac_ct_STRIP="strip"
8820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8821    break 2
8822  fi
8823done
8824done
8825
8826  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8827fi
8828fi
8829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8830if test -n "$ac_ct_STRIP"; then
8831  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8832echo "${ECHO_T}$ac_ct_STRIP" >&6
8833else
8834  echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
8836fi
8837
8838  STRIP=$ac_ct_STRIP
8839else
8840  STRIP="$ac_cv_prog_STRIP"
8841fi
8842
8843
8844old_CC="$CC"
8845old_CFLAGS="$CFLAGS"
8846
8847# Set sane defaults for various variables
8848test -z "$AR" && AR=ar
8849test -z "$AR_FLAGS" && AR_FLAGS=cru
8850test -z "$AS" && AS=as
8851test -z "$CC" && CC=cc
8852test -z "$LTCC" && LTCC=$CC
8853test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8854test -z "$DLLTOOL" && DLLTOOL=dlltool
8855test -z "$LD" && LD=ld
8856test -z "$LN_S" && LN_S="ln -s"
8857test -z "$MAGIC_CMD" && MAGIC_CMD=file
8858test -z "$NM" && NM=nm
8859test -z "$SED" && SED=sed
8860test -z "$OBJDUMP" && OBJDUMP=objdump
8861test -z "$RANLIB" && RANLIB=:
8862test -z "$STRIP" && STRIP=:
8863test -z "$ac_objext" && ac_objext=o
8864
8865# Determine commands to create old-style static archives.
8866old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8867old_postinstall_cmds='chmod 644 $oldlib'
8868old_postuninstall_cmds=
8869
8870if test -n "$RANLIB"; then
8871  case $host_os in
8872  openbsd*)
8873    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8874    ;;
8875  *)
8876    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8877    ;;
8878  esac
8879  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8880fi
8881
8882for cc_temp in $compiler""; do
8883  case $cc_temp in
8884    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8885    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8886    \-*) ;;
8887    *) break;;
8888  esac
8889done
8890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8891
8892
8893# Only perform the check for file, if the check method requires it
8894case $deplibs_check_method in
8895file_magic*)
8896  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8897    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8898echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8899if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8900  echo $ECHO_N "(cached) $ECHO_C" >&6
8901else
8902  case $MAGIC_CMD in
8903[\\/*] |  ?:[\\/]*)
8904  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8905  ;;
8906*)
8907  lt_save_MAGIC_CMD="$MAGIC_CMD"
8908  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8909  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8910  for ac_dir in $ac_dummy; do
8911    IFS="$lt_save_ifs"
8912    test -z "$ac_dir" && ac_dir=.
8913    if test -f $ac_dir/${ac_tool_prefix}file; then
8914      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8915      if test -n "$file_magic_test_file"; then
8916        case $deplibs_check_method in
8917        "file_magic "*)
8918          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8919          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8920          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8921            $EGREP "$file_magic_regex" > /dev/null; then
8922            :
8923          else
8924            cat <<EOF 1>&2
8925
8926*** Warning: the command libtool uses to detect shared libraries,
8927*** $file_magic_cmd, produces output that libtool cannot recognize.
8928*** The result is that libtool may fail to recognize shared libraries
8929*** as such.  This will affect the creation of libtool libraries that
8930*** depend on shared libraries, but programs linked with such libtool
8931*** libraries will work regardless of this problem.  Nevertheless, you
8932*** may want to report the problem to your system manager and/or to
8933*** bug-libtool@gnu.org
8934
8935EOF
8936          fi ;;
8937        esac
8938      fi
8939      break
8940    fi
8941  done
8942  IFS="$lt_save_ifs"
8943  MAGIC_CMD="$lt_save_MAGIC_CMD"
8944  ;;
8945esac
8946fi
8947
8948MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8949if test -n "$MAGIC_CMD"; then
8950  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8951echo "${ECHO_T}$MAGIC_CMD" >&6
8952else
8953  echo "$as_me:$LINENO: result: no" >&5
8954echo "${ECHO_T}no" >&6
8955fi
8956
8957if test -z "$lt_cv_path_MAGIC_CMD"; then
8958  if test -n "$ac_tool_prefix"; then
8959    echo "$as_me:$LINENO: checking for file" >&5
8960echo $ECHO_N "checking for file... $ECHO_C" >&6
8961if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8962  echo $ECHO_N "(cached) $ECHO_C" >&6
8963else
8964  case $MAGIC_CMD in
8965[\\/*] |  ?:[\\/]*)
8966  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8967  ;;
8968*)
8969  lt_save_MAGIC_CMD="$MAGIC_CMD"
8970  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8971  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8972  for ac_dir in $ac_dummy; do
8973    IFS="$lt_save_ifs"
8974    test -z "$ac_dir" && ac_dir=.
8975    if test -f $ac_dir/file; then
8976      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8977      if test -n "$file_magic_test_file"; then
8978        case $deplibs_check_method in
8979        "file_magic "*)
8980          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8981          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8982          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8983            $EGREP "$file_magic_regex" > /dev/null; then
8984            :
8985          else
8986            cat <<EOF 1>&2
8987
8988*** Warning: the command libtool uses to detect shared libraries,
8989*** $file_magic_cmd, produces output that libtool cannot recognize.
8990*** The result is that libtool may fail to recognize shared libraries
8991*** as such.  This will affect the creation of libtool libraries that
8992*** depend on shared libraries, but programs linked with such libtool
8993*** libraries will work regardless of this problem.  Nevertheless, you
8994*** may want to report the problem to your system manager and/or to
8995*** bug-libtool@gnu.org
8996
8997EOF
8998          fi ;;
8999        esac
9000      fi
9001      break
9002    fi
9003  done
9004  IFS="$lt_save_ifs"
9005  MAGIC_CMD="$lt_save_MAGIC_CMD"
9006  ;;
9007esac
9008fi
9009
9010MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9011if test -n "$MAGIC_CMD"; then
9012  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9013echo "${ECHO_T}$MAGIC_CMD" >&6
9014else
9015  echo "$as_me:$LINENO: result: no" >&5
9016echo "${ECHO_T}no" >&6
9017fi
9018
9019  else
9020    MAGIC_CMD=:
9021  fi
9022fi
9023
9024  fi
9025  ;;
9026esac
9027
9028enable_dlopen=no
9029enable_win32_dll=no
9030
9031# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9032if test "${enable_libtool_lock+set}" = set; then
9033  enableval="$enable_libtool_lock"
9034
9035fi;
9036test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9037
9038
9039# Check whether --with-pic or --without-pic was given.
9040if test "${with_pic+set}" = set; then
9041  withval="$with_pic"
9042  pic_mode="$withval"
9043else
9044  pic_mode=default
9045fi;
9046test -z "$pic_mode" && pic_mode=default
9047
9048# Use C for the default configuration in the libtool script
9049tagname=
9050lt_save_CC="$CC"
9051ac_ext=c
9052ac_cpp='$CPP $CPPFLAGS'
9053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9055ac_compiler_gnu=$ac_cv_c_compiler_gnu
9056
9057
9058# Source file extension for C test sources.
9059ac_ext=c
9060
9061# Object file extension for compiled C test sources.
9062objext=o
9063objext=$objext
9064
9065# Code to be used in simple compile tests
9066lt_simple_compile_test_code="int some_variable = 0;\n"
9067
9068# Code to be used in simple link tests
9069lt_simple_link_test_code='int main(){return(0);}\n'
9070
9071
9072# If no C compiler was specified, use CC.
9073LTCC=${LTCC-"$CC"}
9074
9075# If no C compiler flags were specified, use CFLAGS.
9076LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9077
9078# Allow CC to be a program name with arguments.
9079compiler=$CC
9080
9081
9082# save warnings/boilerplate of simple test code
9083ac_outfile=conftest.$ac_objext
9084printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9086_lt_compiler_boilerplate=`cat conftest.err`
9087$rm conftest*
9088
9089ac_outfile=conftest.$ac_objext
9090printf "$lt_simple_link_test_code" >conftest.$ac_ext
9091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9092_lt_linker_boilerplate=`cat conftest.err`
9093$rm conftest*
9094
9095
9096## CAVEAT EMPTOR:
9097## There is no encapsulation within the following macros, do not change
9098## the running order or otherwise move them around unless you know exactly
9099## what you are doing...
9100
9101lt_prog_compiler_no_builtin_flag=
9102
9103if test "$GCC" = yes; then
9104  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9105
9106
9107echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9108echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9109if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9110  echo $ECHO_N "(cached) $ECHO_C" >&6
9111else
9112  lt_cv_prog_compiler_rtti_exceptions=no
9113  ac_outfile=conftest.$ac_objext
9114   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9115   lt_compiler_flag="-fno-rtti -fno-exceptions"
9116   # Insert the option either (1) after the last *FLAGS variable, or
9117   # (2) before a word containing "conftest.", or (3) at the end.
9118   # Note that $ac_compile itself does not contain backslashes and begins
9119   # with a dollar sign (not a hyphen), so the echo should work correctly.
9120   # The option is referenced via a variable to avoid confusing sed.
9121   lt_compile=`echo "$ac_compile" | $SED \
9122   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9123   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9124   -e 's:$: $lt_compiler_flag:'`
9125   (eval echo "\"\$as_me:9125: $lt_compile\"" >&5)
9126   (eval "$lt_compile" 2>conftest.err)
9127   ac_status=$?
9128   cat conftest.err >&5
9129   echo "$as_me:9129: \$? = $ac_status" >&5
9130   if (exit $ac_status) && test -s "$ac_outfile"; then
9131     # The compiler can only warn and ignore the option if not recognized
9132     # So say no if there are warnings other than the usual output.
9133     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9134     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9135     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9136       lt_cv_prog_compiler_rtti_exceptions=yes
9137     fi
9138   fi
9139   $rm conftest*
9140
9141fi
9142echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9143echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9144
9145if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9146    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9147else
9148    :
9149fi
9150
9151fi
9152
9153lt_prog_compiler_wl=
9154lt_prog_compiler_pic=
9155lt_prog_compiler_static=
9156
9157echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9158echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9159
9160  if test "$GCC" = yes; then
9161    lt_prog_compiler_wl='-Wl,'
9162    lt_prog_compiler_static='-static'
9163
9164    case $host_os in
9165      aix*)
9166      # All AIX code is PIC.
9167      if test "$host_cpu" = ia64; then
9168        # AIX 5 now supports IA64 processor
9169        lt_prog_compiler_static='-Bstatic'
9170      fi
9171      ;;
9172
9173    amigaos*)
9174      # FIXME: we need at least 68020 code to build shared libraries, but
9175      # adding the `-m68020' flag to GCC prevents building anything better,
9176      # like `-m68040'.
9177      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9178      ;;
9179
9180    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9181      # PIC is the default for these OSes.
9182      ;;
9183
9184    mingw* | pw32* | os2*)
9185      # This hack is so that the source file can tell whether it is being
9186      # built for inclusion in a dll (and should export symbols for example).
9187      lt_prog_compiler_pic='-DDLL_EXPORT'
9188      ;;
9189
9190    darwin* | rhapsody*)
9191      # PIC is the default on this platform
9192      # Common symbols not allowed in MH_DYLIB files
9193      lt_prog_compiler_pic='-fno-common'
9194      ;;
9195
9196    interix3*)
9197      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9198      # Instead, we relocate shared libraries at runtime.
9199      ;;
9200
9201    msdosdjgpp*)
9202      # Just because we use GCC doesn't mean we suddenly get shared libraries
9203      # on systems that don't support them.
9204      lt_prog_compiler_can_build_shared=no
9205      enable_shared=no
9206      ;;
9207
9208    sysv4*MP*)
9209      if test -d /usr/nec; then
9210        lt_prog_compiler_pic=-Kconform_pic
9211      fi
9212      ;;
9213
9214    hpux*)
9215      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9216      # not for PA HP-UX.
9217      case $host_cpu in
9218      hppa*64*|ia64*)
9219        # +Z the default
9220        ;;
9221      *)
9222        lt_prog_compiler_pic='-fPIC'
9223        ;;
9224      esac
9225      ;;
9226
9227    *)
9228      lt_prog_compiler_pic='-fPIC'
9229      ;;
9230    esac
9231  else
9232    # PORTME Check for flag to pass linker flags through the system compiler.
9233    case $host_os in
9234    aix*)
9235      lt_prog_compiler_wl='-Wl,'
9236      if test "$host_cpu" = ia64; then
9237        # AIX 5 now supports IA64 processor
9238        lt_prog_compiler_static='-Bstatic'
9239      else
9240        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9241      fi
9242      ;;
9243      darwin*)
9244        # PIC is the default on this platform
9245        # Common symbols not allowed in MH_DYLIB files
9246       case $cc_basename in
9247         xlc*)
9248         lt_prog_compiler_pic='-qnocommon'
9249         lt_prog_compiler_wl='-Wl,'
9250         ;;
9251       esac
9252       ;;
9253
9254    mingw* | pw32* | os2*)
9255      # This hack is so that the source file can tell whether it is being
9256      # built for inclusion in a dll (and should export symbols for example).
9257      lt_prog_compiler_pic='-DDLL_EXPORT'
9258      ;;
9259
9260    hpux9* | hpux10* | hpux11*)
9261      lt_prog_compiler_wl='-Wl,'
9262      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9263      # not for PA HP-UX.
9264      case $host_cpu in
9265      hppa*64*|ia64*)
9266        # +Z the default
9267        ;;
9268      *)
9269        lt_prog_compiler_pic='+Z'
9270        ;;
9271      esac
9272      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9273      lt_prog_compiler_static='${wl}-a ${wl}archive'
9274      ;;
9275
9276    irix5* | irix6* | nonstopux*)
9277      lt_prog_compiler_wl='-Wl,'
9278      # PIC (with -KPIC) is the default.
9279      lt_prog_compiler_static='-non_shared'
9280      ;;
9281
9282    newsos6)
9283      lt_prog_compiler_pic='-KPIC'
9284      lt_prog_compiler_static='-Bstatic'
9285      ;;
9286
9287    linux*)
9288      case $cc_basename in
9289      icc* | ecc*)
9290        lt_prog_compiler_wl='-Wl,'
9291        lt_prog_compiler_pic='-KPIC'
9292        lt_prog_compiler_static='-static'
9293        ;;
9294      pgcc* | pgf77* | pgf90* | pgf95*)
9295        # Portland Group compilers (*not* the Pentium gcc compiler,
9296        # which looks to be a dead project)
9297        lt_prog_compiler_wl='-Wl,'
9298        lt_prog_compiler_pic='-fpic'
9299        lt_prog_compiler_static='-Bstatic'
9300        ;;
9301      ccc*)
9302        lt_prog_compiler_wl='-Wl,'
9303        # All Alpha code is PIC.
9304        lt_prog_compiler_static='-non_shared'
9305        ;;
9306      esac
9307      ;;
9308
9309    osf3* | osf4* | osf5*)
9310      lt_prog_compiler_wl='-Wl,'
9311      # All OSF/1 code is PIC.
9312      lt_prog_compiler_static='-non_shared'
9313      ;;
9314
9315    solaris*)
9316      lt_prog_compiler_pic='-KPIC'
9317      lt_prog_compiler_static='-Bstatic'
9318      case $cc_basename in
9319      f77* | f90* | f95*)
9320        lt_prog_compiler_wl='-Qoption ld ';;
9321      *)
9322        lt_prog_compiler_wl='-Wl,';;
9323      esac
9324      ;;
9325
9326    sunos4*)
9327      lt_prog_compiler_wl='-Qoption ld '
9328      lt_prog_compiler_pic='-PIC'
9329      lt_prog_compiler_static='-Bstatic'
9330      ;;
9331
9332    sysv4 | sysv4.2uw2* | sysv4.3*)
9333      lt_prog_compiler_wl='-Wl,'
9334      lt_prog_compiler_pic='-KPIC'
9335      lt_prog_compiler_static='-Bstatic'
9336      ;;
9337
9338    sysv4*MP*)
9339      if test -d /usr/nec ;then
9340        lt_prog_compiler_pic='-Kconform_pic'
9341        lt_prog_compiler_static='-Bstatic'
9342      fi
9343      ;;
9344
9345    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9346      lt_prog_compiler_wl='-Wl,'
9347      lt_prog_compiler_pic='-KPIC'
9348      lt_prog_compiler_static='-Bstatic'
9349      ;;
9350
9351    unicos*)
9352      lt_prog_compiler_wl='-Wl,'
9353      lt_prog_compiler_can_build_shared=no
9354      ;;
9355
9356    uts4*)
9357      lt_prog_compiler_pic='-pic'
9358      lt_prog_compiler_static='-Bstatic'
9359      ;;
9360
9361    *)
9362      lt_prog_compiler_can_build_shared=no
9363      ;;
9364    esac
9365  fi
9366
9367echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9368echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9369
9370#
9371# Check to make sure the PIC flag actually works.
9372#
9373if test -n "$lt_prog_compiler_pic"; then
9374
9375echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9376echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9377if test "${lt_prog_compiler_pic_works+set}" = set; then
9378  echo $ECHO_N "(cached) $ECHO_C" >&6
9379else
9380  lt_prog_compiler_pic_works=no
9381  ac_outfile=conftest.$ac_objext
9382   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9383   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9384   # Insert the option either (1) after the last *FLAGS variable, or
9385   # (2) before a word containing "conftest.", or (3) at the end.
9386   # Note that $ac_compile itself does not contain backslashes and begins
9387   # with a dollar sign (not a hyphen), so the echo should work correctly.
9388   # The option is referenced via a variable to avoid confusing sed.
9389   lt_compile=`echo "$ac_compile" | $SED \
9390   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9391   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9392   -e 's:$: $lt_compiler_flag:'`
9393   (eval echo "\"\$as_me:9393: $lt_compile\"" >&5)
9394   (eval "$lt_compile" 2>conftest.err)
9395   ac_status=$?
9396   cat conftest.err >&5
9397   echo "$as_me:9397: \$? = $ac_status" >&5
9398   if (exit $ac_status) && test -s "$ac_outfile"; then
9399     # The compiler can only warn and ignore the option if not recognized
9400     # So say no if there are warnings other than the usual output.
9401     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9402     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9403     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9404       lt_prog_compiler_pic_works=yes
9405     fi
9406   fi
9407   $rm conftest*
9408
9409fi
9410echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9411echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9412
9413if test x"$lt_prog_compiler_pic_works" = xyes; then
9414    case $lt_prog_compiler_pic in
9415     "" | " "*) ;;
9416     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9417     esac
9418else
9419    lt_prog_compiler_pic=
9420     lt_prog_compiler_can_build_shared=no
9421fi
9422
9423fi
9424case $host_os in
9425  # For platforms which do not support PIC, -DPIC is meaningless:
9426  *djgpp*)
9427    lt_prog_compiler_pic=
9428    ;;
9429  *)
9430    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9431    ;;
9432esac
9433
9434#
9435# Check to make sure the static flag actually works.
9436#
9437wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9438echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9439echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9440if test "${lt_prog_compiler_static_works+set}" = set; then
9441  echo $ECHO_N "(cached) $ECHO_C" >&6
9442else
9443  lt_prog_compiler_static_works=no
9444   save_LDFLAGS="$LDFLAGS"
9445   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9446   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9447   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9448     # The linker can only warn and ignore the option if not recognized
9449     # So say no if there are warnings
9450     if test -s conftest.err; then
9451       # Append any errors to the config.log.
9452       cat conftest.err 1>&5
9453       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9454       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9455       if diff conftest.exp conftest.er2 >/dev/null; then
9456         lt_prog_compiler_static_works=yes
9457       fi
9458     else
9459       lt_prog_compiler_static_works=yes
9460     fi
9461   fi
9462   $rm conftest*
9463   LDFLAGS="$save_LDFLAGS"
9464
9465fi
9466echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9467echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9468
9469if test x"$lt_prog_compiler_static_works" = xyes; then
9470    :
9471else
9472    lt_prog_compiler_static=
9473fi
9474
9475
9476echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9477echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9478if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9479  echo $ECHO_N "(cached) $ECHO_C" >&6
9480else
9481  lt_cv_prog_compiler_c_o=no
9482   $rm -r conftest 2>/dev/null
9483   mkdir conftest
9484   cd conftest
9485   mkdir out
9486   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9487
9488   lt_compiler_flag="-o out/conftest2.$ac_objext"
9489   # Insert the option either (1) after the last *FLAGS variable, or
9490   # (2) before a word containing "conftest.", or (3) at the end.
9491   # Note that $ac_compile itself does not contain backslashes and begins
9492   # with a dollar sign (not a hyphen), so the echo should work correctly.
9493   lt_compile=`echo "$ac_compile" | $SED \
9494   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9495   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9496   -e 's:$: $lt_compiler_flag:'`
9497   (eval echo "\"\$as_me:9497: $lt_compile\"" >&5)
9498   (eval "$lt_compile" 2>out/conftest.err)
9499   ac_status=$?
9500   cat out/conftest.err >&5
9501   echo "$as_me:9501: \$? = $ac_status" >&5
9502   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9503   then
9504     # The compiler can only warn and ignore the option if not recognized
9505     # So say no if there are warnings
9506     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9507     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9508     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9509       lt_cv_prog_compiler_c_o=yes
9510     fi
9511   fi
9512   chmod u+w . 2>&5
9513   $rm conftest*
9514   # SGI C++ compiler will create directory out/ii_files/ for
9515   # template instantiation
9516   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9517   $rm out/* && rmdir out
9518   cd ..
9519   rmdir conftest
9520   $rm conftest*
9521
9522fi
9523echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9524echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9525
9526
9527hard_links="nottested"
9528if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9529  # do not overwrite the value of need_locks provided by the user
9530  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9531echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9532  hard_links=yes
9533  $rm conftest*
9534  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9535  touch conftest.a
9536  ln conftest.a conftest.b 2>&5 || hard_links=no
9537  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9538  echo "$as_me:$LINENO: result: $hard_links" >&5
9539echo "${ECHO_T}$hard_links" >&6
9540  if test "$hard_links" = no; then
9541    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9542echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9543    need_locks=warn
9544  fi
9545else
9546  need_locks=no
9547fi
9548
9549echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9550echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9551
9552  runpath_var=
9553  allow_undefined_flag=
9554  enable_shared_with_static_runtimes=no
9555  archive_cmds=
9556  archive_expsym_cmds=
9557  old_archive_From_new_cmds=
9558  old_archive_from_expsyms_cmds=
9559  export_dynamic_flag_spec=
9560  whole_archive_flag_spec=
9561  thread_safe_flag_spec=
9562  hardcode_libdir_flag_spec=
9563  hardcode_libdir_flag_spec_ld=
9564  hardcode_libdir_separator=
9565  hardcode_direct=no
9566  hardcode_minus_L=no
9567  hardcode_shlibpath_var=unsupported
9568  link_all_deplibs=unknown
9569  hardcode_automatic=no
9570  module_cmds=
9571  module_expsym_cmds=
9572  always_export_symbols=no
9573  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9574  # include_expsyms should be a list of space-separated symbols to be *always*
9575  # included in the symbol list
9576  include_expsyms=
9577  # exclude_expsyms can be an extended regexp of symbols to exclude
9578  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9579  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9580  # as well as any symbol that contains `d'.
9581  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9582  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9583  # platforms (ab)use it in PIC code, but their linkers get confused if
9584  # the symbol is explicitly referenced.  Since portable code cannot
9585  # rely on this symbol name, it's probably fine to never include it in
9586  # preloaded symbol tables.
9587  extract_expsyms_cmds=
9588  # Just being paranoid about ensuring that cc_basename is set.
9589  for cc_temp in $compiler""; do
9590  case $cc_temp in
9591    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9592    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9593    \-*) ;;
9594    *) break;;
9595  esac
9596done
9597cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9598
9599  case $host_os in
9600  cygwin* | mingw* | pw32*)
9601    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9602    # When not using gcc, we currently assume that we are using
9603    # Microsoft Visual C++.
9604    if test "$GCC" != yes; then
9605      with_gnu_ld=no
9606    fi
9607    ;;
9608  interix*)
9609    # we just hope/assume this is gcc and not c89 (= MSVC++)
9610    with_gnu_ld=yes
9611    ;;
9612  openbsd*)
9613    with_gnu_ld=no
9614    ;;
9615  esac
9616
9617  ld_shlibs=yes
9618  if test "$with_gnu_ld" = yes; then
9619    # If archive_cmds runs LD, not CC, wlarc should be empty
9620    wlarc='${wl}'
9621
9622    # Set some defaults for GNU ld with shared library support. These
9623    # are reset later if shared libraries are not supported. Putting them
9624    # here allows them to be overridden if necessary.
9625    runpath_var=LD_RUN_PATH
9626    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9627    export_dynamic_flag_spec='${wl}--export-dynamic'
9628    # ancient GNU ld didn't support --whole-archive et. al.
9629    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9630        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9631      else
9632        whole_archive_flag_spec=
9633    fi
9634    supports_anon_versioning=no
9635    case `$LD -v 2>/dev/null` in
9636      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9637      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9638      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9639      *\ 2.11.*) ;; # other 2.11 versions
9640      *) supports_anon_versioning=yes ;;
9641    esac
9642
9643    # See if GNU ld supports shared libraries.
9644    case $host_os in
9645    aix3* | aix4* | aix5*)
9646      # On AIX/PPC, the GNU linker is very broken
9647      if test "$host_cpu" != ia64; then
9648        ld_shlibs=no
9649        cat <<EOF 1>&2
9650
9651*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9652*** to be unable to reliably create shared libraries on AIX.
9653*** Therefore, libtool is disabling shared libraries support.  If you
9654*** really care for shared libraries, you may want to modify your PATH
9655*** so that a non-GNU linker is found, and then restart.
9656
9657EOF
9658      fi
9659      ;;
9660
9661    amigaos*)
9662      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)'
9663      hardcode_libdir_flag_spec='-L$libdir'
9664      hardcode_minus_L=yes
9665
9666      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9667      # that the semantics of dynamic libraries on AmigaOS, at least up
9668      # to version 4, is to share data among multiple programs linked
9669      # with the same dynamic library.  Since this doesn't match the
9670      # behavior of shared libraries on other platforms, we can't use
9671      # them.
9672      ld_shlibs=no
9673      ;;
9674
9675    beos*)
9676      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9677        allow_undefined_flag=unsupported
9678        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9679        # support --undefined.  This deserves some investigation.  FIXME
9680        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681      else
9682        ld_shlibs=no
9683      fi
9684      ;;
9685
9686    cygwin* | mingw* | pw32*)
9687      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9688      # as there is no search path for DLLs.
9689      hardcode_libdir_flag_spec='-L$libdir'
9690      allow_undefined_flag=unsupported
9691      always_export_symbols=no
9692      enable_shared_with_static_runtimes=yes
9693      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9694
9695      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9696        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9697        # If the export-symbols file already is a .def file (1st line
9698        # is EXPORTS), use it as is; otherwise, prepend...
9699        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9700          cp $export_symbols $output_objdir/$soname.def;
9701        else
9702          echo EXPORTS > $output_objdir/$soname.def;
9703          cat $export_symbols >> $output_objdir/$soname.def;
9704        fi~
9705        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9706      else
9707        ld_shlibs=no
9708      fi
9709      ;;
9710
9711    interix3*)
9712      hardcode_direct=no
9713      hardcode_shlibpath_var=no
9714      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9715      export_dynamic_flag_spec='${wl}-E'
9716      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9717      # Instead, shared libraries are loaded at an image base (0x10000000 by
9718      # default) and relocated if they conflict, which is a slow very memory
9719      # consuming and fragmenting process.  To avoid this, we pick a random,
9720      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9721      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9722      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9723      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'
9724      ;;
9725
9726    linux*)
9727      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9728        tmp_addflag=
9729        case $cc_basename,$host_cpu in
9730        pgcc*)                          # Portland Group C compiler
9731          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'
9732          tmp_addflag=' $pic_flag'
9733          ;;
9734        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9735          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'
9736          tmp_addflag=' $pic_flag -Mnomain' ;;
9737        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9738          tmp_addflag=' -i_dynamic' ;;
9739        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9740          tmp_addflag=' -i_dynamic -nofor_main' ;;
9741        ifc* | ifort*)                  # Intel Fortran compiler
9742          tmp_addflag=' -nofor_main' ;;
9743        esac
9744        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745
9746        if test $supports_anon_versioning = yes; then
9747          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9748  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9749  $echo "local: *; };" >> $output_objdir/$libname.ver~
9750          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9751        fi
9752      else
9753        ld_shlibs=no
9754      fi
9755      ;;
9756
9757    netbsd*)
9758      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9759        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9760        wlarc=
9761      else
9762        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9763        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9764      fi
9765      ;;
9766
9767    solaris*)
9768      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9769        ld_shlibs=no
9770        cat <<EOF 1>&2
9771
9772*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9773*** create shared libraries on Solaris systems.  Therefore, libtool
9774*** is disabling shared libraries support.  We urge you to upgrade GNU
9775*** binutils to release 2.9.1 or newer.  Another option is to modify
9776*** your PATH or compiler configuration so that the native linker is
9777*** used, and then restart.
9778
9779EOF
9780      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9781        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9782        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9783      else
9784        ld_shlibs=no
9785      fi
9786      ;;
9787
9788    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9789      case `$LD -v 2>&1` in
9790        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9791        ld_shlibs=no
9792        cat <<_LT_EOF 1>&2
9793
9794*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9795*** reliably create shared libraries on SCO systems.  Therefore, libtool
9796*** is disabling shared libraries support.  We urge you to upgrade GNU
9797*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9798*** your PATH or compiler configuration so that the native linker is
9799*** used, and then restart.
9800
9801_LT_EOF
9802        ;;
9803        *)
9804          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9805            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9806            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9807            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9808          else
9809            ld_shlibs=no
9810          fi
9811        ;;
9812      esac
9813      ;;
9814
9815    sunos4*)
9816      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9817      wlarc=
9818      hardcode_direct=yes
9819      hardcode_shlibpath_var=no
9820      ;;
9821
9822    *)
9823      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9824        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9825        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9826      else
9827        ld_shlibs=no
9828      fi
9829      ;;
9830    esac
9831
9832    if test "$ld_shlibs" = no; then
9833      runpath_var=
9834      hardcode_libdir_flag_spec=
9835      export_dynamic_flag_spec=
9836      whole_archive_flag_spec=
9837    fi
9838  else
9839    # PORTME fill in a description of your system's linker (not GNU ld)
9840    case $host_os in
9841    aix3*)
9842      allow_undefined_flag=unsupported
9843      always_export_symbols=yes
9844      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'
9845      # Note: this linker hardcodes the directories in LIBPATH if there
9846      # are no directories specified by -L.
9847      hardcode_minus_L=yes
9848      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9849        # Neither direct hardcoding nor static linking is supported with a
9850        # broken collect2.
9851        hardcode_direct=unsupported
9852      fi
9853      ;;
9854
9855    aix4* | aix5*)
9856      if test "$host_cpu" = ia64; then
9857        # On IA64, the linker does run time linking by default, so we don't
9858        # have to do anything special.
9859        aix_use_runtimelinking=no
9860        exp_sym_flag='-Bexport'
9861        no_entry_flag=""
9862      else
9863        # If we're using GNU nm, then we don't want the "-C" option.
9864        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9865        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9866          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'
9867        else
9868          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'
9869        fi
9870        aix_use_runtimelinking=no
9871
9872        # Test if we are trying to use run time linking or normal
9873        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9874        # need to do runtime linking.
9875        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9876          for ld_flag in $LDFLAGS; do
9877          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9878            aix_use_runtimelinking=yes
9879            break
9880          fi
9881          done
9882          ;;
9883        esac
9884
9885        exp_sym_flag='-bexport'
9886        no_entry_flag='-bnoentry'
9887      fi
9888
9889      # When large executables or shared objects are built, AIX ld can
9890      # have problems creating the table of contents.  If linking a library
9891      # or program results in "error TOC overflow" add -mminimal-toc to
9892      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9893      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9894
9895      archive_cmds=''
9896      hardcode_direct=yes
9897      hardcode_libdir_separator=':'
9898      link_all_deplibs=yes
9899
9900      if test "$GCC" = yes; then
9901        case $host_os in aix4.[012]|aix4.[012].*)
9902        # We only want to do this on AIX 4.2 and lower, the check
9903        # below for broken collect2 doesn't work under 4.3+
9904          collect2name=`${CC} -print-prog-name=collect2`
9905          if test -f "$collect2name" && \
9906           strings "$collect2name" | grep resolve_lib_name >/dev/null
9907          then
9908          # We have reworked collect2
9909          hardcode_direct=yes
9910          else
9911          # We have old collect2
9912          hardcode_direct=unsupported
9913          # It fails to find uninstalled libraries when the uninstalled
9914          # path is not listed in the libpath.  Setting hardcode_minus_L
9915          # to unsupported forces relinking
9916          hardcode_minus_L=yes
9917          hardcode_libdir_flag_spec='-L$libdir'
9918          hardcode_libdir_separator=
9919          fi
9920          ;;
9921        esac
9922        shared_flag='-shared'
9923        if test "$aix_use_runtimelinking" = yes; then
9924          shared_flag="$shared_flag "'${wl}-G'
9925        fi
9926      else
9927        # not using gcc
9928        if test "$host_cpu" = ia64; then
9929        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9930        # chokes on -Wl,-G. The following line is correct:
9931          shared_flag='-G'
9932        else
9933          if test "$aix_use_runtimelinking" = yes; then
9934            shared_flag='${wl}-G'
9935          else
9936            shared_flag='${wl}-bM:SRE'
9937          fi
9938        fi
9939      fi
9940
9941      # It seems that -bexpall does not export symbols beginning with
9942      # underscore (_), so it is better to generate a list of symbols to export.
9943      always_export_symbols=yes
9944      if test "$aix_use_runtimelinking" = yes; then
9945        # Warning - without using the other runtime loading flags (-brtl),
9946        # -berok will link without error, but may produce a broken library.
9947        allow_undefined_flag='-berok'
9948       # Determine the default libpath from the value encoded in an empty executable.
9949       cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h.  */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h.  */
9955
9956#ifdef F77_DUMMY_MAIN
9957
9958#  ifdef __cplusplus
9959     extern "C"
9960#  endif
9961   int F77_DUMMY_MAIN() { return 1; }
9962
9963#endif
9964int
9965main ()
9966{
9967
9968  ;
9969  return 0;
9970}
9971_ACEOF
9972rm -f conftest.$ac_objext conftest$ac_exeext
9973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9974  (eval $ac_link) 2>conftest.er1
9975  ac_status=$?
9976  grep -v '^ *+' conftest.er1 >conftest.err
9977  rm -f conftest.er1
9978  cat conftest.err >&5
9979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); } &&
9981         { ac_try='test -z "$ac_c_werror_flag"
9982                         || test ! -s conftest.err'
9983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984  (eval $ac_try) 2>&5
9985  ac_status=$?
9986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987  (exit $ac_status); }; } &&
9988         { ac_try='test -s conftest$ac_exeext'
9989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990  (eval $ac_try) 2>&5
9991  ac_status=$?
9992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993  (exit $ac_status); }; }; then
9994
9995aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9996}'`
9997# Check for a 64-bit object if we didn't find anything.
9998if 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; }
9999}'`; fi
10000else
10001  echo "$as_me: failed program was:" >&5
10002sed 's/^/| /' conftest.$ac_ext >&5
10003
10004fi
10005rm -f conftest.err conftest.$ac_objext \
10006      conftest$ac_exeext conftest.$ac_ext
10007if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10008
10009       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10010        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"
10011       else
10012        if test "$host_cpu" = ia64; then
10013          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10014          allow_undefined_flag="-z nodefs"
10015          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"
10016        else
10017         # Determine the default libpath from the value encoded in an empty executable.
10018         cat >conftest.$ac_ext <<_ACEOF
10019/* confdefs.h.  */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
10023/* end confdefs.h.  */
10024
10025#ifdef F77_DUMMY_MAIN
10026
10027#  ifdef __cplusplus
10028     extern "C"
10029#  endif
10030   int F77_DUMMY_MAIN() { return 1; }
10031
10032#endif
10033int
10034main ()
10035{
10036
10037  ;
10038  return 0;
10039}
10040_ACEOF
10041rm -f conftest.$ac_objext conftest$ac_exeext
10042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043  (eval $ac_link) 2>conftest.er1
10044  ac_status=$?
10045  grep -v '^ *+' conftest.er1 >conftest.err
10046  rm -f conftest.er1
10047  cat conftest.err >&5
10048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049  (exit $ac_status); } &&
10050         { ac_try='test -z "$ac_c_werror_flag"
10051                         || test ! -s conftest.err'
10052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053  (eval $ac_try) 2>&5
10054  ac_status=$?
10055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056  (exit $ac_status); }; } &&
10057         { ac_try='test -s conftest$ac_exeext'
10058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059  (eval $ac_try) 2>&5
10060  ac_status=$?
10061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062  (exit $ac_status); }; }; then
10063
10064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10065}'`
10066# Check for a 64-bit object if we didn't find anything.
10067if 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; }
10068}'`; fi
10069else
10070  echo "$as_me: failed program was:" >&5
10071sed 's/^/| /' conftest.$ac_ext >&5
10072
10073fi
10074rm -f conftest.err conftest.$ac_objext \
10075      conftest$ac_exeext conftest.$ac_ext
10076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10077
10078         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10079          # Warning - without using the other run time loading flags,
10080          # -berok will link without error, but may produce a broken library.
10081          no_undefined_flag=' ${wl}-bernotok'
10082          allow_undefined_flag=' ${wl}-berok'
10083          # Exported symbols can be pulled into shared objects from archives
10084          whole_archive_flag_spec='$convenience'
10085          archive_cmds_need_lc=yes
10086          # This is similar to how AIX traditionally builds its shared libraries.
10087          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'
10088        fi
10089      fi
10090      ;;
10091
10092    amigaos*)
10093      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)'
10094      hardcode_libdir_flag_spec='-L$libdir'
10095      hardcode_minus_L=yes
10096      # see comment about different semantics on the GNU ld section
10097      ld_shlibs=no
10098      ;;
10099
10100    bsdi[45]*)
10101      export_dynamic_flag_spec=-rdynamic
10102      ;;
10103
10104    cygwin* | mingw* | pw32*)
10105      # When not using gcc, we currently assume that we are using
10106      # Microsoft Visual C++.
10107      # hardcode_libdir_flag_spec is actually meaningless, as there is
10108      # no search path for DLLs.
10109      hardcode_libdir_flag_spec=' '
10110      allow_undefined_flag=unsupported
10111      # Tell ltmain to make .lib files, not .a files.
10112      libext=lib
10113      # Tell ltmain to make .dll files, not .so files.
10114      shrext_cmds=".dll"
10115      # FIXME: Setting linknames here is a bad hack.
10116      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10117      # The linker will automatically build a .lib file if we build a DLL.
10118      old_archive_From_new_cmds='true'
10119      # FIXME: Should let the user specify the lib program.
10120      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10121      fix_srcfile_path='`cygpath -w "$srcfile"`'
10122      enable_shared_with_static_runtimes=yes
10123      ;;
10124
10125    darwin* | rhapsody*)
10126      case $host_os in
10127        rhapsody* | darwin1.[012])
10128         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10129         ;;
10130       *) # Darwin 1.3 on
10131         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10132           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10133         else
10134           case ${MACOSX_DEPLOYMENT_TARGET} in
10135             10.[012])
10136               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10137               ;;
10138             10.*)
10139               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10140               ;;
10141           esac
10142         fi
10143         ;;
10144      esac
10145      archive_cmds_need_lc=no
10146      hardcode_direct=no
10147      hardcode_automatic=yes
10148      hardcode_shlibpath_var=unsupported
10149      whole_archive_flag_spec=''
10150      link_all_deplibs=yes
10151    if test "$GCC" = yes ; then
10152        output_verbose_link_cmd='echo'
10153        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10154      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10155      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10156      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}'
10157      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}'
10158    else
10159      case $cc_basename in
10160        xlc*)
10161         output_verbose_link_cmd='echo'
10162         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10163         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10164          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10165         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}'
10166          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}'
10167          ;;
10168       *)
10169         ld_shlibs=no
10170          ;;
10171      esac
10172    fi
10173      ;;
10174
10175    dgux*)
10176      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177      hardcode_libdir_flag_spec='-L$libdir'
10178      hardcode_shlibpath_var=no
10179      ;;
10180
10181    freebsd1*)
10182      ld_shlibs=no
10183      ;;
10184
10185    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10186    # support.  Future versions do this automatically, but an explicit c++rt0.o
10187    # does not break anything, and helps significantly (at the cost of a little
10188    # extra space).
10189    freebsd2.2*)
10190      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10191      hardcode_libdir_flag_spec='-R$libdir'
10192      hardcode_direct=yes
10193      hardcode_shlibpath_var=no
10194      ;;
10195
10196    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10197    freebsd2*)
10198      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10199      hardcode_direct=yes
10200      hardcode_minus_L=yes
10201      hardcode_shlibpath_var=no
10202      ;;
10203
10204    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10205    freebsd* | kfreebsd*-gnu | dragonfly*)
10206      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10207      hardcode_libdir_flag_spec='-R$libdir'
10208      hardcode_direct=yes
10209      hardcode_shlibpath_var=no
10210      ;;
10211
10212    hpux9*)
10213      if test "$GCC" = yes; then
10214        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'
10215      else
10216        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'
10217      fi
10218      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10219      hardcode_libdir_separator=:
10220      hardcode_direct=yes
10221
10222      # hardcode_minus_L: Not really in the search PATH,
10223      # but as the default location of the library.
10224      hardcode_minus_L=yes
10225      export_dynamic_flag_spec='${wl}-E'
10226      ;;
10227
10228    hpux10*)
10229      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10230        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10231      else
10232        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10233      fi
10234      if test "$with_gnu_ld" = no; then
10235        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236        hardcode_libdir_separator=:
10237
10238        hardcode_direct=yes
10239        export_dynamic_flag_spec='${wl}-E'
10240
10241        # hardcode_minus_L: Not really in the search PATH,
10242        # but as the default location of the library.
10243        hardcode_minus_L=yes
10244      fi
10245      ;;
10246
10247    hpux11*)
10248      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10249        case $host_cpu in
10250        hppa*64*)
10251          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10252          ;;
10253        ia64*)
10254          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10255          ;;
10256        *)
10257          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10258          ;;
10259        esac
10260      else
10261        case $host_cpu in
10262        hppa*64*)
10263          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10264          ;;
10265        ia64*)
10266          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10267          ;;
10268        *)
10269          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10270          ;;
10271        esac
10272      fi
10273      if test "$with_gnu_ld" = no; then
10274        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10275        hardcode_libdir_separator=:
10276
10277        case $host_cpu in
10278        hppa*64*|ia64*)
10279          hardcode_libdir_flag_spec_ld='+b $libdir'
10280          hardcode_direct=no
10281          hardcode_shlibpath_var=no
10282          ;;
10283        *)
10284          hardcode_direct=yes
10285          export_dynamic_flag_spec='${wl}-E'
10286
10287          # hardcode_minus_L: Not really in the search PATH,
10288          # but as the default location of the library.
10289          hardcode_minus_L=yes
10290          ;;
10291        esac
10292      fi
10293      ;;
10294
10295    irix5* | irix6* | nonstopux*)
10296      if test "$GCC" = yes; then
10297        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'
10298      else
10299        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'
10300        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10301      fi
10302      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10303      hardcode_libdir_separator=:
10304      link_all_deplibs=yes
10305      ;;
10306
10307    netbsd*)
10308      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10309        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10310      else
10311        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10312      fi
10313      hardcode_libdir_flag_spec='-R$libdir'
10314      hardcode_direct=yes
10315      hardcode_shlibpath_var=no
10316      ;;
10317
10318    newsos6)
10319      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320      hardcode_direct=yes
10321      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10322      hardcode_libdir_separator=:
10323      hardcode_shlibpath_var=no
10324      ;;
10325
10326    openbsd*)
10327      hardcode_direct=yes
10328      hardcode_shlibpath_var=no
10329      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10330        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10331        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10332        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10333        export_dynamic_flag_spec='${wl}-E'
10334      else
10335       case $host_os in
10336         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10337           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10338           hardcode_libdir_flag_spec='-R$libdir'
10339           ;;
10340         *)
10341           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10342           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10343           ;;
10344       esac
10345      fi
10346      ;;
10347
10348    os2*)
10349      hardcode_libdir_flag_spec='-L$libdir'
10350      hardcode_minus_L=yes
10351      allow_undefined_flag=unsupported
10352      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'
10353      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10354      ;;
10355
10356    osf3*)
10357      if test "$GCC" = yes; then
10358        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10359        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'
10360      else
10361        allow_undefined_flag=' -expect_unresolved \*'
10362        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'
10363      fi
10364      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365      hardcode_libdir_separator=:
10366      ;;
10367
10368    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10369      if test "$GCC" = yes; then
10370        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10371        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'
10372        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373      else
10374        allow_undefined_flag=' -expect_unresolved \*'
10375        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'
10376        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10377        $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'
10378
10379        # Both c and cxx compiler support -rpath directly
10380        hardcode_libdir_flag_spec='-rpath $libdir'
10381      fi
10382      hardcode_libdir_separator=:
10383      ;;
10384
10385    solaris*)
10386      no_undefined_flag=' -z text'
10387      if test "$GCC" = yes; then
10388        wlarc='${wl}'
10389        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10390        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10391          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10392      else
10393        wlarc=''
10394        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10396        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10397      fi
10398      hardcode_libdir_flag_spec='-R$libdir'
10399      hardcode_shlibpath_var=no
10400      case $host_os in
10401      solaris2.[0-5] | solaris2.[0-5].*) ;;
10402      *)
10403        # The compiler driver will combine linker options so we
10404        # cannot just pass the convience library names through
10405        # without $wl, iff we do not link with $LD.
10406        # Luckily, gcc supports the same syntax we need for Sun Studio.
10407        # Supported since Solaris 2.6 (maybe 2.5.1?)
10408        case $wlarc in
10409        '')
10410          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10411        *)
10412          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' ;;
10413        esac ;;
10414      esac
10415      link_all_deplibs=yes
10416      ;;
10417
10418    sunos4*)
10419      if test "x$host_vendor" = xsequent; then
10420        # Use $CC to link under sequent, because it throws in some extra .o
10421        # files that make .init and .fini sections work.
10422        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10423      else
10424        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10425      fi
10426      hardcode_libdir_flag_spec='-L$libdir'
10427      hardcode_direct=yes
10428      hardcode_minus_L=yes
10429      hardcode_shlibpath_var=no
10430      ;;
10431
10432    sysv4)
10433      case $host_vendor in
10434        sni)
10435          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436          hardcode_direct=yes # is this really true???
10437        ;;
10438        siemens)
10439          ## LD is ld it makes a PLAMLIB
10440          ## CC just makes a GrossModule.
10441          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10442          reload_cmds='$CC -r -o $output$reload_objs'
10443          hardcode_direct=no
10444        ;;
10445        motorola)
10446          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10447          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10448        ;;
10449      esac
10450      runpath_var='LD_RUN_PATH'
10451      hardcode_shlibpath_var=no
10452      ;;
10453
10454    sysv4.3*)
10455      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456      hardcode_shlibpath_var=no
10457      export_dynamic_flag_spec='-Bexport'
10458      ;;
10459
10460    sysv4*MP*)
10461      if test -d /usr/nec; then
10462        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10463        hardcode_shlibpath_var=no
10464        runpath_var=LD_RUN_PATH
10465        hardcode_runpath_var=yes
10466        ld_shlibs=yes
10467      fi
10468      ;;
10469
10470    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10471      no_undefined_flag='${wl}-z,text'
10472      archive_cmds_need_lc=no
10473      hardcode_shlibpath_var=no
10474      runpath_var='LD_RUN_PATH'
10475
10476      if test "$GCC" = yes; then
10477        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10479      else
10480        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482      fi
10483      ;;
10484
10485    sysv5* | sco3.2v5* | sco5v6*)
10486      # Note: We can NOT use -z defs as we might desire, because we do not
10487      # link with -lc, and that would cause any symbols used from libc to
10488      # always be unresolved, which means just about no library would
10489      # ever link correctly.  If we're not using GNU ld we use -z text
10490      # though, which does catch some bad symbols but isn't as heavy-handed
10491      # as -z defs.
10492      no_undefined_flag='${wl}-z,text'
10493      allow_undefined_flag='${wl}-z,nodefs'
10494      archive_cmds_need_lc=no
10495      hardcode_shlibpath_var=no
10496      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10497      hardcode_libdir_separator=':'
10498      link_all_deplibs=yes
10499      export_dynamic_flag_spec='${wl}-Bexport'
10500      runpath_var='LD_RUN_PATH'
10501
10502      if test "$GCC" = yes; then
10503        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10504        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10505      else
10506        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10507        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10508      fi
10509      ;;
10510
10511    uts4*)
10512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513      hardcode_libdir_flag_spec='-L$libdir'
10514      hardcode_shlibpath_var=no
10515      ;;
10516
10517    *)
10518      ld_shlibs=no
10519      ;;
10520    esac
10521  fi
10522
10523echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10524echo "${ECHO_T}$ld_shlibs" >&6
10525test "$ld_shlibs" = no && can_build_shared=no
10526
10527#
10528# Do we need to explicitly link libc?
10529#
10530case "x$archive_cmds_need_lc" in
10531x|xyes)
10532  # Assume -lc should be added
10533  archive_cmds_need_lc=yes
10534
10535  if test "$enable_shared" = yes && test "$GCC" = yes; then
10536    case $archive_cmds in
10537    *'~'*)
10538      # FIXME: we may have to deal with multi-command sequences.
10539      ;;
10540    '$CC '*)
10541      # Test whether the compiler implicitly links with -lc since on some
10542      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10543      # to ld, don't add -lc before -lgcc.
10544      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10545echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10546      $rm conftest*
10547      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10548
10549      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550  (eval $ac_compile) 2>&5
10551  ac_status=$?
10552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); } 2>conftest.err; then
10554        soname=conftest
10555        lib=conftest
10556        libobjs=conftest.$ac_objext
10557        deplibs=
10558        wl=$lt_prog_compiler_wl
10559        pic_flag=$lt_prog_compiler_pic
10560        compiler_flags=-v
10561        linker_flags=-v
10562        verstring=
10563        output_objdir=.
10564        libname=conftest
10565        lt_save_allow_undefined_flag=$allow_undefined_flag
10566        allow_undefined_flag=
10567        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10568  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10569  ac_status=$?
10570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571  (exit $ac_status); }
10572        then
10573          archive_cmds_need_lc=no
10574        else
10575          archive_cmds_need_lc=yes
10576        fi
10577        allow_undefined_flag=$lt_save_allow_undefined_flag
10578      else
10579        cat conftest.err 1>&5
10580      fi
10581      $rm conftest*
10582      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10583echo "${ECHO_T}$archive_cmds_need_lc" >&6
10584      ;;
10585    esac
10586  fi
10587  ;;
10588esac
10589
10590echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10591echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10592library_names_spec=
10593libname_spec='lib$name'
10594soname_spec=
10595shrext_cmds=".so"
10596postinstall_cmds=
10597postuninstall_cmds=
10598finish_cmds=
10599finish_eval=
10600shlibpath_var=
10601shlibpath_overrides_runpath=unknown
10602version_type=none
10603dynamic_linker="$host_os ld.so"
10604sys_lib_dlsearch_path_spec="/lib /usr/lib"
10605if test "$GCC" = yes; then
10606  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10607  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10608    # if the path contains ";" then we assume it to be the separator
10609    # otherwise default to the standard path separator (i.e. ":") - it is
10610    # assumed that no part of a normal pathname contains ";" but that should
10611    # okay in the real world where ";" in dirpaths is itself problematic.
10612    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10613  else
10614    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10615  fi
10616else
10617  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10618fi
10619need_lib_prefix=unknown
10620hardcode_into_libs=no
10621
10622# when you set need_version to no, make sure it does not cause -set_version
10623# flags to be left without arguments
10624need_version=unknown
10625
10626case $host_os in
10627aix3*)
10628  version_type=linux
10629  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10630  shlibpath_var=LIBPATH
10631
10632  # AIX 3 has no versioning support, so we append a major version to the name.
10633  soname_spec='${libname}${release}${shared_ext}$major'
10634  ;;
10635
10636aix4* | aix5*)
10637  version_type=linux
10638  need_lib_prefix=no
10639  need_version=no
10640  hardcode_into_libs=yes
10641  if test "$host_cpu" = ia64; then
10642    # AIX 5 supports IA64
10643    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10644    shlibpath_var=LD_LIBRARY_PATH
10645  else
10646    # With GCC up to 2.95.x, collect2 would create an import file
10647    # for dependence libraries.  The import file would start with
10648    # the line `#! .'.  This would cause the generated library to
10649    # depend on `.', always an invalid library.  This was fixed in
10650    # development snapshots of GCC prior to 3.0.
10651    case $host_os in
10652      aix4 | aix4.[01] | aix4.[01].*)
10653      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10654           echo ' yes '
10655           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10656        :
10657      else
10658        can_build_shared=no
10659      fi
10660      ;;
10661    esac
10662    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10663    # soname into executable. Probably we can add versioning support to
10664    # collect2, so additional links can be useful in future.
10665    if test "$aix_use_runtimelinking" = yes; then
10666      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10667      # instead of lib<name>.a to let people know that these are not
10668      # typical AIX shared libraries.
10669      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670    else
10671      # We preserve .a as extension for shared libraries through AIX4.2
10672      # and later when we are not doing run time linking.
10673      library_names_spec='${libname}${release}.a $libname.a'
10674      soname_spec='${libname}${release}${shared_ext}$major'
10675    fi
10676    shlibpath_var=LIBPATH
10677  fi
10678  ;;
10679
10680amigaos*)
10681  library_names_spec='$libname.ixlibrary $libname.a'
10682  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10683  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'
10684  ;;
10685
10686beos*)
10687  library_names_spec='${libname}${shared_ext}'
10688  dynamic_linker="$host_os ld.so"
10689  shlibpath_var=LIBRARY_PATH
10690  ;;
10691
10692bsdi[45]*)
10693  version_type=linux
10694  need_version=no
10695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696  soname_spec='${libname}${release}${shared_ext}$major'
10697  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10698  shlibpath_var=LD_LIBRARY_PATH
10699  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10700  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10701  # the default ld.so.conf also contains /usr/contrib/lib and
10702  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10703  # libtool to hard-code these into programs
10704  ;;
10705
10706cygwin* | mingw* | pw32*)
10707  version_type=windows
10708  shrext_cmds=".dll"
10709  need_version=no
10710  need_lib_prefix=no
10711
10712  case $GCC,$host_os in
10713  yes,cygwin* | yes,mingw* | yes,pw32*)
10714    library_names_spec='$libname.dll.a'
10715    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716    postinstall_cmds='base_file=`basename \${file}`~
10717      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10718      dldir=$destdir/`dirname \$dlpath`~
10719      test -d \$dldir || mkdir -p \$dldir~
10720      $install_prog $dir/$dlname \$dldir/$dlname~
10721      chmod a+x \$dldir/$dlname'
10722    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10723      dlpath=$dir/\$dldll~
10724       $rm \$dlpath'
10725    shlibpath_overrides_runpath=yes
10726
10727    case $host_os in
10728    cygwin*)
10729      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10730      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10731      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10732      ;;
10733    mingw*)
10734      # MinGW DLLs use traditional 'lib' prefix
10735      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10737      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10738        # It is most probably a Windows format PATH printed by
10739        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10740        # path with ; separators, and with drive letters. We can handle the
10741        # drive letters (cygwin fileutils understands them), so leave them,
10742        # especially as we might pass files found there to a mingw objdump,
10743        # which wouldn't understand a cygwinified path. Ahh.
10744        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10745      else
10746        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10747      fi
10748      ;;
10749    pw32*)
10750      # pw32 DLLs use 'pw' prefix rather than 'lib'
10751      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10752      ;;
10753    esac
10754    ;;
10755
10756  *)
10757    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10758    ;;
10759  esac
10760  dynamic_linker='Win32 ld.exe'
10761  # FIXME: first we should search . and the directory the executable is in
10762  shlibpath_var=PATH
10763  ;;
10764
10765darwin* | rhapsody*)
10766  dynamic_linker="$host_os dyld"
10767  version_type=darwin
10768  need_lib_prefix=no
10769  need_version=no
10770  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10771  soname_spec='${libname}${release}${major}$shared_ext'
10772  shlibpath_overrides_runpath=yes
10773  shlibpath_var=DYLD_LIBRARY_PATH
10774  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10775  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10776  if test "$GCC" = yes; then
10777    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10778  else
10779    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10780  fi
10781  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10782  ;;
10783
10784dgux*)
10785  version_type=linux
10786  need_lib_prefix=no
10787  need_version=no
10788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10789  soname_spec='${libname}${release}${shared_ext}$major'
10790  shlibpath_var=LD_LIBRARY_PATH
10791  ;;
10792
10793freebsd1*)
10794  dynamic_linker=no
10795