source: ThirdParty/Blas/branches/BSPsplit/configure @ 1460

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

get FLIBS and put into .pc files

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