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

Last change on this file since 3526 was 3526, checked in by stefan, 5 years ago

restoring BuildTools/ThirdParty/Blas?/stable/1.4

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