source: ThirdParty/Blas/trunk/configure @ 2811

Last change on this file since 2811 was 2678, checked in by stefan, 8 years ago

rerun autotools

  • Property svn:executable set to *
File size: 747.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyBlas trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion BLAS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS BLAS_PCLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyBlas 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                          (implies --disable-shared)
1079  --enable-debug-blas compile project Blas with debug compiler flags
1080  --enable-doscompile     Under Cygwin, compile so that executables run under
1081                          DOS. Set to mingw to use gcc/g++/ld with
1082                          -mno-cygwin. Set to msvc to use cl/link (or
1083                          icl/link). Default when mentioned: mingw. Default
1084                          when not mentioned: disabled.
1085
1086  --disable-pkg-config    disable use of pkg-config (if available)
1087  --enable-static[=PKGS]
1088                          build static libraries [default=no]
1089  --disable-dependency-tracking  speeds up one-time build
1090  --enable-dependency-tracking   do not reject slow dependency extractors
1091  --enable-maintainer-mode  enable make rules and dependencies not useful
1092                          (and sometimes confusing) to the casual installer
1093  --enable-shared[=PKGS]
1094                          build shared libraries [default=yes]
1095  --enable-fast-install[=PKGS]
1096                          optimize for fast installation [default=yes]
1097  --disable-libtool-lock  avoid locking (might break parallel builds)
1098
1099Optional Packages:
1100  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1101  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1102  --with-blas-verbosity specify the debug verbosity level for project Blas
1103  --with-blas-checklevel specify the sanity check level for project Blas
1104  --with-coin-instdir     prefix of installation directory for precompiled
1105                          COIN packages
1106  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1107  --with-pic              try to use only PIC/non-PIC objects [default=use
1108                          both]
1109  --with-tags[=TAGS]
1110                          include additional configurations [automatic]
1111
1112Some influential environment variables:
1113  CDEFS       Additional -D flags to be used when compiling C code.
1114  ADD_CFLAGS  Additional C compiler options
1115  DBG_CFLAGS  Debug C compiler options
1116  OPT_CFLAGS  Optimize C compiler options
1117  CC          C compiler command
1118  CFLAGS      C compiler flags
1119  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1120              nonstandard directory <lib dir>
1121  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1122              headers in a nonstandard directory <include dir>
1123  MPICC       C MPI Compiler
1124  ADD_FFLAGS  Additional Fortran compiler options
1125  DBG_FFLAGS  Debug Fortran compiler options
1126  OPT_FFLAGS  Optimize Fortran compiler options
1127  F77         Fortran 77 compiler command
1128  FFLAGS      Fortran 77 compiler flags
1129  MPIF77      Fortran MPI Compiler
1130  PKG_CONFIG  path to pkg-config utility
1131  CPP         C preprocessor
1132  CXX         C++ compiler command
1133  CXXFLAGS    C++ compiler flags
1134  CXXCPP      C++ preprocessor
1135
1136Use these variables to override the choices made by `configure' or to help
1137it to find libraries and programs with nonstandard names/locations.
1138
1139Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1140_ACEOF
1141fi
1142
1143if test "$ac_init_help" = "recursive"; then
1144  # If there are subdirs, report their specific --help.
1145  ac_popdir=`pwd`
1146  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147    test -d $ac_dir || continue
1148    ac_builddir=.
1149
1150if test "$ac_dir" != .; then
1151  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152  # A "../" for each directory in $ac_dir_suffix.
1153  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154else
1155  ac_dir_suffix= ac_top_builddir=
1156fi
1157
1158case $srcdir in
1159  .)  # No --srcdir option.  We are building in place.
1160    ac_srcdir=.
1161    if test -z "$ac_top_builddir"; then
1162       ac_top_srcdir=.
1163    else
1164       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165    fi ;;
1166  [\\/]* | ?:[\\/]* )  # Absolute path.
1167    ac_srcdir=$srcdir$ac_dir_suffix;
1168    ac_top_srcdir=$srcdir ;;
1169  *) # Relative path.
1170    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172esac
1173
1174# Do not use `cd foo && pwd` to compute absolute paths, because
1175# the directories may not exist.
1176case `pwd` in
1177.) ac_abs_builddir="$ac_dir";;
1178*)
1179  case "$ac_dir" in
1180  .) ac_abs_builddir=`pwd`;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_builddir=${ac_top_builddir}.;;
1187*)
1188  case ${ac_top_builddir}. in
1189  .) ac_abs_top_builddir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_srcdir=$ac_srcdir;;
1196*)
1197  case $ac_srcdir in
1198  .) ac_abs_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_top_srcdir=$ac_top_srcdir;;
1205*)
1206  case $ac_top_srcdir in
1207  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210  esac;;
1211esac
1212
1213    cd $ac_dir
1214    # Check for guested configure; otherwise get Cygnus style configure.
1215    if test -f $ac_srcdir/configure.gnu; then
1216      echo
1217      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218    elif test -f $ac_srcdir/configure; then
1219      echo
1220      $SHELL $ac_srcdir/configure  --help=recursive
1221    elif test -f $ac_srcdir/configure.ac ||
1222           test -f $ac_srcdir/configure.in; then
1223      echo
1224      $ac_configure --help
1225    else
1226      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227    fi
1228    cd $ac_popdir
1229  done
1230fi
1231
1232test -n "$ac_init_help" && exit 0
1233if $ac_init_version; then
1234  cat <<\_ACEOF
1235ThirdPartyBlas configure trunk
1236generated by GNU Autoconf 2.59
1237
1238Copyright (C) 2003 Free Software Foundation, Inc.
1239This configure script is free software; the Free Software Foundation
1240gives unlimited permission to copy, distribute and modify it.
1241
1242
1243Copyright 2006 International Business Machines and others.
1244All Rights Reserved.
1245This file is part of the open source package Coin which is distributed
1246under the Eclipse Public License.
1247_ACEOF
1248  exit 0
1249fi
1250exec 5>config.log
1251cat >&5 <<_ACEOF
1252This file contains any messages produced by compilers while
1253running configure, to aid debugging if configure makes a mistake.
1254
1255It was created by ThirdPartyBlas $as_me trunk, which was
1256generated by GNU Autoconf 2.59.  Invocation command line was
1257
1258  $ $0 $@
1259
1260_ACEOF
1261{
1262cat <<_ASUNAME
1263## --------- ##
1264## Platform. ##
1265## --------- ##
1266
1267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1275
1276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1283
1284_ASUNAME
1285
1286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287for as_dir in $PATH
1288do
1289  IFS=$as_save_IFS
1290  test -z "$as_dir" && as_dir=.
1291  echo "PATH: $as_dir"
1292done
1293
1294} >&5
1295
1296cat >&5 <<_ACEOF
1297
1298
1299## ----------- ##
1300## Core tests. ##
1301## ----------- ##
1302
1303_ACEOF
1304
1305
1306# Keep a trace of the command line.
1307# Strip out --no-create and --no-recursion so they do not pile up.
1308# Strip out --silent because we don't want to record it for future runs.
1309# Also quote any args containing shell meta-characters.
1310# Make two passes to allow for proper duplicate-argument suppression.
1311ac_configure_args=
1312ac_configure_args0=
1313ac_configure_args1=
1314ac_sep=
1315ac_must_keep_next=false
1316for ac_pass in 1 2
1317do
1318  for ac_arg
1319  do
1320    case $ac_arg in
1321    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323    | -silent | --silent | --silen | --sile | --sil)
1324      continue ;;
1325    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327    esac
1328    case $ac_pass in
1329    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330    2)
1331      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332      if test $ac_must_keep_next = true; then
1333        ac_must_keep_next=false # Got value, back to normal.
1334      else
1335        case $ac_arg in
1336          *=* | --config-cache | -C | -disable-* | --disable-* \
1337          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339          | -with-* | --with-* | -without-* | --without-* | --x)
1340            case "$ac_configure_args0 " in
1341              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342            esac
1343            ;;
1344          -* ) ac_must_keep_next=true ;;
1345        esac
1346      fi
1347      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348      # Get rid of the leading space.
1349      ac_sep=" "
1350      ;;
1351    esac
1352  done
1353done
1354$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357# When interrupted or exit'd, cleanup temporary files, and complete
1358# config.log.  We remove comments because anyway the quotes in there
1359# would cause problems or look ugly.
1360# WARNING: Be sure not to use single quotes in there, as some shells,
1361# such as our DU 5.0 friend, will then `close' the trap.
1362trap 'exit_status=$?
1363  # Save into config.log some information that might help in debugging.
1364  {
1365    echo
1366
1367    cat <<\_ASBOX
1368## ---------------- ##
1369## Cache variables. ##
1370## ---------------- ##
1371_ASBOX
1372    echo
1373    # The following way of writing the cache mishandles newlines in values,
1374{
1375  (set) 2>&1 |
1376    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377    *ac_space=\ *)
1378      sed -n \
1379        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381      ;;
1382    *)
1383      sed -n \
1384        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385      ;;
1386    esac;
1387}
1388    echo
1389
1390    cat <<\_ASBOX
1391## ----------------- ##
1392## Output variables. ##
1393## ----------------- ##
1394_ASBOX
1395    echo
1396    for ac_var in $ac_subst_vars
1397    do
1398      eval ac_val=$`echo $ac_var`
1399      echo "$ac_var='"'"'$ac_val'"'"'"
1400    done | sort
1401    echo
1402
1403    if test -n "$ac_subst_files"; then
1404      cat <<\_ASBOX
1405## ------------- ##
1406## Output files. ##
1407## ------------- ##
1408_ASBOX
1409      echo
1410      for ac_var in $ac_subst_files
1411      do
1412        eval ac_val=$`echo $ac_var`
1413        echo "$ac_var='"'"'$ac_val'"'"'"
1414      done | sort
1415      echo
1416    fi
1417
1418    if test -s confdefs.h; then
1419      cat <<\_ASBOX
1420## ----------- ##
1421## confdefs.h. ##
1422## ----------- ##
1423_ASBOX
1424      echo
1425      sed "/^$/d" confdefs.h | sort
1426      echo
1427    fi
1428    test "$ac_signal" != 0 &&
1429      echo "$as_me: caught signal $ac_signal"
1430    echo "$as_me: exit $exit_status"
1431  } >&5
1432  rm -f core *.core &&
1433  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434    exit $exit_status
1435     ' 0
1436for ac_signal in 1 2 13 15; do
1437  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438done
1439ac_signal=0
1440
1441# confdefs.h avoids OS command line length limits that DEFS can exceed.
1442rm -rf conftest* confdefs.h
1443# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444echo >confdefs.h
1445
1446# Predefined preprocessor variables.
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_NAME "$PACKAGE_NAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_VERSION "$PACKAGE_VERSION"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_STRING "$PACKAGE_STRING"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470_ACEOF
1471
1472
1473# Let the site file select an alternate cache file if it wants to.
1474# Prefer explicitly selected file to automatically selected ones.
1475if test -z "$CONFIG_SITE"; then
1476  if test "x$prefix" != xNONE; then
1477    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478  else
1479    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480  fi
1481fi
1482for ac_site_file in $CONFIG_SITE; do
1483  if test -r "$ac_site_file"; then
1484    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485echo "$as_me: loading site script $ac_site_file" >&6;}
1486    sed 's/^/| /' "$ac_site_file" >&5
1487    . "$ac_site_file"
1488  fi
1489done
1490
1491if test -r "$cache_file"; then
1492  # Some versions of bash will fail to source /dev/null (special
1493  # files actually), so we avoid doing that.
1494  if test -f "$cache_file"; then
1495    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496echo "$as_me: loading cache $cache_file" >&6;}
1497    case $cache_file in
1498      [\\/]* | ?:[\\/]* ) . $cache_file;;
1499      *)                      . ./$cache_file;;
1500    esac
1501  fi
1502else
1503  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504echo "$as_me: creating cache $cache_file" >&6;}
1505  >$cache_file
1506fi
1507
1508# Check that the precious variables saved in the cache have kept the same
1509# value.
1510ac_cache_corrupted=false
1511for ac_var in `(set) 2>&1 |
1512               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514  eval ac_new_set=\$ac_env_${ac_var}_set
1515  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516  eval ac_new_val="\$ac_env_${ac_var}_value"
1517  case $ac_old_set,$ac_new_set in
1518    set,)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,set)
1523      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525      ac_cache_corrupted=: ;;
1526    ,);;
1527    *)
1528      if test "x$ac_old_val" != "x$ac_new_val"; then
1529        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1532echo "$as_me:   former value:  $ac_old_val" >&2;}
1533        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1534echo "$as_me:   current value: $ac_new_val" >&2;}
1535        ac_cache_corrupted=:
1536      fi;;
1537  esac
1538  # Pass precious variables to config.status.
1539  if test "$ac_new_set" = set; then
1540    case $ac_new_val in
1541    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543    *) ac_arg=$ac_var=$ac_new_val ;;
1544    esac
1545    case " $ac_configure_args " in
1546      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1547      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548    esac
1549  fi
1550done
1551if $ac_cache_corrupted; then
1552  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558
1559ac_ext=c
1560ac_cpp='$CPP $CPPFLAGS'
1561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594# List one file in the package so that the configure script can test
1595# whether the package is actually there
1596
1597
1598# Where should everything be installed by default?  Here, we want it
1599# to be installed directly in 'bin', 'lib', 'include' subdirectories
1600# of the directory where configure is run.  The default would be
1601# /usr/local.
1602
1603
1604
1605# As backup, we make sure we don't loose an FLIBS if it has been set
1606# by the user
1607save_FLIBS="$FLIBS"
1608
1609# A useful makefile conditional that is always false
1610
1611
1612if false; then
1613  ALWAYS_FALSE_TRUE=
1614  ALWAYS_FALSE_FALSE='#'
1615else
1616  ALWAYS_FALSE_TRUE='#'
1617  ALWAYS_FALSE_FALSE=
1618fi
1619
1620
1621# We set the following variable so that we know later in AC_COIN_FINALIZE
1622# that we are in a project main directory
1623coin_projectdir=yes
1624
1625# Set the project's version numbers
1626
1627
1628cat >>confdefs.h <<_ACEOF
1629#define BLAS_VERSION "$PACKAGE_VERSION"
1630_ACEOF
1631
1632
1633  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1634  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1635  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1636  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1637  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1638  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1639
1640cat >>confdefs.h <<_ACEOF
1641#define BLAS_VERSION_MAJOR $coin_majorver
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define BLAS_VERSION_MINOR $coin_minorver
1647_ACEOF
1648
1649
1650cat >>confdefs.h <<_ACEOF
1651#define BLAS_VERSION_RELEASE $coin_releasever
1652_ACEOF
1653
1654
1655  # We use the following variable to have a string with the upper case
1656  # version of the project name
1657  COIN_PRJCT=BLAS
1658
1659  # Set the project's SVN revision number. The complicated sed expression
1660  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1661  # as a single number.
1662  # Extract the first word of "svnversion", so it can be a program name with args.
1663set dummy svnversion; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_have_svnversion+set}" = set; then
1667  echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669  if test -n "$have_svnversion"; then
1670  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675  IFS=$as_save_IFS
1676  test -z "$as_dir" && as_dir=.
1677  for ac_exec_ext in '' $ac_executable_extensions; do
1678  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679    ac_cv_prog_have_svnversion="yes"
1680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681    break 2
1682  fi
1683done
1684done
1685
1686  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1687fi
1688fi
1689have_svnversion=$ac_cv_prog_have_svnversion
1690if test -n "$have_svnversion"; then
1691  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1692echo "${ECHO_T}$have_svnversion" >&6
1693else
1694  echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698  if test "x$have_svnversion" = xyes; then
1699
1700    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1701    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1702      BLAS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1703
1704cat >>confdefs.h <<_ACEOF
1705#define BLAS_SVN_REV $BLAS_SVN_REV
1706_ACEOF
1707
1708    fi
1709  fi
1710
1711
1712
1713# Capture libtool library version, if given.
1714
1715
1716
1717
1718#############################################################################
1719#                         Standard build tool stuff                         #
1720#############################################################################
1721
1722# Get the system type
1723ac_aux_dir=
1724for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1725  if test -f $ac_dir/install-sh; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/install-sh -c"
1728    break
1729  elif test -f $ac_dir/install.sh; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/install.sh -c"
1732    break
1733  elif test -f $ac_dir/shtool; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/shtool install -c"
1736    break
1737  fi
1738done
1739if test -z "$ac_aux_dir"; then
1740  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1741echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1742   { (exit 1); exit 1; }; }
1743fi
1744ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1745ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1746ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1747
1748# Make sure we can run config.sub.
1749$ac_config_sub sun4 >/dev/null 2>&1 ||
1750  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1751echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1752   { (exit 1); exit 1; }; }
1753
1754echo "$as_me:$LINENO: checking build system type" >&5
1755echo $ECHO_N "checking build system type... $ECHO_C" >&6
1756if test "${ac_cv_build+set}" = set; then
1757  echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759  ac_cv_build_alias=$build_alias
1760test -z "$ac_cv_build_alias" &&
1761  ac_cv_build_alias=`$ac_config_guess`
1762test -z "$ac_cv_build_alias" &&
1763  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1764echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1765   { (exit 1); exit 1; }; }
1766ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1767  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1768echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1769   { (exit 1); exit 1; }; }
1770
1771fi
1772echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1773echo "${ECHO_T}$ac_cv_build" >&6
1774build=$ac_cv_build
1775build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1776build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1777build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1778
1779
1780
1781#turn off warnings and pedantic mode since they could make trouble on some platforms,
1782#and we couldn't fix them anyway
1783coin_skip_warn_fflags=yes
1784
1785# Check if user wants to produce debugging code
1786
1787echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1788echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1789
1790# Check whether --enable-debug or --disable-debug was given.
1791if test "${enable_debug+set}" = set; then
1792  enableval="$enable_debug"
1793  case "${enableval}" in
1794   yes) coin_debug_compile=true
1795        if test "${enable_shared+set}" = set; then :; else
1796          enable_shared=no
1797        fi
1798        ;;
1799   no)  coin_debug_compile=false
1800        ;;
1801   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1802echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1803   { (exit 1); exit 1; }; }
1804        ;;
1805esac
1806else
1807  coin_debug_compile=false
1808fi;
1809
1810# Check whether --enable-debug-blas or --disable-debug-blas was given.
1811if test "${enable_debug_blas+set}" = set; then
1812  enableval="$enable_debug_blas"
1813  case "${enableval}" in
1814    yes) coin_debug_compile=true
1815         ;;
1816    no)  coin_debug_compile=false
1817         ;;
1818    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1819echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1820   { (exit 1); exit 1; }; }
1821         ;;
1822 esac
1823else
1824  :
1825fi;
1826
1827 # m4_ifvaln([Blas],
1828
1829if test $coin_debug_compile = true; then
1830  echo "$as_me:$LINENO: result: yes" >&5
1831echo "${ECHO_T}yes" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837
1838# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1839if test "${with_blas_verbosity+set}" = set; then
1840  withval="$with_blas_verbosity"
1841  if test "$withval" = yes; then
1842                withval=1
1843              fi
1844              coin_blas_verbosity=$withval
1845else
1846  coin_blas_verbosity=0
1847fi;
1848
1849cat >>confdefs.h <<_ACEOF
1850#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1851_ACEOF
1852
1853
1854
1855# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1856if test "${with_blas_checklevel+set}" = set; then
1857  withval="$with_blas_checklevel"
1858  if test "$withval" = yes; then
1859                withval=1
1860              fi
1861              coin_blas_checklevel=$withval
1862else
1863  coin_blas_checklevel=0
1864fi;
1865
1866cat >>confdefs.h <<_ACEOF
1867#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1868_ACEOF
1869
1870
1871 # m4_ifvaln([Blas],
1872
1873
1874
1875# Get the name of the Fortran compiler and appropriate compiler options
1876case $build in
1877  *-mingw*)
1878    if test "${LD+set}" = set; then :; else
1879      LD=link
1880    fi
1881    ;;
1882 esac
1883 case $enable_doscompile in
1884   msvc)
1885     if test "x${LD+set}" = xset; then :; else
1886       LD=link
1887     fi
1888     ;;
1889 esac
1890
1891
1892 # Check whether --enable-doscompile or --disable-doscompile was given.
1893if test "${enable_doscompile+set}" = set; then
1894  enableval="$enable_doscompile"
1895  if test "$enable_doscompile" != no; then
1896     case $build in
1897       *-cygwin* | *-mingw*) ;;
1898       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1899echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1900   { (exit 1); exit 1; }; } ;;
1901     esac
1902   fi
1903else
1904  enable_doscompile=no
1905fi;
1906 case "$enable_doscompile" in
1907   mingw)
1908     case $build in
1909       *-mingw*) enable_doscompile=no ;;
1910     esac
1911     ;;
1912   msvc|no) ;;
1913   yes) enable_doscompile=mingw ;;
1914   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1915                    Try configure --help=recursive." >&5
1916echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1917                    Try configure --help=recursive." >&2;}
1918   { (exit 1); exit 1; }; }
1919      ;;
1920  esac
1921  if test "$enable_doscompile" != no ; then
1922    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1923echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1924  fi
1925
1926
1927# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1928if test "${enable_static_standardlibs+set}" = set; then
1929  enableval="$enable_static_standardlibs"
1930  case "$enableval" in
1931     no | yes | auto ) ;;
1932     *)
1933       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1934echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1935   { (exit 1); exit 1; }; } ;;
1936   esac
1937   use_static_standardlibs=$enableval
1938else
1939  use_static_standardlibs=no
1940fi;
1941
1942
1943
1944
1945
1946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953# For consistency, we set the C compiler to the same value of the C++
1954# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1955if test x"$CXX" != x; then
1956  case "$CXX" in
1957    clang* ) ;;
1958    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1959      if test x"$CC" = x; then
1960        CC="$CXX"
1961        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1962echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1963      fi
1964      ;;
1965  esac
1966fi
1967
1968
1969
1970
1971
1972
1973coin_has_cc=yes
1974
1975save_cflags="$CFLAGS"
1976
1977# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1978# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1979# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1980# compiler. In this case, put cc after gcc.
1981
1982case $build in
1983  *-cygwin* | *-mingw*)
1984             if test "$enable_doscompile" = msvc ; then
1985               comps="icl cl"
1986             else
1987               comps="gcc cl"
1988             fi ;;
1989  *-*-solaris*)
1990             # Extract the first word of "cc", so it can be a program name with args.
1991set dummy cc; ac_word=$2
1992echo "$as_me:$LINENO: checking for $ac_word" >&5
1993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1995  echo $ECHO_N "(cached) $ECHO_C" >&6
1996else
1997  if test -n "$sol_cc_compiler"; then
1998  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1999else
2000  ac_prog_rejected=no
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004  IFS=$as_save_IFS
2005  test -z "$as_dir" && as_dir=.
2006  for ac_exec_ext in '' $ac_executable_extensions; do
2007  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2009       ac_prog_rejected=yes
2010       continue
2011     fi
2012    ac_cv_prog_sol_cc_compiler="cc"
2013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014    break 2
2015  fi
2016done
2017done
2018
2019if test $ac_prog_rejected = yes; then
2020  # We found a bogon in the path, so make sure we never use it.
2021  set dummy $ac_cv_prog_sol_cc_compiler
2022  shift
2023  if test $# != 0; then
2024    # We chose a different compiler from the bogus one.
2025    # However, it has the same basename, so the bogon will be chosen
2026    # first if we set sol_cc_compiler to just the basename; use the full file name.
2027    shift
2028    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2029  fi
2030fi
2031fi
2032fi
2033sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2034if test -n "$sol_cc_compiler"; then
2035  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2036echo "${ECHO_T}$sol_cc_compiler" >&6
2037else
2038  echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6
2040fi
2041
2042             if test "$sol_cc_compiler" = "cc" ; then
2043               comps="cc xlc gcc pgcc icc"
2044             else
2045               comps="xlc gcc pgcc icc cc"
2046             fi
2047             ;;
2048  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2049  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2050  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2051esac
2052
2053# We delete the cached value, since the test might not have been
2054# performed with our choice of compilers earlier
2055$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2056# AC_MSG_NOTICE([C compiler candidates: $comps])
2057ac_ext=c
2058ac_cpp='$CPP $CPPFLAGS'
2059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062if test -n "$ac_tool_prefix"; then
2063  for ac_prog in $comps
2064  do
2065    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2067echo "$as_me:$LINENO: checking for $ac_word" >&5
2068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069if test "${ac_cv_prog_CC+set}" = set; then
2070  echo $ECHO_N "(cached) $ECHO_C" >&6
2071else
2072  if test -n "$CC"; then
2073  ac_cv_prog_CC="$CC" # Let the user override the test.
2074else
2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078  IFS=$as_save_IFS
2079  test -z "$as_dir" && as_dir=.
2080  for ac_exec_ext in '' $ac_executable_extensions; do
2081  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084    break 2
2085  fi
2086done
2087done
2088
2089fi
2090fi
2091CC=$ac_cv_prog_CC
2092if test -n "$CC"; then
2093  echo "$as_me:$LINENO: result: $CC" >&5
2094echo "${ECHO_T}$CC" >&6
2095else
2096  echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6
2098fi
2099
2100    test -n "$CC" && break
2101  done
2102fi
2103if test -z "$CC"; then
2104  ac_ct_CC=$CC
2105  for ac_prog in $comps
2106do
2107  # Extract the first word of "$ac_prog", so it can be a program name with args.
2108set dummy $ac_prog; ac_word=$2
2109echo "$as_me:$LINENO: checking for $ac_word" >&5
2110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2112  echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
2114  if test -n "$ac_ct_CC"; then
2115  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2116else
2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118for as_dir in $PATH
2119do
2120  IFS=$as_save_IFS
2121  test -z "$as_dir" && as_dir=.
2122  for ac_exec_ext in '' $ac_executable_extensions; do
2123  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2124    ac_cv_prog_ac_ct_CC="$ac_prog"
2125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126    break 2
2127  fi
2128done
2129done
2130
2131fi
2132fi
2133ac_ct_CC=$ac_cv_prog_ac_ct_CC
2134if test -n "$ac_ct_CC"; then
2135  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2136echo "${ECHO_T}$ac_ct_CC" >&6
2137else
2138  echo "$as_me:$LINENO: result: no" >&5
2139echo "${ECHO_T}no" >&6
2140fi
2141
2142  test -n "$ac_ct_CC" && break
2143done
2144
2145  CC=$ac_ct_CC
2146fi
2147
2148
2149test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2150See \`config.log' for more details." >&5
2151echo "$as_me: error: no acceptable C compiler found in \$PATH
2152See \`config.log' for more details." >&2;}
2153   { (exit 1); exit 1; }; }
2154
2155# Provide some information about the compiler.
2156echo "$as_me:$LINENO:" \
2157     "checking for C compiler version" >&5
2158ac_compiler=`set X $ac_compile; echo $2`
2159{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2160  (eval $ac_compiler --version </dev/null >&5) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }
2164{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2165  (eval $ac_compiler -v </dev/null >&5) 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }
2169{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2170  (eval $ac_compiler -V </dev/null >&5) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }
2174
2175cat >conftest.$ac_ext <<_ACEOF
2176/* confdefs.h.  */
2177_ACEOF
2178cat confdefs.h >>conftest.$ac_ext
2179cat >>conftest.$ac_ext <<_ACEOF
2180/* end confdefs.h.  */
2181
2182int
2183main ()
2184{
2185
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190ac_clean_files_save=$ac_clean_files
2191ac_clean_files="$ac_clean_files a.out a.exe b.out"
2192# Try to create an executable without -o first, disregard a.out.
2193# It will help us diagnose broken compilers, and finding out an intuition
2194# of exeext.
2195echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2196echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2197ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2198if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2199  (eval $ac_link_default) 2>&5
2200  ac_status=$?
2201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202  (exit $ac_status); }; then
2203  # Find the output, starting from the most likely.  This scheme is
2204# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2205# resort.
2206
2207# Be careful to initialize this variable, since it used to be cached.
2208# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2209ac_cv_exeext=
2210# b.out is created by i960 compilers.
2211for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2212do
2213  test -f "$ac_file" || continue
2214  case $ac_file in
2215    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2216        ;;
2217    conftest.$ac_ext )
2218        # This is the source file.
2219        ;;
2220    [ab].out )
2221        # We found the default executable, but exeext='' is most
2222        # certainly right.
2223        break;;
2224    *.* )
2225        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226        # FIXME: I believe we export ac_cv_exeext for Libtool,
2227        # but it would be cool to find out if it's true.  Does anybody
2228        # maintain Libtool? --akim.
2229        export ac_cv_exeext
2230        break;;
2231    * )
2232        break;;
2233  esac
2234done
2235else
2236  echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: C compiler cannot create executables
2242See \`config.log' for more details." >&2;}
2243   { (exit 77); exit 77; }; }
2244fi
2245
2246ac_exeext=$ac_cv_exeext
2247echo "$as_me:$LINENO: result: $ac_file" >&5
2248echo "${ECHO_T}$ac_file" >&6
2249
2250# Check the compiler produces executables we can run.  If not, either
2251# the compiler is broken, or we cross compile.
2252echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2253echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2254# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2255# If not cross compiling, check that we can run a simple program.
2256if test "$cross_compiling" != yes; then
2257  if { ac_try='./$ac_file'
2258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259  (eval $ac_try) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; }; then
2263    cross_compiling=no
2264  else
2265    if test "$cross_compiling" = maybe; then
2266        cross_compiling=yes
2267    else
2268        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2269If you meant to cross compile, use \`--host'.
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: cannot run C compiled programs.
2272If you meant to cross compile, use \`--host'.
2273See \`config.log' for more details." >&2;}
2274   { (exit 1); exit 1; }; }
2275    fi
2276  fi
2277fi
2278echo "$as_me:$LINENO: result: yes" >&5
2279echo "${ECHO_T}yes" >&6
2280
2281rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282ac_clean_files=$ac_clean_files_save
2283# Check the compiler produces executables we can run.  If not, either
2284# the compiler is broken, or we cross compile.
2285echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2287echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288echo "${ECHO_T}$cross_compiling" >&6
2289
2290echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2293  (eval $ac_link) 2>&5
2294  ac_status=$?
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); }; then
2297  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2298# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2299# work properly (i.e., refer to `conftest.exe'), while it won't with
2300# `rm'.
2301for ac_file in conftest.exe conftest conftest.*; do
2302  test -f "$ac_file" || continue
2303  case $ac_file in
2304    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2305    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306          export ac_cv_exeext
2307          break;;
2308    * ) break;;
2309  esac
2310done
2311else
2312  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313See \`config.log' for more details." >&5
2314echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315See \`config.log' for more details." >&2;}
2316   { (exit 1); exit 1; }; }
2317fi
2318
2319rm -f conftest$ac_cv_exeext
2320echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321echo "${ECHO_T}$ac_cv_exeext" >&6
2322
2323rm -f conftest.$ac_ext
2324EXEEXT=$ac_cv_exeext
2325ac_exeext=$EXEEXT
2326echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2328if test "${ac_cv_objext+set}" = set; then
2329  echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331  cat >conftest.$ac_ext <<_ACEOF
2332/* confdefs.h.  */
2333_ACEOF
2334cat confdefs.h >>conftest.$ac_ext
2335cat >>conftest.$ac_ext <<_ACEOF
2336/* end confdefs.h.  */
2337
2338int
2339main ()
2340{
2341
2342  ;
2343  return 0;
2344}
2345_ACEOF
2346rm -f conftest.o conftest.obj
2347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348  (eval $ac_compile) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; then
2352  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2353  case $ac_file in
2354    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2355    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356       break;;
2357  esac
2358done
2359else
2360  echo "$as_me: failed program was:" >&5
2361sed 's/^/| /' conftest.$ac_ext >&5
2362
2363{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2364See \`config.log' for more details." >&5
2365echo "$as_me: error: cannot compute suffix of object files: cannot compile
2366See \`config.log' for more details." >&2;}
2367   { (exit 1); exit 1; }; }
2368fi
2369
2370rm -f conftest.$ac_cv_objext conftest.$ac_ext
2371fi
2372echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2373echo "${ECHO_T}$ac_cv_objext" >&6
2374OBJEXT=$ac_cv_objext
2375ac_objext=$OBJEXT
2376echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2377echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2378if test "${ac_cv_c_compiler_gnu+set}" = set; then
2379  echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387
2388int
2389main ()
2390{
2391#ifndef __GNUC__
2392       choke me
2393#endif
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>conftest.er1
2402  ac_status=$?
2403  grep -v '^ *+' conftest.er1 >conftest.err
2404  rm -f conftest.er1
2405  cat conftest.err >&5
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); } &&
2408         { ac_try='test -z "$ac_c_werror_flag"
2409                         || test ! -s conftest.err'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; } &&
2415         { ac_try='test -s conftest.$ac_objext'
2416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417  (eval $ac_try) 2>&5
2418  ac_status=$?
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); }; }; then
2421  ac_compiler_gnu=yes
2422else
2423  echo "$as_me: failed program was:" >&5
2424sed 's/^/| /' conftest.$ac_ext >&5
2425
2426ac_compiler_gnu=no
2427fi
2428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431fi
2432echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2434GCC=`test $ac_compiler_gnu = yes && echo yes`
2435ac_test_CFLAGS=${CFLAGS+set}
2436ac_save_CFLAGS=$CFLAGS
2437CFLAGS="-g"
2438echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2439echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2440if test "${ac_cv_prog_cc_g+set}" = set; then
2441  echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443  cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h.  */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h.  */
2449
2450int
2451main ()
2452{
2453
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458rm -f conftest.$ac_objext
2459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460  (eval $ac_compile) 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } &&
2467         { ac_try='test -z "$ac_c_werror_flag"
2468                         || test ! -s conftest.err'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; } &&
2474         { ac_try='test -s conftest.$ac_objext'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; }; then
2480  ac_cv_prog_cc_g=yes
2481else
2482  echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485ac_cv_prog_cc_g=no
2486fi
2487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488fi
2489echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2490echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2491if test "$ac_test_CFLAGS" = set; then
2492  CFLAGS=$ac_save_CFLAGS
2493elif test $ac_cv_prog_cc_g = yes; then
2494  if test "$GCC" = yes; then
2495    CFLAGS="-g -O2"
2496  else
2497    CFLAGS="-g"
2498  fi
2499else
2500  if test "$GCC" = yes; then
2501    CFLAGS="-O2"
2502  else
2503    CFLAGS=
2504  fi
2505fi
2506echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2507echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2508if test "${ac_cv_prog_cc_stdc+set}" = set; then
2509  echo $ECHO_N "(cached) $ECHO_C" >&6
2510else
2511  ac_cv_prog_cc_stdc=no
2512ac_save_CC=$CC
2513cat >conftest.$ac_ext <<_ACEOF
2514/* confdefs.h.  */
2515_ACEOF
2516cat confdefs.h >>conftest.$ac_ext
2517cat >>conftest.$ac_ext <<_ACEOF
2518/* end confdefs.h.  */
2519#include <stdarg.h>
2520#include <stdio.h>
2521#include <sys/types.h>
2522#include <sys/stat.h>
2523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2524struct buf { int x; };
2525FILE * (*rcsopen) (struct buf *, struct stat *, int);
2526static char *e (p, i)
2527     char **p;
2528     int i;
2529{
2530  return p[i];
2531}
2532static char *f (char * (*g) (char **, int), char **p, ...)
2533{
2534  char *s;
2535  va_list v;
2536  va_start (v,p);
2537  s = g (p, va_arg (v,int));
2538  va_end (v);
2539  return s;
2540}
2541
2542/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2543   function prototypes and stuff, but not '\xHH' hex character constants.
2544   These don't provoke an error unfortunately, instead are silently treated
2545   as 'x'.  The following induces an error, until -std1 is added to get
2546   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2547   array size at least.  It's necessary to write '\x00'==0 to get something
2548   that's true only with -std1.  */
2549int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2550
2551int test (int i, double x);
2552struct s1 {int (*f) (int a);};
2553struct s2 {int (*f) (double a);};
2554int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2555int argc;
2556char **argv;
2557int
2558main ()
2559{
2560return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565# Don't try gcc -ansi; that turns off useful extensions and
2566# breaks some systems' header files.
2567# AIX                   -qlanglvl=ansi
2568# Ultrix and OSF/1      -std1
2569# HP-UX 10.20 and later -Ae
2570# HP-UX older versions  -Aa -D_HPUX_SOURCE
2571# SVR4                  -Xc -D__EXTENSIONS__
2572for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2573do
2574  CC="$ac_save_CC $ac_arg"
2575  rm -f conftest.$ac_objext
2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577  (eval $ac_compile) 2>conftest.er1
2578  ac_status=$?
2579  grep -v '^ *+' conftest.er1 >conftest.err
2580  rm -f conftest.er1
2581  cat conftest.err >&5
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); } &&
2584         { ac_try='test -z "$ac_c_werror_flag"
2585                         || test ! -s conftest.err'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; } &&
2591         { ac_try='test -s conftest.$ac_objext'
2592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593  (eval $ac_try) 2>&5
2594  ac_status=$?
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }; }; then
2597  ac_cv_prog_cc_stdc=$ac_arg
2598break
2599else
2600  echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603fi
2604rm -f conftest.err conftest.$ac_objext
2605done
2606rm -f conftest.$ac_ext conftest.$ac_objext
2607CC=$ac_save_CC
2608
2609fi
2610
2611case "x$ac_cv_prog_cc_stdc" in
2612  x|xno)
2613    echo "$as_me:$LINENO: result: none needed" >&5
2614echo "${ECHO_T}none needed" >&6 ;;
2615  *)
2616    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2617echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2618    CC="$CC $ac_cv_prog_cc_stdc" ;;
2619esac
2620
2621# Some people use a C++ compiler to compile C.  Since we use `exit',
2622# in C++ we need to declare it.  In case someone uses the same compiler
2623# for both compiling C and C++ we need to have the C++ compiler decide
2624# the declaration of exit, since it's the most demanding environment.
2625cat >conftest.$ac_ext <<_ACEOF
2626#ifndef __cplusplus
2627  choke me
2628#endif
2629_ACEOF
2630rm -f conftest.$ac_objext
2631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632  (eval $ac_compile) 2>conftest.er1
2633  ac_status=$?
2634  grep -v '^ *+' conftest.er1 >conftest.err
2635  rm -f conftest.er1
2636  cat conftest.err >&5
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); } &&
2639         { ac_try='test -z "$ac_c_werror_flag"
2640                         || test ! -s conftest.err'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; } &&
2646         { ac_try='test -s conftest.$ac_objext'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; }; then
2652  for ac_declaration in \
2653   '' \
2654   'extern "C" void std::exit (int) throw (); using std::exit;' \
2655   'extern "C" void std::exit (int); using std::exit;' \
2656   'extern "C" void exit (int) throw ();' \
2657   'extern "C" void exit (int);' \
2658   'void exit (int);'
2659do
2660  cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666$ac_declaration
2667#include <stdlib.h>
2668int
2669main ()
2670{
2671exit (42);
2672  ;
2673  return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext
2677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678  (eval $ac_compile) 2>conftest.er1
2679  ac_status=$?
2680  grep -v '^ *+' conftest.er1 >conftest.err
2681  rm -f conftest.er1
2682  cat conftest.err >&5
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); } &&
2685         { ac_try='test -z "$ac_c_werror_flag"
2686                         || test ! -s conftest.err'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; } &&
2692         { ac_try='test -s conftest.$ac_objext'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; }; then
2698  :
2699else
2700  echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703continue
2704fi
2705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706  cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712$ac_declaration
2713int
2714main ()
2715{
2716exit (42);
2717  ;
2718  return 0;
2719}
2720_ACEOF
2721rm -f conftest.$ac_objext
2722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723  (eval $ac_compile) 2>conftest.er1
2724  ac_status=$?
2725  grep -v '^ *+' conftest.er1 >conftest.err
2726  rm -f conftest.er1
2727  cat conftest.err >&5
2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); } &&
2730         { ac_try='test -z "$ac_c_werror_flag"
2731                         || test ! -s conftest.err'
2732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733  (eval $ac_try) 2>&5
2734  ac_status=$?
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); }; } &&
2737         { ac_try='test -s conftest.$ac_objext'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; }; then
2743  break
2744else
2745  echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748fi
2749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750done
2751rm -f conftest*
2752if test -n "$ac_declaration"; then
2753  echo '#ifdef __cplusplus' >>confdefs.h
2754  echo $ac_declaration      >>confdefs.h
2755  echo '#endif'             >>confdefs.h
2756fi
2757
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762fi
2763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770if test -z "$CC" ; then
2771  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2772echo "$as_me: error: Failed to find a C compiler!" >&2;}
2773   { (exit 1); exit 1; }; }
2774fi
2775# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2776case "$CC" in
2777  clang* ) ;;
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# add automake conditional so we can recognize cl compiler in makefile
2788coin_cc_is_cl=false
2789case "$CC" in
2790  clang* ) ;;
2791  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2792    coin_cc_is_cl=true
2793    ;;
2794esac
2795
2796
2797if test $coin_cc_is_cl = true; then
2798  COIN_CC_IS_CL_TRUE=
2799  COIN_CC_IS_CL_FALSE='#'
2800else
2801  COIN_CC_IS_CL_TRUE='#'
2802  COIN_CC_IS_CL_FALSE=
2803fi
2804
2805
2806# Check if a project specific CFLAGS variable has been set
2807if test x$COIN_PRJCT != x; then
2808  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2809  if test x$coin_tmp = xset; then
2810    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2811  fi
2812fi
2813
2814if test x"$CFLAGS" = x; then
2815
2816  coin_add_cflags=
2817  coin_opt_cflags=
2818  coin_dbg_cflags=
2819  coin_warn_cflags=
2820
2821  if test "$GCC" = "yes"; then
2822    case "$CC" in
2823      icc* | */icc*)
2824        ;;
2825      *)
2826        coin_opt_cflags="-O3"
2827        coin_add_cflags="-pipe"
2828        coin_dbg_cflags="-g -O0"
2829        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2830        case $build in
2831          *-darwin*)
2832            ;;
2833          *)
2834            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2835            ;;
2836        esac
2837        case $enable_doscompile in
2838          mingw)
2839            CFLAGS="-mno-cygwin"
2840            cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h.  */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h.  */
2846
2847int
2848main ()
2849{
2850int i=0; i++;
2851  ;
2852  return 0;
2853}
2854_ACEOF
2855rm -f conftest.$ac_objext conftest$ac_exeext
2856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2857  (eval $ac_link) 2>conftest.er1
2858  ac_status=$?
2859  grep -v '^ *+' conftest.er1 >conftest.err
2860  rm -f conftest.er1
2861  cat conftest.err >&5
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); } &&
2864         { ac_try='test -z "$ac_c_werror_flag"
2865                         || test ! -s conftest.err'
2866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867  (eval $ac_try) 2>&5
2868  ac_status=$?
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); }; } &&
2871         { ac_try='test -s conftest$ac_exeext'
2872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873  (eval $ac_try) 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }; }; then
2877  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2878else
2879  echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882fi
2883rm -f conftest.err conftest.$ac_objext \
2884      conftest$ac_exeext conftest.$ac_ext
2885            CFLAGS=
2886          ;;
2887        esac
2888    esac
2889  fi
2890  if test -z "$coin_opt_cflags"; then
2891    case $build in
2892      *-cygwin* | *-mingw*)
2893        case "$CC" in
2894          clang* ) ;;
2895          cl* | */cl* | CL* | */CL*)
2896            coin_opt_cflags='-MT -O2'
2897            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2898            coin_dbg_cflags='-MTd'
2899            ;;
2900          icl* | */icl* | ICL* | */ICL*)
2901            coin_opt_cflags='-MT -Ox'
2902            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2903            coin_dbg_cflags='-MTd -debug'
2904            ;;
2905        esac
2906        ;;
2907      *-linux-*)
2908        case "$CC" in
2909          icc* | */icc*)
2910            coin_opt_cflags="-O3 -ip -mp1"
2911            coin_add_cflags=""
2912            coin_dbg_cflags="-g"
2913            # Check if -i_dynamic is necessary (for new glibc library)
2914            CFLAGS=
2915            cat >conftest.$ac_ext <<_ACEOF
2916/* confdefs.h.  */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h.  */
2921
2922int
2923main ()
2924{
2925int i=0; i++;
2926  ;
2927  return 0;
2928}
2929_ACEOF
2930rm -f conftest.$ac_objext conftest$ac_exeext
2931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2932  (eval $ac_link) 2>conftest.er1
2933  ac_status=$?
2934  grep -v '^ *+' conftest.er1 >conftest.err
2935  rm -f conftest.er1
2936  cat conftest.err >&5
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); } &&
2939         { ac_try='test -z "$ac_c_werror_flag"
2940                         || test ! -s conftest.err'
2941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942  (eval $ac_try) 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }; } &&
2946         { ac_try='test -s conftest$ac_exeext'
2947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948  (eval $ac_try) 2>&5
2949  ac_status=$?
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); }; }; then
2952  :
2953else
2954  echo "$as_me: failed program was:" >&5
2955sed 's/^/| /' conftest.$ac_ext >&5
2956
2957coin_add_cflags="-i_dynamic $coin_add_cflags"
2958fi
2959rm -f conftest.err conftest.$ac_objext \
2960      conftest$ac_exeext conftest.$ac_ext
2961            ;;
2962          pgcc* | */pgcc*)
2963            coin_opt_cflags="-fast"
2964            coin_add_cflags="-Kieee -pc 64"
2965            coin_dbg_cflags="-g"
2966            ;;
2967        esac
2968        ;;
2969      *-ibm-*)
2970        case "$CC" in
2971          xlc* | */xlc* | mpxlc* | */mpxlc*)
2972            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2973            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2974            coin_dbg_cflags="-g"
2975          ;;
2976        esac
2977        ;;
2978      *-hp-*)
2979        coin_opt_cflags="-O"
2980        coin_add_cflags="-Ae"
2981        coin_dbg_cflags="-g"
2982        ;;
2983      *-*-solaris*)
2984        coin_opt_cflags="-xO4"
2985        coin_dbg_cflags="-g"
2986        ;;
2987      *-sgi-*)
2988        coin_opt_cflags="-O -OPT:Olimit=0"
2989        coin_dbg_cflags="-g"
2990        ;;
2991    esac
2992  fi
2993
2994  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2995    coin_dbg_cflags="-g"
2996  fi
2997
2998  if test -z "$coin_opt_cflags"; then
2999    # Try if -O option works if nothing else is set
3000    CFLAGS="-O"
3001    cat >conftest.$ac_ext <<_ACEOF
3002/* confdefs.h.  */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h.  */
3007
3008int
3009main ()
3010{
3011int i=0; i++;
3012  ;
3013  return 0;
3014}
3015_ACEOF
3016rm -f conftest.$ac_objext conftest$ac_exeext
3017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3018  (eval $ac_link) 2>conftest.er1
3019  ac_status=$?
3020  grep -v '^ *+' conftest.er1 >conftest.err
3021  rm -f conftest.er1
3022  cat conftest.err >&5
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); } &&
3025         { ac_try='test -z "$ac_c_werror_flag"
3026                         || test ! -s conftest.err'
3027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028  (eval $ac_try) 2>&5
3029  ac_status=$?
3030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031  (exit $ac_status); }; } &&
3032         { ac_try='test -s conftest$ac_exeext'
3033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034  (eval $ac_try) 2>&5
3035  ac_status=$?
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); }; }; then
3038  coin_opt_cflags="-O"
3039else
3040  echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043fi
3044rm -f conftest.err conftest.$ac_objext \
3045      conftest$ac_exeext conftest.$ac_ext
3046  fi
3047
3048  # if PM doesn't want the warning messages, take them out
3049  if test x"$coin_skip_warn_cflags" = xyes; then
3050    coin_warn_cflags=
3051  fi
3052
3053  if test x${DBG_CFLAGS+set} != xset; then
3054    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3055  fi
3056  if test x${OPT_CFLAGS+set} != xset; then
3057    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3058  fi
3059
3060  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3061  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3062
3063  if test "$coin_debug_compile" = "true"; then
3064    CFLAGS="$DBG_CFLAGS"
3065  else
3066    CFLAGS="$OPT_CFLAGS"
3067  fi
3068
3069else
3070  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3071  if test x${DBG_CFLAGS+set} != xset; then
3072    DBG_CFLAGS="$CFLAGS"
3073  fi
3074  if test x${OPT_CFLAGS+set} != xset; then
3075    OPT_CFLAGS="$CFLAGS"
3076  fi
3077fi
3078
3079# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3080
3081case "$CFLAGS" in
3082  *-mno-cygwin*)
3083    if test x${CPPFLAGS+set} != xset ; then
3084      CPPFLAGS="-mno-cygwin"
3085    else
3086      case "$CPPFLAGS" in
3087        *-mno-cygwin*)
3088          ;;
3089        *)
3090          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3091          ;;
3092      esac
3093    fi ;;
3094esac
3095
3096# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3097if test x$COIN_PRJCT != x; then
3098  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3099fi
3100
3101# Try if CFLAGS works
3102save_CFLAGS="$CFLAGS"
3103cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h.  */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h.  */
3109
3110int
3111main ()
3112{
3113int i=0; i++;
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext conftest$ac_exeext
3119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3120  (eval $ac_link) 2>conftest.er1
3121  ac_status=$?
3122  grep -v '^ *+' conftest.er1 >conftest.err
3123  rm -f conftest.er1
3124  cat conftest.err >&5
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); } &&
3127         { ac_try='test -z "$ac_c_werror_flag"
3128                         || test ! -s conftest.err'
3129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130  (eval $ac_try) 2>&5
3131  ac_status=$?
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); }; } &&
3134         { ac_try='test -s conftest$ac_exeext'
3135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136  (eval $ac_try) 2>&5
3137  ac_status=$?
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); }; }; then
3140  :
3141else
3142  echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145CFLAGS=
3146fi
3147rm -f conftest.err conftest.$ac_objext \
3148      conftest$ac_exeext conftest.$ac_ext
3149if test -z "$CFLAGS"; then
3150  { 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
3151echo "$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;}
3152  CFLAGS='-O'
3153  cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h.  */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h.  */
3159
3160int
3161main ()
3162{
3163int i=0; i++;
3164  ;
3165  return 0;
3166}
3167_ACEOF
3168rm -f conftest.$ac_objext conftest$ac_exeext
3169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3170  (eval $ac_link) 2>conftest.er1
3171  ac_status=$?
3172  grep -v '^ *+' conftest.er1 >conftest.err
3173  rm -f conftest.er1
3174  cat conftest.err >&5
3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); } &&
3177         { ac_try='test -z "$ac_c_werror_flag"
3178                         || test ! -s conftest.err'
3179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180  (eval $ac_try) 2>&5
3181  ac_status=$?
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }; } &&
3184         { ac_try='test -s conftest$ac_exeext'
3185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186  (eval $ac_try) 2>&5
3187  ac_status=$?
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); }; }; then
3190  :
3191else
3192  echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195CFLAGS=
3196fi
3197rm -f conftest.err conftest.$ac_objext \
3198      conftest$ac_exeext conftest.$ac_ext
3199  if test -z "$CFLAGS"; then
3200    { 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
3201echo "$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;}
3202  fi
3203fi
3204
3205{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3206echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3207
3208
3209if test x"$MPICC" = x; then :; else
3210  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3211echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3212  CC="$MPICC"
3213fi
3214
3215# Correct the LD variable if we are using the MS or Intel-windows compiler
3216case "$CC" in
3217  clang* ) ;;
3218  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3219    case $build in
3220  *-mingw*)
3221    if test "${LD+set}" = set; then :; else
3222      LD=link
3223    fi
3224    ;;
3225 esac
3226 case $enable_doscompile in
3227   msvc)
3228     if test "x${LD+set}" = xset; then :; else
3229       LD=link
3230     fi
3231     ;;
3232 esac
3233
3234    ;;
3235esac
3236
3237# check whether to add flags for static linking against standard libraries to LDFLAGS
3238if test x$use_static_standardlibs != xno ; then
3239  case $build in
3240    *-mingw*)
3241      static_standardlib_flag=-static
3242      ;;
3243    *)
3244      static_standardlib_flag=-static-libgcc
3245      ;;
3246  esac
3247  case " $LDFLAGS " in
3248    *" $static_standardlib_flag "* ) ;;
3249    *)
3250    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3251echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3252    coin_save_LDFLAGS="$LDFLAGS"
3253    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3254    cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h.  */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h.  */
3260
3261int
3262main ()
3263{
3264int i=0;
3265  ;
3266  return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext conftest$ac_exeext
3270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3271  (eval $ac_link) 2>conftest.er1
3272  ac_status=$?
3273  grep -v '^ *+' conftest.er1 >conftest.err
3274  rm -f conftest.er1
3275  cat conftest.err >&5
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); } &&
3278         { ac_try='test -z "$ac_c_werror_flag"
3279                         || test ! -s conftest.err'
3280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281  (eval $ac_try) 2>&5
3282  ac_status=$?
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); }; } &&
3285         { ac_try='test -s conftest$ac_exeext'
3286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287  (eval $ac_try) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }; }; then
3291  echo "$as_me:$LINENO: result: yes" >&5
3292echo "${ECHO_T}yes" >&6
3293else
3294  echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
3299       LDFLAGS="$coin_save_LDFLAGS"
3300       if test $use_static_standardlibs = yes ; then
3301         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3302echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3303   { (exit 1); exit 1; }; }
3304       fi
3305
3306fi
3307rm -f conftest.err conftest.$ac_objext \
3308      conftest$ac_exeext conftest.$ac_ext
3309    ;;
3310  esac
3311fi
3312
3313ac_ext=c
3314ac_cpp='$CPP $CPPFLAGS'
3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
3319
3320case $build in
3321  *-cygwin* | *-mingw*)
3322     if test "$enable_doscompile" = msvc ; then
3323       coin_f77_comps="ifort fl32 compile_f2c"
3324     else
3325       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3326     fi ;;
3327  *-*-solaris*)
3328     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3329  *-linux-gnu*)
3330     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3331  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3332 esac
3333
3334
3335
3336
3337
3338
3339
3340ac_ext=f
3341ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3342ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3344
3345
3346
3347
3348
3349
3350coin_has_f77=yes
3351
3352save_fflags="$FFLAGS"
3353
3354# We delete the cached value, since the test might not have been
3355# performed with our choice of compilers earlier
3356$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3357
3358# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3359# coin_f77_comps to see if there's a program that matches one of the names.
3360# If there's no such program, F77 = unavailable. If we match the name,
3361# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3362# compiler.
3363# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3364
3365
3366{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3367echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3368if test -n "$ac_tool_prefix"; then
3369  for ac_prog in $coin_f77_comps
3370  do
3371    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3372set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3373echo "$as_me:$LINENO: checking for $ac_word" >&5
3374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3375if test "${ac_cv_prog_F77+set}" = set; then
3376  echo $ECHO_N "(cached) $ECHO_C" >&6
3377else
3378  if test -n "$F77"; then
3379  ac_cv_prog_F77="$F77" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384  IFS=$as_save_IFS
3385  test -z "$as_dir" && as_dir=.
3386  for ac_exec_ext in '' $ac_executable_extensions; do
3387  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390    break 2
3391  fi
3392done
3393done
3394
3395fi
3396fi
3397F77=$ac_cv_prog_F77
3398if test -n "$F77"; then
3399  echo "$as_me:$LINENO: result: $F77" >&5
3400echo "${ECHO_T}$F77" >&6
3401else
3402  echo "$as_me:$LINENO: result: no" >&5
3403echo "${ECHO_T}no" >&6
3404fi
3405
3406    test -n "$F77" && break
3407  done
3408fi
3409if test -z "$F77"; then
3410  ac_ct_F77=$F77
3411  for ac_prog in $coin_f77_comps
3412do
3413  # Extract the first word of "$ac_prog", so it can be a program name with args.
3414set dummy $ac_prog; ac_word=$2
3415echo "$as_me:$LINENO: checking for $ac_word" >&5
3416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3418  echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420  if test -n "$ac_ct_F77"; then
3421  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3422else
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426  IFS=$as_save_IFS
3427  test -z "$as_dir" && as_dir=.
3428  for ac_exec_ext in '' $ac_executable_extensions; do
3429  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430    ac_cv_prog_ac_ct_F77="$ac_prog"
3431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432    break 2
3433  fi
3434done
3435done
3436
3437fi
3438fi
3439ac_ct_F77=$ac_cv_prog_ac_ct_F77
3440if test -n "$ac_ct_F77"; then
3441  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3442echo "${ECHO_T}$ac_ct_F77" >&6
3443else
3444  echo "$as_me:$LINENO: result: no" >&5
3445echo "${ECHO_T}no" >&6
3446fi
3447
3448  test -n "$ac_ct_F77" && break
3449done
3450test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3451
3452  F77=$ac_ct_F77
3453fi
3454
3455
3456if test "$F77" != "unavailable" ; then
3457  ac_ext=f
3458ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3459ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3461if test -n "$ac_tool_prefix"; then
3462  for ac_prog in $coin_f77_comps
3463  do
3464    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3466echo "$as_me:$LINENO: checking for $ac_word" >&5
3467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468if test "${ac_cv_prog_F77+set}" = set; then
3469  echo $ECHO_N "(cached) $ECHO_C" >&6
3470else
3471  if test -n "$F77"; then
3472  ac_cv_prog_F77="$F77" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  test -z "$as_dir" && as_dir=.
3479  for ac_exec_ext in '' $ac_executable_extensions; do
3480  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483    break 2
3484  fi
3485done
3486done
3487
3488fi
3489fi
3490F77=$ac_cv_prog_F77
3491if test -n "$F77"; then
3492  echo "$as_me:$LINENO: result: $F77" >&5
3493echo "${ECHO_T}$F77" >&6
3494else
3495  echo "$as_me:$LINENO: result: no" >&5
3496echo "${ECHO_T}no" >&6
3497fi
3498
3499    test -n "$F77" && break
3500  done
3501fi
3502if test -z "$F77"; then
3503  ac_ct_F77=$F77
3504  for ac_prog in $coin_f77_comps
3505do
3506  # Extract the first word of "$ac_prog", so it can be a program name with args.
3507set dummy $ac_prog; ac_word=$2
3508echo "$as_me:$LINENO: checking for $ac_word" >&5
3509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3511  echo $ECHO_N "(cached) $ECHO_C" >&6
3512else
3513  if test -n "$ac_ct_F77"; then
3514  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519  IFS=$as_save_IFS
3520  test -z "$as_dir" && as_dir=.
3521  for ac_exec_ext in '' $ac_executable_extensions; do
3522  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523    ac_cv_prog_ac_ct_F77="$ac_prog"
3524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525    break 2
3526  fi
3527done
3528done
3529
3530fi
3531fi
3532ac_ct_F77=$ac_cv_prog_ac_ct_F77
3533if test -n "$ac_ct_F77"; then
3534  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3535echo "${ECHO_T}$ac_ct_F77" >&6
3536else
3537  echo "$as_me:$LINENO: result: no" >&5
3538echo "${ECHO_T}no" >&6
3539fi
3540
3541  test -n "$ac_ct_F77" && break
3542done
3543
3544  F77=$ac_ct_F77
3545fi
3546
3547
3548# Provide some information about the compiler.
3549echo "$as_me:3549:" \
3550     "checking for Fortran 77 compiler version" >&5
3551ac_compiler=`set X $ac_compile; echo $2`
3552{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3553  (eval $ac_compiler --version </dev/null >&5) 2>&5
3554  ac_status=$?
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); }
3557{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3558  (eval $ac_compiler -v </dev/null >&5) 2>&5
3559  ac_status=$?
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); }
3562{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3563  (eval $ac_compiler -V </dev/null >&5) 2>&5
3564  ac_status=$?
3565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); }
3567rm -f a.out
3568
3569# If we don't use `.F' as extension, the preprocessor is not run on the
3570# input file.  (Note that this only needs to work for GNU compilers.)
3571ac_save_ext=$ac_ext
3572ac_ext=F
3573echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3574echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3575if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3576  echo $ECHO_N "(cached) $ECHO_C" >&6
3577else
3578  cat >conftest.$ac_ext <<_ACEOF
3579      program main
3580#ifndef __GNUC__
3581       choke me
3582#endif
3583
3584      end
3585_ACEOF
3586rm -f conftest.$ac_objext
3587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588  (eval $ac_compile) 2>conftest.er1
3589  ac_status=$?
3590  grep -v '^ *+' conftest.er1 >conftest.err
3591  rm -f conftest.er1
3592  cat conftest.err >&5
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); } &&
3595         { ac_try='test -z "$ac_f77_werror_flag"
3596                         || test ! -s conftest.err'
3597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598  (eval $ac_try) 2>&5
3599  ac_status=$?
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); }; } &&
3602         { ac_try='test -s conftest.$ac_objext'
3603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604  (eval $ac_try) 2>&5
3605  ac_status=$?
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); }; }; then
3608  ac_compiler_gnu=yes
3609else
3610  echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613ac_compiler_gnu=no
3614fi
3615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3616ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3617
3618fi
3619echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3620echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3621ac_ext=$ac_save_ext
3622ac_test_FFLAGS=${FFLAGS+set}
3623ac_save_FFLAGS=$FFLAGS
3624FFLAGS=
3625echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3626echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3627if test "${ac_cv_prog_f77_g+set}" = set; then
3628  echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630  FFLAGS=-g
3631cat >conftest.$ac_ext <<_ACEOF
3632      program main
3633
3634      end
3635_ACEOF
3636rm -f conftest.$ac_objext
3637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638  (eval $ac_compile) 2>conftest.er1
3639  ac_status=$?
3640  grep -v '^ *+' conftest.er1 >conftest.err
3641  rm -f conftest.er1
3642  cat conftest.err >&5
3643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644  (exit $ac_status); } &&
3645         { ac_try='test -z "$ac_f77_werror_flag"
3646                         || test ! -s conftest.err'
3647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648  (eval $ac_try) 2>&5
3649  ac_status=$?
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); }; } &&
3652         { ac_try='test -s conftest.$ac_objext'
3653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654  (eval $ac_try) 2>&5
3655  ac_status=$?
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); }; }; then
3658  ac_cv_prog_f77_g=yes
3659else
3660  echo "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
3663ac_cv_prog_f77_g=no
3664fi
3665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3666
3667fi
3668echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3669echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3670if test "$ac_test_FFLAGS" = set; then
3671  FFLAGS=$ac_save_FFLAGS
3672elif test $ac_cv_prog_f77_g = yes; then
3673  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3674    FFLAGS="-g -O2"
3675  else
3676    FFLAGS="-g"
3677  fi
3678else
3679  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3680    FFLAGS="-O2"
3681  else
3682    FFLAGS=
3683  fi
3684fi
3685
3686G77=`test $ac_compiler_gnu = yes && echo yes`
3687ac_ext=f
3688ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3689ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3691
3692else
3693  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3694echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3695fi
3696
3697FFLAGS="$save_fflags"
3698
3699# Check if a project specific FFLAGS variable has been set
3700if test x$COIN_PRJCT != x; then
3701  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3702  if test x$coin_tmp = xset; then
3703    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3704  fi
3705fi
3706
3707if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3708
3709  coin_add_fflags=
3710  coin_opt_fflags=
3711  coin_dbg_fflags=
3712  coin_warn_fflags=
3713
3714  if test "$G77" = "yes"; then
3715    coin_opt_fflags="-O3"
3716    coin_add_fflags="-pipe"
3717    coin_dbg_fflags="-g -O0"
3718    case $enable_doscompile in
3719      mingw)
3720        FFLAGS="-mno-cygwin"
3721        cat >conftest.$ac_ext <<_ACEOF
3722      program main
3723      write(*,*) 'Hello world'
3724      end
3725_ACEOF
3726rm -f conftest.$ac_objext conftest$ac_exeext
3727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728  (eval $ac_link) 2>conftest.er1
3729  ac_status=$?
3730  grep -v '^ *+' conftest.er1 >conftest.err
3731  rm -f conftest.er1
3732  cat conftest.err >&5
3733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); } &&
3735         { ac_try='test -z "$ac_f77_werror_flag"
3736                         || test ! -s conftest.err'
3737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738  (eval $ac_try) 2>&5
3739  ac_status=$?
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); }; } &&
3742         { ac_try='test -s conftest$ac_exeext'
3743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744  (eval $ac_try) 2>&5
3745  ac_status=$?
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); }; }; then
3748  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3749else
3750  echo "$as_me: failed program was:" >&5
3751sed 's/^/| /' conftest.$ac_ext >&5
3752
3753fi
3754rm -f conftest.err conftest.$ac_objext \
3755      conftest$ac_exeext conftest.$ac_ext
3756        FFLAGS=
3757      ;;
3758    esac
3759  else
3760    case $build in
3761      *-cygwin* | *-mingw*)
3762        case $F77 in
3763          ifort* | */ifort* | IFORT* | */IFORT* )
3764            coin_opt_fflags='-MT -O3'
3765            coin_add_fflags='-fpp -nologo'
3766            coin_dbg_fflags='-MTd -debug'
3767          ;;
3768          compile_f2c*)
3769            coin_opt_fflags='-MT -O2'
3770            coin_add_fflags='-nologo -wd4996'
3771            coin_dbg_fflags='-MTd'
3772          ;;
3773        esac
3774        ;;
3775      *-linux-*)
3776        case $F77 in
3777          ifc* | */ifc* | ifort* | */ifort*)
3778            coin_opt_fflags="-O3 -ip"
3779            coin_add_fflags="-cm -w90 -w95"
3780            coin_dbg_fflags="-g -CA -CB -CS"
3781            # Check if -i_dynamic is necessary (for new glibc library)
3782            FFLAGS=
3783            cat >conftest.$ac_ext <<_ACEOF
3784      program main
3785      write(*,*) 'Hello world'
3786      end
3787_ACEOF
3788rm -f conftest.$ac_objext conftest$ac_exeext
3789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790  (eval $ac_link) 2>conftest.er1
3791  ac_status=$?
3792  grep -v '^ *+' conftest.er1 >conftest.err
3793  rm -f conftest.er1
3794  cat conftest.err >&5
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); } &&
3797         { ac_try='test -z "$ac_f77_werror_flag"
3798                         || test ! -s conftest.err'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; } &&
3804         { ac_try='test -s conftest$ac_exeext'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; }; then
3810  :
3811else
3812  echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815coin_add_fflags="-i_dynamic $coin_add_fflags"
3816fi
3817rm -f conftest.err conftest.$ac_objext \
3818      conftest$ac_exeext conftest.$ac_ext
3819            ;;
3820          pgf77* | */pgf77* | pgf90* | */pgf90*)
3821            coin_opt_fflags="-fast"
3822            coin_add_fflags="-Kieee -pc 64"
3823            coin_dbg_fflags="-g"
3824          ;;
3825        esac
3826        ;;
3827      *-ibm-*)
3828        case "$F77" in
3829          xlf* | */xlf* | mpxlf* | */mpxlf* )
3830            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3831            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3832            coin_dbg_fflags="-g -C"
3833            ;;
3834        esac
3835        ;;
3836      *-hp-*)
3837        coin_opt_fflags="+O3"
3838        coin_add_fflags="+U77"
3839        coin_dbg_fflags="-C -g"
3840        ;;
3841      *-*-solaris*)
3842        coin_opt_fflags="-O4"
3843        coin_dbg_fflags="-g"
3844        ;;
3845      *-sgi-*)
3846        coin_opt_fflags="-O5 -OPT:Olimit=0"
3847        coin_dbg_fflags="-g"
3848        ;;
3849    esac
3850  fi
3851
3852  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3853    coin_dbg_fflags="-g"
3854  fi
3855
3856  if test -z "$coin_opt_fflags"; then
3857    # Try if -O option works if nothing else is set
3858    FFLAGS=-O
3859    cat >conftest.$ac_ext <<_ACEOF
3860      program main
3861      integer i
3862      end
3863_ACEOF
3864rm -f conftest.$ac_objext conftest$ac_exeext
3865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3866  (eval $ac_link) 2>conftest.er1
3867  ac_status=$?
3868  grep -v '^ *+' conftest.er1 >conftest.err
3869  rm -f conftest.er1
3870  cat conftest.err >&5
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); } &&
3873         { ac_try='test -z "$ac_f77_werror_flag"
3874                         || test ! -s conftest.err'
3875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876  (eval $ac_try) 2>&5
3877  ac_status=$?
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); }; } &&
3880         { ac_try='test -s conftest$ac_exeext'
3881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882  (eval $ac_try) 2>&5
3883  ac_status=$?
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); }; }; then
3886  coin_opt_fflags="-O"
3887else
3888  echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891fi
3892rm -f conftest.err conftest.$ac_objext \
3893      conftest$ac_exeext conftest.$ac_ext
3894  fi
3895
3896  # if PM doesn't want the warning messages, take them out
3897  if test x"$coin_skip_warn_fflags" = xyes; then
3898    coin_warn_fflags=
3899  fi
3900
3901  if test x${DBG_FFLAGS+set} != xset; then
3902    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3903  fi
3904  if test x${OPT_FFLAGS+set} != xset; then
3905    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3906  fi
3907
3908  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3909  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3910
3911  if test "$coin_debug_compile" = "true"; then
3912    FFLAGS="$DBG_FFLAGS"
3913  else
3914    FFLAGS="$OPT_FFLAGS"
3915  fi
3916
3917else
3918  FFLAGS="$FFLAGS $ADD_FFLAGS"
3919  if test x${DBG_FFLAGS+set} != xset; then
3920    DBG_FFLAGS="$FFLAGS"
3921  fi
3922  if test x${OPT_FFLAGS+set} != xset; then
3923    OPT_FFLAGS="$FFLAGS"
3924  fi
3925fi
3926
3927# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3928case "$FFLAGS" in
3929  *-mno-cygwin*)
3930    if test x${CPPFLAGS+set} != xset ; then
3931      CPPFLAGS="-mno-cygwin"
3932    else
3933      case "$CPPFLAGS" in
3934        *-mno-cygwin*)
3935          ;;
3936        *)
3937          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3938          ;;
3939      esac
3940    fi ;;
3941esac
3942
3943# Try if FFLAGS works
3944if test "$F77" != "unavailable" ; then
3945  cat >conftest.$ac_ext <<_ACEOF
3946      program main
3947      integer i
3948      end
3949_ACEOF
3950rm -f conftest.$ac_objext conftest$ac_exeext
3951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952  (eval $ac_link) 2>conftest.er1
3953  ac_status=$?
3954  grep -v '^ *+' conftest.er1 >conftest.err
3955  rm -f conftest.er1
3956  cat conftest.err >&5
3957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958  (exit $ac_status); } &&
3959         { ac_try='test -z "$ac_f77_werror_flag"
3960                         || test ! -s conftest.err'
3961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962  (eval $ac_try) 2>&5
3963  ac_status=$?
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); }; } &&
3966         { ac_try='test -s conftest$ac_exeext'
3967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968  (eval $ac_try) 2>&5
3969  ac_status=$?
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); }; }; then
3972  :
3973else
3974  echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977FFLAGS=
3978fi
3979rm -f conftest.err conftest.$ac_objext \
3980      conftest$ac_exeext conftest.$ac_ext
3981  if test -z "$FFLAGS"; then
3982    { 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
3983echo "$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;}
3984    FFLAGS='-O'
3985    cat >conftest.$ac_ext <<_ACEOF
3986      program main
3987      integer i
3988      end
3989_ACEOF
3990rm -f conftest.$ac_objext conftest$ac_exeext
3991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3992  (eval $ac_link) 2>conftest.er1
3993  ac_status=$?
3994  grep -v '^ *+' conftest.er1 >conftest.err
3995  rm -f conftest.er1
3996  cat conftest.err >&5
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); } &&
3999         { ac_try='test -z "$ac_f77_werror_flag"
4000                         || test ! -s conftest.err'
4001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002  (eval $ac_try) 2>&5
4003  ac_status=$?
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); }; } &&
4006         { ac_try='test -s conftest$ac_exeext'
4007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008  (eval $ac_try) 2>&5
4009  ac_status=$?
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); }; }; then
4012  :
4013else
4014  echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017FFLAGS=
4018fi
4019rm -f conftest.err conftest.$ac_objext \
4020      conftest$ac_exeext conftest.$ac_ext
4021    if test -z "$FFLAGS"; then
4022      { 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
4023echo "$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;}
4024    fi
4025  fi
4026fi
4027
4028{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4029echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4030
4031
4032if test x"$MPIF77" = x; then :; else
4033  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4034echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4035  F77="$MPIF77"
4036fi
4037
4038# correct the LD variable if we use the intel fortran compiler in windows
4039case "$F77" in
4040  ifort* | */ifort* | IFORT* | */IFORT*)
4041    case $build in
4042  *-mingw*)
4043    if test "${LD+set}" = set; then :; else
4044      LD=link
4045    fi
4046    ;;
4047 esac
4048 case $enable_doscompile in
4049   msvc)
4050     if test "x${LD+set}" = xset; then :; else
4051       LD=link
4052     fi
4053     ;;
4054 esac
4055
4056    ;;
4057esac
4058
4059# check whether to add flag for static linking against standard libraries to LDFLAGS
4060if test x$use_static_standardlibs != xno ; then
4061  case $build in
4062    *-mingw*)
4063      static_standardlib_flag=-static
4064      ;;
4065    *)
4066      static_standardlib_flag=-static-libgfortran
4067      ;;
4068  esac
4069  case " $LDFLAGS " in
4070    *" $static_standardlib_flag "* ) ;;
4071    *)
4072    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
4073echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
4074    coin_save_LDFLAGS="$LDFLAGS"
4075    LDFLAGS="$LDFLAGS $static_standardlib_flag"
4076    cat >conftest.$ac_ext <<_ACEOF
4077      program main
4078      integer i
4079      end
4080_ACEOF
4081rm -f conftest.$ac_objext conftest$ac_exeext
4082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4083  (eval $ac_link) 2>conftest.er1
4084  ac_status=$?
4085  grep -v '^ *+' conftest.er1 >conftest.err
4086  rm -f conftest.er1
4087  cat conftest.err >&5
4088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089  (exit $ac_status); } &&
4090         { ac_try='test -z "$ac_f77_werror_flag"
4091                         || test ! -s conftest.err'
4092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093  (eval $ac_try) 2>&5
4094  ac_status=$?
4095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096  (exit $ac_status); }; } &&
4097         { ac_try='test -s conftest$ac_exeext'
4098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099  (eval $ac_try) 2>&5
4100  ac_status=$?
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); }; }; then
4103  echo "$as_me:$LINENO: result: yes" >&5
4104echo "${ECHO_T}yes" >&6
4105else
4106  echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111       LDFLAGS="$coin_save_LDFLAGS"
4112       if test $use_static_standardlibs = yes ; then
4113         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
4114echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
4115   { (exit 1); exit 1; }; }
4116       fi
4117
4118fi
4119rm -f conftest.err conftest.$ac_objext \
4120      conftest$ac_exeext conftest.$ac_ext
4121    ;;
4122  esac
4123fi
4124
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131
4132
4133# Get the linker flags (FLIBS) that are required for linking against this blas library
4134
4135# get FLIBS
4136ac_ext=f
4137ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4138ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4140echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4141echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4142if test "${ac_cv_prog_f77_v+set}" = set; then
4143  echo $ECHO_N "(cached) $ECHO_C" >&6
4144else
4145  cat >conftest.$ac_ext <<_ACEOF
4146      program main
4147
4148      end
4149_ACEOF
4150rm -f conftest.$ac_objext
4151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152  (eval $ac_compile) 2>conftest.er1
4153  ac_status=$?
4154  grep -v '^ *+' conftest.er1 >conftest.err
4155  rm -f conftest.er1
4156  cat conftest.err >&5
4157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158  (exit $ac_status); } &&
4159         { ac_try='test -z "$ac_f77_werror_flag"
4160                         || test ! -s conftest.err'
4161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162  (eval $ac_try) 2>&5
4163  ac_status=$?
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); }; } &&
4166         { ac_try='test -s conftest.$ac_objext'
4167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168  (eval $ac_try) 2>&5
4169  ac_status=$?
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); }; }; then
4172  ac_cv_prog_f77_v=
4173# Try some options frequently used verbose output
4174for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4175  cat >conftest.$ac_ext <<_ACEOF
4176      program main
4177
4178      end
4179_ACEOF
4180
4181# Compile and link our simple test program by passing a flag (argument
4182# 1 to this macro) to the Fortran compiler in order to get
4183# "verbose" output that we can then parse for the Fortran linker
4184# flags.
4185ac_save_FFLAGS=$FFLAGS
4186FFLAGS="$FFLAGS $ac_verb"
4187(eval echo $as_me:4187: \"$ac_link\") >&5
4188ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4189echo "$ac_f77_v_output" >&5
4190FFLAGS=$ac_save_FFLAGS
4191
4192rm -f conftest*
4193
4194# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4195# /foo, /bar, and /baz are search directories for the Fortran linker.
4196# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4197ac_f77_v_output="`echo $ac_f77_v_output |
4198        grep 'LPATH is:' |
4199        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4200
4201case $ac_f77_v_output in
4202  # If we are using xlf then replace all the commas with spaces.
4203  *xlfentry*)
4204    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4205
4206  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4207  # $LIBS confuse us, and the libraries appear later in the output anyway).
4208  *mGLOB_options_string*)
4209    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4210
4211  # If we are using Cray Fortran then delete quotes.
4212  # Use "\"" instead of '"' for font-lock-mode.
4213  # FIXME: a more general fix for quoted arguments with spaces?
4214  *cft90*)
4215    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4216esac
4217
4218
4219  # look for -l* and *.a constructs in the output
4220  for ac_arg in $ac_f77_v_output; do
4221     case $ac_arg in
4222        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4223          ac_cv_prog_f77_v=$ac_verb
4224          break 2 ;;
4225     esac
4226  done
4227done
4228if test -z "$ac_cv_prog_f77_v"; then
4229   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4230echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4231fi
4232else
4233  echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4237echo "$as_me: WARNING: compilation failed" >&2;}
4238fi
4239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4240
4241fi
4242echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4243echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4244echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4245echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4246if test "${ac_cv_f77_libs+set}" = set; then
4247  echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249  if test "x$FLIBS" != "x"; then
4250  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4251else
4252
4253cat >conftest.$ac_ext <<_ACEOF
4254      program main
4255
4256      end
4257_ACEOF
4258
4259# Compile and link our simple test program by passing a flag (argument
4260# 1 to this macro) to the Fortran compiler in order to get
4261# "verbose" output that we can then parse for the Fortran linker
4262# flags.
4263ac_save_FFLAGS=$FFLAGS
4264FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4265(eval echo $as_me:4265: \"$ac_link\") >&5
4266ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4267echo "$ac_f77_v_output" >&5
4268FFLAGS=$ac_save_FFLAGS
4269
4270rm -f conftest*
4271
4272# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4273# /foo, /bar, and /baz are search directories for the Fortran linker.
4274# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4275ac_f77_v_output="`echo $ac_f77_v_output |
4276        grep 'LPATH is:' |
4277        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4278
4279case $ac_f77_v_output in
4280  # If we are using xlf then replace all the commas with spaces.
4281  *xlfentry*)
4282    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4283
4284  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4285  # $LIBS confuse us, and the libraries appear later in the output anyway).
4286  *mGLOB_options_string*)
4287    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4288
4289  # If we are using Cray Fortran then delete quotes.
4290  # Use "\"" instead of '"' for font-lock-mode.
4291  # FIXME: a more general fix for quoted arguments with spaces?
4292  *cft90*)
4293    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4294esac
4295
4296
4297
4298ac_cv_f77_libs=
4299
4300# Save positional arguments (if any)
4301ac_save_positional="$@"
4302
4303set X $ac_f77_v_output
4304while test $# != 1; do
4305  shift
4306  ac_arg=$1
4307  case $ac_arg in
4308        [\\/]*.a | ?:[\\/]*.a)
4309            ac_exists=false
4310  for ac_i in $ac_cv_f77_libs; do
4311    if test x"$ac_arg" = x"$ac_i"; then
4312      ac_exists=true
4313      break
4314    fi
4315  done
4316
4317  if test x"$ac_exists" = xtrue; then
4318  :
4319else
4320  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4321fi
4322
4323          ;;
4324        -bI:*)
4325            ac_exists=false
4326  for ac_i in $ac_cv_f77_libs; do
4327    if test x"$ac_arg" = x"$ac_i"; then
4328      ac_exists=true
4329      break
4330    fi
4331  done
4332
4333  if test x"$ac_exists" = xtrue; then
4334  :
4335else
4336  if test "$ac_compiler_gnu" = yes; then
4337  for ac_link_opt in $ac_arg; do
4338    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4339  done
4340else
4341  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4342fi
4343fi
4344
4345          ;;
4346          # Ignore these flags.
4347        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4348          ;;
4349        -lkernel32)
4350          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4351          ;;
4352        -[LRuY])
4353          # These flags, when seen by themselves, take an argument.
4354          # We remove the space between option and argument and re-iterate
4355          # unless we find an empty arg or a new option (starting with -)
4356          case $2 in
4357             "" | -*);;
4358             *)
4359                ac_arg="$ac_arg$2"
4360                shift; shift
4361                set X $ac_arg "$@"
4362                ;;
4363          esac
4364          ;;
4365        -YP,*)
4366          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4367              ac_exists=false
4368  for ac_i in $ac_cv_f77_libs; do
4369    if test x"$ac_j" = x"$ac_i"; then
4370      ac_exists=true
4371      break
4372    fi
4373  done
4374
4375  if test x"$ac_exists" = xtrue; then
4376  :
4377else
4378  ac_arg="$ac_arg $ac_j"
4379                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4380fi
4381
4382          done
4383          ;;
4384        -[lLR]*)
4385            ac_exists=false
4386  for ac_i in $ac_cv_f77_libs; do
4387    if test x"$ac_arg" = x"$ac_i"; then
4388      ac_exists=true
4389      break
4390    fi
4391  done
4392
4393  if test x"$ac_exists" = xtrue; then
4394  :
4395else
4396  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4397fi
4398
4399          ;;
4400          # Ignore everything else.
4401  esac
4402done
4403# restore positional arguments
4404set X $ac_save_positional; shift
4405
4406# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4407# then we insist that the "run path" must be an absolute path (i.e. it
4408# must begin with a "/").
4409case `(uname -sr) 2>/dev/null` in
4410   "SunOS 5"*)
4411      ac_ld_run_path=`echo $ac_f77_v_output |
4412                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4413      test "x$ac_ld_run_path" != x &&
4414        if test "$ac_compiler_gnu" = yes; then
4415  for ac_link_opt in $ac_ld_run_path; do
4416    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4417  done
4418else
4419  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4420fi
4421      ;;
4422esac
4423fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4424
4425fi
4426echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4427echo "${ECHO_T}$ac_cv_f77_libs" >&6
4428FLIBS="$ac_cv_f77_libs"
4429
4430
4431ac_ext=c
4432ac_cpp='$CPP $CPPFLAGS'
4433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436
4437orig_FLIBS="$FLIBS"
4438
4439# If FLIBS has been set by the user, we just restore its value here
4440if test x"$save_FLIBS" != x; then
4441  FLIBS="$save_FLIBS"
4442else
4443  # This is to correct a missing exclusion in autoconf 2.59
4444  if test x"$FLIBS" != x; then
4445    my_flibs=
4446    for flag in $FLIBS; do
4447      case $flag in
4448        -lcrt*.o) ;;
4449        -lcygwin) ;;
4450               *) my_flibs="$my_flibs $flag" ;;
4451      esac
4452    done
4453    FLIBS="$my_flibs"
4454  fi
4455
4456  case $build in
4457  # The following is a fix to define FLIBS for ifort on Windows
4458  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4459  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4460  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4461  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4462  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4463     *-cygwin* | *-mingw*)
4464       case "$F77" in
4465#         ifort* | */ifort* | IFORT* | */IFORT*)
4466#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4467#           if "$coin_debug_compile" = true ; then
4468#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4469#           else
4470#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4471#           fi
4472#           ;;
4473         compile_f2c*)
4474           FLIBS=`$F77 -FLIBS` ;;
4475       esac;;
4476     *-hp-*)
4477         FLIBS="$FLIBS -lm";;
4478     *-ibm-*)
4479         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4480     *-linux-*)
4481       case "$F77" in
4482         pgf77* | */pgf77* | pgf90* | */pgf90*)
4483# ask linker to go through the archives multiple times
4484# (the Fortran compiler seems to do that automatically...)
4485           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4486       esac
4487  esac
4488  ac_cv_f77_libs="$FLIBS"
4489fi
4490
4491if test "x$orig_FLIBS" != "x$FLIBS" ; then
4492  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4493echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4494fi
4495
4496ac_ext=f
4497ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4498ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4500
4501echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4502echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4503if test "${ac_cv_f77_dummy_main+set}" = set; then
4504  echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506  ac_f77_dm_save_LIBS=$LIBS
4507 LIBS="$LIBS $FLIBS"
4508 ac_fortran_dm_var=F77_DUMMY_MAIN
4509 ac_ext=c
4510ac_cpp='$CPP $CPPFLAGS'
4511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514
4515 # First, try linking without a dummy main:
4516 cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h.  */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h.  */
4522
4523#ifdef F77_DUMMY_MAIN
4524
4525#  ifdef __cplusplus
4526     extern "C"
4527#  endif
4528   int F77_DUMMY_MAIN() { return 1; }
4529
4530#endif
4531int
4532main ()
4533{
4534
4535  ;
4536  return 0;
4537}
4538_ACEOF
4539rm -f conftest.$ac_objext conftest$ac_exeext
4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541  (eval $ac_link) 2>conftest.er1
4542  ac_status=$?
4543  grep -v '^ *+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } &&
4548         { ac_try='test -z "$ac_c_werror_flag"
4549                         || test ! -s conftest.err'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; } &&
4555         { ac_try='test -s conftest$ac_exeext'
4556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557  (eval $ac_try) 2>&5
4558  ac_status=$?
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); }; }; then
4561  ac_cv_fortran_dummy_main=none
4562else
4563  echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566ac_cv_fortran_dummy_main=unknown
4567fi
4568rm -f conftest.err conftest.$ac_objext \
4569      conftest$ac_exeext conftest.$ac_ext
4570
4571 if test $ac_cv_fortran_dummy_main = unknown; then
4572   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4573     cat >conftest.$ac_ext <<_ACEOF
4574/* confdefs.h.  */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h.  */
4579#define $ac_fortran_dm_var $ac_func
4580#ifdef F77_DUMMY_MAIN
4581
4582#  ifdef __cplusplus
4583     extern "C"
4584#  endif
4585   int F77_DUMMY_MAIN() { return 1; }
4586
4587#endif
4588int
4589main ()
4590{
4591
4592  ;
4593  return 0;
4594}
4595_ACEOF
4596rm -f conftest.$ac_objext conftest$ac_exeext
4597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598  (eval $ac_link) 2>conftest.er1
4599  ac_status=$?
4600  grep -v '^ *+' conftest.er1 >conftest.err
4601  rm -f conftest.er1
4602  cat conftest.err >&5
4603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604  (exit $ac_status); } &&
4605         { ac_try='test -z "$ac_c_werror_flag"
4606                         || test ! -s conftest.err'
4607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608  (eval $ac_try) 2>&5
4609  ac_status=$?
4610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611  (exit $ac_status); }; } &&
4612         { ac_try='test -s conftest$ac_exeext'
4613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614  (eval $ac_try) 2>&5
4615  ac_status=$?
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); }; }; then
4618  ac_cv_fortran_dummy_main=$ac_func; break
4619else
4620  echo "$as_me: failed program was:" >&5
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
4623fi
4624rm -f conftest.err conftest.$ac_objext \
4625      conftest$ac_exeext conftest.$ac_ext
4626   done
4627 fi
4628 ac_ext=f
4629ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4630ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4632 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4633 rm -f conftest*
4634 LIBS=$ac_f77_dm_save_LIBS
4635
4636fi
4637echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4638echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4639F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4640if test "$F77_DUMMY_MAIN" != unknown; then
4641  if test $F77_DUMMY_MAIN != none; then
4642
4643cat >>confdefs.h <<_ACEOF
4644#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4645_ACEOF
4646
4647  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4648
4649cat >>confdefs.h <<\_ACEOF
4650#define FC_DUMMY_MAIN_EQ_F77 1
4651_ACEOF
4652
4653  fi
4654fi
4655else
4656  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4657See \`config.log' for more details." >&5
4658echo "$as_me: error: linking to Fortran libraries from C fails
4659See \`config.log' for more details." >&2;}
4660   { (exit 1); exit 1; }; }
4661fi
4662
4663
4664ac_ext=f
4665ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4666ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4668
4669ac_ext=f
4670ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4671ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4673echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4674echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4675if test "${ac_cv_f77_mangling+set}" = set; then
4676  echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678  cat >conftest.$ac_ext <<_ACEOF
4679      subroutine foobar()
4680      return
4681      end
4682      subroutine foo_bar()
4683      return
4684      end
4685_ACEOF
4686rm -f conftest.$ac_objext
4687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688  (eval $ac_compile) 2>conftest.er1
4689  ac_status=$?
4690  grep -v '^ *+' conftest.er1 >conftest.err
4691  rm -f conftest.er1
4692  cat conftest.err >&5
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); } &&
4695         { ac_try='test -z "$ac_f77_werror_flag"
4696                         || test ! -s conftest.err'
4697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698  (eval $ac_try) 2>&5
4699  ac_status=$?
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); }; } &&
4702         { ac_try='test -s conftest.$ac_objext'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; }; then
4708  mv conftest.$ac_objext cfortran_test.$ac_objext
4709
4710  ac_save_LIBS=$LIBS
4711  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4712
4713  ac_ext=c
4714ac_cpp='$CPP $CPPFLAGS'
4715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718  ac_success=no
4719  for ac_foobar in foobar FOOBAR; do
4720    for ac_underscore in "" "_"; do
4721      ac_func="$ac_foobar$ac_underscore"
4722      cat >conftest.$ac_ext <<_ACEOF
4723/* confdefs.h.  */
4724_ACEOF
4725cat confdefs.h >>conftest.$ac_ext
4726cat >>conftest.$ac_ext <<_ACEOF
4727/* end confdefs.h.  */
4728
4729/* Override any gcc2 internal prototype to avoid an error.  */
4730#ifdef __cplusplus
4731extern "C"
4732#endif
4733/* We use char because int might match the return type of a gcc2
4734   builtin and then its argument prototype would still apply.  */
4735char $ac_func ();
4736#ifdef F77_DUMMY_MAIN
4737
4738#  ifdef __cplusplus
4739     extern "C"
4740#  endif
4741   int F77_DUMMY_MAIN() { return 1; }
4742
4743#endif
4744int
4745main ()
4746{
4747$ac_func ();
4748  ;
4749  return 0;
4750}
4751_ACEOF
4752rm -f conftest.$ac_objext conftest$ac_exeext
4753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754  (eval $ac_link) 2>conftest.er1
4755  ac_status=$?
4756  grep -v '^ *+' conftest.er1 >conftest.err
4757  rm -f conftest.er1
4758  cat conftest.err >&5
4759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760  (exit $ac_status); } &&
4761         { ac_try='test -z "$ac_c_werror_flag"
4762                         || test ! -s conftest.err'
4763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764  (eval $ac_try) 2>&5
4765  ac_status=$?
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); }; } &&
4768         { ac_try='test -s conftest$ac_exeext'
4769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770  (eval $ac_try) 2>&5
4771  ac_status=$?
4772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773  (exit $ac_status); }; }; then
4774  ac_success=yes; break 2
4775else
4776  echo "$as_me: failed program was:" >&5
4777sed 's/^/| /' conftest.$ac_ext >&5
4778
4779fi
4780rm -f conftest.err conftest.$ac_objext \
4781      conftest$ac_exeext conftest.$ac_ext
4782    done
4783  done
4784  ac_ext=f
4785ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4786ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4788
4789  if test "$ac_success" = "yes"; then
4790     case $ac_foobar in
4791        foobar)
4792           ac_case=lower
4793           ac_foo_bar=foo_bar
4794           ;;
4795        FOOBAR)
4796           ac_case=upper
4797           ac_foo_bar=FOO_BAR
4798           ;;
4799     esac
4800
4801     ac_ext=c
4802ac_cpp='$CPP $CPPFLAGS'
4803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806     ac_success_extra=no
4807     for ac_extra in "" "_"; do
4808        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4809        cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h.  */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h.  */
4815
4816/* Override any gcc2 internal prototype to avoid an error.  */
4817#ifdef __cplusplus
4818extern "C"
4819#endif
4820/* We use char because int might match the return type of a gcc2
4821   builtin and then its argument prototype would still apply.  */
4822char $ac_func ();
4823#ifdef F77_DUMMY_MAIN
4824
4825#  ifdef __cplusplus
4826     extern "C"
4827#  endif
4828   int F77_DUMMY_MAIN() { return 1; }
4829
4830#endif
4831int
4832main ()
4833{
4834$ac_func ();
4835  ;
4836  return 0;
4837}
4838_ACEOF
4839rm -f conftest.$ac_objext conftest$ac_exeext
4840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4841  (eval $ac_link) 2>conftest.er1
4842  ac_status=$?
4843  grep -v '^ *+' conftest.er1 >conftest.err
4844  rm -f conftest.er1
4845  cat conftest.err >&5
4846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847  (exit $ac_status); } &&
4848         { ac_try='test -z "$ac_c_werror_flag"
4849                         || test ! -s conftest.err'
4850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851  (eval $ac_try) 2>&5
4852  ac_status=$?
4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854  (exit $ac_status); }; } &&
4855         { ac_try='test -s conftest$ac_exeext'
4856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857  (eval $ac_try) 2>&5
4858  ac_status=$?
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); }; }; then
4861  ac_success_extra=yes; break
4862else
4863  echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866fi
4867rm -f conftest.err conftest.$ac_objext \
4868      conftest$ac_exeext conftest.$ac_ext
4869     done
4870     ac_ext=f
4871ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4872ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4874
4875     if test "$ac_success_extra" = "yes"; then
4876        ac_cv_f77_mangling="$ac_case case"
4877        if test -z "$ac_underscore"; then
4878           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4879        else
4880           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4881        fi
4882        if test -z "$ac_extra"; then
4883           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4884        else
4885           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4886        fi
4887      else
4888        ac_cv_f77_mangling="unknown"
4889      fi
4890  else
4891     ac_cv_f77_mangling="unknown"
4892  fi
4893
4894  LIBS=$ac_save_LIBS
4895  rm -f cfortran_test* conftest*
4896else
4897  echo "$as_me: failed program was:" >&5
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
4900{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4901See \`config.log' for more details." >&5
4902echo "$as_me: error: cannot compile a simple Fortran program
4903See \`config.log' for more details." >&2;}
4904   { (exit 1); exit 1; }; }
4905fi
4906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4907
4908fi
4909echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4910echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4911
4912ac_ext=f
4913ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4914ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4916
4917
4918ac_ext=f
4919ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4920ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4922
4923ac_ext=f
4924ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4925ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4927
4928
4929case $ac_cv_f77_mangling in
4930  "lower case, no underscore, no extra underscore")
4931          cat >>confdefs.h <<\_ACEOF
4932#define F77_FUNC(name,NAME) name
4933_ACEOF
4934
4935          cat >>confdefs.h <<\_ACEOF
4936#define F77_FUNC_(name,NAME) name
4937_ACEOF
4938 ;;
4939  "lower case, no underscore, extra underscore")
4940          cat >>confdefs.h <<\_ACEOF
4941#define F77_FUNC(name,NAME) name
4942_ACEOF
4943
4944          cat >>confdefs.h <<\_ACEOF
4945#define F77_FUNC_(name,NAME) name ## _
4946_ACEOF
4947 ;;
4948  "lower case, underscore, no extra underscore")
4949          cat >>confdefs.h <<\_ACEOF
4950#define F77_FUNC(name,NAME) name ## _
4951_ACEOF
4952
4953          cat >>confdefs.h <<\_ACEOF
4954#define F77_FUNC_(name,NAME) name ## _
4955_ACEOF
4956 ;;
4957  "lower case, underscore, extra underscore")
4958          cat >>confdefs.h <<\_ACEOF
4959#define F77_FUNC(name,NAME) name ## _
4960_ACEOF
4961
4962          cat >>confdefs.h <<\_ACEOF
4963#define F77_FUNC_(name,NAME) name ## __
4964_ACEOF
4965 ;;
4966  "upper case, no underscore, no extra underscore")
4967          cat >>confdefs.h <<\_ACEOF
4968#define F77_FUNC(name,NAME) NAME
4969_ACEOF
4970
4971          cat >>confdefs.h <<\_ACEOF
4972#define F77_FUNC_(name,NAME) NAME
4973_ACEOF
4974 ;;
4975  "upper case, no underscore, extra underscore")
4976          cat >>confdefs.h <<\_ACEOF
4977#define F77_FUNC(name,NAME) NAME
4978_ACEOF
4979
4980          cat >>confdefs.h <<\_ACEOF
4981#define F77_FUNC_(name,NAME) NAME ## _
4982_ACEOF
4983 ;;
4984  "upper case, underscore, no extra underscore")
4985          cat >>confdefs.h <<\_ACEOF
4986#define F77_FUNC(name,NAME) NAME ## _
4987_ACEOF
4988
4989          cat >>confdefs.h <<\_ACEOF
4990#define F77_FUNC_(name,NAME) NAME ## _
4991_ACEOF
4992 ;;
4993  "upper case, underscore, extra underscore")
4994          cat >>confdefs.h <<\_ACEOF
4995#define F77_FUNC(name,NAME) NAME ## _
4996_ACEOF
4997
4998          cat >>confdefs.h <<\_ACEOF
4999#define F77_FUNC_(name,NAME) NAME ## __
5000_ACEOF
5001 ;;
5002  *)
5003          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5004echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5005          ;;
5006esac
5007
5008ac_ext=f
5009ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5010ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5012
5013ac_ext=c
5014ac_cpp='$CPP $CPPFLAGS'
5015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018
5019
5020
5021
5022# Add FLIBS to BLAS_PCLIBS, so that they get into the .pc files
5023BLAS_PCLIBS="$FLIBS"
5024
5025
5026# Check if pkg-config is available (to setup addlibs file)
5027
5028
5029# Check whether --enable-pkg-config or --disable-pkg-config was given.
5030if test "${enable_pkg_config+set}" = set; then
5031  enableval="$enable_pkg_config"
5032  use_pkgconfig="$enableval"
5033else
5034  use_pkgconfig=yes
5035fi;
5036
5037if test $use_pkgconfig = yes ; then
5038  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5039    if test -n "$ac_tool_prefix"; then
5040  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5041set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5042echo "$as_me:$LINENO: checking for $ac_word" >&5
5043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5045  echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047  case $PKG_CONFIG in
5048  [\\/]* | ?:[\\/]*)
5049  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5050  ;;
5051  *)
5052  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055  IFS=$as_save_IFS
5056  test -z "$as_dir" && as_dir=.
5057  for ac_exec_ext in '' $ac_executable_extensions; do
5058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061    break 2
5062  fi
5063done
5064done
5065
5066  ;;
5067esac
5068fi
5069PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5070
5071if test -n "$PKG_CONFIG"; then
5072  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5073echo "${ECHO_T}$PKG_CONFIG" >&6
5074else
5075  echo "$as_me:$LINENO: result: no" >&5
5076echo "${ECHO_T}no" >&6
5077fi
5078
5079fi
5080if test -z "$ac_cv_path_PKG_CONFIG"; then
5081  ac_pt_PKG_CONFIG=$PKG_CONFIG
5082  # Extract the first word of "pkg-config", so it can be a program name with args.
5083set dummy pkg-config; ac_word=$2
5084echo "$as_me:$LINENO: checking for $ac_word" >&5
5085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  case $ac_pt_PKG_CONFIG in
5090  [\\/]* | ?:[\\/]*)
5091  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5092  ;;
5093  *)
5094  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH
5096do
5097  IFS=$as_save_IFS
5098  test -z "$as_dir" && as_dir=.
5099  for ac_exec_ext in '' $ac_executable_extensions; do
5100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103    break 2
5104  fi
5105done
5106done
5107
5108  ;;
5109esac
5110fi
5111ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5112
5113if test -n "$ac_pt_PKG_CONFIG"; then
5114  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5115echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
5116else
5117  echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119fi
5120
5121  PKG_CONFIG=$ac_pt_PKG_CONFIG
5122else
5123  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5124fi
5125
5126  fi
5127  if test -n "$PKG_CONFIG"; then
5128    _pkg_min_version=0.16.0
5129    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5130echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
5131    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5132      echo "$as_me:$LINENO: result: yes" >&5
5133echo "${ECHO_T}yes" >&6
5134    else
5135      echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137      PKG_CONFIG=""
5138    fi
5139  fi
5140
5141  # check if pkg-config supports the short-errors flag
5142  if test -n "$PKG_CONFIG" && \
5143    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5144    pkg_short_errors=" --short-errors "
5145  else
5146    pkg_short_errors=""
5147  fi
5148fi
5149
5150
5151
5152if test -n "$PKG_CONFIG"; then
5153  COIN_HAS_PKGCONFIG_TRUE=
5154  COIN_HAS_PKGCONFIG_FALSE='#'
5155else
5156  COIN_HAS_PKGCONFIG_TRUE='#'
5157  COIN_HAS_PKGCONFIG_FALSE=
5158fi
5159
5160
5161
5162# assemble pkg-config search path for installed projects
5163COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
5164
5165# 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
5166# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
5167# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
5168if test "x${prefix}" = xNONE ; then
5169  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5170else
5171  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5172fi
5173
5174
5175# Check whether --with-coin-instdir or --without-coin-instdir was given.
5176if test "${with_coin_instdir+set}" = set; then
5177  withval="$with_coin_instdir"
5178  if test -d "$withval"; then : ; else
5179     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
5180echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
5181   { (exit 1); exit 1; }; }
5182   fi
5183   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5184
5185fi;
5186
5187
5188
5189# assemble additional pkg-config search paths for uninstalled projects
5190if test x$coin_projectdir = xyes ; then
5191  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
5192  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
5193  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
5194  # 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)
5195  COIN_PKG_CONFIG_PATH_UNINSTALLED=
5196  if test -e ../coin_subdirs.txt ; then
5197    for i in `cat ../coin_subdirs.txt` ; do
5198      if test -d ../$i ; then
5199        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5200      fi
5201      if test -d ../$i/pkgconfig ; then
5202        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5203      fi
5204    done
5205  fi
5206
5207  if test -e ../../coin_subdirs.txt ; then
5208    for i in `cat ../../coin_subdirs.txt` ; do
5209      if test -d ../../$i ; then
5210        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5211      fi
5212      if test -d ../../$i/pkgconfig ; then
5213        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5214      fi
5215    done
5216  fi
5217
5218
5219fi
5220
5221if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5222  { 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
5223echo "$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;}
5224fi
5225
5226
5227
5228# Initialize automake
5229{
5230
5231
5232
5233# START
5234
5235# Test if force_shared has been set
5236if test "x" = xforce_shared; then
5237  if test x$enable_shared = xno; then
5238    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5239echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5240   { (exit 1); exit 1; }; }
5241  fi
5242  enable_shared=yes;
5243else
5244  # On Cygwin and AIX, building DLLs doesn't work
5245  case $build in
5246    *-cygwin*)
5247      coin_disable_shared=yes
5248      platform=Cygwin
5249    ;;
5250    *-aix*)
5251      coin_disable_shared=yes
5252      platform=AIX
5253    ;;
5254    *-mingw*)
5255      coin_disable_shared=yes
5256      platform="Msys"
5257#      case "$CXX" in
5258#        cl*)
5259#          coin_disable_shared=yes
5260#          platform="Msys with cl"
5261#      ;;
5262#      esac
5263    ;;
5264  esac
5265fi
5266if test x"$coin_disable_shared" = xyes; then
5267  if test x"$enable_shared" = xyes; then
5268    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5269echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5270  fi
5271  enable_shared=no
5272fi
5273# By default, we only want the shared objects to be compiled
5274# Check whether --enable-static or --disable-static was given.
5275if test "${enable_static+set}" = set; then
5276  enableval="$enable_static"
5277  p=${PACKAGE-default}
5278    case $enableval in
5279    yes) enable_static=yes ;;
5280    no) enable_static=no ;;
5281    *)
5282     enable_static=no
5283      # Look at the argument we got.  We use all the common list separators.
5284      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5285      for pkg in $enableval; do
5286        IFS="$lt_save_ifs"
5287        if test "X$pkg" = "X$p"; then
5288          enable_static=yes
5289        fi
5290      done
5291      IFS="$lt_save_ifs"
5292      ;;
5293    esac
5294else
5295  enable_static=no
5296fi;
5297
5298
5299
5300
5301# Initialize automake
5302echo "$as_me:$LINENO: checking for egrep" >&5
5303echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5304if test "${ac_cv_prog_egrep+set}" = set; then
5305  echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5308    then ac_cv_prog_egrep='grep -E'
5309    else ac_cv_prog_egrep='egrep'
5310    fi
5311fi
5312echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5313echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5314 EGREP=$ac_cv_prog_egrep
5315
5316
5317echo "$as_me:$LINENO: checking whether ln -s works" >&5
5318echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5319LN_S=$as_ln_s
5320if test "$LN_S" = "ln -s"; then
5321  echo "$as_me:$LINENO: result: yes" >&5
5322echo "${ECHO_T}yes" >&6
5323else
5324  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5325echo "${ECHO_T}no, using $LN_S" >&6
5326fi
5327
5328am__api_version="1.9"
5329# Find a good install program.  We prefer a C program (faster),
5330# so one script is as good as another.  But avoid the broken or
5331# incompatible versions:
5332# SysV /etc/install, /usr/sbin/install
5333# SunOS /usr/etc/install
5334# IRIX /sbin/install
5335# AIX /bin/install
5336# AmigaOS /C/install, which installs bootblocks on floppy discs
5337# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5338# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5339# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5340# OS/2's system install, which has a completely different semantic
5341# ./install, which can be erroneously created by make from ./install.sh.
5342echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5343echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5344if test -z "$INSTALL"; then
5345if test "${ac_cv_path_install+set}" = set; then
5346  echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351  IFS=$as_save_IFS
5352  test -z "$as_dir" && as_dir=.
5353  # Account for people who put trailing slashes in PATH elements.
5354case $as_dir/ in
5355  ./ | .// | /cC/* | \
5356  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5357  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5358  /usr/ucb/* ) ;;
5359  *)
5360    # OSF1 and SCO ODT 3.0 have their own names for install.
5361    # Don't use installbsd from OSF since it installs stuff as root
5362    # by default.
5363    for ac_prog in ginstall scoinst install; do
5364      for ac_exec_ext in '' $ac_executable_extensions; do
5365        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5366          if test $ac_prog = install &&
5367            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5368            # AIX install.  It has an incompatible calling convention.
5369            :
5370          elif test $ac_prog = install &&
5371            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5372            # program-specific install script used by HP pwplus--don't use.
5373            :
5374          else
5375            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5376            break 3
5377          fi
5378        fi
5379      done
5380    done
5381    ;;
5382esac
5383done
5384
5385
5386fi
5387  if test "${ac_cv_path_install+set}" = set; then
5388    INSTALL=$ac_cv_path_install
5389  else
5390    # As a last resort, use the slow shell script.  We don't cache a
5391    # path for INSTALL within a source directory, because that will
5392    # break other packages using the cache if that directory is
5393    # removed, or if the path is relative.
5394    INSTALL=$ac_install_sh
5395  fi
5396fi
5397echo "$as_me:$LINENO: result: $INSTALL" >&5
5398echo "${ECHO_T}$INSTALL" >&6
5399
5400# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5401# It thinks the first close brace ends the variable substitution.
5402test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5403
5404test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5405
5406test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5407
5408echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5409echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5410# Just in case
5411sleep 1
5412echo timestamp > conftest.file
5413# Do `set' in a subshell so we don't clobber the current shell's
5414# arguments.  Must try -L first in case configure is actually a
5415# symlink; some systems play weird games with the mod time of symlinks
5416# (eg FreeBSD returns the mod time of the symlink's containing
5417# directory).
5418if (
5419   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5420   if test "$*" = "X"; then
5421      # -L didn't work.
5422      set X `ls -t $srcdir/configure conftest.file`
5423   fi
5424   rm -f conftest.file
5425   if test "$*" != "X $srcdir/configure conftest.file" \
5426      && test "$*" != "X conftest.file $srcdir/configure"; then
5427
5428      # If neither matched, then we have a broken ls.  This can happen
5429      # if, for instance, CONFIG_SHELL is bash and it inherits a
5430      # broken ls alias from the environment.  This has actually
5431      # happened.  Such a system could not be considered "sane".
5432      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5433alias in your environment" >&5
5434echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5435alias in your environment" >&2;}
5436   { (exit 1); exit 1; }; }
5437   fi
5438
5439   test "$2" = conftest.file
5440   )
5441then
5442   # Ok.
5443   :
5444else
5445   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5446Check your system clock" >&5
5447echo "$as_me: error: newly created file is older than distributed files!
5448Check your system clock" >&2;}
5449   { (exit 1); exit 1; }; }
5450fi
5451echo "$as_me:$LINENO: result: yes" >&5
5452echo "${ECHO_T}yes" >&6
5453test "$program_prefix" != NONE &&
5454  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5455# Use a double $ so make ignores it.
5456test "$program_suffix" != NONE &&
5457  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5458# Double any \ or $.  echo might interpret backslashes.
5459# By default was `s,x,x', remove it if useless.
5460cat <<\_ACEOF >conftest.sed
5461s/[\\$]/&&/g;s/;s,x,x,$//
5462_ACEOF
5463program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5464rm conftest.sed
5465
5466# expand $ac_aux_dir to an absolute path
5467am_aux_dir=`cd $ac_aux_dir && pwd`
5468
5469test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5470# Use eval to expand $SHELL
5471if eval "$MISSING --run true"; then
5472  am_missing_run="$MISSING --run "
5473else
5474  am_missing_run=
5475  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5476echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5477fi
5478
5479if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5480  # We used to keeping the `.' as first argument, in order to
5481  # allow $(mkdir_p) to be used without argument.  As in
5482  #   $(mkdir_p) $(somedir)
5483  # where $(somedir) is conditionally defined.  However this is wrong
5484  # for two reasons:
5485  #  1. if the package is installed by a user who cannot write `.'
5486  #     make install will fail,
5487  #  2. the above comment should most certainly read
5488  #     $(mkdir_p) $(DESTDIR)$(somedir)
5489  #     so it does not work when $(somedir) is undefined and
5490  #     $(DESTDIR) is not.
5491  #  To support the latter case, we have to write
5492  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5493  #  so the `.' trick is pointless.
5494  mkdir_p='mkdir -p --'
5495else
5496  # On NextStep and OpenStep, the `mkdir' command does not
5497  # recognize any option.  It will interpret all options as
5498  # directories to create, and then abort because `.' already
5499  # exists.
5500  for d in ./-p ./--version;
5501  do
5502    test -d $d && rmdir $d
5503  done
5504  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5505  if test -f "$ac_aux_dir/mkinstalldirs"; then
5506    mkdir_p='$(mkinstalldirs)'
5507  else
5508    mkdir_p='$(install_sh) -d'
5509  fi
5510fi
5511
5512for ac_prog in gawk mawk nawk awk
5513do
5514  # Extract the first word of "$ac_prog", so it can be a program name with args.
5515set dummy $ac_prog; ac_word=$2
5516echo "$as_me:$LINENO: checking for $ac_word" >&5
5517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518if test "${ac_cv_prog_AWK+set}" = set; then
5519  echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521  if test -n "$AWK"; then
5522  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527  IFS=$as_save_IFS
5528  test -z "$as_dir" && as_dir=.
5529  for ac_exec_ext in '' $ac_executable_extensions; do
5530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531    ac_cv_prog_AWK="$ac_prog"
5532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533    break 2
5534  fi
5535done
5536done
5537
5538fi
5539fi
5540AWK=$ac_cv_prog_AWK
5541if test -n "$AWK"; then
5542  echo "$as_me:$LINENO: result: $AWK" >&5
5543echo "${ECHO_T}$AWK" >&6
5544else
5545  echo "$as_me:$LINENO: result: no" >&5
5546echo "${ECHO_T}no" >&6
5547fi
5548
5549  test -n "$AWK" && break
5550done
5551
5552echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5553echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5554set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5555if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5556  echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558  cat >conftest.make <<\_ACEOF
5559all:
5560        @echo 'ac_maketemp="$(MAKE)"'
5561_ACEOF
5562# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5563eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5564if test -n "$ac_maketemp"; then
5565  eval ac_cv_prog_make_${ac_make}_set=yes
5566else
5567  eval ac_cv_prog_make_${ac_make}_set=no
5568fi
5569rm -f conftest.make
5570fi
5571if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5572  echo "$as_me:$LINENO: result: yes" >&5
5573echo "${ECHO_T}yes" >&6
5574  SET_MAKE=
5575else
5576  echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6
5578  SET_MAKE="MAKE=${MAKE-make}"
5579fi
5580
5581rm -rf .tst 2>/dev/null
5582mkdir .tst 2>/dev/null
5583if test -d .tst; then
5584  am__leading_dot=.
5585else
5586  am__leading_dot=_
5587fi
5588rmdir .tst 2>/dev/null
5589
5590DEPDIR="${am__leading_dot}deps"
5591
5592          ac_config_commands="$ac_config_commands depfiles"
5593
5594
5595am_make=${MAKE-make}
5596cat > confinc << 'END'
5597am__doit:
5598        @echo done
5599.PHONY: am__doit
5600END
5601# If we don't find an include directive, just comment out the code.
5602echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5603echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5604am__include="#"
5605am__quote=
5606_am_result=none
5607# First try GNU make style include.
5608echo "include confinc" > confmf
5609# We grep out `Entering directory' and `Leaving directory'
5610# messages which can occur if `w' ends up in MAKEFLAGS.
5611# In particular we don't look at `^make:' because GNU make might
5612# be invoked under some other name (usually "gmake"), in which
5613# case it prints its new name instead of `make'.
5614if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5615   am__include=include
5616   am__quote=
5617   _am_result=GNU
5618fi
5619# Now try BSD make style include.
5620if test "$am__include" = "#"; then
5621   echo '.include "confinc"' > confmf
5622   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5623      am__include=.include
5624      am__quote="\""
5625      _am_result=BSD
5626   fi
5627fi
5628
5629
5630echo "$as_me:$LINENO: result: $_am_result" >&5
5631echo "${ECHO_T}$_am_result" >&6
5632rm -f confinc confmf
5633
5634# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5635if test "${enable_dependency_tracking+set}" = set; then
5636  enableval="$enable_dependency_tracking"
5637
5638fi;
5639if test "x$enable_dependency_tracking" != xno; then
5640  am_depcomp="$ac_aux_dir/depcomp"
5641  AMDEPBACKSLASH='\'
5642fi
5643
5644
5645if test "x$enable_dependency_tracking" != xno; then
5646  AMDEP_TRUE=
5647  AMDEP_FALSE='#'
5648else
5649  AMDEP_TRUE='#'
5650  AMDEP_FALSE=
5651fi
5652
5653
5654
5655
5656
5657
5658# AC_MSG_NOTICE([Beginning automake initialisation.])
5659# Stuff for automake
5660# test to see if srcdir already configured
5661if test "`cd $srcdir && pwd`" != "`pwd`" &&
5662   test -f $srcdir/config.status; then
5663  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5664echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5665   { (exit 1); exit 1; }; }
5666fi
5667
5668# test whether we have cygpath
5669if test -z "$CYGPATH_W"; then
5670  if (cygpath --version) >/dev/null 2>/dev/null; then
5671    CYGPATH_W='cygpath -w'
5672  else
5673    CYGPATH_W=echo
5674  fi
5675fi
5676
5677
5678# Define the identity of the package.
5679 PACKAGE='thirdpartyblas'
5680 VERSION='trunk'
5681
5682
5683cat >>confdefs.h <<_ACEOF
5684#define PACKAGE "$PACKAGE"
5685_ACEOF
5686
5687
5688cat >>confdefs.h <<_ACEOF
5689#define VERSION "$VERSION"
5690_ACEOF
5691
5692# Some tools Automake needs.
5693
5694ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5695
5696
5697AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5698
5699
5700AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5701
5702
5703AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5704
5705
5706MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5707
5708install_sh=${install_sh-"$am_aux_dir/install-sh"}
5709
5710# Installed binaries are usually stripped using `strip' when the user
5711# run `make install-strip'.  However `strip' might not be the right
5712# tool to use in cross-compilation environments, therefore Automake
5713# will honor the `STRIP' environment variable to overrule this program.
5714if test "$cross_compiling" != no; then
5715  if test -n "$ac_tool_prefix"; then
5716  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5717set dummy ${ac_tool_prefix}strip; ac_word=$2
5718echo "$as_me:$LINENO: checking for $ac_word" >&5
5719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720if test "${ac_cv_prog_STRIP+set}" = set; then
5721  echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723  if test -n "$STRIP"; then
5724  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729  IFS=$as_save_IFS
5730  test -z "$as_dir" && as_dir=.
5731  for ac_exec_ext in '' $ac_executable_extensions; do
5732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735    break 2
5736  fi
5737done
5738done
5739
5740fi
5741fi
5742STRIP=$ac_cv_prog_STRIP
5743if test -n "$STRIP"; then
5744  echo "$as_me:$LINENO: result: $STRIP" >&5
5745echo "${ECHO_T}$STRIP" >&6
5746else
5747  echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6
5749fi
5750
5751fi
5752if test -z "$ac_cv_prog_STRIP"; then
5753  ac_ct_STRIP=$STRIP
5754  # Extract the first word of "strip", so it can be a program name with args.
5755set dummy strip; ac_word=$2
5756echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761  if test -n "$ac_ct_STRIP"; then
5762  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767  IFS=$as_save_IFS
5768  test -z "$as_dir" && as_dir=.
5769  for ac_exec_ext in '' $ac_executable_extensions; do
5770  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771    ac_cv_prog_ac_ct_STRIP="strip"
5772    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773    break 2
5774  fi
5775done
5776done
5777
5778  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5779fi
5780fi
5781ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5782if test -n "$ac_ct_STRIP"; then
5783  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5784echo "${ECHO_T}$ac_ct_STRIP" >&6
5785else
5786  echo "$as_me:$LINENO: result: no" >&5
5787echo "${ECHO_T}no" >&6
5788fi
5789
5790  STRIP=$ac_ct_STRIP
5791else
5792  STRIP="$ac_cv_prog_STRIP"
5793fi
5794
5795fi
5796INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5797
5798# We need awk for the "check" target.  The system "awk" is bad on
5799# some platforms.
5800# Always define AMTAR for backward compatibility.
5801
5802AMTAR=${AMTAR-"${am_missing_run}tar"}
5803
5804am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5805
5806
5807
5808
5809depcc="$CC"   am_compiler_list=
5810
5811echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5812echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5813if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5814  echo $ECHO_N "(cached) $ECHO_C" >&6
5815else
5816  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5817  # We make a subdir and do the tests there.  Otherwise we can end up
5818  # making bogus files that we don't know about and never remove.  For
5819  # instance it was reported that on HP-UX the gcc test will end up
5820  # making a dummy file named `D' -- because `-MD' means `put the output
5821  # in D'.
5822  mkdir conftest.dir
5823  # Copy depcomp to subdir because otherwise we won't find it if we're
5824  # using a relative directory.
5825  cp "$am_depcomp" conftest.dir
5826  cd conftest.dir
5827  # We will build objects and dependencies in a subdirectory because
5828  # it helps to detect inapplicable dependency modes.  For instance
5829  # both Tru64's cc and ICC support -MD to output dependencies as a
5830  # side effect of compilation, but ICC will put the dependencies in
5831  # the current directory while Tru64 will put them in the object
5832  # directory.
5833  mkdir sub
5834
5835  am_cv_CC_dependencies_compiler_type=none
5836  if test "$am_compiler_list" = ""; then
5837     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5838  fi
5839  for depmode in $am_compiler_list; do
5840    # Setup a source with many dependencies, because some compilers
5841    # like to wrap large dependency lists on column 80 (with \), and
5842    # we should not choose a depcomp mode which is confused by this.
5843    #
5844    # We need to recreate these files for each test, as the compiler may
5845    # overwrite some of them when testing with obscure command lines.
5846    # This happens at least with the AIX C compiler.
5847    : > sub/conftest.c
5848    for i in 1 2 3 4 5 6; do
5849      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5850      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5851      # Solaris 8's {/usr,}/bin/sh.
5852      touch sub/conftst$i.h
5853    done
5854    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5855
5856    case $depmode in
5857    nosideeffect)
5858      # after this tag, mechanisms are not by side-effect, so they'll
5859      # only be used when explicitly requested
5860      if test "x$enable_dependency_tracking" = xyes; then
5861        continue
5862      else
5863        break
5864      fi
5865      ;;
5866    none) break ;;
5867    esac
5868    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5869    # mode.  It turns out that the SunPro C++ compiler does not properly
5870    # handle `-M -o', and we need to detect this.
5871    if depmode=$depmode \
5872       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5873       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5874       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5875         >/dev/null 2>conftest.err &&
5876       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5877       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5878       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5879      # icc doesn't choke on unknown options, it will just issue warnings
5880      # or remarks (even with -Werror).  So we grep stderr for any message
5881      # that says an option was ignored or not supported.
5882      # When given -MP, icc 7.0 and 7.1 complain thusly:
5883      #   icc: Command line warning: ignoring option '-M'; no argument required
5884      # The diagnosis changed in icc 8.0:
5885      #   icc: Command line remark: option '-MP' not supported
5886      if (grep 'ignoring option' conftest.err ||
5887          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5888        am_cv_CC_dependencies_compiler_type=$depmode
5889        break
5890      fi
5891    fi
5892  done
5893
5894  cd ..
5895  rm -rf conftest.dir
5896else
5897  am_cv_CC_dependencies_compiler_type=none
5898fi
5899
5900fi
5901echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5902echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5903CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5904
5905
5906
5907if
5908  test "x$enable_dependency_tracking" != xno \
5909  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5910  am__fastdepCC_TRUE=
5911  am__fastdepCC_FALSE='#'
5912else
5913  am__fastdepCC_TRUE='#'
5914  am__fastdepCC_FALSE=
5915fi
5916
5917
5918
5919echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5920echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5921    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5922if test "${enable_maintainer_mode+set}" = set; then
5923  enableval="$enable_maintainer_mode"
5924  USE_MAINTAINER_MODE=$enableval
5925else
5926  USE_MAINTAINER_MODE=no
5927fi;
5928  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5929echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5930
5931
5932if test $USE_MAINTAINER_MODE = yes; then
5933  MAINTAINER_MODE_TRUE=
5934  MAINTAINER_MODE_FALSE='#'
5935else
5936  MAINTAINER_MODE_TRUE='#'
5937  MAINTAINER_MODE_FALSE=
5938fi
5939
5940  MAINT=$MAINTAINER_MODE_TRUE
5941
5942
5943
5944coin_have_externals=no
5945if test "$enable_maintainer_mode" = yes; then
5946
5947  # If maintainer mode is chosen, we make sure that the correct versions
5948  # of the tools are used, and that we know where libtool.m4 is (to
5949  # recreate acinclude.m4)
5950
5951
5952  LIBTOOLM4=
5953  # Normally, $HOME
5954  AUTOTOOLS_DFLT=$HOME
5955
5956  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5957echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5958if test "${ac_cv_use_correct_autotools+set}" = set; then
5959  echo $ECHO_N "(cached) $ECHO_C" >&6
5960else
5961  ac_cv_use_correct_autotools=check
5962fi
5963echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5964echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5965
5966  if test $ac_cv_use_correct_autotools = check; then
5967    ac_cv_use_correct_autotools=yes
5968    # Check if we have autoconf
5969    # Extract the first word of "autoconf", so it can be a program name with args.
5970set dummy autoconf; ac_word=$2
5971echo "$as_me:$LINENO: checking for $ac_word" >&5
5972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973if test "${ac_cv_prog_have_autoconf+set}" = set; then
5974  echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976  if test -n "$have_autoconf"; then
5977  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982  IFS=$as_save_IFS
5983  test -z "$as_dir" && as_dir=.
5984  for ac_exec_ext in '' $ac_executable_extensions; do
5985  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986    ac_cv_prog_have_autoconf="yes"
5987    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988    break 2
5989  fi
5990done
5991done
5992
5993  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5994fi
5995fi
5996have_autoconf=$ac_cv_prog_have_autoconf
5997if test -n "$have_autoconf"; then
5998  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5999echo "${ECHO_T}$have_autoconf" >&6
6000else
6001  echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6
6003fi
6004
6005    if test $have_autoconf = no; then
6006      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6007echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6008   { (exit 1); exit 1; }; }
6009    fi
6010
6011    # Check whether autoconf is the correct version
6012    correct_version='2.59'
6013    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6014    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6015echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6016    autoconf --version > confauto.out 2>&1
6017    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6018      echo "$as_me:$LINENO: result: yes" >&5
6019echo "${ECHO_T}yes" >&6
6020    else
6021      rm -f confauto.out
6022      echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6
6024      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6025echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6026   { (exit 1); exit 1; }; }
6027    fi
6028    rm -f confauto.out
6029
6030    # Check if the executable autoconf is picked up from the correct location
6031    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6032echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6033    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6034    autoconf_dir=`cd $autoconf_dir; pwd`
6035    if test x$AUTOTOOLS_DIR = x; then
6036      want_dir=$AUTOTOOLS_DFLT/bin
6037    else
6038      want_dir=$AUTOTOOLS_DIR/bin
6039    fi
6040    if test $autoconf_dir = `cd $want_dir; pwd`; then
6041      echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043    else
6044      rm -f confauto.out
6045      echo "$as_me:$LINENO: result: no" >&5
6046echo "${ECHO_T}no" >&6
6047      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6048echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6049   { (exit 1); exit 1; }; }
6050    fi
6051
6052    # Check if we have automake
6053    # Extract the first word of "automake", so it can be a program name with args.
6054set dummy automake; ac_word=$2
6055echo "$as_me:$LINENO: checking for $ac_word" >&5
6056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6057if test "${ac_cv_prog_have_automake+set}" = set; then
6058  echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060  if test -n "$have_automake"; then
6061  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066  IFS=$as_save_IFS
6067  test -z "$as_dir" && as_dir=.
6068  for ac_exec_ext in '' $ac_executable_extensions; do
6069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070    ac_cv_prog_have_automake="yes"
6071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072    break 2
6073  fi
6074done
6075done
6076
6077  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6078fi
6079fi
6080have_automake=$ac_cv_prog_have_automake
6081if test -n "$have_automake"; then
6082  echo "$as_me:$LINENO: result: $have_automake" >&5
6083echo "${ECHO_T}$have_automake" >&6
6084else
6085  echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087fi
6088
6089    if test $have_automake = no; then
6090      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6091echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6092   { (exit 1); exit 1; }; }
6093    fi
6094
6095    # Check whether automake is the correct version
6096    correct_version='1.9.6'
6097    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6098    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6099echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6100    automake --version > confauto.out 2>&1
6101    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6102      echo "$as_me:$LINENO: result: yes" >&5
6103echo "${ECHO_T}yes" >&6
6104    else
6105      rm -f confauto.out
6106      echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6
6108      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6109echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6110   { (exit 1); exit 1; }; }
6111    fi
6112    rm -f confauto.out
6113
6114    # Check if the executable automake is picked up from the correct location
6115    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6116echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6117    automake_dir=`which automake | sed -e 's=/automake=='`
6118    automake_dir=`cd $automake_dir; pwd`
6119    if test x$AUTOTOOLS_DIR = x; then
6120      want_dir=$AUTOTOOLS_DFLT/bin
6121    else
6122      want_dir=$AUTOTOOLS_DIR/bin
6123    fi
6124    if test $automake_dir = `cd $want_dir; pwd`; then
6125      echo "$as_me:$LINENO: result: yes" >&5
6126echo "${ECHO_T}yes" >&6
6127    else
6128      rm -f confauto.out
6129      echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6
6131      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6132echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6133   { (exit 1); exit 1; }; }
6134    fi
6135
6136    # Check if this is the correct version of libtool (with escaped dots)
6137    if test x$AUTOTOOLS_DIR = x; then
6138      want_dir=$AUTOTOOLS_DFLT/share
6139    else
6140      want_dir=$AUTOTOOLS_DIR/share
6141    fi
6142    correct_version='1.5.22'
6143    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6144    if test -r $want_dir/libtool/ltmain.sh; then
6145  have_ltmain=yes
6146  :
6147else
6148  have_ltmain=no
6149  :
6150fi
6151
6152    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6153echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6154    if test $have_ltmain = yes; then
6155    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6156        echo "$as_me:$LINENO: result: yes" >&5
6157echo "${ECHO_T}yes" >&6
6158      else
6159        echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6
6161        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6162echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6163   { (exit 1); exit 1; }; }
6164      fi
6165    else
6166      echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6
6168      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6169echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6170   { (exit 1); exit 1; }; }
6171    fi
6172  fi
6173
6174  # Check if we can find the libtool file
6175  if test x$AUTOTOOLS_DIR = x; then
6176    want_dir=$AUTOTOOLS_DFLT/share
6177  else
6178    want_dir=$AUTOTOOLS_DIR/share
6179  fi
6180  if test -r $want_dir/aclocal/libtool.m4; then
6181  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6182  :
6183else
6184  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6185echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6186   { (exit 1); exit 1; }; }
6187  :
6188fi
6189
6190
6191  # Check if we have an Dependencies file
6192  if test -r $srcdir/Dependencies; then
6193    coin_have_externals=yes
6194  fi
6195  # Check if subversion is installed and understands https
6196  # Extract the first word of "svn", so it can be a program name with args.
6197set dummy svn; ac_word=$2
6198echo "$as_me:$LINENO: checking for $ac_word" >&5
6199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200if test "${ac_cv_prog_have_svn+set}" = set; then
6201  echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203  if test -n "$have_svn"; then
6204  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6205else
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209  IFS=$as_save_IFS
6210  test -z "$as_dir" && as_dir=.
6211  for ac_exec_ext in '' $ac_executable_extensions; do
6212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213    ac_cv_prog_have_svn="yes"
6214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215    break 2
6216  fi
6217done
6218done
6219
6220  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6221fi
6222fi
6223have_svn=$ac_cv_prog_have_svn
6224if test -n "$have_svn"; then
6225  echo "$as_me:$LINENO: result: $have_svn" >&5
6226echo "${ECHO_T}$have_svn" >&6
6227else
6228  echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
6230fi
6231
6232  if test x$have_svn = xyes; then
6233    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6234echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6235if test "${ac_cv_svn_understands_https+set}" = set; then
6236  echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238  svn --version > confauto.out 2>&1
6239                    if $EGREP https confauto.out >/dev/null 2>&1; then
6240                      ac_cv_svn_understands_https=yes
6241                    else
6242                      ac_cv_svn_understands_https=no
6243                      have_svn=no
6244                      ac_cv_prog_have_svn=no
6245                    fi
6246                    rm -f confauto.out
6247fi
6248echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6249echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6250  fi
6251
6252  # Find the location of the BuildTools directory
6253  BUILDTOOLSDIR=
6254  if test -r $srcdir/BuildTools/coin.m4; then
6255    BUILDTOOLSDIR=$srcdir/BuildTools
6256  else
6257    if test -r $srcdir/../BuildTools/coin.m4; then
6258      BUILDTOOLSDIR=$srcdir/../BuildTools
6259    else
6260      if test -r $srcdir/../../BuildTools/coin.m4; then
6261        BUILDTOOLSDIR=$srcdir/../../BuildTools
6262      else
6263        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6264echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6265   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6266      fi
6267    fi
6268  fi
6269
6270
6271  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6272  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6273    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6274  fi
6275
6276  # The following variable is set to the name of the directory where
6277  # the autotool scripts are located
6278
6279  AUX_DIR=$ac_aux_dir
6280fi
6281
6282# helpful variable for the base directory of this package
6283abs_source_dir=`cd $srcdir; pwd`
6284
6285
6286# Stuff for example Makefiles
6287if test x$prefix = xNONE; then
6288  full_prefix=$ac_default_prefix
6289else
6290  full_prefix=$prefix
6291fi
6292full_prefix=`cd $full_prefix ; pwd`
6293
6294abs_lib_dir=$full_prefix/lib
6295
6296abs_include_dir=$full_prefix/include
6297
6298abs_bin_dir=$full_prefix/bin
6299
6300
6301
6302if test $coin_have_externals = yes && test x$have_svn = xyes; then
6303  HAVE_EXTERNALS_TRUE=
6304  HAVE_EXTERNALS_FALSE='#'
6305else
6306  HAVE_EXTERNALS_TRUE='#'
6307  HAVE_EXTERNALS_FALSE=
6308fi
6309
6310
6311# AC_MSG_NOTICE([End automake initialisation.])
6312
6313
6314
6315LIBTOOL=
6316if test -r ../libtool; then
6317  coin_config_dir=..
6318  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6319fi
6320if test "x$LIBTOOL" = x; then
6321  if test -r ../../libtool; then
6322    coin_config_dir=../..
6323    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6324  fi
6325fi
6326
6327if test "x$LIBTOOL" = x; then
6328# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6329  # Stuff for libtool
6330  # Check whether --enable-shared or --disable-shared was given.
6331if test "${enable_shared+set}" = set; then
6332  enableval="$enable_shared"
6333  p=${PACKAGE-default}
6334    case $enableval in
6335    yes) enable_shared=yes ;;
6336    no) enable_shared=no ;;
6337    *)
6338      enable_shared=no
6339      # Look at the argument we got.  We use all the common list separators.
6340      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6341      for pkg in $enableval; do
6342        IFS="$lt_save_ifs"
6343        if test "X$pkg" = "X$p"; then
6344          enable_shared=yes
6345        fi
6346      done
6347      IFS="$lt_save_ifs"
6348      ;;
6349    esac
6350else
6351  enable_shared=yes
6352fi;
6353
6354# Check whether --enable-fast-install or --disable-fast-install was given.
6355if test "${enable_fast_install+set}" = set; then
6356  enableval="$enable_fast_install"
6357  p=${PACKAGE-default}
6358    case $enableval in
6359    yes) enable_fast_install=yes ;;
6360    no) enable_fast_install=no ;;
6361    *)
6362      enable_fast_install=no
6363      # Look at the argument we got.  We use all the common list separators.
6364      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6365      for pkg in $enableval; do
6366        IFS="$lt_save_ifs"
6367        if test "X$pkg" = "X$p"; then
6368          enable_fast_install=yes
6369        fi
6370      done
6371      IFS="$lt_save_ifs"
6372      ;;
6373    esac
6374else
6375  enable_fast_install=yes
6376fi;
6377
6378echo "$as_me:$LINENO: checking host system type" >&5
6379echo $ECHO_N "checking host system type... $ECHO_C" >&6
6380if test "${ac_cv_host+set}" = set; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383  ac_cv_host_alias=$host_alias
6384test -z "$ac_cv_host_alias" &&
6385  ac_cv_host_alias=$ac_cv_build_alias
6386ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6387  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6388echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6389   { (exit 1); exit 1; }; }
6390
6391fi
6392echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6393echo "${ECHO_T}$ac_cv_host" >&6
6394host=$ac_cv_host
6395host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6396host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6397host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6398
6399
6400echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6401echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6402if test "${lt_cv_path_SED+set}" = set; then
6403  echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405  # Loop through the user's path and test for sed and gsed.
6406# Then use that list of sed's as ones to test for truncation.
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410  IFS=$as_save_IFS
6411  test -z "$as_dir" && as_dir=.
6412  for lt_ac_prog in sed gsed; do
6413    for ac_exec_ext in '' $ac_executable_extensions; do
6414      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6415        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6416      fi
6417    done
6418  done
6419done
6420lt_ac_max=0
6421lt_ac_count=0
6422# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6423# along with /bin/sed that truncates output.
6424for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6425  test ! -f $lt_ac_sed && continue
6426  cat /dev/null > conftest.in
6427  lt_ac_count=0
6428  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6429  # Check for GNU sed and select it if it is found.
6430  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6431    lt_cv_path_SED=$lt_ac_sed
6432    break
6433  fi
6434  while true; do
6435    cat conftest.in conftest.in >conftest.tmp
6436    mv conftest.tmp conftest.in
6437    cp conftest.in conftest.nl
6438    echo >>conftest.nl
6439    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6440    cmp -s conftest.out conftest.nl || break
6441    # 10000 chars as input seems more than enough
6442    test $lt_ac_count -gt 10 && break
6443    lt_ac_count=`expr $lt_ac_count + 1`
6444    if test $lt_ac_count -gt $lt_ac_max; then
6445      lt_ac_max=$lt_ac_count
6446      lt_cv_path_SED=$lt_ac_sed
6447    fi
6448  done
6449done
6450
6451fi
6452
6453SED=$lt_cv_path_SED
6454echo "$as_me:$LINENO: result: $SED" >&5
6455echo "${ECHO_T}$SED" >&6
6456
6457
6458# Check whether --with-gnu-ld or --without-gnu-ld was given.
6459if test "${with_gnu_ld+set}" = set; then
6460  withval="$with_gnu_ld"
6461  test "$withval" = no || with_gnu_ld=yes
6462else
6463  with_gnu_ld=no
6464fi;
6465ac_prog=ld
6466if test "$GCC" = yes; then
6467  # Check if gcc -print-prog-name=ld gives a path.
6468  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6469echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6470  case $host in
6471  *-*-mingw*)
6472    # gcc leaves a trailing carriage return which upsets mingw
6473    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6474  *)
6475    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6476  esac
6477  case $ac_prog in
6478    # Accept absolute paths.
6479    [\\/]* | ?:[\\/]*)
6480      re_direlt='/[^/][^/]*/\.\./'
6481      # Canonicalize the pathname of ld
6482      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6483      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6484        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6485      done
6486      test -z "$LD" && LD="$ac_prog"
6487      ;;
6488  "")
6489    # If it fails, then pretend we aren't using GCC.
6490    ac_prog=ld
6491    ;;
6492  *)
6493    # If it is relative, then search for the first ld in PATH.
6494    with_gnu_ld=unknown
6495    ;;
6496  esac
6497elif test "$with_gnu_ld" = yes; then
6498  echo "$as_me:$LINENO: checking for GNU ld" >&5
6499echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6500else
6501  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6502echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6503fi
6504if test "${lt_cv_path_LD+set}" = set; then
6505  echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507  if test -z "$LD"; then
6508  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6509  for ac_dir in $PATH; do
6510    IFS="$lt_save_ifs"
6511    test -z "$ac_dir" && ac_dir=.
6512    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6513      lt_cv_path_LD="$ac_dir/$ac_prog"
6514      # Check to see if the program is GNU ld.  I'd rather use --version,
6515      # but apparently some variants of GNU ld only accept -v.
6516      # Break only if it was the GNU/non-GNU ld that we prefer.
6517      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6518      *GNU* | *'with BFD'*)
6519        test "$with_gnu_ld" != no && break
6520        ;;
6521      *)
6522        test "$with_gnu_ld" != yes && break
6523        ;;
6524      esac
6525    fi
6526  done
6527  IFS="$lt_save_ifs"
6528else
6529  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6530fi
6531fi
6532
6533LD="$lt_cv_path_LD"
6534if test -n "$LD"; then
6535  echo "$as_me:$LINENO: result: $LD" >&5
6536echo "${ECHO_T}$LD" >&6
6537else
6538  echo "$as_me:$LINENO: result: no" >&5
6539echo "${ECHO_T}no" >&6
6540fi
6541test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6542echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6543   { (exit 1); exit 1; }; }
6544echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6545echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6546if test "${lt_cv_prog_gnu_ld+set}" = set; then
6547  echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6550case `$LD -v 2>&1 </dev/null` in
6551*GNU* | *'with BFD'*)
6552  lt_cv_prog_gnu_ld=yes
6553  ;;
6554*)
6555  lt_cv_prog_gnu_ld=no
6556  ;;
6557esac
6558fi
6559echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6560echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6561with_gnu_ld=$lt_cv_prog_gnu_ld
6562
6563
6564echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6565echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6566if test "${lt_cv_ld_reload_flag+set}" = set; then
6567  echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569  lt_cv_ld_reload_flag='-r'
6570fi
6571echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6572echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6573reload_flag=$lt_cv_ld_reload_flag
6574case $reload_flag in
6575"" | " "*) ;;
6576*) reload_flag=" $reload_flag" ;;
6577esac
6578reload_cmds='$LD$reload_flag -o $output$reload_objs'
6579case $host_os in
6580  darwin*)
6581    if test "$GCC" = yes; then
6582      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6583    else
6584      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6585    fi
6586    ;;
6587esac
6588
6589echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6590echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6591if test "${lt_cv_path_NM+set}" = set; then
6592  echo $ECHO_N "(cached) $ECHO_C" >&6
6593else
6594  if test -n "$NM"; then
6595  # Let the user override the test.
6596  lt_cv_path_NM="$NM"
6597else
6598  lt_nm_to_check="${ac_tool_prefix}nm"
6599  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6600    lt_nm_to_check="$lt_nm_to_check nm"
6601  fi
6602  for lt_tmp_nm in $lt_nm_to_check; do
6603    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6604    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6605      IFS="$lt_save_ifs"
6606      test -z "$ac_dir" && ac_dir=.
6607      tmp_nm="$ac_dir/$lt_tmp_nm"
6608      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6609        # Check to see if the nm accepts a BSD-compat flag.
6610        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6611        #   nm: unknown option "B" ignored
6612        # Tru64's nm complains that /dev/null is an invalid object file
6613        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6614        */dev/null* | *'Invalid file or object type'*)
6615          lt_cv_path_NM="$tmp_nm -B"
6616          break
6617          ;;
6618        *)
6619          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6620          */dev/null*)
6621            lt_cv_path_NM="$tmp_nm -p"
6622            break
6623            ;;
6624          *)
6625            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6626            continue # so that we can try to find one that supports BSD flags
6627            ;;
6628          esac
6629          ;;
6630        esac
6631      fi
6632    done
6633    IFS="$lt_save_ifs"
6634  done
6635  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6636fi
6637fi
6638echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6639echo "${ECHO_T}$lt_cv_path_NM" >&6
6640NM="$lt_cv_path_NM"
6641
6642echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6643echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6644if test "${lt_cv_deplibs_check_method+set}" = set; then
6645  echo $ECHO_N "(cached) $ECHO_C" >&6
6646else
6647  lt_cv_file_magic_cmd='$MAGIC_CMD'
6648lt_cv_file_magic_test_file=
6649lt_cv_deplibs_check_method='unknown'
6650# Need to set the preceding variable on all platforms that support
6651# interlibrary dependencies.
6652# 'none' -- dependencies not supported.
6653# `unknown' -- same as none, but documents that we really don't know.
6654# 'pass_all' -- all dependencies passed with no checks.
6655# 'test_compile' -- check by making test program.
6656# 'file_magic [[regex]]' -- check by looking for files in library path
6657# which responds to the $file_magic_cmd with a given extended regex.
6658# If you have `file' or equivalent on your system and you're not sure
6659# whether `pass_all' will *always* work, you probably want this one.
6660
6661case $host_os in
6662aix4* | aix5*)
6663  lt_cv_deplibs_check_method=pass_all
6664  ;;
6665
6666beos*)
6667  lt_cv_deplibs_check_method=pass_all
6668  ;;
6669
6670bsdi[45]*)
6671  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6672  lt_cv_file_magic_cmd='/usr/bin/file -L'
6673  lt_cv_file_magic_test_file=/shlib/libc.so
6674  ;;
6675
6676cygwin*)
6677  # func_win32_libid is a shell function defined in ltmain.sh
6678  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6679  lt_cv_file_magic_cmd='func_win32_libid'
6680  ;;
6681
6682mingw* | pw32*)
6683  # Base MSYS/MinGW do not provide the 'file' command needed by
6684  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6685  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6686  lt_cv_file_magic_cmd='$OBJDUMP -f'
6687  ;;
6688
6689darwin* | rhapsody*)
6690  lt_cv_deplibs_check_method=pass_all
6691  ;;
6692
6693freebsd* | kfreebsd*-gnu | dragonfly*)
6694  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6695    case $host_cpu in
6696    i*86 )
6697      # Not sure whether the presence of OpenBSD here was a mistake.
6698      # Let's accept both of them until this is cleared up.
6699      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6700      lt_cv_file_magic_cmd=/usr/bin/file
6701      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6702      ;;
6703    esac
6704  else
6705    lt_cv_deplibs_check_method=pass_all
6706  fi
6707  ;;
6708
6709gnu*)
6710  lt_cv_deplibs_check_method=pass_all
6711  ;;
6712
6713hpux10.20* | hpux11*)
6714  lt_cv_file_magic_cmd=/usr/bin/file
6715  case $host_cpu in
6716  ia64*)
6717    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6718    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6719    ;;
6720  hppa*64*)
6721    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]'
6722    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6723    ;;
6724  *)
6725    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6726    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6727    ;;
6728  esac
6729  ;;
6730
6731interix3*)
6732  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6733  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6734  ;;
6735
6736irix5* | irix6* | nonstopux*)
6737  case $LD in
6738  *-32|*"-32 ") libmagic=32-bit;;
6739  *-n32|*"-n32 ") libmagic=N32;;
6740  *-64|*"-64 ") libmagic=64-bit;;
6741  *) libmagic=never-match;;
6742  esac
6743  lt_cv_deplibs_check_method=pass_all
6744  ;;
6745
6746# This must be Linux ELF.
6747linux*)
6748  lt_cv_deplibs_check_method=pass_all
6749  ;;
6750
6751netbsd*)
6752  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6753    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6754  else
6755    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6756  fi
6757  ;;
6758
6759newos6*)
6760  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6761  lt_cv_file_magic_cmd=/usr/bin/file
6762  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6763  ;;
6764
6765nto-qnx*)
6766  lt_cv_deplibs_check_method=unknown
6767  ;;
6768
6769openbsd*)
6770  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6771    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6772  else
6773    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6774  fi
6775  ;;
6776
6777osf3* | osf4* | osf5*)
6778  lt_cv_deplibs_check_method=pass_all
6779  ;;
6780
6781solaris*)
6782  lt_cv_deplibs_check_method=pass_all
6783  ;;
6784
6785sysv4 | sysv4.3*)
6786  case $host_vendor in
6787  motorola)
6788    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]'
6789    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6790    ;;
6791  ncr)
6792    lt_cv_deplibs_check_method=pass_all
6793    ;;
6794  sequent)
6795    lt_cv_file_magic_cmd='/bin/file'
6796    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6797    ;;
6798  sni)
6799    lt_cv_file_magic_cmd='/bin/file'
6800    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6801    lt_cv_file_magic_test_file=/lib/libc.so
6802    ;;
6803  siemens)
6804    lt_cv_deplibs_check_method=pass_all
6805    ;;
6806  pc)
6807    lt_cv_deplibs_check_method=pass_all
6808    ;;
6809  esac
6810  ;;
6811
6812sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6813  lt_cv_deplibs_check_method=pass_all
6814  ;;
6815esac
6816
6817fi
6818echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6819echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6820file_magic_cmd=$lt_cv_file_magic_cmd
6821deplibs_check_method=$lt_cv_deplibs_check_method
6822test -z "$deplibs_check_method" && deplibs_check_method=unknown
6823
6824
6825
6826
6827# If no C compiler was specified, use CC.
6828LTCC=${LTCC-"$CC"}
6829
6830# If no C compiler flags were specified, use CFLAGS.
6831LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6832
6833# Allow CC to be a program name with arguments.
6834compiler=$CC
6835
6836# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6837if test "${enable_libtool_lock+set}" = set; then
6838  enableval="$enable_libtool_lock"
6839
6840fi;
6841test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6842
6843# Some flags need to be propagated to the compiler or linker for good
6844# libtool support.
6845case $host in
6846ia64-*-hpux*)
6847  # Find out which ABI we are using.
6848  echo 'int i;' > conftest.$ac_ext
6849  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850  (eval $ac_compile) 2>&5
6851  ac_status=$?
6852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853  (exit $ac_status); }; then
6854    case `/usr/bin/file conftest.$ac_objext` in
6855    *ELF-32*)
6856      HPUX_IA64_MODE="32"
6857      ;;
6858    *ELF-64*)
6859      HPUX_IA64_MODE="64"
6860      ;;
6861    esac
6862  fi
6863  rm -rf conftest*
6864  ;;
6865*-*-irix6*)
6866  # Find out which ABI we are using.
6867  echo '#line 6867 "configure"' > conftest.$ac_ext
6868  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869  (eval $ac_compile) 2>&5
6870  ac_status=$?
6871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872  (exit $ac_status); }; then
6873   if test "$lt_cv_prog_gnu_ld" = yes; then
6874    case `/usr/bin/file conftest.$ac_objext` in
6875    *32-bit*)
6876      LD="${LD-ld} -melf32bsmip"
6877      ;;
6878    *N32*)
6879      LD="${LD-ld} -melf32bmipn32"
6880      ;;
6881    *64-bit*)
6882      LD="${LD-ld} -melf64bmip"
6883      ;;
6884    esac
6885   else
6886    case `/usr/bin/file conftest.$ac_objext` in
6887    *32-bit*)
6888      LD="${LD-ld} -32"
6889      ;;
6890    *N32*)
6891      LD="${LD-ld} -n32"
6892      ;;
6893    *64-bit*)
6894      LD="${LD-ld} -64"
6895      ;;
6896    esac
6897   fi
6898  fi
6899  rm -rf conftest*
6900  ;;
6901
6902x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6903  # Find out which ABI we are using.
6904  echo 'int i;' > conftest.$ac_ext
6905  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906  (eval $ac_compile) 2>&5
6907  ac_status=$?
6908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909  (exit $ac_status); }; then
6910    case `/usr/bin/file conftest.o` in
6911    *32-bit*)
6912      case $host in
6913        x86_64-*linux*)
6914          LD="${LD-ld} -m elf_i386"
6915          ;;
6916        ppc64-*linux*|powerpc64-*linux*)
6917          LD="${LD-ld} -m elf32ppclinux"
6918          ;;
6919        s390x-*linux*)
6920          LD="${LD-ld} -m elf_s390"
6921          ;;
6922        sparc64-*linux*)
6923          LD="${LD-ld} -m elf32_sparc"
6924          ;;
6925      esac
6926      ;;
6927    *64-bit*)
6928      case $host in
6929        x86_64-*linux*)
6930          LD="${LD-ld} -m elf_x86_64"
6931          ;;
6932        ppc*-*linux*|powerpc*-*linux*)
6933          LD="${LD-ld} -m elf64ppc"
6934          ;;
6935        s390*-*linux*)
6936          LD="${LD-ld} -m elf64_s390"
6937          ;;
6938        sparc*-*linux*)
6939          LD="${LD-ld} -m elf64_sparc"
6940          ;;
6941      esac
6942      ;;
6943    esac
6944  fi
6945  rm -rf conftest*
6946  ;;
6947
6948*-*-sco3.2v5*)
6949  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6950  SAVE_CFLAGS="$CFLAGS"
6951  CFLAGS="$CFLAGS -belf"
6952  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6953echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6954if test "${lt_cv_cc_needs_belf+set}" = set; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  ac_ext=c
6958ac_cpp='$CPP $CPPFLAGS'
6959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
6963     cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h.  */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h.  */
6969
6970#ifdef F77_DUMMY_MAIN
6971
6972#  ifdef __cplusplus
6973     extern "C"
6974#  endif
6975   int F77_DUMMY_MAIN() { return 1; }
6976
6977#endif
6978int
6979main ()
6980{
6981
6982  ;
6983  return 0;
6984}
6985_ACEOF
6986rm -f conftest.$ac_objext conftest$ac_exeext
6987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6988  (eval $ac_link) 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); } &&
6995         { ac_try='test -z "$ac_c_werror_flag"
6996                         || test ! -s conftest.err'
6997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998  (eval $ac_try) 2>&5
6999  ac_status=$?
7000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001  (exit $ac_status); }; } &&
7002         { ac_try='test -s conftest$ac_exeext'
7003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004  (eval $ac_try) 2>&5
7005  ac_status=$?
7006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007  (exit $ac_status); }; }; then
7008  lt_cv_cc_needs_belf=yes
7009else
7010  echo "$as_me: failed program was:" >&5
7011sed 's/^/| /' conftest.$ac_ext >&5
7012
7013lt_cv_cc_needs_belf=no
7014fi
7015rm -f conftest.err conftest.$ac_objext \
7016      conftest$ac_exeext conftest.$ac_ext
7017     ac_ext=c
7018ac_cpp='$CPP $CPPFLAGS'
7019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7021ac_compiler_gnu=$ac_cv_c_compiler_gnu
7022
7023fi
7024echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7025echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7026  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7027    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7028    CFLAGS="$SAVE_CFLAGS"
7029  fi
7030  ;;
7031sparc*-*solaris*)
7032  # Find out which ABI we are using.
7033  echo 'int i;' > conftest.$ac_ext
7034  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7035  (eval $ac_compile) 2>&5
7036  ac_status=$?
7037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038  (exit $ac_status); }; then
7039    case `/usr/bin/file conftest.o` in
7040    *64-bit*)
7041      case $lt_cv_prog_gnu_ld in
7042      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7043      *)    LD="${LD-ld} -64" ;;
7044      esac
7045      ;;
7046    esac
7047  fi
7048  rm -rf conftest*
7049  ;;
7050
7051
7052esac
7053
7054need_locks="$enable_libtool_lock"
7055
7056
7057ac_ext=c
7058ac_cpp='$CPP $CPPFLAGS'
7059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7063echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7064# On Suns, sometimes $CPP names a directory.
7065if test -n "$CPP" && test -d "$CPP"; then
7066  CPP=
7067fi
7068if test -z "$CPP"; then
7069  if test "${ac_cv_prog_CPP+set}" = set; then
7070  echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072      # Double quotes because CPP needs to be expanded
7073    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7074    do
7075      ac_preproc_ok=false
7076for ac_c_preproc_warn_flag in '' yes
7077do
7078  # Use a header file that comes with gcc, so configuring glibc
7079  # with a fresh cross-compiler works.
7080  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081  # <limits.h> exists even on freestanding compilers.
7082  # On the NeXT, cc -E runs the code through the compiler's parser,
7083  # not just through cpp. "Syntax error" is here to catch this case.
7084  cat >conftest.$ac_ext <<_ACEOF
7085/* confdefs.h.  */
7086_ACEOF
7087cat confdefs.h >>conftest.$ac_ext
7088cat >>conftest.$ac_ext <<_ACEOF
7089/* end confdefs.h.  */
7090#ifdef __STDC__
7091# include <limits.h>
7092#else
7093# include <assert.h>
7094#endif
7095                     Syntax error
7096_ACEOF
7097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7098  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7099  ac_status=$?
7100  grep -v '^ *+' conftest.er1 >conftest.err
7101  rm -f conftest.er1
7102  cat conftest.err >&5
7103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104  (exit $ac_status); } >/dev/null; then
7105  if test -s conftest.err; then
7106    ac_cpp_err=$ac_c_preproc_warn_flag
7107    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7108  else
7109    ac_cpp_err=
7110  fi
7111else
7112  ac_cpp_err=yes
7113fi
7114if test -z "$ac_cpp_err"; then
7115  :
7116else
7117  echo "$as_me: failed program was:" >&5
7118sed 's/^/| /' conftest.$ac_ext >&5
7119
7120  # Broken: fails on valid input.
7121continue
7122fi
7123rm -f conftest.err conftest.$ac_ext
7124
7125  # OK, works on sane cases.  Now check whether non-existent headers
7126  # can be detected and how.
7127  cat >conftest.$ac_ext <<_ACEOF
7128/* confdefs.h.  */
7129_ACEOF
7130cat confdefs.h >>conftest.$ac_ext
7131cat >>conftest.$ac_ext <<_ACEOF
7132/* end confdefs.h.  */
7133#include <ac_nonexistent.h>
7134_ACEOF
7135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7136  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7137  ac_status=$?
7138  grep -v '^ *+' conftest.er1 >conftest.err
7139  rm -f conftest.er1
7140  cat conftest.err >&5
7141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142  (exit $ac_status); } >/dev/null; then
7143  if test -s conftest.err; then
7144    ac_cpp_err=$ac_c_preproc_warn_flag
7145    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7146  else
7147    ac_cpp_err=
7148  fi
7149else
7150  ac_cpp_err=yes
7151fi
7152if test -z "$ac_cpp_err"; then
7153  # Broken: success on invalid input.
7154continue
7155else
7156  echo "$as_me: failed program was:" >&5
7157sed 's/^/| /' conftest.$ac_ext >&5
7158
7159  # Passes both tests.
7160ac_preproc_ok=:
7161break
7162fi
7163rm -f conftest.err conftest.$ac_ext
7164
7165done
7166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7167rm -f conftest.err conftest.$ac_ext
7168if $ac_preproc_ok; then
7169  break
7170fi
7171
7172    done
7173    ac_cv_prog_CPP=$CPP
7174
7175fi
7176  CPP=$ac_cv_prog_CPP
7177else
7178  ac_cv_prog_CPP=$CPP
7179fi
7180echo "$as_me:$LINENO: result: $CPP" >&5
7181echo "${ECHO_T}$CPP" >&6
7182ac_preproc_ok=false
7183for ac_c_preproc_warn_flag in '' yes
7184do
7185  # Use a header file that comes with gcc, so configuring glibc
7186  # with a fresh cross-compiler works.
7187  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188  # <limits.h> exists even on freestanding compilers.
7189  # On the NeXT, cc -E runs the code through the compiler's parser,
7190  # not just through cpp. "Syntax error" is here to catch this case.
7191  cat >conftest.$ac_ext <<_ACEOF
7192/* confdefs.h.  */
7193_ACEOF
7194cat confdefs.h >>conftest.$ac_ext
7195cat >>conftest.$ac_ext <<_ACEOF
7196/* end confdefs.h.  */
7197#ifdef __STDC__
7198# include <limits.h>
7199#else
7200# include <assert.h>
7201#endif
7202                     Syntax error
7203_ACEOF
7204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7205  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7206  ac_status=$?
7207  grep -v '^ *+' conftest.er1 >conftest.err
7208  rm -f conftest.er1
7209  cat conftest.err >&5
7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211  (exit $ac_status); } >/dev/null; then
7212  if test -s conftest.err; then
7213    ac_cpp_err=$ac_c_preproc_warn_flag
7214    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7215  else
7216    ac_cpp_err=
7217  fi
7218else
7219  ac_cpp_err=yes
7220fi
7221if test -z "$ac_cpp_err"; then
7222  :
7223else
7224  echo "$as_me: failed program was:" >&5
7225sed 's/^/| /' conftest.$ac_ext >&5
7226
7227  # Broken: fails on valid input.
7228continue
7229fi
7230rm -f conftest.err conftest.$ac_ext
7231
7232  # OK, works on sane cases.  Now check whether non-existent headers
7233  # can be detected and how.
7234  cat >conftest.$ac_ext <<_ACEOF
7235/* confdefs.h.  */
7236_ACEOF
7237cat confdefs.h >>conftest.$ac_ext
7238cat >>conftest.$ac_ext <<_ACEOF
7239/* end confdefs.h.  */
7240#include <ac_nonexistent.h>
7241_ACEOF
7242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7243  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7244  ac_status=$?
7245  grep -v '^ *+' conftest.er1 >conftest.err
7246  rm -f conftest.er1
7247  cat conftest.err >&5
7248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249  (exit $ac_status); } >/dev/null; then
7250  if test -s conftest.err; then
7251    ac_cpp_err=$ac_c_preproc_warn_flag
7252    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7253  else
7254    ac_cpp_err=
7255  fi
7256else
7257  ac_cpp_err=yes
7258fi
7259if test -z "$ac_cpp_err"; then
7260  # Broken: success on invalid input.
7261continue
7262else
7263  echo "$as_me: failed program was:" >&5
7264sed 's/^/| /' conftest.$ac_ext >&5
7265
7266  # Passes both tests.
7267ac_preproc_ok=:
7268break
7269fi
7270rm -f conftest.err conftest.$ac_ext
7271
7272done
7273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7274rm -f conftest.err conftest.$ac_ext
7275if $ac_preproc_ok; then
7276  :
7277else
7278  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7279See \`config.log' for more details." >&5
7280echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7281See \`config.log' for more details." >&2;}
7282   { (exit 1); exit 1; }; }
7283fi
7284
7285ac_ext=c
7286ac_cpp='$CPP $CPPFLAGS'
7287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290
7291
7292echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7293echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7294if test "${ac_cv_header_stdc+set}" = set; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297  cat >conftest.$ac_ext <<_ACEOF
7298/* confdefs.h.  */
7299_ACEOF
7300cat confdefs.h >>conftest.$ac_ext
7301cat >>conftest.$ac_ext <<_ACEOF
7302/* end confdefs.h.  */
7303#include <stdlib.h>
7304#include <stdarg.h>
7305#include <string.h>
7306#include <float.h>
7307
7308#ifdef F77_DUMMY_MAIN
7309
7310#  ifdef __cplusplus
7311     extern "C"
7312#  endif
7313   int F77_DUMMY_MAIN() { return 1; }
7314
7315#endif
7316int
7317main ()
7318{
7319
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324rm -f conftest.$ac_objext
7325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326  (eval $ac_compile) 2>conftest.er1
7327  ac_status=$?
7328  grep -v '^ *+' conftest.er1 >conftest.err
7329  rm -f conftest.er1
7330  cat conftest.err >&5
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); } &&
7333         { ac_try='test -z "$ac_c_werror_flag"
7334                         || test ! -s conftest.err'
7335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336  (eval $ac_try) 2>&5
7337  ac_status=$?
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); }; } &&
7340         { ac_try='test -s conftest.$ac_objext'
7341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342  (eval $ac_try) 2>&5
7343  ac_status=$?
7344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345  (exit $ac_status); }; }; then
7346  ac_cv_header_stdc=yes
7347else
7348  echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351ac_cv_header_stdc=no
7352fi
7353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7354
7355if test $ac_cv_header_stdc = yes; then
7356  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7357  cat >conftest.$ac_ext <<_ACEOF
7358/* confdefs.h.  */
7359_ACEOF
7360cat confdefs.h >>conftest.$ac_ext
7361cat >>conftest.$ac_ext <<_ACEOF
7362/* end confdefs.h.  */
7363#include <string.h>
7364
7365_ACEOF
7366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7367  $EGREP "memchr" >/dev/null 2>&1; then
7368  :
7369else
7370  ac_cv_header_stdc=no
7371fi
7372rm -f conftest*
7373
7374fi
7375
7376if test $ac_cv_header_stdc = yes; then
7377  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7378  cat >conftest.$ac_ext <<_ACEOF
7379/* confdefs.h.  */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h.  */
7384#include <stdlib.h>
7385
7386_ACEOF
7387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7388  $EGREP "free" >/dev/null 2>&1; then
7389  :
7390else
7391  ac_cv_header_stdc=no
7392fi
7393rm -f conftest*
7394
7395fi
7396
7397if test $ac_cv_header_stdc = yes; then
7398  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7399  if test "$cross_compiling" = yes; then
7400  :
7401else
7402  cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h.  */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h.  */
7408#include <ctype.h>
7409#if ((' ' & 0x0FF) == 0x020)
7410# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7411# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7412#else
7413# define ISLOWER(c) \
7414                   (('a' <= (c) && (c) <= 'i') \
7415                     || ('j' <= (c) && (c) <= 'r') \
7416                     || ('s' <= (c) && (c) <= 'z'))
7417# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7418#endif
7419
7420#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7421int
7422main ()
7423{
7424  int i;
7425  for (i = 0; i < 256; i++)
7426    if (XOR (islower (i), ISLOWER (i))
7427        || toupper (i) != TOUPPER (i))
7428      exit(2);
7429  exit (0);
7430}
7431_ACEOF
7432rm -f conftest$ac_exeext
7433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7434  (eval $ac_link) 2>&5
7435  ac_status=$?
7436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439  (eval $ac_try) 2>&5
7440  ac_status=$?
7441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442  (exit $ac_status); }; }; then
7443  :
7444else
7445  echo "$as_me: program exited with status $ac_status" >&5
7446echo "$as_me: failed program was:" >&5
7447sed 's/^/| /' conftest.$ac_ext >&5
7448
7449( exit $ac_status )
7450ac_cv_header_stdc=no
7451fi
7452rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7453fi
7454fi
7455fi
7456echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7457echo "${ECHO_T}$ac_cv_header_stdc" >&6
7458if test $ac_cv_header_stdc = yes; then
7459
7460cat >>confdefs.h <<\_ACEOF
7461#define STDC_HEADERS 1
7462_ACEOF
7463
7464fi
7465
7466# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7477                  inttypes.h stdint.h unistd.h
7478do
7479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7480echo "$as_me:$LINENO: checking for $ac_header" >&5
7481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7482if eval "test \"\${$as_ac_Header+set}\" = set"; then
7483  echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485  cat >conftest.$ac_ext <<_ACEOF
7486/* confdefs.h.  */
7487_ACEOF
7488cat confdefs.h >>conftest.$ac_ext
7489cat >>conftest.$ac_ext <<_ACEOF
7490/* end confdefs.h.  */
7491$ac_includes_default
7492
7493#include <$ac_header>
7494_ACEOF
7495rm -f conftest.$ac_objext
7496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497  (eval $ac_compile) 2>conftest.er1
7498  ac_status=$?
7499  grep -v '^ *+' conftest.er1 >conftest.err
7500  rm -f conftest.er1
7501  cat conftest.err >&5
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); } &&
7504         { ac_try='test -z "$ac_c_werror_flag"
7505                         || test ! -s conftest.err'
7506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507  (eval $ac_try) 2>&5
7508  ac_status=$?
7509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510  (exit $ac_status); }; } &&
7511         { ac_try='test -s conftest.$ac_objext'
7512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513  (eval $ac_try) 2>&5
7514  ac_status=$?
7515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516  (exit $ac_status); }; }; then
7517  eval "$as_ac_Header=yes"
7518else
7519  echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522eval "$as_ac_Header=no"
7523fi
7524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7525fi
7526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7528if test `eval echo '${'$as_ac_Header'}'` = yes; then
7529  cat >>confdefs.h <<_ACEOF
7530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7531_ACEOF
7532
7533fi
7534
7535done
7536
7537
7538
7539for ac_header in dlfcn.h
7540do
7541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7542if eval "test \"\${$as_ac_Header+set}\" = set"; then
7543  echo "$as_me:$LINENO: checking for $ac_header" >&5
7544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7545if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546  echo $ECHO_N "(cached) $ECHO_C" >&6
7547fi
7548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7550else
7551  # Is the header compilable?
7552echo "$as_me:$LINENO: checking $ac_header usability" >&5
7553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7554cat >conftest.$ac_ext <<_ACEOF
7555/* confdefs.h.  */
7556_ACEOF
7557cat confdefs.h >>conftest.$ac_ext
7558cat >>conftest.$ac_ext <<_ACEOF
7559/* end confdefs.h.  */
7560$ac_includes_default
7561#include <$ac_header>
7562_ACEOF
7563rm -f conftest.$ac_objext
7564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7565  (eval $ac_compile) 2>conftest.er1
7566  ac_status=$?
7567  grep -v '^ *+' conftest.er1 >conftest.err
7568  rm -f conftest.er1
7569  cat conftest.err >&5
7570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571  (exit $ac_status); } &&
7572         { ac_try='test -z "$ac_c_werror_flag"
7573                         || test ! -s conftest.err'
7574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575  (eval $ac_try) 2>&5
7576  ac_status=$?
7577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578  (exit $ac_status); }; } &&
7579         { ac_try='test -s conftest.$ac_objext'
7580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581  (eval $ac_try) 2>&5
7582  ac_status=$?
7583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584  (exit $ac_status); }; }; then
7585  ac_header_compiler=yes
7586else
7587  echo "$as_me: failed program was:" >&5
7588sed 's/^/| /' conftest.$ac_ext >&5
7589
7590ac_header_compiler=no
7591fi
7592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7594echo "${ECHO_T}$ac_header_compiler" >&6
7595
7596# Is the header present?
7597echo "$as_me:$LINENO: checking $ac_header presence" >&5
7598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7599cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h.  */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h.  */
7605#include <$ac_header>
7606_ACEOF
7607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7608  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7609  ac_status=$?
7610  grep -v '^ *+' conftest.er1 >conftest.err
7611  rm -f conftest.er1
7612  cat conftest.err >&5
7613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614  (exit $ac_status); } >/dev/null; then
7615  if test -s conftest.err; then
7616    ac_cpp_err=$ac_c_preproc_warn_flag
7617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7618  else
7619    ac_cpp_err=
7620  fi
7621else
7622  ac_cpp_err=yes
7623fi
7624if test -z "$ac_cpp_err"; then
7625  ac_header_preproc=yes
7626else
7627  echo "$as_me: failed program was:" >&5
7628sed 's/^/| /' conftest.$ac_ext >&5
7629
7630  ac_header_preproc=no
7631fi
7632rm -f conftest.err conftest.$ac_ext
7633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7634echo "${ECHO_T}$ac_header_preproc" >&6
7635
7636# So?  What about this header?
7637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7638  yes:no: )
7639    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7640echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7641    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7642echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7643    ac_header_preproc=yes
7644    ;;
7645  no:yes:* )
7646    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7648    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7649echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7650    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7651echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7652    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7653echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7654    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7655echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7656    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7657echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7658    (
7659      cat <<\_ASBOX
7660## --------------------------------------------------------------- ##
7661## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7662## --------------------------------------------------------------- ##
7663_ASBOX
7664    ) |
7665      sed "s/^/$as_me: WARNING:     /" >&2
7666    ;;
7667esac
7668echo "$as_me:$LINENO: checking for $ac_header" >&5
7669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7670if eval "test \"\${$as_ac_Header+set}\" = set"; then
7671  echo $ECHO_N "(cached) $ECHO_C" >&6
7672else
7673  eval "$as_ac_Header=\$ac_header_preproc"
7674fi
7675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7677
7678fi
7679if test `eval echo '${'$as_ac_Header'}'` = yes; then
7680  cat >>confdefs.h <<_ACEOF
7681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7682_ACEOF
7683
7684fi
7685
7686done
7687
7688ac_ext=cc
7689ac_cpp='$CXXCPP $CPPFLAGS'
7690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7693if test -n "$ac_tool_prefix"; then
7694  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7695  do
7696    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7698echo "$as_me:$LINENO: checking for $ac_word" >&5
7699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7700if test "${ac_cv_prog_CXX+set}" = set; then
7701  echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703  if test -n "$CXX"; then
7704  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7705else
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709  IFS=$as_save_IFS
7710  test -z "$as_dir" && as_dir=.
7711  for ac_exec_ext in '' $ac_executable_extensions; do
7712  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715    break 2
7716  fi
7717done
7718done
7719
7720fi
7721fi
7722CXX=$ac_cv_prog_CXX
7723if test -n "$CXX"; then
7724  echo "$as_me:$LINENO: result: $CXX" >&5
7725echo "${ECHO_T}$CXX" >&6
7726else
7727  echo "$as_me:$LINENO: result: no" >&5
7728echo "${ECHO_T}no" >&6
7729fi
7730
7731    test -n "$CXX" && break
7732  done
7733fi
7734if test -z "$CXX"; then
7735  ac_ct_CXX=$CXX
7736  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7737do
7738  # Extract the first word of "$ac_prog", so it can be a program name with args.
7739set dummy $ac_prog; ac_word=$2
7740echo "$as_me:$LINENO: checking for $ac_word" >&5
7741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7742if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7743  echo $ECHO_N "(cached) $ECHO_C" >&6
7744else
7745  if test -n "$ac_ct_CXX"; then
7746  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7747else
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751  IFS=$as_save_IFS
7752  test -z "$as_dir" && as_dir=.
7753  for ac_exec_ext in '' $ac_executable_extensions; do
7754  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755    ac_cv_prog_ac_ct_CXX="$ac_prog"
7756    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757    break 2
7758  fi
7759done
7760done
7761
7762fi
7763fi
7764ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7765if test -n "$ac_ct_CXX"; then
7766  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7767echo "${ECHO_T}$ac_ct_CXX" >&6
7768else
7769  echo "$as_me:$LINENO: result: no" >&5
7770echo "${ECHO_T}no" >&6
7771fi
7772
7773  test -n "$ac_ct_CXX" && break
7774done
7775test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7776
7777  CXX=$ac_ct_CXX
7778fi
7779
7780
7781# Provide some information about the compiler.
7782echo "$as_me:$LINENO:" \
7783     "checking for C++ compiler version" >&5
7784ac_compiler=`set X $ac_compile; echo $2`
7785{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7786  (eval $ac_compiler --version </dev/null >&5) 2>&5
7787  ac_status=$?
7788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789  (exit $ac_status); }
7790{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7791  (eval $ac_compiler -v </dev/null >&5) 2>&5
7792  ac_status=$?
7793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794  (exit $ac_status); }
7795{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7796  (eval $ac_compiler -V </dev/null >&5) 2>&5
7797  ac_status=$?
7798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799  (exit $ac_status); }
7800
7801echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7802echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7803if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7804  echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806  cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h.  */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h.  */
7812
7813#ifdef F77_DUMMY_MAIN
7814
7815#  ifdef __cplusplus
7816     extern "C"
7817#  endif
7818   int F77_DUMMY_MAIN() { return 1; }
7819
7820#endif
7821int
7822main ()
7823{
7824#ifndef __GNUC__
7825       choke me
7826#endif
7827
7828  ;
7829  return 0;
7830}
7831_ACEOF
7832rm -f conftest.$ac_objext
7833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7834  (eval $ac_compile) 2>conftest.er1
7835  ac_status=$?
7836  grep -v '^ *+' conftest.er1 >conftest.err
7837  rm -f conftest.er1
7838  cat conftest.err >&5
7839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840  (exit $ac_status); } &&
7841         { ac_try='test -z "$ac_cxx_werror_flag"
7842                         || test ! -s conftest.err'
7843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844  (eval $ac_try) 2>&5
7845  ac_status=$?
7846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847  (exit $ac_status); }; } &&
7848         { ac_try='test -s conftest.$ac_objext'
7849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850  (eval $ac_try) 2>&5
7851  ac_status=$?
7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853  (exit $ac_status); }; }; then
7854  ac_compiler_gnu=yes
7855else
7856  echo "$as_me: failed program was:" >&5
7857sed 's/^/| /' conftest.$ac_ext >&5
7858
7859ac_compiler_gnu=no
7860fi
7861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7862ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7863
7864fi
7865echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7866echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7867GXX=`test $ac_compiler_gnu = yes && echo yes`
7868ac_test_CXXFLAGS=${CXXFLAGS+set}
7869ac_save_CXXFLAGS=$CXXFLAGS
7870CXXFLAGS="-g"
7871echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7872echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7873if test "${ac_cv_prog_cxx_g+set}" = set; then
7874  echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876  cat >conftest.$ac_ext <<_ACEOF
7877/* confdefs.h.  */
7878_ACEOF
7879cat confdefs.h >>conftest.$ac_ext
7880cat >>conftest.$ac_ext <<_ACEOF
7881/* end confdefs.h.  */
7882
7883#ifdef F77_DUMMY_MAIN
7884
7885#  ifdef __cplusplus
7886     extern "C"
7887#  endif
7888   int F77_DUMMY_MAIN() { return 1; }
7889
7890#endif
7891int
7892main ()
7893{
7894
7895  ;
7896  return 0;
7897}
7898_ACEOF
7899rm -f conftest.$ac_objext
7900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901  (eval $ac_compile) 2>conftest.er1
7902  ac_status=$?
7903  grep -v '^ *+' conftest.er1 >conftest.err
7904  rm -f conftest.er1
7905  cat conftest.err >&5
7906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907  (exit $ac_status); } &&
7908         { ac_try='test -z "$ac_cxx_werror_flag"
7909                         || test ! -s conftest.err'
7910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911  (eval $ac_try) 2>&5
7912  ac_status=$?
7913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914  (exit $ac_status); }; } &&
7915         { ac_try='test -s conftest.$ac_objext'
7916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917  (eval $ac_try) 2>&5
7918  ac_status=$?
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); }; }; then
7921  ac_cv_prog_cxx_g=yes
7922else
7923  echo "$as_me: failed program was:" >&5
7924sed 's/^/| /' conftest.$ac_ext >&5
7925
7926ac_cv_prog_cxx_g=no
7927fi
7928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7929fi
7930echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7931echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7932if test "$ac_test_CXXFLAGS" = set; then
7933  CXXFLAGS=$ac_save_CXXFLAGS
7934elif test $ac_cv_prog_cxx_g = yes; then
7935  if test "$GXX" = yes; then
7936    CXXFLAGS="-g -O2"
7937  else
7938    CXXFLAGS="-g"
7939  fi
7940else
7941  if test "$GXX" = yes; then
7942    CXXFLAGS="-O2"
7943  else
7944    CXXFLAGS=
7945  fi
7946fi
7947for ac_declaration in \
7948   '' \
7949   'extern "C" void std::exit (int) throw (); using std::exit;' \
7950   'extern "C" void std::exit (int); using std::exit;' \
7951   'extern "C" void exit (int) throw ();' \
7952   'extern "C" void exit (int);' \
7953   'void exit (int);'
7954do
7955  cat >conftest.$ac_ext <<_ACEOF
7956/* confdefs.h.  */
7957_ACEOF
7958cat confdefs.h >>conftest.$ac_ext
7959cat >>conftest.$ac_ext <<_ACEOF
7960/* end confdefs.h.  */
7961$ac_declaration
7962#include <stdlib.h>
7963#ifdef F77_DUMMY_MAIN
7964
7965#  ifdef __cplusplus
7966     extern "C"
7967#  endif
7968   int F77_DUMMY_MAIN() { return 1; }
7969
7970#endif
7971int
7972main ()
7973{
7974exit (42);
7975  ;
7976  return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext
7980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981  (eval $ac_compile) 2>conftest.er1
7982  ac_status=$?
7983  grep -v '^ *+' conftest.er1 >conftest.err
7984  rm -f conftest.er1
7985  cat conftest.err >&5
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); } &&
7988         { ac_try='test -z "$ac_cxx_werror_flag"
7989                         || test ! -s conftest.err'
7990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991  (eval $ac_try) 2>&5
7992  ac_status=$?
7993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994  (exit $ac_status); }; } &&
7995         { ac_try='test -s conftest.$ac_objext'
7996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997  (eval $ac_try) 2>&5
7998  ac_status=$?
7999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000  (exit $ac_status); }; }; then
8001  :
8002else
8003  echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006continue
8007fi
8008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8009  cat >conftest.$ac_ext <<_ACEOF
8010/* confdefs.h.  */
8011_ACEOF
8012cat confdefs.h >>conftest.$ac_ext
8013cat >>conftest.$ac_ext <<_ACEOF
8014/* end confdefs.h.  */
8015$ac_declaration
8016#ifdef F77_DUMMY_MAIN
8017
8018#  ifdef __cplusplus
8019     extern "C"
8020#  endif
8021   int F77_DUMMY_MAIN() { return 1; }
8022
8023#endif
8024int
8025main ()
8026{
8027exit (42);
8028  ;
8029  return 0;
8030}
8031_ACEOF
8032rm -f conftest.$ac_objext
8033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8034  (eval $ac_compile) 2>conftest.er1
8035  ac_status=$?
8036  grep -v '^ *+' conftest.er1 >conftest.err
8037  rm -f conftest.er1
8038  cat conftest.err >&5
8039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040  (exit $ac_status); } &&
8041         { ac_try='test -z "$ac_cxx_werror_flag"
8042                         || test ! -s conftest.err'
8043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044  (eval $ac_try) 2>&5
8045  ac_status=$?
8046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047  (exit $ac_status); }; } &&
8048         { ac_try='test -s conftest.$ac_objext'
8049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050  (eval $ac_try) 2>&5
8051  ac_status=$?
8052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053  (exit $ac_status); }; }; then
8054  break
8055else
8056  echo "$as_me: failed program was:" >&5
8057sed 's/^/| /' conftest.$ac_ext >&5
8058
8059fi
8060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061done
8062rm -f conftest*
8063if test -n "$ac_declaration"; then
8064  echo '#ifdef __cplusplus' >>confdefs.h
8065  echo $ac_declaration      >>confdefs.h
8066  echo '#endif'             >>confdefs.h
8067fi
8068
8069ac_ext=cc
8070ac_cpp='$CXXCPP $CPPFLAGS'
8071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8074
8075depcc="$CXX"  am_compiler_list=
8076
8077echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8078echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8079if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8080  echo $ECHO_N "(cached) $ECHO_C" >&6
8081else
8082  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8083  # We make a subdir and do the tests there.  Otherwise we can end up
8084  # making bogus files that we don't know about and never remove.  For
8085  # instance it was reported that on HP-UX the gcc test will end up
8086  # making a dummy file named `D' -- because `-MD' means `put the output
8087  # in D'.
8088  mkdir conftest.dir
8089  # Copy depcomp to subdir because otherwise we won't find it if we're
8090  # using a relative directory.
8091  cp "$am_depcomp" conftest.dir
8092  cd conftest.dir
8093  # We will build objects and dependencies in a subdirectory because
8094  # it helps to detect inapplicable dependency modes.  For instance
8095  # both Tru64's cc and ICC support -MD to output dependencies as a
8096  # side effect of compilation, but ICC will put the dependencies in
8097  # the current directory while Tru64 will put them in the object
8098  # directory.
8099  mkdir sub
8100
8101  am_cv_CXX_dependencies_compiler_type=none
8102  if test "$am_compiler_list" = ""; then
8103     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8104  fi
8105  for depmode in $am_compiler_list; do
8106    # Setup a source with many dependencies, because some compilers
8107    # like to wrap large dependency lists on column 80 (with \), and
8108    # we should not choose a depcomp mode which is confused by this.
8109    #
8110    # We need to recreate these files for each test, as the compiler may
8111    # overwrite some of them when testing with obscure command lines.
8112    # This happens at least with the AIX C compiler.
8113    : > sub/conftest.c
8114    for i in 1 2 3 4 5 6; do
8115      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8116      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8117      # Solaris 8's {/usr,}/bin/sh.
8118      touch sub/conftst$i.h
8119    done
8120    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8121
8122    case $depmode in
8123    nosideeffect)
8124      # after this tag, mechanisms are not by side-effect, so they'll
8125      # only be used when explicitly requested
8126      if test "x$enable_dependency_tracking" = xyes; then
8127        continue
8128      else
8129        break
8130      fi
8131      ;;
8132    none) break ;;
8133    esac
8134    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8135    # mode.  It turns out that the SunPro C++ compiler does not properly
8136    # handle `-M -o', and we need to detect this.
8137    if depmode=$depmode \
8138       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8139       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8140       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8141         >/dev/null 2>conftest.err &&
8142       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8143       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8144       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8145      # icc doesn't choke on unknown options, it will just issue warnings
8146      # or remarks (even with -Werror).  So we grep stderr for any message
8147      # that says an option was ignored or not supported.
8148      # When given -MP, icc 7.0 and 7.1 complain thusly:
8149      #   icc: Command line warning: ignoring option '-M'; no argument required
8150      # The diagnosis changed in icc 8.0:
8151      #   icc: Command line remark: option '-MP' not supported
8152      if (grep 'ignoring option' conftest.err ||
8153          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8154        am_cv_CXX_dependencies_compiler_type=$depmode
8155        break
8156      fi
8157    fi
8158  done
8159
8160  cd ..
8161  rm -rf conftest.dir
8162else
8163  am_cv_CXX_dependencies_compiler_type=none
8164fi
8165
8166fi
8167echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8168echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8169CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8170
8171
8172
8173if
8174  test "x$enable_dependency_tracking" != xno \
8175  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8176  am__fastdepCXX_TRUE=
8177  am__fastdepCXX_FALSE='#'
8178else
8179  am__fastdepCXX_TRUE='#'
8180  am__fastdepCXX_FALSE=
8181fi
8182
8183
8184
8185
8186if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8187    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8188    (test "X$CXX" != "Xg++"))) ; then
8189  ac_ext=cc
8190ac_cpp='$CXXCPP $CPPFLAGS'
8191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8194echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8195echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8196if test -z "$CXXCPP"; then
8197  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8198  echo $ECHO_N "(cached) $ECHO_C" >&6
8199else
8200      # Double quotes because CXXCPP needs to be expanded
8201    for CXXCPP in "$CXX -E" "/lib/cpp"
8202    do
8203      ac_preproc_ok=false
8204for ac_cxx_preproc_warn_flag in '' yes
8205do
8206  # Use a header file that comes with gcc, so configuring glibc
8207  # with a fresh cross-compiler works.
8208  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8209  # <limits.h> exists even on freestanding compilers.
8210  # On the NeXT, cc -E runs the code through the compiler's parser,
8211  # not just through cpp. "Syntax error" is here to catch this case.
8212  cat >conftest.$ac_ext <<_ACEOF
8213/* confdefs.h.  */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h.  */
8218#ifdef __STDC__
8219# include <limits.h>
8220#else
8221# include <assert.h>
8222#endif
8223                     Syntax error
8224_ACEOF
8225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8226  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8227  ac_status=$?
8228  grep -v '^ *+' conftest.er1 >conftest.err
8229  rm -f conftest.er1
8230  cat conftest.err >&5
8231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232  (exit $ac_status); } >/dev/null; then
8233  if test -s conftest.err; then
8234    ac_cpp_err=$ac_cxx_preproc_warn_flag
8235    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8236  else
8237    ac_cpp_err=
8238  fi
8239else
8240  ac_cpp_err=yes
8241fi
8242if test -z "$ac_cpp_err"; then
8243  :
8244else
8245  echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248  # Broken: fails on valid input.
8249continue
8250fi
8251rm -f conftest.err conftest.$ac_ext
8252
8253  # OK, works on sane cases.  Now check whether non-existent headers
8254  # can be detected and how.
8255  cat >conftest.$ac_ext <<_ACEOF
8256/* confdefs.h.  */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h.  */
8261#include <ac_nonexistent.h>
8262_ACEOF
8263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8264  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8265  ac_status=$?
8266  grep -v '^ *+' conftest.er1 >conftest.err
8267  rm -f conftest.er1
8268  cat conftest.err >&5
8269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270  (exit $ac_status); } >/dev/null; then
8271  if test -s conftest.err; then
8272    ac_cpp_err=$ac_cxx_preproc_warn_flag
8273    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8274  else
8275    ac_cpp_err=
8276  fi
8277else
8278  ac_cpp_err=yes
8279fi
8280if test -z "$ac_cpp_err"; then
8281  # Broken: success on invalid input.
8282continue
8283else
8284  echo "$as_me: failed program was:" >&5
8285sed 's/^/| /' conftest.$ac_ext >&5
8286
8287  # Passes both tests.
8288ac_preproc_ok=:
8289break
8290fi
8291rm -f conftest.err conftest.$ac_ext
8292
8293done
8294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8295rm -f conftest.err conftest.$ac_ext
8296if $ac_preproc_ok; then
8297  break
8298fi
8299
8300    done
8301    ac_cv_prog_CXXCPP=$CXXCPP
8302
8303fi
8304  CXXCPP=$ac_cv_prog_CXXCPP
8305else
8306  ac_cv_prog_CXXCPP=$CXXCPP
8307fi
8308echo "$as_me:$LINENO: result: $CXXCPP" >&5
8309echo "${ECHO_T}$CXXCPP" >&6
8310ac_preproc_ok=false
8311for ac_cxx_preproc_warn_flag in '' yes
8312do
8313  # Use a header file that comes with gcc, so configuring glibc
8314  # with a fresh cross-compiler works.
8315  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8316  # <limits.h> exists even on freestanding compilers.
8317  # On the NeXT, cc -E runs the code through the compiler's parser,
8318  # not just through cpp. "Syntax error" is here to catch this case.
8319  cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h.  */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h.  */
8325#ifdef __STDC__
8326# include <limits.h>
8327#else
8328# include <assert.h>
8329#endif
8330                     Syntax error
8331_ACEOF
8332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8333  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8334  ac_status=$?
8335  grep -v '^ *+' conftest.er1 >conftest.err
8336  rm -f conftest.er1
8337  cat conftest.err >&5
8338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339  (exit $ac_status); } >/dev/null; then
8340  if test -s conftest.err; then
8341    ac_cpp_err=$ac_cxx_preproc_warn_flag
8342    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8343  else
8344    ac_cpp_err=
8345  fi
8346else
8347  ac_cpp_err=yes
8348fi
8349if test -z "$ac_cpp_err"; then
8350  :
8351else
8352  echo "$as_me: failed program was:" >&5
8353sed 's/^/| /' conftest.$ac_ext >&5
8354
8355  # Broken: fails on valid input.
8356continue
8357fi
8358rm -f conftest.err conftest.$ac_ext
8359
8360  # OK, works on sane cases.  Now check whether non-existent headers
8361  # can be detected and how.
8362  cat >conftest.$ac_ext <<_ACEOF
8363/* confdefs.h.  */
8364_ACEOF
8365cat confdefs.h >>conftest.$ac_ext
8366cat >>conftest.$ac_ext <<_ACEOF
8367/* end confdefs.h.  */
8368#include <ac_nonexistent.h>
8369_ACEOF
8370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8371  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8372  ac_status=$?
8373  grep -v '^ *+' conftest.er1 >conftest.err
8374  rm -f conftest.er1
8375  cat conftest.err >&5
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); } >/dev/null; then
8378  if test -s conftest.err; then
8379    ac_cpp_err=$ac_cxx_preproc_warn_flag
8380    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8381  else
8382    ac_cpp_err=
8383  fi
8384else
8385  ac_cpp_err=yes
8386fi
8387if test -z "$ac_cpp_err"; then
8388  # Broken: success on invalid input.
8389continue
8390else
8391  echo "$as_me: failed program was:" >&5
8392sed 's/^/| /' conftest.$ac_ext >&5
8393
8394  # Passes both tests.
8395ac_preproc_ok=:
8396break
8397fi
8398rm -f conftest.err conftest.$ac_ext
8399
8400done
8401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8402rm -f conftest.err conftest.$ac_ext
8403if $ac_preproc_ok; then
8404  :
8405else
8406  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8407See \`config.log' for more details." >&5
8408echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8409See \`config.log' for more details." >&2;}
8410   { (exit 1); exit 1; }; }
8411fi
8412
8413ac_ext=cc
8414ac_cpp='$CXXCPP $CPPFLAGS'
8415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8418
8419fi
8420
8421
8422
8423# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8424
8425# find the maximum length of command line arguments
8426echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8427echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8428if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8429  echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431    i=0
8432  teststring="ABCD"
8433
8434  case $build_os in
8435  msdosdjgpp*)
8436    # On DJGPP, this test can blow up pretty badly due to problems in libc
8437    # (any single argument exceeding 2000 bytes causes a buffer overrun
8438    # during glob expansion).  Even if it were fixed, the result of this
8439    # check would be larger than it should be.
8440    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8441    ;;
8442
8443  gnu*)
8444    # Under GNU Hurd, this test is not required because there is
8445    # no limit to the length of command line arguments.
8446    # Libtool will interpret -1 as no limit whatsoever
8447    lt_cv_sys_max_cmd_len=-1;
8448    ;;
8449
8450  cygwin* | mingw*)
8451    # On Win9x/ME, this test blows up -- it succeeds, but takes
8452    # about 5 minutes as the teststring grows exponentially.
8453    # Worse, since 9x/ME are not pre-emptively multitasking,
8454    # you end up with a "frozen" computer, even though with patience
8455    # the test eventually succeeds (with a max line length of 256k).
8456    # Instead, let's just punt: use the minimum linelength reported by
8457    # all of the supported platforms: 8192 (on NT/2K/XP).
8458    lt_cv_sys_max_cmd_len=8192;
8459    ;;
8460
8461  amigaos*)
8462    # On AmigaOS with pdksh, this test takes hours, literally.
8463    # So we just punt and use a minimum line length of 8192.
8464    lt_cv_sys_max_cmd_len=8192;
8465    ;;
8466
8467  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8468    # This has been around since 386BSD, at least.  Likely further.
8469    if test -x /sbin/sysctl; then
8470      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8471    elif test -x /usr/sbin/sysctl; then
8472      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8473    else
8474      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8475    fi
8476    # And add a safety zone
8477    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8478    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8479    ;;
8480
8481  interix*)
8482    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8483    lt_cv_sys_max_cmd_len=196608
8484    ;;
8485
8486  osf*)
8487    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8488    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8489    # nice to cause kernel panics so lets avoid the loop below.
8490    # First set a reasonable default.
8491    lt_cv_sys_max_cmd_len=16384
8492    #
8493    if test -x /sbin/sysconfig; then
8494      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8495        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8496      esac
8497    fi
8498    ;;
8499  sco3.2v5*)
8500    lt_cv_sys_max_cmd_len=102400
8501    ;;
8502  sysv5* | sco5v6* | sysv4.2uw2*)
8503    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8504    if test -n "$kargmax"; then
8505      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8506    else
8507      lt_cv_sys_max_cmd_len=32768
8508    fi
8509    ;;
8510  *)
8511    # If test is not a shell built-in, we'll probably end up computing a
8512    # maximum length that is only half of the actual maximum length, but
8513    # we can't tell.
8514    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8515    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8516               = "XX$teststring") >/dev/null 2>&1 &&
8517            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8518            lt_cv_sys_max_cmd_len=$new_result &&
8519            test $i != 17 # 1/2 MB should be enough
8520    do
8521      i=`expr $i + 1`
8522      teststring=$teststring$teststring
8523    done
8524    teststring=
8525    # Add a significant safety factor because C++ compilers can tack on massive
8526    # amounts of additional arguments before passing them to the linker.
8527    # It appears as though 1/2 is a usable value.
8528    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8529    ;;
8530  esac
8531
8532fi
8533
8534if test -n $lt_cv_sys_max_cmd_len ; then
8535  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8536echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8537else
8538  echo "$as_me:$LINENO: result: none" >&5
8539echo "${ECHO_T}none" >&6
8540fi
8541
8542
8543
8544
8545# Check for command to grab the raw symbol name followed by C symbol from nm.
8546echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8547echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8548if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8549  echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551
8552# These are sane defaults that work on at least a few old systems.
8553# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8554
8555# Character class describing NM global symbol codes.
8556symcode='[BCDEGRST]'
8557
8558# Regexp to match symbols that can be accessed directly from C.
8559sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8560
8561# Transform an extracted symbol line into a proper C declaration
8562lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8563
8564# Transform an extracted symbol line into symbol name and symbol address
8565lt_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'"
8566
8567# Define system-specific variables.
8568case $host_os in
8569aix*)
8570  symcode='[BCDT]'
8571  ;;
8572cygwin* | mingw* | pw32*)
8573  symcode='[ABCDGISTW]'
8574  ;;
8575hpux*) # Its linker distinguishes data from code symbols
8576  if test "$host_cpu" = ia64; then
8577    symcode='[ABCDEGRST]'
8578  fi
8579  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8580  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'"
8581  ;;
8582linux*)
8583  if test "$host_cpu" = ia64; then
8584    symcode='[ABCDGIRSTW]'
8585    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8586    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'"
8587  fi
8588  ;;
8589irix* | nonstopux*)
8590  symcode='[BCDEGRST]'
8591  ;;
8592osf*)
8593  symcode='[BCDEGQRST]'
8594  ;;
8595solaris*)
8596  symcode='[BDRT]'
8597  ;;
8598sco3.2v5*)
8599  symcode='[DT]'
8600  ;;
8601sysv4.2uw2*)
8602  symcode='[DT]'
8603  ;;
8604sysv5* | sco5v6* | unixware* | OpenUNIX*)
8605  symcode='[ABDT]'
8606  ;;
8607sysv4)
8608  symcode='[DFNSTU]'
8609  ;;
8610esac
8611
8612# Handle CRLF in mingw tool chain
8613opt_cr=
8614case $build_os in
8615mingw*)
8616  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8617  ;;
8618esac
8619
8620# If we're using GNU nm, then use its standard symbol codes.
8621case `$NM -V 2>&1` in
8622*GNU* | *'with BFD'*)
8623  symcode='[ABCDGIRSTW]' ;;
8624esac
8625
8626# Try without a prefix undercore, then with it.
8627for ac_symprfx in "" "_"; do
8628
8629  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8630  symxfrm="\\1 $ac_symprfx\\2 \\2"
8631
8632  # Write the raw and C identifiers.
8633  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8634
8635  # Check to see that the pipe works correctly.
8636  pipe_works=no
8637
8638  rm -f conftest*
8639  cat > conftest.$ac_ext <<EOF
8640#ifdef __cplusplus
8641extern "C" {
8642#endif
8643char nm_test_var;
8644void nm_test_func(){}
8645#ifdef __cplusplus
8646}
8647#endif
8648int main(){nm_test_var='a';nm_test_func();return(0);}
8649EOF
8650
8651  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652  (eval $ac_compile) 2>&5
8653  ac_status=$?
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); }; then
8656    # Now try to grab the symbols.
8657    nlist=conftest.nm
8658    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8659  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8660  ac_status=$?
8661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662  (exit $ac_status); } && test -s "$nlist"; then
8663      # Try sorting and uniquifying the output.
8664      if sort "$nlist" | uniq > "$nlist"T; then
8665        mv -f "$nlist"T "$nlist"
8666      else
8667        rm -f "$nlist"T
8668      fi
8669
8670      # Make sure that we snagged all the symbols we need.
8671      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8672        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8673          cat <<EOF > conftest.$ac_ext
8674#ifdef __cplusplus
8675extern "C" {
8676#endif
8677
8678EOF
8679          # Now generate the symbol file.
8680          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8681
8682          cat <<EOF >> conftest.$ac_ext
8683#if defined (__STDC__) && __STDC__
8684# define lt_ptr_t void *
8685#else
8686# define lt_ptr_t char *
8687# define const
8688#endif
8689
8690/* The mapping between symbol names and symbols. */
8691const struct {
8692  const char *name;
8693  lt_ptr_t address;
8694}
8695lt_preloaded_symbols[] =
8696{
8697EOF
8698          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8699          cat <<\EOF >> conftest.$ac_ext
8700  {0, (lt_ptr_t) 0}
8701};
8702
8703#ifdef __cplusplus
8704}
8705#endif
8706EOF
8707          # Now try linking the two files.
8708          mv conftest.$ac_objext conftstm.$ac_objext
8709          lt_save_LIBS="$LIBS"
8710          lt_save_CFLAGS="$CFLAGS"
8711          LIBS="conftstm.$ac_objext"
8712          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8713          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714  (eval $ac_link) 2>&5
8715  ac_status=$?
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8718            pipe_works=yes
8719          fi
8720          LIBS="$lt_save_LIBS"
8721          CFLAGS="$lt_save_CFLAGS"
8722        else
8723          echo "cannot find nm_test_func in $nlist" >&5
8724        fi
8725      else
8726        echo "cannot find nm_test_var in $nlist" >&5
8727      fi
8728    else
8729      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8730    fi
8731  else
8732    echo "$progname: failed program was:" >&5
8733    cat conftest.$ac_ext >&5
8734  fi
8735  rm -f conftest* conftst*
8736
8737  # Do not use the global_symbol_pipe unless it works.
8738  if test "$pipe_works" = yes; then
8739    break
8740  else
8741    lt_cv_sys_global_symbol_pipe=
8742  fi
8743done
8744
8745fi
8746
8747if test -z "$lt_cv_sys_global_symbol_pipe"; then
8748  lt_cv_sys_global_symbol_to_cdecl=
8749fi
8750if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8751  echo "$as_me:$LINENO: result: failed" >&5
8752echo "${ECHO_T}failed" >&6
8753else
8754  echo "$as_me:$LINENO: result: ok" >&5
8755echo "${ECHO_T}ok" >&6
8756fi
8757
8758echo "$as_me:$LINENO: checking for objdir" >&5
8759echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8760if test "${lt_cv_objdir+set}" = set; then
8761  echo $ECHO_N "(cached) $ECHO_C" >&6
8762else
8763  rm -f .libs 2>/dev/null
8764mkdir .libs 2>/dev/null
8765if test -d .libs; then
8766  lt_cv_objdir=.libs
8767else
8768  # MS-DOS does not allow filenames that begin with a dot.
8769  lt_cv_objdir=_libs
8770fi
8771rmdir .libs 2>/dev/null
8772fi
8773echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8774echo "${ECHO_T}$lt_cv_objdir" >&6
8775objdir=$lt_cv_objdir
8776
8777
8778
8779
8780
8781case $host_os in
8782aix3*)
8783  # AIX sometimes has problems with the GCC collect2 program.  For some
8784  # reason, if we set the COLLECT_NAMES environment variable, the problems
8785  # vanish in a puff of smoke.
8786  if test "X${COLLECT_NAMES+set}" != Xset; then
8787    COLLECT_NAMES=
8788    export COLLECT_NAMES
8789  fi
8790  ;;
8791esac
8792
8793# Sed substitution that helps us do robust quoting.  It backslashifies
8794# metacharacters that are still active within double-quoted strings.
8795Xsed='sed -e 1s/^X//'
8796sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8797
8798# Same as above, but do not quote variable references.
8799double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8800
8801# Sed substitution to delay expansion of an escaped shell variable in a
8802# double_quote_subst'ed string.
8803delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8804
8805# Sed substitution to avoid accidental globbing in evaled expressions
8806no_glob_subst='s/\*/\\\*/g'
8807
8808# Constants:
8809rm="rm -f"
8810
8811# Global variables:
8812default_ofile=libtool
8813can_build_shared=yes
8814
8815# All known linkers require a `.a' archive for static linking (except MSVC,
8816# which needs '.lib').
8817libext=a
8818ltmain="$ac_aux_dir/ltmain.sh"
8819ofile="$default_ofile"
8820with_gnu_ld="$lt_cv_prog_gnu_ld"
8821
8822if test -n "$ac_tool_prefix"; then
8823  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8824set dummy ${ac_tool_prefix}ar; ac_word=$2
8825echo "$as_me:$LINENO: checking for $ac_word" >&5
8826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8827if test "${ac_cv_prog_AR+set}" = set; then
8828  echo $ECHO_N "(cached) $ECHO_C" >&6
8829else
8830  if test -n "$AR"; then
8831  ac_cv_prog_AR="$AR" # Let the user override the test.
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836  IFS=$as_save_IFS
8837  test -z "$as_dir" && as_dir=.
8838  for ac_exec_ext in '' $ac_executable_extensions; do
8839  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8840    ac_cv_prog_AR="${ac_tool_prefix}ar"
8841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8842    break 2
8843  fi
8844done
8845done
8846
8847fi
8848fi
8849AR=$ac_cv_prog_AR
8850if test -n "$AR"; then
8851  echo "$as_me:$LINENO: result: $AR" >&5
8852echo "${ECHO_T}$AR" >&6
8853else
8854  echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6
8856fi
8857
8858fi
8859if test -z "$ac_cv_prog_AR"; then
8860  ac_ct_AR=$AR
8861  # Extract the first word of "ar", so it can be a program name with args.
8862set dummy ar; ac_word=$2
8863echo "$as_me:$LINENO: checking for $ac_word" >&5
8864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8865if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8866  echo $ECHO_N "(cached) $ECHO_C" >&6
8867else
8868  if test -n "$ac_ct_AR"; then
8869  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8870else
8871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874  IFS=$as_save_IFS
8875  test -z "$as_dir" && as_dir=.
8876  for ac_exec_ext in '' $ac_executable_extensions; do
8877  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8878    ac_cv_prog_ac_ct_AR="ar"
8879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880    break 2
8881  fi
8882done
8883done
8884
8885  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8886fi
8887fi
8888ac_ct_AR=$ac_cv_prog_ac_ct_AR
8889if test -n "$ac_ct_AR"; then
8890  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8891echo "${ECHO_T}$ac_ct_AR" >&6
8892else
8893  echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
8895fi
8896
8897  AR=$ac_ct_AR
8898else
8899  AR="$ac_cv_prog_AR"
8900fi
8901
8902if test -n "$ac_tool_prefix"; then
8903  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8904set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8905echo "$as_me:$LINENO: checking for $ac_word" >&5
8906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8907if test "${ac_cv_prog_RANLIB+set}" = set; then
8908  echo $ECHO_N "(cached) $ECHO_C" >&6
8909else
8910  if test -n "$RANLIB"; then
8911  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8912else
8913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914for as_dir in $PATH
8915do
8916  IFS=$as_save_IFS
8917  test -z "$as_dir" && as_dir=.
8918  for ac_exec_ext in '' $ac_executable_extensions; do
8919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8922    break 2
8923  fi
8924done
8925done
8926
8927fi
8928fi
8929RANLIB=$ac_cv_prog_RANLIB
8930if test -n "$RANLIB"; then
8931  echo "$as_me:$LINENO: result: $RANLIB" >&5
8932echo "${ECHO_T}$RANLIB" >&6
8933else
8934  echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
8936fi
8937
8938fi
8939if test -z "$ac_cv_prog_RANLIB"; then
8940  ac_ct_RANLIB=$RANLIB
8941  # Extract the first word of "ranlib", so it can be a program name with args.
8942set dummy ranlib; ac_word=$2
8943echo "$as_me:$LINENO: checking for $ac_word" >&5
8944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8945if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8946  echo $ECHO_N "(cached) $ECHO_C" >&6
8947else
8948  if test -n "$ac_ct_RANLIB"; then
8949  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8950else
8951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952for as_dir in $PATH
8953do
8954  IFS=$as_save_IFS
8955  test -z "$as_dir" && as_dir=.
8956  for ac_exec_ext in '' $ac_executable_extensions; do
8957  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8958    ac_cv_prog_ac_ct_RANLIB="ranlib"
8959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8960    break 2
8961  fi
8962done
8963done
8964
8965  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8966fi
8967fi
8968ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8969if test -n "$ac_ct_RANLIB"; then
8970  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8971echo "${ECHO_T}$ac_ct_RANLIB" >&6
8972else
8973  echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975fi
8976
8977  RANLIB=$ac_ct_RANLIB
8978else
8979  RANLIB="$ac_cv_prog_RANLIB"
8980fi
8981
8982if test -n "$ac_tool_prefix"; then
8983  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8984set dummy ${ac_tool_prefix}strip; ac_word=$2
8985echo "$as_me:$LINENO: checking for $ac_word" >&5
8986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8987if test "${ac_cv_prog_STRIP+set}" = set; then
8988  echo $ECHO_N "(cached) $ECHO_C" >&6
8989else
8990  if test -n "$STRIP"; then
8991  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8992else
8993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994for as_dir in $PATH
8995do
8996  IFS=$as_save_IFS
8997  test -z "$as_dir" && as_dir=.
8998  for ac_exec_ext in '' $ac_executable_extensions; do
8999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9002    break 2
9003  fi
9004done
9005done
9006
9007fi
9008fi
9009STRIP=$ac_cv_prog_STRIP
9010if test -n "$STRIP"; then
9011  echo "$as_me:$LINENO: result: $STRIP" >&5
9012echo "${ECHO_T}$STRIP" >&6
9013else
9014  echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016fi
9017
9018fi
9019if test -z "$ac_cv_prog_STRIP"; then
9020  ac_ct_STRIP=$STRIP
9021  # Extract the first word of "strip", so it can be a program name with args.
9022set dummy strip; ac_word=$2
9023echo "$as_me:$LINENO: checking for $ac_word" >&5
9024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9025if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9026  echo $ECHO_N "(cached) $ECHO_C" >&6
9027else
9028  if test -n "$ac_ct_STRIP"; then
9029  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9030else
9031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032for as_dir in $PATH
9033do
9034  IFS=$as_save_IFS
9035  test -z "$as_dir" && as_dir=.
9036  for ac_exec_ext in '' $ac_executable_extensions; do
9037  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038    ac_cv_prog_ac_ct_STRIP="strip"
9039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9040    break 2
9041  fi
9042done
9043done
9044
9045  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9046fi
9047fi
9048ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9049if test -n "$ac_ct_STRIP"; then
9050  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9051echo "${ECHO_T}$ac_ct_STRIP" >&6
9052else
9053  echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
9055fi
9056
9057  STRIP=$ac_ct_STRIP
9058else
9059  STRIP="$ac_cv_prog_STRIP"
9060fi
9061
9062
9063old_CC="$CC"
9064old_CFLAGS="$CFLAGS"
9065
9066# Set sane defaults for various variables
9067test -z "$AR" && AR=ar
9068test -z "$AR_FLAGS" && AR_FLAGS=cru
9069test -z "$AS" && AS=as
9070test -z "$CC" && CC=cc
9071test -z "$LTCC" && LTCC=$CC
9072test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9073test -z "$DLLTOOL" && DLLTOOL=dlltool
9074test -z "$LD" && LD=ld
9075test -z "$LN_S" && LN_S="ln -s"
9076test -z "$MAGIC_CMD" && MAGIC_CMD=file
9077test -z "$NM" && NM=nm
9078test -z "$SED" && SED=sed
9079test -z "$OBJDUMP" && OBJDUMP=objdump
9080test -z "$RANLIB" && RANLIB=:
9081test -z "$STRIP" && STRIP=:
9082test -z "$ac_objext" && ac_objext=o
9083
9084# Determine commands to create old-style static archives.
9085old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9086old_postinstall_cmds='chmod 644 $oldlib'
9087old_postuninstall_cmds=
9088
9089if test -n "$RANLIB"; then
9090  case $host_os in
9091  openbsd*)
9092    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9093    ;;
9094  *)
9095    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9096    ;;
9097  esac
9098  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9099fi
9100
9101for cc_temp in $compiler""; do
9102  case $cc_temp in
9103    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9104    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9105    \-*) ;;
9106    *) break;;
9107  esac
9108done
9109cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9110
9111
9112# Only perform the check for file, if the check method requires it
9113case $deplibs_check_method in
9114file_magic*)
9115  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9116    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9117echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9118if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9119  echo $ECHO_N "(cached) $ECHO_C" >&6
9120else
9121  case $MAGIC_CMD in
9122[\\/*] |  ?:[\\/]*)
9123  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9124  ;;
9125*)
9126  lt_save_MAGIC_CMD="$MAGIC_CMD"
9127  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9128  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9129  for ac_dir in $ac_dummy; do
9130    IFS="$lt_save_ifs"
9131    test -z "$ac_dir" && ac_dir=.
9132    if test -f $ac_dir/${ac_tool_prefix}file; then
9133      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9134      if test -n "$file_magic_test_file"; then
9135        case $deplibs_check_method in
9136        "file_magic "*)
9137          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9138          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9139          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9140            $EGREP "$file_magic_regex" > /dev/null; then
9141            :
9142          else
9143            cat <<EOF 1>&2
9144
9145*** Warning: the command libtool uses to detect shared libraries,
9146*** $file_magic_cmd, produces output that libtool cannot recognize.
9147*** The result is that libtool may fail to recognize shared libraries
9148*** as such.  This will affect the creation of libtool libraries that
9149*** depend on shared libraries, but programs linked with such libtool
9150*** libraries will work regardless of this problem.  Nevertheless, you
9151*** may want to report the problem to your system manager and/or to
9152*** bug-libtool@gnu.org
9153
9154EOF
9155          fi ;;
9156        esac
9157      fi
9158      break
9159    fi
9160  done
9161  IFS="$lt_save_ifs"
9162  MAGIC_CMD="$lt_save_MAGIC_CMD"
9163  ;;
9164esac
9165fi
9166
9167MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9168if test -n "$MAGIC_CMD"; then
9169  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9170echo "${ECHO_T}$MAGIC_CMD" >&6
9171else
9172  echo "$as_me:$LINENO: result: no" >&5
9173echo "${ECHO_T}no" >&6
9174fi
9175
9176if test -z "$lt_cv_path_MAGIC_CMD"; then
9177  if test -n "$ac_tool_prefix"; then
9178    echo "$as_me:$LINENO: checking for file" >&5
9179echo $ECHO_N "checking for file... $ECHO_C" >&6
9180if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9181  echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183  case $MAGIC_CMD in
9184[\\/*] |  ?:[\\/]*)
9185  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9186  ;;
9187*)
9188  lt_save_MAGIC_CMD="$MAGIC_CMD"
9189  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9190  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9191  for ac_dir in $ac_dummy; do
9192    IFS="$lt_save_ifs"
9193    test -z "$ac_dir" && ac_dir=.
9194    if test -f $ac_dir/file; then
9195      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9196      if test -n "$file_magic_test_file"; then
9197        case $deplibs_check_method in
9198        "file_magic "*)
9199          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9200          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9201          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9202            $EGREP "$file_magic_regex" > /dev/null; then
9203            :
9204          else
9205            cat <<EOF 1>&2
9206
9207*** Warning: the command libtool uses to detect shared libraries,
9208*** $file_magic_cmd, produces output that libtool cannot recognize.
9209*** The result is that libtool may fail to recognize shared libraries
9210*** as such.  This will affect the creation of libtool libraries that
9211*** depend on shared libraries, but programs linked with such libtool
9212*** libraries will work regardless of this problem.  Nevertheless, you
9213*** may want to report the problem to your system manager and/or to
9214*** bug-libtool@gnu.org
9215
9216EOF
9217          fi ;;
9218        esac
9219      fi
9220      break
9221    fi
9222  done
9223  IFS="$lt_save_ifs"
9224  MAGIC_CMD="$lt_save_MAGIC_CMD"
9225  ;;
9226esac
9227fi
9228
9229MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9230if test -n "$MAGIC_CMD"; then
9231  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9232echo "${ECHO_T}$MAGIC_CMD" >&6
9233else
9234  echo "$as_me:$LINENO: result: no" >&5
9235echo "${ECHO_T}no" >&6
9236fi
9237
9238  else
9239    MAGIC_CMD=:
9240  fi
9241fi
9242
9243  fi
9244  ;;
9245esac
9246
9247enable_dlopen=no
9248enable_win32_dll=no
9249
9250# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9251if test "${enable_libtool_lock+set}" = set; then
9252  enableval="$enable_libtool_lock"
9253
9254fi;
9255test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9256
9257
9258# Check whether --with-pic or --without-pic was given.
9259if test "${with_pic+set}" = set; then
9260  withval="$with_pic"
9261  pic_mode="$withval"
9262else
9263  pic_mode=default
9264fi;
9265test -z "$pic_mode" && pic_mode=default
9266
9267# Use C for the default configuration in the libtool script
9268tagname=
9269lt_save_CC="$CC"
9270ac_ext=c
9271ac_cpp='$CPP $CPPFLAGS'
9272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9274ac_compiler_gnu=$ac_cv_c_compiler_gnu
9275
9276
9277# Source file extension for C test sources.
9278ac_ext=c
9279
9280# Object file extension for compiled C test sources.
9281objext=o
9282objext=$objext
9283
9284# Code to be used in simple compile tests
9285lt_simple_compile_test_code="int some_variable = 0;\n"
9286
9287# Code to be used in simple link tests
9288lt_simple_link_test_code='int main(){return(0);}\n'
9289
9290
9291# If no C compiler was specified, use CC.
9292LTCC=${LTCC-"$CC"}
9293
9294# If no C compiler flags were specified, use CFLAGS.
9295LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9296
9297# Allow CC to be a program name with arguments.
9298compiler=$CC
9299
9300
9301# save warnings/boilerplate of simple test code
9302ac_outfile=conftest.$ac_objext
9303printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9304eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9305_lt_compiler_boilerplate=`cat conftest.err`
9306$rm conftest*
9307
9308ac_outfile=conftest.$ac_objext
9309printf "$lt_simple_link_test_code" >conftest.$ac_ext
9310eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9311_lt_linker_boilerplate=`cat conftest.err`
9312$rm conftest*
9313
9314
9315## CAVEAT EMPTOR:
9316## There is no encapsulation within the following macros, do not change
9317## the running order or otherwise move them around unless you know exactly
9318## what you are doing...
9319
9320lt_prog_compiler_no_builtin_flag=
9321
9322if test "$GCC" = yes; then
9323  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9324
9325
9326echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9327echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9328if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9329  echo $ECHO_N "(cached) $ECHO_C" >&6
9330else
9331  lt_cv_prog_compiler_rtti_exceptions=no
9332  ac_outfile=conftest.$ac_objext
9333   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9334   lt_compiler_flag="-fno-rtti -fno-exceptions"
9335   # Insert the option either (1) after the last *FLAGS variable, or
9336   # (2) before a word containing "conftest.", or (3) at the end.
9337   # Note that $ac_compile itself does not contain backslashes and begins
9338   # with a dollar sign (not a hyphen), so the echo should work correctly.
9339   # The option is referenced via a variable to avoid confusing sed.
9340   lt_compile=`echo "$ac_compile" | $SED \
9341   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9342   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9343   -e 's:$: $lt_compiler_flag:'`
9344   (eval echo "\"\$as_me:9344: $lt_compile\"" >&5)
9345   (eval "$lt_compile" 2>conftest.err)
9346   ac_status=$?
9347   cat conftest.err >&5
9348   echo "$as_me:9348: \$? = $ac_status" >&5
9349   if (exit $ac_status) && test -s "$ac_outfile"; then
9350     # The compiler can only warn and ignore the option if not recognized
9351     # So say no if there are warnings other than the usual output.
9352     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9353     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9354     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9355       lt_cv_prog_compiler_rtti_exceptions=yes
9356     fi
9357   fi
9358   $rm conftest*
9359
9360fi
9361echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9362echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9363
9364if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9365    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9366else
9367    :
9368fi
9369
9370fi
9371
9372lt_prog_compiler_wl=
9373lt_prog_compiler_pic=
9374lt_prog_compiler_static=
9375
9376echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9377echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9378
9379  if test "$GCC" = yes; then
9380    lt_prog_compiler_wl='-Wl,'
9381    lt_prog_compiler_static='-static'
9382
9383    case $host_os in
9384      aix*)
9385      # All AIX code is PIC.
9386      if test "$host_cpu" = ia64; then
9387        # AIX 5 now supports IA64 processor
9388        lt_prog_compiler_static='-Bstatic'
9389      fi
9390      ;;
9391
9392    amigaos*)
9393      # FIXME: we need at least 68020 code to build shared libraries, but
9394      # adding the `-m68020' flag to GCC prevents building anything better,
9395      # like `-m68040'.
9396      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9397      ;;
9398
9399    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9400      # PIC is the default for these OSes.
9401      ;;
9402
9403    mingw* | pw32* | os2*)
9404      # This hack is so that the source file can tell whether it is being
9405      # built for inclusion in a dll (and should export symbols for example).
9406      lt_prog_compiler_pic='-DDLL_EXPORT'
9407      ;;
9408
9409    darwin* | rhapsody*)
9410      # PIC is the default on this platform
9411      # Common symbols not allowed in MH_DYLIB files
9412      lt_prog_compiler_pic='-fno-common'
9413      ;;
9414
9415    interix3*)
9416      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9417      # Instead, we relocate shared libraries at runtime.
9418      ;;
9419
9420    msdosdjgpp*)
9421      # Just because we use GCC doesn't mean we suddenly get shared libraries
9422      # on systems that don't support them.
9423      lt_prog_compiler_can_build_shared=no
9424      enable_shared=no
9425      ;;
9426
9427    sysv4*MP*)
9428      if test -d /usr/nec; then
9429        lt_prog_compiler_pic=-Kconform_pic
9430      fi
9431      ;;
9432
9433    hpux*)
9434      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9435      # not for PA HP-UX.
9436      case $host_cpu in
9437      hppa*64*|ia64*)
9438        # +Z the default
9439        ;;
9440      *)
9441        lt_prog_compiler_pic='-fPIC'
9442        ;;
9443      esac
9444      ;;
9445
9446    *)
9447      lt_prog_compiler_pic='-fPIC'
9448      ;;
9449    esac
9450  else
9451    # PORTME Check for flag to pass linker flags through the system compiler.
9452    case $host_os in
9453    aix*)
9454      lt_prog_compiler_wl='-Wl,'
9455      if test "$host_cpu" = ia64; then
9456        # AIX 5 now supports IA64 processor
9457        lt_prog_compiler_static='-Bstatic'
9458      else
9459        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9460      fi
9461      ;;
9462      darwin*)
9463        # PIC is the default on this platform
9464        # Common symbols not allowed in MH_DYLIB files
9465       case $cc_basename in
9466         xlc*)
9467         lt_prog_compiler_pic='-qnocommon'
9468         lt_prog_compiler_wl='-Wl,'
9469         ;;
9470       esac
9471       ;;
9472
9473    mingw* | pw32* | os2*)
9474      # This hack is so that the source file can tell whether it is being
9475      # built for inclusion in a dll (and should export symbols for example).
9476      lt_prog_compiler_pic='-DDLL_EXPORT'
9477      ;;
9478
9479    hpux9* | hpux10* | hpux11*)
9480      lt_prog_compiler_wl='-Wl,'
9481      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9482      # not for PA HP-UX.
9483      case $host_cpu in
9484      hppa*64*|ia64*)
9485        # +Z the default
9486        ;;
9487      *)
9488        lt_prog_compiler_pic='+Z'
9489        ;;
9490      esac
9491      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9492      lt_prog_compiler_static='${wl}-a ${wl}archive'
9493      ;;
9494
9495    irix5* | irix6* | nonstopux*)
9496      lt_prog_compiler_wl='-Wl,'
9497      # PIC (with -KPIC) is the default.
9498      lt_prog_compiler_static='-non_shared'
9499      ;;
9500
9501    newsos6)
9502      lt_prog_compiler_pic='-KPIC'
9503      lt_prog_compiler_static='-Bstatic'
9504      ;;
9505
9506    linux*)
9507      case $cc_basename in
9508      icc* | ecc*)
9509        lt_prog_compiler_wl='-Wl,'
9510        lt_prog_compiler_pic='-KPIC'
9511        lt_prog_compiler_static='-static'
9512        ;;
9513      pgcc* | pgf77* | pgf90* | pgf95*)
9514        # Portland Group compilers (*not* the Pentium gcc compiler,
9515        # which looks to be a dead project)
9516        lt_prog_compiler_wl='-Wl,'
9517        lt_prog_compiler_pic='-fpic'
9518        lt_prog_compiler_static='-Bstatic'
9519        ;;
9520      ccc*)
9521        lt_prog_compiler_wl='-Wl,'
9522        # All Alpha code is PIC.
9523        lt_prog_compiler_static='-non_shared'
9524        ;;
9525      esac
9526      ;;
9527
9528    osf3* | osf4* | osf5*)
9529      lt_prog_compiler_wl='-Wl,'
9530      # All OSF/1 code is PIC.
9531      lt_prog_compiler_static='-non_shared'
9532      ;;
9533
9534    solaris*)
9535      lt_prog_compiler_pic='-KPIC'
9536      lt_prog_compiler_static='-Bstatic'
9537      case $cc_basename in
9538      f77* | f90* | f95*)
9539        lt_prog_compiler_wl='-Qoption ld ';;
9540      *)
9541        lt_prog_compiler_wl='-Wl,';;
9542      esac
9543      ;;
9544
9545    sunos4*)
9546      lt_prog_compiler_wl='-Qoption ld '
9547      lt_prog_compiler_pic='-PIC'
9548      lt_prog_compiler_static='-Bstatic'
9549      ;;
9550
9551    sysv4 | sysv4.2uw2* | sysv4.3*)
9552      lt_prog_compiler_wl='-Wl,'
9553      lt_prog_compiler_pic='-KPIC'
9554      lt_prog_compiler_static='-Bstatic'
9555      ;;
9556
9557    sysv4*MP*)
9558      if test -d /usr/nec ;then
9559        lt_prog_compiler_pic='-Kconform_pic'
9560        lt_prog_compiler_static='-Bstatic'
9561      fi
9562      ;;
9563
9564    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9565      lt_prog_compiler_wl='-Wl,'
9566      lt_prog_compiler_pic='-KPIC'
9567      lt_prog_compiler_static='-Bstatic'
9568      ;;
9569
9570    unicos*)
9571      lt_prog_compiler_wl='-Wl,'
9572      lt_prog_compiler_can_build_shared=no
9573      ;;
9574
9575    uts4*)
9576      lt_prog_compiler_pic='-pic'
9577      lt_prog_compiler_static='-Bstatic'
9578      ;;
9579
9580    *)
9581      lt_prog_compiler_can_build_shared=no
9582      ;;
9583    esac
9584  fi
9585
9586echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9587echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9588
9589#
9590# Check to make sure the PIC flag actually works.
9591#
9592if test -n "$lt_prog_compiler_pic"; then
9593
9594echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9595echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9596if test "${lt_prog_compiler_pic_works+set}" = set; then
9597  echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599  lt_prog_compiler_pic_works=no
9600  ac_outfile=conftest.$ac_objext
9601   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9602   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9603   # Insert the option either (1) after the last *FLAGS variable, or
9604   # (2) before a word containing "conftest.", or (3) at the end.
9605   # Note that $ac_compile itself does not contain backslashes and begins
9606   # with a dollar sign (not a hyphen), so the echo should work correctly.
9607   # The option is referenced via a variable to avoid confusing sed.
9608   lt_compile=`echo "$ac_compile" | $SED \
9609   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9610   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9611   -e 's:$: $lt_compiler_flag:'`
9612   (eval echo "\"\$as_me:9612: $lt_compile\"" >&5)
9613   (eval "$lt_compile" 2>conftest.err)
9614   ac_status=$?
9615   cat conftest.err >&5
9616   echo "$as_me:9616: \$? = $ac_status" >&5
9617   if (exit $ac_status) && test -s "$ac_outfile"; then
9618     # The compiler can only warn and ignore the option if not recognized
9619     # So say no if there are warnings other than the usual output.
9620     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9621     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9622     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9623       lt_prog_compiler_pic_works=yes
9624     fi
9625   fi
9626   $rm conftest*
9627
9628fi
9629echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9630echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9631
9632if test x"$lt_prog_compiler_pic_works" = xyes; then
9633    case $lt_prog_compiler_pic in
9634     "" | " "*) ;;
9635     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9636     esac
9637else
9638    lt_prog_compiler_pic=
9639     lt_prog_compiler_can_build_shared=no
9640fi
9641
9642fi
9643case $host_os in
9644  # For platforms which do not support PIC, -DPIC is meaningless:
9645  *djgpp*)
9646    lt_prog_compiler_pic=
9647    ;;
9648  *)
9649    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9650    ;;
9651esac
9652
9653#
9654# Check to make sure the static flag actually works.
9655#
9656wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9657echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9658echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9659if test "${lt_prog_compiler_static_works+set}" = set; then
9660  echo $ECHO_N "(cached) $ECHO_C" >&6
9661else
9662  lt_prog_compiler_static_works=no
9663   save_LDFLAGS="$LDFLAGS"
9664   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9665   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9666   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9667     # The linker can only warn and ignore the option if not recognized
9668     # So say no if there are warnings
9669     if test -s conftest.err; then
9670       # Append any errors to the config.log.
9671       cat conftest.err 1>&5
9672       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9673       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9674       if diff conftest.exp conftest.er2 >/dev/null; then
9675         lt_prog_compiler_static_works=yes
9676       fi
9677     else
9678       lt_prog_compiler_static_works=yes
9679     fi
9680   fi
9681   $rm conftest*
9682   LDFLAGS="$save_LDFLAGS"
9683
9684fi
9685echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9686echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9687
9688if test x"$lt_prog_compiler_static_works" = xyes; then
9689    :
9690else
9691    lt_prog_compiler_static=
9692fi
9693
9694
9695echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9696echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9697if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9698  echo $ECHO_N "(cached) $ECHO_C" >&6
9699else
9700  lt_cv_prog_compiler_c_o=no
9701   $rm -r conftest 2>/dev/null
9702   mkdir conftest
9703   cd conftest
9704   mkdir out
9705   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9706
9707   lt_compiler_flag="-o out/conftest2.$ac_objext"
9708   # Insert the option either (1) after the last *FLAGS variable, or
9709   # (2) before a word containing "conftest.", or (3) at the end.
9710   # Note that $ac_compile itself does not contain backslashes and begins
9711   # with a dollar sign (not a hyphen), so the echo should work correctly.
9712   lt_compile=`echo "$ac_compile" | $SED \
9713   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9714   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9715   -e 's:$: $lt_compiler_flag:'`
9716   (eval echo "\"\$as_me:9716: $lt_compile\"" >&5)
9717   (eval "$lt_compile" 2>out/conftest.err)
9718   ac_status=$?
9719   cat out/conftest.err >&5
9720   echo "$as_me:9720: \$? = $ac_status" >&5
9721   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9722   then
9723     # The compiler can only warn and ignore the option if not recognized
9724     # So say no if there are warnings
9725     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9726     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9727     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9728       lt_cv_prog_compiler_c_o=yes
9729     fi
9730   fi
9731   chmod u+w . 2>&5
9732   $rm conftest*
9733   # SGI C++ compiler will create directory out/ii_files/ for
9734   # template instantiation
9735   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9736   $rm out/* && rmdir out
9737   cd ..
9738   rmdir conftest
9739   $rm conftest*
9740
9741fi
9742echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9743echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9744
9745
9746hard_links="nottested"
9747if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9748  # do not overwrite the value of need_locks provided by the user
9749  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9750echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9751  hard_links=yes
9752  $rm conftest*
9753  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9754  touch conftest.a
9755  ln conftest.a conftest.b 2>&5 || hard_links=no
9756  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9757  echo "$as_me:$LINENO: result: $hard_links" >&5
9758echo "${ECHO_T}$hard_links" >&6
9759  if test "$hard_links" = no; then
9760    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9761echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9762    need_locks=warn
9763  fi
9764else
9765  need_locks=no
9766fi
9767
9768echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9769echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9770
9771  runpath_var=
9772  allow_undefined_flag=
9773  enable_shared_with_static_runtimes=no
9774  archive_cmds=
9775  archive_expsym_cmds=
9776  old_archive_From_new_cmds=
9777  old_archive_from_expsyms_cmds=
9778  export_dynamic_flag_spec=
9779  whole_archive_flag_spec=
9780  thread_safe_flag_spec=
9781  hardcode_libdir_flag_spec=
9782  hardcode_libdir_flag_spec_ld=
9783  hardcode_libdir_separator=
9784  hardcode_direct=no
9785  hardcode_minus_L=no
9786  hardcode_shlibpath_var=unsupported
9787  link_all_deplibs=unknown
9788  hardcode_automatic=no
9789  module_cmds=
9790  module_expsym_cmds=
9791  always_export_symbols=no
9792  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9793  # include_expsyms should be a list of space-separated symbols to be *always*
9794  # included in the symbol list
9795  include_expsyms=
9796  # exclude_expsyms can be an extended regexp of symbols to exclude
9797  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9798  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9799  # as well as any symbol that contains `d'.
9800  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9801  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9802  # platforms (ab)use it in PIC code, but their linkers get confused if
9803  # the symbol is explicitly referenced.  Since portable code cannot
9804  # rely on this symbol name, it's probably fine to never include it in
9805  # preloaded symbol tables.
9806  extract_expsyms_cmds=
9807  # Just being paranoid about ensuring that cc_basename is set.
9808  for cc_temp in $compiler""; do
9809  case $cc_temp in
9810    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9811    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9812    \-*) ;;
9813    *) break;;
9814  esac
9815done
9816cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9817
9818  case $host_os in
9819  cygwin* | mingw* | pw32*)
9820    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9821    # When not using gcc, we currently assume that we are using
9822    # Microsoft Visual C++.
9823    if test "$GCC" != yes; then
9824      with_gnu_ld=no
9825    fi
9826    ;;
9827  interix*)
9828    # we just hope/assume this is gcc and not c89 (= MSVC++)
9829    with_gnu_ld=yes
9830    ;;
9831  openbsd*)
9832    with_gnu_ld=no
9833    ;;
9834  esac
9835
9836  ld_shlibs=yes
9837  if test "$with_gnu_ld" = yes; then
9838    # If archive_cmds runs LD, not CC, wlarc should be empty
9839    wlarc='${wl}'
9840
9841    # Set some defaults for GNU ld with shared library support. These
9842    # are reset later if shared libraries are not supported. Putting them
9843    # here allows them to be overridden if necessary.
9844    runpath_var=LD_RUN_PATH
9845    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9846    export_dynamic_flag_spec='${wl}--export-dynamic'
9847    # ancient GNU ld didn't support --whole-archive et. al.
9848    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9849        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9850      else
9851        whole_archive_flag_spec=
9852    fi
9853    supports_anon_versioning=no
9854    case `$LD -v 2>/dev/null` in
9855      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9856      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9857      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9858      *\ 2.11.*) ;; # other 2.11 versions
9859      *) supports_anon_versioning=yes ;;
9860    esac
9861
9862    # See if GNU ld supports shared libraries.
9863    case $host_os in
9864    aix3* | aix4* | aix5*)
9865      # On AIX/PPC, the GNU linker is very broken
9866      if test "$host_cpu" != ia64; then
9867        ld_shlibs=no
9868        cat <<EOF 1>&2
9869
9870*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9871*** to be unable to reliably create shared libraries on AIX.
9872*** Therefore, libtool is disabling shared libraries support.  If you
9873*** really care for shared libraries, you may want to modify your PATH
9874*** so that a non-GNU linker is found, and then restart.
9875
9876EOF
9877      fi
9878      ;;
9879
9880    amigaos*)
9881      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)'
9882      hardcode_libdir_flag_spec='-L$libdir'
9883      hardcode_minus_L=yes
9884
9885      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9886      # that the semantics of dynamic libraries on AmigaOS, at least up
9887      # to version 4, is to share data among multiple programs linked
9888      # with the same dynamic library.  Since this doesn't match the
9889      # behavior of shared libraries on other platforms, we can't use
9890      # them.
9891      ld_shlibs=no
9892      ;;
9893
9894    beos*)
9895      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9896        allow_undefined_flag=unsupported
9897        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9898        # support --undefined.  This deserves some investigation.  FIXME
9899        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9900      else
9901        ld_shlibs=no
9902      fi
9903      ;;
9904
9905    cygwin* | mingw* | pw32*)
9906      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9907      # as there is no search path for DLLs.
9908      hardcode_libdir_flag_spec='-L$libdir'
9909      allow_undefined_flag=unsupported
9910      always_export_symbols=no
9911      enable_shared_with_static_runtimes=yes
9912      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9913
9914      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9915        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9916        # If the export-symbols file already is a .def file (1st line
9917        # is EXPORTS), use it as is; otherwise, prepend...
9918        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9919          cp $export_symbols $output_objdir/$soname.def;
9920        else
9921          echo EXPORTS > $output_objdir/$soname.def;
9922          cat $export_symbols >> $output_objdir/$soname.def;
9923        fi~
9924        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9925      else
9926        ld_shlibs=no
9927      fi
9928      ;;
9929
9930    interix3*)
9931      hardcode_direct=no
9932      hardcode_shlibpath_var=no
9933      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9934      export_dynamic_flag_spec='${wl}-E'
9935      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9936      # Instead, shared libraries are loaded at an image base (0x10000000 by
9937      # default) and relocated if they conflict, which is a slow very memory
9938      # consuming and fragmenting process.  To avoid this, we pick a random,
9939      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9940      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9941      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9942      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'
9943      ;;
9944
9945    linux*)
9946      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9947        tmp_addflag=
9948        case $cc_basename,$host_cpu in
9949        pgcc*)                          # Portland Group C compiler
9950          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'
9951          tmp_addflag=' $pic_flag'
9952          ;;
9953        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9954          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'
9955          tmp_addflag=' $pic_flag -Mnomain' ;;
9956        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9957          tmp_addflag=' -i_dynamic' ;;
9958        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9959          tmp_addflag=' -i_dynamic -nofor_main' ;;
9960        ifc* | ifort*)                  # Intel Fortran compiler
9961          tmp_addflag=' -nofor_main' ;;
9962        esac
9963        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9964
9965        if test $supports_anon_versioning = yes; then
9966          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9967  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9968  $echo "local: *; };" >> $output_objdir/$libname.ver~
9969          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9970        fi
9971      else
9972        ld_shlibs=no
9973      fi
9974      ;;
9975
9976    netbsd*)
9977      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9978        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9979        wlarc=
9980      else
9981        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983      fi
9984      ;;
9985
9986    solaris*)
9987      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9988        ld_shlibs=no
9989        cat <<EOF 1>&2
9990
9991*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9992*** create shared libraries on Solaris systems.  Therefore, libtool
9993*** is disabling shared libraries support.  We urge you to upgrade GNU
9994*** binutils to release 2.9.1 or newer.  Another option is to modify
9995*** your PATH or compiler configuration so that the native linker is
9996*** used, and then restart.
9997
9998EOF
9999      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10000        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10002      else
10003        ld_shlibs=no
10004      fi
10005      ;;
10006
10007    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10008      case `$LD -v 2>&1` in
10009        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10010        ld_shlibs=no
10011        cat <<_LT_EOF 1>&2
10012
10013*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10014*** reliably create shared libraries on SCO systems.  Therefore, libtool
10015*** is disabling shared libraries support.  We urge you to upgrade GNU
10016*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10017*** your PATH or compiler configuration so that the native linker is
10018*** used, and then restart.
10019
10020_LT_EOF
10021        ;;
10022        *)
10023          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10024            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10025            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10026            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10027          else
10028            ld_shlibs=no
10029          fi
10030        ;;
10031      esac
10032      ;;
10033
10034    sunos4*)
10035      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10036      wlarc=
10037      hardcode_direct=yes
10038      hardcode_shlibpath_var=no
10039      ;;
10040
10041    *)
10042      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10043        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10044        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10045      else
10046        ld_shlibs=no
10047      fi
10048      ;;
10049    esac
10050
10051    if test "$ld_shlibs" = no; then
10052      runpath_var=
10053      hardcode_libdir_flag_spec=
10054      export_dynamic_flag_spec=
10055      whole_archive_flag_spec=
10056    fi
10057  else
10058    # PORTME fill in a description of your system's linker (not GNU ld)
10059    case $host_os in
10060    aix3*)
10061      allow_undefined_flag=unsupported
10062      always_export_symbols=yes
10063      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'
10064      # Note: this linker hardcodes the directories in LIBPATH if there
10065      # are no directories specified by -L.
10066      hardcode_minus_L=yes
10067      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10068        # Neither direct hardcoding nor static linking is supported with a
10069        # broken collect2.
10070        hardcode_direct=unsupported
10071      fi
10072      ;;
10073
10074    aix4* | aix5*)
10075      if test "$host_cpu" = ia64; then
10076        # On IA64, the linker does run time linking by default, so we don't
10077        # have to do anything special.
10078        aix_use_runtimelinking=no
10079        exp_sym_flag='-Bexport'
10080        no_entry_flag=""
10081      else
10082        # If we're using GNU nm, then we don't want the "-C" option.
10083        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10084        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10085          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'
10086        else
10087          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'
10088        fi
10089        aix_use_runtimelinking=no
10090
10091        # Test if we are trying to use run time linking or normal
10092        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10093        # need to do runtime linking.
10094        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10095          for ld_flag in $LDFLAGS; do
10096          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10097            aix_use_runtimelinking=yes
10098            break
10099          fi
10100          done
10101          ;;
10102        esac
10103
10104        exp_sym_flag='-bexport'
10105        no_entry_flag='-bnoentry'
10106      fi
10107
10108      # When large executables or shared objects are built, AIX ld can
10109      # have problems creating the table of contents.  If linking a library
10110      # or program results in "error TOC overflow" add -mminimal-toc to
10111      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10112      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10113
10114      archive_cmds=''
10115      hardcode_direct=yes
10116      hardcode_libdir_separator=':'
10117      link_all_deplibs=yes
10118
10119      if test "$GCC" = yes; then
10120        case $host_os in aix4.[012]|aix4.[012].*)
10121        # We only want to do this on AIX 4.2 and lower, the check
10122        # below for broken collect2 doesn't work under 4.3+
10123          collect2name=`${CC} -print-prog-name=collect2`
10124          if test -f "$collect2name" && \
10125           strings "$collect2name" | grep resolve_lib_name >/dev/null
10126          then
10127          # We have reworked collect2
10128          hardcode_direct=yes
10129          else
10130          # We have old collect2
10131          hardcode_direct=unsupported
10132          # It fails to find uninstalled libraries when the uninstalled
10133          # path is not listed in the libpath.  Setting hardcode_minus_L
10134          # to unsupported forces relinking
10135          hardcode_minus_L=yes
10136          hardcode_libdir_flag_spec='-L$libdir'
10137          hardcode_libdir_separator=
10138          fi
10139          ;;
10140        esac
10141        shared_flag='-shared'
10142        if test "$aix_use_runtimelinking" = yes; then
10143          shared_flag="$shared_flag "'${wl}-G'
10144        fi
10145      else
10146        # not using gcc
10147        if test "$host_cpu" = ia64; then
10148        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10149        # chokes on -Wl,-G. The following line is correct:
10150          shared_flag='-G'
10151        else
10152          if test "$aix_use_runtimelinking" = yes; then
10153            shared_flag='${wl}-G'
10154          else
10155            shared_flag='${wl}-bM:SRE'
10156          fi
10157        fi
10158      fi
10159
10160      # It seems that -bexpall does not export symbols beginning with
10161      # underscore (_), so it is better to generate a list of symbols to export.
10162      always_export_symbols=yes
10163      if test "$aix_use_runtimelinking" = yes; then
10164        # Warning - without using the other runtime loading flags (-brtl),
10165        # -berok will link without error, but may produce a broken library.
10166        allow_undefined_flag='-berok'
10167       # Determine the default libpath from the value encoded in an empty executable.
10168       cat >conftest.$ac_ext <<_ACEOF
10169/* confdefs.h.  */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h.  */
10174
10175#ifdef F77_DUMMY_MAIN
10176
10177#  ifdef __cplusplus
10178     extern "C"
10179#  endif
10180   int F77_DUMMY_MAIN() { return 1; }
10181
10182#endif
10183int
10184main ()
10185{
10186
10187  ;
10188  return 0;
10189}
10190_ACEOF
10191rm -f conftest.$ac_objext conftest$ac_exeext
10192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193  (eval $ac_link) 2>conftest.er1
10194  ac_status=$?
10195  grep -v '^ *+' conftest.er1 >conftest.err
10196  rm -f conftest.er1
10197  cat conftest.err >&5
10198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199  (exit $ac_status); } &&
10200         { ac_try='test -z "$ac_c_werror_flag"
10201                         || test ! -s conftest.err'
10202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203  (eval $ac_try) 2>&5
10204  ac_status=$?
10205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206  (exit $ac_status); }; } &&
10207         { ac_try='test -s conftest$ac_exeext'
10208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209  (eval $ac_try) 2>&5
10210  ac_status=$?
10211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212  (exit $ac_status); }; }; then
10213
10214aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10215}'`
10216# Check for a 64-bit object if we didn't find anything.
10217if 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; }
10218}'`; fi
10219else
10220  echo "$as_me: failed program was:" >&5
10221sed 's/^/| /' conftest.$ac_ext >&5
10222
10223fi
10224rm -f conftest.err conftest.$ac_objext \
10225      conftest$ac_exeext conftest.$ac_ext
10226if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10227
10228       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10229        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"
10230       else
10231        if test "$host_cpu" = ia64; then
10232          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10233          allow_undefined_flag="-z nodefs"
10234          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"
10235        else
10236         # Determine the default libpath from the value encoded in an empty executable.
10237         cat >conftest.$ac_ext <<_ACEOF
10238/* confdefs.h.  */
10239_ACEOF
10240cat confdefs.h >>conftest.$ac_ext
10241cat >>conftest.$ac_ext <<_ACEOF
10242/* end confdefs.h.  */
10243
10244#ifdef F77_DUMMY_MAIN
10245
10246#  ifdef __cplusplus
10247     extern "C"
10248#  endif
10249   int F77_DUMMY_MAIN() { return 1; }
10250
10251#endif
10252int
10253main ()
10254{
10255
10256  ;
10257  return 0;
10258}
10259_ACEOF
10260rm -f conftest.$ac_objext conftest$ac_exeext
10261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262  (eval $ac_link) 2>conftest.er1
10263  ac_status=$?
10264  grep -v '^ *+' conftest.er1 >conftest.err
10265  rm -f conftest.er1
10266  cat conftest.err >&5
10267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268  (exit $ac_status); } &&
10269         { ac_try='test -z "$ac_c_werror_flag"
10270                         || test ! -s conftest.err'
10271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272  (eval $ac_try) 2>&5
10273  ac_status=$?
10274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); }; } &&
10276         { ac_try='test -s conftest$ac_exeext'
10277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278  (eval $ac_try) 2>&5
10279  ac_status=$?
10280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281  (exit $ac_status); }; }; then
10282
10283aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10284}'`
10285# Check for a 64-bit object if we didn't find anything.
10286if 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; }
10287}'`; fi
10288else
10289  echo "$as_me: failed program was:" >&5
10290sed 's/^/| /' conftest.$ac_ext >&5
10291
10292fi
10293rm -f conftest.err conftest.$ac_objext \
10294      conftest$ac_exeext conftest.$ac_ext
10295if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10296
10297         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10298          # Warning - without using the other run time loading flags,
10299          # -berok will link without error, but may produce a broken library.
10300          no_undefined_flag=' ${wl}-bernotok'
10301          allow_undefined_flag=' ${wl}-berok'
10302          # Exported symbols can be pulled into shared objects from archives
10303          whole_archive_flag_spec='$convenience'
10304          archive_cmds_need_lc=yes
10305          # This is similar to how AIX traditionally builds its shared libraries.
10306          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'
10307        fi
10308      fi
10309      ;;
10310
10311    amigaos*)
10312      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)'
10313      hardcode_libdir_flag_spec='-L$libdir'
10314      hardcode_minus_L=yes
10315      # see comment about different semantics on the GNU ld section
10316      ld_shlibs=no
10317      ;;
10318
10319    bsdi[45]*)
10320      export_dynamic_flag_spec=-rdynamic
10321      ;;
10322
10323    cygwin* | mingw* | pw32*)
10324      # When not using gcc, we currently assume that we are using
10325      # Microsoft Visual C++.
10326      # hardcode_libdir_flag_spec is actually meaningless, as there is
10327      # no search path for DLLs.
10328      hardcode_libdir_flag_spec=' '
10329      allow_undefined_flag=unsupported
10330      # Tell ltmain to make .lib files, not .a files.
10331      libext=lib
10332      # Tell ltmain to make .dll files, not .so files.
10333      shrext_cmds=".dll"
10334      # FIXME: Setting linknames here is a bad hack.
10335      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10336      # The linker will automatically build a .lib file if we build a DLL.
10337      old_archive_From_new_cmds='true'
10338      # FIXME: Should let the user specify the lib program.
10339      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10340      fix_srcfile_path='`cygpath -w "$srcfile"`'
10341      enable_shared_with_static_runtimes=yes
10342      ;;
10343
10344    darwin* | rhapsody*)
10345      case $host_os in
10346        rhapsody* | darwin1.[012])
10347         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10348         ;;
10349       *) # Darwin 1.3 on
10350         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10351           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10352         else
10353           case ${MACOSX_DEPLOYMENT_TARGET} in
10354             10.[012])
10355               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10356               ;;
10357             10.*)
10358               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10359               ;;
10360           esac
10361         fi
10362         ;;
10363      esac
10364      archive_cmds_need_lc=no
10365      hardcode_direct=no
10366      hardcode_automatic=yes
10367      hardcode_shlibpath_var=unsupported
10368      whole_archive_flag_spec=''
10369      link_all_deplibs=yes
10370    if test "$GCC" = yes ; then
10371        output_verbose_link_cmd='echo'
10372        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10373      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10374      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10375      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}'
10376      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}'
10377    else
10378      case $cc_basename in
10379        xlc*)
10380         output_verbose_link_cmd='echo'
10381         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10382         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10383          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10384         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}'
10385          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}'
10386          ;;
10387       *)
10388         ld_shlibs=no
10389          ;;
10390      esac
10391    fi
10392      ;;
10393
10394    dgux*)
10395      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396      hardcode_libdir_flag_spec='-L$libdir'
10397      hardcode_shlibpath_var=no
10398      ;;
10399
10400    freebsd1*)
10401      ld_shlibs=no
10402      ;;
10403
10404    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10405    # support.  Future versions do this automatically, but an explicit c++rt0.o
10406    # does not break anything, and helps significantly (at the cost of a little
10407    # extra space).
10408    freebsd2.2*)
10409      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10410      hardcode_libdir_flag_spec='-R$libdir'
10411      hardcode_direct=yes
10412      hardcode_shlibpath_var=no
10413      ;;
10414
10415    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10416    freebsd2*)
10417      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10418      hardcode_direct=yes
10419      hardcode_minus_L=yes
10420      hardcode_shlibpath_var=no
10421      ;;
10422
10423    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10424    freebsd* | kfreebsd*-gnu | dragonfly*)
10425      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10426      hardcode_libdir_flag_spec='-R$libdir'
10427      hardcode_direct=yes
10428      hardcode_shlibpath_var=no
10429      ;;
10430
10431    hpux9*)
10432      if test "$GCC" = yes; then
10433        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'
10434      else
10435        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'
10436      fi
10437      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10438      hardcode_libdir_separator=:
10439      hardcode_direct=yes
10440
10441      # hardcode_minus_L: Not really in the search PATH,
10442      # but as the default location of the library.
10443      hardcode_minus_L=yes
10444      export_dynamic_flag_spec='${wl}-E'
10445      ;;
10446
10447    hpux10*)
10448      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10449        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10450      else
10451        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10452      fi
10453      if test "$with_gnu_ld" = no; then
10454        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10455        hardcode_libdir_separator=:
10456
10457        hardcode_direct=yes
10458        export_dynamic_flag_spec='${wl}-E'
10459
10460        # hardcode_minus_L: Not really in the search PATH,
10461        # but as the default location of the library.
10462        hardcode_minus_L=yes
10463      fi
10464      ;;
10465
10466    hpux11*)
10467      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10468        case $host_cpu in
10469        hppa*64*)
10470          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10471          ;;
10472        ia64*)
10473          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10474          ;;
10475        *)
10476          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10477          ;;
10478        esac
10479      else
10480        case $host_cpu in
10481        hppa*64*)
10482          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10483          ;;
10484        ia64*)
10485          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10486          ;;
10487        *)
10488          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10489          ;;
10490        esac
10491      fi
10492      if test "$with_gnu_ld" = no; then
10493        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10494        hardcode_libdir_separator=:
10495
10496        case $host_cpu in
10497        hppa*64*|ia64*)
10498          hardcode_libdir_flag_spec_ld='+b $libdir'
10499          hardcode_direct=no
10500          hardcode_shlibpath_var=no
10501          ;;
10502        *)
10503          hardcode_direct=yes
10504          export_dynamic_flag_spec='${wl}-E'
10505
10506          # hardcode_minus_L: Not really in the search PATH,
10507          # but as the default location of the library.
10508          hardcode_minus_L=yes
10509          ;;
10510        esac
10511      fi
10512      ;;
10513
10514    irix5* | irix6* | nonstopux*)
10515      if test "$GCC" = yes; then
10516        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'
10517      else
10518        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'
10519        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10520      fi
10521      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10522      hardcode_libdir_separator=:
10523      link_all_deplibs=yes
10524      ;;
10525
10526    netbsd*)
10527      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10528        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10529      else
10530        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10531      fi
10532      hardcode_libdir_flag_spec='-R$libdir'
10533      hardcode_direct=yes
10534      hardcode_shlibpath_var=no
10535      ;;
10536
10537    newsos6)
10538      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10539      hardcode_direct=yes
10540      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541      hardcode_libdir_separator=:
10542      hardcode_shlibpath_var=no
10543      ;;
10544
10545    openbsd*)
10546      hardcode_direct=yes
10547      hardcode_shlibpath_var=no
10548      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10549        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10550        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10551        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10552        export_dynamic_flag_spec='${wl}-E'
10553      else
10554       case $host_os in
10555         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10556           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10557           hardcode_libdir_flag_spec='-R$libdir'
10558           ;;
10559         *)
10560           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10561           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10562           ;;
10563       esac
10564      fi
10565      ;;
10566
10567    os2*)
10568      hardcode_libdir_flag_spec='-L$libdir'
10569      hardcode_minus_L=yes
10570      allow_undefined_flag=unsupported
10571      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'
10572      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10573      ;;
10574
10575    osf3*)
10576      if test "$GCC" = yes; then
10577        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10578        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'
10579      else
10580        allow_undefined_flag=' -expect_unresolved \*'
10581        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'
10582      fi
10583      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10584      hardcode_libdir_separator=:
10585      ;;
10586
10587    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10588      if test "$GCC" = yes; then
10589        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10590        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'
10591        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10592      else
10593        allow_undefined_flag=' -expect_unresolved \*'
10594        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'
10595        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10596        $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'
10597
10598        # Both c and cxx compiler support -rpath directly
10599        hardcode_libdir_flag_spec='-rpath $libdir'
10600      fi
10601      hardcode_libdir_separator=:
10602      ;;
10603
10604    solaris*)
10605      no_undefined_flag=' -z text'
10606      if test "$GCC" = yes; then
10607        wlarc='${wl}'
10608        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10609        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10610          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10611      else
10612        wlarc=''
10613        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10615        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10616      fi
10617      hardcode_libdir_flag_spec='-R$libdir'
10618      hardcode_shlibpath_var=no
10619      case $host_os in
10620      solaris2.[0-5] | solaris2.[0-5].*) ;;
10621      *)
10622        # The compiler driver will combine linker options so we
10623        # cannot just pass the convience library names through
10624        # without $wl, iff we do not link with $LD.
10625        # Luckily, gcc supports the same syntax we need for Sun Studio.
10626        # Supported since Solaris 2.6 (maybe 2.5.1?)
10627        case $wlarc in
10628        '')
10629          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10630        *)
10631          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' ;;
10632        esac ;;
10633      esac
10634      link_all_deplibs=yes
10635      ;;
10636
10637    sunos4*)
10638      if test "x$host_vendor" = xsequent; then
10639        # Use $CC to link under sequent, because it throws in some extra .o
10640        # files that make .init and .fini sections work.
10641        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10642      else
10643        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10644      fi
10645      hardcode_libdir_flag_spec='-L$libdir'
10646      hardcode_direct=yes
10647      hardcode_minus_L=yes
10648      hardcode_shlibpath_var=no
10649      ;;
10650
10651    sysv4)
10652      case $host_vendor in
10653        sni)
10654          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10655          hardcode_direct=yes # is this really true???
10656        ;;
10657        siemens)
10658          ## LD is ld it makes a PLAMLIB
10659          ## CC just makes a GrossModule.
10660          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10661          reload_cmds='$CC -r -o $output$reload_objs'
10662          hardcode_direct=no
10663        ;;
10664        motorola)
10665          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10667        ;;
10668      esac
10669      runpath_var='LD_RUN_PATH'
10670      hardcode_shlibpath_var=no
10671      ;;
10672
10673    sysv4.3*)
10674      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10675      hardcode_shlibpath_var=no
10676      export_dynamic_flag_spec='-Bexport'
10677      ;;
10678
10679    sysv4*MP*)
10680      if test -d /usr/nec; then
10681        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10682        hardcode_shlibpath_var=no
10683        runpath_var=LD_RUN_PATH
10684        hardcode_runpath_var=yes
10685        ld_shlibs=yes
10686      fi
10687      ;;
10688
10689    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10690      no_undefined_flag='${wl}-z,text'
10691      archive_cmds_need_lc=no
10692      hardcode_shlibpath_var=no
10693      runpath_var='LD_RUN_PATH'
10694
10695      if test "$GCC" = yes; then
10696        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698      else
10699        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10700        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10701      fi
10702      ;;
10703
10704    sysv5* | sco3.2v5* | sco5v6*)
10705      # Note: We can NOT use -z defs as we might desire, because we do not
10706      # link with -lc, and that would cause any symbols used from libc to
10707      # always be unresolved, which means just about no library would
10708      # ever link correctly.  If we're not using GNU ld we use -z text
10709      # though, which does catch some bad symbols but isn't as heavy-handed
10710      # as -z defs.
10711      no_undefined_flag='${wl}-z,text'
10712      allow_undefined_flag='${wl}-z,nodefs'
10713      archive_cmds_need_lc=no
10714      hardcode_shlibpath_var=no
10715      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10716      hardcode_libdir_separator=':'
10717      link_all_deplibs=yes
10718      export_dynamic_flag_spec='${wl}-Bexport'
10719      runpath_var='LD_RUN_PATH'
10720
10721      if test "$GCC" = yes; then
10722        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10723        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10724      else
10725        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10726        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10727      fi
10728      ;;
10729
10730    uts4*)
10731      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10732      hardcode_libdir_flag_spec='-L$libdir'
10733      hardcode_shlibpath_var=no
10734      ;;
10735
10736    *)
10737      ld_shlibs=no
10738      ;;
10739    esac
10740  fi
10741
10742echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10743echo "${ECHO_T}$ld_shlibs" >&6
10744test "$ld_shlibs" = no && can_build_shared=no
10745
10746#
10747# Do we need to explicitly link libc?
10748#
10749case "x$archive_cmds_need_lc" in
10750x|xyes)
10751  # Assume -lc should be added
10752  archive_cmds_need_lc=yes
10753
10754  if test "$enable_shared" = yes && test "$GCC" = yes; then
10755    case $archive_cmds in
10756    *'~'*)
10757      # FIXME: we may have to deal with multi-command sequences.
10758      ;;
10759    '$CC '*)
10760      # Test whether the compiler implicitly links with -lc since on some
10761      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10762      # to ld, don't add -lc before -lgcc.
10763      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10764echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10765      $rm conftest*
10766      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10767
10768      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769  (eval $ac_compile) 2>&5
10770  ac_status=$?
10771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772  (exit $ac_status); } 2>conftest.err; then
10773        soname=conftest
10774        lib=conftest
10775        libobjs=conftest.$ac_objext
10776        deplibs=
10777        wl=$lt_prog_compiler_wl
10778        pic_flag=$lt_prog_compiler_pic
10779        compiler_flags=-v
10780        linker_flags=-v
10781        verstring=
10782        output_objdir=.
10783        libname=conftest
10784        lt_save_allow_undefined_flag=$allow_undefined_flag
10785        allow_undefined_flag=
10786        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10787  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10788  ac_status=$?
10789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790  (exit $ac_status); }
10791        then
10792          archive_cmds_need_lc=no
10793        else
10794          archive_cmds_need_lc=yes
10795        fi
10796        allow_undefined_flag=$lt_save_allow_undefined_flag
10797      else
10798        cat conftest.err 1>&5
10799      fi
10800      $rm conftest*
10801      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10802echo "${ECHO_T}$archive_cmds_need_lc" >&6
10803      ;;
10804    esac
10805  fi
10806  ;;
10807esac
10808
10809echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10810echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10811library_names_spec=
10812libname_spec='lib$name'
10813soname_spec=
10814shrext_cmds=".so"
10815postinstall_cmds=
10816postuninstall_cmds=
10817finish_cmds=