source: ThirdParty/Blas/trunk/configure @ 2147

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