source: ThirdParty/Blas/trunk/configure @ 1719

Last change on this file since 1719 was 1719, checked in by stefan, 9 years ago

set version number to 'trunk'

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