source: ThirdParty/Blas/stable/1.4/configure @ 3524

Last change on this file since 3524 was 3524, checked in by stefan, 4 years ago

temporarily committing release candidate

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