source: ThirdParty/Blas/trunk/configure @ 2137

Last change on this file since 2137 was 2137, checked in by stefan, 10 years ago

rerun autotools

  • Property svn:executable set to *
File size: 740.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyBlas trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion BLAS_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS BLAS_PCLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyBlas trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyBlas trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-blas compile this project (Blas) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-pkg-config     use pkg-config if available (default is yes)
1085  --enable-static[=PKGS]
1086                          build static libraries [default=no]
1087  --disable-dependency-tracking  speeds up one-time build
1088  --enable-dependency-tracking   do not reject slow dependency extractors
1089  --enable-maintainer-mode  enable make rules and dependencies not useful
1090                          (and sometimes confusing) to the casual installer
1091  --enable-shared[=PKGS]
1092                          build shared libraries [default=yes]
1093  --enable-fast-install[=PKGS]
1094                          optimize for fast installation [default=yes]
1095  --disable-libtool-lock  avoid locking (might break parallel builds)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-blas-verbosity specify the debug verbosity level for project Blas
1101  --with-blas-checklevel specify the sanity check level for project Blas
1102  --with-coin-instdir     prefix of installation directory for precompiled
1103                          COIN packages
1104  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1105  --with-pic              try to use only PIC/non-PIC objects [default=use
1106                          both]
1107  --with-tags[=TAGS]
1108                          include additional configurations [automatic]
1109
1110Some influential environment variables:
1111  CDEFS       Additional -D flags to be used when compiling C code.
1112  ADD_CFLAGS  Additional C compiler options
1113  DBG_CFLAGS  Debug C compiler options
1114  OPT_CFLAGS  Optimize C compiler options
1115  CC          C compiler command
1116  CFLAGS      C compiler flags
1117  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1118              nonstandard directory <lib dir>
1119  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1120              headers in a nonstandard directory <include dir>
1121  MPICC       C MPI Compiler
1122  ADD_FFLAGS  Additional Fortran compiler options
1123  DBG_FFLAGS  Debug Fortran compiler options
1124  OPT_FFLAGS  Optimize Fortran compiler options
1125  F77         Fortran 77 compiler command
1126  FFLAGS      Fortran 77 compiler flags
1127  MPIF77      Fortran MPI Compiler
1128  PKG_CONFIG  path to pkg-config utility
1129  CPP         C preprocessor
1130  CXX         C++ compiler command
1131  CXXFLAGS    C++ compiler flags
1132  CXXCPP      C++ preprocessor
1133
1134Use these variables to override the choices made by `configure' or to help
1135it to find libraries and programs with nonstandard names/locations.
1136
1137Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1138_ACEOF
1139fi
1140
1141if test "$ac_init_help" = "recursive"; then
1142  # If there are subdirs, report their specific --help.
1143  ac_popdir=`pwd`
1144  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1145    test -d $ac_dir || continue
1146    ac_builddir=.
1147
1148if test "$ac_dir" != .; then
1149  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1150  # A "../" for each directory in $ac_dir_suffix.
1151  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1152else
1153  ac_dir_suffix= ac_top_builddir=
1154fi
1155
1156case $srcdir in
1157  .)  # No --srcdir option.  We are building in place.
1158    ac_srcdir=.
1159    if test -z "$ac_top_builddir"; then
1160       ac_top_srcdir=.
1161    else
1162       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1163    fi ;;
1164  [\\/]* | ?:[\\/]* )  # Absolute path.
1165    ac_srcdir=$srcdir$ac_dir_suffix;
1166    ac_top_srcdir=$srcdir ;;
1167  *) # Relative path.
1168    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1169    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1170esac
1171
1172# Do not use `cd foo && pwd` to compute absolute paths, because
1173# the directories may not exist.
1174case `pwd` in
1175.) ac_abs_builddir="$ac_dir";;
1176*)
1177  case "$ac_dir" in
1178  .) ac_abs_builddir=`pwd`;;
1179  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1180  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1181  esac;;
1182esac
1183case $ac_abs_builddir in
1184.) ac_abs_top_builddir=${ac_top_builddir}.;;
1185*)
1186  case ${ac_top_builddir}. in
1187  .) ac_abs_top_builddir=$ac_abs_builddir;;
1188  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1189  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1190  esac;;
1191esac
1192case $ac_abs_builddir in
1193.) ac_abs_srcdir=$ac_srcdir;;
1194*)
1195  case $ac_srcdir in
1196  .) ac_abs_srcdir=$ac_abs_builddir;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1198  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_top_srcdir=$ac_top_srcdir;;
1203*)
1204  case $ac_top_srcdir in
1205  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1207  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1208  esac;;
1209esac
1210
1211    cd $ac_dir
1212    # Check for guested configure; otherwise get Cygnus style configure.
1213    if test -f $ac_srcdir/configure.gnu; then
1214      echo
1215      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1216    elif test -f $ac_srcdir/configure; then
1217      echo
1218      $SHELL $ac_srcdir/configure  --help=recursive
1219    elif test -f $ac_srcdir/configure.ac ||
1220           test -f $ac_srcdir/configure.in; then
1221      echo
1222      $ac_configure --help
1223    else
1224      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1225    fi
1226    cd $ac_popdir
1227  done
1228fi
1229
1230test -n "$ac_init_help" && exit 0
1231if $ac_init_version; then
1232  cat <<\_ACEOF
1233ThirdPartyBlas configure trunk
1234generated by GNU Autoconf 2.59
1235
1236Copyright (C) 2003 Free Software Foundation, Inc.
1237This configure script is free software; the Free Software Foundation
1238gives unlimited permission to copy, distribute and modify it.
1239
1240
1241Copyright 2006 International Business Machines and others.
1242All Rights Reserved.
1243This file is part of the open source package Coin which is distributed
1244under the Eclipse Public License.
1245_ACEOF
1246  exit 0
1247fi
1248exec 5>config.log
1249cat >&5 <<_ACEOF
1250This file contains any messages produced by compilers while
1251running configure, to aid debugging if configure makes a mistake.
1252
1253It was created by ThirdPartyBlas $as_me trunk, which was
1254generated by GNU Autoconf 2.59.  Invocation command line was
1255
1256  $ $0 $@
1257
1258_ACEOF
1259{
1260cat <<_ASUNAME
1261## --------- ##
1262## Platform. ##
1263## --------- ##
1264
1265hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1266uname -m = `(uname -m) 2>/dev/null || echo unknown`
1267uname -r = `(uname -r) 2>/dev/null || echo unknown`
1268uname -s = `(uname -s) 2>/dev/null || echo unknown`
1269uname -v = `(uname -v) 2>/dev/null || echo unknown`
1270
1271/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1272/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1273
1274/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1275/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1276/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1277hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1278/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1279/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1280/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1281
1282_ASUNAME
1283
1284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1285for as_dir in $PATH
1286do
1287  IFS=$as_save_IFS
1288  test -z "$as_dir" && as_dir=.
1289  echo "PATH: $as_dir"
1290done
1291
1292} >&5
1293
1294cat >&5 <<_ACEOF
1295
1296
1297## ----------- ##
1298## Core tests. ##
1299## ----------- ##
1300
1301_ACEOF
1302
1303
1304# Keep a trace of the command line.
1305# Strip out --no-create and --no-recursion so they do not pile up.
1306# Strip out --silent because we don't want to record it for future runs.
1307# Also quote any args containing shell meta-characters.
1308# Make two passes to allow for proper duplicate-argument suppression.
1309ac_configure_args=
1310ac_configure_args0=
1311ac_configure_args1=
1312ac_sep=
1313ac_must_keep_next=false
1314for ac_pass in 1 2
1315do
1316  for ac_arg
1317  do
1318    case $ac_arg in
1319    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1320    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321    | -silent | --silent | --silen | --sile | --sil)
1322      continue ;;
1323    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1325    esac
1326    case $ac_pass in
1327    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1328    2)
1329      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1330      if test $ac_must_keep_next = true; then
1331        ac_must_keep_next=false # Got value, back to normal.
1332      else
1333        case $ac_arg in
1334          *=* | --config-cache | -C | -disable-* | --disable-* \
1335          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1336          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1337          | -with-* | --with-* | -without-* | --without-* | --x)
1338            case "$ac_configure_args0 " in
1339              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1340            esac
1341            ;;
1342          -* ) ac_must_keep_next=true ;;
1343        esac
1344      fi
1345      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1346      # Get rid of the leading space.
1347      ac_sep=" "
1348      ;;
1349    esac
1350  done
1351done
1352$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1353$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1354
1355# When interrupted or exit'd, cleanup temporary files, and complete
1356# config.log.  We remove comments because anyway the quotes in there
1357# would cause problems or look ugly.
1358# WARNING: Be sure not to use single quotes in there, as some shells,
1359# such as our DU 5.0 friend, will then `close' the trap.
1360trap 'exit_status=$?
1361  # Save into config.log some information that might help in debugging.
1362  {
1363    echo
1364
1365    cat <<\_ASBOX
1366## ---------------- ##
1367## Cache variables. ##
1368## ---------------- ##
1369_ASBOX
1370    echo
1371    # The following way of writing the cache mishandles newlines in values,
1372{
1373  (set) 2>&1 |
1374    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1375    *ac_space=\ *)
1376      sed -n \
1377        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1378          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1379      ;;
1380    *)
1381      sed -n \
1382        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1383      ;;
1384    esac;
1385}
1386    echo
1387
1388    cat <<\_ASBOX
1389## ----------------- ##
1390## Output variables. ##
1391## ----------------- ##
1392_ASBOX
1393    echo
1394    for ac_var in $ac_subst_vars
1395    do
1396      eval ac_val=$`echo $ac_var`
1397      echo "$ac_var='"'"'$ac_val'"'"'"
1398    done | sort
1399    echo
1400
1401    if test -n "$ac_subst_files"; then
1402      cat <<\_ASBOX
1403## ------------- ##
1404## Output files. ##
1405## ------------- ##
1406_ASBOX
1407      echo
1408      for ac_var in $ac_subst_files
1409      do
1410        eval ac_val=$`echo $ac_var`
1411        echo "$ac_var='"'"'$ac_val'"'"'"
1412      done | sort
1413      echo
1414    fi
1415
1416    if test -s confdefs.h; then
1417      cat <<\_ASBOX
1418## ----------- ##
1419## confdefs.h. ##
1420## ----------- ##
1421_ASBOX
1422      echo
1423      sed "/^$/d" confdefs.h | sort
1424      echo
1425    fi
1426    test "$ac_signal" != 0 &&
1427      echo "$as_me: caught signal $ac_signal"
1428    echo "$as_me: exit $exit_status"
1429  } >&5
1430  rm -f core *.core &&
1431  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1432    exit $exit_status
1433     ' 0
1434for ac_signal in 1 2 13 15; do
1435  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1436done
1437ac_signal=0
1438
1439# confdefs.h avoids OS command line length limits that DEFS can exceed.
1440rm -rf conftest* confdefs.h
1441# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1442echo >confdefs.h
1443
1444# Predefined preprocessor variables.
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_NAME "$PACKAGE_NAME"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_VERSION "$PACKAGE_VERSION"
1458_ACEOF
1459
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_STRING "$PACKAGE_STRING"
1463_ACEOF
1464
1465
1466cat >>confdefs.h <<_ACEOF
1467#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1468_ACEOF
1469
1470
1471# Let the site file select an alternate cache file if it wants to.
1472# Prefer explicitly selected file to automatically selected ones.
1473if test -z "$CONFIG_SITE"; then
1474  if test "x$prefix" != xNONE; then
1475    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1476  else
1477    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1478  fi
1479fi
1480for ac_site_file in $CONFIG_SITE; do
1481  if test -r "$ac_site_file"; then
1482    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1483echo "$as_me: loading site script $ac_site_file" >&6;}
1484    sed 's/^/| /' "$ac_site_file" >&5
1485    . "$ac_site_file"
1486  fi
1487done
1488
1489if test -r "$cache_file"; then
1490  # Some versions of bash will fail to source /dev/null (special
1491  # files actually), so we avoid doing that.
1492  if test -f "$cache_file"; then
1493    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1494echo "$as_me: loading cache $cache_file" >&6;}
1495    case $cache_file in
1496      [\\/]* | ?:[\\/]* ) . $cache_file;;
1497      *)                      . ./$cache_file;;
1498    esac
1499  fi
1500else
1501  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1502echo "$as_me: creating cache $cache_file" >&6;}
1503  >$cache_file
1504fi
1505
1506# Check that the precious variables saved in the cache have kept the same
1507# value.
1508ac_cache_corrupted=false
1509for ac_var in `(set) 2>&1 |
1510               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1511  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1512  eval ac_new_set=\$ac_env_${ac_var}_set
1513  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1514  eval ac_new_val="\$ac_env_${ac_var}_value"
1515  case $ac_old_set,$ac_new_set in
1516    set,)
1517      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1518echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1519      ac_cache_corrupted=: ;;
1520    ,set)
1521      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1522echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1523      ac_cache_corrupted=: ;;
1524    ,);;
1525    *)
1526      if test "x$ac_old_val" != "x$ac_new_val"; then
1527        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1528echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1529        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1530echo "$as_me:   former value:  $ac_old_val" >&2;}
1531        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1532echo "$as_me:   current value: $ac_new_val" >&2;}
1533        ac_cache_corrupted=:
1534      fi;;
1535  esac
1536  # Pass precious variables to config.status.
1537  if test "$ac_new_set" = set; then
1538    case $ac_new_val in
1539    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1540      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1541    *) ac_arg=$ac_var=$ac_new_val ;;
1542    esac
1543    case " $ac_configure_args " in
1544      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1545      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1546    esac
1547  fi
1548done
1549if $ac_cache_corrupted; then
1550  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1551echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1552  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1553echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1554   { (exit 1); exit 1; }; }
1555fi
1556
1557ac_ext=c
1558ac_cpp='$CPP $CPPFLAGS'
1559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1561ac_compiler_gnu=$ac_cv_c_compiler_gnu
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592# List one file in the package so that the configure script can test
1593# whether the package is actually there
1594
1595
1596# Where should everything be installed by default?  Here, we want it
1597# to be installed directly in 'bin', 'lib', 'include' subdirectories
1598# of the directory where configure is run.  The default would be
1599# /usr/local.
1600
1601
1602
1603# As backup, we make sure we don't loose an FLIBS if it has been set
1604# by the user
1605save_FLIBS="$FLIBS"
1606
1607# A useful makefile conditional that is always false
1608
1609
1610if false; then
1611  ALWAYS_FALSE_TRUE=
1612  ALWAYS_FALSE_FALSE='#'
1613else
1614  ALWAYS_FALSE_TRUE='#'
1615  ALWAYS_FALSE_FALSE=
1616fi
1617
1618
1619# We set the following variable so that we know later in AC_COIN_FINALIZE
1620# that we are in a project main directory
1621coin_projectdir=yes
1622
1623# Set the project's version numbers
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define BLAS_VERSION "$PACKAGE_VERSION"
1628_ACEOF
1629
1630
1631  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1632  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1633  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1634  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1635  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1636  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1637
1638cat >>confdefs.h <<_ACEOF
1639#define BLAS_VERSION_MAJOR $coin_majorver
1640_ACEOF
1641
1642
1643cat >>confdefs.h <<_ACEOF
1644#define BLAS_VERSION_MINOR $coin_minorver
1645_ACEOF
1646
1647
1648cat >>confdefs.h <<_ACEOF
1649#define BLAS_VERSION_RELEASE $coin_releasever
1650_ACEOF
1651
1652
1653  # We use the following variable to have a string with the upper case
1654  # version of the project name
1655  COIN_PRJCT=BLAS
1656
1657  # Set the project's SVN revision number. The complicated sed expression
1658  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1659  # as a single number.
1660  # Extract the first word of "svnversion", so it can be a program name with args.
1661set dummy svnversion; ac_word=$2
1662echo "$as_me:$LINENO: checking for $ac_word" >&5
1663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664if test "${ac_cv_prog_have_svnversion+set}" = set; then
1665  echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667  if test -n "$have_svnversion"; then
1668  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1669else
1670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671for as_dir in $PATH
1672do
1673  IFS=$as_save_IFS
1674  test -z "$as_dir" && as_dir=.
1675  for ac_exec_ext in '' $ac_executable_extensions; do
1676  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677    ac_cv_prog_have_svnversion="yes"
1678    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679    break 2
1680  fi
1681done
1682done
1683
1684  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1685fi
1686fi
1687have_svnversion=$ac_cv_prog_have_svnversion
1688if test -n "$have_svnversion"; then
1689  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1690echo "${ECHO_T}$have_svnversion" >&6
1691else
1692  echo "$as_me:$LINENO: result: no" >&5
1693echo "${ECHO_T}no" >&6
1694fi
1695
1696  if test "x$have_svnversion" = xyes; then
1697
1698    svn_rev_tmp=`cd $srcdir/$coin_has_blas ; svnversion`
1699    BLAS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1700    if test $BLAS_SVN_REV != exported; then
1701
1702cat >>confdefs.h <<_ACEOF
1703#define BLAS_SVN_REV $BLAS_SVN_REV
1704_ACEOF
1705
1706    fi
1707  fi
1708
1709
1710
1711# Capture libtool library version, if given.
1712
1713
1714
1715
1716#############################################################################
1717#                         Standard build tool stuff                         #
1718#############################################################################
1719
1720# Get the system type
1721ac_aux_dir=
1722for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1723  if test -f $ac_dir/install-sh; then
1724    ac_aux_dir=$ac_dir
1725    ac_install_sh="$ac_aux_dir/install-sh -c"
1726    break
1727  elif test -f $ac_dir/install.sh; then
1728    ac_aux_dir=$ac_dir
1729    ac_install_sh="$ac_aux_dir/install.sh -c"
1730    break
1731  elif test -f $ac_dir/shtool; then
1732    ac_aux_dir=$ac_dir
1733    ac_install_sh="$ac_aux_dir/shtool install -c"
1734    break
1735  fi
1736done
1737if test -z "$ac_aux_dir"; then
1738  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1739echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1740   { (exit 1); exit 1; }; }
1741fi
1742ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1743ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1744ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1745
1746# Make sure we can run config.sub.
1747$ac_config_sub sun4 >/dev/null 2>&1 ||
1748  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1749echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1750   { (exit 1); exit 1; }; }
1751
1752echo "$as_me:$LINENO: checking build system type" >&5
1753echo $ECHO_N "checking build system type... $ECHO_C" >&6
1754if test "${ac_cv_build+set}" = set; then
1755  echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757  ac_cv_build_alias=$build_alias
1758test -z "$ac_cv_build_alias" &&
1759  ac_cv_build_alias=`$ac_config_guess`
1760test -z "$ac_cv_build_alias" &&
1761  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1762echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1763   { (exit 1); exit 1; }; }
1764ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1765  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1766echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1767   { (exit 1); exit 1; }; }
1768
1769fi
1770echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1771echo "${ECHO_T}$ac_cv_build" >&6
1772build=$ac_cv_build
1773build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776
1777
1778
1779#turn off warnings and pedantic mode since they could make trouble on some platforms,
1780#and we couldn't fix them anyway
1781coin_skip_warn_fflags=yes
1782
1783# Check if user wants to produce debugging code
1784
1785echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1786echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1787
1788# Check whether --enable-debug or --disable-debug was given.
1789if test "${enable_debug+set}" = set; then
1790  enableval="$enable_debug"
1791  case "${enableval}" in
1792   yes) coin_debug_compile=true
1793        if test "${enable_shared+set}" = set; then :; else
1794          enable_shared=no
1795        fi
1796        ;;
1797   no)  coin_debug_compile=false
1798        ;;
1799   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1800echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1801   { (exit 1); exit 1; }; }
1802        ;;
1803esac
1804else
1805  coin_debug_compile=false
1806fi;
1807
1808# Check whether --enable-debug-blas or --disable-debug-blas was given.
1809if test "${enable_debug_blas+set}" = set; then
1810  enableval="$enable_debug_blas"
1811  case "${enableval}" in
1812    yes) coin_debug_compile=true
1813         enable_shared=no
1814         ;;
1815    no)  coin_debug_compile=false
1816         ;;
1817    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1818echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1819   { (exit 1); exit 1; }; }
1820         ;;
1821 esac
1822else
1823  :
1824fi;
1825
1826 # m4_ifvaln([Blas],
1827
1828if test $coin_debug_compile = true; then
1829  echo "$as_me:$LINENO: result: yes" >&5
1830echo "${ECHO_T}yes" >&6
1831else
1832  echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836
1837# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1838if test "${with_blas_verbosity+set}" = set; then
1839  withval="$with_blas_verbosity"
1840  if test "$withval" = yes; then
1841                withval=1
1842              fi
1843              coin_blas_verbosity=$withval
1844else
1845  coin_blas_verbosity=0
1846fi;
1847
1848cat >>confdefs.h <<_ACEOF
1849#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1850_ACEOF
1851
1852
1853
1854# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1855if test "${with_blas_checklevel+set}" = set; then
1856  withval="$with_blas_checklevel"
1857  if test "$withval" = yes; then
1858                withval=1
1859              fi
1860              coin_blas_checklevel=$withval
1861else
1862  coin_blas_checklevel=0
1863fi;
1864
1865cat >>confdefs.h <<_ACEOF
1866#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1867_ACEOF
1868
1869
1870 # m4_ifvaln([Blas],
1871
1872
1873
1874# Get the name of the Fortran compiler and appropriate compiler options
1875case $build in
1876  *-mingw*)
1877    if test "${LD+set}" = set; then :; else
1878      LD=link
1879    fi
1880    ;;
1881 esac
1882 case $enable_doscompile in
1883   msvc)
1884     if test "x${LD+set}" = xset; then :; else
1885       LD=link
1886     fi
1887     ;;
1888 esac
1889
1890
1891 # Check whether --enable-doscompile or --disable-doscompile was given.
1892if test "${enable_doscompile+set}" = set; then
1893  enableval="$enable_doscompile"
1894  if test "$enable_doscompile" != no; then
1895     case $build in
1896       *-cygwin* | *-mingw*) ;;
1897       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1898echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1899   { (exit 1); exit 1; }; } ;;
1900     esac
1901   fi
1902else
1903  enable_doscompile=no
1904fi;
1905 case "$enable_doscompile" in
1906   mingw)
1907     case $build in
1908       *-mingw*) enable_doscompile=no ;;
1909     esac
1910     ;;
1911   msvc|no) ;;
1912   yes) enable_doscompile=mingw ;;
1913   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1914                    Try configure --help=recursive." >&5
1915echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1916                    Try configure --help=recursive." >&2;}
1917   { (exit 1); exit 1; }; }
1918      ;;
1919  esac
1920  if test "$enable_doscompile" != no ; then
1921    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1922echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1923  fi
1924
1925
1926
1927
1928ac_ext=c
1929ac_cpp='$CPP $CPPFLAGS'
1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935# For consistency, we set the C compiler to the same value of the C++
1936# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1937if test x"$CXX" != x; then
1938  case "$CXX" in
1939    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1940      if test x"$CC" = x; then
1941        CC="$CXX"
1942        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1943echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1944      fi
1945      ;;
1946  esac
1947fi
1948
1949# add automake conditional so we can recognize cl compiler in makefile
1950coin_cc_is_cl=false
1951if test x"$CXX" != x; then
1952  case "$CXX" in
1953    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1954      coin_cc_is_cl=true
1955      ;;
1956  esac
1957fi
1958
1959
1960if test $coin_cc_is_cl = true; then
1961  COIN_CC_IS_CL_TRUE=
1962  COIN_CC_IS_CL_FALSE='#'
1963else
1964  COIN_CC_IS_CL_TRUE='#'
1965  COIN_CC_IS_CL_FALSE=
1966fi
1967
1968
1969
1970
1971
1972
1973
1974coin_has_cc=yes
1975
1976save_cflags="$CFLAGS"
1977
1978# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1979# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1980# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1981# compiler. In this case, put cc after gcc.
1982
1983case $build in
1984  *-cygwin* | *-mingw*)
1985             if test "$enable_doscompile" = msvc ; then
1986               comps="icl cl"
1987             else
1988               comps="gcc cl"
1989             fi ;;
1990  *-*-solaris*)
1991             # Extract the first word of "cc", so it can be a program name with args.
1992set dummy cc; ac_word=$2
1993echo "$as_me:$LINENO: checking for $ac_word" >&5
1994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1996  echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998  if test -n "$sol_cc_compiler"; then
1999  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2000else
2001  ac_prog_rejected=no
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005  IFS=$as_save_IFS
2006  test -z "$as_dir" && as_dir=.
2007  for ac_exec_ext in '' $ac_executable_extensions; do
2008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2010       ac_prog_rejected=yes
2011       continue
2012     fi
2013    ac_cv_prog_sol_cc_compiler="cc"
2014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015    break 2
2016  fi
2017done
2018done
2019
2020if test $ac_prog_rejected = yes; then
2021  # We found a bogon in the path, so make sure we never use it.
2022  set dummy $ac_cv_prog_sol_cc_compiler
2023  shift
2024  if test $# != 0; then
2025    # We chose a different compiler from the bogus one.
2026    # However, it has the same basename, so the bogon will be chosen
2027    # first if we set sol_cc_compiler to just the basename; use the full file name.
2028    shift
2029    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2030  fi
2031fi
2032fi
2033fi
2034sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2035if test -n "$sol_cc_compiler"; then
2036  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2037echo "${ECHO_T}$sol_cc_compiler" >&6
2038else
2039  echo "$as_me:$LINENO: result: no" >&5
2040echo "${ECHO_T}no" >&6
2041fi
2042
2043             if test "$sol_cc_compiler" = "cc" ; then
2044               comps="cc xlc gcc pgcc icc"
2045             else
2046               comps="xlc gcc pgcc icc cc"
2047             fi
2048             ;;
2049  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2050  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2051  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2052esac
2053
2054# We delete the cached value, since the test might not have been
2055# performed with our choice of compilers earlier
2056$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2057# AC_MSG_NOTICE([C compiler candidates: $comps])
2058ac_ext=c
2059ac_cpp='$CPP $CPPFLAGS'
2060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063if test -n "$ac_tool_prefix"; then
2064  for ac_prog in $comps
2065  do
2066    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068echo "$as_me:$LINENO: checking for $ac_word" >&5
2069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070if test "${ac_cv_prog_CC+set}" = set; then
2071  echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073  if test -n "$CC"; then
2074  ac_cv_prog_CC="$CC" # Let the user override the test.
2075else
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079  IFS=$as_save_IFS
2080  test -z "$as_dir" && as_dir=.
2081  for ac_exec_ext in '' $ac_executable_extensions; do
2082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085    break 2
2086  fi
2087done
2088done
2089
2090fi
2091fi
2092CC=$ac_cv_prog_CC
2093if test -n "$CC"; then
2094  echo "$as_me:$LINENO: result: $CC" >&5
2095echo "${ECHO_T}$CC" >&6
2096else
2097  echo "$as_me:$LINENO: result: no" >&5
2098echo "${ECHO_T}no" >&6
2099fi
2100
2101    test -n "$CC" && break
2102  done
2103fi
2104if test -z "$CC"; then
2105  ac_ct_CC=$CC
2106  for ac_prog in $comps
2107do
2108  # Extract the first word of "$ac_prog", so it can be a program name with args.
2109set dummy $ac_prog; ac_word=$2
2110echo "$as_me:$LINENO: checking for $ac_word" >&5
2111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2113  echo $ECHO_N "(cached) $ECHO_C" >&6
2114else
2115  if test -n "$ac_ct_CC"; then
2116  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2117else
2118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119for as_dir in $PATH
2120do
2121  IFS=$as_save_IFS
2122  test -z "$as_dir" && as_dir=.
2123  for ac_exec_ext in '' $ac_executable_extensions; do
2124  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125    ac_cv_prog_ac_ct_CC="$ac_prog"
2126    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127    break 2
2128  fi
2129done
2130done
2131
2132fi
2133fi
2134ac_ct_CC=$ac_cv_prog_ac_ct_CC
2135if test -n "$ac_ct_CC"; then
2136  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2137echo "${ECHO_T}$ac_ct_CC" >&6
2138else
2139  echo "$as_me:$LINENO: result: no" >&5
2140echo "${ECHO_T}no" >&6
2141fi
2142
2143  test -n "$ac_ct_CC" && break
2144done
2145
2146  CC=$ac_ct_CC
2147fi
2148
2149
2150test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2151See \`config.log' for more details." >&5
2152echo "$as_me: error: no acceptable C compiler found in \$PATH
2153See \`config.log' for more details." >&2;}
2154   { (exit 1); exit 1; }; }
2155
2156# Provide some information about the compiler.
2157echo "$as_me:$LINENO:" \
2158     "checking for C compiler version" >&5
2159ac_compiler=`set X $ac_compile; echo $2`
2160{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2161  (eval $ac_compiler --version </dev/null >&5) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2166  (eval $ac_compiler -v </dev/null >&5) 2>&5
2167  ac_status=$?
2168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169  (exit $ac_status); }
2170{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2171  (eval $ac_compiler -V </dev/null >&5) 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }
2175
2176cat >conftest.$ac_ext <<_ACEOF
2177/* confdefs.h.  */
2178_ACEOF
2179cat confdefs.h >>conftest.$ac_ext
2180cat >>conftest.$ac_ext <<_ACEOF
2181/* end confdefs.h.  */
2182
2183int
2184main ()
2185{
2186
2187  ;
2188  return 0;
2189}
2190_ACEOF
2191ac_clean_files_save=$ac_clean_files
2192ac_clean_files="$ac_clean_files a.out a.exe b.out"
2193# Try to create an executable without -o first, disregard a.out.
2194# It will help us diagnose broken compilers, and finding out an intuition
2195# of exeext.
2196echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2198ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2200  (eval $ac_link_default) 2>&5
2201  ac_status=$?
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); }; then
2204  # Find the output, starting from the most likely.  This scheme is
2205# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2206# resort.
2207
2208# Be careful to initialize this variable, since it used to be cached.
2209# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2210ac_cv_exeext=
2211# b.out is created by i960 compilers.
2212for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2213do
2214  test -f "$ac_file" || continue
2215  case $ac_file in
2216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2217        ;;
2218    conftest.$ac_ext )
2219        # This is the source file.
2220        ;;
2221    [ab].out )
2222        # We found the default executable, but exeext='' is most
2223        # certainly right.
2224        break;;
2225    *.* )
2226        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227        # FIXME: I believe we export ac_cv_exeext for Libtool,
2228        # but it would be cool to find out if it's true.  Does anybody
2229        # maintain Libtool? --akim.
2230        export ac_cv_exeext
2231        break;;
2232    * )
2233        break;;
2234  esac
2235done
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241See \`config.log' for more details." >&5
2242echo "$as_me: error: C compiler cannot create executables
2243See \`config.log' for more details." >&2;}
2244   { (exit 77); exit 77; }; }
2245fi
2246
2247ac_exeext=$ac_cv_exeext
2248echo "$as_me:$LINENO: result: $ac_file" >&5
2249echo "${ECHO_T}$ac_file" >&6
2250
2251# Check the compiler produces executables we can run.  If not, either
2252# the compiler is broken, or we cross compile.
2253echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2255# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256# If not cross compiling, check that we can run a simple program.
2257if test "$cross_compiling" != yes; then
2258  if { ac_try='./$ac_file'
2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260  (eval $ac_try) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; }; then
2264    cross_compiling=no
2265  else
2266    if test "$cross_compiling" = maybe; then
2267        cross_compiling=yes
2268    else
2269        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: cannot run C compiled programs.
2273If you meant to cross compile, use \`--host'.
2274See \`config.log' for more details." >&2;}
2275   { (exit 1); exit 1; }; }
2276    fi
2277  fi
2278fi
2279echo "$as_me:$LINENO: result: yes" >&5
2280echo "${ECHO_T}yes" >&6
2281
2282rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283ac_clean_files=$ac_clean_files_save
2284# Check the compiler produces executables we can run.  If not, either
2285# the compiler is broken, or we cross compile.
2286echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2288echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289echo "${ECHO_T}$cross_compiling" >&6
2290
2291echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294  (eval $ac_link) 2>&5
2295  ac_status=$?
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); }; then
2298  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300# work properly (i.e., refer to `conftest.exe'), while it won't with
2301# `rm'.
2302for ac_file in conftest.exe conftest conftest.*; do
2303  test -f "$ac_file" || continue
2304  case $ac_file in
2305    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2306    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307          export ac_cv_exeext
2308          break;;
2309    * ) break;;
2310  esac
2311done
2312else
2313  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314See \`config.log' for more details." >&5
2315echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316See \`config.log' for more details." >&2;}
2317   { (exit 1); exit 1; }; }
2318fi
2319
2320rm -f conftest$ac_cv_exeext
2321echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322echo "${ECHO_T}$ac_cv_exeext" >&6
2323
2324rm -f conftest.$ac_ext
2325EXEEXT=$ac_cv_exeext
2326ac_exeext=$EXEEXT
2327echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2329if test "${ac_cv_objext+set}" = set; then
2330  echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332  cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h.  */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h.  */
2338
2339int
2340main ()
2341{
2342
2343  ;
2344  return 0;
2345}
2346_ACEOF
2347rm -f conftest.o conftest.obj
2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349  (eval $ac_compile) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; then
2353  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2354  case $ac_file in
2355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2356    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2357       break;;
2358  esac
2359done
2360else
2361  echo "$as_me: failed program was:" >&5
2362sed 's/^/| /' conftest.$ac_ext >&5
2363
2364{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2365See \`config.log' for more details." >&5
2366echo "$as_me: error: cannot compute suffix of object files: cannot compile
2367See \`config.log' for more details." >&2;}
2368   { (exit 1); exit 1; }; }
2369fi
2370
2371rm -f conftest.$ac_cv_objext conftest.$ac_ext
2372fi
2373echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2374echo "${ECHO_T}$ac_cv_objext" >&6
2375OBJEXT=$ac_cv_objext
2376ac_objext=$OBJEXT
2377echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2378echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2379if test "${ac_cv_c_compiler_gnu+set}" = set; then
2380  echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382  cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h.  */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h.  */
2388
2389int
2390main ()
2391{
2392#ifndef __GNUC__
2393       choke me
2394#endif
2395
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402  (eval $ac_compile) 2>conftest.er1
2403  ac_status=$?
2404  grep -v '^ *+' conftest.er1 >conftest.err
2405  rm -f conftest.er1
2406  cat conftest.err >&5
2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408  (exit $ac_status); } &&
2409         { ac_try='test -z "$ac_c_werror_flag"
2410                         || test ! -s conftest.err'
2411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412  (eval $ac_try) 2>&5
2413  ac_status=$?
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); }; } &&
2416         { ac_try='test -s conftest.$ac_objext'
2417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418  (eval $ac_try) 2>&5
2419  ac_status=$?
2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421  (exit $ac_status); }; }; then
2422  ac_compiler_gnu=yes
2423else
2424  echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427ac_compiler_gnu=no
2428fi
2429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430ac_cv_c_compiler_gnu=$ac_compiler_gnu
2431
2432fi
2433echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2434echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2435GCC=`test $ac_compiler_gnu = yes && echo yes`
2436ac_test_CFLAGS=${CFLAGS+set}
2437ac_save_CFLAGS=$CFLAGS
2438CFLAGS="-g"
2439echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2441if test "${ac_cv_prog_cc_g+set}" = set; then
2442  echo $ECHO_N "(cached) $ECHO_C" >&6
2443else
2444  cat >conftest.$ac_ext <<_ACEOF
2445/* confdefs.h.  */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h.  */
2450
2451int
2452main ()
2453{
2454
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459rm -f conftest.$ac_objext
2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461  (eval $ac_compile) 2>conftest.er1
2462  ac_status=$?
2463  grep -v '^ *+' conftest.er1 >conftest.err
2464  rm -f conftest.er1
2465  cat conftest.err >&5
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); } &&
2468         { ac_try='test -z "$ac_c_werror_flag"
2469                         || test ! -s conftest.err'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; } &&
2475         { ac_try='test -s conftest.$ac_objext'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481  ac_cv_prog_cc_g=yes
2482else
2483  echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486ac_cv_prog_cc_g=no
2487fi
2488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489fi
2490echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2491echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2492if test "$ac_test_CFLAGS" = set; then
2493  CFLAGS=$ac_save_CFLAGS
2494elif test $ac_cv_prog_cc_g = yes; then
2495  if test "$GCC" = yes; then
2496    CFLAGS="-g -O2"
2497  else
2498    CFLAGS="-g"
2499  fi
2500else
2501  if test "$GCC" = yes; then
2502    CFLAGS="-O2"
2503  else
2504    CFLAGS=
2505  fi
2506fi
2507echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2508echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2509if test "${ac_cv_prog_cc_stdc+set}" = set; then
2510  echo $ECHO_N "(cached) $ECHO_C" >&6
2511else
2512  ac_cv_prog_cc_stdc=no
2513ac_save_CC=$CC
2514cat >conftest.$ac_ext <<_ACEOF
2515/* confdefs.h.  */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
2519/* end confdefs.h.  */
2520#include <stdarg.h>
2521#include <stdio.h>
2522#include <sys/types.h>
2523#include <sys/stat.h>
2524/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2525struct buf { int x; };
2526FILE * (*rcsopen) (struct buf *, struct stat *, int);
2527static char *e (p, i)
2528     char **p;
2529     int i;
2530{
2531  return p[i];
2532}
2533static char *f (char * (*g) (char **, int), char **p, ...)
2534{
2535  char *s;
2536  va_list v;
2537  va_start (v,p);
2538  s = g (p, va_arg (v,int));
2539  va_end (v);
2540  return s;
2541}
2542
2543/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2544   function prototypes and stuff, but not '\xHH' hex character constants.
2545   These don't provoke an error unfortunately, instead are silently treated
2546   as 'x'.  The following induces an error, until -std1 is added to get
2547   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2548   array size at least.  It's necessary to write '\x00'==0 to get something
2549   that's true only with -std1.  */
2550int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2551
2552int test (int i, double x);
2553struct s1 {int (*f) (int a);};
2554struct s2 {int (*f) (double a);};
2555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2556int argc;
2557char **argv;
2558int
2559main ()
2560{
2561return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2562  ;
2563  return 0;
2564}
2565_ACEOF
2566# Don't try gcc -ansi; that turns off useful extensions and
2567# breaks some systems' header files.
2568# AIX                   -qlanglvl=ansi
2569# Ultrix and OSF/1      -std1
2570# HP-UX 10.20 and later -Ae
2571# HP-UX older versions  -Aa -D_HPUX_SOURCE
2572# SVR4                  -Xc -D__EXTENSIONS__
2573for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2574do
2575  CC="$ac_save_CC $ac_arg"
2576  rm -f conftest.$ac_objext
2577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578  (eval $ac_compile) 2>conftest.er1
2579  ac_status=$?
2580  grep -v '^ *+' conftest.er1 >conftest.err
2581  rm -f conftest.er1
2582  cat conftest.err >&5
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); } &&
2585         { ac_try='test -z "$ac_c_werror_flag"
2586                         || test ! -s conftest.err'
2587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588  (eval $ac_try) 2>&5
2589  ac_status=$?
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }; } &&
2592         { ac_try='test -s conftest.$ac_objext'
2593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594  (eval $ac_try) 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); }; }; then
2598  ac_cv_prog_cc_stdc=$ac_arg
2599break
2600else
2601  echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604fi
2605rm -f conftest.err conftest.$ac_objext
2606done
2607rm -f conftest.$ac_ext conftest.$ac_objext
2608CC=$ac_save_CC
2609
2610fi
2611
2612case "x$ac_cv_prog_cc_stdc" in
2613  x|xno)
2614    echo "$as_me:$LINENO: result: none needed" >&5
2615echo "${ECHO_T}none needed" >&6 ;;
2616  *)
2617    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2618echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2619    CC="$CC $ac_cv_prog_cc_stdc" ;;
2620esac
2621
2622# Some people use a C++ compiler to compile C.  Since we use `exit',
2623# in C++ we need to declare it.  In case someone uses the same compiler
2624# for both compiling C and C++ we need to have the C++ compiler decide
2625# the declaration of exit, since it's the most demanding environment.
2626cat >conftest.$ac_ext <<_ACEOF
2627#ifndef __cplusplus
2628  choke me
2629#endif
2630_ACEOF
2631rm -f conftest.$ac_objext
2632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633  (eval $ac_compile) 2>conftest.er1
2634  ac_status=$?
2635  grep -v '^ *+' conftest.er1 >conftest.err
2636  rm -f conftest.er1
2637  cat conftest.err >&5
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); } &&
2640         { ac_try='test -z "$ac_c_werror_flag"
2641                         || test ! -s conftest.err'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; } &&
2647         { ac_try='test -s conftest.$ac_objext'
2648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649  (eval $ac_try) 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; }; then
2653  for ac_declaration in \
2654   '' \
2655   'extern "C" void std::exit (int) throw (); using std::exit;' \
2656   'extern "C" void std::exit (int); using std::exit;' \
2657   'extern "C" void exit (int) throw ();' \
2658   'extern "C" void exit (int);' \
2659   'void exit (int);'
2660do
2661  cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h.  */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h.  */
2667$ac_declaration
2668#include <stdlib.h>
2669int
2670main ()
2671{
2672exit (42);
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext
2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679  (eval $ac_compile) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686         { ac_try='test -z "$ac_c_werror_flag"
2687                         || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693         { ac_try='test -s conftest.$ac_objext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  :
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704continue
2705fi
2706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707  cat >conftest.$ac_ext <<_ACEOF
2708/* confdefs.h.  */
2709_ACEOF
2710cat confdefs.h >>conftest.$ac_ext
2711cat >>conftest.$ac_ext <<_ACEOF
2712/* end confdefs.h.  */
2713$ac_declaration
2714int
2715main ()
2716{
2717exit (42);
2718  ;
2719  return 0;
2720}
2721_ACEOF
2722rm -f conftest.$ac_objext
2723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724  (eval $ac_compile) 2>conftest.er1
2725  ac_status=$?
2726  grep -v '^ *+' conftest.er1 >conftest.err
2727  rm -f conftest.er1
2728  cat conftest.err >&5
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); } &&
2731         { ac_try='test -z "$ac_c_werror_flag"
2732                         || test ! -s conftest.err'
2733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734  (eval $ac_try) 2>&5
2735  ac_status=$?
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); }; } &&
2738         { ac_try='test -s conftest.$ac_objext'
2739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740  (eval $ac_try) 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); }; }; then
2744  break
2745else
2746  echo "$as_me: failed program was:" >&5
2747sed 's/^/| /' conftest.$ac_ext >&5
2748
2749fi
2750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751done
2752rm -f conftest*
2753if test -n "$ac_declaration"; then
2754  echo '#ifdef __cplusplus' >>confdefs.h
2755  echo $ac_declaration      >>confdefs.h
2756  echo '#endif'             >>confdefs.h
2757fi
2758
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763fi
2764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765ac_ext=c
2766ac_cpp='$CPP $CPPFLAGS'
2767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771if test -z "$CC" ; then
2772  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2773echo "$as_me: error: Failed to find a C compiler!" >&2;}
2774   { (exit 1); exit 1; }; }
2775fi
2776# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2777case "$CC" in
2778  cl* | */cl* | CL* | */CL* )
2779    if test "$ac_cv_prog_cc_g" = yes ; then
2780      ac_cv_prog_cc_g=no
2781      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2782echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2783    fi ;;
2784esac
2785CFLAGS="$save_cflags"
2786
2787# Check if a project specific CFLAGS variable has been set
2788if test x$COIN_PRJCT != x; then
2789  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2790  if test x$coin_tmp = xset; then
2791    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2792  fi
2793fi
2794
2795if test x"$CFLAGS" = x; then
2796
2797  coin_add_cflags=
2798  coin_opt_cflags=
2799  coin_dbg_cflags=
2800  coin_warn_cflags=
2801
2802  if test "$GCC" = "yes"; then
2803    case "$CC" in
2804      icc* | */icc*)
2805        ;;
2806      *)
2807        coin_opt_cflags="-O3"
2808        coin_add_cflags="-pipe"
2809        coin_dbg_cflags="-g"
2810        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2811        case $build in
2812          *-darwin*)
2813            ;;
2814          *)
2815            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2816            ;;
2817        esac
2818        case $enable_doscompile in
2819          mingw)
2820            CFLAGS="-mno-cygwin"
2821            cat >conftest.$ac_ext <<_ACEOF
2822/* confdefs.h.  */
2823_ACEOF
2824cat confdefs.h >>conftest.$ac_ext
2825cat >>conftest.$ac_ext <<_ACEOF
2826/* end confdefs.h.  */
2827
2828int
2829main ()
2830{
2831int i=0; i++;
2832  ;
2833  return 0;
2834}
2835_ACEOF
2836rm -f conftest.$ac_objext conftest$ac_exeext
2837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2838  (eval $ac_link) 2>conftest.er1
2839  ac_status=$?
2840  grep -v '^ *+' conftest.er1 >conftest.err
2841  rm -f conftest.er1
2842  cat conftest.err >&5
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); } &&
2845         { ac_try='test -z "$ac_c_werror_flag"
2846                         || test ! -s conftest.err'
2847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848  (eval $ac_try) 2>&5
2849  ac_status=$?
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); }; } &&
2852         { ac_try='test -s conftest$ac_exeext'
2853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854  (eval $ac_try) 2>&5
2855  ac_status=$?
2856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857  (exit $ac_status); }; }; then
2858  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2859else
2860  echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863fi
2864rm -f conftest.err conftest.$ac_objext \
2865      conftest$ac_exeext conftest.$ac_ext
2866            CFLAGS=
2867          ;;
2868        esac
2869    esac
2870  fi
2871  if test -z "$coin_opt_cflags"; then
2872    case $build in
2873      *-cygwin* | *-mingw*)
2874        case "$CC" in
2875          cl* | */cl* | CL* | */CL*)
2876            coin_opt_cflags='-MT -O2'
2877            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2878            coin_dbg_cflags='-MTd'
2879            ;;
2880          icl* | */icl* | ICL* | */ICL*)
2881            coin_opt_cflags='-MT -Ox'
2882            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2883            coin_dbg_cflags='-MTd -debug'
2884            ;;
2885        esac
2886        ;;
2887      *-linux-*)
2888        case "$CC" in
2889          icc* | */icc*)
2890            coin_opt_cflags="-O3 -ip -mp1"
2891            coin_add_cflags=""
2892            coin_dbg_cflags="-g"
2893            # Check if -i_dynamic is necessary (for new glibc library)
2894            CFLAGS=
2895            cat >conftest.$ac_ext <<_ACEOF
2896/* confdefs.h.  */
2897_ACEOF
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>conftest.$ac_ext <<_ACEOF
2900/* end confdefs.h.  */
2901
2902int
2903main ()
2904{
2905int i=0; i++;
2906  ;
2907  return 0;
2908}
2909_ACEOF
2910rm -f conftest.$ac_objext conftest$ac_exeext
2911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2912  (eval $ac_link) 2>conftest.er1
2913  ac_status=$?
2914  grep -v '^ *+' conftest.er1 >conftest.err
2915  rm -f conftest.er1
2916  cat conftest.err >&5
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); } &&
2919         { ac_try='test -z "$ac_c_werror_flag"
2920                         || test ! -s conftest.err'
2921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922  (eval $ac_try) 2>&5
2923  ac_status=$?
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); }; } &&
2926         { ac_try='test -s conftest$ac_exeext'
2927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928  (eval $ac_try) 2>&5
2929  ac_status=$?
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); }; }; then
2932  :
2933else
2934  echo "$as_me: failed program was:" >&5
2935sed 's/^/| /' conftest.$ac_ext >&5
2936
2937coin_add_cflags="-i_dynamic $coin_add_cflags"
2938fi
2939rm -f conftest.err conftest.$ac_objext \
2940      conftest$ac_exeext conftest.$ac_ext
2941            ;;
2942          pgcc* | */pgcc*)
2943            coin_opt_cflags="-fast"
2944            coin_add_cflags="-Kieee -pc 64"
2945            coin_dbg_cflags="-g"
2946            ;;
2947        esac
2948        ;;
2949      *-ibm-*)
2950        case "$CC" in
2951          xlc* | */xlc* | mpxlc* | */mpxlc*)
2952            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2953            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2954            coin_dbg_cflags="-g"
2955          ;;
2956        esac
2957        ;;
2958      *-hp-*)
2959        coin_opt_cflags="-O"
2960        coin_add_cflags="-Ae"
2961        coin_dbg_cflags="-g"
2962        ;;
2963      *-*-solaris*)
2964        coin_opt_cflags="-xO4"
2965        coin_dbg_cflags="-g"
2966        ;;
2967      *-sgi-*)
2968        coin_opt_cflags="-O -OPT:Olimit=0"
2969        coin_dbg_cflags="-g"
2970        ;;
2971    esac
2972  fi
2973
2974  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2975    coin_dbg_cflags="-g"
2976  fi
2977
2978  if test -z "$coin_opt_cflags"; then
2979    # Try if -O option works if nothing else is set
2980    CFLAGS="-O"
2981    cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h.  */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h.  */
2987
2988int
2989main ()
2990{
2991int i=0; i++;
2992  ;
2993  return 0;
2994}
2995_ACEOF
2996rm -f conftest.$ac_objext conftest$ac_exeext
2997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2998  (eval $ac_link) 2>conftest.er1
2999  ac_status=$?
3000  grep -v '^ *+' conftest.er1 >conftest.err
3001  rm -f conftest.er1
3002  cat conftest.err >&5
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); } &&
3005         { ac_try='test -z "$ac_c_werror_flag"
3006                         || test ! -s conftest.err'
3007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008  (eval $ac_try) 2>&5
3009  ac_status=$?
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); }; } &&
3012         { ac_try='test -s conftest$ac_exeext'
3013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014  (eval $ac_try) 2>&5
3015  ac_status=$?
3016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017  (exit $ac_status); }; }; then
3018  coin_opt_cflags="-O"
3019else
3020  echo "$as_me: failed program was:" >&5
3021sed 's/^/| /' conftest.$ac_ext >&5
3022
3023fi
3024rm -f conftest.err conftest.$ac_objext \
3025      conftest$ac_exeext conftest.$ac_ext
3026  fi
3027
3028  # if PM doesn't want the warning messages, take them out
3029  if test x"$coin_skip_warn_cflags" = xyes; then
3030    coin_warn_cflags=
3031  fi
3032
3033  if test x${DBG_CFLAGS+set} != xset; then
3034    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3035  fi
3036  if test x${OPT_CFLAGS+set} != xset; then
3037    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3038  fi
3039
3040  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3041  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3042
3043  if test "$coin_debug_compile" = "true"; then
3044    CFLAGS="$DBG_CFLAGS"
3045  else
3046    CFLAGS="$OPT_CFLAGS"
3047  fi
3048else
3049  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3050  if test x${DBG_CFLAGS+set} != xset; then
3051    DBG_CFLAGS="$CFLAGS"
3052  fi
3053  if test x${OPT_CFLAGS+set} != xset; then
3054    OPT_CFLAGS="$CFLAGS"
3055  fi
3056fi
3057
3058# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3059
3060case "$CFLAGS" in
3061  *-mno-cygwin*)
3062    if test x${CPPFLAGS+set} != xset ; then
3063      CPPFLAGS="-mno-cygwin"
3064    else
3065      case "$CPPFLAGS" in
3066        *-mno-cygwin*)
3067          ;;
3068        *)
3069          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3070          ;;
3071      esac
3072    fi ;;
3073esac
3074
3075# Try if CFLAGS works
3076save_CFLAGS="$CFLAGS"
3077cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h.  */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h.  */
3083
3084int
3085main ()
3086{
3087int i=0; i++;
3088  ;
3089  return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext conftest$ac_exeext
3093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094  (eval $ac_link) 2>conftest.er1
3095  ac_status=$?
3096  grep -v '^ *+' conftest.er1 >conftest.err
3097  rm -f conftest.er1
3098  cat conftest.err >&5
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); } &&
3101         { ac_try='test -z "$ac_c_werror_flag"
3102                         || test ! -s conftest.err'
3103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104  (eval $ac_try) 2>&5
3105  ac_status=$?
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }; } &&
3108         { ac_try='test -s conftest$ac_exeext'
3109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110  (eval $ac_try) 2>&5
3111  ac_status=$?
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }; }; then
3114  :
3115else
3116  echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119CFLAGS=
3120fi
3121rm -f conftest.err conftest.$ac_objext \
3122      conftest$ac_exeext conftest.$ac_ext
3123if test -z "$CFLAGS"; then
3124  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3125echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3126  CFLAGS='-O'
3127  cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h.  */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h.  */
3133
3134int
3135main ()
3136{
3137int i=0; i++;
3138  ;
3139  return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext conftest$ac_exeext
3143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3144  (eval $ac_link) 2>conftest.er1
3145  ac_status=$?
3146  grep -v '^ *+' conftest.er1 >conftest.err
3147  rm -f conftest.er1
3148  cat conftest.err >&5
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); } &&
3151         { ac_try='test -z "$ac_c_werror_flag"
3152                         || test ! -s conftest.err'
3153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154  (eval $ac_try) 2>&5
3155  ac_status=$?
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); }; } &&
3158         { ac_try='test -s conftest$ac_exeext'
3159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160  (eval $ac_try) 2>&5
3161  ac_status=$?
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); }; }; then
3164  :
3165else
3166  echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169CFLAGS=
3170fi
3171rm -f conftest.err conftest.$ac_objext \
3172      conftest$ac_exeext conftest.$ac_ext
3173  if test -z "$CFLAGS"; then
3174    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3175echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3176  fi
3177fi
3178
3179{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3180echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3181
3182
3183if test x"$MPICC" = x; then :; else
3184  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3185echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3186  CC="$MPICC"
3187fi
3188
3189# Correct the LD variable if we are using the MS or Intel-windows compiler
3190case "$CC" in
3191  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3192    case $build in
3193  *-mingw*)
3194    if test "${LD+set}" = set; then :; else
3195      LD=link
3196    fi
3197    ;;
3198 esac
3199 case $enable_doscompile in
3200   msvc)
3201     if test "x${LD+set}" = xset; then :; else
3202       LD=link
3203     fi
3204     ;;
3205 esac
3206
3207    ;;
3208esac
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216
3217case $build in
3218  *-cygwin* | *-mingw*)
3219     if test "$enable_doscompile" = msvc ; then
3220       coin_f77_comps="ifort fl32 compile_f2c"
3221     else
3222       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3223     fi ;;
3224  *-*-solaris*)
3225     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3226  *-linux-gnu*)
3227     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3228  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3229 esac
3230
3231
3232
3233
3234
3235
3236ac_ext=f
3237ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3238ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3240
3241
3242
3243
3244
3245
3246coin_has_f77=yes
3247
3248save_fflags="$FFLAGS"
3249
3250# We delete the cached value, since the test might not have been
3251# performed with our choice of compilers earlier
3252$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3253
3254# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3255# coin_f77_comps to see if there's a program that matches one of the names.
3256# If there's no such program, F77 = unavailable. If we match the name,
3257# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3258# compiler.
3259# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3260
3261
3262{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3263echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3264for ac_prog in $coin_f77_comps
3265do
3266  # Extract the first word of "$ac_prog", so it can be a program name with args.
3267set dummy $ac_prog; ac_word=$2
3268echo "$as_me:$LINENO: checking for $ac_word" >&5
3269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270if test "${ac_cv_prog_F77+set}" = set; then
3271  echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273  if test -n "$F77"; then
3274  ac_cv_prog_F77="$F77" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279  IFS=$as_save_IFS
3280  test -z "$as_dir" && as_dir=.
3281  for ac_exec_ext in '' $ac_executable_extensions; do
3282  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283    ac_cv_prog_F77="$ac_prog"
3284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285    break 2
3286  fi
3287done
3288done
3289
3290fi
3291fi
3292F77=$ac_cv_prog_F77
3293if test -n "$F77"; then
3294  echo "$as_me:$LINENO: result: $F77" >&5
3295echo "${ECHO_T}$F77" >&6
3296else
3297  echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
3299fi
3300
3301  test -n "$F77" && break
3302done
3303test -n "$F77" || F77="unavailable"
3304
3305
3306if test "$F77" != "unavailable" ; then
3307  ac_ext=f
3308ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3309ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3311if test -n "$ac_tool_prefix"; then
3312  for ac_prog in $coin_f77_comps
3313  do
3314    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_F77+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  if test -n "$F77"; then
3322  ac_cv_prog_F77="$F77" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329  for ac_exec_ext in '' $ac_executable_extensions; do
3330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336done
3337
3338fi
3339fi
3340F77=$ac_cv_prog_F77
3341if test -n "$F77"; then
3342  echo "$as_me:$LINENO: result: $F77" >&5
3343echo "${ECHO_T}$F77" >&6
3344else
3345  echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
3348
3349    test -n "$F77" && break
3350  done
3351fi
3352if test -z "$F77"; then
3353  ac_ct_F77=$F77
3354  for ac_prog in $coin_f77_comps
3355do
3356  # Extract the first word of "$ac_prog", so it can be a program name with args.
3357set dummy $ac_prog; ac_word=$2
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3361  echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363  if test -n "$ac_ct_F77"; then
3364  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3365else
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369  IFS=$as_save_IFS
3370  test -z "$as_dir" && as_dir=.
3371  for ac_exec_ext in '' $ac_executable_extensions; do
3372  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373    ac_cv_prog_ac_ct_F77="$ac_prog"
3374    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375    break 2
3376  fi
3377done
3378done
3379
3380fi
3381fi
3382ac_ct_F77=$ac_cv_prog_ac_ct_F77
3383if test -n "$ac_ct_F77"; then
3384  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3385echo "${ECHO_T}$ac_ct_F77" >&6
3386else
3387  echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
3389fi
3390
3391  test -n "$ac_ct_F77" && break
3392done
3393
3394  F77=$ac_ct_F77
3395fi
3396
3397
3398# Provide some information about the compiler.
3399echo "$as_me:3399:" \
3400     "checking for Fortran 77 compiler version" >&5
3401ac_compiler=`set X $ac_compile; echo $2`
3402{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3403  (eval $ac_compiler --version </dev/null >&5) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }
3407{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3408  (eval $ac_compiler -v </dev/null >&5) 2>&5
3409  ac_status=$?
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }
3412{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3413  (eval $ac_compiler -V </dev/null >&5) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }
3417rm -f a.out
3418
3419# If we don't use `.F' as extension, the preprocessor is not run on the
3420# input file.  (Note that this only needs to work for GNU compilers.)
3421ac_save_ext=$ac_ext
3422ac_ext=F
3423echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3424echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3425if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428  cat >conftest.$ac_ext <<_ACEOF
3429      program main
3430#ifndef __GNUC__
3431       choke me
3432#endif
3433
3434      end
3435_ACEOF
3436rm -f conftest.$ac_objext
3437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438  (eval $ac_compile) 2>conftest.er1
3439  ac_status=$?
3440  grep -v '^ *+' conftest.er1 >conftest.err
3441  rm -f conftest.er1
3442  cat conftest.err >&5
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); } &&
3445         { ac_try='test -z "$ac_f77_werror_flag"
3446                         || test ! -s conftest.err'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; } &&
3452         { ac_try='test -s conftest.$ac_objext'
3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }; }; then
3458  ac_compiler_gnu=yes
3459else
3460  echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463ac_compiler_gnu=no
3464fi
3465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3466ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3467
3468fi
3469echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3470echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3471ac_ext=$ac_save_ext
3472ac_test_FFLAGS=${FFLAGS+set}
3473ac_save_FFLAGS=$FFLAGS
3474FFLAGS=
3475echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3476echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3477if test "${ac_cv_prog_f77_g+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480  FFLAGS=-g
3481cat >conftest.$ac_ext <<_ACEOF
3482      program main
3483
3484      end
3485_ACEOF
3486rm -f conftest.$ac_objext
3487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488  (eval $ac_compile) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } &&
3495         { ac_try='test -z "$ac_f77_werror_flag"
3496                         || test ! -s conftest.err'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; } &&
3502         { ac_try='test -s conftest.$ac_objext'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  ac_cv_prog_f77_g=yes
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513ac_cv_prog_f77_g=no
3514fi
3515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3516
3517fi
3518echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3519echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3520if test "$ac_test_FFLAGS" = set; then
3521  FFLAGS=$ac_save_FFLAGS
3522elif test $ac_cv_prog_f77_g = yes; then
3523  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3524    FFLAGS="-g -O2"
3525  else
3526    FFLAGS="-g"
3527  fi
3528else
3529  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3530    FFLAGS="-O2"
3531  else
3532    FFLAGS=
3533  fi
3534fi
3535
3536G77=`test $ac_compiler_gnu = yes && echo yes`
3537ac_ext=f
3538ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3539ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3541
3542else
3543  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3544echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3545fi
3546
3547FFLAGS="$save_fflags"
3548
3549# Check if a project specific FFLAGS variable has been set
3550if test x$COIN_PRJCT != x; then
3551  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3552  if test x$coin_tmp = xset; then
3553    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3554  fi
3555fi
3556
3557if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3558
3559  coin_add_fflags=
3560  coin_opt_fflags=
3561  coin_dbg_fflags=
3562  coin_warn_fflags=
3563
3564  if test "$G77" = "yes"; then
3565    coin_opt_fflags="-O3"
3566    coin_add_fflags="-pipe"
3567    coin_dbg_fflags="-g"
3568    case $enable_doscompile in
3569      mingw)
3570        FFLAGS="-mno-cygwin"
3571        cat >conftest.$ac_ext <<_ACEOF
3572      program main
3573      write(*,*) 'Hello world'
3574      end
3575_ACEOF
3576rm -f conftest.$ac_objext conftest$ac_exeext
3577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578  (eval $ac_link) 2>conftest.er1
3579  ac_status=$?
3580  grep -v '^ *+' conftest.er1 >conftest.err
3581  rm -f conftest.er1
3582  cat conftest.err >&5
3583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584  (exit $ac_status); } &&
3585         { ac_try='test -z "$ac_f77_werror_flag"
3586                         || test ! -s conftest.err'
3587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588  (eval $ac_try) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); }; } &&
3592         { ac_try='test -s conftest$ac_exeext'
3593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594  (eval $ac_try) 2>&5
3595  ac_status=$?
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); }; }; then
3598  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3599else
3600  echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603fi
3604rm -f conftest.err conftest.$ac_objext \
3605      conftest$ac_exeext conftest.$ac_ext
3606        FFLAGS=
3607      ;;
3608    esac
3609  else
3610    case $build in
3611      *-cygwin* | *-mingw*)
3612        case $F77 in
3613          ifort* | */ifort* | IFORT* | */IFORT* )
3614            coin_opt_fflags='-MT -O3'
3615            coin_add_fflags='-fpp -nologo'
3616            coin_dbg_fflags='-MTd -debug'
3617          ;;
3618          compile_f2c*)
3619            coin_opt_fflags='-MT -O2'
3620            coin_add_fflags='-nologo -wd4996'
3621            coin_dbg_fflags='-MTd'
3622          ;;
3623        esac
3624        ;;
3625      *-linux-*)
3626        case $F77 in
3627          ifc* | */ifc* | ifort* | */ifort*)
3628            coin_opt_fflags="-O3 -ip"
3629            coin_add_fflags="-cm -w90 -w95"
3630            coin_dbg_fflags="-g -CA -CB -CS"
3631            # Check if -i_dynamic is necessary (for new glibc library)
3632            FFLAGS=
3633            cat >conftest.$ac_ext <<_ACEOF
3634      program main
3635      write(*,*) 'Hello world'
3636      end
3637_ACEOF
3638rm -f conftest.$ac_objext conftest$ac_exeext
3639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3640  (eval $ac_link) 2>conftest.er1
3641  ac_status=$?
3642  grep -v '^ *+' conftest.er1 >conftest.err
3643  rm -f conftest.er1
3644  cat conftest.err >&5
3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646  (exit $ac_status); } &&
3647         { ac_try='test -z "$ac_f77_werror_flag"
3648                         || test ! -s conftest.err'
3649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650  (eval $ac_try) 2>&5
3651  ac_status=$?
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); }; } &&
3654         { ac_try='test -s conftest$ac_exeext'
3655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656  (eval $ac_try) 2>&5
3657  ac_status=$?
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); }; }; then
3660  :
3661else
3662  echo "$as_me: failed program was:" >&5
3663sed 's/^/| /' conftest.$ac_ext >&5
3664
3665coin_add_fflags="-i_dynamic $coin_add_fflags"
3666fi
3667rm -f conftest.err conftest.$ac_objext \
3668      conftest$ac_exeext conftest.$ac_ext
3669            ;;
3670          pgf77* | */pgf77* | pgf90* | */pgf90*)
3671            coin_opt_fflags="-fast"
3672            coin_add_fflags="-Kieee -pc 64"
3673            coin_dbg_fflags="-g"
3674          ;;
3675        esac
3676        ;;
3677      *-ibm-*)
3678        case "$F77" in
3679          xlf* | */xlf* | mpxlf* | */mpxlf* )
3680            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3681            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3682            coin_dbg_fflags="-g -C"
3683            ;;
3684        esac
3685        ;;
3686      *-hp-*)
3687        coin_opt_fflags="+O3"
3688        coin_add_fflags="+U77"
3689        coin_dbg_fflags="-C -g"
3690        ;;
3691      *-*-solaris*)
3692        coin_opt_fflags="-O4"
3693        coin_dbg_fflags="-g"
3694        ;;
3695      *-sgi-*)
3696        coin_opt_fflags="-O5 -OPT:Olimit=0"
3697        coin_dbg_fflags="-g"
3698        ;;
3699    esac
3700  fi
3701
3702  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3703    coin_dbg_fflags="-g"
3704  fi
3705
3706  if test -z "$coin_opt_fflags"; then
3707    # Try if -O option works if nothing else is set
3708    FFLAGS=-O
3709    cat >conftest.$ac_ext <<_ACEOF
3710      program main
3711      integer i
3712      end
3713_ACEOF
3714rm -f conftest.$ac_objext conftest$ac_exeext
3715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716  (eval $ac_link) 2>conftest.er1
3717  ac_status=$?
3718  grep -v '^ *+' conftest.er1 >conftest.err
3719  rm -f conftest.er1
3720  cat conftest.err >&5
3721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); } &&
3723         { ac_try='test -z "$ac_f77_werror_flag"
3724                         || test ! -s conftest.err'
3725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726  (eval $ac_try) 2>&5
3727  ac_status=$?
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); }; } &&
3730         { ac_try='test -s conftest$ac_exeext'
3731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732  (eval $ac_try) 2>&5
3733  ac_status=$?
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); }; }; then
3736  coin_opt_fflags="-O"
3737else
3738  echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741fi
3742rm -f conftest.err conftest.$ac_objext \
3743      conftest$ac_exeext conftest.$ac_ext
3744  fi
3745
3746  # if PM doesn't want the warning messages, take them out
3747  if test x"$coin_skip_warn_fflags" = xyes; then
3748    coin_warn_fflags=
3749  fi
3750
3751  if test x${DBG_FFLAGS+set} != xset; then
3752    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3753  fi
3754  if test x${OPT_FFLAGS+set} != xset; then
3755    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3756  fi
3757
3758  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3759  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3760
3761  if test "$coin_debug_compile" = "true"; then
3762    FFLAGS="$DBG_FFLAGS"
3763  else
3764    FFLAGS="$OPT_FFLAGS"
3765  fi
3766else
3767  FFLAGS="$FFLAGS $ADD_FFLAGS"
3768  if test x${DBG_FFLAGS+set} != xset; then
3769    DBG_FFLAGS="$FFLAGS"
3770  fi
3771  if test x${OPT_FFLAGS+set} != xset; then
3772    OPT_FFLAGS="$FFLAGS"
3773  fi
3774fi
3775
3776# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3777case "$FFLAGS" in
3778  *-mno-cygwin*)
3779    if test x${CPPFLAGS+set} != xset ; then
3780      CPPFLAGS="-mno-cygwin"
3781    else
3782      case "$CPPFLAGS" in
3783        *-mno-cygwin*)
3784          ;;
3785        *)
3786          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3787          ;;
3788      esac
3789    fi ;;
3790esac
3791
3792# Try if FFLAGS works
3793if test "$F77" != "unavailable" ; then
3794  cat >conftest.$ac_ext <<_ACEOF
3795      program main
3796      integer i
3797      end
3798_ACEOF
3799rm -f conftest.$ac_objext conftest$ac_exeext
3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801  (eval $ac_link) 2>conftest.er1
3802  ac_status=$?
3803  grep -v '^ *+' conftest.er1 >conftest.err
3804  rm -f conftest.er1
3805  cat conftest.err >&5
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); } &&
3808         { ac_try='test -z "$ac_f77_werror_flag"
3809                         || test ! -s conftest.err'
3810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811  (eval $ac_try) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; } &&
3815         { ac_try='test -s conftest$ac_exeext'
3816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817  (eval $ac_try) 2>&5
3818  ac_status=$?
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); }; }; then
3821  :
3822else
3823  echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826FFLAGS=
3827fi
3828rm -f conftest.err conftest.$ac_objext \
3829      conftest$ac_exeext conftest.$ac_ext
3830  if test -z "$FFLAGS"; then
3831    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
3832echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
3833    FFLAGS='-O'
3834    cat >conftest.$ac_ext <<_ACEOF
3835      program main
3836      integer i
3837      end
3838_ACEOF
3839rm -f conftest.$ac_objext conftest$ac_exeext
3840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841  (eval $ac_link) 2>conftest.er1
3842  ac_status=$?
3843  grep -v '^ *+' conftest.er1 >conftest.err
3844  rm -f conftest.er1
3845  cat conftest.err >&5
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } &&
3848         { ac_try='test -z "$ac_f77_werror_flag"
3849                         || test ! -s conftest.err'
3850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851  (eval $ac_try) 2>&5
3852  ac_status=$?
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); }; } &&
3855         { ac_try='test -s conftest$ac_exeext'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  :
3862else
3863  echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
3866FFLAGS=
3867fi
3868rm -f conftest.err conftest.$ac_objext \
3869      conftest$ac_exeext conftest.$ac_ext
3870    if test -z "$FFLAGS"; then
3871      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
3872echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
3873    fi
3874  fi
3875fi
3876
3877{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3878echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3879
3880
3881if test x"$MPIF77" = x; then :; else
3882  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3883echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3884  F77="$MPIF77"
3885fi
3886
3887# correct the LD variable if we use the intel fortran compiler in windows
3888case "$F77" in
3889  ifort* | */ifort* | IFORT* | */IFORT*)
3890    case $build in
3891  *-mingw*)
3892    if test "${LD+set}" = set; then :; else
3893      LD=link
3894    fi
3895    ;;
3896 esac
3897 case $enable_doscompile in
3898   msvc)
3899     if test "x${LD+set}" = xset; then :; else
3900       LD=link
3901     fi
3902     ;;
3903 esac
3904
3905    ;;
3906esac
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
3914
3915
3916# Get the linker flags (FLIBS) that are required for linking against this blas library
3917ac_ext=f
3918ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3919ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3921echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3922echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3923if test "${ac_cv_prog_f77_v+set}" = set; then
3924  echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926  cat >conftest.$ac_ext <<_ACEOF
3927      program main
3928
3929      end
3930_ACEOF
3931rm -f conftest.$ac_objext
3932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933  (eval $ac_compile) 2>conftest.er1
3934  ac_status=$?
3935  grep -v '^ *+' conftest.er1 >conftest.err
3936  rm -f conftest.er1
3937  cat conftest.err >&5
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); } &&
3940         { ac_try='test -z "$ac_f77_werror_flag"
3941                         || test ! -s conftest.err'
3942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943  (eval $ac_try) 2>&5
3944  ac_status=$?
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); }; } &&
3947         { ac_try='test -s conftest.$ac_objext'
3948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949  (eval $ac_try) 2>&5
3950  ac_status=$?
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); }; }; then
3953  ac_cv_prog_f77_v=
3954# Try some options frequently used verbose output
3955for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3956  cat >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_verb"
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  # look for -l* and *.a constructs in the output
4001  for ac_arg in $ac_f77_v_output; do
4002     case $ac_arg in
4003        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4004          ac_cv_prog_f77_v=$ac_verb
4005          break 2 ;;
4006     esac
4007  done
4008done
4009if test -z "$ac_cv_prog_f77_v"; then
4010   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4011echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4012fi
4013else
4014  echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4018echo "$as_me: WARNING: compilation failed" >&2;}
4019fi
4020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4021
4022fi
4023echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4024echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4025echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4026echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4027if test "${ac_cv_f77_libs+set}" = set; then
4028  echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030  if test "x$FLIBS" != "x"; then
4031  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4032else
4033
4034cat >conftest.$ac_ext <<_ACEOF
4035      program main
4036
4037      end
4038_ACEOF
4039
4040# Compile and link our simple test program by passing a flag (argument
4041# 1 to this macro) to the Fortran compiler in order to get
4042# "verbose" output that we can then parse for the Fortran linker
4043# flags.
4044ac_save_FFLAGS=$FFLAGS
4045FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4046(eval echo $as_me:4046: \"$ac_link\") >&5
4047ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4048echo "$ac_f77_v_output" >&5
4049FFLAGS=$ac_save_FFLAGS
4050
4051rm -f conftest*
4052
4053# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4054# /foo, /bar, and /baz are search directories for the Fortran linker.
4055# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4056ac_f77_v_output="`echo $ac_f77_v_output |
4057        grep 'LPATH is:' |
4058        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4059
4060case $ac_f77_v_output in
4061  # If we are using xlf then replace all the commas with spaces.
4062  *xlfentry*)
4063    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4064
4065  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4066  # $LIBS confuse us, and the libraries appear later in the output anyway).
4067  *mGLOB_options_string*)
4068    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4069
4070  # If we are using Cray Fortran then delete quotes.
4071  # Use "\"" instead of '"' for font-lock-mode.
4072  # FIXME: a more general fix for quoted arguments with spaces?
4073  *cft90*)
4074    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4075esac
4076
4077
4078
4079ac_cv_f77_libs=
4080
4081# Save positional arguments (if any)
4082ac_save_positional="$@"
4083
4084set X $ac_f77_v_output
4085while test $# != 1; do
4086  shift
4087  ac_arg=$1
4088  case $ac_arg in
4089        [\\/]*.a | ?:[\\/]*.a)
4090            ac_exists=false
4091  for ac_i in $ac_cv_f77_libs; do
4092    if test x"$ac_arg" = x"$ac_i"; then
4093      ac_exists=true
4094      break
4095    fi
4096  done
4097
4098  if test x"$ac_exists" = xtrue; then
4099  :
4100else
4101  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4102fi
4103
4104          ;;
4105        -bI:*)
4106            ac_exists=false
4107  for ac_i in $ac_cv_f77_libs; do
4108    if test x"$ac_arg" = x"$ac_i"; then
4109      ac_exists=true
4110      break
4111    fi
4112  done
4113
4114  if test x"$ac_exists" = xtrue; then
4115  :
4116else
4117  if test "$ac_compiler_gnu" = yes; then
4118  for ac_link_opt in $ac_arg; 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_arg"
4123fi
4124fi
4125
4126          ;;
4127          # Ignore these flags.
4128        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4129          ;;
4130        -lkernel32)
4131          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4132          ;;
4133        -[LRuY])
4134          # These flags, when seen by themselves, take an argument.
4135          # We remove the space between option and argument and re-iterate
4136          # unless we find an empty arg or a new option (starting with -)
4137          case $2 in
4138             "" | -*);;
4139             *)
4140                ac_arg="$ac_arg$2"
4141                shift; shift
4142                set X $ac_arg "$@"
4143                ;;
4144          esac
4145          ;;
4146        -YP,*)
4147          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4148              ac_exists=false
4149  for ac_i in $ac_cv_f77_libs; do
4150    if test x"$ac_j" = x"$ac_i"; then
4151      ac_exists=true
4152      break
4153    fi
4154  done
4155
4156  if test x"$ac_exists" = xtrue; then
4157  :
4158else
4159  ac_arg="$ac_arg $ac_j"
4160                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4161fi
4162
4163          done
4164          ;;
4165        -[lLR]*)
4166            ac_exists=false
4167  for ac_i in $ac_cv_f77_libs; do
4168    if test x"$ac_arg" = x"$ac_i"; then
4169      ac_exists=true
4170      break
4171    fi
4172  done
4173
4174  if test x"$ac_exists" = xtrue; then
4175  :
4176else
4177  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4178fi
4179
4180          ;;
4181          # Ignore everything else.
4182  esac
4183done
4184# restore positional arguments
4185set X $ac_save_positional; shift
4186
4187# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4188# then we insist that the "run path" must be an absolute path (i.e. it
4189# must begin with a "/").
4190case `(uname -sr) 2>/dev/null` in
4191   "SunOS 5"*)
4192      ac_ld_run_path=`echo $ac_f77_v_output |
4193                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4194      test "x$ac_ld_run_path" != x &&
4195        if test "$ac_compiler_gnu" = yes; then
4196  for ac_link_opt in $ac_ld_run_path; do
4197    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4198  done
4199else
4200  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4201fi
4202      ;;
4203esac
4204fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4205
4206fi
4207echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4208echo "${ECHO_T}$ac_cv_f77_libs" >&6
4209FLIBS="$ac_cv_f77_libs"
4210
4211
4212ac_ext=f
4213ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4214ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4216
4217ac_ext=f
4218ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4219ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4221
4222echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4223echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4224if test "${ac_cv_f77_dummy_main+set}" = set; then
4225  echo $ECHO_N "(cached) $ECHO_C" >&6
4226else
4227  ac_f77_dm_save_LIBS=$LIBS
4228 LIBS="$LIBS $FLIBS"
4229 ac_fortran_dm_var=F77_DUMMY_MAIN
4230 ac_ext=c
4231ac_cpp='$CPP $CPPFLAGS'
4232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235
4236 # First, try linking without a dummy main:
4237 cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h.  */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h.  */
4243
4244#ifdef F77_DUMMY_MAIN
4245
4246#  ifdef __cplusplus
4247     extern "C"
4248#  endif
4249   int F77_DUMMY_MAIN() { return 1; }
4250
4251#endif
4252int
4253main ()
4254{
4255
4256  ;
4257  return 0;
4258}
4259_ACEOF
4260rm -f conftest.$ac_objext conftest$ac_exeext
4261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262  (eval $ac_link) 2>conftest.er1
4263  ac_status=$?
4264  grep -v '^ *+' conftest.er1 >conftest.err
4265  rm -f conftest.er1
4266  cat conftest.err >&5
4267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268  (exit $ac_status); } &&
4269         { ac_try='test -z "$ac_c_werror_flag"
4270                         || test ! -s conftest.err'
4271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272  (eval $ac_try) 2>&5
4273  ac_status=$?
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); }; } &&
4276         { ac_try='test -s conftest$ac_exeext'
4277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278  (eval $ac_try) 2>&5
4279  ac_status=$?
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); }; }; then
4282  ac_cv_fortran_dummy_main=none
4283else
4284  echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287ac_cv_fortran_dummy_main=unknown
4288fi
4289rm -f conftest.err conftest.$ac_objext \
4290      conftest$ac_exeext conftest.$ac_ext
4291
4292 if test $ac_cv_fortran_dummy_main = unknown; then
4293   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4294     cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h.  */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h.  */
4300#define $ac_fortran_dm_var $ac_func
4301#ifdef F77_DUMMY_MAIN
4302
4303#  ifdef __cplusplus
4304     extern "C"
4305#  endif
4306   int F77_DUMMY_MAIN() { return 1; }
4307
4308#endif
4309int
4310main ()
4311{
4312
4313  ;
4314  return 0;
4315}
4316_ACEOF
4317rm -f conftest.$ac_objext conftest$ac_exeext
4318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319  (eval $ac_link) 2>conftest.er1
4320  ac_status=$?
4321  grep -v '^ *+' conftest.er1 >conftest.err
4322  rm -f conftest.er1
4323  cat conftest.err >&5
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); } &&
4326         { ac_try='test -z "$ac_c_werror_flag"
4327                         || test ! -s conftest.err'
4328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329  (eval $ac_try) 2>&5
4330  ac_status=$?
4331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332  (exit $ac_status); }; } &&
4333         { ac_try='test -s conftest$ac_exeext'
4334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335  (eval $ac_try) 2>&5
4336  ac_status=$?
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); }; }; then
4339  ac_cv_fortran_dummy_main=$ac_func; break
4340else
4341  echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344fi
4345rm -f conftest.err conftest.$ac_objext \
4346      conftest$ac_exeext conftest.$ac_ext
4347   done
4348 fi
4349 ac_ext=f
4350ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4351ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4353 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4354 rm -f conftest*
4355 LIBS=$ac_f77_dm_save_LIBS
4356
4357fi
4358echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4359echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4360F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4361if test "$F77_DUMMY_MAIN" != unknown; then
4362  if test $F77_DUMMY_MAIN != none; then
4363
4364cat >>confdefs.h <<_ACEOF
4365#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4366_ACEOF
4367
4368  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4369
4370cat >>confdefs.h <<\_ACEOF
4371#define FC_DUMMY_MAIN_EQ_F77 1
4372_ACEOF
4373
4374  fi
4375fi
4376else
4377  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4378See \`config.log' for more details." >&5
4379echo "$as_me: error: linking to Fortran libraries from C fails
4380See \`config.log' for more details." >&2;}
4381   { (exit 1); exit 1; }; }
4382fi
4383
4384
4385ac_ext=f
4386ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4387ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4389
4390ac_ext=f
4391ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4392ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4394echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4395echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4396if test "${ac_cv_f77_mangling+set}" = set; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399  cat >conftest.$ac_ext <<_ACEOF
4400      subroutine foobar()
4401      return
4402      end
4403      subroutine foo_bar()
4404      return
4405      end
4406_ACEOF
4407rm -f conftest.$ac_objext
4408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409  (eval $ac_compile) 2>conftest.er1
4410  ac_status=$?
4411  grep -v '^ *+' conftest.er1 >conftest.err
4412  rm -f conftest.er1
4413  cat conftest.err >&5
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); } &&
4416         { ac_try='test -z "$ac_f77_werror_flag"
4417                         || test ! -s conftest.err'
4418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419  (eval $ac_try) 2>&5
4420  ac_status=$?
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); }; } &&
4423         { ac_try='test -s conftest.$ac_objext'
4424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425  (eval $ac_try) 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); }; }; then
4429  mv conftest.$ac_objext cfortran_test.$ac_objext
4430
4431  ac_save_LIBS=$LIBS
4432  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4433
4434  ac_ext=c
4435ac_cpp='$CPP $CPPFLAGS'
4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439  ac_success=no
4440  for ac_foobar in foobar FOOBAR; do
4441    for ac_underscore in "" "_"; do
4442      ac_func="$ac_foobar$ac_underscore"
4443      cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h.  */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h.  */
4449
4450/* Override any gcc2 internal prototype to avoid an error.  */
4451#ifdef __cplusplus
4452extern "C"
4453#endif
4454/* We use char because int might match the return type of a gcc2
4455   builtin and then its argument prototype would still apply.  */
4456char $ac_func ();
4457#ifdef F77_DUMMY_MAIN
4458
4459#  ifdef __cplusplus
4460     extern "C"
4461#  endif
4462   int F77_DUMMY_MAIN() { return 1; }
4463
4464#endif
4465int
4466main ()
4467{
4468$ac_func ();
4469  ;
4470  return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext conftest$ac_exeext
4474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475  (eval $ac_link) 2>conftest.er1
4476  ac_status=$?
4477  grep -v '^ *+' conftest.er1 >conftest.err
4478  rm -f conftest.er1
4479  cat conftest.err >&5
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); } &&
4482         { ac_try='test -z "$ac_c_werror_flag"
4483                         || test ! -s conftest.err'
4484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485  (eval $ac_try) 2>&5
4486  ac_status=$?
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); }; } &&
4489         { ac_try='test -s conftest$ac_exeext'
4490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491  (eval $ac_try) 2>&5
4492  ac_status=$?
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); }; }; then
4495  ac_success=yes; break 2
4496else
4497  echo "$as_me: failed program was:" >&5
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
4500fi
4501rm -f conftest.err conftest.$ac_objext \
4502      conftest$ac_exeext conftest.$ac_ext
4503    done
4504  done
4505  ac_ext=f
4506ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4507ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4509
4510  if test "$ac_success" = "yes"; then
4511     case $ac_foobar in
4512        foobar)
4513           ac_case=lower
4514           ac_foo_bar=foo_bar
4515           ;;
4516        FOOBAR)
4517           ac_case=upper
4518           ac_foo_bar=FOO_BAR
4519           ;;
4520     esac
4521
4522     ac_ext=c
4523ac_cpp='$CPP $CPPFLAGS'
4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527     ac_success_extra=no
4528     for ac_extra in "" "_"; do
4529        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4530        cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h.  */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h.  */
4536
4537/* Override any gcc2 internal prototype to avoid an error.  */
4538#ifdef __cplusplus
4539extern "C"
4540#endif
4541/* We use char because int might match the return type of a gcc2
4542   builtin and then its argument prototype would still apply.  */
4543char $ac_func ();
4544#ifdef F77_DUMMY_MAIN
4545
4546#  ifdef __cplusplus
4547     extern "C"
4548#  endif
4549   int F77_DUMMY_MAIN() { return 1; }
4550
4551#endif
4552int
4553main ()
4554{
4555$ac_func ();
4556  ;
4557  return 0;
4558}
4559_ACEOF
4560rm -f conftest.$ac_objext conftest$ac_exeext
4561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4562  (eval $ac_link) 2>conftest.er1
4563  ac_status=$?
4564  grep -v '^ *+' conftest.er1 >conftest.err
4565  rm -f conftest.er1
4566  cat conftest.err >&5
4567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568  (exit $ac_status); } &&
4569         { ac_try='test -z "$ac_c_werror_flag"
4570                         || test ! -s conftest.err'
4571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572  (eval $ac_try) 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); }; } &&
4576         { ac_try='test -s conftest$ac_exeext'
4577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578  (eval $ac_try) 2>&5
4579  ac_status=$?
4580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581  (exit $ac_status); }; }; then
4582  ac_success_extra=yes; break
4583else
4584  echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587fi
4588rm -f conftest.err conftest.$ac_objext \
4589      conftest$ac_exeext conftest.$ac_ext
4590     done
4591     ac_ext=f
4592ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4593ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4595
4596     if test "$ac_success_extra" = "yes"; then
4597        ac_cv_f77_mangling="$ac_case case"
4598        if test -z "$ac_underscore"; then
4599           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4600        else
4601           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4602        fi
4603        if test -z "$ac_extra"; then
4604           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4605        else
4606           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4607        fi
4608      else
4609        ac_cv_f77_mangling="unknown"
4610      fi
4611  else
4612     ac_cv_f77_mangling="unknown"
4613  fi
4614
4615  LIBS=$ac_save_LIBS
4616  rm -f cfortran_test* conftest*
4617else
4618  echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4622See \`config.log' for more details." >&5
4623echo "$as_me: error: cannot compile a simple Fortran program
4624See \`config.log' for more details." >&2;}
4625   { (exit 1); exit 1; }; }
4626fi
4627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628
4629fi
4630echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4631echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4632
4633ac_ext=f
4634ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4635ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4637
4638
4639ac_ext=f
4640ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4641ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4643
4644
4645ac_ext=f
4646ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4647ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4649
4650
4651case $ac_cv_f77_mangling in
4652  "lower case, no 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, no 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  "lower case, 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  "lower case, 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, no 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, no 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  "upper case, underscore, no extra underscore")
4707          cat >>confdefs.h <<\_ACEOF
4708#define F77_FUNC(name,NAME) NAME ## _
4709_ACEOF
4710
4711          cat >>confdefs.h <<\_ACEOF
4712#define F77_FUNC_(name,NAME) NAME ## _
4713_ACEOF
4714 ;;
4715  "upper case, underscore, extra underscore")
4716          cat >>confdefs.h <<\_ACEOF
4717#define F77_FUNC(name,NAME) NAME ## _
4718_ACEOF
4719
4720          cat >>confdefs.h <<\_ACEOF
4721#define F77_FUNC_(name,NAME) NAME ## __
4722_ACEOF
4723 ;;
4724  *)
4725          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4726echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4727          ;;
4728esac
4729
4730ac_ext=f
4731ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4732ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4734
4735
4736# If FLIBS has been set by the user, we just restore its value here
4737if test x"$save_FLIBS" != x; then
4738  FLIBS="$save_FLIBS"
4739else
4740  # This is to correct a missing exclusion in autoconf 2.59
4741  if test x"$FLIBS" != x; then
4742    my_flibs=
4743    for flag in $FLIBS; do
4744      case $flag in
4745        -lcrt*.o) ;;
4746        -lcygwin) ;;
4747               *) my_flibs="$my_flibs $flag" ;;
4748      esac
4749    done
4750    if test "x$FLIBS" != "x$my_flibs" ; then
4751      { echo "$as_me:$LINENO: \"corrected FLIBS: $my_flibs\"" >&5
4752echo "$as_me: \"corrected FLIBS: $my_flibs\"" >&6;}
4753    fi
4754    FLIBS="$my_flibs"
4755  fi
4756
4757  case $build in
4758  # The following is a fix to define FLIBS for ifort on Windows
4759  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4760  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4761  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4762  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4763  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4764     *-cygwin* | *-mingw*)
4765       case "$F77" in
4766#         ifort* | */ifort* | IFORT* | */IFORT*)
4767#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4768#           if "$coin_debug_compile" = true ; then
4769#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4770#           else
4771#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4772#           fi
4773#           ;;
4774         compile_f2c*)
4775           FLIBS=`$F77 -FLIBS` ;;
4776       esac;;
4777     *-hp-*)
4778         FLIBS="$FLIBS -lm";;
4779     *-ibm-*)
4780         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4781     *-linux-*)
4782       case "$F77" in
4783         pgf77* | */pgf77* | pgf90* | */pgf90*)
4784# ask linker to go through the archives multiple times
4785# (the Fortran compiler seems to do that automatically...)
4786           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4787       esac
4788  esac
4789  ac_cv_f77_libs="$FLIBS"
4790fi
4791
4792ac_ext=c
4793ac_cpp='$CPP $CPPFLAGS'
4794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798
4799
4800
4801# Add FLIBS to BLAS_PCLIBS, so that they get into the .pc files
4802BLAS_PCLIBS="$FLIBS"
4803
4804
4805# Check if pkg-config is available (to setup addlibs file)
4806
4807
4808# Check whether --enable-pkg-config or --disable-pkg-config was given.
4809if test "${enable_pkg_config+set}" = set; then
4810  enableval="$enable_pkg_config"
4811  use_pkgconfig="$enableval"
4812else
4813  use_pkgconfig=yes
4814fi;
4815
4816if test $use_pkgconfig = yes ; then
4817  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4818    if test -n "$ac_tool_prefix"; then
4819  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4820set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4821echo "$as_me:$LINENO: checking for $ac_word" >&5
4822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4823if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4824  echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826  case $PKG_CONFIG in
4827  [\\/]* | ?:[\\/]*)
4828  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4829  ;;
4830  *)
4831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836  for ac_exec_ext in '' $ac_executable_extensions; do
4837  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843done
4844
4845  ;;
4846esac
4847fi
4848PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4849
4850if test -n "$PKG_CONFIG"; then
4851  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4852echo "${ECHO_T}$PKG_CONFIG" >&6
4853else
4854  echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856fi
4857
4858fi
4859if test -z "$ac_cv_path_PKG_CONFIG"; then
4860  ac_pt_PKG_CONFIG=$PKG_CONFIG
4861  # Extract the first word of "pkg-config", so it can be a program name with args.
4862set dummy pkg-config; ac_word=$2
4863echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4866  echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868  case $ac_pt_PKG_CONFIG in
4869  [\\/]* | ?:[\\/]*)
4870  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4871  ;;
4872  *)
4873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876  IFS=$as_save_IFS
4877  test -z "$as_dir" && as_dir=.
4878  for ac_exec_ext in '' $ac_executable_extensions; do
4879  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882    break 2
4883  fi
4884done
4885done
4886
4887  ;;
4888esac
4889fi
4890ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4891
4892if test -n "$ac_pt_PKG_CONFIG"; then
4893  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4894echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4895else
4896  echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898fi
4899
4900  PKG_CONFIG=$ac_pt_PKG_CONFIG
4901else
4902  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4903fi
4904
4905  fi
4906  if test -n "$PKG_CONFIG"; then
4907    _pkg_min_version=0.16.0
4908    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4909echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4910    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4911      echo "$as_me:$LINENO: result: yes" >&5
4912echo "${ECHO_T}yes" >&6
4913    else
4914      echo "$as_me:$LINENO: result: no" >&5
4915echo "${ECHO_T}no" >&6
4916      PKG_CONFIG=""
4917    fi
4918  fi
4919
4920  # check if pkg-config supports the short-errors flag
4921  if test -n "$PKG_CONFIG" && \
4922    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4923    pkg_short_errors=" --short-errors "
4924  else
4925    pkg_short_errors=""
4926  fi
4927fi
4928
4929
4930
4931if test -n "$PKG_CONFIG"; then
4932  COIN_HAS_PKGCONFIG_TRUE=
4933  COIN_HAS_PKGCONFIG_FALSE='#'
4934else
4935  COIN_HAS_PKGCONFIG_TRUE='#'
4936  COIN_HAS_PKGCONFIG_FALSE=
4937fi
4938
4939
4940
4941# assemble pkg-config search path for installed projects
4942COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4943
4944# 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
4945# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4946# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4947if test "x${prefix}" = xNONE ; then
4948  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4949else
4950  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4951fi
4952
4953
4954# Check whether --with-coin-instdir or --without-coin-instdir was given.
4955if test "${with_coin_instdir+set}" = set; then
4956  withval="$with_coin_instdir"
4957  if test -d "$withval"; then : ; else
4958     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4959echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4960   { (exit 1); exit 1; }; }
4961   fi
4962   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4963
4964fi;
4965
4966
4967
4968# assemble additional pkg-config search paths for uninstalled projects
4969if test x$coin_projectdir = xyes ; then
4970  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4971  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4972  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4973  # 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)
4974  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4975  if test -e ../coin_subdirs.txt ; then
4976    for i in `cat ../coin_subdirs.txt` ; do
4977      if test -d ../$i ; then
4978        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4979      fi
4980      if test -d ../$i/pkgconfig ; then
4981        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4982      fi
4983    done
4984  fi
4985
4986  if test -e ../../coin_subdirs.txt ; then
4987    for i in `cat ../../coin_subdirs.txt` ; do
4988      if test -d ../../$i ; then
4989        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4990      fi
4991      if test -d ../../$i/pkgconfig ; then
4992        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4993      fi
4994    done
4995  fi
4996
4997
4998fi
4999
5000if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5001  { 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
5002echo "$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;}
5003fi
5004
5005
5006
5007# Initialize automake
5008{
5009
5010
5011
5012# START
5013
5014# Test if force_shared has been set
5015if test "x" = xforce_shared; then
5016  if test x$enable_shared = xno; then
5017    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5018echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5019   { (exit 1); exit 1; }; }
5020  fi
5021  enable_shared=yes;
5022else
5023  # On Cygwin and AIX, building DLLs doesn't work
5024  case $build in
5025    *-cygwin*)
5026      coin_disable_shared=yes
5027      platform=Cygwin
5028    ;;
5029    *-aix*)
5030      coin_disable_shared=yes
5031      platform=AIX
5032    ;;
5033    *-mingw*)
5034      coin_disable_shared=yes
5035      platform="Msys"
5036#      case "$CXX" in
5037#        cl*)
5038#          coin_disable_shared=yes
5039#          platform="Msys with cl"
5040#      ;;
5041#      esac
5042    ;;
5043  esac
5044fi
5045if test x"$coin_disable_shared" = xyes; then
5046  if test x"$enable_shared" = xyes; then
5047    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5048echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5049  fi
5050  enable_shared=no
5051fi
5052# By default, we only want the shared objects to be compiled
5053# Check whether --enable-static or --disable-static was given.
5054if test "${enable_static+set}" = set; then
5055  enableval="$enable_static"
5056  p=${PACKAGE-default}
5057    case $enableval in
5058    yes) enable_static=yes ;;
5059    no) enable_static=no ;;
5060    *)
5061     enable_static=no
5062      # Look at the argument we got.  We use all the common list separators.
5063      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5064      for pkg in $enableval; do
5065        IFS="$lt_save_ifs"
5066        if test "X$pkg" = "X$p"; then
5067          enable_static=yes
5068        fi
5069      done
5070      IFS="$lt_save_ifs"
5071      ;;
5072    esac
5073else
5074  enable_static=no
5075fi;
5076
5077
5078
5079
5080# Initialize automake
5081echo "$as_me:$LINENO: checking for egrep" >&5
5082echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5083if test "${ac_cv_prog_egrep+set}" = set; then
5084  echo $ECHO_N "(cached) $ECHO_C" >&6
5085else
5086  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5087    then ac_cv_prog_egrep='grep -E'
5088    else ac_cv_prog_egrep='egrep'
5089    fi
5090fi
5091echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5092echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5093 EGREP=$ac_cv_prog_egrep
5094
5095
5096echo "$as_me:$LINENO: checking whether ln -s works" >&5
5097echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5098LN_S=$as_ln_s
5099if test "$LN_S" = "ln -s"; then
5100  echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
5102else
5103  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5104echo "${ECHO_T}no, using $LN_S" >&6
5105fi
5106
5107am__api_version="1.9"
5108# Find a good install program.  We prefer a C program (faster),
5109# so one script is as good as another.  But avoid the broken or
5110# incompatible versions:
5111# SysV /etc/install, /usr/sbin/install
5112# SunOS /usr/etc/install
5113# IRIX /sbin/install
5114# AIX /bin/install
5115# AmigaOS /C/install, which installs bootblocks on floppy discs
5116# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5117# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5118# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5119# OS/2's system install, which has a completely different semantic
5120# ./install, which can be erroneously created by make from ./install.sh.
5121echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5122echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5123if test -z "$INSTALL"; then
5124if test "${ac_cv_path_install+set}" = set; then
5125  echo $ECHO_N "(cached) $ECHO_C" >&6
5126else
5127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130  IFS=$as_save_IFS
5131  test -z "$as_dir" && as_dir=.
5132  # Account for people who put trailing slashes in PATH elements.
5133case $as_dir/ in
5134  ./ | .// | /cC/* | \
5135  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5136  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5137  /usr/ucb/* ) ;;
5138  *)
5139    # OSF1 and SCO ODT 3.0 have their own names for install.
5140    # Don't use installbsd from OSF since it installs stuff as root
5141    # by default.
5142    for ac_prog in ginstall scoinst install; do
5143      for ac_exec_ext in '' $ac_executable_extensions; do
5144        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5145          if test $ac_prog = install &&
5146            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5147            # AIX install.  It has an incompatible calling convention.
5148            :
5149          elif test $ac_prog = install &&
5150            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5151            # program-specific install script used by HP pwplus--don't use.
5152            :
5153          else
5154            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5155            break 3
5156          fi
5157        fi
5158      done
5159    done
5160    ;;
5161esac
5162done
5163
5164
5165fi
5166  if test "${ac_cv_path_install+set}" = set; then
5167    INSTALL=$ac_cv_path_install
5168  else
5169    # As a last resort, use the slow shell script.  We don't cache a
5170    # path for INSTALL within a source directory, because that will
5171    # break other packages using the cache if that directory is
5172    # removed, or if the path is relative.
5173    INSTALL=$ac_install_sh
5174  fi
5175fi
5176echo "$as_me:$LINENO: result: $INSTALL" >&5
5177echo "${ECHO_T}$INSTALL" >&6
5178
5179# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5180# It thinks the first close brace ends the variable substitution.
5181test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5182
5183test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5184
5185test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5186
5187echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5188echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5189# Just in case
5190sleep 1
5191echo timestamp > conftest.file
5192# Do `set' in a subshell so we don't clobber the current shell's
5193# arguments.  Must try -L first in case configure is actually a
5194# symlink; some systems play weird games with the mod time of symlinks
5195# (eg FreeBSD returns the mod time of the symlink's containing
5196# directory).
5197if (
5198   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5199   if test "$*" = "X"; then
5200      # -L didn't work.
5201      set X `ls -t $srcdir/configure conftest.file`
5202   fi
5203   rm -f conftest.file
5204   if test "$*" != "X $srcdir/configure conftest.file" \
5205      && test "$*" != "X conftest.file $srcdir/configure"; then
5206
5207      # If neither matched, then we have a broken ls.  This can happen
5208      # if, for instance, CONFIG_SHELL is bash and it inherits a
5209      # broken ls alias from the environment.  This has actually
5210      # happened.  Such a system could not be considered "sane".
5211      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5212alias in your environment" >&5
5213echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5214alias in your environment" >&2;}
5215   { (exit 1); exit 1; }; }
5216   fi
5217
5218   test "$2" = conftest.file
5219   )
5220then
5221   # Ok.
5222   :
5223else
5224   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5225Check your system clock" >&5
5226echo "$as_me: error: newly created file is older than distributed files!
5227Check your system clock" >&2;}
5228   { (exit 1); exit 1; }; }
5229fi
5230echo "$as_me:$LINENO: result: yes" >&5
5231echo "${ECHO_T}yes" >&6
5232test "$program_prefix" != NONE &&
5233  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5234# Use a double $ so make ignores it.
5235test "$program_suffix" != NONE &&
5236  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5237# Double any \ or $.  echo might interpret backslashes.
5238# By default was `s,x,x', remove it if useless.
5239cat <<\_ACEOF >conftest.sed
5240s/[\\$]/&&/g;s/;s,x,x,$//
5241_ACEOF
5242program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5243rm conftest.sed
5244
5245# expand $ac_aux_dir to an absolute path
5246am_aux_dir=`cd $ac_aux_dir && pwd`
5247
5248test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5249# Use eval to expand $SHELL
5250if eval "$MISSING --run true"; then
5251  am_missing_run="$MISSING --run "
5252else
5253  am_missing_run=
5254  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5255echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5256fi
5257
5258if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5259  # We used to keeping the `.' as first argument, in order to
5260  # allow $(mkdir_p) to be used without argument.  As in
5261  #   $(mkdir_p) $(somedir)
5262  # where $(somedir) is conditionally defined.  However this is wrong
5263  # for two reasons:
5264  #  1. if the package is installed by a user who cannot write `.'
5265  #     make install will fail,
5266  #  2. the above comment should most certainly read
5267  #     $(mkdir_p) $(DESTDIR)$(somedir)
5268  #     so it does not work when $(somedir) is undefined and
5269  #     $(DESTDIR) is not.
5270  #  To support the latter case, we have to write
5271  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5272  #  so the `.' trick is pointless.
5273  mkdir_p='mkdir -p --'
5274else
5275  # On NextStep and OpenStep, the `mkdir' command does not
5276  # recognize any option.  It will interpret all options as
5277  # directories to create, and then abort because `.' already
5278  # exists.
5279  for d in ./-p ./--version;
5280  do
5281    test -d $d && rmdir $d
5282  done
5283  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5284  if test -f "$ac_aux_dir/mkinstalldirs"; then
5285    mkdir_p='$(mkinstalldirs)'
5286  else
5287    mkdir_p='$(install_sh) -d'
5288  fi
5289fi
5290
5291for ac_prog in gawk mawk nawk awk
5292do
5293  # Extract the first word of "$ac_prog", so it can be a program name with args.
5294set dummy $ac_prog; ac_word=$2
5295echo "$as_me:$LINENO: checking for $ac_word" >&5
5296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5297if test "${ac_cv_prog_AWK+set}" = set; then
5298  echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300  if test -n "$AWK"; then
5301  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5302else
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306  IFS=$as_save_IFS
5307  test -z "$as_dir" && as_dir=.
5308  for ac_exec_ext in '' $ac_executable_extensions; do
5309  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310    ac_cv_prog_AWK="$ac_prog"
5311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312    break 2
5313  fi
5314done
5315done
5316
5317fi
5318fi
5319AWK=$ac_cv_prog_AWK
5320if test -n "$AWK"; then
5321  echo "$as_me:$LINENO: result: $AWK" >&5
5322echo "${ECHO_T}$AWK" >&6
5323else
5324  echo "$as_me:$LINENO: result: no" >&5
5325echo "${ECHO_T}no" >&6
5326fi
5327
5328  test -n "$AWK" && break
5329done
5330
5331echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5332echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5333set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5334if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5335  echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337  cat >conftest.make <<\_ACEOF
5338all:
5339        @echo 'ac_maketemp="$(MAKE)"'
5340_ACEOF
5341# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5342eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5343if test -n "$ac_maketemp"; then
5344  eval ac_cv_prog_make_${ac_make}_set=yes
5345else
5346  eval ac_cv_prog_make_${ac_make}_set=no
5347fi
5348rm -f conftest.make
5349fi
5350if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5351  echo "$as_me:$LINENO: result: yes" >&5
5352echo "${ECHO_T}yes" >&6
5353  SET_MAKE=
5354else
5355  echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
5357  SET_MAKE="MAKE=${MAKE-make}"
5358fi
5359
5360rm -rf .tst 2>/dev/null
5361mkdir .tst 2>/dev/null
5362if test -d .tst; then
5363  am__leading_dot=.
5364else
5365  am__leading_dot=_
5366fi
5367rmdir .tst 2>/dev/null
5368
5369DEPDIR="${am__leading_dot}deps"
5370
5371          ac_config_commands="$ac_config_commands depfiles"
5372
5373
5374am_make=${MAKE-make}
5375cat > confinc << 'END'
5376am__doit:
5377        @echo done
5378.PHONY: am__doit
5379END
5380# If we don't find an include directive, just comment out the code.
5381echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5382echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5383am__include="#"
5384am__quote=
5385_am_result=none
5386# First try GNU make style include.
5387echo "include confinc" > confmf
5388# We grep out `Entering directory' and `Leaving directory'
5389# messages which can occur if `w' ends up in MAKEFLAGS.
5390# In particular we don't look at `^make:' because GNU make might
5391# be invoked under some other name (usually "gmake"), in which
5392# case it prints its new name instead of `make'.
5393if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5394   am__include=include
5395   am__quote=
5396   _am_result=GNU
5397fi
5398# Now try BSD make style include.
5399if test "$am__include" = "#"; then
5400   echo '.include "confinc"' > confmf
5401   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5402      am__include=.include
5403      am__quote="\""
5404      _am_result=BSD
5405   fi
5406fi
5407
5408
5409echo "$as_me:$LINENO: result: $_am_result" >&5
5410echo "${ECHO_T}$_am_result" >&6
5411rm -f confinc confmf
5412
5413# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5414if test "${enable_dependency_tracking+set}" = set; then
5415  enableval="$enable_dependency_tracking"
5416
5417fi;
5418if test "x$enable_dependency_tracking" != xno; then
5419  am_depcomp="$ac_aux_dir/depcomp"
5420  AMDEPBACKSLASH='\'
5421fi
5422
5423
5424if test "x$enable_dependency_tracking" != xno; then
5425  AMDEP_TRUE=
5426  AMDEP_FALSE='#'
5427else
5428  AMDEP_TRUE='#'
5429  AMDEP_FALSE=
5430fi
5431
5432
5433
5434
5435
5436
5437# AC_MSG_NOTICE([Beginning automake initialisation.])
5438# Stuff for automake
5439# test to see if srcdir already configured
5440if test "`cd $srcdir && pwd`" != "`pwd`" &&
5441   test -f $srcdir/config.status; then
5442  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5443echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5444   { (exit 1); exit 1; }; }
5445fi
5446
5447# test whether we have cygpath
5448if test -z "$CYGPATH_W"; then
5449  if (cygpath --version) >/dev/null 2>/dev/null; then
5450    CYGPATH_W='cygpath -w'
5451  else
5452    CYGPATH_W=echo
5453  fi
5454fi
5455
5456
5457# Define the identity of the package.
5458 PACKAGE='thirdpartyblas'
5459 VERSION='trunk'
5460
5461
5462cat >>confdefs.h <<_ACEOF
5463#define PACKAGE "$PACKAGE"
5464_ACEOF
5465
5466
5467cat >>confdefs.h <<_ACEOF
5468#define VERSION "$VERSION"
5469_ACEOF
5470
5471# Some tools Automake needs.
5472
5473ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5474
5475
5476AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5477
5478
5479AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5480
5481
5482AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5483
5484
5485MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5486
5487install_sh=${install_sh-"$am_aux_dir/install-sh"}
5488
5489# Installed binaries are usually stripped using `strip' when the user
5490# run `make install-strip'.  However `strip' might not be the right
5491# tool to use in cross-compilation environments, therefore Automake
5492# will honor the `STRIP' environment variable to overrule this program.
5493if test "$cross_compiling" != no; then
5494  if test -n "$ac_tool_prefix"; then
5495  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5496set dummy ${ac_tool_prefix}strip; ac_word=$2
5497echo "$as_me:$LINENO: checking for $ac_word" >&5
5498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5499if test "${ac_cv_prog_STRIP+set}" = set; then
5500  echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502  if test -n "$STRIP"; then
5503  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508  IFS=$as_save_IFS
5509  test -z "$as_dir" && as_dir=.
5510  for ac_exec_ext in '' $ac_executable_extensions; do
5511  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5513    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514    break 2
5515  fi
5516done
5517done
5518
5519fi
5520fi
5521STRIP=$ac_cv_prog_STRIP
5522if test -n "$STRIP"; then
5523  echo "$as_me:$LINENO: result: $STRIP" >&5
5524echo "${ECHO_T}$STRIP" >&6
5525else
5526  echo "$as_me:$LINENO: result: no" >&5
5527echo "${ECHO_T}no" >&6
5528fi
5529
5530fi
5531if test -z "$ac_cv_prog_STRIP"; then
5532  ac_ct_STRIP=$STRIP
5533  # Extract the first word of "strip", so it can be a program name with args.
5534set dummy strip; ac_word=$2
5535echo "$as_me:$LINENO: checking for $ac_word" >&5
5536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5537if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5538  echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540  if test -n "$ac_ct_STRIP"; then
5541  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5542else
5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544for as_dir in $PATH
5545do
5546  IFS=$as_save_IFS
5547  test -z "$as_dir" && as_dir=.
5548  for ac_exec_ext in '' $ac_executable_extensions; do
5549  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550    ac_cv_prog_ac_ct_STRIP="strip"
5551    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552    break 2
5553  fi
5554done
5555done
5556
5557  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5558fi
5559fi
5560ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5561if test -n "$ac_ct_STRIP"; then
5562  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5563echo "${ECHO_T}$ac_ct_STRIP" >&6
5564else
5565  echo "$as_me:$LINENO: result: no" >&5
5566echo "${ECHO_T}no" >&6
5567fi
5568
5569  STRIP=$ac_ct_STRIP
5570else
5571  STRIP="$ac_cv_prog_STRIP"
5572fi
5573
5574fi
5575INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5576
5577# We need awk for the "check" target.  The system "awk" is bad on
5578# some platforms.
5579# Always define AMTAR for backward compatibility.
5580
5581AMTAR=${AMTAR-"${am_missing_run}tar"}
5582
5583am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5584
5585
5586
5587
5588depcc="$CC"   am_compiler_list=
5589
5590echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5591echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5592if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5593  echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5596  # We make a subdir and do the tests there.  Otherwise we can end up
5597  # making bogus files that we don't know about and never remove.  For
5598  # instance it was reported that on HP-UX the gcc test will end up
5599  # making a dummy file named `D' -- because `-MD' means `put the output
5600  # in D'.
5601  mkdir conftest.dir
5602  # Copy depcomp to subdir because otherwise we won't find it if we're
5603  # using a relative directory.
5604  cp "$am_depcomp" conftest.dir
5605  cd conftest.dir
5606  # We will build objects and dependencies in a subdirectory because
5607  # it helps to detect inapplicable dependency modes.  For instance
5608  # both Tru64's cc and ICC support -MD to output dependencies as a
5609  # side effect of compilation, but ICC will put the dependencies in
5610  # the current directory while Tru64 will put them in the object
5611  # directory.
5612  mkdir sub
5613
5614  am_cv_CC_dependencies_compiler_type=none
5615  if test "$am_compiler_list" = ""; then
5616     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5617  fi
5618  for depmode in $am_compiler_list; do
5619    # Setup a source with many dependencies, because some compilers
5620    # like to wrap large dependency lists on column 80 (with \), and
5621    # we should not choose a depcomp mode which is confused by this.
5622    #
5623    # We need to recreate these files for each test, as the compiler may
5624    # overwrite some of them when testing with obscure command lines.
5625    # This happens at least with the AIX C compiler.
5626    : > sub/conftest.c
5627    for i in 1 2 3 4 5 6; do
5628      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5629      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5630      # Solaris 8's {/usr,}/bin/sh.
5631      touch sub/conftst$i.h
5632    done
5633    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5634
5635    case $depmode in
5636    nosideeffect)
5637      # after this tag, mechanisms are not by side-effect, so they'll
5638      # only be used when explicitly requested
5639      if test "x$enable_dependency_tracking" = xyes; then
5640        continue
5641      else
5642        break
5643      fi
5644      ;;
5645    none) break ;;
5646    esac
5647    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5648    # mode.  It turns out that the SunPro C++ compiler does not properly
5649    # handle `-M -o', and we need to detect this.
5650    if depmode=$depmode \
5651       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5652       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5653       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5654         >/dev/null 2>conftest.err &&
5655       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5656       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5657       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5658      # icc doesn't choke on unknown options, it will just issue warnings
5659      # or remarks (even with -Werror).  So we grep stderr for any message
5660      # that says an option was ignored or not supported.
5661      # When given -MP, icc 7.0 and 7.1 complain thusly:
5662      #   icc: Command line warning: ignoring option '-M'; no argument required
5663      # The diagnosis changed in icc 8.0:
5664      #   icc: Command line remark: option '-MP' not supported
5665      if (grep 'ignoring option' conftest.err ||
5666          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5667        am_cv_CC_dependencies_compiler_type=$depmode
5668        break
5669      fi
5670    fi
5671  done
5672
5673  cd ..
5674  rm -rf conftest.dir
5675else
5676  am_cv_CC_dependencies_compiler_type=none
5677fi
5678
5679fi
5680echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5681echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5682CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5683
5684
5685
5686if
5687  test "x$enable_dependency_tracking" != xno \
5688  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5689  am__fastdepCC_TRUE=
5690  am__fastdepCC_FALSE='#'
5691else
5692  am__fastdepCC_TRUE='#'
5693  am__fastdepCC_FALSE=
5694fi
5695
5696
5697
5698echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5699echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5700    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5701if test "${enable_maintainer_mode+set}" = set; then
5702  enableval="$enable_maintainer_mode"
5703  USE_MAINTAINER_MODE=$enableval
5704else
5705  USE_MAINTAINER_MODE=no
5706fi;
5707  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5708echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5709
5710
5711if test $USE_MAINTAINER_MODE = yes; then
5712  MAINTAINER_MODE_TRUE=
5713  MAINTAINER_MODE_FALSE='#'
5714else
5715  MAINTAINER_MODE_TRUE='#'
5716  MAINTAINER_MODE_FALSE=
5717fi
5718
5719  MAINT=$MAINTAINER_MODE_TRUE
5720
5721
5722
5723coin_have_externals=no
5724if test "$enable_maintainer_mode" = yes; then
5725
5726  # If maintainer mode is chosen, we make sure that the correct versions
5727  # of the tools are used, and that we know where libtool.m4 is (to
5728  # recreate acinclude.m4)
5729
5730
5731  LIBTOOLM4=
5732  # Normally, $HOME
5733  AUTOTOOLS_DFLT=$HOME
5734
5735  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5736echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5737if test "${ac_cv_use_correct_autotools+set}" = set; then
5738  echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740  ac_cv_use_correct_autotools=check
5741fi
5742echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5743echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5744
5745  if test $ac_cv_use_correct_autotools = check; then
5746    ac_cv_use_correct_autotools=yes
5747    # Check if we have autoconf
5748    # Extract the first word of "autoconf", so it can be a program name with args.
5749set dummy autoconf; ac_word=$2
5750echo "$as_me:$LINENO: checking for $ac_word" >&5
5751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5752if test "${ac_cv_prog_have_autoconf+set}" = set; then
5753  echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755  if test -n "$have_autoconf"; then
5756  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761  IFS=$as_save_IFS
5762  test -z "$as_dir" && as_dir=.
5763  for ac_exec_ext in '' $ac_executable_extensions; do
5764  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765    ac_cv_prog_have_autoconf="yes"
5766    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767    break 2
5768  fi
5769done
5770done
5771
5772  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5773fi
5774fi
5775have_autoconf=$ac_cv_prog_have_autoconf
5776if test -n "$have_autoconf"; then
5777  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5778echo "${ECHO_T}$have_autoconf" >&6
5779else
5780  echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
5782fi
5783
5784    if test $have_autoconf = no; then
5785      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5786echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5787   { (exit 1); exit 1; }; }
5788    fi
5789
5790    # Check whether autoconf is the correct version
5791    correct_version='2.59'
5792    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5793    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5794echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5795    autoconf --version > confauto.out 2>&1
5796    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5797      echo "$as_me:$LINENO: result: yes" >&5
5798echo "${ECHO_T}yes" >&6
5799    else
5800      rm -f confauto.out
5801      echo "$as_me:$LINENO: result: no" >&5
5802echo "${ECHO_T}no" >&6
5803      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5804echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5805   { (exit 1); exit 1; }; }
5806    fi
5807    rm -f confauto.out
5808
5809    # Check if the executable autoconf is picked up from the correct location
5810    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5811echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5812    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5813    autoconf_dir=`cd $autoconf_dir; pwd`
5814    if test x$AUTOTOOLS_DIR = x; then
5815      want_dir=$AUTOTOOLS_DFLT/bin
5816    else
5817      want_dir=$AUTOTOOLS_DIR/bin
5818    fi
5819    if test $autoconf_dir = `cd $want_dir; pwd`; then
5820      echo "$as_me:$LINENO: result: yes" >&5
5821echo "${ECHO_T}yes" >&6
5822    else
5823      rm -f confauto.out
5824      echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
5826      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5827echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5828   { (exit 1); exit 1; }; }
5829    fi
5830
5831    # Check if we have automake
5832    # Extract the first word of "automake", so it can be a program name with args.
5833set dummy automake; ac_word=$2
5834echo "$as_me:$LINENO: checking for $ac_word" >&5
5835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836if test "${ac_cv_prog_have_automake+set}" = set; then
5837  echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839  if test -n "$have_automake"; then
5840  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5841else
5842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843for as_dir in $PATH
5844do
5845  IFS=$as_save_IFS
5846  test -z "$as_dir" && as_dir=.
5847  for ac_exec_ext in '' $ac_executable_extensions; do
5848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849    ac_cv_prog_have_automake="yes"
5850    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851    break 2
5852  fi
5853done
5854done
5855
5856  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5857fi
5858fi
5859have_automake=$ac_cv_prog_have_automake
5860if test -n "$have_automake"; then
5861  echo "$as_me:$LINENO: result: $have_automake" >&5
5862echo "${ECHO_T}$have_automake" >&6
5863else
5864  echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
5866fi
5867
5868    if test $have_automake = no; then
5869      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5870echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5871   { (exit 1); exit 1; }; }
5872    fi
5873
5874    # Check whether automake is the correct version
5875    correct_version='1.9.6'
5876    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5877    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5878echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5879    automake --version > confauto.out 2>&1
5880    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5881      echo "$as_me:$LINENO: result: yes" >&5
5882echo "${ECHO_T}yes" >&6
5883    else
5884      rm -f confauto.out
5885      echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5888echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5889   { (exit 1); exit 1; }; }
5890    fi
5891    rm -f confauto.out
5892
5893    # Check if the executable automake is picked up from the correct location
5894    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5895echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5896    automake_dir=`which automake | sed -e 's=/automake=='`
5897    automake_dir=`cd $automake_dir; pwd`
5898    if test x$AUTOTOOLS_DIR = x; then
5899      want_dir=$AUTOTOOLS_DFLT/bin
5900    else
5901      want_dir=$AUTOTOOLS_DIR/bin
5902    fi
5903    if test $automake_dir = `cd $want_dir; pwd`; then
5904      echo "$as_me:$LINENO: result: yes" >&5
5905echo "${ECHO_T}yes" >&6
5906    else
5907      rm -f confauto.out
5908      echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6
5910      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5911echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5912   { (exit 1); exit 1; }; }
5913    fi
5914
5915    # Check if this is the correct version of libtool (with escaped dots)
5916    if test x$AUTOTOOLS_DIR = x; then
5917      want_dir=$AUTOTOOLS_DFLT/share
5918    else
5919      want_dir=$AUTOTOOLS_DIR/share
5920    fi
5921    correct_version='1.5.22'
5922    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5923    if test -r $want_dir/libtool/ltmain.sh; then
5924  have_ltmain=yes
5925  :
5926else
5927  have_ltmain=no
5928  :
5929fi
5930
5931    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5932echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5933    if test $have_ltmain = yes; then
5934    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5935        echo "$as_me:$LINENO: result: yes" >&5
5936echo "${ECHO_T}yes" >&6
5937      else
5938        echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6
5940        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5941echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5942   { (exit 1); exit 1; }; }
5943      fi
5944    else
5945      echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
5947      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5948echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5949   { (exit 1); exit 1; }; }
5950    fi
5951  fi
5952
5953  # Check if we can find the libtool file
5954  if test x$AUTOTOOLS_DIR = x; then
5955    want_dir=$AUTOTOOLS_DFLT/share
5956  else
5957    want_dir=$AUTOTOOLS_DIR/share
5958  fi
5959  if test -r $want_dir/aclocal/libtool.m4; then
5960  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5961  :
5962else
5963  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5964echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5965   { (exit 1); exit 1; }; }
5966  :
5967fi
5968
5969
5970  # Check if we have an Dependencies file
5971  if test -r $srcdir/Dependencies; then
5972    coin_have_externals=yes
5973  fi
5974  # Check if subversion is installed and understands https
5975  # Extract the first word of "svn", so it can be a program name with args.
5976set dummy svn; ac_word=$2
5977echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979if test "${ac_cv_prog_have_svn+set}" = set; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  if test -n "$have_svn"; then
5983  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988  IFS=$as_save_IFS
5989  test -z "$as_dir" && as_dir=.
5990  for ac_exec_ext in '' $ac_executable_extensions; do
5991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992    ac_cv_prog_have_svn="yes"
5993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994    break 2
5995  fi
5996done
5997done
5998
5999  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6000fi
6001fi
6002have_svn=$ac_cv_prog_have_svn
6003if test -n "$have_svn"; then
6004  echo "$as_me:$LINENO: result: $have_svn" >&5
6005echo "${ECHO_T}$have_svn" >&6
6006else
6007  echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6
6009fi
6010
6011  if test x$have_svn = xyes; then
6012    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6013echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6014if test "${ac_cv_svn_understands_https+set}" = set; then
6015  echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017  svn --version > confauto.out 2>&1
6018                    if $EGREP https confauto.out >/dev/null 2>&1; then
6019                      ac_cv_svn_understands_https=yes
6020                    else
6021                      ac_cv_svn_understands_https=no
6022                      have_svn=no
6023                      ac_cv_prog_have_svn=no
6024                    fi
6025                    rm -f confauto.out
6026fi
6027echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6028echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6029  fi
6030
6031  # Find the location of the BuildTools directory
6032  BUILDTOOLSDIR=
6033  if test -r $srcdir/BuildTools/coin.m4; then
6034    BUILDTOOLSDIR=$srcdir/BuildTools
6035  else
6036    if test -r $srcdir/../BuildTools/coin.m4; then
6037      BUILDTOOLSDIR=$srcdir/../BuildTools
6038    else
6039      if test -r $srcdir/../../BuildTools/coin.m4; then
6040        BUILDTOOLSDIR=$srcdir/../../BuildTools
6041      else
6042        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6043echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6044   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6045      fi
6046    fi
6047  fi
6048
6049
6050  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6051  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6052    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6053  fi
6054
6055  # The following variable is set to the name of the directory where
6056  # the autotool scripts are located
6057
6058  AUX_DIR=$ac_aux_dir
6059fi
6060
6061# helpful variable for the base directory of this package
6062abs_source_dir=`cd $srcdir; pwd`
6063
6064
6065# Stuff for example Makefiles
6066if test x$prefix = xNONE; then
6067  full_prefix=$ac_default_prefix
6068else
6069  full_prefix=$prefix
6070fi
6071full_prefix=`cd $full_prefix ; pwd`
6072
6073abs_lib_dir=$full_prefix/lib
6074
6075abs_include_dir=$full_prefix/include
6076
6077abs_bin_dir=$full_prefix/bin
6078
6079
6080
6081if test $coin_have_externals = yes && test x$have_svn = xyes; then
6082  HAVE_EXTERNALS_TRUE=
6083  HAVE_EXTERNALS_FALSE='#'
6084else
6085  HAVE_EXTERNALS_TRUE='#'
6086  HAVE_EXTERNALS_FALSE=
6087fi
6088
6089
6090# AC_MSG_NOTICE([End automake initialisation.])
6091
6092
6093
6094LIBTOOL=
6095if test -r ../libtool; then
6096  coin_config_dir=..
6097  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6098fi
6099if test "x$LIBTOOL" = x; then
6100  if test -r ../../libtool; then
6101    coin_config_dir=../..
6102    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6103  fi
6104fi
6105
6106if test "x$LIBTOOL" = x; then
6107# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6108  # Stuff for libtool
6109  # Check whether --enable-shared or --disable-shared was given.
6110if test "${enable_shared+set}" = set; then
6111  enableval="$enable_shared"
6112  p=${PACKAGE-default}
6113    case $enableval in
6114    yes) enable_shared=yes ;;
6115    no) enable_shared=no ;;
6116    *)
6117      enable_shared=no
6118      # Look at the argument we got.  We use all the common list separators.
6119      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6120      for pkg in $enableval; do
6121        IFS="$lt_save_ifs"
6122        if test "X$pkg" = "X$p"; then
6123          enable_shared=yes
6124        fi
6125      done
6126      IFS="$lt_save_ifs"
6127      ;;
6128    esac
6129else
6130  enable_shared=yes
6131fi;
6132
6133# Check whether --enable-fast-install or --disable-fast-install was given.
6134if test "${enable_fast_install+set}" = set; then
6135  enableval="$enable_fast_install"
6136  p=${PACKAGE-default}
6137    case $enableval in
6138    yes) enable_fast_install=yes ;;
6139    no) enable_fast_install=no ;;
6140    *)
6141      enable_fast_install=no
6142      # Look at the argument we got.  We use all the common list separators.
6143      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6144      for pkg in $enableval; do
6145        IFS="$lt_save_ifs"
6146        if test "X$pkg" = "X$p"; then
6147          enable_fast_install=yes
6148        fi
6149      done
6150      IFS="$lt_save_ifs"
6151      ;;
6152    esac
6153else
6154  enable_fast_install=yes
6155fi;
6156
6157echo "$as_me:$LINENO: checking host system type" >&5
6158echo $ECHO_N "checking host system type... $ECHO_C" >&6
6159if test "${ac_cv_host+set}" = set; then
6160  echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162  ac_cv_host_alias=$host_alias
6163test -z "$ac_cv_host_alias" &&
6164  ac_cv_host_alias=$ac_cv_build_alias
6165ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6166  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6167echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6168   { (exit 1); exit 1; }; }
6169
6170fi
6171echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6172echo "${ECHO_T}$ac_cv_host" >&6
6173host=$ac_cv_host
6174host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6175host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6176host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6177
6178
6179echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6180echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6181if test "${lt_cv_path_SED+set}" = set; then
6182  echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184  # Loop through the user's path and test for sed and gsed.
6185# Then use that list of sed's as ones to test for truncation.
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189  IFS=$as_save_IFS
6190  test -z "$as_dir" && as_dir=.
6191  for lt_ac_prog in sed gsed; do
6192    for ac_exec_ext in '' $ac_executable_extensions; do
6193      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6194        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6195      fi
6196    done
6197  done
6198done
6199lt_ac_max=0
6200lt_ac_count=0
6201# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6202# along with /bin/sed that truncates output.
6203for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6204  test ! -f $lt_ac_sed && continue
6205  cat /dev/null > conftest.in
6206  lt_ac_count=0
6207  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6208  # Check for GNU sed and select it if it is found.
6209  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6210    lt_cv_path_SED=$lt_ac_sed
6211    break
6212  fi
6213  while true; do
6214    cat conftest.in conftest.in >conftest.tmp
6215    mv conftest.tmp conftest.in
6216    cp conftest.in conftest.nl
6217    echo >>conftest.nl
6218    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6219    cmp -s conftest.out conftest.nl || break
6220    # 10000 chars as input seems more than enough
6221    test $lt_ac_count -gt 10 && break
6222    lt_ac_count=`expr $lt_ac_count + 1`
6223    if test $lt_ac_count -gt $lt_ac_max; then
6224      lt_ac_max=$lt_ac_count
6225      lt_cv_path_SED=$lt_ac_sed
6226    fi
6227  done
6228done
6229
6230fi
6231
6232SED=$lt_cv_path_SED
6233echo "$as_me:$LINENO: result: $SED" >&5
6234echo "${ECHO_T}$SED" >&6
6235
6236
6237# Check whether --with-gnu-ld or --without-gnu-ld was given.
6238if test "${with_gnu_ld+set}" = set; then
6239  withval="$with_gnu_ld"
6240  test "$withval" = no || with_gnu_ld=yes
6241else
6242  with_gnu_ld=no
6243fi;
6244ac_prog=ld
6245if test "$GCC" = yes; then
6246  # Check if gcc -print-prog-name=ld gives a path.
6247  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6248echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6249  case $host in
6250  *-*-mingw*)
6251    # gcc leaves a trailing carriage return which upsets mingw
6252    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6253  *)
6254    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6255  esac
6256  case $ac_prog in
6257    # Accept absolute paths.
6258    [\\/]* | ?:[\\/]*)
6259      re_direlt='/[^/][^/]*/\.\./'
6260      # Canonicalize the pathname of ld
6261      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6262      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6263        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6264      done
6265      test -z "$LD" && LD="$ac_prog"
6266      ;;
6267  "")
6268    # If it fails, then pretend we aren't using GCC.
6269    ac_prog=ld
6270    ;;
6271  *)
6272    # If it is relative, then search for the first ld in PATH.
6273    with_gnu_ld=unknown
6274    ;;
6275  esac
6276elif test "$with_gnu_ld" = yes; then
6277  echo "$as_me:$LINENO: checking for GNU ld" >&5
6278echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6279else
6280  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6281echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6282fi
6283if test "${lt_cv_path_LD+set}" = set; then
6284  echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
6286  if test -z "$LD"; then
6287  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6288  for ac_dir in $PATH; do
6289    IFS="$lt_save_ifs"
6290    test -z "$ac_dir" && ac_dir=.
6291    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6292      lt_cv_path_LD="$ac_dir/$ac_prog"
6293      # Check to see if the program is GNU ld.  I'd rather use --version,
6294      # but apparently some variants of GNU ld only accept -v.
6295      # Break only if it was the GNU/non-GNU ld that we prefer.
6296      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6297      *GNU* | *'with BFD'*)
6298        test "$with_gnu_ld" != no && break
6299        ;;
6300      *)
6301        test "$with_gnu_ld" != yes && break
6302        ;;
6303      esac
6304    fi
6305  done
6306  IFS="$lt_save_ifs"
6307else
6308  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6309fi
6310fi
6311
6312LD="$lt_cv_path_LD"
6313if test -n "$LD"; then
6314  echo "$as_me:$LINENO: result: $LD" >&5
6315echo "${ECHO_T}$LD" >&6
6316else
6317  echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6
6319fi
6320test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6321echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6322   { (exit 1); exit 1; }; }
6323echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6324echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6325if test "${lt_cv_prog_gnu_ld+set}" = set; then
6326  echo $ECHO_N "(cached) $ECHO_C" >&6
6327else
6328  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6329case `$LD -v 2>&1 </dev/null` in
6330*GNU* | *'with BFD'*)
6331  lt_cv_prog_gnu_ld=yes
6332  ;;
6333*)
6334  lt_cv_prog_gnu_ld=no
6335  ;;
6336esac
6337fi
6338echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6339echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6340with_gnu_ld=$lt_cv_prog_gnu_ld
6341
6342
6343echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6344echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6345if test "${lt_cv_ld_reload_flag+set}" = set; then
6346  echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
6348  lt_cv_ld_reload_flag='-r'
6349fi
6350echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6351echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6352reload_flag=$lt_cv_ld_reload_flag
6353case $reload_flag in
6354"" | " "*) ;;
6355*) reload_flag=" $reload_flag" ;;
6356esac
6357reload_cmds='$LD$reload_flag -o $output$reload_objs'
6358case $host_os in
6359  darwin*)
6360    if test "$GCC" = yes; then
6361      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6362    else
6363      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6364    fi
6365    ;;
6366esac
6367
6368echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6369echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6370if test "${lt_cv_path_NM+set}" = set; then
6371  echo $ECHO_N "(cached) $ECHO_C" >&6
6372else
6373  if test -n "$NM"; then
6374  # Let the user override the test.
6375  lt_cv_path_NM="$NM"
6376else
6377  lt_nm_to_check="${ac_tool_prefix}nm"
6378  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6379    lt_nm_to_check="$lt_nm_to_check nm"
6380  fi
6381  for lt_tmp_nm in $lt_nm_to_check; do
6382    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6383    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6384      IFS="$lt_save_ifs"
6385      test -z "$ac_dir" && ac_dir=.
6386      tmp_nm="$ac_dir/$lt_tmp_nm"
6387      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6388        # Check to see if the nm accepts a BSD-compat flag.
6389        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6390        #   nm: unknown option "B" ignored
6391        # Tru64's nm complains that /dev/null is an invalid object file
6392        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6393        */dev/null* | *'Invalid file or object type'*)
6394          lt_cv_path_NM="$tmp_nm -B"
6395          break
6396          ;;
6397        *)
6398          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6399          */dev/null*)
6400            lt_cv_path_NM="$tmp_nm -p"
6401            break
6402            ;;
6403          *)
6404            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6405            continue # so that we can try to find one that supports BSD flags
6406            ;;
6407          esac
6408          ;;
6409        esac
6410      fi
6411    done
6412    IFS="$lt_save_ifs"
6413  done
6414  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6415fi
6416fi
6417echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6418echo "${ECHO_T}$lt_cv_path_NM" >&6
6419NM="$lt_cv_path_NM"
6420
6421echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6422echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6423if test "${lt_cv_deplibs_check_method+set}" = set; then
6424  echo $ECHO_N "(cached) $ECHO_C" >&6
6425else
6426  lt_cv_file_magic_cmd='$MAGIC_CMD'
6427lt_cv_file_magic_test_file=
6428lt_cv_deplibs_check_method='unknown'
6429# Need to set the preceding variable on all platforms that support
6430# interlibrary dependencies.
6431# 'none' -- dependencies not supported.
6432# `unknown' -- same as none, but documents that we really don't know.
6433# 'pass_all' -- all dependencies passed with no checks.
6434# 'test_compile' -- check by making test program.
6435# 'file_magic [[regex]]' -- check by looking for files in library path
6436# which responds to the $file_magic_cmd with a given extended regex.
6437# If you have `file' or equivalent on your system and you're not sure
6438# whether `pass_all' will *always* work, you probably want this one.
6439
6440case $host_os in
6441aix4* | aix5*)
6442  lt_cv_deplibs_check_method=pass_all
6443  ;;
6444
6445beos*)
6446  lt_cv_deplibs_check_method=pass_all
6447  ;;
6448
6449bsdi[45]*)
6450  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6451  lt_cv_file_magic_cmd='/usr/bin/file -L'
6452  lt_cv_file_magic_test_file=/shlib/libc.so
6453  ;;
6454
6455cygwin*)
6456  # func_win32_libid is a shell function defined in ltmain.sh
6457  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6458  lt_cv_file_magic_cmd='func_win32_libid'
6459  ;;
6460
6461mingw* | pw32*)
6462  # Base MSYS/MinGW do not provide the 'file' command needed by
6463  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6464  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6465  lt_cv_file_magic_cmd='$OBJDUMP -f'
6466  ;;
6467
6468darwin* | rhapsody*)
6469  lt_cv_deplibs_check_method=pass_all
6470  ;;
6471
6472freebsd* | kfreebsd*-gnu | dragonfly*)
6473  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6474    case $host_cpu in
6475    i*86 )
6476      # Not sure whether the presence of OpenBSD here was a mistake.
6477      # Let's accept both of them until this is cleared up.
6478      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6479      lt_cv_file_magic_cmd=/usr/bin/file
6480      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6481      ;;
6482    esac
6483  else
6484    lt_cv_deplibs_check_method=pass_all
6485  fi
6486  ;;
6487
6488gnu*)
6489  lt_cv_deplibs_check_method=pass_all
6490  ;;
6491
6492hpux10.20* | hpux11*)
6493  lt_cv_file_magic_cmd=/usr/bin/file
6494  case $host_cpu in
6495  ia64*)
6496    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6497    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6498    ;;
6499  hppa*64*)
6500    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]'
6501    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6502    ;;
6503  *)
6504    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6505    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6506    ;;
6507  esac
6508  ;;
6509
6510interix3*)
6511  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6512  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6513  ;;
6514
6515irix5* | irix6* | nonstopux*)
6516  case $LD in
6517  *-32|*"-32 ") libmagic=32-bit;;
6518  *-n32|*"-n32 ") libmagic=N32;;
6519  *-64|*"-64 ") libmagic=64-bit;;
6520  *) libmagic=never-match;;
6521  esac
6522  lt_cv_deplibs_check_method=pass_all
6523  ;;
6524
6525# This must be Linux ELF.
6526linux*)
6527  lt_cv_deplibs_check_method=pass_all
6528  ;;
6529
6530netbsd*)
6531  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6532    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6533  else
6534    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6535  fi
6536  ;;
6537
6538newos6*)
6539  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6540  lt_cv_file_magic_cmd=/usr/bin/file
6541  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6542  ;;
6543
6544nto-qnx*)
6545  lt_cv_deplibs_check_method=unknown
6546  ;;
6547
6548openbsd*)
6549  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6550    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6551  else
6552    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6553  fi
6554  ;;
6555
6556osf3* | osf4* | osf5*)
6557  lt_cv_deplibs_check_method=pass_all
6558  ;;
6559
6560solaris*)
6561  lt_cv_deplibs_check_method=pass_all
6562  ;;
6563
6564sysv4 | sysv4.3*)
6565  case $host_vendor in
6566  motorola)
6567    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]'
6568    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6569    ;;
6570  ncr)
6571    lt_cv_deplibs_check_method=pass_all
6572    ;;
6573  sequent)
6574    lt_cv_file_magic_cmd='/bin/file'
6575    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6576    ;;
6577  sni)
6578    lt_cv_file_magic_cmd='/bin/file'
6579    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6580    lt_cv_file_magic_test_file=/lib/libc.so
6581    ;;
6582  siemens)
6583    lt_cv_deplibs_check_method=pass_all
6584    ;;
6585  pc)
6586    lt_cv_deplibs_check_method=pass_all
6587    ;;
6588  esac
6589  ;;
6590
6591sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6592  lt_cv_deplibs_check_method=pass_all
6593  ;;
6594esac
6595
6596fi
6597echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6598echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6599file_magic_cmd=$lt_cv_file_magic_cmd
6600deplibs_check_method=$lt_cv_deplibs_check_method
6601test -z "$deplibs_check_method" && deplibs_check_method=unknown
6602
6603
6604
6605
6606# If no C compiler was specified, use CC.
6607LTCC=${LTCC-"$CC"}
6608
6609# If no C compiler flags were specified, use CFLAGS.
6610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6611
6612# Allow CC to be a program name with arguments.
6613compiler=$CC
6614
6615# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6616if test "${enable_libtool_lock+set}" = set; then
6617  enableval="$enable_libtool_lock"
6618
6619fi;
6620test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6621
6622# Some flags need to be propagated to the compiler or linker for good
6623# libtool support.
6624case $host in
6625ia64-*-hpux*)
6626  # Find out which ABI we are using.
6627  echo 'int i;' > conftest.$ac_ext
6628  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629  (eval $ac_compile) 2>&5
6630  ac_status=$?
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); }; then
6633    case `/usr/bin/file conftest.$ac_objext` in
6634    *ELF-32*)
6635      HPUX_IA64_MODE="32"
6636      ;;
6637    *ELF-64*)
6638      HPUX_IA64_MODE="64"
6639      ;;
6640    esac
6641  fi
6642  rm -rf conftest*
6643  ;;
6644*-*-irix6*)
6645  # Find out which ABI we are using.
6646  echo '#line 6646 "configure"' > conftest.$ac_ext
6647  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648  (eval $ac_compile) 2>&5
6649  ac_status=$?
6650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651  (exit $ac_status); }; then
6652   if test "$lt_cv_prog_gnu_ld" = yes; then
6653    case `/usr/bin/file conftest.$ac_objext` in
6654    *32-bit*)
6655      LD="${LD-ld} -melf32bsmip"
6656      ;;
6657    *N32*)
6658      LD="${LD-ld} -melf32bmipn32"
6659      ;;
6660    *64-bit*)
6661      LD="${LD-ld} -melf64bmip"
6662      ;;
6663    esac
6664   else
6665    case `/usr/bin/file conftest.$ac_objext` in
6666    *32-bit*)
6667      LD="${LD-ld} -32"
6668      ;;
6669    *N32*)
6670      LD="${LD-ld} -n32"
6671      ;;
6672    *64-bit*)
6673      LD="${LD-ld} -64"
6674      ;;
6675    esac
6676   fi
6677  fi
6678  rm -rf conftest*
6679  ;;
6680
6681x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6682  # Find out which ABI we are using.
6683  echo 'int i;' > conftest.$ac_ext
6684  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6685  (eval $ac_compile) 2>&5
6686  ac_status=$?
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); }; then
6689    case `/usr/bin/file conftest.o` in
6690    *32-bit*)
6691      case $host in
6692        x86_64-*linux*)
6693          LD="${LD-ld} -m elf_i386"
6694          ;;
6695        ppc64-*linux*|powerpc64-*linux*)
6696          LD="${LD-ld} -m elf32ppclinux"
6697          ;;
6698        s390x-*linux*)
6699          LD="${LD-ld} -m elf_s390"
6700          ;;
6701        sparc64-*linux*)
6702          LD="${LD-ld} -m elf32_sparc"
6703          ;;
6704      esac
6705      ;;
6706    *64-bit*)
6707      case $host in
6708        x86_64-*linux*)
6709          LD="${LD-ld} -m elf_x86_64"
6710          ;;
6711        ppc*-*linux*|powerpc*-*linux*)
6712          LD="${LD-ld} -m elf64ppc"
6713          ;;
6714        s390*-*linux*)
6715          LD="${LD-ld} -m elf64_s390"
6716          ;;
6717        sparc*-*linux*)
6718          LD="${LD-ld} -m elf64_sparc"
6719          ;;
6720      esac
6721      ;;
6722    esac
6723  fi
6724  rm -rf conftest*
6725  ;;
6726
6727*-*-sco3.2v5*)
6728  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6729  SAVE_CFLAGS="$CFLAGS"
6730  CFLAGS="$CFLAGS -belf"
6731  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6732echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6733if test "${lt_cv_cc_needs_belf+set}" = set; then
6734  echo $ECHO_N "(cached) $ECHO_C" >&6
6735else
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
6742     cat >conftest.$ac_ext <<_ACEOF
6743/* confdefs.h.  */
6744_ACEOF
6745cat confdefs.h >>conftest.$ac_ext
6746cat >>conftest.$ac_ext <<_ACEOF
6747/* end confdefs.h.  */
6748
6749#ifdef F77_DUMMY_MAIN
6750
6751#  ifdef __cplusplus
6752     extern "C"
6753#  endif
6754   int F77_DUMMY_MAIN() { return 1; }
6755
6756#endif
6757int
6758main ()
6759{
6760
6761  ;
6762  return 0;
6763}
6764_ACEOF
6765rm -f conftest.$ac_objext conftest$ac_exeext
6766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767  (eval $ac_link) 2>conftest.er1
6768  ac_status=$?
6769  grep -v '^ *+' conftest.er1 >conftest.err
6770  rm -f conftest.er1
6771  cat conftest.err >&5
6772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773  (exit $ac_status); } &&
6774         { ac_try='test -z "$ac_c_werror_flag"
6775                         || test ! -s conftest.err'
6776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777  (eval $ac_try) 2>&5
6778  ac_status=$?
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); }; } &&
6781         { ac_try='test -s conftest$ac_exeext'
6782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783  (eval $ac_try) 2>&5
6784  ac_status=$?
6785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786  (exit $ac_status); }; }; then
6787  lt_cv_cc_needs_belf=yes
6788else
6789  echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792lt_cv_cc_needs_belf=no
6793fi
6794rm -f conftest.err conftest.$ac_objext \
6795      conftest$ac_exeext conftest.$ac_ext
6796     ac_ext=c
6797ac_cpp='$CPP $CPPFLAGS'
6798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800ac_compiler_gnu=$ac_cv_c_compiler_gnu
6801
6802fi
6803echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6804echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6805  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6806    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6807    CFLAGS="$SAVE_CFLAGS"
6808  fi
6809  ;;
6810sparc*-*solaris*)
6811  # Find out which ABI we are using.
6812  echo 'int i;' > conftest.$ac_ext
6813  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814  (eval $ac_compile) 2>&5
6815  ac_status=$?
6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817  (exit $ac_status); }; then
6818    case `/usr/bin/file conftest.o` in
6819    *64-bit*)
6820      case $lt_cv_prog_gnu_ld in
6821      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6822      *)    LD="${LD-ld} -64" ;;
6823      esac
6824      ;;
6825    esac
6826  fi
6827  rm -rf conftest*
6828  ;;
6829
6830
6831esac
6832
6833need_locks="$enable_libtool_lock"
6834
6835
6836ac_ext=c
6837ac_cpp='$CPP $CPPFLAGS'
6838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6842echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6843# On Suns, sometimes $CPP names a directory.
6844if test -n "$CPP" && test -d "$CPP"; then
6845  CPP=
6846fi
6847if test -z "$CPP"; then
6848  if test "${ac_cv_prog_CPP+set}" = set; then
6849  echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851      # Double quotes because CPP needs to be expanded
6852    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6853    do
6854      ac_preproc_ok=false
6855for ac_c_preproc_warn_flag in '' yes
6856do
6857  # Use a header file that comes with gcc, so configuring glibc
6858  # with a fresh cross-compiler works.
6859  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6860  # <limits.h> exists even on freestanding compilers.
6861  # On the NeXT, cc -E runs the code through the compiler's parser,
6862  # not just through cpp. "Syntax error" is here to catch this case.
6863  cat >conftest.$ac_ext <<_ACEOF
6864/* confdefs.h.  */
6865_ACEOF
6866cat confdefs.h >>conftest.$ac_ext
6867cat >>conftest.$ac_ext <<_ACEOF
6868/* end confdefs.h.  */
6869#ifdef __STDC__
6870# include <limits.h>
6871#else
6872# include <assert.h>
6873#endif
6874                     Syntax error
6875_ACEOF
6876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6877  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6878  ac_status=$?
6879  grep -v '^ *+' conftest.er1 >conftest.err
6880  rm -f conftest.er1
6881  cat conftest.err >&5
6882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883  (exit $ac_status); } >/dev/null; then
6884  if test -s conftest.err; then
6885    ac_cpp_err=$ac_c_preproc_warn_flag
6886    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6887  else
6888    ac_cpp_err=
6889  fi
6890else
6891  ac_cpp_err=yes
6892fi
6893if test -z "$ac_cpp_err"; then
6894  :
6895else
6896  echo "$as_me: failed program was:" >&5
6897sed 's/^/| /' conftest.$ac_ext >&5
6898
6899  # Broken: fails on valid input.
6900continue
6901fi
6902rm -f conftest.err conftest.$ac_ext
6903
6904  # OK, works on sane cases.  Now check whether non-existent headers
6905  # can be detected and how.
6906  cat >conftest.$ac_ext <<_ACEOF
6907/* confdefs.h.  */
6908_ACEOF
6909cat confdefs.h >>conftest.$ac_ext
6910cat >>conftest.$ac_ext <<_ACEOF
6911/* end confdefs.h.  */
6912#include <ac_nonexistent.h>
6913_ACEOF
6914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6915  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6916  ac_status=$?
6917  grep -v '^ *+' conftest.er1 >conftest.err
6918  rm -f conftest.er1
6919  cat conftest.err >&5
6920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921  (exit $ac_status); } >/dev/null; then
6922  if test -s conftest.err; then
6923    ac_cpp_err=$ac_c_preproc_warn_flag
6924    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6925  else
6926    ac_cpp_err=
6927  fi
6928else
6929  ac_cpp_err=yes
6930fi
6931if test -z "$ac_cpp_err"; then
6932  # Broken: success on invalid input.
6933continue
6934else
6935  echo "$as_me: failed program was:" >&5
6936sed 's/^/| /' conftest.$ac_ext >&5
6937
6938  # Passes both tests.
6939ac_preproc_ok=:
6940break
6941fi
6942rm -f conftest.err conftest.$ac_ext
6943
6944done
6945# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6946rm -f conftest.err conftest.$ac_ext
6947if $ac_preproc_ok; then
6948  break
6949fi
6950
6951    done
6952    ac_cv_prog_CPP=$CPP
6953
6954fi
6955  CPP=$ac_cv_prog_CPP
6956else
6957  ac_cv_prog_CPP=$CPP
6958fi
6959echo "$as_me:$LINENO: result: $CPP" >&5
6960echo "${ECHO_T}$CPP" >&6
6961ac_preproc_ok=false
6962for ac_c_preproc_warn_flag in '' yes
6963do
6964  # Use a header file that comes with gcc, so configuring glibc
6965  # with a fresh cross-compiler works.
6966  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967  # <limits.h> exists even on freestanding compilers.
6968  # On the NeXT, cc -E runs the code through the compiler's parser,
6969  # not just through cpp. "Syntax error" is here to catch this case.
6970  cat >conftest.$ac_ext <<_ACEOF
6971/* confdefs.h.  */
6972_ACEOF
6973cat confdefs.h >>conftest.$ac_ext
6974cat >>conftest.$ac_ext <<_ACEOF
6975/* end confdefs.h.  */
6976#ifdef __STDC__
6977# include <limits.h>
6978#else
6979# include <assert.h>
6980#endif
6981                     Syntax error
6982_ACEOF
6983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6984  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6985  ac_status=$?
6986  grep -v '^ *+' conftest.er1 >conftest.err
6987  rm -f conftest.er1
6988  cat conftest.err >&5
6989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990  (exit $ac_status); } >/dev/null; then
6991  if test -s conftest.err; then
6992    ac_cpp_err=$ac_c_preproc_warn_flag
6993    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6994  else
6995    ac_cpp_err=
6996  fi
6997else
6998  ac_cpp_err=yes
6999fi
7000if test -z "$ac_cpp_err"; then
7001  :
7002else
7003  echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006  # Broken: fails on valid input.
7007continue
7008fi
7009rm -f conftest.err conftest.$ac_ext
7010
7011  # OK, works on sane cases.  Now check whether non-existent headers
7012  # can be detected and how.
7013  cat >conftest.$ac_ext <<_ACEOF
7014/* confdefs.h.  */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
7018/* end confdefs.h.  */
7019#include <ac_nonexistent.h>
7020_ACEOF
7021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7022  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7023  ac_status=$?
7024  grep -v '^ *+' conftest.er1 >conftest.err
7025  rm -f conftest.er1
7026  cat conftest.err >&5
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); } >/dev/null; then
7029  if test -s conftest.err; then
7030    ac_cpp_err=$ac_c_preproc_warn_flag
7031    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7032  else
7033    ac_cpp_err=
7034  fi
7035else
7036  ac_cpp_err=yes
7037fi
7038if test -z "$ac_cpp_err"; then
7039  # Broken: success on invalid input.
7040continue
7041else
7042  echo "$as_me: failed program was:" >&5
7043sed 's/^/| /' conftest.$ac_ext >&5
7044
7045  # Passes both tests.
7046ac_preproc_ok=:
7047break
7048fi
7049rm -f conftest.err conftest.$ac_ext
7050
7051done
7052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7053rm -f conftest.err conftest.$ac_ext
7054if $ac_preproc_ok; then
7055  :
7056else
7057  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7058See \`config.log' for more details." >&5
7059echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7060See \`config.log' for more details." >&2;}
7061   { (exit 1); exit 1; }; }
7062fi
7063
7064ac_ext=c
7065ac_cpp='$CPP $CPPFLAGS'
7066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068ac_compiler_gnu=$ac_cv_c_compiler_gnu
7069
7070
7071echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7072echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7073if test "${ac_cv_header_stdc+set}" = set; then
7074  echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
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 <stdlib.h>
7083#include <stdarg.h>
7084#include <string.h>
7085#include <float.h>
7086
7087#ifdef F77_DUMMY_MAIN
7088
7089#  ifdef __cplusplus
7090     extern "C"
7091#  endif
7092   int F77_DUMMY_MAIN() { return 1; }
7093
7094#endif
7095int
7096main ()
7097{
7098
7099  ;
7100  return 0;
7101}
7102_ACEOF
7103rm -f conftest.$ac_objext
7104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105  (eval $ac_compile) 2>conftest.er1
7106  ac_status=$?
7107  grep -v '^ *+' conftest.er1 >conftest.err
7108  rm -f conftest.er1
7109  cat conftest.err >&5
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); } &&
7112         { ac_try='test -z "$ac_c_werror_flag"
7113                         || test ! -s conftest.err'
7114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115  (eval $ac_try) 2>&5
7116  ac_status=$?
7117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118  (exit $ac_status); }; } &&
7119         { ac_try='test -s conftest.$ac_objext'
7120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121  (eval $ac_try) 2>&5
7122  ac_status=$?
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); }; }; then
7125  ac_cv_header_stdc=yes
7126else
7127  echo "$as_me: failed program was:" >&5
7128sed 's/^/| /' conftest.$ac_ext >&5
7129
7130ac_cv_header_stdc=no
7131fi
7132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7133
7134if test $ac_cv_header_stdc = yes; then
7135  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7136  cat >conftest.$ac_ext <<_ACEOF
7137/* confdefs.h.  */
7138_ACEOF
7139cat confdefs.h >>conftest.$ac_ext
7140cat >>conftest.$ac_ext <<_ACEOF
7141/* end confdefs.h.  */
7142#include <string.h>
7143
7144_ACEOF
7145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7146  $EGREP "memchr" >/dev/null 2>&1; then
7147  :
7148else
7149  ac_cv_header_stdc=no
7150fi
7151rm -f conftest*
7152
7153fi
7154
7155if test $ac_cv_header_stdc = yes; then
7156  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7157  cat >conftest.$ac_ext <<_ACEOF
7158/* confdefs.h.  */
7159_ACEOF
7160cat confdefs.h >>conftest.$ac_ext
7161cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h.  */
7163#include <stdlib.h>
7164
7165_ACEOF
7166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7167  $EGREP "free" >/dev/null 2>&1; then
7168  :
7169else
7170  ac_cv_header_stdc=no
7171fi
7172rm -f conftest*
7173
7174fi
7175
7176if test $ac_cv_header_stdc = yes; then
7177  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7178  if test "$cross_compiling" = yes; then
7179  :
7180else
7181  cat >conftest.$ac_ext <<_ACEOF
7182/* confdefs.h.  */
7183_ACEOF
7184cat confdefs.h >>conftest.$ac_ext
7185cat >>conftest.$ac_ext <<_ACEOF
7186/* end confdefs.h.  */
7187#include <ctype.h>
7188#if ((' ' & 0x0FF) == 0x020)
7189# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7190# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7191#else
7192# define ISLOWER(c) \
7193                   (('a' <= (c) && (c) <= 'i') \
7194                     || ('j' <= (c) && (c) <= 'r') \
7195                     || ('s' <= (c) && (c) <= 'z'))
7196# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7197#endif
7198
7199#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7200int
7201main ()
7202{
7203  int i;
7204  for (i = 0; i < 256; i++)
7205    if (XOR (islower (i), ISLOWER (i))
7206        || toupper (i) != TOUPPER (i))
7207      exit(2);
7208  exit (0);
7209}
7210_ACEOF
7211rm -f conftest$ac_exeext
7212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213  (eval $ac_link) 2>&5
7214  ac_status=$?
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218  (eval $ac_try) 2>&5
7219  ac_status=$?
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); }; }; then
7222  :
7223else
7224  echo "$as_me: program exited with status $ac_status" >&5
7225echo "$as_me: failed program was:" >&5
7226sed 's/^/| /' conftest.$ac_ext >&5
7227
7228( exit $ac_status )
7229ac_cv_header_stdc=no
7230fi
7231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7232fi
7233fi
7234fi
7235echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7236echo "${ECHO_T}$ac_cv_header_stdc" >&6
7237if test $ac_cv_header_stdc = yes; then
7238
7239cat >>confdefs.h <<\_ACEOF
7240#define STDC_HEADERS 1
7241_ACEOF
7242
7243fi
7244
7245# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7256                  inttypes.h stdint.h unistd.h
7257do
7258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7259echo "$as_me:$LINENO: checking for $ac_header" >&5
7260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7261if eval "test \"\${$as_ac_Header+set}\" = set"; then
7262  echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264  cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h.  */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h.  */
7270$ac_includes_default
7271
7272#include <$ac_header>
7273_ACEOF
7274rm -f conftest.$ac_objext
7275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7276  (eval $ac_compile) 2>conftest.er1
7277  ac_status=$?
7278  grep -v '^ *+' conftest.er1 >conftest.err
7279  rm -f conftest.er1
7280  cat conftest.err >&5
7281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282  (exit $ac_status); } &&
7283         { ac_try='test -z "$ac_c_werror_flag"
7284                         || test ! -s conftest.err'
7285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286  (eval $ac_try) 2>&5
7287  ac_status=$?
7288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289  (exit $ac_status); }; } &&
7290         { ac_try='test -s conftest.$ac_objext'
7291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292  (eval $ac_try) 2>&5
7293  ac_status=$?
7294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295  (exit $ac_status); }; }; then
7296  eval "$as_ac_Header=yes"
7297else
7298  echo "$as_me: failed program was:" >&5
7299sed 's/^/| /' conftest.$ac_ext >&5
7300
7301eval "$as_ac_Header=no"
7302fi
7303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304fi
7305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7307if test `eval echo '${'$as_ac_Header'}'` = yes; then
7308  cat >>confdefs.h <<_ACEOF
7309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7310_ACEOF
7311
7312fi
7313
7314done
7315
7316
7317
7318for ac_header in dlfcn.h
7319do
7320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7321if eval "test \"\${$as_ac_Header+set}\" = set"; then
7322  echo "$as_me:$LINENO: checking for $ac_header" >&5
7323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7324if eval "test \"\${$as_ac_Header+set}\" = set"; then
7325  echo $ECHO_N "(cached) $ECHO_C" >&6
7326fi
7327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7329else
7330  # Is the header compilable?
7331echo "$as_me:$LINENO: checking $ac_header usability" >&5
7332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7333cat >conftest.$ac_ext <<_ACEOF
7334/* confdefs.h.  */
7335_ACEOF
7336cat confdefs.h >>conftest.$ac_ext
7337cat >>conftest.$ac_ext <<_ACEOF
7338/* end confdefs.h.  */
7339$ac_includes_default
7340#include <$ac_header>
7341_ACEOF
7342rm -f conftest.$ac_objext
7343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7344  (eval $ac_compile) 2>conftest.er1
7345  ac_status=$?
7346  grep -v '^ *+' conftest.er1 >conftest.err
7347  rm -f conftest.er1
7348  cat conftest.err >&5
7349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350  (exit $ac_status); } &&
7351         { ac_try='test -z "$ac_c_werror_flag"
7352                         || test ! -s conftest.err'
7353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354  (eval $ac_try) 2>&5
7355  ac_status=$?
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); }; } &&
7358         { ac_try='test -s conftest.$ac_objext'
7359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360  (eval $ac_try) 2>&5
7361  ac_status=$?
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); }; }; then
7364  ac_header_compiler=yes
7365else
7366  echo "$as_me: failed program was:" >&5
7367sed 's/^/| /' conftest.$ac_ext >&5
7368
7369ac_header_compiler=no
7370fi
7371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7373echo "${ECHO_T}$ac_header_compiler" >&6
7374
7375# Is the header present?
7376echo "$as_me:$LINENO: checking $ac_header presence" >&5
7377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7378cat >conftest.$ac_ext <<_ACEOF
7379/* confdefs.h.  */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h.  */
7384#include <$ac_header>
7385_ACEOF
7386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7387  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7388  ac_status=$?
7389  grep -v '^ *+' conftest.er1 >conftest.err
7390  rm -f conftest.er1
7391  cat conftest.err >&5
7392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393  (exit $ac_status); } >/dev/null; then
7394  if test -s conftest.err; then
7395    ac_cpp_err=$ac_c_preproc_warn_flag
7396    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7397  else
7398    ac_cpp_err=
7399  fi
7400else
7401  ac_cpp_err=yes
7402fi
7403if test -z "$ac_cpp_err"; then
7404  ac_header_preproc=yes
7405else
7406  echo "$as_me: failed program was:" >&5
7407sed 's/^/| /' conftest.$ac_ext >&5
7408
7409  ac_header_preproc=no
7410fi
7411rm -f conftest.err conftest.$ac_ext
7412echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7413echo "${ECHO_T}$ac_header_preproc" >&6
7414
7415# So?  What about this header?
7416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7417  yes:no: )
7418    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7420    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7422    ac_header_preproc=yes
7423    ;;
7424  no:yes:* )
7425    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7427    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7428echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7429    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7431    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7432echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7433    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7435    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7437    (
7438      cat <<\_ASBOX
7439## --------------------------------------------------------------- ##
7440## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7441## --------------------------------------------------------------- ##
7442_ASBOX
7443    ) |
7444      sed "s/^/$as_me: WARNING:     /" >&2
7445    ;;
7446esac
7447echo "$as_me:$LINENO: checking for $ac_header" >&5
7448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7449if eval "test \"\${$as_ac_Header+set}\" = set"; then
7450  echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452  eval "$as_ac_Header=\$ac_header_preproc"
7453fi
7454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456
7457fi
7458if test `eval echo '${'$as_ac_Header'}'` = yes; then
7459  cat >>confdefs.h <<_ACEOF
7460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7461_ACEOF
7462
7463fi
7464
7465done
7466
7467ac_ext=cc
7468ac_cpp='$CXXCPP $CPPFLAGS'
7469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7472if test -n "$ac_tool_prefix"; then
7473  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7474  do
7475    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7476set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7477echo "$as_me:$LINENO: checking for $ac_word" >&5
7478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7479if test "${ac_cv_prog_CXX+set}" = set; then
7480  echo $ECHO_N "(cached) $ECHO_C" >&6
7481else
7482  if test -n "$CXX"; then
7483  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7484else
7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488  IFS=$as_save_IFS
7489  test -z "$as_dir" && as_dir=.
7490  for ac_exec_ext in '' $ac_executable_extensions; do
7491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494    break 2
7495  fi
7496done
7497done
7498
7499fi
7500fi
7501CXX=$ac_cv_prog_CXX
7502if test -n "$CXX"; then
7503  echo "$as_me:$LINENO: result: $CXX" >&5
7504echo "${ECHO_T}$CXX" >&6
7505else
7506  echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508fi
7509
7510    test -n "$CXX" && break
7511  done
7512fi
7513if test -z "$CXX"; then
7514  ac_ct_CXX=$CXX
7515  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7516do
7517  # Extract the first word of "$ac_prog", so it can be a program name with args.
7518set dummy $ac_prog; ac_word=$2
7519echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7521if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7522  echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524  if test -n "$ac_ct_CXX"; then
7525  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7526else
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530  IFS=$as_save_IFS
7531  test -z "$as_dir" && as_dir=.
7532  for ac_exec_ext in '' $ac_executable_extensions; do
7533  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534    ac_cv_prog_ac_ct_CXX="$ac_prog"
7535    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536    break 2
7537  fi
7538done
7539done
7540
7541fi
7542fi
7543ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7544if test -n "$ac_ct_CXX"; then
7545  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7546echo "${ECHO_T}$ac_ct_CXX" >&6
7547else
7548  echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
7550fi
7551
7552  test -n "$ac_ct_CXX" && break
7553done
7554test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7555
7556  CXX=$ac_ct_CXX
7557fi
7558
7559
7560# Provide some information about the compiler.
7561echo "$as_me:$LINENO:" \
7562     "checking for C++ compiler version" >&5
7563ac_compiler=`set X $ac_compile; echo $2`
7564{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7565  (eval $ac_compiler --version </dev/null >&5) 2>&5
7566  ac_status=$?
7567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568  (exit $ac_status); }
7569{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7570  (eval $ac_compiler -v </dev/null >&5) 2>&5
7571  ac_status=$?
7572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573  (exit $ac_status); }
7574{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7575  (eval $ac_compiler -V </dev/null >&5) 2>&5
7576  ac_status=$?
7577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578  (exit $ac_status); }
7579
7580echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7581echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7582if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7583  echo $ECHO_N "(cached) $ECHO_C" >&6
7584else
7585  cat >conftest.$ac_ext <<_ACEOF
7586/* confdefs.h.  */
7587_ACEOF
7588cat confdefs.h >>conftest.$ac_ext
7589cat >>conftest.$ac_ext <<_ACEOF
7590/* end confdefs.h.  */
7591
7592#ifdef F77_DUMMY_MAIN
7593
7594#  ifdef __cplusplus
7595     extern "C"
7596#  endif
7597   int F77_DUMMY_MAIN() { return 1; }
7598
7599#endif
7600int
7601main ()
7602{
7603#ifndef __GNUC__
7604       choke me
7605#endif
7606
7607  ;
7608  return 0;
7609}
7610_ACEOF
7611rm -f conftest.$ac_objext
7612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7613  (eval $ac_compile) 2>conftest.er1
7614  ac_status=$?
7615  grep -v '^ *+' conftest.er1 >conftest.err
7616  rm -f conftest.er1
7617  cat conftest.err >&5
7618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619  (exit $ac_status); } &&
7620         { ac_try='test -z "$ac_cxx_werror_flag"
7621                         || test ! -s conftest.err'
7622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623  (eval $ac_try) 2>&5
7624  ac_status=$?
7625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626  (exit $ac_status); }; } &&
7627         { ac_try='test -s conftest.$ac_objext'
7628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629  (eval $ac_try) 2>&5
7630  ac_status=$?
7631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); }; }; then
7633  ac_compiler_gnu=yes
7634else
7635  echo "$as_me: failed program was:" >&5
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
7638ac_compiler_gnu=no
7639fi
7640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7641ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7642
7643fi
7644echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7645echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7646GXX=`test $ac_compiler_gnu = yes && echo yes`
7647ac_test_CXXFLAGS=${CXXFLAGS+set}
7648ac_save_CXXFLAGS=$CXXFLAGS
7649CXXFLAGS="-g"
7650echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7651echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7652if test "${ac_cv_prog_cxx_g+set}" = set; then
7653  echo $ECHO_N "(cached) $ECHO_C" >&6
7654else
7655  cat >conftest.$ac_ext <<_ACEOF
7656/* confdefs.h.  */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h.  */
7661
7662#ifdef F77_DUMMY_MAIN
7663
7664#  ifdef __cplusplus
7665     extern "C"
7666#  endif
7667   int F77_DUMMY_MAIN() { return 1; }
7668
7669#endif
7670int
7671main ()
7672{
7673
7674  ;
7675  return 0;
7676}
7677_ACEOF
7678rm -f conftest.$ac_objext
7679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680  (eval $ac_compile) 2>conftest.er1
7681  ac_status=$?
7682  grep -v '^ *+' conftest.er1 >conftest.err
7683  rm -f conftest.er1
7684  cat conftest.err >&5
7685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686  (exit $ac_status); } &&
7687         { ac_try='test -z "$ac_cxx_werror_flag"
7688                         || test ! -s conftest.err'
7689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690  (eval $ac_try) 2>&5
7691  ac_status=$?
7692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693  (exit $ac_status); }; } &&
7694         { ac_try='test -s conftest.$ac_objext'
7695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696  (eval $ac_try) 2>&5
7697  ac_status=$?
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); }; }; then
7700  ac_cv_prog_cxx_g=yes
7701else
7702  echo "$as_me: failed program was:" >&5
7703sed 's/^/| /' conftest.$ac_ext >&5
7704
7705ac_cv_prog_cxx_g=no
7706fi
7707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7708fi
7709echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7710echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7711if test "$ac_test_CXXFLAGS" = set; then
7712  CXXFLAGS=$ac_save_CXXFLAGS
7713elif test $ac_cv_prog_cxx_g = yes; then
7714  if test "$GXX" = yes; then
7715    CXXFLAGS="-g -O2"
7716  else
7717    CXXFLAGS="-g"
7718  fi
7719else
7720  if test "$GXX" = yes; then
7721    CXXFLAGS="-O2"
7722  else
7723    CXXFLAGS=
7724  fi
7725fi
7726for ac_declaration in \
7727   '' \
7728   'extern "C" void std::exit (int) throw (); using std::exit;' \
7729   'extern "C" void std::exit (int); using std::exit;' \
7730   'extern "C" void exit (int) throw ();' \
7731   'extern "C" void exit (int);' \
7732   'void exit (int);'
7733do
7734  cat >conftest.$ac_ext <<_ACEOF
7735/* confdefs.h.  */
7736_ACEOF
7737cat confdefs.h >>conftest.$ac_ext
7738cat >>conftest.$ac_ext <<_ACEOF
7739/* end confdefs.h.  */
7740$ac_declaration
7741#include <stdlib.h>
7742#ifdef F77_DUMMY_MAIN
7743
7744#  ifdef __cplusplus
7745     extern "C"
7746#  endif
7747   int F77_DUMMY_MAIN() { return 1; }
7748
7749#endif
7750int
7751main ()
7752{
7753exit (42);
7754  ;
7755  return 0;
7756}
7757_ACEOF
7758rm -f conftest.$ac_objext
7759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760  (eval $ac_compile) 2>conftest.er1
7761  ac_status=$?
7762  grep -v '^ *+' conftest.er1 >conftest.err
7763  rm -f conftest.er1
7764  cat conftest.err >&5
7765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766  (exit $ac_status); } &&
7767         { ac_try='test -z "$ac_cxx_werror_flag"
7768                         || test ! -s conftest.err'
7769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770  (eval $ac_try) 2>&5
7771  ac_status=$?
7772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773  (exit $ac_status); }; } &&
7774         { ac_try='test -s conftest.$ac_objext'
7775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776  (eval $ac_try) 2>&5
7777  ac_status=$?
7778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779  (exit $ac_status); }; }; then
7780  :
7781else
7782  echo "$as_me: failed program was:" >&5
7783sed 's/^/| /' conftest.$ac_ext >&5
7784
7785continue
7786fi
7787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7788  cat >conftest.$ac_ext <<_ACEOF
7789/* confdefs.h.  */
7790_ACEOF
7791cat confdefs.h >>conftest.$ac_ext
7792cat >>conftest.$ac_ext <<_ACEOF
7793/* end confdefs.h.  */
7794$ac_declaration
7795#ifdef F77_DUMMY_MAIN
7796
7797#  ifdef __cplusplus
7798     extern "C"
7799#  endif
7800   int F77_DUMMY_MAIN() { return 1; }
7801
7802#endif
7803int
7804main ()
7805{
7806exit (42);
7807  ;
7808  return 0;
7809}
7810_ACEOF
7811rm -f conftest.$ac_objext
7812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813  (eval $ac_compile) 2>conftest.er1
7814  ac_status=$?
7815  grep -v '^ *+' conftest.er1 >conftest.err
7816  rm -f conftest.er1
7817  cat conftest.err >&5
7818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819  (exit $ac_status); } &&
7820         { ac_try='test -z "$ac_cxx_werror_flag"
7821                         || test ! -s conftest.err'
7822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823  (eval $ac_try) 2>&5
7824  ac_status=$?
7825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826  (exit $ac_status); }; } &&
7827         { ac_try='test -s conftest.$ac_objext'
7828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829  (eval $ac_try) 2>&5
7830  ac_status=$?
7831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832  (exit $ac_status); }; }; then
7833  break
7834else
7835  echo "$as_me: failed program was:" >&5
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
7838fi
7839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7840done
7841rm -f conftest*
7842if test -n "$ac_declaration"; then
7843  echo '#ifdef __cplusplus' >>confdefs.h
7844  echo $ac_declaration      >>confdefs.h
7845  echo '#endif'             >>confdefs.h
7846fi
7847
7848ac_ext=cc
7849ac_cpp='$CXXCPP $CPPFLAGS'
7850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7853
7854depcc="$CXX"  am_compiler_list=
7855
7856echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7857echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7858if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7859  echo $ECHO_N "(cached) $ECHO_C" >&6
7860else
7861  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7862  # We make a subdir and do the tests there.  Otherwise we can end up
7863  # making bogus files that we don't know about and never remove.  For
7864  # instance it was reported that on HP-UX the gcc test will end up
7865  # making a dummy file named `D' -- because `-MD' means `put the output
7866  # in D'.
7867  mkdir conftest.dir
7868  # Copy depcomp to subdir because otherwise we won't find it if we're
7869  # using a relative directory.
7870  cp "$am_depcomp" conftest.dir
7871  cd conftest.dir
7872  # We will build objects and dependencies in a subdirectory because
7873  # it helps to detect inapplicable dependency modes.  For instance
7874  # both Tru64's cc and ICC support -MD to output dependencies as a
7875  # side effect of compilation, but ICC will put the dependencies in
7876  # the current directory while Tru64 will put them in the object
7877  # directory.
7878  mkdir sub
7879
7880  am_cv_CXX_dependencies_compiler_type=none
7881  if test "$am_compiler_list" = ""; then
7882     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7883  fi
7884  for depmode in $am_compiler_list; do
7885    # Setup a source with many dependencies, because some compilers
7886    # like to wrap large dependency lists on column 80 (with \), and
7887    # we should not choose a depcomp mode which is confused by this.
7888    #
7889    # We need to recreate these files for each test, as the compiler may
7890    # overwrite some of them when testing with obscure command lines.
7891    # This happens at least with the AIX C compiler.
7892    : > sub/conftest.c
7893    for i in 1 2 3 4 5 6; do
7894      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7895      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7896      # Solaris 8's {/usr,}/bin/sh.
7897      touch sub/conftst$i.h
7898    done
7899    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7900
7901    case $depmode in
7902    nosideeffect)
7903      # after this tag, mechanisms are not by side-effect, so they'll
7904      # only be used when explicitly requested
7905      if test "x$enable_dependency_tracking" = xyes; then
7906        continue
7907      else
7908        break
7909      fi
7910      ;;
7911    none) break ;;
7912    esac
7913    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7914    # mode.  It turns out that the SunPro C++ compiler does not properly
7915    # handle `-M -o', and we need to detect this.
7916    if depmode=$depmode \
7917       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7918       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7919       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7920         >/dev/null 2>conftest.err &&
7921       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7922       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7923       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7924      # icc doesn't choke on unknown options, it will just issue warnings
7925      # or remarks (even with -Werror).  So we grep stderr for any message
7926      # that says an option was ignored or not supported.
7927      # When given -MP, icc 7.0 and 7.1 complain thusly:
7928      #   icc: Command line warning: ignoring option '-M'; no argument required
7929      # The diagnosis changed in icc 8.0:
7930      #   icc: Command line remark: option '-MP' not supported
7931      if (grep 'ignoring option' conftest.err ||
7932          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7933        am_cv_CXX_dependencies_compiler_type=$depmode
7934        break
7935      fi
7936    fi
7937  done
7938
7939  cd ..
7940  rm -rf conftest.dir
7941else
7942  am_cv_CXX_dependencies_compiler_type=none
7943fi
7944
7945fi
7946echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7947echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7948CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7949
7950
7951
7952if
7953  test "x$enable_dependency_tracking" != xno \
7954  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7955  am__fastdepCXX_TRUE=
7956  am__fastdepCXX_FALSE='#'
7957else
7958  am__fastdepCXX_TRUE='#'
7959  am__fastdepCXX_FALSE=
7960fi
7961
7962
7963
7964
7965if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7966    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7967    (test "X$CXX" != "Xg++"))) ; then
7968  ac_ext=cc
7969ac_cpp='$CXXCPP $CPPFLAGS'
7970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7973echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7974echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7975if test -z "$CXXCPP"; then
7976  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7977  echo $ECHO_N "(cached) $ECHO_C" >&6
7978else
7979      # Double quotes because CXXCPP needs to be expanded
7980    for CXXCPP in "$CXX -E" "/lib/cpp"
7981    do
7982      ac_preproc_ok=false
7983for ac_cxx_preproc_warn_flag in '' yes
7984do
7985  # Use a header file that comes with gcc, so configuring glibc
7986  # with a fresh cross-compiler works.
7987  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7988  # <limits.h> exists even on freestanding compilers.
7989  # On the NeXT, cc -E runs the code through the compiler's parser,
7990  # not just through cpp. "Syntax error" is here to catch this case.
7991  cat >conftest.$ac_ext <<_ACEOF
7992/* confdefs.h.  */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h.  */
7997#ifdef __STDC__
7998# include <limits.h>
7999#else
8000# include <assert.h>
8001#endif
8002                     Syntax error
8003_ACEOF
8004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8005  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8006  ac_status=$?
8007  grep -v '^ *+' conftest.er1 >conftest.err
8008  rm -f conftest.er1
8009  cat conftest.err >&5
8010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011  (exit $ac_status); } >/dev/null; then
8012  if test -s conftest.err; then
8013    ac_cpp_err=$ac_cxx_preproc_warn_flag
8014    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8015  else
8016    ac_cpp_err=
8017  fi
8018else
8019  ac_cpp_err=yes
8020fi
8021if test -z "$ac_cpp_err"; then
8022  :
8023else
8024  echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
8027  # Broken: fails on valid input.
8028continue
8029fi
8030rm -f conftest.err conftest.$ac_ext
8031
8032  # OK, works on sane cases.  Now check whether non-existent headers
8033  # can be detected and how.
8034  cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h.  */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h.  */
8040#include <ac_nonexistent.h>
8041_ACEOF
8042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8043  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8044  ac_status=$?
8045  grep -v '^ *+' conftest.er1 >conftest.err
8046  rm -f conftest.er1
8047  cat conftest.err >&5
8048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049  (exit $ac_status); } >/dev/null; then
8050  if test -s conftest.err; then
8051    ac_cpp_err=$ac_cxx_preproc_warn_flag
8052    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8053  else
8054    ac_cpp_err=
8055  fi
8056else
8057  ac_cpp_err=yes
8058fi
8059if test -z "$ac_cpp_err"; then
8060  # Broken: success on invalid input.
8061continue
8062else
8063  echo "$as_me: failed program was:" >&5
8064sed 's/^/| /' conftest.$ac_ext >&5
8065
8066  # Passes both tests.
8067ac_preproc_ok=:
8068break
8069fi
8070rm -f conftest.err conftest.$ac_ext
8071
8072done
8073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8074rm -f conftest.err conftest.$ac_ext
8075if $ac_preproc_ok; then
8076  break
8077fi
8078
8079    done
8080    ac_cv_prog_CXXCPP=$CXXCPP
8081
8082fi
8083  CXXCPP=$ac_cv_prog_CXXCPP
8084else
8085  ac_cv_prog_CXXCPP=$CXXCPP
8086fi
8087echo "$as_me:$LINENO: result: $CXXCPP" >&5
8088echo "${ECHO_T}$CXXCPP" >&6
8089ac_preproc_ok=false
8090for ac_cxx_preproc_warn_flag in '' yes
8091do
8092  # Use a header file that comes with gcc, so configuring glibc
8093  # with a fresh cross-compiler works.
8094  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8095  # <limits.h> exists even on freestanding compilers.
8096  # On the NeXT, cc -E runs the code through the compiler's parser,
8097  # not just through cpp. "Syntax error" is here to catch this case.
8098  cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h.  */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h.  */
8104#ifdef __STDC__
8105# include <limits.h>
8106#else
8107# include <assert.h>
8108#endif
8109                     Syntax error
8110_ACEOF
8111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8112  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8113  ac_status=$?
8114  grep -v '^ *+' conftest.er1 >conftest.err
8115  rm -f conftest.er1
8116  cat conftest.err >&5
8117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118  (exit $ac_status); } >/dev/null; then
8119  if test -s conftest.err; then
8120    ac_cpp_err=$ac_cxx_preproc_warn_flag
8121    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8122  else
8123    ac_cpp_err=
8124  fi
8125else
8126  ac_cpp_err=yes
8127fi
8128if test -z "$ac_cpp_err"; then
8129  :
8130else
8131  echo "$as_me: failed program was:" >&5
8132sed 's/^/| /' conftest.$ac_ext >&5
8133
8134  # Broken: fails on valid input.
8135continue
8136fi
8137rm -f conftest.err conftest.$ac_ext
8138
8139  # OK, works on sane cases.  Now check whether non-existent headers
8140  # can be detected and how.
8141  cat >conftest.$ac_ext <<_ACEOF
8142/* confdefs.h.  */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
8146/* end confdefs.h.  */
8147#include <ac_nonexistent.h>
8148_ACEOF
8149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8150  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8151  ac_status=$?
8152  grep -v '^ *+' conftest.er1 >conftest.err
8153  rm -f conftest.er1
8154  cat conftest.err >&5
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); } >/dev/null; then
8157  if test -s conftest.err; then
8158    ac_cpp_err=$ac_cxx_preproc_warn_flag
8159    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8160  else
8161    ac_cpp_err=
8162  fi
8163else
8164  ac_cpp_err=yes
8165fi
8166if test -z "$ac_cpp_err"; then
8167  # Broken: success on invalid input.
8168continue
8169else
8170  echo "$as_me: failed program was:" >&5
8171sed 's/^/| /' conftest.$ac_ext >&5
8172
8173  # Passes both tests.
8174ac_preproc_ok=:
8175break
8176fi
8177rm -f conftest.err conftest.$ac_ext
8178
8179done
8180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8181rm -f conftest.err conftest.$ac_ext
8182if $ac_preproc_ok; then
8183  :
8184else
8185  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8186See \`config.log' for more details." >&5
8187echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8188See \`config.log' for more details." >&2;}
8189   { (exit 1); exit 1; }; }
8190fi
8191
8192ac_ext=cc
8193ac_cpp='$CXXCPP $CPPFLAGS'
8194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8197
8198fi
8199
8200
8201
8202# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8203
8204# find the maximum length of command line arguments
8205echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8206echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8207if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8208  echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210    i=0
8211  teststring="ABCD"
8212
8213  case $build_os in
8214  msdosdjgpp*)
8215    # On DJGPP, this test can blow up pretty badly due to problems in libc
8216    # (any single argument exceeding 2000 bytes causes a buffer overrun
8217    # during glob expansion).  Even if it were fixed, the result of this
8218    # check would be larger than it should be.
8219    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8220    ;;
8221
8222  gnu*)
8223    # Under GNU Hurd, this test is not required because there is
8224    # no limit to the length of command line arguments.
8225    # Libtool will interpret -1 as no limit whatsoever
8226    lt_cv_sys_max_cmd_len=-1;
8227    ;;
8228
8229  cygwin* | mingw*)
8230    # On Win9x/ME, this test blows up -- it succeeds, but takes
8231    # about 5 minutes as the teststring grows exponentially.
8232    # Worse, since 9x/ME are not pre-emptively multitasking,
8233    # you end up with a "frozen" computer, even though with patience
8234    # the test eventually succeeds (with a max line length of 256k).
8235    # Instead, let's just punt: use the minimum linelength reported by
8236    # all of the supported platforms: 8192 (on NT/2K/XP).
8237    lt_cv_sys_max_cmd_len=8192;
8238    ;;
8239
8240  amigaos*)
8241    # On AmigaOS with pdksh, this test takes hours, literally.
8242    # So we just punt and use a minimum line length of 8192.
8243    lt_cv_sys_max_cmd_len=8192;
8244    ;;
8245
8246  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8247    # This has been around since 386BSD, at least.  Likely further.
8248    if test -x /sbin/sysctl; then
8249      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8250    elif test -x /usr/sbin/sysctl; then
8251      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8252    else
8253      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8254    fi
8255    # And add a safety zone
8256    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8257    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8258    ;;
8259
8260  interix*)
8261    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8262    lt_cv_sys_max_cmd_len=196608
8263    ;;
8264
8265  osf*)
8266    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8267    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8268    # nice to cause kernel panics so lets avoid the loop below.
8269    # First set a reasonable default.
8270    lt_cv_sys_max_cmd_len=16384
8271    #
8272    if test -x /sbin/sysconfig; then
8273      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8274        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8275      esac
8276    fi
8277    ;;
8278  sco3.2v5*)
8279    lt_cv_sys_max_cmd_len=102400
8280    ;;
8281  sysv5* | sco5v6* | sysv4.2uw2*)
8282    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8283    if test -n "$kargmax"; then
8284      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8285    else
8286      lt_cv_sys_max_cmd_len=32768
8287    fi
8288    ;;
8289  *)
8290    # If test is not a shell built-in, we'll probably end up computing a
8291    # maximum length that is only half of the actual maximum length, but
8292    # we can't tell.
8293    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8294    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8295               = "XX$teststring") >/dev/null 2>&1 &&
8296            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8297            lt_cv_sys_max_cmd_len=$new_result &&
8298            test $i != 17 # 1/2 MB should be enough
8299    do
8300      i=`expr $i + 1`
8301      teststring=$teststring$teststring
8302    done
8303    teststring=
8304    # Add a significant safety factor because C++ compilers can tack on massive
8305    # amounts of additional arguments before passing them to the linker.
8306    # It appears as though 1/2 is a usable value.
8307    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8308    ;;
8309  esac
8310
8311fi
8312
8313if test -n $lt_cv_sys_max_cmd_len ; then
8314  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8315echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8316else
8317  echo "$as_me:$LINENO: result: none" >&5
8318echo "${ECHO_T}none" >&6
8319fi
8320
8321
8322
8323
8324# Check for command to grab the raw symbol name followed by C symbol from nm.
8325echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8326echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8327if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8328  echo $ECHO_N "(cached) $ECHO_C" >&6
8329else
8330
8331# These are sane defaults that work on at least a few old systems.
8332# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8333
8334# Character class describing NM global symbol codes.
8335symcode='[BCDEGRST]'
8336
8337# Regexp to match symbols that can be accessed directly from C.
8338sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8339
8340# Transform an extracted symbol line into a proper C declaration
8341lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8342
8343# Transform an extracted symbol line into symbol name and symbol address
8344lt_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'"
8345
8346# Define system-specific variables.
8347case $host_os in
8348aix*)
8349  symcode='[BCDT]'
8350  ;;
8351cygwin* | mingw* | pw32*)
8352  symcode='[ABCDGISTW]'
8353  ;;
8354hpux*) # Its linker distinguishes data from code symbols
8355  if test "$host_cpu" = ia64; then
8356    symcode='[ABCDEGRST]'
8357  fi
8358  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8359  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'"
8360  ;;
8361linux*)
8362  if test "$host_cpu" = ia64; then
8363    symcode='[ABCDGIRSTW]'
8364    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8365    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'"
8366  fi
8367  ;;
8368irix* | nonstopux*)
8369  symcode='[BCDEGRST]'
8370  ;;
8371osf*)
8372  symcode='[BCDEGQRST]'
8373  ;;
8374solaris*)
8375  symcode='[BDRT]'
8376  ;;
8377sco3.2v5*)
8378  symcode='[DT]'
8379  ;;
8380sysv4.2uw2*)
8381  symcode='[DT]'
8382  ;;
8383sysv5* | sco5v6* | unixware* | OpenUNIX*)
8384  symcode='[ABDT]'
8385  ;;
8386sysv4)
8387  symcode='[DFNSTU]'
8388  ;;
8389esac
8390
8391# Handle CRLF in mingw tool chain
8392opt_cr=
8393case $build_os in
8394mingw*)
8395  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8396  ;;
8397esac
8398
8399# If we're using GNU nm, then use its standard symbol codes.
8400case `$NM -V 2>&1` in
8401*GNU* | *'with BFD'*)
8402  symcode='[ABCDGIRSTW]' ;;
8403esac
8404
8405# Try without a prefix undercore, then with it.
8406for ac_symprfx in "" "_"; do
8407
8408  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8409  symxfrm="\\1 $ac_symprfx\\2 \\2"
8410
8411  # Write the raw and C identifiers.
8412  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8413
8414  # Check to see that the pipe works correctly.
8415  pipe_works=no
8416
8417  rm -f conftest*
8418  cat > conftest.$ac_ext <<EOF
8419#ifdef __cplusplus
8420extern "C" {
8421#endif
8422char nm_test_var;
8423void nm_test_func(){}
8424#ifdef __cplusplus
8425}
8426#endif
8427int main(){nm_test_var='a';nm_test_func();return(0);}
8428EOF
8429
8430  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431  (eval $ac_compile) 2>&5
8432  ac_status=$?
8433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434  (exit $ac_status); }; then
8435    # Now try to grab the symbols.
8436    nlist=conftest.nm
8437    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8438  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8439  ac_status=$?
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); } && test -s "$nlist"; then
8442      # Try sorting and uniquifying the output.
8443      if sort "$nlist" | uniq > "$nlist"T; then
8444        mv -f "$nlist"T "$nlist"
8445      else
8446        rm -f "$nlist"T
8447      fi
8448
8449      # Make sure that we snagged all the symbols we need.
8450      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8451        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8452          cat <<EOF > conftest.$ac_ext
8453#ifdef __cplusplus
8454extern "C" {
8455#endif
8456
8457EOF
8458          # Now generate the symbol file.
8459          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8460
8461          cat <<EOF >> conftest.$ac_ext
8462#if defined (__STDC__) && __STDC__
8463# define lt_ptr_t void *
8464#else
8465# define lt_ptr_t char *
8466# define const
8467#endif
8468
8469/* The mapping between symbol names and symbols. */
8470const struct {
8471  const char *name;
8472  lt_ptr_t address;
8473}
8474lt_preloaded_symbols[] =
8475{
8476EOF
8477          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8478          cat <<\EOF >> conftest.$ac_ext
8479  {0, (lt_ptr_t) 0}
8480};
8481
8482#ifdef __cplusplus
8483}
8484#endif
8485EOF
8486          # Now try linking the two files.
8487          mv conftest.$ac_objext conftstm.$ac_objext
8488          lt_save_LIBS="$LIBS"
8489          lt_save_CFLAGS="$CFLAGS"
8490          LIBS="conftstm.$ac_objext"
8491          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8492          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493  (eval $ac_link) 2>&5
8494  ac_status=$?
8495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8497            pipe_works=yes
8498          fi
8499          LIBS="$lt_save_LIBS"
8500          CFLAGS="$lt_save_CFLAGS"
8501        else
8502          echo "cannot find nm_test_func in $nlist" >&5
8503        fi
8504      else
8505        echo "cannot find nm_test_var in $nlist" >&5
8506      fi
8507    else
8508      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8509    fi
8510  else
8511    echo "$progname: failed program was:" >&5
8512    cat conftest.$ac_ext >&5
8513  fi
8514  rm -f conftest* conftst*
8515
8516  # Do not use the global_symbol_pipe unless it works.
8517  if test "$pipe_works" = yes; then
8518    break
8519  else
8520    lt_cv_sys_global_symbol_pipe=
8521  fi
8522done
8523
8524fi
8525
8526if test -z "$lt_cv_sys_global_symbol_pipe"; then
8527  lt_cv_sys_global_symbol_to_cdecl=
8528fi
8529if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8530  echo "$as_me:$LINENO: result: failed" >&5
8531echo "${ECHO_T}failed" >&6
8532else
8533  echo "$as_me:$LINENO: result: ok" >&5
8534echo "${ECHO_T}ok" >&6
8535fi
8536
8537echo "$as_me:$LINENO: checking for objdir" >&5
8538echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8539if test "${lt_cv_objdir+set}" = set; then
8540  echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542  rm -f .libs 2>/dev/null
8543mkdir .libs 2>/dev/null
8544if test -d .libs; then
8545  lt_cv_objdir=.libs
8546else
8547  # MS-DOS does not allow filenames that begin with a dot.
8548  lt_cv_objdir=_libs
8549fi
8550rmdir .libs 2>/dev/null
8551fi
8552echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8553echo "${ECHO_T}$lt_cv_objdir" >&6
8554objdir=$lt_cv_objdir
8555
8556
8557
8558
8559
8560case $host_os in
8561aix3*)
8562  # AIX sometimes has problems with the GCC collect2 program.  For some
8563  # reason, if we set the COLLECT_NAMES environment variable, the problems
8564  # vanish in a puff of smoke.
8565  if test "X${COLLECT_NAMES+set}" != Xset; then
8566    COLLECT_NAMES=
8567    export COLLECT_NAMES
8568  fi
8569  ;;
8570esac
8571
8572# Sed substitution that helps us do robust quoting.  It backslashifies
8573# metacharacters that are still active within double-quoted strings.
8574Xsed='sed -e 1s/^X//'
8575sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8576
8577# Same as above, but do not quote variable references.
8578double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8579
8580# Sed substitution to delay expansion of an escaped shell variable in a
8581# double_quote_subst'ed string.
8582delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8583
8584# Sed substitution to avoid accidental globbing in evaled expressions
8585no_glob_subst='s/\*/\\\*/g'
8586
8587# Constants:
8588rm="rm -f"
8589
8590# Global variables:
8591default_ofile=libtool
8592can_build_shared=yes
8593
8594# All known linkers require a `.a' archive for static linking (except MSVC,
8595# which needs '.lib').
8596libext=a
8597ltmain="$ac_aux_dir/ltmain.sh"
8598ofile="$default_ofile"
8599with_gnu_ld="$lt_cv_prog_gnu_ld"
8600
8601if test -n "$ac_tool_prefix"; then
8602  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8603set dummy ${ac_tool_prefix}ar; ac_word=$2
8604echo "$as_me:$LINENO: checking for $ac_word" >&5
8605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8606if test "${ac_cv_prog_AR+set}" = set; then
8607  echo $ECHO_N "(cached) $ECHO_C" >&6
8608else
8609  if test -n "$AR"; then
8610  ac_cv_prog_AR="$AR" # Let the user override the test.
8611else
8612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613for as_dir in $PATH
8614do
8615  IFS=$as_save_IFS
8616  test -z "$as_dir" && as_dir=.
8617  for ac_exec_ext in '' $ac_executable_extensions; do
8618  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8619    ac_cv_prog_AR="${ac_tool_prefix}ar"
8620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8621    break 2
8622  fi
8623done
8624done
8625
8626fi
8627fi
8628AR=$ac_cv_prog_AR
8629if test -n "$AR"; then
8630  echo "$as_me:$LINENO: result: $AR" >&5
8631echo "${ECHO_T}$AR" >&6
8632else
8633  echo "$as_me:$LINENO: result: no" >&5
8634echo "${ECHO_T}no" >&6
8635fi
8636
8637fi
8638if test -z "$ac_cv_prog_AR"; then
8639  ac_ct_AR=$AR
8640  # Extract the first word of "ar", so it can be a program name with args.
8641set dummy ar; ac_word=$2
8642echo "$as_me:$LINENO: checking for $ac_word" >&5
8643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8644if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8645  echo $ECHO_N "(cached) $ECHO_C" >&6
8646else
8647  if test -n "$ac_ct_AR"; then
8648  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8649else
8650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651for as_dir in $PATH
8652do
8653  IFS=$as_save_IFS
8654  test -z "$as_dir" && as_dir=.
8655  for ac_exec_ext in '' $ac_executable_extensions; do
8656  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657    ac_cv_prog_ac_ct_AR="ar"
8658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659    break 2
8660  fi
8661done
8662done
8663
8664  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8665fi
8666fi
8667ac_ct_AR=$ac_cv_prog_ac_ct_AR
8668if test -n "$ac_ct_AR"; then
8669  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8670echo "${ECHO_T}$ac_ct_AR" >&6
8671else
8672  echo "$as_me:$LINENO: result: no" >&5
8673echo "${ECHO_T}no" >&6
8674fi
8675
8676  AR=$ac_ct_AR
8677else
8678  AR="$ac_cv_prog_AR"
8679fi
8680
8681if test -n "$ac_tool_prefix"; then
8682  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8683set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8684echo "$as_me:$LINENO: checking for $ac_word" >&5
8685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8686if test "${ac_cv_prog_RANLIB+set}" = set; then
8687  echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689  if test -n "$RANLIB"; then
8690  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8691else
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695  IFS=$as_save_IFS
8696  test -z "$as_dir" && as_dir=.
8697  for ac_exec_ext in '' $ac_executable_extensions; do
8698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8701    break 2
8702  fi
8703done
8704done
8705
8706fi
8707fi
8708RANLIB=$ac_cv_prog_RANLIB
8709if test -n "$RANLIB"; then
8710  echo "$as_me:$LINENO: result: $RANLIB" >&5
8711echo "${ECHO_T}$RANLIB" >&6
8712else
8713  echo "$as_me:$LINENO: result: no" >&5
8714echo "${ECHO_T}no" >&6
8715fi
8716
8717fi
8718if test -z "$ac_cv_prog_RANLIB"; then
8719  ac_ct_RANLIB=$RANLIB
8720  # Extract the first word of "ranlib", so it can be a program name with args.
8721set dummy ranlib; ac_word=$2
8722echo "$as_me:$LINENO: checking for $ac_word" >&5
8723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8724if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8725  echo $ECHO_N "(cached) $ECHO_C" >&6
8726else
8727  if test -n "$ac_ct_RANLIB"; then
8728  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8729else
8730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731for as_dir in $PATH
8732do
8733  IFS=$as_save_IFS
8734  test -z "$as_dir" && as_dir=.
8735  for ac_exec_ext in '' $ac_executable_extensions; do
8736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737    ac_cv_prog_ac_ct_RANLIB="ranlib"
8738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8739    break 2
8740  fi
8741done
8742done
8743
8744  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8745fi
8746fi
8747ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8748if test -n "$ac_ct_RANLIB"; then
8749  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8750echo "${ECHO_T}$ac_ct_RANLIB" >&6
8751else
8752  echo "$as_me:$LINENO: result: no" >&5
8753echo "${ECHO_T}no" >&6
8754fi
8755
8756  RANLIB=$ac_ct_RANLIB
8757else
8758  RANLIB="$ac_cv_prog_RANLIB"
8759fi
8760
8761if test -n "$ac_tool_prefix"; then
8762  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8763set dummy ${ac_tool_prefix}strip; ac_word=$2
8764echo "$as_me:$LINENO: checking for $ac_word" >&5
8765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8766if test "${ac_cv_prog_STRIP+set}" = set; then
8767  echo $ECHO_N "(cached) $ECHO_C" >&6
8768else
8769  if test -n "$STRIP"; then
8770  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8771else
8772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773for as_dir in $PATH
8774do
8775  IFS=$as_save_IFS
8776  test -z "$as_dir" && as_dir=.
8777  for ac_exec_ext in '' $ac_executable_extensions; do
8778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8779    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8781    break 2
8782  fi
8783done
8784done
8785
8786fi
8787fi
8788STRIP=$ac_cv_prog_STRIP
8789if test -n "$STRIP"; then
8790  echo "$as_me:$LINENO: result: $STRIP" >&5
8791echo "${ECHO_T}$STRIP" >&6
8792else
8793  echo "$as_me:$LINENO: result: no" >&5
8794echo "${ECHO_T}no" >&6
8795fi
8796
8797fi
8798if test -z "$ac_cv_prog_STRIP"; then
8799  ac_ct_STRIP=$STRIP
8800  # Extract the first word of "strip", so it can be a program name with args.
8801set dummy strip; ac_word=$2
8802echo "$as_me:$LINENO: checking for $ac_word" >&5
8803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8804if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8805  echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807  if test -n "$ac_ct_STRIP"; then
8808  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8809else
8810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811for as_dir in $PATH
8812do
8813  IFS=$as_save_IFS
8814  test -z "$as_dir" && as_dir=.
8815  for ac_exec_ext in '' $ac_executable_extensions; do
8816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817    ac_cv_prog_ac_ct_STRIP="strip"
8818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8819    break 2
8820  fi
8821done
8822done
8823
8824  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8825fi
8826fi
8827ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8828if test -n "$ac_ct_STRIP"; then
8829  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8830echo "${ECHO_T}$ac_ct_STRIP" >&6
8831else
8832  echo "$as_me:$LINENO: result: no" >&5
8833echo "${ECHO_T}no" >&6
8834fi
8835
8836  STRIP=$ac_ct_STRIP
8837else
8838  STRIP="$ac_cv_prog_STRIP"
8839fi
8840
8841
8842old_CC="$CC"
8843old_CFLAGS="$CFLAGS"
8844
8845# Set sane defaults for various variables
8846test -z "$AR" && AR=ar
8847test -z "$AR_FLAGS" && AR_FLAGS=cru
8848test -z "$AS" && AS=as
8849test -z "$CC" && CC=cc
8850test -z "$LTCC" && LTCC=$CC
8851test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8852test -z "$DLLTOOL" && DLLTOOL=dlltool
8853test -z "$LD" && LD=ld
8854test -z "$LN_S" && LN_S="ln -s"
8855test -z "$MAGIC_CMD" && MAGIC_CMD=file
8856test -z "$NM" && NM=nm
8857test -z "$SED" && SED=sed
8858test -z "$OBJDUMP" && OBJDUMP=objdump
8859test -z "$RANLIB" && RANLIB=:
8860test -z "$STRIP" && STRIP=:
8861test -z "$ac_objext" && ac_objext=o
8862
8863# Determine commands to create old-style static archives.
8864old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8865old_postinstall_cmds='chmod 644 $oldlib'
8866old_postuninstall_cmds=
8867
8868if test -n "$RANLIB"; then
8869  case $host_os in
8870  openbsd*)
8871    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8872    ;;
8873  *)
8874    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8875    ;;
8876  esac
8877  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8878fi
8879
8880for cc_temp in $compiler""; do
8881  case $cc_temp in
8882    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8883    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8884    \-*) ;;
8885    *) break;;
8886  esac
8887done
8888cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8889
8890
8891# Only perform the check for file, if the check method requires it
8892case $deplibs_check_method in
8893file_magic*)
8894  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8895    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8896echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8897if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8898  echo $ECHO_N "(cached) $ECHO_C" >&6
8899else
8900  case $MAGIC_CMD in
8901[\\/*] |  ?:[\\/]*)
8902  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8903  ;;
8904*)
8905  lt_save_MAGIC_CMD="$MAGIC_CMD"
8906  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8907  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8908  for ac_dir in $ac_dummy; do
8909    IFS="$lt_save_ifs"
8910    test -z "$ac_dir" && ac_dir=.
8911    if test -f $ac_dir/${ac_tool_prefix}file; then
8912      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8913      if test -n "$file_magic_test_file"; then
8914        case $deplibs_check_method in
8915        "file_magic "*)
8916          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8917          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8918          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8919            $EGREP "$file_magic_regex" > /dev/null; then
8920            :
8921          else
8922            cat <<EOF 1>&2
8923
8924*** Warning: the command libtool uses to detect shared libraries,
8925*** $file_magic_cmd, produces output that libtool cannot recognize.
8926*** The result is that libtool may fail to recognize shared libraries
8927*** as such.  This will affect the creation of libtool libraries that
8928*** depend on shared libraries, but programs linked with such libtool
8929*** libraries will work regardless of this problem.  Nevertheless, you
8930*** may want to report the problem to your system manager and/or to
8931*** bug-libtool@gnu.org
8932
8933EOF
8934          fi ;;
8935        esac
8936      fi
8937      break
8938    fi
8939  done
8940  IFS="$lt_save_ifs"
8941  MAGIC_CMD="$lt_save_MAGIC_CMD"
8942  ;;
8943esac
8944fi
8945
8946MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8947if test -n "$MAGIC_CMD"; then
8948  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8949echo "${ECHO_T}$MAGIC_CMD" >&6
8950else
8951  echo "$as_me:$LINENO: result: no" >&5
8952echo "${ECHO_T}no" >&6
8953fi
8954
8955if test -z "$lt_cv_path_MAGIC_CMD"; then
8956  if test -n "$ac_tool_prefix"; then
8957    echo "$as_me:$LINENO: checking for file" >&5
8958echo $ECHO_N "checking for file... $ECHO_C" >&6
8959if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8960  echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962  case $MAGIC_CMD in
8963[\\/*] |  ?:[\\/]*)
8964  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8965  ;;
8966*)
8967  lt_save_MAGIC_CMD="$MAGIC_CMD"
8968  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8969  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8970  for ac_dir in $ac_dummy; do
8971    IFS="$lt_save_ifs"
8972    test -z "$ac_dir" && ac_dir=.
8973    if test -f $ac_dir/file; then
8974      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8975      if test -n "$file_magic_test_file"; then
8976        case $deplibs_check_method in
8977        "file_magic "*)
8978          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8979          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8980          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8981            $EGREP "$file_magic_regex" > /dev/null; then
8982            :
8983          else
8984            cat <<EOF 1>&2
8985
8986*** Warning: the command libtool uses to detect shared libraries,
8987*** $file_magic_cmd, produces output that libtool cannot recognize.
8988*** The result is that libtool may fail to recognize shared libraries
8989*** as such.  This will affect the creation of libtool libraries that
8990*** depend on shared libraries, but programs linked with such libtool
8991*** libraries will work regardless of this problem.  Nevertheless, you
8992*** may want to report the problem to your system manager and/or to
8993*** bug-libtool@gnu.org
8994
8995EOF
8996          fi ;;
8997        esac
8998      fi
8999      break
9000    fi
9001  done
9002  IFS="$lt_save_ifs"
9003  MAGIC_CMD="$lt_save_MAGIC_CMD"
9004  ;;
9005esac
9006fi
9007
9008MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9009if test -n "$MAGIC_CMD"; then
9010  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9011echo "${ECHO_T}$MAGIC_CMD" >&6
9012else
9013  echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015fi
9016
9017  else
9018    MAGIC_CMD=:
9019  fi
9020fi
9021
9022  fi
9023  ;;
9024esac
9025
9026enable_dlopen=no
9027enable_win32_dll=no
9028
9029# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9030if test "${enable_libtool_lock+set}" = set; then
9031  enableval="$enable_libtool_lock"
9032
9033fi;
9034test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9035
9036
9037# Check whether --with-pic or --without-pic was given.
9038if test "${with_pic+set}" = set; then
9039  withval="$with_pic"
9040  pic_mode="$withval"
9041else
9042  pic_mode=default
9043fi;
9044test -z "$pic_mode" && pic_mode=default
9045
9046# Use C for the default configuration in the libtool script
9047tagname=
9048lt_save_CC="$CC"
9049ac_ext=c
9050ac_cpp='$CPP $CPPFLAGS'
9051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9053ac_compiler_gnu=$ac_cv_c_compiler_gnu
9054
9055
9056# Source file extension for C test sources.
9057ac_ext=c
9058
9059# Object file extension for compiled C test sources.
9060objext=o
9061objext=$objext
9062
9063# Code to be used in simple compile tests
9064lt_simple_compile_test_code="int some_variable = 0;\n"
9065
9066# Code to be used in simple link tests
9067lt_simple_link_test_code='int main(){return(0);}\n'
9068
9069
9070# If no C compiler was specified, use CC.
9071LTCC=${LTCC-"$CC"}
9072
9073# If no C compiler flags were specified, use CFLAGS.
9074LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9075
9076# Allow CC to be a program name with arguments.
9077compiler=$CC
9078
9079
9080# save warnings/boilerplate of simple test code
9081ac_outfile=conftest.$ac_objext
9082printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9083eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9084_lt_compiler_boilerplate=`cat conftest.err`
9085$rm conftest*
9086
9087ac_outfile=conftest.$ac_objext
9088printf "$lt_simple_link_test_code" >conftest.$ac_ext
9089eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9090_lt_linker_boilerplate=`cat conftest.err`
9091$rm conftest*
9092
9093
9094## CAVEAT EMPTOR:
9095## There is no encapsulation within the following macros, do not change
9096## the running order or otherwise move them around unless you know exactly
9097## what you are doing...
9098
9099lt_prog_compiler_no_builtin_flag=
9100
9101if test "$GCC" = yes; then
9102  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9103
9104
9105echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9106echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9107if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9108  echo $ECHO_N "(cached) $ECHO_C" >&6
9109else
9110  lt_cv_prog_compiler_rtti_exceptions=no
9111  ac_outfile=conftest.$ac_objext
9112   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9113   lt_compiler_flag="-fno-rtti -fno-exceptions"
9114   # Insert the option either (1) after the last *FLAGS variable, or
9115   # (2) before a word containing "conftest.", or (3) at the end.
9116   # Note that $ac_compile itself does not contain backslashes and begins
9117   # with a dollar sign (not a hyphen), so the echo should work correctly.
9118   # The option is referenced via a variable to avoid confusing sed.
9119   lt_compile=`echo "$ac_compile" | $SED \
9120   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9121   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9122   -e 's:$: $lt_compiler_flag:'`
9123   (eval echo "\"\$as_me:9123: $lt_compile\"" >&5)
9124   (eval "$lt_compile" 2>conftest.err)
9125   ac_status=$?
9126   cat conftest.err >&5
9127   echo "$as_me:9127: \$? = $ac_status" >&5
9128   if (exit $ac_status) && test -s "$ac_outfile"; then
9129     # The compiler can only warn and ignore the option if not recognized
9130     # So say no if there are warnings other than the usual output.
9131     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9132     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9133     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9134       lt_cv_prog_compiler_rtti_exceptions=yes
9135     fi
9136   fi
9137   $rm conftest*
9138
9139fi
9140echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9141echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9142
9143if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9144    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9145else
9146    :
9147fi
9148
9149fi
9150
9151lt_prog_compiler_wl=
9152lt_prog_compiler_pic=
9153lt_prog_compiler_static=
9154
9155echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9156echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9157
9158  if test "$GCC" = yes; then
9159    lt_prog_compiler_wl='-Wl,'
9160    lt_prog_compiler_static='-static'
9161
9162    case $host_os in
9163      aix*)
9164      # All AIX code is PIC.
9165      if test "$host_cpu" = ia64; then
9166        # AIX 5 now supports IA64 processor
9167        lt_prog_compiler_static='-Bstatic'
9168      fi
9169      ;;
9170
9171    amigaos*)
9172      # FIXME: we need at least 68020 code to build shared libraries, but
9173      # adding the `-m68020' flag to GCC prevents building anything better,
9174      # like `-m68040'.
9175      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9176      ;;
9177
9178    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9179      # PIC is the default for these OSes.
9180      ;;
9181
9182    mingw* | pw32* | os2*)
9183      # This hack is so that the source file can tell whether it is being
9184      # built for inclusion in a dll (and should export symbols for example).
9185      lt_prog_compiler_pic='-DDLL_EXPORT'
9186      ;;
9187
9188    darwin* | rhapsody*)
9189      # PIC is the default on this platform
9190      # Common symbols not allowed in MH_DYLIB files
9191      lt_prog_compiler_pic='-fno-common'
9192      ;;
9193
9194    interix3*)
9195      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9196      # Instead, we relocate shared libraries at runtime.
9197      ;;
9198
9199    msdosdjgpp*)
9200      # Just because we use GCC doesn't mean we suddenly get shared libraries
9201      # on systems that don't support them.
9202      lt_prog_compiler_can_build_shared=no
9203      enable_shared=no
9204      ;;
9205
9206    sysv4*MP*)
9207      if test -d /usr/nec; then
9208        lt_prog_compiler_pic=-Kconform_pic
9209      fi
9210      ;;
9211
9212    hpux*)
9213      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9214      # not for PA HP-UX.
9215      case $host_cpu in
9216      hppa*64*|ia64*)
9217        # +Z the default
9218        ;;
9219      *)
9220        lt_prog_compiler_pic='-fPIC'
9221        ;;
9222      esac
9223      ;;
9224
9225    *)
9226      lt_prog_compiler_pic='-fPIC'
9227      ;;
9228    esac
9229  else
9230    # PORTME Check for flag to pass linker flags through the system compiler.
9231    case $host_os in
9232    aix*)
9233      lt_prog_compiler_wl='-Wl,'
9234      if test "$host_cpu" = ia64; then
9235        # AIX 5 now supports IA64 processor
9236        lt_prog_compiler_static='-Bstatic'
9237      else
9238        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9239      fi
9240      ;;
9241      darwin*)
9242        # PIC is the default on this platform
9243        # Common symbols not allowed in MH_DYLIB files
9244       case $cc_basename in
9245         xlc*)
9246         lt_prog_compiler_pic='-qnocommon'
9247         lt_prog_compiler_wl='-Wl,'
9248         ;;
9249       esac
9250       ;;
9251
9252    mingw* | pw32* | os2*)
9253      # This hack is so that the source file can tell whether it is being
9254      # built for inclusion in a dll (and should export symbols for example).
9255      lt_prog_compiler_pic='-DDLL_EXPORT'
9256      ;;
9257
9258    hpux9* | hpux10* | hpux11*)
9259      lt_prog_compiler_wl='-Wl,'
9260      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9261      # not for PA HP-UX.
9262      case $host_cpu in
9263      hppa*64*|ia64*)
9264        # +Z the default
9265        ;;
9266      *)
9267        lt_prog_compiler_pic='+Z'
9268        ;;
9269      esac
9270      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9271      lt_prog_compiler_static='${wl}-a ${wl}archive'
9272      ;;
9273
9274    irix5* | irix6* | nonstopux*)
9275      lt_prog_compiler_wl='-Wl,'
9276      # PIC (with -KPIC) is the default.
9277      lt_prog_compiler_static='-non_shared'
9278      ;;
9279
9280    newsos6)
9281      lt_prog_compiler_pic='-KPIC'
9282      lt_prog_compiler_static='-Bstatic'
9283      ;;
9284
9285    linux*)
9286      case $cc_basename in
9287      icc* | ecc*)
9288        lt_prog_compiler_wl='-Wl,'
9289        lt_prog_compiler_pic='-KPIC'
9290        lt_prog_compiler_static='-static'
9291        ;;
9292      pgcc* | pgf77* | pgf90* | pgf95*)
9293        # Portland Group compilers (*not* the Pentium gcc compiler,
9294        # which looks to be a dead project)
9295        lt_prog_compiler_wl='-Wl,'
9296        lt_prog_compiler_pic='-fpic'
9297        lt_prog_compiler_static='-Bstatic'
9298        ;;
9299      ccc*)
9300        lt_prog_compiler_wl='-Wl,'
9301        # All Alpha code is PIC.
9302        lt_prog_compiler_static='-non_shared'
9303        ;;
9304      esac
9305      ;;
9306
9307    osf3* | osf4* | osf5*)
9308      lt_prog_compiler_wl='-Wl,'
9309      # All OSF/1 code is PIC.
9310      lt_prog_compiler_static='-non_shared'
9311      ;;
9312
9313    solaris*)
9314      lt_prog_compiler_pic='-KPIC'
9315      lt_prog_compiler_static='-Bstatic'
9316      case $cc_basename in
9317      f77* | f90* | f95*)
9318        lt_prog_compiler_wl='-Qoption ld ';;
9319      *)
9320        lt_prog_compiler_wl='-Wl,';;
9321      esac
9322      ;;
9323
9324    sunos4*)
9325      lt_prog_compiler_wl='-Qoption ld '
9326      lt_prog_compiler_pic='-PIC'
9327      lt_prog_compiler_static='-Bstatic'
9328      ;;
9329
9330    sysv4 | sysv4.2uw2* | sysv4.3*)
9331      lt_prog_compiler_wl='-Wl,'
9332      lt_prog_compiler_pic='-KPIC'
9333      lt_prog_compiler_static='-Bstatic'
9334      ;;
9335
9336    sysv4*MP*)
9337      if test -d /usr/nec ;then
9338        lt_prog_compiler_pic='-Kconform_pic'
9339        lt_prog_compiler_static='-Bstatic'
9340      fi
9341      ;;
9342
9343    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9344      lt_prog_compiler_wl='-Wl,'
9345      lt_prog_compiler_pic='-KPIC'
9346      lt_prog_compiler_static='-Bstatic'
9347      ;;
9348
9349    unicos*)
9350      lt_prog_compiler_wl='-Wl,'
9351      lt_prog_compiler_can_build_shared=no
9352      ;;
9353
9354    uts4*)
9355      lt_prog_compiler_pic='-pic'
9356      lt_prog_compiler_static='-Bstatic'
9357      ;;
9358
9359    *)
9360      lt_prog_compiler_can_build_shared=no
9361      ;;
9362    esac
9363  fi
9364
9365echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9366echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9367
9368#
9369# Check to make sure the PIC flag actually works.
9370#
9371if test -n "$lt_prog_compiler_pic"; then
9372
9373echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9374echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9375if test "${lt_prog_compiler_pic_works+set}" = set; then
9376  echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378  lt_prog_compiler_pic_works=no
9379  ac_outfile=conftest.$ac_objext
9380   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9381   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9382   # Insert the option either (1) after the last *FLAGS variable, or
9383   # (2) before a word containing "conftest.", or (3) at the end.
9384   # Note that $ac_compile itself does not contain backslashes and begins
9385   # with a dollar sign (not a hyphen), so the echo should work correctly.
9386   # The option is referenced via a variable to avoid confusing sed.
9387   lt_compile=`echo "$ac_compile" | $SED \
9388   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9389   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9390   -e 's:$: $lt_compiler_flag:'`
9391   (eval echo "\"\$as_me:9391: $lt_compile\"" >&5)
9392   (eval "$lt_compile" 2>conftest.err)
9393   ac_status=$?
9394   cat conftest.err >&5
9395   echo "$as_me:9395: \$? = $ac_status" >&5
9396   if (exit $ac_status) && test -s "$ac_outfile"; then
9397     # The compiler can only warn and ignore the option if not recognized
9398     # So say no if there are warnings other than the usual output.
9399     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9400     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9401     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9402       lt_prog_compiler_pic_works=yes
9403     fi
9404   fi
9405   $rm conftest*
9406
9407fi
9408echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9409echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9410
9411if test x"$lt_prog_compiler_pic_works" = xyes; then
9412    case $lt_prog_compiler_pic in
9413     "" | " "*) ;;
9414     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9415     esac
9416else
9417    lt_prog_compiler_pic=
9418     lt_prog_compiler_can_build_shared=no
9419fi
9420
9421fi
9422case $host_os in
9423  # For platforms which do not support PIC, -DPIC is meaningless:
9424  *djgpp*)
9425    lt_prog_compiler_pic=
9426    ;;
9427  *)
9428    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9429    ;;
9430esac
9431
9432#
9433# Check to make sure the static flag actually works.
9434#
9435wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9436echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9437echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9438if test "${lt_prog_compiler_static_works+set}" = set; then
9439  echo $ECHO_N "(cached) $ECHO_C" >&6
9440else
9441  lt_prog_compiler_static_works=no
9442   save_LDFLAGS="$LDFLAGS"
9443   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9444   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9445   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9446     # The linker can only warn and ignore the option if not recognized
9447     # So say no if there are warnings
9448     if test -s conftest.err; then
9449       # Append any errors to the config.log.
9450       cat conftest.err 1>&5
9451       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9452       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453       if diff conftest.exp conftest.er2 >/dev/null; then
9454         lt_prog_compiler_static_works=yes
9455       fi
9456     else
9457       lt_prog_compiler_static_works=yes
9458     fi
9459   fi
9460   $rm conftest*
9461   LDFLAGS="$save_LDFLAGS"
9462
9463fi
9464echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9465echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9466
9467if test x"$lt_prog_compiler_static_works" = xyes; then
9468    :
9469else
9470    lt_prog_compiler_static=
9471fi
9472
9473
9474echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9475echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9476if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9477  echo $ECHO_N "(cached) $ECHO_C" >&6
9478else
9479  lt_cv_prog_compiler_c_o=no
9480   $rm -r conftest 2>/dev/null
9481   mkdir conftest
9482   cd conftest
9483   mkdir out
9484   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9485
9486   lt_compiler_flag="-o out/conftest2.$ac_objext"
9487   # Insert the option either (1) after the last *FLAGS variable, or
9488   # (2) before a word containing "conftest.", or (3) at the end.
9489   # Note that $ac_compile itself does not contain backslashes and begins
9490   # with a dollar sign (not a hyphen), so the echo should work correctly.
9491   lt_compile=`echo "$ac_compile" | $SED \
9492   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9493   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9494   -e 's:$: $lt_compiler_flag:'`
9495   (eval echo "\"\$as_me:9495: $lt_compile\"" >&5)
9496   (eval "$lt_compile" 2>out/conftest.err)
9497   ac_status=$?
9498   cat out/conftest.err >&5
9499   echo "$as_me:9499: \$? = $ac_status" >&5
9500   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9501   then
9502     # The compiler can only warn and ignore the option if not recognized
9503     # So say no if there are warnings
9504     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9505     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9506     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9507       lt_cv_prog_compiler_c_o=yes
9508     fi
9509   fi
9510   chmod u+w . 2>&5
9511   $rm conftest*
9512   # SGI C++ compiler will create directory out/ii_files/ for
9513   # template instantiation
9514   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9515   $rm out/* && rmdir out
9516   cd ..
9517   rmdir conftest
9518   $rm conftest*
9519
9520fi
9521echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9522echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9523
9524
9525hard_links="nottested"
9526if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9527  # do not overwrite the value of need_locks provided by the user
9528  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9529echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9530  hard_links=yes
9531  $rm conftest*
9532  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9533  touch conftest.a
9534  ln conftest.a conftest.b 2>&5 || hard_links=no
9535  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9536  echo "$as_me:$LINENO: result: $hard_links" >&5
9537echo "${ECHO_T}$hard_links" >&6
9538  if test "$hard_links" = no; then
9539    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9540echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9541    need_locks=warn
9542  fi
9543else
9544  need_locks=no
9545fi
9546
9547echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9548echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9549
9550  runpath_var=
9551  allow_undefined_flag=
9552  enable_shared_with_static_runtimes=no
9553  archive_cmds=
9554  archive_expsym_cmds=
9555  old_archive_From_new_cmds=
9556  old_archive_from_expsyms_cmds=
9557  export_dynamic_flag_spec=
9558  whole_archive_flag_spec=
9559  thread_safe_flag_spec=
9560  hardcode_libdir_flag_spec=
9561  hardcode_libdir_flag_spec_ld=
9562  hardcode_libdir_separator=
9563  hardcode_direct=no
9564  hardcode_minus_L=no
9565  hardcode_shlibpath_var=unsupported
9566  link_all_deplibs=unknown
9567  hardcode_automatic=no
9568  module_cmds=
9569  module_expsym_cmds=
9570  always_export_symbols=no
9571  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9572  # include_expsyms should be a list of space-separated symbols to be *always*
9573  # included in the symbol list
9574  include_expsyms=
9575  # exclude_expsyms can be an extended regexp of symbols to exclude
9576  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9577  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9578  # as well as any symbol that contains `d'.
9579  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9580  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9581  # platforms (ab)use it in PIC code, but their linkers get confused if
9582  # the symbol is explicitly referenced.  Since portable code cannot
9583  # rely on this symbol name, it's probably fine to never include it in
9584  # preloaded symbol tables.
9585  extract_expsyms_cmds=
9586  # Just being paranoid about ensuring that cc_basename is set.
9587  for cc_temp in $compiler""; do
9588  case $cc_temp in
9589    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9590    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9591    \-*) ;;
9592    *) break;;
9593  esac
9594done
9595cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9596
9597  case $host_os in
9598  cygwin* | mingw* | pw32*)
9599    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9600    # When not using gcc, we currently assume that we are using
9601    # Microsoft Visual C++.
9602    if test "$GCC" != yes; then
9603      with_gnu_ld=no
9604    fi
9605    ;;
9606  interix*)
9607    # we just hope/assume this is gcc and not c89 (= MSVC++)
9608    with_gnu_ld=yes
9609    ;;
9610  openbsd*)
9611    with_gnu_ld=no
9612    ;;
9613  esac
9614
9615  ld_shlibs=yes
9616  if test "$with_gnu_ld" = yes; then
9617    # If archive_cmds runs LD, not CC, wlarc should be empty
9618    wlarc='${wl}'
9619
9620    # Set some defaults for GNU ld with shared library support. These
9621    # are reset later if shared libraries are not supported. Putting them
9622    # here allows them to be overridden if necessary.
9623    runpath_var=LD_RUN_PATH
9624    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9625    export_dynamic_flag_spec='${wl}--export-dynamic'
9626    # ancient GNU ld didn't support --whole-archive et. al.
9627    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9628        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9629      else
9630        whole_archive_flag_spec=
9631    fi
9632    supports_anon_versioning=no
9633    case `$LD -v 2>/dev/null` in
9634      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9635      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9636      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9637      *\ 2.11.*) ;; # other 2.11 versions
9638      *) supports_anon_versioning=yes ;;
9639    esac
9640
9641    # See if GNU ld supports shared libraries.
9642    case $host_os in
9643    aix3* | aix4* | aix5*)
9644      # On AIX/PPC, the GNU linker is very broken
9645      if test "$host_cpu" != ia64; then
9646        ld_shlibs=no
9647        cat <<EOF 1>&2
9648
9649*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9650*** to be unable to reliably create shared libraries on AIX.
9651*** Therefore, libtool is disabling shared libraries support.  If you
9652*** really care for shared libraries, you may want to modify your PATH
9653*** so that a non-GNU linker is found, and then restart.
9654
9655EOF
9656      fi
9657      ;;
9658
9659    amigaos*)
9660      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)'
9661      hardcode_libdir_flag_spec='-L$libdir'
9662      hardcode_minus_L=yes
9663
9664      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9665      # that the semantics of dynamic libraries on AmigaOS, at least up
9666      # to version 4, is to share data among multiple programs linked
9667      # with the same dynamic library.  Since this doesn't match the
9668      # behavior of shared libraries on other platforms, we can't use
9669      # them.
9670      ld_shlibs=no
9671      ;;
9672
9673    beos*)
9674      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9675        allow_undefined_flag=unsupported
9676        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9677        # support --undefined.  This deserves some investigation.  FIXME
9678        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9679      else
9680        ld_shlibs=no
9681      fi
9682      ;;
9683
9684    cygwin* | mingw* | pw32*)
9685      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9686      # as there is no search path for DLLs.
9687      hardcode_libdir_flag_spec='-L$libdir'
9688      allow_undefined_flag=unsupported
9689      always_export_symbols=no
9690      enable_shared_with_static_runtimes=yes
9691      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9692
9693      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9694        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9695        # If the export-symbols file already is a .def file (1st line
9696        # is EXPORTS), use it as is; otherwise, prepend...
9697        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9698          cp $export_symbols $output_objdir/$soname.def;
9699        else
9700          echo EXPORTS > $output_objdir/$soname.def;
9701          cat $export_symbols >> $output_objdir/$soname.def;
9702        fi~
9703        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9704      else
9705        ld_shlibs=no
9706      fi
9707      ;;
9708
9709    interix3*)
9710      hardcode_direct=no
9711      hardcode_shlibpath_var=no
9712      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9713      export_dynamic_flag_spec='${wl}-E'
9714      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9715      # Instead, shared libraries are loaded at an image base (0x10000000 by
9716      # default) and relocated if they conflict, which is a slow very memory
9717      # consuming and fragmenting process.  To avoid this, we pick a random,
9718      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9719      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9720      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9721      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'
9722      ;;
9723
9724    linux*)
9725      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9726        tmp_addflag=
9727        case $cc_basename,$host_cpu in
9728        pgcc*)                          # Portland Group C compiler
9729          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'
9730          tmp_addflag=' $pic_flag'
9731          ;;
9732        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9733          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9734          tmp_addflag=' $pic_flag -Mnomain' ;;
9735        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9736          tmp_addflag=' -i_dynamic' ;;
9737        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9738          tmp_addflag=' -i_dynamic -nofor_main' ;;
9739        ifc* | ifort*)                  # Intel Fortran compiler
9740          tmp_addflag=' -nofor_main' ;;
9741        esac
9742        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743
9744        if test $supports_anon_versioning = yes; then
9745          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9746  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9747  $echo "local: *; };" >> $output_objdir/$libname.ver~
9748          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9749        fi
9750      else
9751        ld_shlibs=no
9752      fi
9753      ;;
9754
9755    netbsd*)
9756      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9757        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9758        wlarc=
9759      else
9760        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9761        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9762      fi
9763      ;;
9764
9765    solaris*)
9766      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9767        ld_shlibs=no
9768        cat <<EOF 1>&2
9769
9770*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9771*** create shared libraries on Solaris systems.  Therefore, libtool
9772*** is disabling shared libraries support.  We urge you to upgrade GNU
9773*** binutils to release 2.9.1 or newer.  Another option is to modify
9774*** your PATH or compiler configuration so that the native linker is
9775*** used, and then restart.
9776
9777EOF
9778      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9779        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9780        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9781      else
9782        ld_shlibs=no
9783      fi
9784      ;;
9785
9786    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9787      case `$LD -v 2>&1` in
9788        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9789        ld_shlibs=no
9790        cat <<_LT_EOF 1>&2
9791
9792*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9793*** reliably create shared libraries on SCO systems.  Therefore, libtool
9794*** is disabling shared libraries support.  We urge you to upgrade GNU
9795*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9796*** your PATH or compiler configuration so that the native linker is
9797*** used, and then restart.
9798
9799_LT_EOF
9800        ;;
9801        *)
9802          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9803            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9804            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9805            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9806          else
9807            ld_shlibs=no
9808          fi
9809        ;;
9810      esac
9811      ;;
9812
9813    sunos4*)
9814      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9815      wlarc=
9816      hardcode_direct=yes
9817      hardcode_shlibpath_var=no
9818      ;;
9819
9820    *)
9821      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9822        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9824      else
9825        ld_shlibs=no
9826      fi
9827      ;;
9828    esac
9829
9830    if test "$ld_shlibs" = no; then
9831      runpath_var=
9832      hardcode_libdir_flag_spec=
9833      export_dynamic_flag_spec=
9834      whole_archive_flag_spec=
9835    fi
9836  else
9837    # PORTME fill in a description of your system's linker (not GNU ld)
9838    case $host_os in
9839    aix3*)
9840      allow_undefined_flag=unsupported
9841      always_export_symbols=yes
9842      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'
9843      # Note: this linker hardcodes the directories in LIBPATH if there
9844      # are no directories specified by -L.
9845      hardcode_minus_L=yes
9846      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9847        # Neither direct hardcoding nor static linking is supported with a
9848        # broken collect2.
9849        hardcode_direct=unsupported
9850      fi
9851      ;;
9852
9853    aix4* | aix5*)
9854      if test "$host_cpu" = ia64; then
9855        # On IA64, the linker does run time linking by default, so we don't
9856        # have to do anything special.
9857        aix_use_runtimelinking=no
9858        exp_sym_flag='-Bexport'
9859        no_entry_flag=""
9860      else
9861        # If we're using GNU nm, then we don't want the "-C" option.
9862        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9863        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9864          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'
9865        else
9866          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'
9867        fi
9868        aix_use_runtimelinking=no
9869
9870        # Test if we are trying to use run time linking or normal
9871        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9872        # need to do runtime linking.
9873        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9874          for ld_flag in $LDFLAGS; do
9875          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9876            aix_use_runtimelinking=yes
9877            break
9878          fi
9879          done
9880          ;;
9881        esac
9882
9883        exp_sym_flag='-bexport'
9884        no_entry_flag='-bnoentry'
9885      fi
9886
9887      # When large executables or shared objects are built, AIX ld can
9888      # have problems creating the table of contents.  If linking a library
9889      # or program results in "error TOC overflow" add -mminimal-toc to
9890      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9891      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9892
9893      archive_cmds=''
9894      hardcode_direct=yes
9895      hardcode_libdir_separator=':'
9896      link_all_deplibs=yes
9897
9898      if test "$GCC" = yes; then
9899        case $host_os in aix4.[012]|aix4.[012].*)
9900        # We only want to do this on AIX 4.2 and lower, the check
9901        # below for broken collect2 doesn't work under 4.3+
9902          collect2name=`${CC} -print-prog-name=collect2`
9903          if test -f "$collect2name" && \
9904           strings "$collect2name" | grep resolve_lib_name >/dev/null
9905          then
9906          # We have reworked collect2
9907          hardcode_direct=yes
9908          else
9909          # We have old collect2
9910          hardcode_direct=unsupported
9911          # It fails to find uninstalled libraries when the uninstalled
9912          # path is not listed in the libpath.  Setting hardcode_minus_L
9913          # to unsupported forces relinking
9914          hardcode_minus_L=yes
9915          hardcode_libdir_flag_spec='-L$libdir'
9916          hardcode_libdir_separator=
9917          fi
9918          ;;
9919        esac
9920        shared_flag='-shared'
9921        if test "$aix_use_runtimelinking" = yes; then
9922          shared_flag="$shared_flag "'${wl}-G'
9923        fi
9924      else
9925        # not using gcc
9926        if test "$host_cpu" = ia64; then
9927        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9928        # chokes on -Wl,-G. The following line is correct:
9929          shared_flag='-G'
9930        else
9931          if test "$aix_use_runtimelinking" = yes; then
9932            shared_flag='${wl}-G'
9933          else
9934            shared_flag='${wl}-bM:SRE'
9935          fi
9936        fi
9937      fi
9938
9939      # It seems that -bexpall does not export symbols beginning with
9940      # underscore (_), so it is better to generate a list of symbols to export.
9941      always_export_symbols=yes
9942      if test "$aix_use_runtimelinking" = yes; then
9943        # Warning - without using the other runtime loading flags (-brtl),
9944        # -berok will link without error, but may produce a broken library.
9945        allow_undefined_flag='-berok'
9946       # Determine the default libpath from the value encoded in an empty executable.
9947       cat >conftest.$ac_ext <<_ACEOF
9948/* confdefs.h.  */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h.  */
9953
9954#ifdef F77_DUMMY_MAIN
9955
9956#  ifdef __cplusplus
9957     extern "C"
9958#  endif
9959   int F77_DUMMY_MAIN() { return 1; }
9960
9961#endif
9962int
9963main ()
9964{
9965
9966  ;
9967  return 0;
9968}
9969_ACEOF
9970rm -f conftest.$ac_objext conftest$ac_exeext
9971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972  (eval $ac_link) 2>conftest.er1
9973  ac_status=$?
9974  grep -v '^ *+' conftest.er1 >conftest.err
9975  rm -f conftest.er1
9976  cat conftest.err >&5
9977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978  (exit $ac_status); } &&
9979         { ac_try='test -z "$ac_c_werror_flag"
9980                         || test ! -s conftest.err'
9981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982  (eval $ac_try) 2>&5
9983  ac_status=$?
9984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985  (exit $ac_status); }; } &&
9986         { ac_try='test -s conftest$ac_exeext'
9987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988  (eval $ac_try) 2>&5
9989  ac_status=$?
9990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991  (exit $ac_status); }; }; then
9992
9993aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9994}'`
9995# Check for a 64-bit object if we didn't find anything.
9996if 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; }
9997}'`; fi
9998else
9999  echo "$as_me: failed program was:" >&5
10000sed 's/^/| /' conftest.$ac_ext >&5
10001
10002fi
10003rm -f conftest.err conftest.$ac_objext \
10004      conftest$ac_exeext conftest.$ac_ext
10005if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10006
10007       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10008        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"
10009       else
10010        if test "$host_cpu" = ia64; then
10011          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10012          allow_undefined_flag="-z nodefs"
10013          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"
10014        else
10015         # Determine the default libpath from the value encoded in an empty executable.
10016         cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h.  */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h.  */
10022
10023#ifdef F77_DUMMY_MAIN
10024
10025#  ifdef __cplusplus
10026     extern "C"
10027#  endif
10028   int F77_DUMMY_MAIN() { return 1; }
10029
10030#endif
10031int
10032main ()
10033{
10034
10035  ;
10036  return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041  (eval $ac_link) 2>conftest.er1
10042  ac_status=$?
10043  grep -v '^ *+' conftest.er1 >conftest.err
10044  rm -f conftest.er1
10045  cat conftest.err >&5
10046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047  (exit $ac_status); } &&
10048         { ac_try='test -z "$ac_c_werror_flag"
10049                         || test ! -s conftest.err'
10050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051  (eval $ac_try) 2>&5
10052  ac_status=$?
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); }; } &&
10055         { ac_try='test -s conftest$ac_exeext'
10056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057  (eval $ac_try) 2>&5
10058  ac_status=$?
10059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060  (exit $ac_status); }; }; then
10061
10062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10063}'`
10064# Check for a 64-bit object if we didn't find anything.
10065if 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; }
10066}'`; fi
10067else
10068  echo "$as_me: failed program was:" >&5
10069sed 's/^/| /' conftest.$ac_ext >&5
10070
10071fi
10072rm -f conftest.err conftest.$ac_objext \
10073      conftest$ac_exeext conftest.$ac_ext
10074if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10075
10076         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10077          # Warning - without using the other run time loading flags,
10078          # -berok will link without error, but may produce a broken library.
10079          no_undefined_flag=' ${wl}-bernotok'
10080          allow_undefined_flag=' ${wl}-berok'
10081          # Exported symbols can be pulled into shared objects from archives
10082          whole_archive_flag_spec='$convenience'
10083          archive_cmds_need_lc=yes
10084          # This is similar to how AIX traditionally builds its shared libraries.
10085          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'
10086        fi
10087      fi
10088      ;;
10089
10090    amigaos*)
10091      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)'
10092      hardcode_libdir_flag_spec='-L$libdir'
10093      hardcode_minus_L=yes
10094      # see comment about different semantics on the GNU ld section
10095      ld_shlibs=no
10096      ;;
10097
10098    bsdi[45]*)
10099      export_dynamic_flag_spec=-rdynamic
10100      ;;
10101
10102    cygwin* | mingw* | pw32*)
10103      # When not using gcc, we currently assume that we are using
10104      # Microsoft Visual C++.
10105      # hardcode_libdir_flag_spec is actually meaningless, as there is
10106      # no search path for DLLs.
10107      hardcode_libdir_flag_spec=' '
10108      allow_undefined_flag=unsupported
10109      # Tell ltmain to make .lib files, not .a files.
10110      libext=lib
10111      # Tell ltmain to make .dll files, not .so files.
10112      shrext_cmds=".dll"
10113      # FIXME: Setting linknames here is a bad hack.
10114      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10115      # The linker will automatically build a .lib file if we build a DLL.
10116      old_archive_From_new_cmds='true'
10117      # FIXME: Should let the user specify the lib program.
10118      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10119      fix_srcfile_path='`cygpath -w "$srcfile"`'
10120      enable_shared_with_static_runtimes=yes
10121      ;;
10122
10123    darwin* | rhapsody*)
10124      case $host_os in
10125        rhapsody* | darwin1.[012])
10126         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10127         ;;
10128       *) # Darwin 1.3 on
10129         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10130           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10131         else
10132           case ${MACOSX_DEPLOYMENT_TARGET} in
10133             10.[012])
10134               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10135               ;;
10136             10.*)
10137               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10138               ;;
10139           esac
10140         fi
10141         ;;
10142      esac
10143      archive_cmds_need_lc=no
10144      hardcode_direct=no
10145      hardcode_automatic=yes
10146      hardcode_shlibpath_var=unsupported
10147      whole_archive_flag_spec=''
10148      link_all_deplibs=yes
10149    if test "$GCC" = yes ; then
10150        output_verbose_link_cmd='echo'
10151        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10152      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10153      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10154      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}'
10155      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}'
10156    else
10157      case $cc_basename in
10158        xlc*)
10159         output_verbose_link_cmd='echo'
10160         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10161         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10162          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10163         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}'
10164          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}'
10165          ;;
10166       *)
10167         ld_shlibs=no
10168          ;;
10169      esac
10170    fi
10171      ;;
10172
10173    dgux*)
10174      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175      hardcode_libdir_flag_spec='-L$libdir'
10176      hardcode_shlibpath_var=no
10177      ;;
10178
10179    freebsd1*)
10180      ld_shlibs=no
10181      ;;
10182
10183    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10184    # support.  Future versions do this automatically, but an explicit c++rt0.o
10185    # does not break anything, and helps significantly (at the cost of a little
10186    # extra space).
10187    freebsd2.2*)
10188      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10189      hardcode_libdir_flag_spec='-R$libdir'
10190      hardcode_direct=yes
10191      hardcode_shlibpath_var=no
10192      ;;
10193
10194    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10195    freebsd2*)
10196      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10197      hardcode_direct=yes
10198      hardcode_minus_L=yes
10199      hardcode_shlibpath_var=no
10200      ;;
10201
10202    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10203    freebsd* | kfreebsd*-gnu | dragonfly*)
10204      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10205      hardcode_libdir_flag_spec='-R$libdir'
10206      hardcode_direct=yes
10207      hardcode_shlibpath_var=no
10208      ;;
10209
10210    hpux9*)
10211      if test "$GCC" = yes; then
10212        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'
10213      else
10214        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'
10215      fi
10216      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10217      hardcode_libdir_separator=:
10218      hardcode_direct=yes
10219
10220      # hardcode_minus_L: Not really in the search PATH,
10221      # but as the default location of the library.
10222      hardcode_minus_L=yes
10223      export_dynamic_flag_spec='${wl}-E'
10224      ;;
10225
10226    hpux10*)
10227      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10228        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10229      else
10230        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10231      fi
10232      if test "$with_gnu_ld" = no; then
10233        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10234        hardcode_libdir_separator=:
10235
10236        hardcode_direct=yes
10237        export_dynamic_flag_spec='${wl}-E'
10238
10239        # hardcode_minus_L: Not really in the search PATH,
10240        # but as the default location of the library.
10241        hardcode_minus_L=yes
10242      fi
10243      ;;
10244
10245    hpux11*)
10246      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10247        case $host_cpu in
10248        hppa*64*)
10249          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10250          ;;
10251        ia64*)
10252          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10253          ;;
10254        *)
10255          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10256          ;;
10257        esac
10258      else
10259        case $host_cpu in
10260        hppa*64*)
10261          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10262          ;;
10263        ia64*)
10264          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10265          ;;
10266        *)
10267          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10268          ;;
10269        esac
10270      fi
10271      if test "$with_gnu_ld" = no; then
10272        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10273        hardcode_libdir_separator=:
10274
10275        case $host_cpu in
10276        hppa*64*|ia64*)
10277          hardcode_libdir_flag_spec_ld='+b $libdir'
10278          hardcode_direct=no
10279          hardcode_shlibpath_var=no
10280          ;;
10281        *)
10282          hardcode_direct=yes
10283          export_dynamic_flag_spec='${wl}-E'
10284
10285          # hardcode_minus_L: Not really in the search PATH,
10286          # but as the default location of the library.
10287          hardcode_minus_L=yes
10288          ;;
10289        esac
10290      fi
10291      ;;
10292
10293    irix5* | irix6* | nonstopux*)
10294      if test "$GCC" = yes; then
10295        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'
10296      else
10297        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'
10298        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10299      fi
10300      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10301      hardcode_libdir_separator=:
10302      link_all_deplibs=yes
10303      ;;
10304
10305    netbsd*)
10306      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10307        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10308      else
10309        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10310      fi
10311      hardcode_libdir_flag_spec='-R$libdir'
10312      hardcode_direct=yes
10313      hardcode_shlibpath_var=no
10314      ;;
10315
10316    newsos6)
10317      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318      hardcode_direct=yes
10319      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10320      hardcode_libdir_separator=:
10321      hardcode_shlibpath_var=no
10322      ;;
10323
10324    openbsd*)
10325      hardcode_direct=yes
10326      hardcode_shlibpath_var=no
10327      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10328        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10329        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10330        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10331        export_dynamic_flag_spec='${wl}-E'
10332      else
10333       case $host_os in
10334         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10335           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10336           hardcode_libdir_flag_spec='-R$libdir'
10337           ;;
10338         *)
10339           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10340           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10341           ;;
10342       esac
10343      fi
10344      ;;
10345
10346    os2*)
10347      hardcode_libdir_flag_spec='-L$libdir'
10348      hardcode_minus_L=yes
10349      allow_undefined_flag=unsupported
10350      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'
10351      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10352      ;;
10353
10354    osf3*)
10355      if test "$GCC" = yes; then
10356        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10357        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'
10358      else
10359        allow_undefined_flag=' -expect_unresolved \*'
10360        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'
10361      fi
10362      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10363      hardcode_libdir_separator=:
10364      ;;
10365
10366    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10367      if test "$GCC" = yes; then
10368        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10369        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'
10370        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371      else
10372        allow_undefined_flag=' -expect_unresolved \*'
10373        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'
10374        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10375        $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'
10376
10377        # Both c and cxx compiler support -rpath directly
10378        hardcode_libdir_flag_spec='-rpath $libdir'
10379      fi
10380      hardcode_libdir_separator=:
10381      ;;
10382
10383    solaris*)
10384      no_undefined_flag=' -z text'
10385      if test "$GCC" = yes; then
10386        wlarc='${wl}'
10387        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10388        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10389          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10390      else
10391        wlarc=''
10392        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10394        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10395      fi
10396      hardcode_libdir_flag_spec='-R$libdir'
10397      hardcode_shlibpath_var=no
10398      case $host_os in
10399      solaris2.[0-5] | solaris2.[0-5].*) ;;
10400      *)
10401        # The compiler driver will combine linker options so we
10402        # cannot just pass the convience library names through
10403        # without $wl, iff we do not link with $LD.
10404        # Luckily, gcc supports the same syntax we need for Sun Studio.
10405        # Supported since Solaris 2.6 (maybe 2.5.1?)
10406        case $wlarc in
10407        '')
10408          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10409        *)
10410          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' ;;
10411        esac ;;
10412      esac
10413      link_all_deplibs=yes
10414      ;;
10415
10416    sunos4*)
10417      if test "x$host_vendor" = xsequent; then
10418        # Use $CC to link under sequent, because it throws in some extra .o
10419        # files that make .init and .fini sections work.
10420        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10421      else
10422        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10423      fi
10424      hardcode_libdir_flag_spec='-L$libdir'
10425      hardcode_direct=yes
10426      hardcode_minus_L=yes
10427      hardcode_shlibpath_var=no
10428      ;;
10429
10430    sysv4)
10431      case $host_vendor in
10432        sni)
10433          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434          hardcode_direct=yes # is this really true???
10435        ;;
10436        siemens)
10437          ## LD is ld it makes a PLAMLIB
10438          ## CC just makes a GrossModule.
10439          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10440          reload_cmds='$CC -r -o $output$reload_objs'
10441          hardcode_direct=no
10442        ;;
10443        motorola)
10444          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10445          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10446        ;;
10447      esac
10448      runpath_var='LD_RUN_PATH'
10449      hardcode_shlibpath_var=no
10450      ;;
10451
10452    sysv4.3*)
10453      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10454      hardcode_shlibpath_var=no
10455      export_dynamic_flag_spec='-Bexport'
10456      ;;
10457
10458    sysv4*MP*)
10459      if test -d /usr/nec; then
10460        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10461        hardcode_shlibpath_var=no
10462        runpath_var=LD_RUN_PATH
10463        hardcode_runpath_var=yes
10464        ld_shlibs=yes
10465      fi
10466      ;;
10467
10468    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10469      no_undefined_flag='${wl}-z,text'
10470      archive_cmds_need_lc=no
10471      hardcode_shlibpath_var=no
10472      runpath_var='LD_RUN_PATH'
10473
10474      if test "$GCC" = yes; then
10475        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10476        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10477      else
10478        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10479        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10480      fi
10481      ;;
10482
10483    sysv5* | sco3.2v5* | sco5v6*)
10484      # Note: We can NOT use -z defs as we might desire, because we do not
10485      # link with -lc, and that would cause any symbols used from libc to
10486      # always be unresolved, which means just about no library would
10487      # ever link correctly.  If we're not using GNU ld we use -z text
10488      # though, which does catch some bad symbols but isn't as heavy-handed
10489      # as -z defs.
10490      no_undefined_flag='${wl}-z,text'
10491      allow_undefined_flag='${wl}-z,nodefs'
10492      archive_cmds_need_lc=no
10493      hardcode_shlibpath_var=no
10494      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10495      hardcode_libdir_separator=':'
10496      link_all_deplibs=yes
10497      export_dynamic_flag_spec='${wl}-Bexport'
10498      runpath_var='LD_RUN_PATH'
10499
10500      if test "$GCC" = yes; then
10501        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10502        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10503      else
10504        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10505        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10506      fi
10507      ;;
10508
10509    uts4*)
10510      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10511      hardcode_libdir_flag_spec='-L$libdir'
10512      hardcode_shlibpath_var=no
10513      ;;
10514
10515    *)
10516      ld_shlibs=no
10517      ;;
10518    esac
10519  fi
10520
10521echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10522echo "${ECHO_T}$ld_shlibs" >&6
10523test "$ld_shlibs" = no && can_build_shared=no
10524
10525#
10526# Do we need to explicitly link libc?
10527#
10528case "x$archive_cmds_need_lc" in
10529x|xyes)
10530  # Assume -lc should be added
10531  archive_cmds_need_lc=yes
10532
10533  if test "$enable_shared" = yes && test "$GCC" = yes; then
10534    case $archive_cmds in
10535    *'~'*)
10536      # FIXME: we may have to deal with multi-command sequences.
10537      ;;
10538    '$CC '*)
10539      # Test whether the compiler implicitly links with -lc since on some
10540      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10541      # to ld, don't add -lc before -lgcc.
10542      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10543echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10544      $rm conftest*
10545      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10546
10547      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548  (eval $ac_compile) 2>&5
10549  ac_status=$?
10550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551  (exit $ac_status); } 2>conftest.err; then
10552        soname=conftest
10553        lib=conftest
10554        libobjs=conftest.$ac_objext
10555        deplibs=
10556        wl=$lt_prog_compiler_wl
10557        pic_flag=$lt_prog_compiler_pic
10558        compiler_flags=-v
10559        linker_flags=-v
10560        verstring=
10561        output_objdir=.
10562        libname=conftest
10563        lt_save_allow_undefined_flag=$allow_undefined_flag
10564        allow_undefined_flag=
10565        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10566  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10567  ac_status=$?
10568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569  (exit $ac_status); }
10570        then
10571          archive_cmds_need_lc=no
10572        else
10573          archive_cmds_need_lc=yes
10574        fi
10575        allow_undefined_flag=$lt_save_allow_undefined_flag
10576      else
10577        cat conftest.err 1>&5
10578      fi
10579      $rm conftest*
10580      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10581echo "${ECHO_T}$archive_cmds_need_lc" >&6
10582      ;;
10583    esac
10584  fi
10585  ;;
10586esac
10587
10588echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10589echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10590library_names_spec=
10591libname_spec='lib$name'
10592soname_spec=
10593shrext_cmds=".so"
10594postinstall_cmds=
10595postuninstall_cmds=
10596finish_cmds=
10597finish_eval=
10598shlibpath_var=
10599shlibpath_overrides_runpath=unknown
10600version_type=none
10601dynamic_linker="$host_os ld.so"
10602sys_lib_dlsearch_path_spec="/lib /usr/lib"
10603if test "$GCC" = yes; then
10604  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10605  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10606    # if the path contains ";" then we assume it to be the separator
10607    # otherwise default to the standard path separator (i.e. ":") - it is
10608    # assumed that no part of a normal pathname contains ";" but that should
10609    # okay in the real world where ";" in dirpaths is itself problematic.
10610    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10611  else
10612    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10613  fi
10614else
10615  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10616fi
10617need_lib_prefix=unknown
10618hardcode_into_libs=no
10619
10620# when you set need_version to no, make sure it does not cause -set_version
10621# flags to be left without arguments
10622need_version=unknown
10623
10624case $host_os in
10625aix3*)
10626  version_type=linux
10627  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10628  shlibpath_var=LIBPATH
10629
10630  # AIX 3 has no versioning support, so we append a major version to the name.
10631  soname_spec='${libname}${release}${shared_ext}$major'
10632  ;;
10633
10634aix4* | aix5*)
10635  version_type=linux
10636  need_lib_prefix=no
10637  need_version=no
10638  hardcode_into_libs=yes
10639  if test "$host_cpu" = ia64; then
10640    # AIX 5 supports IA64
10641    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10642    shlibpath_var=LD_LIBRARY_PATH
10643  else
10644    # With GCC up to 2.95.x, collect2 would create an import file
10645    # for dependence libraries.  The import file would start with
10646    # the line `#! .'.  This would cause the generated library to
10647    # depend on `.', always an invalid library.  This was fixed in
10648    # development snapshots of GCC prior to 3.0.
10649    case $host_os in
10650      aix4 | aix4.[01] | aix4.[01].*)
10651      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10652           echo ' yes '
10653           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10654        :
10655      else
10656        can_build_shared=no
10657      fi
10658      ;;
10659    esac
10660    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10661    # soname into executable. Probably we can add versioning support to
10662    # collect2, so additional links can be useful in future.
10663    if test "$aix_use_runtimelinking" = yes; then
10664      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10665      # instead of lib<name>.a to let people know that these are not
10666      # typical AIX shared libraries.
10667      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668    else
10669      # We preserve .a as extension for shared libraries through AIX4.2
10670      # and later when we are not doing run time linking.
10671      library_names_spec='${libname}${release}.a $libname.a'
10672      soname_spec='${libname}${release}${shared_ext}$major'
10673    fi
10674    shlibpath_var=LIBPATH
10675  fi
10676  ;;
10677
10678amigaos*)
10679  library_names_spec='$libname.ixlibrary $libname.a'
10680  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10681  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'
10682  ;;
10683
10684beos*)
10685  library_names_spec='${libname}${shared_ext}'
10686  dynamic_linker="$host_os ld.so"
10687  shlibpath_var=LIBRARY_PATH
10688  ;;
10689
10690bsdi[45]*)
10691  version_type=linux
10692  need_version=no
10693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694  soname_spec='${libname}${release}${shared_ext}$major'
10695  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10696  shlibpath_var=LD_LIBRARY_PATH
10697  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10698  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10699  # the default ld.so.conf also contains /usr/contrib/lib and
10700  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10701  # libtool to hard-code these into programs
10702  ;;
10703
10704cygwin* | mingw* | pw32*)
10705  version_type=windows
10706  shrext_cmds=".dll"
10707  need_version=no
10708  need_lib_prefix=no
10709
10710  case $GCC,$host_os in
10711  yes,cygwin* | yes,mingw* | yes,pw32*)
10712    library_names_spec='$libname.dll.a'
10713    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714    postinstall_cmds='base_file=`basename \${file}`~
10715      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10716      dldir=$destdir/`dirname \$dlpath`~
10717      test -d \$dldir || mkdir -p \$dldir~
10718      $install_prog $dir/$dlname \$dldir/$dlname~
10719      chmod a+x \$dldir/$dlname'
10720    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10721      dlpath=$dir/\$dldll~
10722       $rm \$dlpath'
10723    shlibpath_overrides_runpath=yes
10724
10725    case $host_os in
10726    cygwin*)
10727      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10728      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10729      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10730      ;;
10731    mingw*)
10732      # MinGW DLLs use traditional 'lib' prefix
10733      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10734      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10735      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10736        # It is most probably a Windows format PATH printed by
10737        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10738        # path with ; separators, and with drive letters. We can handle the
10739        # drive letters (cygwin fileutils understands them), so leave them,
10740        # especially as we might pass files found there to a mingw objdump,
10741        # which wouldn't understand a cygwinified path. Ahh.
10742        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10743      else
10744        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10745      fi
10746      ;;
10747    pw32*)
10748      # pw32 DLLs use 'pw' prefix rather than 'lib'
10749      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10750      ;;
10751    esac
10752    ;;
10753
10754  *)
10755    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10756    ;;
10757  esac
10758  dynamic_linker='Win32 ld.exe'
10759  # FIXME: first we should search . and the directory the executable is in
10760  shlibpath_var=PATH
10761  ;;
10762
10763darwin* | rhapsody*)
10764  dynamic_linker="$host_os dyld"
10765  version_type=darwin
10766  need_lib_prefix=no
10767  need_version=no
10768  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10769  soname_spec='${libname}${release}${major}$shared_ext'
10770  shlibpath_overrides_runpath=yes
10771  shlibpath_var=DYLD_LIBRARY_PATH
10772  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10773  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10774  if test "$GCC" = yes; then
10775    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"`
10776  else
10777    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10778  fi
10779  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10780  ;;
10781
10782dgux*)
10783  version_type=linux
10784  need_lib_prefix=no
10785  need_version=no
10786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10787  soname_spec='${libname}${release}${shared_ext}$major'
10788  shlibpath_var=LD_LIBRARY_PATH
10789  ;;
10790
10791freebsd1*)
10792  dynamic_linker=no
10793  ;;
10794
10795kfreebsd*-gnu)