source: ThirdParty/Blas/trunk/configure @ 3381

Last change on this file since 3381 was 3381, checked in by tkr, 5 years ago

Re-running the autotools

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