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

Last change on this file since 3727 was 3727, checked in by stefan, 3 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 742.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 1.4.6.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='1.4.6'
433PACKAGE_STRING='ThirdPartyBlas 1.4.6'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion BLAS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS BLAS_PCLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyBlas 1.4.6 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyBlas 1.4.6:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-blas compile project Blas with debug compiler flags
1080
1081  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1082  --disable-pkg-config    disable use of pkg-config (if available)
1083  --enable-static[=PKGS]
1084                          build static libraries [default=no]
1085  --disable-dependency-tracking  speeds up one-time build
1086  --enable-dependency-tracking   do not reject slow dependency extractors
1087  --enable-maintainer-mode  enable make rules and dependencies not useful
1088                          (and sometimes confusing) to the casual installer
1089  --enable-shared[=PKGS]
1090                          build shared libraries [default=yes]
1091  --enable-fast-install[=PKGS]
1092                          optimize for fast installation [default=yes]
1093  --disable-libtool-lock  avoid locking (might break parallel builds)
1094  --disable-dependency-linking
1095                          disable linking library dependencies into shared
1096                          libraries
1097
1098Optional Packages:
1099  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1100  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1101  --with-blas-verbosity specify the debug verbosity level for project Blas
1102  --with-blas-checklevel specify the sanity check level for project Blas
1103  --with-coin-instdir     prefix of installation directory for precompiled
1104                          COIN packages
1105  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1106  --with-pic              try to use only PIC/non-PIC objects [default=use
1107                          both]
1108  --with-tags[=TAGS]
1109                          include additional configurations [automatic]
1110
1111Some influential environment variables:
1112  CDEFS       Additional -D flags to be used when compiling C code.
1113  ADD_CFLAGS  Additional C compiler options
1114  DBG_CFLAGS  Debug C compiler options
1115  OPT_CFLAGS  Optimize C compiler options
1116  CC          C compiler command
1117  CFLAGS      C compiler flags
1118  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1119              nonstandard directory <lib dir>
1120  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1121              headers in a nonstandard directory <include dir>
1122  MPICC       C MPI Compiler
1123  ADD_FFLAGS  Additional Fortran compiler options
1124  DBG_FFLAGS  Debug Fortran compiler options
1125  OPT_FFLAGS  Optimize Fortran compiler options
1126  F77         Fortran 77 compiler command
1127  FFLAGS      Fortran 77 compiler flags
1128  MPIF77      Fortran MPI Compiler
1129  PKG_CONFIG  path to pkg-config utility
1130  CPP         C preprocessor
1131  CXX         C++ compiler command
1132  CXXFLAGS    C++ compiler flags
1133  CXXCPP      C++ preprocessor
1134
1135Use these variables to override the choices made by `configure' or to help
1136it to find libraries and programs with nonstandard names/locations.
1137
1138Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1139_ACEOF
1140fi
1141
1142if test "$ac_init_help" = "recursive"; then
1143  # If there are subdirs, report their specific --help.
1144  ac_popdir=`pwd`
1145  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1146    test -d $ac_dir || continue
1147    ac_builddir=.
1148
1149if test "$ac_dir" != .; then
1150  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1151  # A "../" for each directory in $ac_dir_suffix.
1152  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1153else
1154  ac_dir_suffix= ac_top_builddir=
1155fi
1156
1157case $srcdir in
1158  .)  # No --srcdir option.  We are building in place.
1159    ac_srcdir=.
1160    if test -z "$ac_top_builddir"; then
1161       ac_top_srcdir=.
1162    else
1163       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1164    fi ;;
1165  [\\/]* | ?:[\\/]* )  # Absolute path.
1166    ac_srcdir=$srcdir$ac_dir_suffix;
1167    ac_top_srcdir=$srcdir ;;
1168  *) # Relative path.
1169    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1170    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1171esac
1172
1173# Do not use `cd foo && pwd` to compute absolute paths, because
1174# the directories may not exist.
1175case `pwd` in
1176.) ac_abs_builddir="$ac_dir";;
1177*)
1178  case "$ac_dir" in
1179  .) ac_abs_builddir=`pwd`;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1181  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1182  esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_top_builddir=${ac_top_builddir}.;;
1186*)
1187  case ${ac_top_builddir}. in
1188  .) ac_abs_top_builddir=$ac_abs_builddir;;
1189  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1190  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1191  esac;;
1192esac
1193case $ac_abs_builddir in
1194.) ac_abs_srcdir=$ac_srcdir;;
1195*)
1196  case $ac_srcdir in
1197  .) ac_abs_srcdir=$ac_abs_builddir;;
1198  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1199  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1200  esac;;
1201esac
1202case $ac_abs_builddir in
1203.) ac_abs_top_srcdir=$ac_top_srcdir;;
1204*)
1205  case $ac_top_srcdir in
1206  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1207  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1208  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1209  esac;;
1210esac
1211
1212    cd $ac_dir
1213    # Check for guested configure; otherwise get Cygnus style configure.
1214    if test -f $ac_srcdir/configure.gnu; then
1215      echo
1216      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1217    elif test -f $ac_srcdir/configure; then
1218      echo
1219      $SHELL $ac_srcdir/configure  --help=recursive
1220    elif test -f $ac_srcdir/configure.ac ||
1221           test -f $ac_srcdir/configure.in; then
1222      echo
1223      $ac_configure --help
1224    else
1225      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1226    fi
1227    cd $ac_popdir
1228  done
1229fi
1230
1231test -n "$ac_init_help" && exit 0
1232if $ac_init_version; then
1233  cat <<\_ACEOF
1234ThirdPartyBlas configure 1.4.6
1235generated by GNU Autoconf 2.59
1236
1237Copyright (C) 2003 Free Software Foundation, Inc.
1238This configure script is free software; the Free Software Foundation
1239gives unlimited permission to copy, distribute and modify it.
1240
1241
1242Copyright 2006 International Business Machines and others.
1243All Rights Reserved.
1244This file is part of the open source package Coin which is distributed
1245under the Eclipse Public License.
1246_ACEOF
1247  exit 0
1248fi
1249exec 5>config.log
1250cat >&5 <<_ACEOF
1251This file contains any messages produced by compilers while
1252running configure, to aid debugging if configure makes a mistake.
1253
1254It was created by ThirdPartyBlas $as_me 1.4.6, which was
1255generated by GNU Autoconf 2.59.  Invocation command line was
1256
1257  $ $0 $@
1258
1259_ACEOF
1260{
1261cat <<_ASUNAME
1262## --------- ##
1263## Platform. ##
1264## --------- ##
1265
1266hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1267uname -m = `(uname -m) 2>/dev/null || echo unknown`
1268uname -r = `(uname -r) 2>/dev/null || echo unknown`
1269uname -s = `(uname -s) 2>/dev/null || echo unknown`
1270uname -v = `(uname -v) 2>/dev/null || echo unknown`
1271
1272/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1273/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1274
1275/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1276/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1277/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1278hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1279/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1280/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1281/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1282
1283_ASUNAME
1284
1285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286for as_dir in $PATH
1287do
1288  IFS=$as_save_IFS
1289  test -z "$as_dir" && as_dir=.
1290  echo "PATH: $as_dir"
1291done
1292
1293} >&5
1294
1295cat >&5 <<_ACEOF
1296
1297
1298## ----------- ##
1299## Core tests. ##
1300## ----------- ##
1301
1302_ACEOF
1303
1304
1305# Keep a trace of the command line.
1306# Strip out --no-create and --no-recursion so they do not pile up.
1307# Strip out --silent because we don't want to record it for future runs.
1308# Also quote any args containing shell meta-characters.
1309# Make two passes to allow for proper duplicate-argument suppression.
1310ac_configure_args=
1311ac_configure_args0=
1312ac_configure_args1=
1313ac_sep=
1314ac_must_keep_next=false
1315for ac_pass in 1 2
1316do
1317  for ac_arg
1318  do
1319    case $ac_arg in
1320    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1321    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1322    | -silent | --silent | --silen | --sile | --sil)
1323      continue ;;
1324    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1326    esac
1327    case $ac_pass in
1328    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1329    2)
1330      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1331      if test $ac_must_keep_next = true; then
1332        ac_must_keep_next=false # Got value, back to normal.
1333      else
1334        case $ac_arg in
1335          *=* | --config-cache | -C | -disable-* | --disable-* \
1336          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1337          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1338          | -with-* | --with-* | -without-* | --without-* | --x)
1339            case "$ac_configure_args0 " in
1340              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1341            esac
1342            ;;
1343          -* ) ac_must_keep_next=true ;;
1344        esac
1345      fi
1346      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1347      # Get rid of the leading space.
1348      ac_sep=" "
1349      ;;
1350    esac
1351  done
1352done
1353$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1354$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1355
1356# When interrupted or exit'd, cleanup temporary files, and complete
1357# config.log.  We remove comments because anyway the quotes in there
1358# would cause problems or look ugly.
1359# WARNING: Be sure not to use single quotes in there, as some shells,
1360# such as our DU 5.0 friend, will then `close' the trap.
1361trap 'exit_status=$?
1362  # Save into config.log some information that might help in debugging.
1363  {
1364    echo
1365
1366    cat <<\_ASBOX
1367## ---------------- ##
1368## Cache variables. ##
1369## ---------------- ##
1370_ASBOX
1371    echo
1372    # The following way of writing the cache mishandles newlines in values,
1373{
1374  (set) 2>&1 |
1375    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1376    *ac_space=\ *)
1377      sed -n \
1378        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1379          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1380      ;;
1381    *)
1382      sed -n \
1383        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1384      ;;
1385    esac;
1386}
1387    echo
1388
1389    cat <<\_ASBOX
1390## ----------------- ##
1391## Output variables. ##
1392## ----------------- ##
1393_ASBOX
1394    echo
1395    for ac_var in $ac_subst_vars
1396    do
1397      eval ac_val=$`echo $ac_var`
1398      echo "$ac_var='"'"'$ac_val'"'"'"
1399    done | sort
1400    echo
1401
1402    if test -n "$ac_subst_files"; then
1403      cat <<\_ASBOX
1404## ------------- ##
1405## Output files. ##
1406## ------------- ##
1407_ASBOX
1408      echo
1409      for ac_var in $ac_subst_files
1410      do
1411        eval ac_val=$`echo $ac_var`
1412        echo "$ac_var='"'"'$ac_val'"'"'"
1413      done | sort
1414      echo
1415    fi
1416
1417    if test -s confdefs.h; then
1418      cat <<\_ASBOX
1419## ----------- ##
1420## confdefs.h. ##
1421## ----------- ##
1422_ASBOX
1423      echo
1424      sed "/^$/d" confdefs.h | sort
1425      echo
1426    fi
1427    test "$ac_signal" != 0 &&
1428      echo "$as_me: caught signal $ac_signal"
1429    echo "$as_me: exit $exit_status"
1430  } >&5
1431  rm -f core *.core &&
1432  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1433    exit $exit_status
1434     ' 0
1435for ac_signal in 1 2 13 15; do
1436  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1437done
1438ac_signal=0
1439
1440# confdefs.h avoids OS command line length limits that DEFS can exceed.
1441rm -rf conftest* confdefs.h
1442# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1443echo >confdefs.h
1444
1445# Predefined preprocessor variables.
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_NAME "$PACKAGE_NAME"
1449_ACEOF
1450
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_VERSION "$PACKAGE_VERSION"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_STRING "$PACKAGE_STRING"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1469_ACEOF
1470
1471
1472# Let the site file select an alternate cache file if it wants to.
1473# Prefer explicitly selected file to automatically selected ones.
1474if test -z "$CONFIG_SITE"; then
1475  if test "x$prefix" != xNONE; then
1476    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1477  else
1478    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1479  fi
1480fi
1481for ac_site_file in $CONFIG_SITE; do
1482  if test -r "$ac_site_file"; then
1483    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1484echo "$as_me: loading site script $ac_site_file" >&6;}
1485    sed 's/^/| /' "$ac_site_file" >&5
1486    . "$ac_site_file"
1487  fi
1488done
1489
1490if test -r "$cache_file"; then
1491  # Some versions of bash will fail to source /dev/null (special
1492  # files actually), so we avoid doing that.
1493  if test -f "$cache_file"; then
1494    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1495echo "$as_me: loading cache $cache_file" >&6;}
1496    case $cache_file in
1497      [\\/]* | ?:[\\/]* ) . $cache_file;;
1498      *)                      . ./$cache_file;;
1499    esac
1500  fi
1501else
1502  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1503echo "$as_me: creating cache $cache_file" >&6;}
1504  >$cache_file
1505fi
1506
1507# Check that the precious variables saved in the cache have kept the same
1508# value.
1509ac_cache_corrupted=false
1510for ac_var in `(set) 2>&1 |
1511               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1512  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1513  eval ac_new_set=\$ac_env_${ac_var}_set
1514  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1515  eval ac_new_val="\$ac_env_${ac_var}_value"
1516  case $ac_old_set,$ac_new_set in
1517    set,)
1518      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1519echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1520      ac_cache_corrupted=: ;;
1521    ,set)
1522      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1523echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1524      ac_cache_corrupted=: ;;
1525    ,);;
1526    *)
1527      if test "x$ac_old_val" != "x$ac_new_val"; then
1528        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1529echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1530        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1531echo "$as_me:   former value:  $ac_old_val" >&2;}
1532        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1533echo "$as_me:   current value: $ac_new_val" >&2;}
1534        ac_cache_corrupted=:
1535      fi;;
1536  esac
1537  # Pass precious variables to config.status.
1538  if test "$ac_new_set" = set; then
1539    case $ac_new_val in
1540    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1541      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1542    *) ac_arg=$ac_var=$ac_new_val ;;
1543    esac
1544    case " $ac_configure_args " in
1545      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1546      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1547    esac
1548  fi
1549done
1550if $ac_cache_corrupted; then
1551  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1552echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1553  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1554echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1555   { (exit 1); exit 1; }; }
1556fi
1557
1558ac_ext=c
1559ac_cpp='$CPP $CPPFLAGS'
1560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1562ac_compiler_gnu=$ac_cv_c_compiler_gnu
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593# List one file in the package so that the configure script can test
1594# whether the package is actually there
1595
1596
1597# Where should everything be installed by default?  Here, we want it
1598# to be installed directly in 'bin', 'lib', 'include' subdirectories
1599# of the directory where configure is run.  The default would be
1600# /usr/local.
1601
1602
1603
1604# As backup, we make sure we don't loose an FLIBS if it has been set
1605# by the user
1606save_FLIBS="$FLIBS"
1607
1608# A useful makefile conditional that is always false
1609
1610
1611if false; then
1612  ALWAYS_FALSE_TRUE=
1613  ALWAYS_FALSE_FALSE='#'
1614else
1615  ALWAYS_FALSE_TRUE='#'
1616  ALWAYS_FALSE_FALSE=
1617fi
1618
1619
1620# We set the following variable so that we know later in AC_COIN_FINALIZE
1621# that we are in a project main directory
1622coin_projectdir=yes
1623
1624# Set the project's version numbers
1625
1626
1627cat >>confdefs.h <<_ACEOF
1628#define BLAS_VERSION "$PACKAGE_VERSION"
1629_ACEOF
1630
1631
1632  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1633  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1634  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1635  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1636  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1637  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1638
1639cat >>confdefs.h <<_ACEOF
1640#define BLAS_VERSION_MAJOR $coin_majorver
1641_ACEOF
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define BLAS_VERSION_MINOR $coin_minorver
1646_ACEOF
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define BLAS_VERSION_RELEASE $coin_releasever
1651_ACEOF
1652
1653
1654  # We use the following variable to have a string with the upper case
1655  # version of the project name
1656  COIN_PRJCT=BLAS
1657
1658  # Set the project's SVN revision number. The complicated sed expression
1659  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1660  # as a single number.
1661  # Extract the first word of "svnversion", so it can be a program name with args.
1662set dummy svnversion; ac_word=$2
1663echo "$as_me:$LINENO: checking for $ac_word" >&5
1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665if test "${ac_cv_prog_have_svnversion+set}" = set; then
1666  echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668  if test -n "$have_svnversion"; then
1669  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1670else
1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672for as_dir in $PATH
1673do
1674  IFS=$as_save_IFS
1675  test -z "$as_dir" && as_dir=.
1676  for ac_exec_ext in '' $ac_executable_extensions; do
1677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678    ac_cv_prog_have_svnversion="yes"
1679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680    break 2
1681  fi
1682done
1683done
1684
1685  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1686fi
1687fi
1688have_svnversion=$ac_cv_prog_have_svnversion
1689if test -n "$have_svnversion"; then
1690  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1691echo "${ECHO_T}$have_svnversion" >&6
1692else
1693  echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695fi
1696
1697  if test "x$have_svnversion" = xyes; then
1698
1699    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1700    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1701      BLAS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1702
1703cat >>confdefs.h <<_ACEOF
1704#define BLAS_SVN_REV $BLAS_SVN_REV
1705_ACEOF
1706
1707    fi
1708  fi
1709
1710
1711
1712# Capture libtool library version, if given.
1713 coin_libversion=5:6:4
1714
1715
1716
1717
1718#############################################################################
1719#                         Standard build tool stuff                         #
1720#############################################################################
1721
1722# Get the system type
1723ac_aux_dir=
1724for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1725  if test -f $ac_dir/install-sh; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/install-sh -c"
1728    break
1729  elif test -f $ac_dir/install.sh; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/install.sh -c"
1732    break
1733  elif test -f $ac_dir/shtool; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/shtool install -c"
1736    break
1737  fi
1738done
1739if test -z "$ac_aux_dir"; then
1740  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1741echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1742   { (exit 1); exit 1; }; }
1743fi
1744ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1745ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1746ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1747
1748# Make sure we can run config.sub.
1749$ac_config_sub sun4 >/dev/null 2>&1 ||
1750  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1751echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1752   { (exit 1); exit 1; }; }
1753
1754echo "$as_me:$LINENO: checking build system type" >&5
1755echo $ECHO_N "checking build system type... $ECHO_C" >&6
1756if test "${ac_cv_build+set}" = set; then
1757  echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759  ac_cv_build_alias=$build_alias
1760test -z "$ac_cv_build_alias" &&
1761  ac_cv_build_alias=`$ac_config_guess`
1762test -z "$ac_cv_build_alias" &&
1763  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1764echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1765   { (exit 1); exit 1; }; }
1766ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1767  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1768echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1769   { (exit 1); exit 1; }; }
1770
1771fi
1772echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1773echo "${ECHO_T}$ac_cv_build" >&6
1774build=$ac_cv_build
1775build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1776build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1777build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1778
1779
1780
1781#turn off warnings and pedantic mode since they could make trouble on some platforms,
1782#and we couldn't fix them anyway
1783coin_skip_warn_fflags=yes
1784
1785# Check if user wants to produce debugging code
1786
1787echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1788echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1789
1790# Check whether --enable-debug or --disable-debug was given.
1791if test "${enable_debug+set}" = set; then
1792  enableval="$enable_debug"
1793  case "${enableval}" in
1794   yes) coin_debug_compile=true
1795        if test "${enable_shared+set}" = set; then :; else
1796          enable_shared=no
1797        fi
1798        ;;
1799   no)  coin_debug_compile=false
1800        ;;
1801   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1802echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1803   { (exit 1); exit 1; }; }
1804        ;;
1805esac
1806else
1807  coin_debug_compile=false
1808fi;
1809
1810# Check whether --enable-debug-blas or --disable-debug-blas was given.
1811if test "${enable_debug_blas+set}" = set; then
1812  enableval="$enable_debug_blas"
1813  case "${enableval}" in
1814    yes) coin_debug_compile=true
1815         ;;
1816    no)  coin_debug_compile=false
1817         ;;
1818    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1819echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1820   { (exit 1); exit 1; }; }
1821         ;;
1822 esac
1823else
1824  :
1825fi;
1826
1827 # m4_ifvaln([Blas],
1828
1829if test $coin_debug_compile = true; then
1830  echo "$as_me:$LINENO: result: yes" >&5
1831echo "${ECHO_T}yes" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837
1838# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1839if test "${with_blas_verbosity+set}" = set; then
1840  withval="$with_blas_verbosity"
1841  if test "$withval" = yes; then
1842                withval=1
1843              fi
1844              coin_blas_verbosity=$withval
1845else
1846  coin_blas_verbosity=0
1847fi;
1848
1849cat >>confdefs.h <<_ACEOF
1850#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1851_ACEOF
1852
1853
1854
1855# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1856if test "${with_blas_checklevel+set}" = set; then
1857  withval="$with_blas_checklevel"
1858  if test "$withval" = yes; then
1859                withval=1
1860              fi
1861              coin_blas_checklevel=$withval
1862else
1863  coin_blas_checklevel=0
1864fi;
1865
1866cat >>confdefs.h <<_ACEOF
1867#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1868_ACEOF
1869
1870
1871 # m4_ifvaln([Blas],
1872
1873
1874
1875# Get the name of the Fortran compiler and appropriate compiler options
1876
1877
1878  # for backward compatibility
1879  # Check whether --enable-doscompile or --disable-doscompile was given.
1880if test "${enable_doscompile+set}" = set; then
1881  enableval="$enable_doscompile"
1882  enable_doscompile=$enableval
1883else
1884  enable_doscompile=no
1885fi;
1886
1887  # Check whether --enable-msvc or --disable-msvc was given.
1888if test "${enable_msvc+set}" = set; then
1889  enableval="$enable_msvc"
1890  enable_msvc=$enableval
1891else
1892  enable_msvc=no
1893     if test "$enable_doscompile" = msvc ; then
1894       enable_msvc=yes
1895     elif test "$enable_doscompile" != no ; then
1896       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1897echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1898   { (exit 1); exit 1; }; }
1899     fi
1900
1901fi;
1902
1903  if test "$enable_msvc" = MD; then
1904    enable_shared=yes
1905    enable_msvc=yes
1906  fi
1907
1908  if test "$enable_msvc" = yes; then
1909    case $build in
1910      *-cygwin* | *-mingw*) ;;
1911      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1912echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1913   { (exit 1); exit 1; }; } ;;
1914    esac
1915  fi
1916
1917
1918
1919ac_ext=c
1920ac_cpp='$CPP $CPPFLAGS'
1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924
1925
1926# For consistency, we set the C compiler to the same value of the C++
1927# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1928if test x"$CXX" != x; then
1929  case "$CXX" in
1930    clang* ) ;;
1931    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1932      if test x"$CC" = x; then
1933        CC="$CXX"
1934        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1935echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1936      fi
1937      ;;
1938  esac
1939fi
1940
1941
1942
1943
1944
1945
1946coin_has_cc=yes
1947
1948save_cflags="$CFLAGS"
1949
1950# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1951# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1952# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1953# compiler. In this case, put cc after gcc.
1954
1955case $build in
1956  *-cygwin* | *-mingw*)
1957             if test "$enable_msvc" = yes ; then
1958               comps="icl cl gcc"
1959             else
1960               comps="gcc icl cl"
1961             fi ;;
1962  *-*-solaris*)
1963             # Extract the first word of "cc", so it can be a program name with args.
1964set dummy cc; ac_word=$2
1965echo "$as_me:$LINENO: checking for $ac_word" >&5
1966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1968  echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970  if test -n "$sol_cc_compiler"; then
1971  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1972else
1973  ac_prog_rejected=no
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977  IFS=$as_save_IFS
1978  test -z "$as_dir" && as_dir=.
1979  for ac_exec_ext in '' $ac_executable_extensions; do
1980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982       ac_prog_rejected=yes
1983       continue
1984     fi
1985    ac_cv_prog_sol_cc_compiler="cc"
1986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987    break 2
1988  fi
1989done
1990done
1991
1992if test $ac_prog_rejected = yes; then
1993  # We found a bogon in the path, so make sure we never use it.
1994  set dummy $ac_cv_prog_sol_cc_compiler
1995  shift
1996  if test $# != 0; then
1997    # We chose a different compiler from the bogus one.
1998    # However, it has the same basename, so the bogon will be chosen
1999    # first if we set sol_cc_compiler to just the basename; use the full file name.
2000    shift
2001    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2002  fi
2003fi
2004fi
2005fi
2006sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2007if test -n "$sol_cc_compiler"; then
2008  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2009echo "${ECHO_T}$sol_cc_compiler" >&6
2010else
2011  echo "$as_me:$LINENO: result: no" >&5
2012echo "${ECHO_T}no" >&6
2013fi
2014
2015             if test "$sol_cc_compiler" = "cc" ; then
2016               comps="cc xlc gcc pgcc icc"
2017             else
2018               comps="xlc gcc pgcc icc cc"
2019             fi
2020             ;;
2021  *-*-darwin*) comps="clang gcc cc" ;;
2022  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2023  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2024  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2025esac
2026
2027# We delete the cached value, since the test might not have been
2028# performed with our choice of compilers earlier
2029$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2030# AC_MSG_NOTICE([C compiler candidates: $comps])
2031ac_ext=c
2032ac_cpp='$CPP $CPPFLAGS'
2033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036if test -n "$ac_tool_prefix"; then
2037  for ac_prog in $comps
2038  do
2039    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043if test "${ac_cv_prog_CC+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test -n "$CC"; then
2047  ac_cv_prog_CC="$CC" # Let the user override the test.
2048else
2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052  IFS=$as_save_IFS
2053  test -z "$as_dir" && as_dir=.
2054  for ac_exec_ext in '' $ac_executable_extensions; do
2055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058    break 2
2059  fi
2060done
2061done
2062
2063fi
2064fi
2065CC=$ac_cv_prog_CC
2066if test -n "$CC"; then
2067  echo "$as_me:$LINENO: result: $CC" >&5
2068echo "${ECHO_T}$CC" >&6
2069else
2070  echo "$as_me:$LINENO: result: no" >&5
2071echo "${ECHO_T}no" >&6
2072fi
2073
2074    test -n "$CC" && break
2075  done
2076fi
2077if test -z "$CC"; then
2078  ac_ct_CC=$CC
2079  for ac_prog in $comps
2080do
2081  # Extract the first word of "$ac_prog", so it can be a program name with args.
2082set dummy $ac_prog; ac_word=$2
2083echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086  echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088  if test -n "$ac_ct_CC"; then
2089  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096  for ac_exec_ext in '' $ac_executable_extensions; do
2097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098    ac_cv_prog_ac_ct_CC="$ac_prog"
2099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100    break 2
2101  fi
2102done
2103done
2104
2105fi
2106fi
2107ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108if test -n "$ac_ct_CC"; then
2109  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110echo "${ECHO_T}$ac_ct_CC" >&6
2111else
2112  echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6
2114fi
2115
2116  test -n "$ac_ct_CC" && break
2117done
2118
2119  CC=$ac_ct_CC
2120fi
2121
2122
2123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&2;}
2127   { (exit 1); exit 1; }; }
2128
2129# Provide some information about the compiler.
2130echo "$as_me:$LINENO:" \
2131     "checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134  (eval $ac_compiler --version </dev/null >&5) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139  (eval $ac_compiler -v </dev/null >&5) 2>&5
2140  ac_status=$?
2141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142  (exit $ac_status); }
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144  (eval $ac_compiler -V </dev/null >&5) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }
2148
2149cat >conftest.$ac_ext <<_ACEOF
2150/* confdefs.h.  */
2151_ACEOF
2152cat confdefs.h >>conftest.$ac_ext
2153cat >>conftest.$ac_ext <<_ACEOF
2154/* end confdefs.h.  */
2155
2156int
2157main ()
2158{
2159
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164ac_clean_files_save=$ac_clean_files
2165ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166# Try to create an executable without -o first, disregard a.out.
2167# It will help us diagnose broken compilers, and finding out an intuition
2168# of exeext.
2169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173  (eval $ac_link_default) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; then
2177  # Find the output, starting from the most likely.  This scheme is
2178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179# resort.
2180
2181# Be careful to initialize this variable, since it used to be cached.
2182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183ac_cv_exeext=
2184# b.out is created by i960 compilers.
2185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186do
2187  test -f "$ac_file" || continue
2188  case $ac_file in
2189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190        ;;
2191    conftest.$ac_ext )
2192        # This is the source file.
2193        ;;
2194    [ab].out )
2195        # We found the default executable, but exeext='' is most
2196        # certainly right.
2197        break;;
2198    *.* )
2199        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200        # FIXME: I believe we export ac_cv_exeext for Libtool,
2201        # but it would be cool to find out if it's true.  Does anybody
2202        # maintain Libtool? --akim.
2203        export ac_cv_exeext
2204        break;;
2205    * )
2206        break;;
2207  esac
2208done
2209else
2210  echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214See \`config.log' for more details." >&5
2215echo "$as_me: error: C compiler cannot create executables
2216See \`config.log' for more details." >&2;}
2217   { (exit 77); exit 77; }; }
2218fi
2219
2220ac_exeext=$ac_cv_exeext
2221echo "$as_me:$LINENO: result: $ac_file" >&5
2222echo "${ECHO_T}$ac_file" >&6
2223
2224# Check the compiler produces executables we can run.  If not, either
2225# the compiler is broken, or we cross compile.
2226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229# If not cross compiling, check that we can run a simple program.
2230if test "$cross_compiling" != yes; then
2231  if { ac_try='./$ac_file'
2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; }; then
2237    cross_compiling=no
2238  else
2239    if test "$cross_compiling" = maybe; then
2240        cross_compiling=yes
2241    else
2242        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&2;}
2248   { (exit 1); exit 1; }; }
2249    fi
2250  fi
2251fi
2252echo "$as_me:$LINENO: result: yes" >&5
2253echo "${ECHO_T}yes" >&6
2254
2255rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256ac_clean_files=$ac_clean_files_save
2257# Check the compiler produces executables we can run.  If not, either
2258# the compiler is broken, or we cross compile.
2259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262echo "${ECHO_T}$cross_compiling" >&6
2263
2264echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267  (eval $ac_link) 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; then
2271  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
2275for ac_file in conftest.exe conftest conftest.*; do
2276  test -f "$ac_file" || continue
2277  case $ac_file in
2278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280          export ac_cv_exeext
2281          break;;
2282    * ) break;;
2283  esac
2284done
2285else
2286  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest$ac_cv_exeext
2294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297rm -f conftest.$ac_ext
2298EXEEXT=$ac_cv_exeext
2299ac_exeext=$EXEEXT
2300echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302if test "${ac_cv_objext+set}" = set; then
2303  echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305  cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h.  */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h.  */
2311
2312int
2313main ()
2314{
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320rm -f conftest.o conftest.obj
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322  (eval $ac_compile) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; then
2326  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327  case $ac_file in
2328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330       break;;
2331  esac
2332done
2333else
2334  echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&2;}
2341   { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345fi
2346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347echo "${ECHO_T}$ac_cv_objext" >&6
2348OBJEXT=$ac_cv_objext
2349ac_objext=$OBJEXT
2350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365#ifndef __GNUC__
2366       choke me
2367#endif
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>conftest.er1
2376  ac_status=$?
2377  grep -v '^ *+' conftest.er1 >conftest.err
2378  rm -f conftest.er1
2379  cat conftest.err >&5
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); } &&
2382         { ac_try='test -z "$ac_c_werror_flag"
2383                         || test ! -s conftest.err'
2384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385  (eval $ac_try) 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }; } &&
2389         { ac_try='test -s conftest.$ac_objext'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; }; then
2395  ac_compiler_gnu=yes
2396else
2397  echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400ac_compiler_gnu=no
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405fi
2406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408GCC=`test $ac_compiler_gnu = yes && echo yes`
2409ac_test_CFLAGS=${CFLAGS+set}
2410ac_save_CFLAGS=$CFLAGS
2411CFLAGS="-g"
2412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414if test "${ac_cv_prog_cc_g+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  cat >conftest.$ac_ext <<_ACEOF
2418/* confdefs.h.  */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h.  */
2423
2424int
2425main ()
2426{
2427
2428  ;
2429  return 0;
2430}
2431_ACEOF
2432rm -f conftest.$ac_objext
2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434  (eval $ac_compile) 2>conftest.er1
2435  ac_status=$?
2436  grep -v '^ *+' conftest.er1 >conftest.err
2437  rm -f conftest.er1
2438  cat conftest.err >&5
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); } &&
2441         { ac_try='test -z "$ac_c_werror_flag"
2442                         || test ! -s conftest.err'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; } &&
2448         { ac_try='test -s conftest.$ac_objext'
2449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450  (eval $ac_try) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; }; then
2454  ac_cv_prog_cc_g=yes
2455else
2456  echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459ac_cv_prog_cc_g=no
2460fi
2461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462fi
2463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465if test "$ac_test_CFLAGS" = set; then
2466  CFLAGS=$ac_save_CFLAGS
2467elif test $ac_cv_prog_cc_g = yes; then
2468  if test "$GCC" = yes; then
2469    CFLAGS="-g -O2"
2470  else
2471    CFLAGS="-g"
2472  fi
2473else
2474  if test "$GCC" = yes; then
2475    CFLAGS="-O2"
2476  else
2477    CFLAGS=
2478  fi
2479fi
2480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483  echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485  ac_cv_prog_cc_stdc=no
2486ac_save_CC=$CC
2487cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493#include <stdarg.h>
2494#include <stdio.h>
2495#include <sys/types.h>
2496#include <sys/stat.h>
2497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498struct buf { int x; };
2499FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500static char *e (p, i)
2501     char **p;
2502     int i;
2503{
2504  return p[i];
2505}
2506static char *f (char * (*g) (char **, int), char **p, ...)
2507{
2508  char *s;
2509  va_list v;
2510  va_start (v,p);
2511  s = g (p, va_arg (v,int));
2512  va_end (v);
2513  return s;
2514}
2515
2516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517   function prototypes and stuff, but not '\xHH' hex character constants.
2518   These don't provoke an error unfortunately, instead are silently treated
2519   as 'x'.  The following induces an error, until -std1 is added to get
2520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521   array size at least.  It's necessary to write '\x00'==0 to get something
2522   that's true only with -std1.  */
2523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525int test (int i, double x);
2526struct s1 {int (*f) (int a);};
2527struct s2 {int (*f) (double a);};
2528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529int argc;
2530char **argv;
2531int
2532main ()
2533{
2534return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535  ;
2536  return 0;
2537}
2538_ACEOF
2539# Don't try gcc -ansi; that turns off useful extensions and
2540# breaks some systems' header files.
2541# AIX                   -qlanglvl=ansi
2542# Ultrix and OSF/1      -std1
2543# HP-UX 10.20 and later -Ae
2544# HP-UX older versions  -Aa -D_HPUX_SOURCE
2545# SVR4                  -Xc -D__EXTENSIONS__
2546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547do
2548  CC="$ac_save_CC $ac_arg"
2549  rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551  (eval $ac_compile) 2>conftest.er1
2552  ac_status=$?
2553  grep -v '^ *+' conftest.er1 >conftest.err
2554  rm -f conftest.er1
2555  cat conftest.err >&5
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); } &&
2558         { ac_try='test -z "$ac_c_werror_flag"
2559                         || test ! -s conftest.err'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; } &&
2565         { ac_try='test -s conftest.$ac_objext'
2566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567  (eval $ac_try) 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; }; then
2571  ac_cv_prog_cc_stdc=$ac_arg
2572break
2573else
2574  echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577fi
2578rm -f conftest.err conftest.$ac_objext
2579done
2580rm -f conftest.$ac_ext conftest.$ac_objext
2581CC=$ac_save_CC
2582
2583fi
2584
2585case "x$ac_cv_prog_cc_stdc" in
2586  x|xno)
2587    echo "$as_me:$LINENO: result: none needed" >&5
2588echo "${ECHO_T}none needed" >&6 ;;
2589  *)
2590    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592    CC="$CC $ac_cv_prog_cc_stdc" ;;
2593esac
2594
2595# Some people use a C++ compiler to compile C.  Since we use `exit',
2596# in C++ we need to declare it.  In case someone uses the same compiler
2597# for both compiling C and C++ we need to have the C++ compiler decide
2598# the declaration of exit, since it's the most demanding environment.
2599cat >conftest.$ac_ext <<_ACEOF
2600#ifndef __cplusplus
2601  choke me
2602#endif
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606  (eval $ac_compile) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613         { ac_try='test -z "$ac_c_werror_flag"
2614                         || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620         { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  for ac_declaration in \
2627   '' \
2628   'extern "C" void std::exit (int) throw (); using std::exit;' \
2629   'extern "C" void std::exit (int); using std::exit;' \
2630   'extern "C" void exit (int) throw ();' \
2631   'extern "C" void exit (int);' \
2632   'void exit (int);'
2633do
2634  cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h.  */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h.  */
2640$ac_declaration
2641#include <stdlib.h>
2642int
2643main ()
2644{
2645exit (42);
2646  ;
2647  return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
2651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652  (eval $ac_compile) 2>conftest.er1
2653  ac_status=$?
2654  grep -v '^ *+' conftest.er1 >conftest.err
2655  rm -f conftest.er1
2656  cat conftest.err >&5
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); } &&
2659         { ac_try='test -z "$ac_c_werror_flag"
2660                         || test ! -s conftest.err'
2661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662  (eval $ac_try) 2>&5
2663  ac_status=$?
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); }; } &&
2666         { ac_try='test -s conftest.$ac_objext'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; }; then
2672  :
2673else
2674  echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677continue
2678fi
2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680  cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h.  */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h.  */
2686$ac_declaration
2687int
2688main ()
2689{
2690exit (42);
2691  ;
2692  return 0;
2693}
2694_ACEOF
2695rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697  (eval $ac_compile) 2>conftest.er1
2698  ac_status=$?
2699  grep -v '^ *+' conftest.er1 >conftest.err
2700  rm -f conftest.er1
2701  cat conftest.err >&5
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); } &&
2704         { ac_try='test -z "$ac_c_werror_flag"
2705                         || test ! -s conftest.err'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; } &&
2711         { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  break
2718else
2719  echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724done
2725rm -f conftest*
2726if test -n "$ac_declaration"; then
2727  echo '#ifdef __cplusplus' >>confdefs.h
2728  echo $ac_declaration      >>confdefs.h
2729  echo '#endif'             >>confdefs.h
2730fi
2731
2732else
2733  echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736fi
2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744if test -z "$CC" ; then
2745  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2746echo "$as_me: error: Failed to find a C compiler!" >&2;}
2747   { (exit 1); exit 1; }; }
2748fi
2749# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2750case "$CC" in
2751  clang* ) ;;
2752  cl* | */cl* | CL* | */CL* )
2753    if test "$ac_cv_prog_cc_g" = yes ; then
2754      ac_cv_prog_cc_g=no
2755      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2756echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2757    fi ;;
2758  * )
2759    if test x"$CYGPATH_W" = x ; then
2760      CYGPATH_W=echo
2761    fi
2762    ;;
2763esac
2764CFLAGS="$save_cflags"
2765
2766# add automake conditional so we can recognize cl compiler in makefile
2767coin_cc_is_cl=false
2768case "$CC" in
2769  clang* ) ;;
2770  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2771    coin_cc_is_cl=true
2772    ;;
2773esac
2774
2775
2776if test $coin_cc_is_cl = true; then
2777  COIN_CC_IS_CL_TRUE=
2778  COIN_CC_IS_CL_FALSE='#'
2779else
2780  COIN_CC_IS_CL_TRUE='#'
2781  COIN_CC_IS_CL_FALSE=
2782fi
2783
2784
2785# Check if a project specific CFLAGS variable has been set
2786if test x$COIN_PRJCT != x; then
2787  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2788  if test x$coin_tmp = xset; then
2789    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2790  fi
2791fi
2792
2793if test x"$CFLAGS" = x; then
2794
2795  coin_add_cflags=
2796  coin_opt_cflags=
2797  coin_dbg_cflags=
2798  coin_warn_cflags=
2799
2800  if test "$GCC" = "yes"; then
2801    case "$CC" in
2802      icc* | */icc*)
2803        ;;
2804      *)
2805        coin_opt_cflags="-O3"
2806        coin_add_cflags="-pipe"
2807        coin_dbg_cflags="-g -O0"
2808        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2809    esac
2810  fi
2811  if test -z "$coin_opt_cflags"; then
2812    case $build in
2813      *-cygwin* | *-mingw*)
2814        case "$CC" in
2815          clang* ) ;;
2816          cl* | */cl* | CL* | */CL*)
2817            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2818              coin_opt_cflags='-MD -O2'
2819              coin_dbg_cflags='-MDd'
2820            else
2821              coin_opt_cflags='-MT -O2'
2822              coin_dbg_cflags='-MTd'
2823            fi
2824            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2825            ;;
2826          icl* | */icl* | ICL* | */ICL*)
2827            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2828              coin_opt_cflags='-MD -Ox'
2829              coin_dbg_cflags='-MDd -debug'
2830            else
2831              coin_opt_cflags='-MT -Ox'
2832              coin_dbg_cflags='-MTd -debug'
2833            fi
2834            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2835            ;;
2836        esac
2837        ;;
2838      *-linux-*)
2839        case "$CC" in
2840          icc* | */icc*)
2841            coin_opt_cflags="-O3 -ip -mp1"
2842            coin_add_cflags=""
2843            coin_dbg_cflags="-g"
2844            # Check if -i_dynamic is necessary (for new glibc library)
2845            CFLAGS=
2846            cat >conftest.$ac_ext <<_ACEOF
2847/* confdefs.h.  */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h.  */
2852
2853int
2854main ()
2855{
2856int i=0; i++;
2857  ;
2858  return 0;
2859}
2860_ACEOF
2861rm -f conftest.$ac_objext conftest$ac_exeext
2862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2863  (eval $ac_link) 2>conftest.er1
2864  ac_status=$?
2865  grep -v '^ *+' conftest.er1 >conftest.err
2866  rm -f conftest.er1
2867  cat conftest.err >&5
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); } &&
2870         { ac_try='test -z "$ac_c_werror_flag"
2871                         || test ! -s conftest.err'
2872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873  (eval $ac_try) 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }; } &&
2877         { ac_try='test -s conftest$ac_exeext'
2878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879  (eval $ac_try) 2>&5
2880  ac_status=$?
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); }; }; then
2883  :
2884else
2885  echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888coin_add_cflags="-i_dynamic $coin_add_cflags"
2889fi
2890rm -f conftest.err conftest.$ac_objext \
2891      conftest$ac_exeext conftest.$ac_ext
2892            ;;
2893          pgcc* | */pgcc*)
2894            coin_opt_cflags="-fast"
2895            coin_add_cflags="-Kieee -pc 64"
2896            coin_dbg_cflags="-g"
2897            ;;
2898        esac
2899        ;;
2900      *-ibm-*)
2901        case "$CC" in
2902          xlc* | */xlc* | mpxlc* | */mpxlc*)
2903            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2904            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2905            coin_dbg_cflags="-g"
2906          ;;
2907        esac
2908        ;;
2909      *-hp-*)
2910        coin_opt_cflags="-O"
2911        coin_add_cflags="-Ae"
2912        coin_dbg_cflags="-g"
2913        ;;
2914      *-*-solaris*)
2915        coin_opt_cflags="-xO4"
2916        coin_dbg_cflags="-g"
2917        ;;
2918      *-sgi-*)
2919        coin_opt_cflags="-O -OPT:Olimit=0"
2920        coin_dbg_cflags="-g"
2921        ;;
2922    esac
2923  fi
2924
2925  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2926    coin_dbg_cflags="-g"
2927  fi
2928
2929  if test -z "$coin_opt_cflags"; then
2930    # Try if -O option works if nothing else is set
2931    CFLAGS="-O"
2932    cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h.  */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h.  */
2938
2939int
2940main ()
2941{
2942int i=0; i++;
2943  ;
2944  return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext conftest$ac_exeext
2948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949  (eval $ac_link) 2>conftest.er1
2950  ac_status=$?
2951  grep -v '^ *+' conftest.er1 >conftest.err
2952  rm -f conftest.er1
2953  cat conftest.err >&5
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); } &&
2956         { ac_try='test -z "$ac_c_werror_flag"
2957                         || test ! -s conftest.err'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; } &&
2963         { ac_try='test -s conftest$ac_exeext'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; }; then
2969  coin_opt_cflags="-O"
2970else
2971  echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974fi
2975rm -f conftest.err conftest.$ac_objext \
2976      conftest$ac_exeext conftest.$ac_ext
2977  fi
2978
2979  # if PM doesn't want the warning messages, take them out
2980  if test x"$coin_skip_warn_cflags" = xyes; then
2981    coin_warn_cflags=
2982  fi
2983
2984  if test x${DBG_CFLAGS+set} != xset; then
2985    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2986  fi
2987  if test x${OPT_CFLAGS+set} != xset; then
2988    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2989  fi
2990
2991  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2992  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2993
2994  if test "$coin_debug_compile" = "true"; then
2995    CFLAGS="$DBG_CFLAGS"
2996  else
2997    CFLAGS="$OPT_CFLAGS"
2998  fi
2999else
3000  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3001  if test x${DBG_CFLAGS+set} != xset; then
3002    DBG_CFLAGS="$CFLAGS"
3003  fi
3004  if test x${OPT_CFLAGS+set} != xset; then
3005    OPT_CFLAGS="$CFLAGS"
3006  fi
3007fi
3008
3009# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3010if test x$COIN_PRJCT != x; then
3011  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3012fi
3013
3014# Try if CFLAGS works
3015save_CFLAGS="$CFLAGS"
3016cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h.  */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h.  */
3022
3023int
3024main ()
3025{
3026int i=0; i++;
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext conftest$ac_exeext
3032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033  (eval $ac_link) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest$ac_exeext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  :
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058CFLAGS=
3059fi
3060rm -f conftest.err conftest.$ac_objext \
3061      conftest$ac_exeext conftest.$ac_ext
3062if test -z "$CFLAGS"; then
3063  { 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
3064echo "$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;}
3065  CFLAGS='-O'
3066  cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h.  */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076int i=0; i++;
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext conftest$ac_exeext
3082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3083  (eval $ac_link) 2>conftest.er1
3084  ac_status=$?
3085  grep -v '^ *+' conftest.er1 >conftest.err
3086  rm -f conftest.er1
3087  cat conftest.err >&5
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); } &&
3090         { ac_try='test -z "$ac_c_werror_flag"
3091                         || test ! -s conftest.err'
3092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093  (eval $ac_try) 2>&5
3094  ac_status=$?
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; } &&
3097         { ac_try='test -s conftest$ac_exeext'
3098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099  (eval $ac_try) 2>&5
3100  ac_status=$?
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); }; }; then
3103  :
3104else
3105  echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108CFLAGS=
3109fi
3110rm -f conftest.err conftest.$ac_objext \
3111      conftest$ac_exeext conftest.$ac_ext
3112  if test -z "$CFLAGS"; then
3113    { 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
3114echo "$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;}
3115  fi
3116fi
3117
3118{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3119echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3120
3121
3122if test x"$MPICC" = x; then :; else
3123  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3124echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3125  CC="$MPICC"
3126fi
3127
3128# Correct the LD variable if we are using the MS or Intel-windows compiler
3129case "$CC" in
3130  clang* ) ;;
3131  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3132    LD=link
3133    ;;
3134esac
3135
3136ac_ext=c
3137ac_cpp='$CPP $CPPFLAGS'
3138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141
3142
3143case $build in
3144  *-cygwin* | *-mingw*)
3145     if test "$enable_msvc" = yes ; then
3146       coin_f77_comps="ifort fl32 compile_f2c"
3147     else
3148       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3149     fi ;;
3150  *-*-solaris*)
3151     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3152  *-linux-gnu*)
3153     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3154  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3155 esac
3156
3157
3158
3159
3160
3161ac_ext=f
3162ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3163ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3165
3166
3167
3168
3169
3170
3171coin_has_f77=yes
3172
3173save_fflags="$FFLAGS"
3174
3175# We delete the cached value, since the test might not have been
3176# performed with our choice of compilers earlier
3177$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3178
3179# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3180# coin_f77_comps to see if there's a program that matches one of the names.
3181# If there's no such program, F77 = unavailable. If we match the name,
3182# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3183# compiler.
3184# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3185
3186
3187{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3188echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3189if test -n "$ac_tool_prefix"; then
3190  for ac_prog in $coin_f77_comps
3191  do
3192    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194echo "$as_me:$LINENO: checking for $ac_word" >&5
3195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196if test "${ac_cv_prog_F77+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  if test -n "$F77"; then
3200  ac_cv_prog_F77="$F77" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207  for ac_exec_ext in '' $ac_executable_extensions; do
3208  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214done
3215
3216fi
3217fi
3218F77=$ac_cv_prog_F77
3219if test -n "$F77"; then
3220  echo "$as_me:$LINENO: result: $F77" >&5
3221echo "${ECHO_T}$F77" >&6
3222else
3223  echo "$as_me:$LINENO: result: no" >&5
3224echo "${ECHO_T}no" >&6
3225fi
3226
3227    test -n "$F77" && break
3228  done
3229fi
3230if test -z "$F77"; then
3231  ac_ct_F77=$F77
3232  for ac_prog in $coin_f77_comps
3233do
3234  # Extract the first word of "$ac_prog", so it can be a program name with args.
3235set dummy $ac_prog; ac_word=$2
3236echo "$as_me:$LINENO: checking for $ac_word" >&5
3237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  if test -n "$ac_ct_F77"; then
3242  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3243else
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249  for ac_exec_ext in '' $ac_executable_extensions; do
3250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251    ac_cv_prog_ac_ct_F77="$ac_prog"
3252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256done
3257
3258fi
3259fi
3260ac_ct_F77=$ac_cv_prog_ac_ct_F77
3261if test -n "$ac_ct_F77"; then
3262  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3263echo "${ECHO_T}$ac_ct_F77" >&6
3264else
3265  echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267fi
3268
3269  test -n "$ac_ct_F77" && break
3270done
3271test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3272
3273  F77=$ac_ct_F77
3274fi
3275
3276
3277if test "$F77" != "unavailable" ; then
3278  ac_ext=f
3279ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3280ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3282if test -n "$ac_tool_prefix"; then
3283  for ac_prog in $coin_f77_comps
3284  do
3285    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287echo "$as_me:$LINENO: checking for $ac_word" >&5
3288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289if test "${ac_cv_prog_F77+set}" = set; then
3290  echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292  if test -n "$F77"; then
3293  ac_cv_prog_F77="$F77" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298  IFS=$as_save_IFS
3299  test -z "$as_dir" && as_dir=.
3300  for ac_exec_ext in '' $ac_executable_extensions; do
3301  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304    break 2
3305  fi
3306done
3307done
3308
3309fi
3310fi
3311F77=$ac_cv_prog_F77
3312if test -n "$F77"; then
3313  echo "$as_me:$LINENO: result: $F77" >&5
3314echo "${ECHO_T}$F77" >&6
3315else
3316  echo "$as_me:$LINENO: result: no" >&5
3317echo "${ECHO_T}no" >&6
3318fi
3319
3320    test -n "$F77" && break
3321  done
3322fi
3323if test -z "$F77"; then
3324  ac_ct_F77=$F77
3325  for ac_prog in $coin_f77_comps
3326do
3327  # Extract the first word of "$ac_prog", so it can be a program name with args.
3328set dummy $ac_prog; ac_word=$2
3329echo "$as_me:$LINENO: checking for $ac_word" >&5
3330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3331if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3332  echo $ECHO_N "(cached) $ECHO_C" >&6
3333else
3334  if test -n "$ac_ct_F77"; then
3335  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340  IFS=$as_save_IFS
3341  test -z "$as_dir" && as_dir=.
3342  for ac_exec_ext in '' $ac_executable_extensions; do
3343  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344    ac_cv_prog_ac_ct_F77="$ac_prog"
3345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349done
3350
3351fi
3352fi
3353ac_ct_F77=$ac_cv_prog_ac_ct_F77
3354if test -n "$ac_ct_F77"; then
3355  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3356echo "${ECHO_T}$ac_ct_F77" >&6
3357else
3358  echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6
3360fi
3361
3362  test -n "$ac_ct_F77" && break
3363done
3364
3365  F77=$ac_ct_F77
3366fi
3367
3368
3369# Provide some information about the compiler.
3370echo "$as_me:3370:" \
3371     "checking for Fortran 77 compiler version" >&5
3372ac_compiler=`set X $ac_compile; echo $2`
3373{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3374  (eval $ac_compiler --version </dev/null >&5) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3379  (eval $ac_compiler -v </dev/null >&5) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3384  (eval $ac_compiler -V </dev/null >&5) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }
3388rm -f a.out
3389
3390# If we don't use `.F' as extension, the preprocessor is not run on the
3391# input file.  (Note that this only needs to work for GNU compilers.)
3392ac_save_ext=$ac_ext
3393ac_ext=F
3394echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3395echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3396if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3397  echo $ECHO_N "(cached) $ECHO_C" >&6
3398else
3399  cat >conftest.$ac_ext <<_ACEOF
3400      program main
3401#ifndef __GNUC__
3402       choke me
3403#endif
3404
3405      end
3406_ACEOF
3407rm -f conftest.$ac_objext
3408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3409  (eval $ac_compile) 2>conftest.er1
3410  ac_status=$?
3411  grep -v '^ *+' conftest.er1 >conftest.err
3412  rm -f conftest.er1
3413  cat conftest.err >&5
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); } &&
3416         { ac_try='test -z "$ac_f77_werror_flag"
3417                         || test ! -s conftest.err'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; } &&
3423         { ac_try='test -s conftest.$ac_objext'
3424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425  (eval $ac_try) 2>&5
3426  ac_status=$?
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); }; }; then
3429  ac_compiler_gnu=yes
3430else
3431  echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434ac_compiler_gnu=no
3435fi
3436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3437ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3438
3439fi
3440echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3441echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3442ac_ext=$ac_save_ext
3443ac_test_FFLAGS=${FFLAGS+set}
3444ac_save_FFLAGS=$FFLAGS
3445FFLAGS=
3446echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3447echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3448if test "${ac_cv_prog_f77_g+set}" = set; then
3449  echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451  FFLAGS=-g
3452cat >conftest.$ac_ext <<_ACEOF
3453      program main
3454
3455      end
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459  (eval $ac_compile) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } &&
3466         { ac_try='test -z "$ac_f77_werror_flag"
3467                         || test ! -s conftest.err'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; } &&
3473         { ac_try='test -s conftest.$ac_objext'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  ac_cv_prog_f77_g=yes
3480else
3481  echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484ac_cv_prog_f77_g=no
3485fi
3486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487
3488fi
3489echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3490echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3491if test "$ac_test_FFLAGS" = set; then
3492  FFLAGS=$ac_save_FFLAGS
3493elif test $ac_cv_prog_f77_g = yes; then
3494  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3495    FFLAGS="-g -O2"
3496  else
3497    FFLAGS="-g"
3498  fi
3499else
3500  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3501    FFLAGS="-O2"
3502  else
3503    FFLAGS=
3504  fi
3505fi
3506
3507G77=`test $ac_compiler_gnu = yes && echo yes`
3508ac_ext=f
3509ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3510ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3512
3513else
3514  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3515echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3516fi
3517
3518FFLAGS="$save_fflags"
3519
3520# Check if a project specific FFLAGS variable has been set
3521if test x$COIN_PRJCT != x; then
3522  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3523  if test x$coin_tmp = xset; then
3524    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3525  fi
3526fi
3527
3528if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3529
3530  coin_add_fflags=
3531  coin_opt_fflags=
3532  coin_dbg_fflags=
3533  coin_warn_fflags=
3534
3535  if test "$G77" = "yes"; then
3536    coin_opt_fflags="-O3"
3537    coin_add_fflags="-pipe"
3538    coin_dbg_fflags="-g -O0"
3539  else
3540    case $build in
3541      *-cygwin* | *-mingw*)
3542        case $F77 in
3543          ifort* | */ifort* | IFORT* | */IFORT* )
3544            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3545              coin_opt_fflags='-MD -O3'
3546              coin_dbg_fflags='-MDd -debug'
3547            else
3548              coin_opt_fflags='-MT -O3'
3549              coin_dbg_fflags='-MTd -debug'
3550            fi
3551            coin_add_fflags='-fpp -nologo'
3552          ;;
3553          compile_f2c*)
3554            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3555              coin_opt_fflags='-MD -O2'
3556              coin_dbg_fflags='-MDd'
3557            else
3558              coin_opt_fflags='-MT -O2'
3559              coin_dbg_fflags='-MTd'
3560            fi
3561            coin_add_fflags='-nologo -wd4996'
3562          ;;
3563        esac
3564        ;;
3565      *-linux-*)
3566        case $F77 in
3567          ifc* | */ifc* | ifort* | */ifort*)
3568            coin_opt_fflags="-O3 -ip"
3569            coin_add_fflags="-cm -w90 -w95"
3570            coin_dbg_fflags="-g -CA -CB -CS"
3571            # Check if -i_dynamic is necessary (for new glibc library)
3572            FFLAGS=
3573            cat >conftest.$ac_ext <<_ACEOF
3574      program main
3575      write(*,*) 'Hello world'
3576      end
3577_ACEOF
3578rm -f conftest.$ac_objext conftest$ac_exeext
3579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3580  (eval $ac_link) 2>conftest.er1
3581  ac_status=$?
3582  grep -v '^ *+' conftest.er1 >conftest.err
3583  rm -f conftest.er1
3584  cat conftest.err >&5
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); } &&
3587         { ac_try='test -z "$ac_f77_werror_flag"
3588                         || test ! -s conftest.err'
3589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590  (eval $ac_try) 2>&5
3591  ac_status=$?
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); }; } &&
3594         { ac_try='test -s conftest$ac_exeext'
3595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596  (eval $ac_try) 2>&5
3597  ac_status=$?
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); }; }; then
3600  :
3601else
3602  echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605coin_add_fflags="-i_dynamic $coin_add_fflags"
3606fi
3607rm -f conftest.err conftest.$ac_objext \
3608      conftest$ac_exeext conftest.$ac_ext
3609            ;;
3610          pgf77* | */pgf77* | pgf90* | */pgf90*)
3611            coin_opt_fflags="-fast"
3612            coin_add_fflags="-Kieee -pc 64"
3613            coin_dbg_fflags="-g"
3614          ;;
3615        esac
3616        ;;
3617      *-ibm-*)
3618        case "$F77" in
3619          xlf* | */xlf* | mpxlf* | */mpxlf* )
3620            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3621            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3622            coin_dbg_fflags="-g -C"
3623            ;;
3624        esac
3625        ;;
3626      *-hp-*)
3627        coin_opt_fflags="+O3"
3628        coin_add_fflags="+U77"
3629        coin_dbg_fflags="-C -g"
3630        ;;
3631      *-*-solaris*)
3632        coin_opt_fflags="-O4"
3633        coin_dbg_fflags="-g"
3634        ;;
3635      *-sgi-*)
3636        coin_opt_fflags="-O5 -OPT:Olimit=0"
3637        coin_dbg_fflags="-g"
3638        ;;
3639    esac
3640  fi
3641
3642  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3643    coin_dbg_fflags="-g"
3644  fi
3645
3646  if test -z "$coin_opt_fflags"; then
3647    # Try if -O option works if nothing else is set
3648    FFLAGS=-O
3649    cat >conftest.$ac_ext <<_ACEOF
3650      program main
3651      integer i
3652      end
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
3655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656  (eval $ac_link) 2>conftest.er1
3657  ac_status=$?
3658  grep -v '^ *+' conftest.er1 >conftest.err
3659  rm -f conftest.er1
3660  cat conftest.err >&5
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); } &&
3663         { ac_try='test -z "$ac_f77_werror_flag"
3664                         || test ! -s conftest.err'
3665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666  (eval $ac_try) 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); }; } &&
3670         { ac_try='test -s conftest$ac_exeext'
3671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672  (eval $ac_try) 2>&5
3673  ac_status=$?
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); }; }; then
3676  coin_opt_fflags="-O"
3677else
3678  echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681fi
3682rm -f conftest.err conftest.$ac_objext \
3683      conftest$ac_exeext conftest.$ac_ext
3684  fi
3685
3686  # if PM doesn't want the warning messages, take them out
3687  if test x"$coin_skip_warn_fflags" = xyes; then
3688    coin_warn_fflags=
3689  fi
3690
3691  if test x${DBG_FFLAGS+set} != xset; then
3692    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3693  fi
3694  if test x${OPT_FFLAGS+set} != xset; then
3695    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3696  fi
3697
3698  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3699  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3700
3701  if test "$coin_debug_compile" = "true"; then
3702    FFLAGS="$DBG_FFLAGS"
3703  else
3704    FFLAGS="$OPT_FFLAGS"
3705  fi
3706else
3707  FFLAGS="$FFLAGS $ADD_FFLAGS"
3708  if test x${DBG_FFLAGS+set} != xset; then
3709    DBG_FFLAGS="$FFLAGS"
3710  fi
3711  if test x${OPT_FFLAGS+set} != xset; then
3712    OPT_FFLAGS="$FFLAGS"
3713  fi
3714fi
3715
3716# Try if FFLAGS works
3717if test "$F77" != "unavailable" ; then
3718  cat >conftest.$ac_ext <<_ACEOF
3719      program main
3720      integer i
3721      end
3722_ACEOF
3723rm -f conftest.$ac_objext conftest$ac_exeext
3724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725  (eval $ac_link) 2>conftest.er1
3726  ac_status=$?
3727  grep -v '^ *+' conftest.er1 >conftest.err
3728  rm -f conftest.er1
3729  cat conftest.err >&5
3730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); } &&
3732         { ac_try='test -z "$ac_f77_werror_flag"
3733                         || test ! -s conftest.err'
3734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735  (eval $ac_try) 2>&5
3736  ac_status=$?
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); }; } &&
3739         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3745  :
3746else
3747  echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750FFLAGS=
3751fi
3752rm -f conftest.err conftest.$ac_objext \
3753      conftest$ac_exeext conftest.$ac_ext
3754  if test -z "$FFLAGS"; then
3755    { 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
3756echo "$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;}
3757    FFLAGS='-O'
3758    cat >conftest.$ac_ext <<_ACEOF
3759      program main
3760      integer i
3761      end
3762_ACEOF
3763rm -f conftest.$ac_objext conftest$ac_exeext
3764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765  (eval $ac_link) 2>conftest.er1
3766  ac_status=$?
3767  grep -v '^ *+' conftest.er1 >conftest.err
3768  rm -f conftest.er1
3769  cat conftest.err >&5
3770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771  (exit $ac_status); } &&
3772         { ac_try='test -z "$ac_f77_werror_flag"
3773                         || test ! -s conftest.err'
3774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775  (eval $ac_try) 2>&5
3776  ac_status=$?
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); }; } &&
3779         { ac_try='test -s conftest$ac_exeext'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; }; then
3785  :
3786else
3787  echo "$as_me: failed program was:" >&5
3788sed 's/^/| /' conftest.$ac_ext >&5
3789
3790FFLAGS=
3791fi
3792rm -f conftest.err conftest.$ac_objext \
3793      conftest$ac_exeext conftest.$ac_ext
3794    if test -z "$FFLAGS"; then
3795      { 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
3796echo "$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;}
3797    fi
3798  fi
3799fi
3800
3801{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3802echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3803
3804
3805if test x"$MPIF77" = x; then :; else
3806  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3807echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3808  F77="$MPIF77"
3809fi
3810
3811# correct the LD variable if we use the intel fortran compiler in windows
3812case $build in
3813  *-cygwin* | *-mingw*)
3814    case "$F77" in
3815      ifort* | */ifort* | IFORT* | */IFORT*)
3816        LD=link
3817      ;;
3818    esac
3819  ;;
3820esac
3821
3822ac_ext=c
3823ac_cpp='$CPP $CPPFLAGS'
3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827
3828
3829
3830# Get the linker flags (FLIBS) that are required for linking against this blas library
3831
3832# get FLIBS
3833ac_ext=f
3834ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3835ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3837echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3838echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3839if test "${ac_cv_prog_f77_v+set}" = set; then
3840  echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842  cat >conftest.$ac_ext <<_ACEOF
3843      program main
3844
3845      end
3846_ACEOF
3847rm -f conftest.$ac_objext
3848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849  (eval $ac_compile) 2>conftest.er1
3850  ac_status=$?
3851  grep -v '^ *+' conftest.er1 >conftest.err
3852  rm -f conftest.er1
3853  cat conftest.err >&5
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); } &&
3856         { ac_try='test -z "$ac_f77_werror_flag"
3857                         || test ! -s conftest.err'
3858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859  (eval $ac_try) 2>&5
3860  ac_status=$?
3861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); }; } &&
3863         { ac_try='test -s conftest.$ac_objext'
3864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865  (eval $ac_try) 2>&5
3866  ac_status=$?
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); }; }; then
3869  ac_cv_prog_f77_v=
3870# Try some options frequently used verbose output
3871for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3872  cat >conftest.$ac_ext <<_ACEOF
3873      program main
3874
3875      end
3876_ACEOF
3877
3878# Compile and link our simple test program by passing a flag (argument
3879# 1 to this macro) to the Fortran compiler in order to get
3880# "verbose" output that we can then parse for the Fortran linker
3881# flags.
3882ac_save_FFLAGS=$FFLAGS
3883FFLAGS="$FFLAGS $ac_verb"
3884(eval echo $as_me:3884: \"$ac_link\") >&5
3885ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3886echo "$ac_f77_v_output" >&5
3887FFLAGS=$ac_save_FFLAGS
3888
3889rm -f conftest*
3890
3891# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3892# /foo, /bar, and /baz are search directories for the Fortran linker.
3893# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3894ac_f77_v_output="`echo $ac_f77_v_output |
3895        grep 'LPATH is:' |
3896        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3897
3898case $ac_f77_v_output in
3899  # If we are using xlf then replace all the commas with spaces.
3900  *xlfentry*)
3901    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3902
3903  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3904  # $LIBS confuse us, and the libraries appear later in the output anyway).
3905  *mGLOB_options_string*)
3906    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3907
3908  # If we are using Cray Fortran then delete quotes.
3909  # Use "\"" instead of '"' for font-lock-mode.
3910  # FIXME: a more general fix for quoted arguments with spaces?
3911  *cft90*)
3912    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3913esac
3914
3915
3916  # look for -l* and *.a constructs in the output
3917  for ac_arg in $ac_f77_v_output; do
3918     case $ac_arg in
3919        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3920          ac_cv_prog_f77_v=$ac_verb
3921          break 2 ;;
3922     esac
3923  done
3924done
3925if test -z "$ac_cv_prog_f77_v"; then
3926   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3927echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3928fi
3929else
3930  echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3934echo "$as_me: WARNING: compilation failed" >&2;}
3935fi
3936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937
3938fi
3939echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3940echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3941echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3942echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3943if test "${ac_cv_f77_libs+set}" = set; then
3944  echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946  if test "x$FLIBS" != "x"; then
3947  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3948else
3949
3950cat >conftest.$ac_ext <<_ACEOF
3951      program main
3952
3953      end
3954_ACEOF
3955
3956# Compile and link our simple test program by passing a flag (argument
3957# 1 to this macro) to the Fortran compiler in order to get
3958# "verbose" output that we can then parse for the Fortran linker
3959# flags.
3960ac_save_FFLAGS=$FFLAGS
3961FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3962(eval echo $as_me:3962: \"$ac_link\") >&5
3963ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3964echo "$ac_f77_v_output" >&5
3965FFLAGS=$ac_save_FFLAGS
3966
3967rm -f conftest*
3968
3969# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3970# /foo, /bar, and /baz are search directories for the Fortran linker.
3971# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3972ac_f77_v_output="`echo $ac_f77_v_output |
3973        grep 'LPATH is:' |
3974        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3975
3976case $ac_f77_v_output in
3977  # If we are using xlf then replace all the commas with spaces.
3978  *xlfentry*)
3979    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3980
3981  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3982  # $LIBS confuse us, and the libraries appear later in the output anyway).
3983  *mGLOB_options_string*)
3984    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3985
3986  # If we are using Cray Fortran then delete quotes.
3987  # Use "\"" instead of '"' for font-lock-mode.
3988  # FIXME: a more general fix for quoted arguments with spaces?
3989  *cft90*)
3990    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3991esac
3992
3993
3994
3995ac_cv_f77_libs=
3996
3997# Save positional arguments (if any)
3998ac_save_positional="$@"
3999
4000set X $ac_f77_v_output
4001while test $# != 1; do
4002  shift
4003  ac_arg=$1
4004  case $ac_arg in
4005        [\\/]*.a | ?:[\\/]*.a)
4006            ac_exists=false
4007  for ac_i in $ac_cv_f77_libs; do
4008    if test x"$ac_arg" = x"$ac_i"; then
4009      ac_exists=true
4010      break
4011    fi
4012  done
4013
4014  if test x"$ac_exists" = xtrue; then
4015  :
4016else
4017  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4018fi
4019
4020          ;;
4021        -bI:*)
4022            ac_exists=false
4023  for ac_i in $ac_cv_f77_libs; do
4024    if test x"$ac_arg" = x"$ac_i"; then
4025      ac_exists=true
4026      break
4027    fi
4028  done
4029
4030  if test x"$ac_exists" = xtrue; then
4031  :
4032else
4033  if test "$ac_compiler_gnu" = yes; then
4034  for ac_link_opt in $ac_arg; do
4035    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4036  done
4037else
4038  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4039fi
4040fi
4041
4042          ;;
4043          # Ignore these flags.
4044        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4045          ;;
4046        -lkernel32)
4047          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4048          ;;
4049        -[LRuY])
4050          # These flags, when seen by themselves, take an argument.
4051          # We remove the space between option and argument and re-iterate
4052          # unless we find an empty arg or a new option (starting with -)
4053          case $2 in
4054             "" | -*);;
4055             *)
4056                ac_arg="$ac_arg$2"
4057                shift; shift
4058                set X $ac_arg "$@"
4059                ;;
4060          esac
4061          ;;
4062        -YP,*)
4063          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4064              ac_exists=false
4065  for ac_i in $ac_cv_f77_libs; do
4066    if test x"$ac_j" = x"$ac_i"; then
4067      ac_exists=true
4068      break
4069    fi
4070  done
4071
4072  if test x"$ac_exists" = xtrue; then
4073  :
4074else
4075  ac_arg="$ac_arg $ac_j"
4076                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4077fi
4078
4079          done
4080          ;;
4081        -[lLR]*)
4082            ac_exists=false
4083  for ac_i in $ac_cv_f77_libs; do
4084    if test x"$ac_arg" = x"$ac_i"; then
4085      ac_exists=true
4086      break
4087    fi
4088  done
4089
4090  if test x"$ac_exists" = xtrue; then
4091  :
4092else
4093  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4094fi
4095
4096          ;;
4097          # Ignore everything else.
4098  esac
4099done
4100# restore positional arguments
4101set X $ac_save_positional; shift
4102
4103# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4104# then we insist that the "run path" must be an absolute path (i.e. it
4105# must begin with a "/").
4106case `(uname -sr) 2>/dev/null` in
4107   "SunOS 5"*)
4108      ac_ld_run_path=`echo $ac_f77_v_output |
4109                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4110      test "x$ac_ld_run_path" != x &&
4111        if test "$ac_compiler_gnu" = yes; then
4112  for ac_link_opt in $ac_ld_run_path; do
4113    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4114  done
4115else
4116  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4117fi
4118      ;;
4119esac
4120fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4121
4122fi
4123echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4124echo "${ECHO_T}$ac_cv_f77_libs" >&6
4125FLIBS="$ac_cv_f77_libs"
4126
4127
4128ac_ext=c
4129ac_cpp='$CPP $CPPFLAGS'
4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134orig_FLIBS="$FLIBS"
4135
4136# If FLIBS has been set by the user, we just restore its value here
4137if test x"$save_FLIBS" != x; then
4138  FLIBS="$save_FLIBS"
4139else
4140  # This is to correct a missing exclusion in autoconf 2.59
4141  if test x"$FLIBS" != x; then
4142    my_flibs=
4143    for flag in $FLIBS; do
4144      case $flag in
4145        -lcrt*.o) ;;
4146        -lcygwin) ;;
4147        -lgcc*)   ;;
4148               *) my_flibs="$my_flibs $flag" ;;
4149      esac
4150    done
4151    FLIBS="$my_flibs"
4152  fi
4153
4154  case $build in
4155  # The following is a fix to define FLIBS for ifort on Windows
4156  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4157  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4158  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4159  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4160  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4161     *-cygwin* | *-mingw*)
4162       case "$F77" in
4163#         ifort* | */ifort* | IFORT* | */IFORT*)
4164#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4165#           if "$coin_debug_compile" = true ; then
4166#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4167#           else
4168#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4169#           fi
4170#           ;;
4171         compile_f2c*)
4172           FLIBS=`$F77 -FLIBS` ;;
4173       esac;;
4174     *-hp-*)
4175         FLIBS="$FLIBS -lm";;
4176     *-ibm-*)
4177         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4178     *-linux-*)
4179       case "$F77" in
4180         pgf77* | */pgf77* | pgf90* | */pgf90*)
4181# ask linker to go through the archives multiple times
4182# (the Fortran compiler seems to do that automatically...)
4183           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4184       esac
4185  esac
4186  ac_cv_f77_libs="$FLIBS"
4187fi
4188
4189if test "x$orig_FLIBS" != "x$FLIBS" ; then
4190  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4191echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4192fi
4193
4194ac_ext=f
4195ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4196ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4198
4199echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4200echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4201if test "${ac_cv_f77_dummy_main+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  ac_f77_dm_save_LIBS=$LIBS
4205 LIBS="$LIBS $FLIBS"
4206 ac_fortran_dm_var=F77_DUMMY_MAIN
4207 ac_ext=c
4208ac_cpp='$CPP $CPPFLAGS'
4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 # First, try linking without a dummy main:
4214 cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h.  */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h.  */
4220
4221#ifdef F77_DUMMY_MAIN
4222
4223#  ifdef __cplusplus
4224     extern "C"
4225#  endif
4226   int F77_DUMMY_MAIN() { return 1; }
4227
4228#endif
4229int
4230main ()
4231{
4232
4233  ;
4234  return 0;
4235}
4236_ACEOF
4237rm -f conftest.$ac_objext conftest$ac_exeext
4238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239  (eval $ac_link) 2>conftest.er1
4240  ac_status=$?
4241  grep -v '^ *+' conftest.er1 >conftest.err
4242  rm -f conftest.er1
4243  cat conftest.err >&5
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); } &&
4246         { ac_try='test -z "$ac_c_werror_flag"
4247                         || test ! -s conftest.err'
4248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249  (eval $ac_try) 2>&5
4250  ac_status=$?
4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); }; } &&
4253         { ac_try='test -s conftest$ac_exeext'
4254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255  (eval $ac_try) 2>&5
4256  ac_status=$?
4257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258  (exit $ac_status); }; }; then
4259  ac_cv_fortran_dummy_main=none
4260else
4261  echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264ac_cv_fortran_dummy_main=unknown
4265fi
4266rm -f conftest.err conftest.$ac_objext \
4267      conftest$ac_exeext conftest.$ac_ext
4268
4269 if test $ac_cv_fortran_dummy_main = unknown; then
4270   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4271     cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h.  */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h.  */
4277#define $ac_fortran_dm_var $ac_func
4278#ifdef F77_DUMMY_MAIN
4279
4280#  ifdef __cplusplus
4281     extern "C"
4282#  endif
4283   int F77_DUMMY_MAIN() { return 1; }
4284
4285#endif
4286int
4287main ()
4288{
4289
4290  ;
4291  return 0;
4292}
4293_ACEOF
4294rm -f conftest.$ac_objext conftest$ac_exeext
4295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296  (eval $ac_link) 2>conftest.er1
4297  ac_status=$?
4298  grep -v '^ *+' conftest.er1 >conftest.err
4299  rm -f conftest.er1
4300  cat conftest.err >&5
4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302  (exit $ac_status); } &&
4303         { ac_try='test -z "$ac_c_werror_flag"
4304                         || test ! -s conftest.err'
4305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306  (eval $ac_try) 2>&5
4307  ac_status=$?
4308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); }; } &&
4310         { ac_try='test -s conftest$ac_exeext'
4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312  (eval $ac_try) 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; }; then
4316  ac_cv_fortran_dummy_main=$ac_func; break
4317else
4318  echo "$as_me: failed program was:" >&5
4319sed 's/^/| /' conftest.$ac_ext >&5
4320
4321fi
4322rm -f conftest.err conftest.$ac_objext \
4323      conftest$ac_exeext conftest.$ac_ext
4324   done
4325 fi
4326 ac_ext=f
4327ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4328ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4330 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4331 rm -f conftest*
4332 LIBS=$ac_f77_dm_save_LIBS
4333
4334fi
4335echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4336echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4337F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4338if test "$F77_DUMMY_MAIN" != unknown; then
4339  if test $F77_DUMMY_MAIN != none; then
4340
4341cat >>confdefs.h <<_ACEOF
4342#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4343_ACEOF
4344
4345  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4346
4347cat >>confdefs.h <<\_ACEOF
4348#define FC_DUMMY_MAIN_EQ_F77 1
4349_ACEOF
4350
4351  fi
4352fi
4353else
4354  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4355See \`config.log' for more details." >&5
4356echo "$as_me: error: linking to Fortran libraries from C fails
4357See \`config.log' for more details." >&2;}
4358   { (exit 1); exit 1; }; }
4359fi
4360
4361
4362ac_ext=f
4363ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4364ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4366
4367ac_ext=f
4368ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4369ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4371echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4372echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4373if test "${ac_cv_f77_mangling+set}" = set; then
4374  echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376  cat >conftest.$ac_ext <<_ACEOF
4377      subroutine foobar()
4378      return
4379      end
4380      subroutine foo_bar()
4381      return
4382      end
4383_ACEOF
4384rm -f conftest.$ac_objext
4385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386  (eval $ac_compile) 2>conftest.er1
4387  ac_status=$?
4388  grep -v '^ *+' conftest.er1 >conftest.err
4389  rm -f conftest.er1
4390  cat conftest.err >&5
4391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392  (exit $ac_status); } &&
4393         { ac_try='test -z "$ac_f77_werror_flag"
4394                         || test ! -s conftest.err'
4395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396  (eval $ac_try) 2>&5
4397  ac_status=$?
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); }; } &&
4400         { ac_try='test -s conftest.$ac_objext'
4401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402  (eval $ac_try) 2>&5
4403  ac_status=$?
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); }; }; then
4406  mv conftest.$ac_objext cfortran_test.$ac_objext
4407
4408  ac_save_LIBS=$LIBS
4409  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
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=no
4417  for ac_foobar in foobar FOOBAR; do
4418    for ac_underscore in "" "_"; do
4419      ac_func="$ac_foobar$ac_underscore"
4420      cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h.  */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h.  */
4426
4427/* Override any gcc2 internal prototype to avoid an error.  */
4428#ifdef __cplusplus
4429extern "C"
4430#endif
4431/* We use char because int might match the return type of a gcc2
4432   builtin and then its argument prototype would still apply.  */
4433char $ac_func ();
4434#ifdef F77_DUMMY_MAIN
4435
4436#  ifdef __cplusplus
4437     extern "C"
4438#  endif
4439   int F77_DUMMY_MAIN() { return 1; }
4440
4441#endif
4442int
4443main ()
4444{
4445$ac_func ();
4446  ;
4447  return 0;
4448}
4449_ACEOF
4450rm -f conftest.$ac_objext conftest$ac_exeext
4451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4452  (eval $ac_link) 2>conftest.er1
4453  ac_status=$?
4454  grep -v '^ *+' conftest.er1 >conftest.err
4455  rm -f conftest.er1
4456  cat conftest.err >&5
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); } &&
4459         { ac_try='test -z "$ac_c_werror_flag"
4460                         || test ! -s conftest.err'
4461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462  (eval $ac_try) 2>&5
4463  ac_status=$?
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); }; } &&
4466         { ac_try='test -s conftest$ac_exeext'
4467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468  (eval $ac_try) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; }; then
4472  ac_success=yes; break 2
4473else
4474  echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477fi
4478rm -f conftest.err conftest.$ac_objext \
4479      conftest$ac_exeext conftest.$ac_ext
4480    done
4481  done
4482  ac_ext=f
4483ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4484ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4486
4487  if test "$ac_success" = "yes"; then
4488     case $ac_foobar in
4489        foobar)
4490           ac_case=lower
4491           ac_foo_bar=foo_bar
4492           ;;
4493        FOOBAR)
4494           ac_case=upper
4495           ac_foo_bar=FOO_BAR
4496           ;;
4497     esac
4498
4499     ac_ext=c
4500ac_cpp='$CPP $CPPFLAGS'
4501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504     ac_success_extra=no
4505     for ac_extra in "" "_"; do
4506        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4507        cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h.  */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h.  */
4513
4514/* Override any gcc2 internal prototype to avoid an error.  */
4515#ifdef __cplusplus
4516extern "C"
4517#endif
4518/* We use char because int might match the return type of a gcc2
4519   builtin and then its argument prototype would still apply.  */
4520char $ac_func ();
4521#ifdef F77_DUMMY_MAIN
4522
4523#  ifdef __cplusplus
4524     extern "C"
4525#  endif
4526   int F77_DUMMY_MAIN() { return 1; }
4527
4528#endif
4529int
4530main ()
4531{
4532$ac_func ();
4533  ;
4534  return 0;
4535}
4536_ACEOF
4537rm -f conftest.$ac_objext conftest$ac_exeext
4538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4539  (eval $ac_link) 2>conftest.er1
4540  ac_status=$?
4541  grep -v '^ *+' conftest.er1 >conftest.err
4542  rm -f conftest.er1
4543  cat conftest.err >&5
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); } &&
4546         { ac_try='test -z "$ac_c_werror_flag"
4547                         || test ! -s conftest.err'
4548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549  (eval $ac_try) 2>&5
4550  ac_status=$?
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); }; } &&
4553         { ac_try='test -s conftest$ac_exeext'
4554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555  (eval $ac_try) 2>&5
4556  ac_status=$?
4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558  (exit $ac_status); }; }; then
4559  ac_success_extra=yes; break
4560else
4561  echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
4564fi
4565rm -f conftest.err conftest.$ac_objext \
4566      conftest$ac_exeext conftest.$ac_ext
4567     done
4568     ac_ext=f
4569ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4570ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4572
4573     if test "$ac_success_extra" = "yes"; then
4574        ac_cv_f77_mangling="$ac_case case"
4575        if test -z "$ac_underscore"; then
4576           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4577        else
4578           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4579        fi
4580        if test -z "$ac_extra"; then
4581           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4582        else
4583           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4584        fi
4585      else
4586        ac_cv_f77_mangling="unknown"
4587      fi
4588  else
4589     ac_cv_f77_mangling="unknown"
4590  fi
4591
4592  LIBS=$ac_save_LIBS
4593  rm -f cfortran_test* conftest*
4594else
4595  echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4599See \`config.log' for more details." >&5
4600echo "$as_me: error: cannot compile a simple Fortran program
4601See \`config.log' for more details." >&2;}
4602   { (exit 1); exit 1; }; }
4603fi
4604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4605
4606fi
4607echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4608echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4609
4610ac_ext=f
4611ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4612ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4614
4615
4616ac_ext=f
4617ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4618ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4620
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
4627case $ac_cv_f77_mangling in
4628  "lower case, no underscore, no extra underscore")
4629          cat >>confdefs.h <<\_ACEOF
4630#define F77_FUNC(name,NAME) name
4631_ACEOF
4632
4633          cat >>confdefs.h <<\_ACEOF
4634#define F77_FUNC_(name,NAME) name
4635_ACEOF
4636 ;;
4637  "lower case, no underscore, extra underscore")
4638          cat >>confdefs.h <<\_ACEOF
4639#define F77_FUNC(name,NAME) name
4640_ACEOF
4641
4642          cat >>confdefs.h <<\_ACEOF
4643#define F77_FUNC_(name,NAME) name ## _
4644_ACEOF
4645 ;;
4646  "lower case, underscore, no extra underscore")
4647          cat >>confdefs.h <<\_ACEOF
4648#define F77_FUNC(name,NAME) name ## _
4649_ACEOF
4650
4651          cat >>confdefs.h <<\_ACEOF
4652#define F77_FUNC_(name,NAME) name ## _
4653_ACEOF
4654 ;;
4655  "lower case, underscore, extra underscore")
4656          cat >>confdefs.h <<\_ACEOF
4657#define F77_FUNC(name,NAME) name ## _
4658_ACEOF
4659
4660          cat >>confdefs.h <<\_ACEOF
4661#define F77_FUNC_(name,NAME) name ## __
4662_ACEOF
4663 ;;
4664  "upper case, no underscore, no extra underscore")
4665          cat >>confdefs.h <<\_ACEOF
4666#define F77_FUNC(name,NAME) NAME
4667_ACEOF
4668
4669          cat >>confdefs.h <<\_ACEOF
4670#define F77_FUNC_(name,NAME) NAME
4671_ACEOF
4672 ;;
4673  "upper case, no underscore, extra underscore")
4674          cat >>confdefs.h <<\_ACEOF
4675#define F77_FUNC(name,NAME) NAME
4676_ACEOF
4677
4678          cat >>confdefs.h <<\_ACEOF
4679#define F77_FUNC_(name,NAME) NAME ## _
4680_ACEOF
4681 ;;
4682  "upper case, underscore, no extra underscore")
4683          cat >>confdefs.h <<\_ACEOF
4684#define F77_FUNC(name,NAME) NAME ## _
4685_ACEOF
4686
4687          cat >>confdefs.h <<\_ACEOF
4688#define F77_FUNC_(name,NAME) NAME ## _
4689_ACEOF
4690 ;;
4691  "upper case, underscore, extra underscore")
4692          cat >>confdefs.h <<\_ACEOF
4693#define F77_FUNC(name,NAME) NAME ## _
4694_ACEOF
4695
4696          cat >>confdefs.h <<\_ACEOF
4697#define F77_FUNC_(name,NAME) NAME ## __
4698_ACEOF
4699 ;;
4700  *)
4701          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4702echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4703          ;;
4704esac
4705
4706ac_ext=f
4707ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4708ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4710
4711ac_ext=c
4712ac_cpp='$CPP $CPPFLAGS'
4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717
4718
4719
4720# Add FLIBS to BLAS_PCLIBS, so that they get into the .pc files
4721BLAS_PCLIBS="$FLIBS"
4722
4723
4724# Check if pkg-config is available (to setup addlibs file)
4725
4726
4727# Check whether --enable-pkg-config or --disable-pkg-config was given.
4728if test "${enable_pkg_config+set}" = set; then
4729  enableval="$enable_pkg_config"
4730  use_pkgconfig="$enableval"
4731else
4732  if test x$coin_cc_is_cl = xtrue; then
4733     use_pkgconfig=no
4734   else
4735     use_pkgconfig=yes
4736   fi
4737fi;
4738
4739if test $use_pkgconfig = yes ; then
4740  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4741    if test -n "$ac_tool_prefix"; then
4742  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4743set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4744echo "$as_me:$LINENO: checking for $ac_word" >&5
4745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4747  echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749  if test -n "$PKG_CONFIG"; then
4750  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757  for ac_exec_ext in '' $ac_executable_extensions; do
4758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764done
4765
4766fi
4767fi
4768PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4769if test -n "$PKG_CONFIG"; then
4770  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4771echo "${ECHO_T}$PKG_CONFIG" >&6
4772else
4773  echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775fi
4776
4777fi
4778if test -z "$ac_cv_prog_PKG_CONFIG"; then
4779  ac_ct_PKG_CONFIG=$PKG_CONFIG
4780  # Extract the first word of "pkg-config", so it can be a program name with args.
4781set dummy pkg-config; ac_word=$2
4782echo "$as_me:$LINENO: checking for $ac_word" >&5
4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4785  echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787  if test -n "$ac_ct_PKG_CONFIG"; then
4788  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793  IFS=$as_save_IFS
4794  test -z "$as_dir" && as_dir=.
4795  for ac_exec_ext in '' $ac_executable_extensions; do
4796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799    break 2
4800  fi
4801done
4802done
4803
4804fi
4805fi
4806ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4807if test -n "$ac_ct_PKG_CONFIG"; then
4808  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4809echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4810else
4811  echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813fi
4814
4815  PKG_CONFIG=$ac_ct_PKG_CONFIG
4816else
4817  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4818fi
4819
4820  fi
4821  if test -n "$PKG_CONFIG"; then
4822    _pkg_min_version=0.16.0
4823    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4824echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4825    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4826      echo "$as_me:$LINENO: result: yes" >&5
4827echo "${ECHO_T}yes" >&6
4828    else
4829      echo "$as_me:$LINENO: result: no" >&5
4830echo "${ECHO_T}no" >&6
4831      PKG_CONFIG=""
4832    fi
4833  fi
4834
4835  # check if pkg-config supports the short-errors flag
4836  if test -n "$PKG_CONFIG" && \
4837    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4838    pkg_short_errors=" --short-errors "
4839  else
4840    pkg_short_errors=""
4841  fi
4842fi
4843
4844
4845
4846if test -n "$PKG_CONFIG"; then
4847  COIN_HAS_PKGCONFIG_TRUE=
4848  COIN_HAS_PKGCONFIG_FALSE='#'
4849else
4850  COIN_HAS_PKGCONFIG_TRUE='#'
4851  COIN_HAS_PKGCONFIG_FALSE=
4852fi
4853
4854
4855
4856# assemble pkg-config search path for installed projects
4857COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4858
4859# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
4860# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4861# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4862if test "x${prefix}" = xNONE ; then
4863  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4864else
4865  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4866fi
4867
4868
4869# Check whether --with-coin-instdir or --without-coin-instdir was given.
4870if test "${with_coin_instdir+set}" = set; then
4871  withval="$with_coin_instdir"
4872  if test -d "$withval"; then : ; else
4873     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4874echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4875   { (exit 1); exit 1; }; }
4876   fi
4877   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4878
4879fi;
4880
4881
4882
4883# assemble additional pkg-config search paths for uninstalled projects
4884if test x$coin_projectdir = xyes ; then
4885  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4886  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4887  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4888  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
4889  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4890  if test -f ../coin_subdirs.txt ; then
4891    for i in `cat ../coin_subdirs.txt` ; do
4892      if test -d ../$i ; then
4893        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4894      fi
4895      if test -d ../$i/pkgconfig ; then
4896        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4897      fi
4898    done
4899  fi
4900
4901  if test -f ../../coin_subdirs.txt ; then
4902    for i in `cat ../../coin_subdirs.txt` ; do
4903      if test -d ../../$i ; then
4904        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4905      fi
4906      if test -d ../../$i/pkgconfig ; then
4907        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4908      fi
4909    done
4910  fi
4911
4912
4913fi
4914
4915if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4916  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
4917echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
4918fi
4919
4920
4921
4922# Initialize automake
4923{
4924
4925
4926
4927# START
4928
4929coin_disable_shared=no
4930# Test if force_shared has been set
4931if test "x" = xforce_shared; then
4932  if test x$enable_shared = xno; then
4933    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4934echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4935   { (exit 1); exit 1; }; }
4936  fi
4937  enable_shared=yes;
4938else
4939  case $build in
4940    *-cygwin* | *-mingw*)
4941      coin_disable_shared=yes
4942      if test x"$enable_shared" = xyes; then
4943        case "$CC" in
4944          clang* )
4945            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4946echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4947            ;;
4948          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4949            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4950echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4951            ;;
4952          *gcc*)
4953            if test x"$enable_dependency_linking" = xyes; then
4954              coin_disable_shared=no
4955            else
4956              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4957echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4958            fi
4959            ;;
4960          *)
4961            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4962echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4963            ;;
4964        esac
4965      fi
4966    ;;
4967    *-aix*)
4968      coin_disable_shared=yes
4969      platform=AIX
4970      if test x"$enable_shared" = xyes; then
4971        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4972echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4973      fi
4974    ;;
4975  esac
4976fi
4977if test x"$coin_disable_shared" = xyes; then
4978  if test x"$enable_shared" = xyes; then
4979    :
4980  else
4981    # we don't disable shared, because it was not selected anyway
4982    coin_disable_shared=no
4983  fi
4984  enable_shared=no
4985fi
4986# By default, we only want the shared objects to be compiled
4987# Check whether --enable-static or --disable-static was given.
4988if test "${enable_static+set}" = set; then
4989  enableval="$enable_static"
4990  p=${PACKAGE-default}
4991    case $enableval in
4992    yes) enable_static=yes ;;
4993    no) enable_static=no ;;
4994    *)
4995     enable_static=no
4996      # Look at the argument we got.  We use all the common list separators.
4997      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4998      for pkg in $enableval; do
4999        IFS="$lt_save_ifs"
5000        if test "X$pkg" = "X$p"; then
5001          enable_static=yes
5002        fi
5003      done
5004      IFS="$lt_save_ifs"
5005      ;;
5006    esac
5007else
5008  enable_static=no
5009fi;
5010
5011
5012
5013
5014# Initialize automake
5015echo "$as_me:$LINENO: checking for egrep" >&5
5016echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5017if test "${ac_cv_prog_egrep+set}" = set; then
5018  echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5021    then ac_cv_prog_egrep='grep -E'
5022    else ac_cv_prog_egrep='egrep'
5023    fi
5024fi
5025echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5026echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5027 EGREP=$ac_cv_prog_egrep
5028
5029
5030echo "$as_me:$LINENO: checking whether ln -s works" >&5
5031echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5032LN_S=$as_ln_s
5033if test "$LN_S" = "ln -s"; then
5034  echo "$as_me:$LINENO: result: yes" >&5
5035echo "${ECHO_T}yes" >&6
5036else
5037  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5038echo "${ECHO_T}no, using $LN_S" >&6
5039fi
5040
5041am__api_version="1.9"
5042# Find a good install program.  We prefer a C program (faster),
5043# so one script is as good as another.  But avoid the broken or
5044# incompatible versions:
5045# SysV /etc/install, /usr/sbin/install
5046# SunOS /usr/etc/install
5047# IRIX /sbin/install
5048# AIX /bin/install
5049# AmigaOS /C/install, which installs bootblocks on floppy discs
5050# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5051# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5052# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5053# OS/2's system install, which has a completely different semantic
5054# ./install, which can be erroneously created by make from ./install.sh.
5055echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5056echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5057if test -z "$INSTALL"; then
5058if test "${ac_cv_path_install+set}" = set; then
5059  echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064  IFS=$as_save_IFS
5065  test -z "$as_dir" && as_dir=.
5066  # Account for people who put trailing slashes in PATH elements.
5067case $as_dir/ in
5068  ./ | .// | /cC/* | \
5069  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5070  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5071  /usr/ucb/* ) ;;
5072  *)
5073    # OSF1 and SCO ODT 3.0 have their own names for install.
5074    # Don't use installbsd from OSF since it installs stuff as root
5075    # by default.
5076    for ac_prog in ginstall scoinst install; do
5077      for ac_exec_ext in '' $ac_executable_extensions; do
5078        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5079          if test $ac_prog = install &&
5080            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5081            # AIX install.  It has an incompatible calling convention.
5082            :
5083          elif test $ac_prog = install &&
5084            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5085            # program-specific install script used by HP pwplus--don't use.
5086            :
5087          else
5088            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5089            break 3
5090          fi
5091        fi
5092      done
5093    done
5094    ;;
5095esac
5096done
5097
5098
5099fi
5100  if test "${ac_cv_path_install+set}" = set; then
5101    INSTALL=$ac_cv_path_install
5102  else
5103    # As a last resort, use the slow shell script.  We don't cache a
5104    # path for INSTALL within a source directory, because that will
5105    # break other packages using the cache if that directory is
5106    # removed, or if the path is relative.
5107    INSTALL=$ac_install_sh
5108  fi
5109fi
5110echo "$as_me:$LINENO: result: $INSTALL" >&5
5111echo "${ECHO_T}$INSTALL" >&6
5112
5113# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5114# It thinks the first close brace ends the variable substitution.
5115test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5116
5117test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5118
5119test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5120
5121echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5122echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5123# Just in case
5124sleep 1
5125echo timestamp > conftest.file
5126# Do `set' in a subshell so we don't clobber the current shell's
5127# arguments.  Must try -L first in case configure is actually a
5128# symlink; some systems play weird games with the mod time of symlinks
5129# (eg FreeBSD returns the mod time of the symlink's containing
5130# directory).
5131if (
5132   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5133   if test "$*" = "X"; then
5134      # -L didn't work.
5135      set X `ls -t $srcdir/configure conftest.file`
5136   fi
5137   rm -f conftest.file
5138   if test "$*" != "X $srcdir/configure conftest.file" \
5139      && test "$*" != "X conftest.file $srcdir/configure"; then
5140
5141      # If neither matched, then we have a broken ls.  This can happen
5142      # if, for instance, CONFIG_SHELL is bash and it inherits a
5143      # broken ls alias from the environment.  This has actually
5144      # happened.  Such a system could not be considered "sane".
5145      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5146alias in your environment" >&5
5147echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5148alias in your environment" >&2;}
5149   { (exit 1); exit 1; }; }
5150   fi
5151
5152   test "$2" = conftest.file
5153   )
5154then
5155   # Ok.
5156   :
5157else
5158   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5159Check your system clock" >&5
5160echo "$as_me: error: newly created file is older than distributed files!
5161Check your system clock" >&2;}
5162   { (exit 1); exit 1; }; }
5163fi
5164echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
5166test "$program_prefix" != NONE &&
5167  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5168# Use a double $ so make ignores it.
5169test "$program_suffix" != NONE &&
5170  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5171# Double any \ or $.  echo might interpret backslashes.
5172# By default was `s,x,x', remove it if useless.
5173cat <<\_ACEOF >conftest.sed
5174s/[\\$]/&&/g;s/;s,x,x,$//
5175_ACEOF
5176program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5177rm conftest.sed
5178
5179# expand $ac_aux_dir to an absolute path
5180am_aux_dir=`cd $ac_aux_dir && pwd`
5181
5182test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5183# Use eval to expand $SHELL
5184if eval "$MISSING --run true"; then
5185  am_missing_run="$MISSING --run "
5186else
5187  am_missing_run=
5188  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5189echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5190fi
5191
5192if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5193  # We used to keeping the `.' as first argument, in order to
5194  # allow $(mkdir_p) to be used without argument.  As in
5195  #   $(mkdir_p) $(somedir)
5196  # where $(somedir) is conditionally defined.  However this is wrong
5197  # for two reasons:
5198  #  1. if the package is installed by a user who cannot write `.'
5199  #     make install will fail,
5200  #  2. the above comment should most certainly read
5201  #     $(mkdir_p) $(DESTDIR)$(somedir)
5202  #     so it does not work when $(somedir) is undefined and
5203  #     $(DESTDIR) is not.
5204  #  To support the latter case, we have to write
5205  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5206  #  so the `.' trick is pointless.
5207  mkdir_p='mkdir -p --'
5208else
5209  # On NextStep and OpenStep, the `mkdir' command does not
5210  # recognize any option.  It will interpret all options as
5211  # directories to create, and then abort because `.' already
5212  # exists.
5213  for d in ./-p ./--version;
5214  do
5215    test -d $d && rmdir $d
5216  done
5217  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5218  if test -f "$ac_aux_dir/mkinstalldirs"; then
5219    mkdir_p='$(mkinstalldirs)'
5220  else
5221    mkdir_p='$(install_sh) -d'
5222  fi
5223fi
5224
5225for ac_prog in gawk mawk nawk awk
5226do
5227  # Extract the first word of "$ac_prog", so it can be a program name with args.
5228set dummy $ac_prog; ac_word=$2
5229echo "$as_me:$LINENO: checking for $ac_word" >&5
5230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5231if test "${ac_cv_prog_AWK+set}" = set; then
5232  echo $ECHO_N "(cached) $ECHO_C" >&6
5233else
5234  if test -n "$AWK"; then
5235  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  test -z "$as_dir" && as_dir=.
5242  for ac_exec_ext in '' $ac_executable_extensions; do
5243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244    ac_cv_prog_AWK="$ac_prog"
5245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246    break 2
5247  fi
5248done
5249done
5250
5251fi
5252fi
5253AWK=$ac_cv_prog_AWK
5254if test -n "$AWK"; then
5255  echo "$as_me:$LINENO: result: $AWK" >&5
5256echo "${ECHO_T}$AWK" >&6
5257else
5258  echo "$as_me:$LINENO: result: no" >&5
5259echo "${ECHO_T}no" >&6
5260fi
5261
5262  test -n "$AWK" && break
5263done
5264
5265echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5266echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5267set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5268if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5269  echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271  cat >conftest.make <<\_ACEOF
5272all:
5273        @echo 'ac_maketemp="$(MAKE)"'
5274_ACEOF
5275# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5276eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5277if test -n "$ac_maketemp"; then
5278  eval ac_cv_prog_make_${ac_make}_set=yes
5279else
5280  eval ac_cv_prog_make_${ac_make}_set=no
5281fi
5282rm -f conftest.make
5283fi
5284if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5285  echo "$as_me:$LINENO: result: yes" >&5
5286echo "${ECHO_T}yes" >&6
5287  SET_MAKE=
5288else
5289  echo "$as_me:$LINENO: result: no" >&5
5290echo "${ECHO_T}no" >&6
5291  SET_MAKE="MAKE=${MAKE-make}"
5292fi
5293
5294rm -rf .tst 2>/dev/null
5295mkdir .tst 2>/dev/null
5296if test -d .tst; then
5297  am__leading_dot=.
5298else
5299  am__leading_dot=_
5300fi
5301rmdir .tst 2>/dev/null
5302
5303DEPDIR="${am__leading_dot}deps"
5304
5305          ac_config_commands="$ac_config_commands depfiles"
5306
5307
5308am_make=${MAKE-make}
5309cat > confinc << 'END'
5310am__doit:
5311        @echo done
5312.PHONY: am__doit
5313END
5314# If we don't find an include directive, just comment out the code.
5315echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5316echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5317am__include="#"
5318am__quote=
5319_am_result=none
5320# First try GNU make style include.
5321echo "include confinc" > confmf
5322# We grep out `Entering directory' and `Leaving directory'
5323# messages which can occur if `w' ends up in MAKEFLAGS.
5324# In particular we don't look at `^make:' because GNU make might
5325# be invoked under some other name (usually "gmake"), in which
5326# case it prints its new name instead of `make'.
5327if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5328   am__include=include
5329   am__quote=
5330   _am_result=GNU
5331fi
5332# Now try BSD make style include.
5333if test "$am__include" = "#"; then
5334   echo '.include "confinc"' > confmf
5335   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5336      am__include=.include
5337      am__quote="\""
5338      _am_result=BSD
5339   fi
5340fi
5341
5342
5343echo "$as_me:$LINENO: result: $_am_result" >&5
5344echo "${ECHO_T}$_am_result" >&6
5345rm -f confinc confmf
5346
5347# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5348if test "${enable_dependency_tracking+set}" = set; then
5349  enableval="$enable_dependency_tracking"
5350
5351fi;
5352if test "x$enable_dependency_tracking" != xno; then
5353  am_depcomp="$ac_aux_dir/depcomp"
5354  AMDEPBACKSLASH='\'
5355fi
5356
5357
5358if test "x$enable_dependency_tracking" != xno; then
5359  AMDEP_TRUE=
5360  AMDEP_FALSE='#'
5361else
5362  AMDEP_TRUE='#'
5363  AMDEP_FALSE=
5364fi
5365
5366
5367
5368
5369
5370
5371# AC_MSG_NOTICE([Beginning automake initialisation.])
5372# Stuff for automake
5373# test to see if srcdir already configured
5374if test "`cd $srcdir && pwd`" != "`pwd`" &&
5375   test -f $srcdir/config.status; then
5376  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5377echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5378   { (exit 1); exit 1; }; }
5379fi
5380
5381# test whether we have cygpath
5382if test -z "$CYGPATH_W"; then
5383  if (cygpath --version) >/dev/null 2>/dev/null; then
5384    CYGPATH_W='cygpath -w'
5385  else
5386    CYGPATH_W=echo
5387  fi
5388fi
5389
5390
5391# Define the identity of the package.
5392 PACKAGE='thirdpartyblas'
5393 VERSION='1.4.6'
5394
5395
5396cat >>confdefs.h <<_ACEOF
5397#define PACKAGE "$PACKAGE"
5398_ACEOF
5399
5400
5401cat >>confdefs.h <<_ACEOF
5402#define VERSION "$VERSION"
5403_ACEOF
5404
5405# Some tools Automake needs.
5406
5407ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5408
5409
5410AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5411
5412
5413AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5414
5415
5416AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5417
5418
5419MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5420
5421install_sh=${install_sh-"$am_aux_dir/install-sh"}
5422
5423# Installed binaries are usually stripped using `strip' when the user
5424# run `make install-strip'.  However `strip' might not be the right
5425# tool to use in cross-compilation environments, therefore Automake
5426# will honor the `STRIP' environment variable to overrule this program.
5427if test "$cross_compiling" != no; then
5428  if test -n "$ac_tool_prefix"; then
5429  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5430set dummy ${ac_tool_prefix}strip; ac_word=$2
5431echo "$as_me:$LINENO: checking for $ac_word" >&5
5432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5433if test "${ac_cv_prog_STRIP+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  if test -n "$STRIP"; then
5437  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442  IFS=$as_save_IFS
5443  test -z "$as_dir" && as_dir=.
5444  for ac_exec_ext in '' $ac_executable_extensions; do
5445  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448    break 2
5449  fi
5450done
5451done
5452
5453fi
5454fi
5455STRIP=$ac_cv_prog_STRIP
5456if test -n "$STRIP"; then
5457  echo "$as_me:$LINENO: result: $STRIP" >&5
5458echo "${ECHO_T}$STRIP" >&6
5459else
5460  echo "$as_me:$LINENO: result: no" >&5
5461echo "${ECHO_T}no" >&6
5462fi
5463
5464fi
5465if test -z "$ac_cv_prog_STRIP"; then
5466  ac_ct_STRIP=$STRIP
5467  # Extract the first word of "strip", so it can be a program name with args.
5468set dummy strip; ac_word=$2
5469echo "$as_me:$LINENO: checking for $ac_word" >&5
5470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5472  echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474  if test -n "$ac_ct_STRIP"; then
5475  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5476else
5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480  IFS=$as_save_IFS
5481  test -z "$as_dir" && as_dir=.
5482  for ac_exec_ext in '' $ac_executable_extensions; do
5483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484    ac_cv_prog_ac_ct_STRIP="strip"
5485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486    break 2
5487  fi
5488done
5489done
5490
5491  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5492fi
5493fi
5494ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5495if test -n "$ac_ct_STRIP"; then
5496  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5497echo "${ECHO_T}$ac_ct_STRIP" >&6
5498else
5499  echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501fi
5502
5503  STRIP=$ac_ct_STRIP
5504else
5505  STRIP="$ac_cv_prog_STRIP"
5506fi
5507
5508fi
5509INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5510
5511# We need awk for the "check" target.  The system "awk" is bad on
5512# some platforms.
5513# Always define AMTAR for backward compatibility.
5514
5515AMTAR=${AMTAR-"${am_missing_run}tar"}
5516
5517am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5518
5519
5520
5521
5522depcc="$CC"   am_compiler_list=
5523
5524echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5525echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5526if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5527  echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5530  # We make a subdir and do the tests there.  Otherwise we can end up
5531  # making bogus files that we don't know about and never remove.  For
5532  # instance it was reported that on HP-UX the gcc test will end up
5533  # making a dummy file named `D' -- because `-MD' means `put the output
5534  # in D'.
5535  mkdir conftest.dir
5536  # Copy depcomp to subdir because otherwise we won't find it if we're
5537  # using a relative directory.
5538  cp "$am_depcomp" conftest.dir
5539  cd conftest.dir
5540  # We will build objects and dependencies in a subdirectory because
5541  # it helps to detect inapplicable dependency modes.  For instance
5542  # both Tru64's cc and ICC support -MD to output dependencies as a
5543  # side effect of compilation, but ICC will put the dependencies in
5544  # the current directory while Tru64 will put them in the object
5545  # directory.
5546  mkdir sub
5547
5548  am_cv_CC_dependencies_compiler_type=none
5549  if test "$am_compiler_list" = ""; then
5550     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5551  fi
5552  for depmode in $am_compiler_list; do
5553    # Setup a source with many dependencies, because some compilers
5554    # like to wrap large dependency lists on column 80 (with \), and
5555    # we should not choose a depcomp mode which is confused by this.
5556    #
5557    # We need to recreate these files for each test, as the compiler may
5558    # overwrite some of them when testing with obscure command lines.
5559    # This happens at least with the AIX C compiler.
5560    : > sub/conftest.c
5561    for i in 1 2 3 4 5 6; do
5562      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5563      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5564      # Solaris 8's {/usr,}/bin/sh.
5565      touch sub/conftst$i.h
5566    done
5567    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5568
5569    case $depmode in
5570    nosideeffect)
5571      # after this tag, mechanisms are not by side-effect, so they'll
5572      # only be used when explicitly requested
5573      if test "x$enable_dependency_tracking" = xyes; then
5574        continue
5575      else
5576        break
5577      fi
5578      ;;
5579    none) break ;;
5580    esac
5581    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5582    # mode.  It turns out that the SunPro C++ compiler does not properly
5583    # handle `-M -o', and we need to detect this.
5584    if depmode=$depmode \
5585       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5586       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5587       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5588         >/dev/null 2>conftest.err &&
5589       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5590       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5591       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5592      # icc doesn't choke on unknown options, it will just issue warnings
5593      # or remarks (even with -Werror).  So we grep stderr for any message
5594      # that says an option was ignored or not supported.
5595      # When given -MP, icc 7.0 and 7.1 complain thusly:
5596      #   icc: Command line warning: ignoring option '-M'; no argument required
5597      # The diagnosis changed in icc 8.0:
5598      #   icc: Command line remark: option '-MP' not supported
5599      if (grep 'ignoring option' conftest.err ||
5600          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5601        am_cv_CC_dependencies_compiler_type=$depmode
5602        break
5603      fi
5604    fi
5605  done
5606
5607  cd ..
5608  rm -rf conftest.dir
5609else
5610  am_cv_CC_dependencies_compiler_type=none
5611fi
5612
5613fi
5614echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5615echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5616CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5617
5618
5619
5620if
5621  test "x$enable_dependency_tracking" != xno \
5622  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5623  am__fastdepCC_TRUE=
5624  am__fastdepCC_FALSE='#'
5625else
5626  am__fastdepCC_TRUE='#'
5627  am__fastdepCC_FALSE=
5628fi
5629
5630
5631
5632echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5633echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5634    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5635if test "${enable_maintainer_mode+set}" = set; then
5636  enableval="$enable_maintainer_mode"
5637  USE_MAINTAINER_MODE=$enableval
5638else
5639  USE_MAINTAINER_MODE=no
5640fi;
5641  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5642echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5643
5644
5645if test $USE_MAINTAINER_MODE = yes; then
5646  MAINTAINER_MODE_TRUE=
5647  MAINTAINER_MODE_FALSE='#'
5648else
5649  MAINTAINER_MODE_TRUE='#'
5650  MAINTAINER_MODE_FALSE=
5651fi
5652
5653  MAINT=$MAINTAINER_MODE_TRUE
5654
5655
5656
5657coin_have_externals=no
5658if test "$enable_maintainer_mode" = yes; then
5659
5660  # If maintainer mode is chosen, we make sure that the correct versions
5661  # of the tools are used, and that we know where libtool.m4 is (to
5662  # recreate acinclude.m4)
5663
5664
5665  LIBTOOLM4=
5666  # Normally, $HOME
5667  AUTOTOOLS_DFLT=$HOME
5668
5669  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5670echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5671if test "${ac_cv_use_correct_autotools+set}" = set; then
5672  echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674  ac_cv_use_correct_autotools=check
5675fi
5676echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5677echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5678
5679  if test $ac_cv_use_correct_autotools = check; then
5680    ac_cv_use_correct_autotools=yes
5681    # Check if we have autoconf
5682    # Extract the first word of "autoconf", so it can be a program name with args.
5683set dummy autoconf; ac_word=$2
5684echo "$as_me:$LINENO: checking for $ac_word" >&5
5685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686if test "${ac_cv_prog_have_autoconf+set}" = set; then
5687  echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689  if test -n "$have_autoconf"; then
5690  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695  IFS=$as_save_IFS
5696  test -z "$as_dir" && as_dir=.
5697  for ac_exec_ext in '' $ac_executable_extensions; do
5698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699    ac_cv_prog_have_autoconf="yes"
5700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701    break 2
5702  fi
5703done
5704done
5705
5706  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5707fi
5708fi
5709have_autoconf=$ac_cv_prog_have_autoconf
5710if test -n "$have_autoconf"; then
5711  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5712echo "${ECHO_T}$have_autoconf" >&6
5713else
5714  echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
5716fi
5717
5718    if test $have_autoconf = no; then
5719      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5720echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5721   { (exit 1); exit 1; }; }
5722    fi
5723
5724    # Check whether autoconf is the correct version
5725    correct_version='2.59'
5726    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5727    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5728echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5729    autoconf --version > confauto.out 2>&1
5730    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5731      echo "$as_me:$LINENO: result: yes" >&5
5732echo "${ECHO_T}yes" >&6
5733    else
5734      rm -f confauto.out
5735      echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5738echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5739   { (exit 1); exit 1; }; }
5740    fi
5741    rm -f confauto.out
5742
5743    # Check if the executable autoconf is picked up from the correct location
5744    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5745echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5746    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5747    autoconf_dir=`cd $autoconf_dir; pwd`
5748    if test x$AUTOTOOLS_DIR = x; then
5749      want_dir=$AUTOTOOLS_DFLT/bin
5750    else
5751      want_dir=$AUTOTOOLS_DIR/bin
5752    fi
5753    if test $autoconf_dir = `cd $want_dir; pwd`; then
5754      echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756    else
5757      rm -f confauto.out
5758      echo "$as_me:$LINENO: result: no" >&5
5759echo "${ECHO_T}no" >&6
5760      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5761echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5762   { (exit 1); exit 1; }; }
5763    fi
5764
5765    # Check if we have automake
5766    # Extract the first word of "automake", so it can be a program name with args.
5767set dummy automake; ac_word=$2
5768echo "$as_me:$LINENO: checking for $ac_word" >&5
5769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770if test "${ac_cv_prog_have_automake+set}" = set; then
5771  echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773  if test -n "$have_automake"; then
5774  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779  IFS=$as_save_IFS
5780  test -z "$as_dir" && as_dir=.
5781  for ac_exec_ext in '' $ac_executable_extensions; do
5782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783    ac_cv_prog_have_automake="yes"
5784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785    break 2
5786  fi
5787done
5788done
5789
5790  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5791fi
5792fi
5793have_automake=$ac_cv_prog_have_automake
5794if test -n "$have_automake"; then
5795  echo "$as_me:$LINENO: result: $have_automake" >&5
5796echo "${ECHO_T}$have_automake" >&6
5797else
5798  echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800fi
5801
5802    if test $have_automake = no; then
5803      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5804echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5805   { (exit 1); exit 1; }; }
5806    fi
5807
5808    # Check whether automake is the correct version
5809    correct_version='1.9.6'
5810    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5811    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5812echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5813    automake --version > confauto.out 2>&1
5814    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5815      echo "$as_me:$LINENO: result: yes" >&5
5816echo "${ECHO_T}yes" >&6
5817    else
5818      rm -f confauto.out
5819      echo "$as_me:$LINENO: result: no" >&5
5820echo "${ECHO_T}no" >&6
5821      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5822echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5823   { (exit 1); exit 1; }; }
5824    fi
5825    rm -f confauto.out
5826
5827    # Check if the executable automake is picked up from the correct location
5828    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5829echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5830    automake_dir=`which automake | sed -e 's=/automake=='`
5831    automake_dir=`cd $automake_dir; pwd`
5832    if test x$AUTOTOOLS_DIR = x; then
5833      want_dir=$AUTOTOOLS_DFLT/bin
5834    else
5835      want_dir=$AUTOTOOLS_DIR/bin
5836    fi
5837    if test $automake_dir = `cd $want_dir; pwd`; then
5838      echo "$as_me:$LINENO: result: yes" >&5
5839echo "${ECHO_T}yes" >&6
5840    else
5841      rm -f confauto.out
5842      echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6
5844      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5845echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5846   { (exit 1); exit 1; }; }
5847    fi
5848
5849    # Check if this is the correct version of libtool (with escaped dots)
5850    if test x$AUTOTOOLS_DIR = x; then
5851      want_dir=$AUTOTOOLS_DFLT/share
5852    else
5853      want_dir=$AUTOTOOLS_DIR/share
5854    fi
5855    correct_version='1.5.22'
5856    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5857    if test -r $want_dir/libtool/ltmain.sh; then
5858  have_ltmain=yes
5859  :
5860else
5861  have_ltmain=no
5862  :
5863fi
5864
5865    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5866echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5867    if test $have_ltmain = yes; then
5868    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5869        echo "$as_me:$LINENO: result: yes" >&5
5870echo "${ECHO_T}yes" >&6
5871      else
5872        echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
5874        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5875echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5876   { (exit 1); exit 1; }; }
5877      fi
5878    else
5879      echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5882echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5883   { (exit 1); exit 1; }; }
5884    fi
5885  fi
5886
5887  # Check if we can find the libtool file
5888  if test x$AUTOTOOLS_DIR = x; then
5889    want_dir=$AUTOTOOLS_DFLT/share
5890  else
5891    want_dir=$AUTOTOOLS_DIR/share
5892  fi
5893  if test -r $want_dir/aclocal/libtool.m4; then
5894  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5895  :
5896else
5897  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5898echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5899   { (exit 1); exit 1; }; }
5900  :
5901fi
5902
5903
5904  # Check if we have an Dependencies file
5905  if test -r $srcdir/Dependencies; then
5906    coin_have_externals=yes
5907  fi
5908  # Check if subversion is installed and understands https
5909  # Extract the first word of "svn", so it can be a program name with args.
5910set dummy svn; ac_word=$2
5911echo "$as_me:$LINENO: checking for $ac_word" >&5
5912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5913if test "${ac_cv_prog_have_svn+set}" = set; then
5914  echo $ECHO_N "(cached) $ECHO_C" >&6
5915else
5916  if test -n "$have_svn"; then
5917  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922  IFS=$as_save_IFS
5923  test -z "$as_dir" && as_dir=.
5924  for ac_exec_ext in '' $ac_executable_extensions; do
5925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926    ac_cv_prog_have_svn="yes"
5927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928    break 2
5929  fi
5930done
5931done
5932
5933  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5934fi
5935fi
5936have_svn=$ac_cv_prog_have_svn
5937if test -n "$have_svn"; then
5938  echo "$as_me:$LINENO: result: $have_svn" >&5
5939echo "${ECHO_T}$have_svn" >&6
5940else
5941  echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943fi
5944
5945  if test x$have_svn = xyes; then
5946    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5947echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5948if test "${ac_cv_svn_understands_https+set}" = set; then
5949  echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951  svn --version > confauto.out 2>&1
5952                    if $EGREP https confauto.out >/dev/null 2>&1; then
5953                      ac_cv_svn_understands_https=yes
5954                    else
5955                      ac_cv_svn_understands_https=no
5956                      have_svn=no
5957                      ac_cv_prog_have_svn=no
5958                    fi
5959                    rm -f confauto.out
5960fi
5961echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5962echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5963  fi
5964
5965  # Find the location of the BuildTools directory
5966  BUILDTOOLSDIR=
5967  if test -r $srcdir/BuildTools/coin.m4; then
5968    BUILDTOOLSDIR=$srcdir/BuildTools
5969  else
5970    if test -r $srcdir/../BuildTools/coin.m4; then
5971      BUILDTOOLSDIR=$srcdir/../BuildTools
5972    else
5973      if test -r $srcdir/../../BuildTools/coin.m4; then
5974        BUILDTOOLSDIR=$srcdir/../../BuildTools
5975      else
5976        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5977echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5978   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5979      fi
5980    fi
5981  fi
5982
5983
5984  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5985  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5986    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5987  fi
5988
5989  # The following variable is set to the name of the directory where
5990  # the autotool scripts are located
5991
5992  AUX_DIR=$ac_aux_dir
5993fi
5994
5995# helpful variable for the base directory of this package
5996abs_source_dir=`cd $srcdir; pwd`
5997
5998
5999# Stuff for example Makefiles
6000if test x$prefix = xNONE; then
6001  full_prefix=$ac_default_prefix
6002else
6003  full_prefix=$prefix
6004fi
6005full_prefix=`cd $full_prefix ; pwd`
6006
6007abs_lib_dir=$full_prefix/lib
6008
6009abs_include_dir=$full_prefix/include
6010
6011abs_bin_dir=$full_prefix/bin
6012
6013
6014
6015if test $coin_have_externals = yes && test x$have_svn = xyes; then
6016  HAVE_EXTERNALS_TRUE=
6017  HAVE_EXTERNALS_FALSE='#'
6018else
6019  HAVE_EXTERNALS_TRUE='#'
6020  HAVE_EXTERNALS_FALSE=
6021fi
6022
6023
6024# AC_MSG_NOTICE([End automake initialisation.])
6025
6026
6027
6028LIBTOOL=
6029if test -f ../libtool; then
6030  coin_config_dir=..
6031  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6032fi
6033if test "x$LIBTOOL" = x; then
6034  if test -f ../../libtool; then
6035    coin_config_dir=../..
6036    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6037  fi
6038fi
6039
6040if test "x$LIBTOOL" = x; then
6041# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6042  # Stuff for libtool
6043  # Check whether --enable-shared or --disable-shared was given.
6044if test "${enable_shared+set}" = set; then
6045  enableval="$enable_shared"
6046  p=${PACKAGE-default}
6047    case $enableval in
6048    yes) enable_shared=yes ;;
6049    no) enable_shared=no ;;
6050    *)
6051      enable_shared=no
6052      # Look at the argument we got.  We use all the common list separators.
6053      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6054      for pkg in $enableval; do
6055        IFS="$lt_save_ifs"
6056        if test "X$pkg" = "X$p"; then
6057          enable_shared=yes
6058        fi
6059      done
6060      IFS="$lt_save_ifs"
6061      ;;
6062    esac
6063else
6064  enable_shared=yes
6065fi;
6066
6067# Check whether --enable-fast-install or --disable-fast-install was given.
6068if test "${enable_fast_install+set}" = set; then
6069  enableval="$enable_fast_install"
6070  p=${PACKAGE-default}
6071    case $enableval in
6072    yes) enable_fast_install=yes ;;
6073    no) enable_fast_install=no ;;
6074    *)
6075      enable_fast_install=no
6076      # Look at the argument we got.  We use all the common list separators.
6077      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6078      for pkg in $enableval; do
6079        IFS="$lt_save_ifs"
6080        if test "X$pkg" = "X$p"; then
6081          enable_fast_install=yes
6082        fi
6083      done
6084      IFS="$lt_save_ifs"
6085      ;;
6086    esac
6087else
6088  enable_fast_install=yes
6089fi;
6090
6091echo "$as_me:$LINENO: checking host system type" >&5
6092echo $ECHO_N "checking host system type... $ECHO_C" >&6
6093if test "${ac_cv_host+set}" = set; then
6094  echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096  ac_cv_host_alias=$host_alias
6097test -z "$ac_cv_host_alias" &&
6098  ac_cv_host_alias=$ac_cv_build_alias
6099ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6100  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6101echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6102   { (exit 1); exit 1; }; }
6103
6104fi
6105echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6106echo "${ECHO_T}$ac_cv_host" >&6
6107host=$ac_cv_host
6108host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6109host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6110host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6111
6112
6113echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6114echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6115if test "${lt_cv_path_SED+set}" = set; then
6116  echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118  # Loop through the user's path and test for sed and gsed.
6119# Then use that list of sed's as ones to test for truncation.
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123  IFS=$as_save_IFS
6124  test -z "$as_dir" && as_dir=.
6125  for lt_ac_prog in sed gsed; do
6126    for ac_exec_ext in '' $ac_executable_extensions; do
6127      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6128        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6129      fi
6130    done
6131  done
6132done
6133lt_ac_max=0
6134lt_ac_count=0
6135# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6136# along with /bin/sed that truncates output.
6137for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6138  test ! -f $lt_ac_sed && continue
6139  cat /dev/null > conftest.in
6140  lt_ac_count=0
6141  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6142  # Check for GNU sed and select it if it is found.
6143  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6144    lt_cv_path_SED=$lt_ac_sed
6145    break
6146  fi
6147  while true; do
6148    cat conftest.in conftest.in >conftest.tmp
6149    mv conftest.tmp conftest.in
6150    cp conftest.in conftest.nl
6151    echo >>conftest.nl
6152    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6153    cmp -s conftest.out conftest.nl || break
6154    # 10000 chars as input seems more than enough
6155    test $lt_ac_count -gt 10 && break
6156    lt_ac_count=`expr $lt_ac_count + 1`
6157    if test $lt_ac_count -gt $lt_ac_max; then
6158      lt_ac_max=$lt_ac_count
6159      lt_cv_path_SED=$lt_ac_sed
6160    fi
6161  done
6162done
6163
6164fi
6165
6166SED=$lt_cv_path_SED
6167echo "$as_me:$LINENO: result: $SED" >&5
6168echo "${ECHO_T}$SED" >&6
6169
6170
6171# Check whether --with-gnu-ld or --without-gnu-ld was given.
6172if test "${with_gnu_ld+set}" = set; then
6173  withval="$with_gnu_ld"
6174  test "$withval" = no || with_gnu_ld=yes
6175else
6176  with_gnu_ld=no
6177fi;
6178ac_prog=ld
6179if test "$GCC" = yes; then
6180  # Check if gcc -print-prog-name=ld gives a path.
6181  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6182echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6183  case $host in
6184  *-*-mingw*)
6185    # gcc leaves a trailing carriage return which upsets mingw
6186    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6187  *)
6188    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6189  esac
6190  case $ac_prog in
6191    # Accept absolute paths.
6192    [\\/]* | ?:[\\/]*)
6193      re_direlt='/[^/][^/]*/\.\./'
6194      # Canonicalize the pathname of ld
6195      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6196      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6197        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6198      done
6199      test -z "$LD" && LD="$ac_prog"
6200      ;;
6201  "")
6202    # If it fails, then pretend we aren't using GCC.
6203    ac_prog=ld
6204    ;;
6205  *)
6206    # If it is relative, then search for the first ld in PATH.
6207    with_gnu_ld=unknown
6208    ;;
6209  esac
6210elif test "$with_gnu_ld" = yes; then
6211  echo "$as_me:$LINENO: checking for GNU ld" >&5
6212echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6213else
6214  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6215echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6216fi
6217if test "${lt_cv_path_LD+set}" = set; then
6218  echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220  if test -z "$LD"; then
6221  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6222  for ac_dir in $PATH; do
6223    IFS="$lt_save_ifs"
6224    test -z "$ac_dir" && ac_dir=.
6225    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6226      lt_cv_path_LD="$ac_dir/$ac_prog"
6227      # Check to see if the program is GNU ld.  I'd rather use --version,
6228      # but apparently some variants of GNU ld only accept -v.
6229      # Break only if it was the GNU/non-GNU ld that we prefer.
6230      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6231      *GNU* | *'with BFD'*)
6232        test "$with_gnu_ld" != no && break
6233        ;;
6234      *)
6235        test "$with_gnu_ld" != yes && break
6236        ;;
6237      esac
6238    fi
6239  done
6240  IFS="$lt_save_ifs"
6241else
6242  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6243fi
6244fi
6245
6246LD="$lt_cv_path_LD"
6247if test -n "$LD"; then
6248  echo "$as_me:$LINENO: result: $LD" >&5
6249echo "${ECHO_T}$LD" >&6
6250else
6251  echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6
6253fi
6254test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6255echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6256   { (exit 1); exit 1; }; }
6257echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6258echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6259if test "${lt_cv_prog_gnu_ld+set}" = set; then
6260  echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
6262  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6263case `$LD -v 2>&1 </dev/null` in
6264*GNU* | *'with BFD'*)
6265  lt_cv_prog_gnu_ld=yes
6266  ;;
6267*)
6268  lt_cv_prog_gnu_ld=no
6269  ;;
6270esac
6271fi
6272echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6273echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6274with_gnu_ld=$lt_cv_prog_gnu_ld
6275
6276
6277echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6278echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6279if test "${lt_cv_ld_reload_flag+set}" = set; then
6280  echo $ECHO_N "(cached) $ECHO_C" >&6
6281else
6282  lt_cv_ld_reload_flag='-r'
6283fi
6284echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6285echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6286reload_flag=$lt_cv_ld_reload_flag
6287case $reload_flag in
6288"" | " "*) ;;
6289*) reload_flag=" $reload_flag" ;;
6290esac
6291reload_cmds='$LD$reload_flag -o $output$reload_objs'
6292case $host_os in
6293  darwin*)
6294    if test "$GCC" = yes; then
6295      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6296    else
6297      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6298    fi
6299    ;;
6300esac
6301
6302echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6303echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6304if test "${lt_cv_path_NM+set}" = set; then
6305  echo $ECHO_N "(cached) $ECHO_C" >&6
6306else
6307  if test -n "$NM"; then
6308  # Let the user override the test.
6309  lt_cv_path_NM="$NM"
6310else
6311  lt_nm_to_check="${ac_tool_prefix}nm"
6312  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6313    lt_nm_to_check="$lt_nm_to_check nm"
6314  fi
6315  for lt_tmp_nm in $lt_nm_to_check; do
6316    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6317    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6318      IFS="$lt_save_ifs"
6319      test -z "$ac_dir" && ac_dir=.
6320      tmp_nm="$ac_dir/$lt_tmp_nm"
6321      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6322        # Check to see if the nm accepts a BSD-compat flag.
6323        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6324        #   nm: unknown option "B" ignored
6325        # Tru64's nm complains that /dev/null is an invalid object file
6326        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6327        */dev/null* | *'Invalid file or object type'*)
6328          lt_cv_path_NM="$tmp_nm -B"
6329          break
6330          ;;
6331        *)
6332          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6333          */dev/null*)
6334            lt_cv_path_NM="$tmp_nm -p"
6335            break
6336            ;;
6337          *)
6338            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6339            continue # so that we can try to find one that supports BSD flags
6340            ;;
6341          esac
6342          ;;
6343        esac
6344      fi
6345    done
6346    IFS="$lt_save_ifs"
6347  done
6348  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6349fi
6350fi
6351echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6352echo "${ECHO_T}$lt_cv_path_NM" >&6
6353NM="$lt_cv_path_NM"
6354
6355echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6356echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6357if test "${lt_cv_deplibs_check_method+set}" = set; then
6358  echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360  lt_cv_file_magic_cmd='$MAGIC_CMD'
6361lt_cv_file_magic_test_file=
6362lt_cv_deplibs_check_method='unknown'
6363# Need to set the preceding variable on all platforms that support
6364# interlibrary dependencies.
6365# 'none' -- dependencies not supported.
6366# `unknown' -- same as none, but documents that we really don't know.
6367# 'pass_all' -- all dependencies passed with no checks.
6368# 'test_compile' -- check by making test program.
6369# 'file_magic [[regex]]' -- check by looking for files in library path
6370# which responds to the $file_magic_cmd with a given extended regex.
6371# If you have `file' or equivalent on your system and you're not sure
6372# whether `pass_all' will *always* work, you probably want this one.
6373
6374case $host_os in
6375aix4* | aix5*)
6376  lt_cv_deplibs_check_method=pass_all
6377  ;;
6378
6379beos*)
6380  lt_cv_deplibs_check_method=pass_all
6381  ;;
6382
6383bsdi[45]*)
6384  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6385  lt_cv_file_magic_cmd='/usr/bin/file -L'
6386  lt_cv_file_magic_test_file=/shlib/libc.so
6387  ;;
6388
6389cygwin*)
6390  # func_win32_libid is a shell function defined in ltmain.sh
6391  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6392  lt_cv_file_magic_cmd='func_win32_libid'
6393  ;;
6394
6395mingw* | pw32*)
6396  # Base MSYS/MinGW do not provide the 'file' command needed by
6397  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6398  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399  lt_cv_file_magic_cmd='$OBJDUMP -f'
6400  ;;
6401
6402darwin* | rhapsody*)
6403  lt_cv_deplibs_check_method=pass_all
6404  ;;
6405
6406freebsd* | kfreebsd*-gnu | dragonfly*)
6407  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6408    case $host_cpu in
6409    i*86 )
6410      # Not sure whether the presence of OpenBSD here was a mistake.
6411      # Let's accept both of them until this is cleared up.
6412      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6413      lt_cv_file_magic_cmd=/usr/bin/file
6414      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6415      ;;
6416    esac
6417  else
6418    lt_cv_deplibs_check_method=pass_all
6419  fi
6420  ;;
6421
6422gnu*)
6423  lt_cv_deplibs_check_method=pass_all
6424  ;;
6425
6426hpux10.20* | hpux11*)
6427  lt_cv_file_magic_cmd=/usr/bin/file
6428  case $host_cpu in
6429  ia64*)
6430    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6431    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6432    ;;
6433  hppa*64*)
6434    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]'
6435    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6436    ;;
6437  *)
6438    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6439    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6440    ;;
6441  esac
6442  ;;
6443
6444interix3*)
6445  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6446  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6447  ;;
6448
6449irix5* | irix6* | nonstopux*)
6450  case $LD in
6451  *-32|*"-32 ") libmagic=32-bit;;
6452  *-n32|*"-n32 ") libmagic=N32;;
6453  *-64|*"-64 ") libmagic=64-bit;;
6454  *) libmagic=never-match;;
6455  esac
6456  lt_cv_deplibs_check_method=pass_all
6457  ;;
6458
6459# This must be Linux ELF.
6460linux*)
6461  lt_cv_deplibs_check_method=pass_all
6462  ;;
6463
6464netbsd*)
6465  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6466    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6467  else
6468    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6469  fi
6470  ;;
6471
6472newos6*)
6473  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6474  lt_cv_file_magic_cmd=/usr/bin/file
6475  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6476  ;;
6477
6478nto-qnx*)
6479  lt_cv_deplibs_check_method=unknown
6480  ;;
6481
6482openbsd*)
6483  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6484    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6485  else
6486    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6487  fi
6488  ;;
6489
6490osf3* | osf4* | osf5*)
6491  lt_cv_deplibs_check_method=pass_all
6492  ;;
6493
6494solaris*)
6495  lt_cv_deplibs_check_method=pass_all
6496  ;;
6497
6498sysv4 | sysv4.3*)
6499  case $host_vendor in
6500  motorola)
6501    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]'
6502    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6503    ;;
6504  ncr)
6505    lt_cv_deplibs_check_method=pass_all
6506    ;;
6507  sequent)
6508    lt_cv_file_magic_cmd='/bin/file'
6509    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6510    ;;
6511  sni)
6512    lt_cv_file_magic_cmd='/bin/file'
6513    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6514    lt_cv_file_magic_test_file=/lib/libc.so
6515    ;;
6516  siemens)
6517    lt_cv_deplibs_check_method=pass_all
6518    ;;
6519  pc)
6520    lt_cv_deplibs_check_method=pass_all
6521    ;;
6522  esac
6523  ;;
6524
6525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6526  lt_cv_deplibs_check_method=pass_all
6527  ;;
6528esac
6529
6530fi
6531echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6532echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6533file_magic_cmd=$lt_cv_file_magic_cmd
6534deplibs_check_method=$lt_cv_deplibs_check_method
6535test -z "$deplibs_check_method" && deplibs_check_method=unknown
6536
6537
6538
6539
6540# If no C compiler was specified, use CC.
6541LTCC=${LTCC-"$CC"}
6542
6543# If no C compiler flags were specified, use CFLAGS.
6544LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6545
6546# Allow CC to be a program name with arguments.
6547compiler=$CC
6548
6549# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6550if test "${enable_libtool_lock+set}" = set; then
6551  enableval="$enable_libtool_lock"
6552
6553fi;
6554test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6555
6556# Some flags need to be propagated to the compiler or linker for good
6557# libtool support.
6558case $host in
6559ia64-*-hpux*)
6560  # Find out which ABI we are using.
6561  echo 'int i;' > conftest.$ac_ext
6562  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6563  (eval $ac_compile) 2>&5
6564  ac_status=$?
6565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); }; then
6567    case `/usr/bin/file conftest.$ac_objext` in
6568    *ELF-32*)
6569      HPUX_IA64_MODE="32"
6570      ;;
6571    *ELF-64*)
6572      HPUX_IA64_MODE="64"
6573      ;;
6574    esac
6575  fi
6576  rm -rf conftest*
6577  ;;
6578*-*-irix6*)
6579  # Find out which ABI we are using.
6580  echo '#line 6580 "configure"' > conftest.$ac_ext
6581  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582  (eval $ac_compile) 2>&5
6583  ac_status=$?
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); }; then
6586   if test "$lt_cv_prog_gnu_ld" = yes; then
6587    case `/usr/bin/file conftest.$ac_objext` in
6588    *32-bit*)
6589      LD="${LD-ld} -melf32bsmip"
6590      ;;
6591    *N32*)
6592      LD="${LD-ld} -melf32bmipn32"
6593      ;;
6594    *64-bit*)
6595      LD="${LD-ld} -melf64bmip"
6596      ;;
6597    esac
6598   else
6599    case `/usr/bin/file conftest.$ac_objext` in
6600    *32-bit*)
6601      LD="${LD-ld} -32"
6602      ;;
6603    *N32*)
6604      LD="${LD-ld} -n32"
6605      ;;
6606    *64-bit*)
6607      LD="${LD-ld} -64"
6608      ;;
6609    esac
6610   fi
6611  fi
6612  rm -rf conftest*
6613  ;;
6614
6615x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6616  # Find out which ABI we are using.
6617  echo 'int i;' > conftest.$ac_ext
6618  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619  (eval $ac_compile) 2>&5
6620  ac_status=$?
6621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622  (exit $ac_status); }; then
6623    case `/usr/bin/file conftest.o` in
6624    *32-bit*)
6625      case $host in
6626        x86_64-*linux*)
6627          LD="${LD-ld} -m elf_i386"
6628          ;;
6629        ppc64-*linux*|powerpc64-*linux*)
6630          LD="${LD-ld} -m elf32ppclinux"
6631          ;;
6632        s390x-*linux*)
6633          LD="${LD-ld} -m elf_s390"
6634          ;;
6635        sparc64-*linux*)
6636          LD="${LD-ld} -m elf32_sparc"
6637          ;;
6638      esac
6639      ;;
6640    *64-bit*)
6641      case $host in
6642        x86_64-*linux*)
6643          LD="${LD-ld} -m elf_x86_64"
6644          ;;
6645        ppc*-*linux*|powerpc*-*linux*)
6646          LD="${LD-ld} -m elf64ppc"
6647          ;;
6648        s390*-*linux*)
6649          LD="${LD-ld} -m elf64_s390"
6650          ;;
6651        sparc*-*linux*)
6652          LD="${LD-ld} -m elf64_sparc"
6653          ;;
6654      esac
6655      ;;
6656    esac
6657  fi
6658  rm -rf conftest*
6659  ;;
6660
6661*-*-sco3.2v5*)
6662  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6663  SAVE_CFLAGS="$CFLAGS"
6664  CFLAGS="$CFLAGS -belf"
6665  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6666echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6667if test "${lt_cv_cc_needs_belf+set}" = set; then
6668  echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670  ac_ext=c
6671ac_cpp='$CPP $CPPFLAGS'
6672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674ac_compiler_gnu=$ac_cv_c_compiler_gnu
6675
6676     cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h.  */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h.  */
6682
6683#ifdef F77_DUMMY_MAIN
6684
6685#  ifdef __cplusplus
6686     extern "C"
6687#  endif
6688   int F77_DUMMY_MAIN() { return 1; }
6689
6690#endif
6691int
6692main ()
6693{
6694
6695  ;
6696  return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext conftest$ac_exeext
6700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701  (eval $ac_link) 2>conftest.er1
6702  ac_status=$?
6703  grep -v '^ *+' conftest.er1 >conftest.err
6704  rm -f conftest.er1
6705  cat conftest.err >&5
6706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707  (exit $ac_status); } &&
6708         { ac_try='test -z "$ac_c_werror_flag"
6709                         || test ! -s conftest.err'
6710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711  (eval $ac_try) 2>&5
6712  ac_status=$?
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); }; } &&
6715         { ac_try='test -s conftest$ac_exeext'
6716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717  (eval $ac_try) 2>&5
6718  ac_status=$?
6719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720  (exit $ac_status); }; }; then
6721  lt_cv_cc_needs_belf=yes
6722else
6723  echo "$as_me: failed program was:" >&5
6724sed 's/^/| /' conftest.$ac_ext >&5
6725
6726lt_cv_cc_needs_belf=no
6727fi
6728rm -f conftest.err conftest.$ac_objext \
6729      conftest$ac_exeext conftest.$ac_ext
6730     ac_ext=c
6731ac_cpp='$CPP $CPPFLAGS'
6732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734ac_compiler_gnu=$ac_cv_c_compiler_gnu
6735
6736fi
6737echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6738echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6739  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6740    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6741    CFLAGS="$SAVE_CFLAGS"
6742  fi
6743  ;;
6744sparc*-*solaris*)
6745  # Find out which ABI we are using.
6746  echo 'int i;' > conftest.$ac_ext
6747  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748  (eval $ac_compile) 2>&5
6749  ac_status=$?
6750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751  (exit $ac_status); }; then
6752    case `/usr/bin/file conftest.o` in
6753    *64-bit*)
6754      case $lt_cv_prog_gnu_ld in
6755      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6756      *)    LD="${LD-ld} -64" ;;
6757      esac
6758      ;;
6759    esac
6760  fi
6761  rm -rf conftest*
6762  ;;
6763
6764
6765esac
6766
6767need_locks="$enable_libtool_lock"
6768
6769
6770ac_ext=c
6771ac_cpp='$CPP $CPPFLAGS'
6772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774ac_compiler_gnu=$ac_cv_c_compiler_gnu
6775echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6776echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6777# On Suns, sometimes $CPP names a directory.
6778if test -n "$CPP" && test -d "$CPP"; then
6779  CPP=
6780fi
6781if test -z "$CPP"; then
6782  if test "${ac_cv_prog_CPP+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785      # Double quotes because CPP needs to be expanded
6786    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6787    do
6788      ac_preproc_ok=false
6789for ac_c_preproc_warn_flag in '' yes
6790do
6791  # Use a header file that comes with gcc, so configuring glibc
6792  # with a fresh cross-compiler works.
6793  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6794  # <limits.h> exists even on freestanding compilers.
6795  # On the NeXT, cc -E runs the code through the compiler's parser,
6796  # not just through cpp. "Syntax error" is here to catch this case.
6797  cat >conftest.$ac_ext <<_ACEOF
6798/* confdefs.h.  */
6799_ACEOF
6800cat confdefs.h >>conftest.$ac_ext
6801cat >>conftest.$ac_ext <<_ACEOF
6802/* end confdefs.h.  */
6803#ifdef __STDC__
6804# include <limits.h>
6805#else
6806# include <assert.h>
6807#endif
6808                     Syntax error
6809_ACEOF
6810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6811  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6812  ac_status=$?
6813  grep -v '^ *+' conftest.er1 >conftest.err
6814  rm -f conftest.er1
6815  cat conftest.err >&5
6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817  (exit $ac_status); } >/dev/null; then
6818  if test -s conftest.err; then
6819    ac_cpp_err=$ac_c_preproc_warn_flag
6820    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6821  else
6822    ac_cpp_err=
6823  fi
6824else
6825  ac_cpp_err=yes
6826fi
6827if test -z "$ac_cpp_err"; then
6828  :
6829else
6830  echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833  # Broken: fails on valid input.
6834continue
6835fi
6836rm -f conftest.err conftest.$ac_ext
6837
6838  # OK, works on sane cases.  Now check whether non-existent headers
6839  # can be detected and how.
6840  cat >conftest.$ac_ext <<_ACEOF
6841/* confdefs.h.  */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h.  */
6846#include <ac_nonexistent.h>
6847_ACEOF
6848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6849  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6850  ac_status=$?
6851  grep -v '^ *+' conftest.er1 >conftest.err
6852  rm -f conftest.er1
6853  cat conftest.err >&5
6854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855  (exit $ac_status); } >/dev/null; then
6856  if test -s conftest.err; then
6857    ac_cpp_err=$ac_c_preproc_warn_flag
6858    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6859  else
6860    ac_cpp_err=
6861  fi
6862else
6863  ac_cpp_err=yes
6864fi
6865if test -z "$ac_cpp_err"; then
6866  # Broken: success on invalid input.
6867continue
6868else
6869  echo "$as_me: failed program was:" >&5
6870sed 's/^/| /' conftest.$ac_ext >&5
6871
6872  # Passes both tests.
6873ac_preproc_ok=:
6874break
6875fi
6876rm -f conftest.err conftest.$ac_ext
6877
6878done
6879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6880rm -f conftest.err conftest.$ac_ext
6881if $ac_preproc_ok; then
6882  break
6883fi
6884
6885    done
6886    ac_cv_prog_CPP=$CPP
6887
6888fi
6889  CPP=$ac_cv_prog_CPP
6890else
6891  ac_cv_prog_CPP=$CPP
6892fi
6893echo "$as_me:$LINENO: result: $CPP" >&5
6894echo "${ECHO_T}$CPP" >&6
6895ac_preproc_ok=false
6896for ac_c_preproc_warn_flag in '' yes
6897do
6898  # Use a header file that comes with gcc, so configuring glibc
6899  # with a fresh cross-compiler works.
6900  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901  # <limits.h> exists even on freestanding compilers.
6902  # On the NeXT, cc -E runs the code through the compiler's parser,
6903  # not just through cpp. "Syntax error" is here to catch this case.
6904  cat >conftest.$ac_ext <<_ACEOF
6905/* confdefs.h.  */
6906_ACEOF
6907cat confdefs.h >>conftest.$ac_ext
6908cat >>conftest.$ac_ext <<_ACEOF
6909/* end confdefs.h.  */
6910#ifdef __STDC__
6911# include <limits.h>
6912#else
6913# include <assert.h>
6914#endif
6915                     Syntax error
6916_ACEOF
6917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6918  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6919  ac_status=$?
6920  grep -v '^ *+' conftest.er1 >conftest.err
6921  rm -f conftest.er1
6922  cat conftest.err >&5
6923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924  (exit $ac_status); } >/dev/null; then
6925  if test -s conftest.err; then
6926    ac_cpp_err=$ac_c_preproc_warn_flag
6927    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6928  else
6929    ac_cpp_err=
6930  fi
6931else
6932  ac_cpp_err=yes
6933fi
6934if test -z "$ac_cpp_err"; then
6935  :
6936else
6937  echo "$as_me: failed program was:" >&5
6938sed 's/^/| /' conftest.$ac_ext >&5
6939
6940  # Broken: fails on valid input.
6941continue
6942fi
6943rm -f conftest.err conftest.$ac_ext
6944
6945  # OK, works on sane cases.  Now check whether non-existent headers
6946  # can be detected and how.
6947  cat >conftest.$ac_ext <<_ACEOF
6948/* confdefs.h.  */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h.  */
6953#include <ac_nonexistent.h>
6954_ACEOF
6955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6956  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6957  ac_status=$?
6958  grep -v '^ *+' conftest.er1 >conftest.err
6959  rm -f conftest.er1
6960  cat conftest.err >&5
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); } >/dev/null; then
6963  if test -s conftest.err; then
6964    ac_cpp_err=$ac_c_preproc_warn_flag
6965    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6966  else
6967    ac_cpp_err=
6968  fi
6969else
6970  ac_cpp_err=yes
6971fi
6972if test -z "$ac_cpp_err"; then
6973  # Broken: success on invalid input.
6974continue
6975else
6976  echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979  # Passes both tests.
6980ac_preproc_ok=:
6981break
6982fi
6983rm -f conftest.err conftest.$ac_ext
6984
6985done
6986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6987rm -f conftest.err conftest.$ac_ext
6988if $ac_preproc_ok; then
6989  :
6990else
6991  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6992See \`config.log' for more details." >&5
6993echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6994See \`config.log' for more details." >&2;}
6995   { (exit 1); exit 1; }; }
6996fi
6997
6998ac_ext=c
6999ac_cpp='$CPP $CPPFLAGS'
7000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
7004
7005echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7006echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7007if test "${ac_cv_header_stdc+set}" = set; then
7008  echo $ECHO_N "(cached) $ECHO_C" >&6
7009else
7010  cat >conftest.$ac_ext <<_ACEOF
7011/* confdefs.h.  */
7012_ACEOF
7013cat confdefs.h >>conftest.$ac_ext
7014cat >>conftest.$ac_ext <<_ACEOF
7015/* end confdefs.h.  */
7016#include <stdlib.h>
7017#include <stdarg.h>
7018#include <string.h>
7019#include <float.h>
7020
7021#ifdef F77_DUMMY_MAIN
7022
7023#  ifdef __cplusplus
7024     extern "C"
7025#  endif
7026   int F77_DUMMY_MAIN() { return 1; }
7027
7028#endif
7029int
7030main ()
7031{
7032
7033  ;
7034  return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext
7038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039  (eval $ac_compile) 2>conftest.er1
7040  ac_status=$?
7041  grep -v '^ *+' conftest.er1 >conftest.err
7042  rm -f conftest.er1
7043  cat conftest.err >&5
7044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045  (exit $ac_status); } &&
7046         { ac_try='test -z "$ac_c_werror_flag"
7047                         || test ! -s conftest.err'
7048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049  (eval $ac_try) 2>&5
7050  ac_status=$?
7051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052  (exit $ac_status); }; } &&
7053         { ac_try='test -s conftest.$ac_objext'
7054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055  (eval $ac_try) 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }; }; then
7059  ac_cv_header_stdc=yes
7060else
7061  echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
7063
7064ac_cv_header_stdc=no
7065fi
7066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7067
7068if test $ac_cv_header_stdc = yes; then
7069  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7070  cat >conftest.$ac_ext <<_ACEOF
7071/* confdefs.h.  */
7072_ACEOF
7073cat confdefs.h >>conftest.$ac_ext
7074cat >>conftest.$ac_ext <<_ACEOF
7075/* end confdefs.h.  */
7076#include <string.h>
7077
7078_ACEOF
7079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7080  $EGREP "memchr" >/dev/null 2>&1; then
7081  :
7082else
7083  ac_cv_header_stdc=no
7084fi
7085rm -f conftest*
7086
7087fi
7088
7089if test $ac_cv_header_stdc = yes; then
7090  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7091  cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h.  */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h.  */
7097#include <stdlib.h>
7098
7099_ACEOF
7100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101  $EGREP "free" >/dev/null 2>&1; then
7102  :
7103else
7104  ac_cv_header_stdc=no
7105fi
7106rm -f conftest*
7107
7108fi
7109
7110if test $ac_cv_header_stdc = yes; then
7111  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7112  if test "$cross_compiling" = yes; then
7113  :
7114else
7115  cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h.  */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h.  */
7121#include <ctype.h>
7122#if ((' ' & 0x0FF) == 0x020)
7123# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7124# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7125#else
7126# define ISLOWER(c) \
7127                   (('a' <= (c) && (c) <= 'i') \
7128                     || ('j' <= (c) && (c) <= 'r') \
7129                     || ('s' <= (c) && (c) <= 'z'))
7130# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7131#endif
7132
7133#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7134int
7135main ()
7136{
7137  int i;
7138  for (i = 0; i < 256; i++)
7139    if (XOR (islower (i), ISLOWER (i))
7140        || toupper (i) != TOUPPER (i))
7141      exit(2);
7142  exit (0);
7143}
7144_ACEOF
7145rm -f conftest$ac_exeext
7146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147  (eval $ac_link) 2>&5
7148  ac_status=$?
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152  (eval $ac_try) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); }; }; then
7156  :
7157else
7158  echo "$as_me: program exited with status $ac_status" >&5
7159echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162( exit $ac_status )
7163ac_cv_header_stdc=no
7164fi
7165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7166fi
7167fi
7168fi
7169echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7170echo "${ECHO_T}$ac_cv_header_stdc" >&6
7171if test $ac_cv_header_stdc = yes; then
7172
7173cat >>confdefs.h <<\_ACEOF
7174#define STDC_HEADERS 1
7175_ACEOF
7176
7177fi
7178
7179# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7190                  inttypes.h stdint.h unistd.h
7191do
7192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7193echo "$as_me:$LINENO: checking for $ac_header" >&5
7194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7195if eval "test \"\${$as_ac_Header+set}\" = set"; then
7196  echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198  cat >conftest.$ac_ext <<_ACEOF
7199/* confdefs.h.  */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h.  */
7204$ac_includes_default
7205
7206#include <$ac_header>
7207_ACEOF
7208rm -f conftest.$ac_objext
7209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210  (eval $ac_compile) 2>conftest.er1
7211  ac_status=$?
7212  grep -v '^ *+' conftest.er1 >conftest.err
7213  rm -f conftest.er1
7214  cat conftest.err >&5
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); } &&
7217         { ac_try='test -z "$ac_c_werror_flag"
7218                         || test ! -s conftest.err'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; } &&
7224         { ac_try='test -s conftest.$ac_objext'
7225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226  (eval $ac_try) 2>&5
7227  ac_status=$?
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); }; }; then
7230  eval "$as_ac_Header=yes"
7231else
7232  echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235eval "$as_ac_Header=no"
7236fi
7237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238fi
7239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7241if test `eval echo '${'$as_ac_Header'}'` = yes; then
7242  cat >>confdefs.h <<_ACEOF
7243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7244_ACEOF
7245
7246fi
7247
7248done
7249
7250
7251
7252for ac_header in dlfcn.h
7253do
7254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7255if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256  echo "$as_me:$LINENO: checking for $ac_header" >&5
7257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7258if eval "test \"\${$as_ac_Header+set}\" = set"; then
7259  echo $ECHO_N "(cached) $ECHO_C" >&6
7260fi
7261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7263else
7264  # Is the header compilable?
7265echo "$as_me:$LINENO: checking $ac_header usability" >&5
7266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7267cat >conftest.$ac_ext <<_ACEOF
7268/* confdefs.h.  */
7269_ACEOF
7270cat confdefs.h >>conftest.$ac_ext
7271cat >>conftest.$ac_ext <<_ACEOF
7272/* end confdefs.h.  */
7273$ac_includes_default
7274#include <$ac_header>
7275_ACEOF
7276rm -f conftest.$ac_objext
7277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278  (eval $ac_compile) 2>conftest.er1
7279  ac_status=$?
7280  grep -v '^ *+' conftest.er1 >conftest.err
7281  rm -f conftest.er1
7282  cat conftest.err >&5
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); } &&
7285         { ac_try='test -z "$ac_c_werror_flag"
7286                         || test ! -s conftest.err'
7287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288  (eval $ac_try) 2>&5
7289  ac_status=$?
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); }; } &&
7292         { ac_try='test -s conftest.$ac_objext'
7293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294  (eval $ac_try) 2>&5
7295  ac_status=$?
7296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297  (exit $ac_status); }; }; then
7298  ac_header_compiler=yes
7299else
7300  echo "$as_me: failed program was:" >&5
7301sed 's/^/| /' conftest.$ac_ext >&5
7302
7303ac_header_compiler=no
7304fi
7305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7307echo "${ECHO_T}$ac_header_compiler" >&6
7308
7309# Is the header present?
7310echo "$as_me:$LINENO: checking $ac_header presence" >&5
7311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7312cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h.  */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h.  */
7318#include <$ac_header>
7319_ACEOF
7320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7322  ac_status=$?
7323  grep -v '^ *+' conftest.er1 >conftest.err
7324  rm -f conftest.er1
7325  cat conftest.err >&5
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); } >/dev/null; then
7328  if test -s conftest.err; then
7329    ac_cpp_err=$ac_c_preproc_warn_flag
7330    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7331  else
7332    ac_cpp_err=
7333  fi
7334else
7335  ac_cpp_err=yes
7336fi
7337if test -z "$ac_cpp_err"; then
7338  ac_header_preproc=yes
7339else
7340  echo "$as_me: failed program was:" >&5
7341sed 's/^/| /' conftest.$ac_ext >&5
7342
7343  ac_header_preproc=no
7344fi
7345rm -f conftest.err conftest.$ac_ext
7346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7347echo "${ECHO_T}$ac_header_preproc" >&6
7348
7349# So?  What about this header?
7350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7351  yes:no: )
7352    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7354    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7356    ac_header_preproc=yes
7357    ;;
7358  no:yes:* )
7359    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7361    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7362echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7363    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7365    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7366echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7367    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7369    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7371    (
7372      cat <<\_ASBOX
7373## --------------------------------------------------------------- ##
7374## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7375## --------------------------------------------------------------- ##
7376_ASBOX
7377    ) |
7378      sed "s/^/$as_me: WARNING:     /" >&2
7379    ;;
7380esac
7381echo "$as_me:$LINENO: checking for $ac_header" >&5
7382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384  echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386  eval "$as_ac_Header=\$ac_header_preproc"
7387fi
7388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390
7391fi
7392if test `eval echo '${'$as_ac_Header'}'` = yes; then
7393  cat >>confdefs.h <<_ACEOF
7394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7395_ACEOF
7396
7397fi
7398
7399done
7400
7401ac_ext=cc
7402ac_cpp='$CXXCPP $CPPFLAGS'
7403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7406if test -n "$ac_tool_prefix"; then
7407  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7408  do
7409    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7410set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7411echo "$as_me:$LINENO: checking for $ac_word" >&5
7412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7413if test "${ac_cv_prog_CXX+set}" = set; then
7414  echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416  if test -n "$CXX"; then
7417  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422  IFS=$as_save_IFS
7423  test -z "$as_dir" && as_dir=.
7424  for ac_exec_ext in '' $ac_executable_extensions; do
7425  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428    break 2
7429  fi
7430done
7431done
7432
7433fi
7434fi
7435CXX=$ac_cv_prog_CXX
7436if test -n "$CXX"; then
7437  echo "$as_me:$LINENO: result: $CXX" >&5
7438echo "${ECHO_T}$CXX" >&6
7439else
7440  echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6
7442fi
7443
7444    test -n "$CXX" && break
7445  done
7446fi
7447if test -z "$CXX"; then
7448  ac_ct_CXX=$CXX
7449  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7450do
7451  # Extract the first word of "$ac_prog", so it can be a program name with args.
7452set dummy $ac_prog; ac_word=$2
7453echo "$as_me:$LINENO: checking for $ac_word" >&5
7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7455if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7456  echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458  if test -n "$ac_ct_CXX"; then
7459  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  test -z "$as_dir" && as_dir=.
7466  for ac_exec_ext in '' $ac_executable_extensions; do
7467  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468    ac_cv_prog_ac_ct_CXX="$ac_prog"
7469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470    break 2
7471  fi
7472done
7473done
7474
7475fi
7476fi
7477ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7478if test -n "$ac_ct_CXX"; then
7479  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7480echo "${ECHO_T}$ac_ct_CXX" >&6
7481else
7482  echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6
7484fi
7485
7486  test -n "$ac_ct_CXX" && break
7487done
7488test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7489
7490  CXX=$ac_ct_CXX
7491fi
7492
7493
7494# Provide some information about the compiler.
7495echo "$as_me:$LINENO:" \
7496     "checking for C++ compiler version" >&5
7497ac_compiler=`set X $ac_compile; echo $2`
7498{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7499  (eval $ac_compiler --version </dev/null >&5) 2>&5
7500  ac_status=$?
7501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502  (exit $ac_status); }
7503{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7504  (eval $ac_compiler -v </dev/null >&5) 2>&5
7505  ac_status=$?
7506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507  (exit $ac_status); }
7508{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7509  (eval $ac_compiler -V </dev/null >&5) 2>&5
7510  ac_status=$?
7511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512  (exit $ac_status); }
7513
7514echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7515echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7516if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7517  echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519  cat >conftest.$ac_ext <<_ACEOF
7520/* confdefs.h.  */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h.  */
7525
7526#ifdef F77_DUMMY_MAIN
7527
7528#  ifdef __cplusplus
7529     extern "C"
7530#  endif
7531   int F77_DUMMY_MAIN() { return 1; }
7532
7533#endif
7534int
7535main ()
7536{
7537#ifndef __GNUC__
7538       choke me
7539#endif
7540
7541  ;
7542  return 0;
7543}
7544_ACEOF
7545rm -f conftest.$ac_objext
7546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547  (eval $ac_compile) 2>conftest.er1
7548  ac_status=$?
7549  grep -v '^ *+' conftest.er1 >conftest.err
7550  rm -f conftest.er1
7551  cat conftest.err >&5
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); } &&
7554         { ac_try='test -z "$ac_cxx_werror_flag"
7555                         || test ! -s conftest.err'
7556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557  (eval $ac_try) 2>&5
7558  ac_status=$?
7559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560  (exit $ac_status); }; } &&
7561         { ac_try='test -s conftest.$ac_objext'
7562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563  (eval $ac_try) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); }; }; then
7567  ac_compiler_gnu=yes
7568else
7569  echo "$as_me: failed program was:" >&5
7570sed 's/^/| /' conftest.$ac_ext >&5
7571
7572ac_compiler_gnu=no
7573fi
7574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7575ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7576
7577fi
7578echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7579echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7580GXX=`test $ac_compiler_gnu = yes && echo yes`
7581ac_test_CXXFLAGS=${CXXFLAGS+set}
7582ac_save_CXXFLAGS=$CXXFLAGS
7583CXXFLAGS="-g"
7584echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7585echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7586if test "${ac_cv_prog_cxx_g+set}" = set; then
7587  echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589  cat >conftest.$ac_ext <<_ACEOF
7590/* confdefs.h.  */
7591_ACEOF
7592cat confdefs.h >>conftest.$ac_ext
7593cat >>conftest.$ac_ext <<_ACEOF
7594/* end confdefs.h.  */
7595
7596#ifdef F77_DUMMY_MAIN
7597
7598#  ifdef __cplusplus
7599     extern "C"
7600#  endif
7601   int F77_DUMMY_MAIN() { return 1; }
7602
7603#endif
7604int
7605main ()
7606{
7607
7608  ;
7609  return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext
7613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614  (eval $ac_compile) 2>conftest.er1
7615  ac_status=$?
7616  grep -v '^ *+' conftest.er1 >conftest.err
7617  rm -f conftest.er1
7618  cat conftest.err >&5
7619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620  (exit $ac_status); } &&
7621         { ac_try='test -z "$ac_cxx_werror_flag"
7622                         || test ! -s conftest.err'
7623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624  (eval $ac_try) 2>&5
7625  ac_status=$?
7626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627  (exit $ac_status); }; } &&
7628         { ac_try='test -s conftest.$ac_objext'
7629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630  (eval $ac_try) 2>&5
7631  ac_status=$?
7632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633  (exit $ac_status); }; }; then
7634  ac_cv_prog_cxx_g=yes
7635else
7636  echo "$as_me: failed program was:" >&5
7637sed 's/^/| /' conftest.$ac_ext >&5
7638
7639ac_cv_prog_cxx_g=no
7640fi
7641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7642fi
7643echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7644echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7645if test "$ac_test_CXXFLAGS" = set; then
7646  CXXFLAGS=$ac_save_CXXFLAGS
7647elif test $ac_cv_prog_cxx_g = yes; then
7648  if test "$GXX" = yes; then
7649    CXXFLAGS="-g -O2"
7650  else
7651    CXXFLAGS="-g"
7652  fi
7653else
7654  if test "$GXX" = yes; then
7655    CXXFLAGS="-O2"
7656  else
7657    CXXFLAGS=
7658  fi
7659fi
7660for ac_declaration in \
7661   '' \
7662   'extern "C" void std::exit (int) throw (); using std::exit;' \
7663   'extern "C" void std::exit (int); using std::exit;' \
7664   'extern "C" void exit (int) throw ();' \
7665   'extern "C" void exit (int);' \
7666   'void exit (int);'
7667do
7668  cat >conftest.$ac_ext <<_ACEOF
7669/* confdefs.h.  */
7670_ACEOF
7671cat confdefs.h >>conftest.$ac_ext
7672cat >>conftest.$ac_ext <<_ACEOF
7673/* end confdefs.h.  */
7674$ac_declaration
7675#include <stdlib.h>
7676#ifdef F77_DUMMY_MAIN
7677
7678#  ifdef __cplusplus
7679     extern "C"
7680#  endif
7681   int F77_DUMMY_MAIN() { return 1; }
7682
7683#endif
7684int
7685main ()
7686{
7687exit (42);
7688  ;
7689  return 0;
7690}
7691_ACEOF
7692rm -f conftest.$ac_objext
7693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7694  (eval $ac_compile) 2>conftest.er1
7695  ac_status=$?
7696  grep -v '^ *+' conftest.er1 >conftest.err
7697  rm -f conftest.er1
7698  cat conftest.err >&5
7699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700  (exit $ac_status); } &&
7701         { ac_try='test -z "$ac_cxx_werror_flag"
7702                         || test ! -s conftest.err'
7703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704  (eval $ac_try) 2>&5
7705  ac_status=$?
7706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707  (exit $ac_status); }; } &&
7708         { ac_try='test -s conftest.$ac_objext'
7709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710  (eval $ac_try) 2>&5
7711  ac_status=$?
7712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713  (exit $ac_status); }; }; then
7714  :
7715else
7716  echo "$as_me: failed program was:" >&5
7717sed 's/^/| /' conftest.$ac_ext >&5
7718
7719continue
7720fi
7721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7722  cat >conftest.$ac_ext <<_ACEOF
7723/* confdefs.h.  */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h.  */
7728$ac_declaration
7729#ifdef F77_DUMMY_MAIN
7730
7731#  ifdef __cplusplus
7732     extern "C"
7733#  endif
7734   int F77_DUMMY_MAIN() { return 1; }
7735
7736#endif
7737int
7738main ()
7739{
7740exit (42);
7741  ;
7742  return 0;
7743}
7744_ACEOF
7745rm -f conftest.$ac_objext
7746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7747  (eval $ac_compile) 2>conftest.er1
7748  ac_status=$?
7749  grep -v '^ *+' conftest.er1 >conftest.err
7750  rm -f conftest.er1
7751  cat conftest.err >&5
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); } &&
7754         { ac_try='test -z "$ac_cxx_werror_flag"
7755                         || test ! -s conftest.err'
7756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757  (eval $ac_try) 2>&5
7758  ac_status=$?
7759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760  (exit $ac_status); }; } &&
7761         { ac_try='test -s conftest.$ac_objext'
7762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763  (eval $ac_try) 2>&5
7764  ac_status=$?
7765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766  (exit $ac_status); }; }; then
7767  break
7768else
7769  echo "$as_me: failed program was:" >&5
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7772fi
7773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7774done
7775rm -f conftest*
7776if test -n "$ac_declaration"; then
7777  echo '#ifdef __cplusplus' >>confdefs.h
7778  echo $ac_declaration      >>confdefs.h
7779  echo '#endif'             >>confdefs.h
7780fi
7781
7782ac_ext=cc
7783ac_cpp='$CXXCPP $CPPFLAGS'
7784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7787
7788depcc="$CXX"  am_compiler_list=
7789
7790echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7791echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7792if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7793  echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7796  # We make a subdir and do the tests there.  Otherwise we can end up
7797  # making bogus files that we don't know about and never remove.  For
7798  # instance it was reported that on HP-UX the gcc test will end up
7799  # making a dummy file named `D' -- because `-MD' means `put the output
7800  # in D'.
7801  mkdir conftest.dir
7802  # Copy depcomp to subdir because otherwise we won't find it if we're
7803  # using a relative directory.
7804  cp "$am_depcomp" conftest.dir
7805  cd conftest.dir
7806  # We will build objects and dependencies in a subdirectory because
7807  # it helps to detect inapplicable dependency modes.  For instance
7808  # both Tru64's cc and ICC support -MD to output dependencies as a
7809  # side effect of compilation, but ICC will put the dependencies in
7810  # the current directory while Tru64 will put them in the object
7811  # directory.
7812  mkdir sub
7813
7814  am_cv_CXX_dependencies_compiler_type=none
7815  if test "$am_compiler_list" = ""; then
7816     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7817  fi
7818  for depmode in $am_compiler_list; do
7819    # Setup a source with many dependencies, because some compilers
7820    # like to wrap large dependency lists on column 80 (with \), and
7821    # we should not choose a depcomp mode which is confused by this.
7822    #
7823    # We need to recreate these files for each test, as the compiler may
7824    # overwrite some of them when testing with obscure command lines.
7825    # This happens at least with the AIX C compiler.
7826    : > sub/conftest.c
7827    for i in 1 2 3 4 5 6; do
7828      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7829      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7830      # Solaris 8's {/usr,}/bin/sh.
7831      touch sub/conftst$i.h
7832    done
7833    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7834
7835    case $depmode in
7836    nosideeffect)
7837      # after this tag, mechanisms are not by side-effect, so they'll
7838      # only be used when explicitly requested
7839      if test "x$enable_dependency_tracking" = xyes; then
7840        continue
7841      else
7842        break
7843      fi
7844      ;;
7845    none) break ;;
7846    esac
7847    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7848    # mode.  It turns out that the SunPro C++ compiler does not properly
7849    # handle `-M -o', and we need to detect this.
7850    if depmode=$depmode \
7851       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7852       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7853       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7854         >/dev/null 2>conftest.err &&
7855       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7856       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7857       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7858      # icc doesn't choke on unknown options, it will just issue warnings
7859      # or remarks (even with -Werror).  So we grep stderr for any message
7860      # that says an option was ignored or not supported.
7861      # When given -MP, icc 7.0 and 7.1 complain thusly:
7862      #   icc: Command line warning: ignoring option '-M'; no argument required
7863      # The diagnosis changed in icc 8.0:
7864      #   icc: Command line remark: option '-MP' not supported
7865      if (grep 'ignoring option' conftest.err ||
7866          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7867        am_cv_CXX_dependencies_compiler_type=$depmode
7868        break
7869      fi
7870    fi
7871  done
7872
7873  cd ..
7874  rm -rf conftest.dir
7875else
7876  am_cv_CXX_dependencies_compiler_type=none
7877fi
7878
7879fi
7880echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7881echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7882CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7883
7884
7885
7886if
7887  test "x$enable_dependency_tracking" != xno \
7888  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7889  am__fastdepCXX_TRUE=
7890  am__fastdepCXX_FALSE='#'
7891else
7892  am__fastdepCXX_TRUE='#'
7893  am__fastdepCXX_FALSE=
7894fi
7895
7896
7897
7898
7899if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7900    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7901    (test "X$CXX" != "Xg++"))) ; then
7902  ac_ext=cc
7903ac_cpp='$CXXCPP $CPPFLAGS'
7904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7907echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7908echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7909if test -z "$CXXCPP"; then
7910  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913      # Double quotes because CXXCPP needs to be expanded
7914    for CXXCPP in "$CXX -E" "/lib/cpp"
7915    do
7916      ac_preproc_ok=false
7917for ac_cxx_preproc_warn_flag in '' yes
7918do
7919  # Use a header file that comes with gcc, so configuring glibc
7920  # with a fresh cross-compiler works.
7921  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7922  # <limits.h> exists even on freestanding compilers.
7923  # On the NeXT, cc -E runs the code through the compiler's parser,
7924  # not just through cpp. "Syntax error" is here to catch this case.
7925  cat >conftest.$ac_ext <<_ACEOF
7926/* confdefs.h.  */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h.  */
7931#ifdef __STDC__
7932# include <limits.h>
7933#else
7934# include <assert.h>
7935#endif
7936                     Syntax error
7937_ACEOF
7938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7939  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7940  ac_status=$?
7941  grep -v '^ *+' conftest.er1 >conftest.err
7942  rm -f conftest.er1
7943  cat conftest.err >&5
7944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945  (exit $ac_status); } >/dev/null; then
7946  if test -s conftest.err; then
7947    ac_cpp_err=$ac_cxx_preproc_warn_flag
7948    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7949  else
7950    ac_cpp_err=
7951  fi
7952else
7953  ac_cpp_err=yes
7954fi
7955if test -z "$ac_cpp_err"; then
7956  :
7957else
7958  echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
7961  # Broken: fails on valid input.
7962continue
7963fi
7964rm -f conftest.err conftest.$ac_ext
7965
7966  # OK, works on sane cases.  Now check whether non-existent headers
7967  # can be detected and how.
7968  cat >conftest.$ac_ext <<_ACEOF
7969/* confdefs.h.  */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h.  */
7974#include <ac_nonexistent.h>
7975_ACEOF
7976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7978  ac_status=$?
7979  grep -v '^ *+' conftest.er1 >conftest.err
7980  rm -f conftest.er1
7981  cat conftest.err >&5
7982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983  (exit $ac_status); } >/dev/null; then
7984  if test -s conftest.err; then
7985    ac_cpp_err=$ac_cxx_preproc_warn_flag
7986    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7987  else
7988    ac_cpp_err=
7989  fi
7990else
7991  ac_cpp_err=yes
7992fi
7993if test -z "$ac_cpp_err"; then
7994  # Broken: success on invalid input.
7995continue
7996else
7997  echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
8000  # Passes both tests.
8001ac_preproc_ok=:
8002break
8003fi
8004rm -f conftest.err conftest.$ac_ext
8005
8006done
8007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8008rm -f conftest.err conftest.$ac_ext
8009if $ac_preproc_ok; then
8010  break
8011fi
8012
8013    done
8014    ac_cv_prog_CXXCPP=$CXXCPP
8015
8016fi
8017  CXXCPP=$ac_cv_prog_CXXCPP
8018else
8019  ac_cv_prog_CXXCPP=$CXXCPP
8020fi
8021echo "$as_me:$LINENO: result: $CXXCPP" >&5
8022echo "${ECHO_T}$CXXCPP" >&6
8023ac_preproc_ok=false
8024for ac_cxx_preproc_warn_flag in '' yes
8025do
8026  # Use a header file that comes with gcc, so configuring glibc
8027  # with a fresh cross-compiler works.
8028  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029  # <limits.h> exists even on freestanding compilers.
8030  # On the NeXT, cc -E runs the code through the compiler's parser,
8031  # not just through cpp. "Syntax error" is here to catch this case.
8032  cat >conftest.$ac_ext <<_ACEOF
8033/* confdefs.h.  */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h.  */
8038#ifdef __STDC__
8039# include <limits.h>
8040#else
8041# include <assert.h>
8042#endif
8043                     Syntax error
8044_ACEOF
8045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8046  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8047  ac_status=$?
8048  grep -v '^ *+' conftest.er1 >conftest.err
8049  rm -f conftest.er1
8050  cat conftest.err >&5
8051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052  (exit $ac_status); } >/dev/null; then
8053  if test -s conftest.err; then
8054    ac_cpp_err=$ac_cxx_preproc_warn_flag
8055    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8056  else
8057    ac_cpp_err=
8058  fi
8059else
8060  ac_cpp_err=yes
8061fi
8062if test -z "$ac_cpp_err"; then
8063  :
8064else
8065  echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068  # Broken: fails on valid input.
8069continue
8070fi
8071rm -f conftest.err conftest.$ac_ext
8072
8073  # OK, works on sane cases.  Now check whether non-existent headers
8074  # can be detected and how.
8075  cat >conftest.$ac_ext <<_ACEOF
8076/* confdefs.h.  */
8077_ACEOF
8078cat confdefs.h >>conftest.$ac_ext
8079cat >>conftest.$ac_ext <<_ACEOF
8080/* end confdefs.h.  */
8081#include <ac_nonexistent.h>
8082_ACEOF
8083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8085  ac_status=$?
8086  grep -v '^ *+' conftest.er1 >conftest.err
8087  rm -f conftest.er1
8088  cat conftest.err >&5
8089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090  (exit $ac_status); } >/dev/null; then
8091  if test -s conftest.err; then
8092    ac_cpp_err=$ac_cxx_preproc_warn_flag
8093    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8094  else
8095    ac_cpp_err=
8096  fi
8097else
8098  ac_cpp_err=yes
8099fi
8100if test -z "$ac_cpp_err"; then
8101  # Broken: success on invalid input.
8102continue
8103else
8104  echo "$as_me: failed program was:" >&5
8105sed 's/^/| /' conftest.$ac_ext >&5
8106
8107  # Passes both tests.
8108ac_preproc_ok=:
8109break
8110fi
8111rm -f conftest.err conftest.$ac_ext
8112
8113done
8114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8115rm -f conftest.err conftest.$ac_ext
8116if $ac_preproc_ok; then
8117  :
8118else
8119  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8120See \`config.log' for more details." >&5
8121echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8122See \`config.log' for more details." >&2;}
8123   { (exit 1); exit 1; }; }
8124fi
8125
8126ac_ext=cc
8127ac_cpp='$CXXCPP $CPPFLAGS'
8128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8131
8132fi
8133
8134
8135
8136# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8137
8138# find the maximum length of command line arguments
8139echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8140echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8141if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8142  echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144    i=0
8145  teststring="ABCD"
8146
8147  case $build_os in
8148  msdosdjgpp*)
8149    # On DJGPP, this test can blow up pretty badly due to problems in libc
8150    # (any single argument exceeding 2000 bytes causes a buffer overrun
8151    # during glob expansion).  Even if it were fixed, the result of this
8152    # check would be larger than it should be.
8153    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8154    ;;
8155
8156  gnu*)
8157    # Under GNU Hurd, this test is not required because there is
8158    # no limit to the length of command line arguments.
8159    # Libtool will interpret -1 as no limit whatsoever
8160    lt_cv_sys_max_cmd_len=-1;
8161    ;;
8162
8163  cygwin* | mingw*)
8164    # On Win9x/ME, this test blows up -- it succeeds, but takes
8165    # about 5 minutes as the teststring grows exponentially.
8166    # Worse, since 9x/ME are not pre-emptively multitasking,
8167    # you end up with a "frozen" computer, even though with patience
8168    # the test eventually succeeds (with a max line length of 256k).
8169    # Instead, let's just punt: use the minimum linelength reported by
8170    # all of the supported platforms: 8192 (on NT/2K/XP).
8171    lt_cv_sys_max_cmd_len=8192;
8172    ;;
8173
8174  amigaos*)
8175    # On AmigaOS with pdksh, this test takes hours, literally.
8176    # So we just punt and use a minimum line length of 8192.
8177    lt_cv_sys_max_cmd_len=8192;
8178    ;;
8179
8180  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8181    # This has been around since 386BSD, at least.  Likely further.
8182    if test -x /sbin/sysctl; then
8183      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8184    elif test -x /usr/sbin/sysctl; then
8185      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8186    else
8187      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8188    fi
8189    # And add a safety zone
8190    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8191    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8192    ;;
8193
8194  interix*)
8195    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8196    lt_cv_sys_max_cmd_len=196608
8197    ;;
8198
8199  osf*)
8200    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8201    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8202    # nice to cause kernel panics so lets avoid the loop below.
8203    # First set a reasonable default.
8204    lt_cv_sys_max_cmd_len=16384
8205    #
8206    if test -x /sbin/sysconfig; then
8207      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8208        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8209      esac
8210    fi
8211    ;;
8212  sco3.2v5*)
8213    lt_cv_sys_max_cmd_len=102400
8214    ;;
8215  sysv5* | sco5v6* | sysv4.2uw2*)
8216    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8217    if test -n "$kargmax"; then
8218      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8219    else
8220      lt_cv_sys_max_cmd_len=32768
8221    fi
8222    ;;
8223  *)
8224    # If test is not a shell built-in, we'll probably end up computing a
8225    # maximum length that is only half of the actual maximum length, but
8226    # we can't tell.
8227    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8228    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8229               = "XX$teststring") >/dev/null 2>&1 &&
8230            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8231            lt_cv_sys_max_cmd_len=$new_result &&
8232            test $i != 17 # 1/2 MB should be enough
8233    do
8234      i=`expr $i + 1`
8235      teststring=$teststring$teststring
8236    done
8237    teststring=
8238    # Add a significant safety factor because C++ compilers can tack on massive
8239    # amounts of additional arguments before passing them to the linker.
8240    # It appears as though 1/2 is a usable value.
8241    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8242    ;;
8243  esac
8244
8245fi
8246
8247if test -n $lt_cv_sys_max_cmd_len ; then
8248  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8249echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8250else
8251  echo "$as_me:$LINENO: result: none" >&5
8252echo "${ECHO_T}none" >&6
8253fi
8254
8255
8256
8257
8258# Check for command to grab the raw symbol name followed by C symbol from nm.
8259echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8260echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8261if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8262  echo $ECHO_N "(cached) $ECHO_C" >&6
8263else
8264
8265# These are sane defaults that work on at least a few old systems.
8266# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8267
8268# Character class describing NM global symbol codes.
8269symcode='[BCDEGRST]'
8270
8271# Regexp to match symbols that can be accessed directly from C.
8272sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8273
8274# Transform an extracted symbol line into a proper C declaration
8275lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8276
8277# Transform an extracted symbol line into symbol name and symbol address
8278lt_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'"
8279
8280# Define system-specific variables.
8281case $host_os in
8282aix*)
8283  symcode='[BCDT]'
8284  ;;
8285cygwin* | mingw* | pw32*)
8286  symcode='[ABCDGISTW]'
8287  ;;
8288hpux*) # Its linker distinguishes data from code symbols
8289  if test "$host_cpu" = ia64; then
8290    symcode='[ABCDEGRST]'
8291  fi
8292  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8293  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'"
8294  ;;
8295linux*)
8296  if test "$host_cpu" = ia64; then
8297    symcode='[ABCDGIRSTW]'
8298    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8299    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8300  fi
8301  ;;
8302irix* | nonstopux*)
8303  symcode='[BCDEGRST]'
8304  ;;
8305osf*)
8306  symcode='[BCDEGQRST]'
8307  ;;
8308solaris*)
8309  symcode='[BDRT]'
8310  ;;
8311sco3.2v5*)
8312  symcode='[DT]'
8313  ;;
8314sysv4.2uw2*)
8315  symcode='[DT]'
8316  ;;
8317sysv5* | sco5v6* | unixware* | OpenUNIX*)
8318  symcode='[ABDT]'
8319  ;;
8320sysv4)
8321  symcode='[DFNSTU]'
8322  ;;
8323esac
8324
8325# Handle CRLF in mingw tool chain
8326opt_cr=
8327case $build_os in
8328mingw*)
8329  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8330  ;;
8331esac
8332
8333# If we're using GNU nm, then use its standard symbol codes.
8334case `$NM -V 2>&1` in
8335*GNU* | *'with BFD'*)
8336  symcode='[ABCDGIRSTW]' ;;
8337esac
8338
8339# Try without a prefix undercore, then with it.
8340for ac_symprfx in "" "_"; do
8341
8342  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8343  symxfrm="\\1 $ac_symprfx\\2 \\2"
8344
8345  # Write the raw and C identifiers.
8346  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8347
8348  # Check to see that the pipe works correctly.
8349  pipe_works=no
8350
8351  rm -f conftest*
8352  cat > conftest.$ac_ext <<EOF
8353#ifdef __cplusplus
8354extern "C" {
8355#endif
8356char nm_test_var;
8357void nm_test_func(){}
8358#ifdef __cplusplus
8359}
8360#endif
8361int main(){nm_test_var='a';nm_test_func();return(0);}
8362EOF
8363
8364  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365  (eval $ac_compile) 2>&5
8366  ac_status=$?
8367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368  (exit $ac_status); }; then
8369    # Now try to grab the symbols.
8370    nlist=conftest.nm
8371    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8372  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8373  ac_status=$?
8374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375  (exit $ac_status); } && test -s "$nlist"; then
8376      # Try sorting and uniquifying the output.
8377      if sort "$nlist" | uniq > "$nlist"T; then
8378        mv -f "$nlist"T "$nlist"
8379      else
8380        rm -f "$nlist"T
8381      fi
8382
8383      # Make sure that we snagged all the symbols we need.
8384      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8385        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8386          cat <<EOF > conftest.$ac_ext
8387#ifdef __cplusplus
8388extern "C" {
8389#endif
8390
8391EOF
8392          # Now generate the symbol file.
8393          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8394
8395          cat <<EOF >> conftest.$ac_ext
8396#if defined (__STDC__) && __STDC__
8397# define lt_ptr_t void *
8398#else
8399# define lt_ptr_t char *
8400# define const
8401#endif
8402
8403/* The mapping between symbol names and symbols. */
8404const struct {
8405  const char *name;
8406  lt_ptr_t address;
8407}
8408lt_preloaded_symbols[] =
8409{
8410EOF
8411          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8412          cat <<\EOF >> conftest.$ac_ext
8413  {0, (lt_ptr_t) 0}
8414};
8415
8416#ifdef __cplusplus
8417}
8418#endif
8419EOF
8420          # Now try linking the two files.
8421          mv conftest.$ac_objext conftstm.$ac_objext
8422          lt_save_LIBS="$LIBS"
8423          lt_save_CFLAGS="$CFLAGS"
8424          LIBS="conftstm.$ac_objext"
8425          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8426          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427  (eval $ac_link) 2>&5
8428  ac_status=$?
8429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8431            pipe_works=yes
8432          fi
8433          LIBS="$lt_save_LIBS"
8434          CFLAGS="$lt_save_CFLAGS"
8435        else
8436          echo "cannot find nm_test_func in $nlist" >&5
8437        fi
8438      else
8439        echo "cannot find nm_test_var in $nlist" >&5
8440      fi
8441    else
8442      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8443    fi
8444  else
8445    echo "$progname: failed program was:" >&5
8446    cat conftest.$ac_ext >&5
8447  fi
8448  rm -f conftest* conftst*
8449
8450  # Do not use the global_symbol_pipe unless it works.
8451  if test "$pipe_works" = yes; then
8452    break
8453  else
8454    lt_cv_sys_global_symbol_pipe=
8455  fi
8456done
8457
8458fi
8459
8460if test -z "$lt_cv_sys_global_symbol_pipe"; then
8461  lt_cv_sys_global_symbol_to_cdecl=
8462fi
8463if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8464  echo "$as_me:$LINENO: result: failed" >&5
8465echo "${ECHO_T}failed" >&6
8466else
8467  echo "$as_me:$LINENO: result: ok" >&5
8468echo "${ECHO_T}ok" >&6
8469fi
8470
8471echo "$as_me:$LINENO: checking for objdir" >&5
8472echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8473if test "${lt_cv_objdir+set}" = set; then
8474  echo $ECHO_N "(cached) $ECHO_C" >&6
8475else
8476  rm -f .libs 2>/dev/null
8477mkdir .libs 2>/dev/null
8478if test -d .libs; then
8479  lt_cv_objdir=.libs
8480else
8481  # MS-DOS does not allow filenames that begin with a dot.
8482  lt_cv_objdir=_libs
8483fi
8484rmdir .libs 2>/dev/null
8485fi
8486echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8487echo "${ECHO_T}$lt_cv_objdir" >&6
8488objdir=$lt_cv_objdir
8489
8490
8491
8492
8493
8494case $host_os in
8495aix3*)
8496  # AIX sometimes has problems with the GCC collect2 program.  For some
8497  # reason, if we set the COLLECT_NAMES environment variable, the problems
8498  # vanish in a puff of smoke.
8499  if test "X${COLLECT_NAMES+set}" != Xset; then
8500    COLLECT_NAMES=
8501    export COLLECT_NAMES
8502  fi
8503  ;;
8504esac
8505
8506# Sed substitution that helps us do robust quoting.  It backslashifies
8507# metacharacters that are still active within double-quoted strings.
8508Xsed='sed -e 1s/^X//'
8509sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8510
8511# Same as above, but do not quote variable references.
8512double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8513
8514# Sed substitution to delay expansion of an escaped shell variable in a
8515# double_quote_subst'ed string.
8516delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8517
8518# Sed substitution to avoid accidental globbing in evaled expressions
8519no_glob_subst='s/\*/\\\*/g'
8520
8521# Constants:
8522rm="rm -f"
8523
8524# Global variables:
8525default_ofile=libtool
8526can_build_shared=yes
8527
8528# All known linkers require a `.a' archive for static linking (except MSVC,
8529# which needs '.lib').
8530libext=a
8531ltmain="$ac_aux_dir/ltmain.sh"
8532ofile="$default_ofile"
8533with_gnu_ld="$lt_cv_prog_gnu_ld"
8534
8535if test -n "$ac_tool_prefix"; then
8536  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8537set dummy ${ac_tool_prefix}ar; ac_word=$2
8538echo "$as_me:$LINENO: checking for $ac_word" >&5
8539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8540if test "${ac_cv_prog_AR+set}" = set; then
8541  echo $ECHO_N "(cached) $ECHO_C" >&6
8542else
8543  if test -n "$AR"; then
8544  ac_cv_prog_AR="$AR" # Let the user override the test.
8545else
8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549  IFS=$as_save_IFS
8550  test -z "$as_dir" && as_dir=.
8551  for ac_exec_ext in '' $ac_executable_extensions; do
8552  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553    ac_cv_prog_AR="${ac_tool_prefix}ar"
8554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8555    break 2
8556  fi
8557done
8558done
8559
8560fi
8561fi
8562AR=$ac_cv_prog_AR
8563if test -n "$AR"; then
8564  echo "$as_me:$LINENO: result: $AR" >&5
8565echo "${ECHO_T}$AR" >&6
8566else
8567  echo "$as_me:$LINENO: result: no" >&5
8568echo "${ECHO_T}no" >&6
8569fi
8570
8571fi
8572if test -z "$ac_cv_prog_AR"; then
8573  ac_ct_AR=$AR
8574  # Extract the first word of "ar", so it can be a program name with args.
8575set dummy ar; ac_word=$2
8576echo "$as_me:$LINENO: checking for $ac_word" >&5
8577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8578if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8579  echo $ECHO_N "(cached) $ECHO_C" >&6
8580else
8581  if test -n "$ac_ct_AR"; then
8582  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8583else
8584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585for as_dir in $PATH
8586do
8587  IFS=$as_save_IFS
8588  test -z "$as_dir" && as_dir=.
8589  for ac_exec_ext in '' $ac_executable_extensions; do
8590  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8591    ac_cv_prog_ac_ct_AR="ar"
8592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8593    break 2
8594  fi
8595done
8596done
8597
8598  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8599fi
8600fi
8601ac_ct_AR=$ac_cv_prog_ac_ct_AR
8602if test -n "$ac_ct_AR"; then
8603  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8604echo "${ECHO_T}$ac_ct_AR" >&6
8605else
8606  echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608fi
8609
8610  AR=$ac_ct_AR
8611else
8612  AR="$ac_cv_prog_AR"
8613fi
8614
8615if test -n "$ac_tool_prefix"; then
8616  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8617set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8618echo "$as_me:$LINENO: checking for $ac_word" >&5
8619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8620if test "${ac_cv_prog_RANLIB+set}" = set; then
8621  echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623  if test -n "$RANLIB"; then
8624  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8625else
8626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627for as_dir in $PATH
8628do
8629  IFS=$as_save_IFS
8630  test -z "$as_dir" && as_dir=.
8631  for ac_exec_ext in '' $ac_executable_extensions; do
8632  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8633    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8635    break 2
8636  fi
8637done
8638done
8639
8640fi
8641fi
8642RANLIB=$ac_cv_prog_RANLIB
8643if test -n "$RANLIB"; then
8644  echo "$as_me:$LINENO: result: $RANLIB" >&5
8645echo "${ECHO_T}$RANLIB" >&6
8646else
8647  echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649fi
8650
8651fi
8652if test -z "$ac_cv_prog_RANLIB"; then
8653  ac_ct_RANLIB=$RANLIB
8654  # Extract the first word of "ranlib", so it can be a program name with args.
8655set dummy ranlib; ac_word=$2
8656echo "$as_me:$LINENO: checking for $ac_word" >&5
8657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8658if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8659  echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661  if test -n "$ac_ct_RANLIB"; then
8662  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8663else
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667  IFS=$as_save_IFS
8668  test -z "$as_dir" && as_dir=.
8669  for ac_exec_ext in '' $ac_executable_extensions; do
8670  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671    ac_cv_prog_ac_ct_RANLIB="ranlib"
8672    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673    break 2
8674  fi
8675done
8676done
8677
8678  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8679fi
8680fi
8681ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8682if test -n "$ac_ct_RANLIB"; then
8683  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8684echo "${ECHO_T}$ac_ct_RANLIB" >&6
8685else
8686  echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6
8688fi
8689
8690  RANLIB=$ac_ct_RANLIB
8691else
8692  RANLIB="$ac_cv_prog_RANLIB"
8693fi
8694
8695if test -n "$ac_tool_prefix"; then
8696  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8697set dummy ${ac_tool_prefix}strip; ac_word=$2
8698echo "$as_me:$LINENO: checking for $ac_word" >&5
8699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8700if test "${ac_cv_prog_STRIP+set}" = set; then
8701  echo $ECHO_N "(cached) $ECHO_C" >&6
8702else
8703  if test -n "$STRIP"; then
8704  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8705else
8706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707for as_dir in $PATH
8708do
8709  IFS=$as_save_IFS
8710  test -z "$as_dir" && as_dir=.
8711  for ac_exec_ext in '' $ac_executable_extensions; do
8712  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8715    break 2
8716  fi
8717done
8718done
8719
8720fi
8721fi
8722STRIP=$ac_cv_prog_STRIP
8723if test -n "$STRIP"; then
8724  echo "$as_me:$LINENO: result: $STRIP" >&5
8725echo "${ECHO_T}$STRIP" >&6
8726else
8727  echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
8729fi
8730
8731fi
8732if test -z "$ac_cv_prog_STRIP"; then
8733  ac_ct_STRIP=$STRIP
8734  # Extract the first word of "strip", so it can be a program name with args.
8735set dummy strip; ac_word=$2
8736echo "$as_me:$LINENO: checking for $ac_word" >&5
8737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8738if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8739  echo $ECHO_N "(cached) $ECHO_C" >&6
8740else
8741  if test -n "$ac_ct_STRIP"; then
8742  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8743else
8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747  IFS=$as_save_IFS
8748  test -z "$as_dir" && as_dir=.
8749  for ac_exec_ext in '' $ac_executable_extensions; do
8750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751    ac_cv_prog_ac_ct_STRIP="strip"
8752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8753    break 2
8754  fi
8755done
8756done
8757
8758  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8759fi
8760fi
8761ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8762if test -n "$ac_ct_STRIP"; then
8763  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8764echo "${ECHO_T}$ac_ct_STRIP" >&6
8765else
8766  echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
8768fi
8769
8770  STRIP=$ac_ct_STRIP
8771else
8772  STRIP="$ac_cv_prog_STRIP"
8773fi
8774
8775
8776old_CC="$CC"
8777old_CFLAGS="$CFLAGS"
8778
8779# Set sane defaults for various variables
8780test -z "$AR" && AR=ar
8781test -z "$AR_FLAGS" && AR_FLAGS=cru
8782test -z "$AS" && AS=as
8783test -z "$CC" && CC=cc
8784test -z "$LTCC" && LTCC=$CC
8785test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8786test -z "$DLLTOOL" && DLLTOOL=dlltool
8787test -z "$LD" && LD=ld
8788test -z "$LN_S" && LN_S="ln -s"
8789test -z "$MAGIC_CMD" && MAGIC_CMD=file
8790test -z "$NM" && NM=nm
8791test -z "$SED" && SED=sed
8792test -z "$OBJDUMP" && OBJDUMP=objdump
8793test -z "$RANLIB" && RANLIB=:
8794test -z "$STRIP" && STRIP=:
8795test -z "$ac_objext" && ac_objext=o
8796
8797# Determine commands to create old-style static archives.
8798old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8799old_postinstall_cmds='chmod 644 $oldlib'
8800old_postuninstall_cmds=
8801
8802if test -n "$RANLIB"; then
8803  case $host_os in
8804  openbsd*)
8805    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8806    ;;
8807  *)
8808    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8809    ;;
8810  esac
8811  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8812fi
8813
8814for cc_temp in $compiler""; do
8815  case $cc_temp in
8816    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8817    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8818    \-*) ;;
8819    *) break;;
8820  esac
8821done
8822cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8823
8824
8825# Only perform the check for file, if the check method requires it
8826case $deplibs_check_method in
8827file_magic*)
8828  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8829    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8830echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8831if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8832  echo $ECHO_N "(cached) $ECHO_C" >&6
8833else
8834  case $MAGIC_CMD in
8835[\\/*] |  ?:[\\/]*)
8836  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8837  ;;
8838*)
8839  lt_save_MAGIC_CMD="$MAGIC_CMD"
8840  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8841  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8842  for ac_dir in $ac_dummy; do
8843    IFS="$lt_save_ifs"
8844    test -z "$ac_dir" && ac_dir=.
8845    if test -f $ac_dir/${ac_tool_prefix}file; then
8846      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8847      if test -n "$file_magic_test_file"; then
8848        case $deplibs_check_method in
8849        "file_magic "*)
8850          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8851          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8852          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8853            $EGREP "$file_magic_regex" > /dev/null; then
8854            :
8855          else
8856            cat <<EOF 1>&2
8857
8858*** Warning: the command libtool uses to detect shared libraries,
8859*** $file_magic_cmd, produces output that libtool cannot recognize.
8860*** The result is that libtool may fail to recognize shared libraries
8861*** as such.  This will affect the creation of libtool libraries that
8862*** depend on shared libraries, but programs linked with such libtool
8863*** libraries will work regardless of this problem.  Nevertheless, you
8864*** may want to report the problem to your system manager and/or to
8865*** bug-libtool@gnu.org
8866
8867EOF
8868          fi ;;
8869        esac
8870      fi
8871      break
8872    fi
8873  done
8874  IFS="$lt_save_ifs"
8875  MAGIC_CMD="$lt_save_MAGIC_CMD"
8876  ;;
8877esac
8878fi
8879
8880MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8881if test -n "$MAGIC_CMD"; then
8882  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8883echo "${ECHO_T}$MAGIC_CMD" >&6
8884else
8885  echo "$as_me:$LINENO: result: no" >&5
8886echo "${ECHO_T}no" >&6
8887fi
8888
8889if test -z "$lt_cv_path_MAGIC_CMD"; then
8890  if test -n "$ac_tool_prefix"; then
8891    echo "$as_me:$LINENO: checking for file" >&5
8892echo $ECHO_N "checking for file... $ECHO_C" >&6
8893if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8894  echo $ECHO_N "(cached) $ECHO_C" >&6
8895else
8896  case $MAGIC_CMD in
8897[\\/*] |  ?:[\\/]*)
8898  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8899  ;;
8900*)
8901  lt_save_MAGIC_CMD="$MAGIC_CMD"
8902  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8903  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8904  for ac_dir in $ac_dummy; do
8905    IFS="$lt_save_ifs"
8906    test -z "$ac_dir" && ac_dir=.
8907    if test -f $ac_dir/file; then
8908      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8909      if test -n "$file_magic_test_file"; then
8910        case $deplibs_check_method in
8911        "file_magic "*)
8912          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8913          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8915            $EGREP "$file_magic_regex" > /dev/null; then
8916            :
8917          else
8918            cat <<EOF 1>&2
8919
8920*** Warning: the command libtool uses to detect shared libraries,
8921*** $file_magic_cmd, produces output that libtool cannot recognize.
8922*** The result is that libtool may fail to recognize shared libraries
8923*** as such.  This will affect the creation of libtool libraries that
8924*** depend on shared libraries, but programs linked with such libtool
8925*** libraries will work regardless of this problem.  Nevertheless, you
8926*** may want to report the problem to your system manager and/or to
8927*** bug-libtool@gnu.org
8928
8929EOF
8930          fi ;;
8931        esac
8932      fi
8933      break
8934    fi
8935  done
8936  IFS="$lt_save_ifs"
8937  MAGIC_CMD="$lt_save_MAGIC_CMD"
8938  ;;
8939esac
8940fi
8941
8942MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8943if test -n "$MAGIC_CMD"; then
8944  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8945echo "${ECHO_T}$MAGIC_CMD" >&6
8946else
8947  echo "$as_me:$LINENO: result: no" >&5
8948echo "${ECHO_T}no" >&6
8949fi
8950
8951  else
8952    MAGIC_CMD=:
8953  fi
8954fi
8955
8956  fi
8957  ;;
8958esac
8959
8960enable_dlopen=no
8961enable_win32_dll=no
8962
8963# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8964if test "${enable_libtool_lock+set}" = set; then
8965  enableval="$enable_libtool_lock"
8966
8967fi;
8968test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8969
8970
8971# Check whether --with-pic or --without-pic was given.
8972if test "${with_pic+set}" = set; then
8973  withval="$with_pic"
8974  pic_mode="$withval"
8975else
8976  pic_mode=default
8977fi;
8978test -z "$pic_mode" && pic_mode=default
8979
8980# Use C for the default configuration in the libtool script
8981tagname=
8982lt_save_CC="$CC"
8983ac_ext=c
8984ac_cpp='$CPP $CPPFLAGS'
8985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8987ac_compiler_gnu=$ac_cv_c_compiler_gnu
8988
8989
8990# Source file extension for C test sources.
8991ac_ext=c
8992
8993# Object file extension for compiled C test sources.
8994objext=o
8995objext=$objext
8996
8997# Code to be used in simple compile tests
8998lt_simple_compile_test_code="int some_variable = 0;\n"
8999
9000# Code to be used in simple link tests
9001lt_simple_link_test_code='int main(){return(0);}\n'
9002
9003
9004# If no C compiler was specified, use CC.
9005LTCC=${LTCC-"$CC"}
9006
9007# If no C compiler flags were specified, use CFLAGS.
9008LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9009
9010# Allow CC to be a program name with arguments.
9011compiler=$CC
9012
9013
9014# save warnings/boilerplate of simple test code
9015ac_outfile=conftest.$ac_objext
9016printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9017eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9018_lt_compiler_boilerplate=`cat conftest.err`
9019$rm conftest*
9020
9021ac_outfile=conftest.$ac_objext
9022printf "$lt_simple_link_test_code" >conftest.$ac_ext
9023eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9024_lt_linker_boilerplate=`cat conftest.err`
9025$rm conftest*
9026
9027
9028## CAVEAT EMPTOR:
9029## There is no encapsulation within the following macros, do not change
9030## the running order or otherwise move them around unless you know exactly
9031## what you are doing...
9032
9033lt_prog_compiler_no_builtin_flag=
9034
9035if test "$GCC" = yes; then
9036  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9037
9038
9039echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9040echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9041if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9042  echo $ECHO_N "(cached) $ECHO_C" >&6
9043else
9044  lt_cv_prog_compiler_rtti_exceptions=no
9045  ac_outfile=conftest.$ac_objext
9046   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9047   lt_compiler_flag="-fno-rtti -fno-exceptions"
9048   # Insert the option either (1) after the last *FLAGS variable, or
9049   # (2) before a word containing "conftest.", or (3) at the end.
9050   # Note that $ac_compile itself does not contain backslashes and begins
9051   # with a dollar sign (not a hyphen), so the echo should work correctly.
9052   # The option is referenced via a variable to avoid confusing sed.
9053   lt_compile=`echo "$ac_compile" | $SED \
9054   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9055   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9056   -e 's:$: $lt_compiler_flag:'`
9057   (eval echo "\"\$as_me:9057: $lt_compile\"" >&5)
9058   (eval "$lt_compile" 2>conftest.err)
9059   ac_status=$?
9060   cat conftest.err >&5
9061   echo "$as_me:9061: \$? = $ac_status" >&5
9062   if (exit $ac_status) && test -s "$ac_outfile"; then
9063     # The compiler can only warn and ignore the option if not recognized
9064     # So say no if there are warnings other than the usual output.
9065     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9066     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9067     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9068       lt_cv_prog_compiler_rtti_exceptions=yes
9069     fi
9070   fi
9071   $rm conftest*
9072
9073fi
9074echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9075echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9076
9077if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9078    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9079else
9080    :
9081fi
9082
9083fi
9084
9085lt_prog_compiler_wl=
9086lt_prog_compiler_pic=
9087lt_prog_compiler_static=
9088
9089echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9090echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9091
9092  if test "$GCC" = yes; then
9093    lt_prog_compiler_wl='-Wl,'
9094    lt_prog_compiler_static='-static'
9095
9096    case $host_os in
9097      aix*)
9098      # All AIX code is PIC.
9099      if test "$host_cpu" = ia64; then
9100        # AIX 5 now supports IA64 processor
9101        lt_prog_compiler_static='-Bstatic'
9102      fi
9103      ;;
9104
9105    amigaos*)
9106      # FIXME: we need at least 68020 code to build shared libraries, but
9107      # adding the `-m68020' flag to GCC prevents building anything better,
9108      # like `-m68040'.
9109      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9110      ;;
9111
9112    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9113      # PIC is the default for these OSes.
9114      ;;
9115
9116    mingw* | pw32* | os2*)
9117      # This hack is so that the source file can tell whether it is being
9118      # built for inclusion in a dll (and should export symbols for example).
9119      lt_prog_compiler_pic='-DDLL_EXPORT'
9120      ;;
9121
9122    darwin* | rhapsody*)
9123      # PIC is the default on this platform
9124      # Common symbols not allowed in MH_DYLIB files
9125      lt_prog_compiler_pic='-fno-common'
9126      ;;
9127
9128    interix3*)
9129      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9130      # Instead, we relocate shared libraries at runtime.
9131      ;;
9132
9133    msdosdjgpp*)
9134      # Just because we use GCC doesn't mean we suddenly get shared libraries
9135      # on systems that don't support them.
9136      lt_prog_compiler_can_build_shared=no
9137      enable_shared=no
9138      ;;
9139
9140    sysv4*MP*)
9141      if test -d /usr/nec; then
9142        lt_prog_compiler_pic=-Kconform_pic
9143      fi
9144      ;;
9145
9146    hpux*)
9147      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9148      # not for PA HP-UX.
9149      case $host_cpu in
9150      hppa*64*|ia64*)
9151        # +Z the default
9152        ;;
9153      *)
9154        lt_prog_compiler_pic='-fPIC'
9155        ;;
9156      esac
9157      ;;
9158
9159    *)
9160      lt_prog_compiler_pic='-fPIC'
9161      ;;
9162    esac
9163  else
9164    # PORTME Check for flag to pass linker flags through the system compiler.
9165    case $host_os in
9166    aix*)
9167      lt_prog_compiler_wl='-Wl,'
9168      if test "$host_cpu" = ia64; then
9169        # AIX 5 now supports IA64 processor
9170        lt_prog_compiler_static='-Bstatic'
9171      else
9172        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9173      fi
9174      ;;
9175      darwin*)
9176        # PIC is the default on this platform
9177        # Common symbols not allowed in MH_DYLIB files
9178       case $cc_basename in
9179         xlc*)
9180         lt_prog_compiler_pic='-qnocommon'
9181         lt_prog_compiler_wl='-Wl,'
9182         ;;
9183       esac
9184       ;;
9185
9186    mingw* | pw32* | os2*)
9187      # This hack is so that the source file can tell whether it is being
9188      # built for inclusion in a dll (and should export symbols for example).
9189      lt_prog_compiler_pic='-DDLL_EXPORT'
9190      ;;
9191
9192    hpux9* | hpux10* | hpux11*)
9193      lt_prog_compiler_wl='-Wl,'
9194      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9195      # not for PA HP-UX.
9196      case $host_cpu in
9197      hppa*64*|ia64*)
9198        # +Z the default
9199        ;;
9200      *)
9201        lt_prog_compiler_pic='+Z'
9202        ;;
9203      esac
9204      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9205      lt_prog_compiler_static='${wl}-a ${wl}archive'
9206      ;;
9207
9208    irix5* | irix6* | nonstopux*)
9209      lt_prog_compiler_wl='-Wl,'
9210      # PIC (with -KPIC) is the default.
9211      lt_prog_compiler_static='-non_shared'
9212      ;;
9213
9214    newsos6)
9215      lt_prog_compiler_pic='-KPIC'
9216      lt_prog_compiler_static='-Bstatic'
9217      ;;
9218
9219    linux*)
9220      case $cc_basename in
9221      icc* | ecc*)
9222        lt_prog_compiler_wl='-Wl,'
9223        lt_prog_compiler_pic='-KPIC'
9224        lt_prog_compiler_static='-static'
9225        ;;
9226      pgcc* | pgf77* | pgf90* | pgf95*)
9227        # Portland Group compilers (*not* the Pentium gcc compiler,
9228        # which looks to be a dead project)
9229        lt_prog_compiler_wl='-Wl,'
9230        lt_prog_compiler_pic='-fpic'
9231        lt_prog_compiler_static='-Bstatic'
9232        ;;
9233      ccc*)
9234        lt_prog_compiler_wl='-Wl,'
9235        # All Alpha code is PIC.
9236        lt_prog_compiler_static='-non_shared'
9237        ;;
9238      esac
9239      ;;
9240
9241    osf3* | osf4* | osf5*)
9242      lt_prog_compiler_wl='-Wl,'
9243      # All OSF/1 code is PIC.
9244      lt_prog_compiler_static='-non_shared'
9245      ;;
9246
9247    solaris*)
9248      lt_prog_compiler_pic='-KPIC'
9249      lt_prog_compiler_static='-Bstatic'
9250      case $cc_basename in
9251      f77* | f90* | f95*)
9252        lt_prog_compiler_wl='-Qoption ld ';;
9253      *)
9254        lt_prog_compiler_wl='-Wl,';;
9255      esac
9256      ;;
9257
9258    sunos4*)
9259      lt_prog_compiler_wl='-Qoption ld '
9260      lt_prog_compiler_pic='-PIC'
9261      lt_prog_compiler_static='-Bstatic'
9262      ;;
9263
9264    sysv4 | sysv4.2uw2* | sysv4.3*)
9265      lt_prog_compiler_wl='-Wl,'
9266      lt_prog_compiler_pic='-KPIC'
9267      lt_prog_compiler_static='-Bstatic'
9268      ;;
9269
9270    sysv4*MP*)
9271      if test -d /usr/nec ;then
9272        lt_prog_compiler_pic='-Kconform_pic'
9273        lt_prog_compiler_static='-Bstatic'
9274      fi
9275      ;;
9276
9277    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9278      lt_prog_compiler_wl='-Wl,'
9279      lt_prog_compiler_pic='-KPIC'
9280      lt_prog_compiler_static='-Bstatic'
9281      ;;
9282
9283    unicos*)
9284      lt_prog_compiler_wl='-Wl,'
9285      lt_prog_compiler_can_build_shared=no
9286      ;;
9287
9288    uts4*)
9289      lt_prog_compiler_pic='-pic'
9290      lt_prog_compiler_static='-Bstatic'
9291      ;;
9292
9293    *)
9294      lt_prog_compiler_can_build_shared=no
9295      ;;
9296    esac
9297  fi
9298
9299echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9300echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9301
9302#
9303# Check to make sure the PIC flag actually works.
9304#
9305if test -n "$lt_prog_compiler_pic"; then
9306
9307echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9308echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9309if test "${lt_prog_compiler_pic_works+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312  lt_prog_compiler_pic_works=no
9313  ac_outfile=conftest.$ac_objext
9314   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9315   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9316   # Insert the option either (1) after the last *FLAGS variable, or
9317   # (2) before a word containing "conftest.", or (3) at the end.
9318   # Note that $ac_compile itself does not contain backslashes and begins
9319   # with a dollar sign (not a hyphen), so the echo should work correctly.
9320   # The option is referenced via a variable to avoid confusing sed.
9321   lt_compile=`echo "$ac_compile" | $SED \
9322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9324   -e 's:$: $lt_compiler_flag:'`
9325   (eval echo "\"\$as_me:9325: $lt_compile\"" >&5)
9326   (eval "$lt_compile" 2>conftest.err)
9327   ac_status=$?
9328   cat conftest.err >&5
9329   echo "$as_me:9329: \$? = $ac_status" >&5
9330   if (exit $ac_status) && test -s "$ac_outfile"; then
9331     # The compiler can only warn and ignore the option if not recognized
9332     # So say no if there are warnings other than the usual output.
9333     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9334     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9335     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9336       lt_prog_compiler_pic_works=yes
9337     fi
9338   fi
9339   $rm conftest*
9340
9341fi
9342echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9343echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9344
9345if test x"$lt_prog_compiler_pic_works" = xyes; then
9346    case $lt_prog_compiler_pic in
9347     "" | " "*) ;;
9348     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9349     esac
9350else
9351    lt_prog_compiler_pic=
9352     lt_prog_compiler_can_build_shared=no
9353fi
9354
9355fi
9356case $host_os in
9357  # For platforms which do not support PIC, -DPIC is meaningless:
9358  *djgpp*)
9359    lt_prog_compiler_pic=
9360    ;;
9361  *)
9362    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9363    ;;
9364esac
9365
9366#
9367# Check to make sure the static flag actually works.
9368#
9369wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9370echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9371echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9372if test "${lt_prog_compiler_static_works+set}" = set; then
9373  echo $ECHO_N "(cached) $ECHO_C" >&6
9374else
9375  lt_prog_compiler_static_works=no
9376   save_LDFLAGS="$LDFLAGS"
9377   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9378   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9379   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9380     # The linker can only warn and ignore the option if not recognized
9381     # So say no if there are warnings
9382     if test -s conftest.err; then
9383       # Append any errors to the config.log.
9384       cat conftest.err 1>&5
9385       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9386       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9387       if diff conftest.exp conftest.er2 >/dev/null; then
9388         lt_prog_compiler_static_works=yes
9389       fi
9390     else
9391       lt_prog_compiler_static_works=yes
9392     fi
9393   fi
9394   $rm conftest*
9395   LDFLAGS="$save_LDFLAGS"
9396
9397fi
9398echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9399echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9400
9401if test x"$lt_prog_compiler_static_works" = xyes; then
9402    :
9403else
9404    lt_prog_compiler_static=
9405fi
9406
9407
9408echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9409echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9410if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9411  echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413  lt_cv_prog_compiler_c_o=no
9414   $rm -r conftest 2>/dev/null
9415   mkdir conftest
9416   cd conftest
9417   mkdir out
9418   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9419
9420   lt_compiler_flag="-o out/conftest2.$ac_objext"
9421   # Insert the option either (1) after the last *FLAGS variable, or
9422   # (2) before a word containing "conftest.", or (3) at the end.
9423   # Note that $ac_compile itself does not contain backslashes and begins
9424   # with a dollar sign (not a hyphen), so the echo should work correctly.
9425   lt_compile=`echo "$ac_compile" | $SED \
9426   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428   -e 's:$: $lt_compiler_flag:'`
9429   (eval echo "\"\$as_me:9429: $lt_compile\"" >&5)
9430   (eval "$lt_compile" 2>out/conftest.err)
9431   ac_status=$?
9432   cat out/conftest.err >&5
9433   echo "$as_me:9433: \$? = $ac_status" >&5
9434   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9435   then
9436     # The compiler can only warn and ignore the option if not recognized
9437     # So say no if there are warnings
9438     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9439     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9440     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9441       lt_cv_prog_compiler_c_o=yes
9442     fi
9443   fi
9444   chmod u+w . 2>&5
9445   $rm conftest*
9446   # SGI C++ compiler will create directory out/ii_files/ for
9447   # template instantiation
9448   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9449   $rm out/* && rmdir out
9450   cd ..
9451   rmdir conftest
9452   $rm conftest*
9453
9454fi
9455echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9456echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9457
9458
9459hard_links="nottested"
9460if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9461  # do not overwrite the value of need_locks provided by the user
9462  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9463echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9464  hard_links=yes
9465  $rm conftest*
9466  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9467  touch conftest.a
9468  ln conftest.a conftest.b 2>&5 || hard_links=no
9469  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9470  echo "$as_me:$LINENO: result: $hard_links" >&5
9471echo "${ECHO_T}$hard_links" >&6
9472  if test "$hard_links" = no; then
9473    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9474echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9475    need_locks=warn
9476  fi
9477else
9478  need_locks=no
9479fi
9480
9481echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9482echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9483
9484  runpath_var=
9485  allow_undefined_flag=
9486  enable_shared_with_static_runtimes=no
9487  archive_cmds=
9488  archive_expsym_cmds=
9489  old_archive_From_new_cmds=
9490  old_archive_from_expsyms_cmds=
9491  export_dynamic_flag_spec=
9492  whole_archive_flag_spec=
9493  thread_safe_flag_spec=
9494  hardcode_libdir_flag_spec=
9495  hardcode_libdir_flag_spec_ld=
9496  hardcode_libdir_separator=
9497  hardcode_direct=no
9498  hardcode_minus_L=no
9499  hardcode_shlibpath_var=unsupported
9500  link_all_deplibs=unknown
9501  hardcode_automatic=no
9502  module_cmds=
9503  module_expsym_cmds=
9504  always_export_symbols=no
9505  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9506  # include_expsyms should be a list of space-separated symbols to be *always*
9507  # included in the symbol list
9508  include_expsyms=
9509  # exclude_expsyms can be an extended regexp of symbols to exclude
9510  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9511  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9512  # as well as any symbol that contains `d'.
9513  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9514  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9515  # platforms (ab)use it in PIC code, but their linkers get confused if
9516  # the symbol is explicitly referenced.  Since portable code cannot
9517  # rely on this symbol name, it's probably fine to never include it in
9518  # preloaded symbol tables.
9519  extract_expsyms_cmds=
9520  # Just being paranoid about ensuring that cc_basename is set.
9521  for cc_temp in $compiler""; do
9522  case $cc_temp in
9523    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9524    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9525    \-*) ;;
9526    *) break;;
9527  esac
9528done
9529cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9530
9531  case $host_os in
9532  cygwin* | mingw* | pw32*)
9533    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9534    # When not using gcc, we currently assume that we are using
9535    # Microsoft Visual C++.
9536    if test "$GCC" != yes; then
9537      with_gnu_ld=no
9538    fi
9539    ;;
9540  interix*)
9541    # we just hope/assume this is gcc and not c89 (= MSVC++)
9542    with_gnu_ld=yes
9543    ;;
9544  openbsd*)
9545    with_gnu_ld=no
9546    ;;
9547  esac
9548
9549  ld_shlibs=yes
9550  if test "$with_gnu_ld" = yes; then
9551    # If archive_cmds runs LD, not CC, wlarc should be empty
9552    wlarc='${wl}'
9553
9554    # Set some defaults for GNU ld with shared library support. These
9555    # are reset later if shared libraries are not supported. Putting them
9556    # here allows them to be overridden if necessary.
9557    runpath_var=LD_RUN_PATH
9558    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9559    export_dynamic_flag_spec='${wl}--export-dynamic'
9560    # ancient GNU ld didn't support --whole-archive et. al.
9561    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9562        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9563      else
9564        whole_archive_flag_spec=
9565    fi
9566    supports_anon_versioning=no
9567    case `$LD -v 2>/dev/null` in
9568      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9569      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9570      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9571      *\ 2.11.*) ;; # other 2.11 versions
9572      *) supports_anon_versioning=yes ;;
9573    esac
9574
9575    # See if GNU ld supports shared libraries.
9576    case $host_os in
9577    aix3* | aix4* | aix5*)
9578      # On AIX/PPC, the GNU linker is very broken
9579      if test "$host_cpu" != ia64; then
9580        ld_shlibs=no
9581        cat <<EOF 1>&2
9582
9583*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9584*** to be unable to reliably create shared libraries on AIX.
9585*** Therefore, libtool is disabling shared libraries support.  If you
9586*** really care for shared libraries, you may want to modify your PATH
9587*** so that a non-GNU linker is found, and then restart.
9588
9589EOF
9590      fi
9591      ;;
9592
9593    amigaos*)
9594      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)'
9595      hardcode_libdir_flag_spec='-L$libdir'
9596      hardcode_minus_L=yes
9597
9598      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9599      # that the semantics of dynamic libraries on AmigaOS, at least up
9600      # to version 4, is to share data among multiple programs linked
9601      # with the same dynamic library.  Since this doesn't match the
9602      # behavior of shared libraries on other platforms, we can't use
9603      # them.
9604      ld_shlibs=no
9605      ;;
9606
9607    beos*)
9608      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9609        allow_undefined_flag=unsupported
9610        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9611        # support --undefined.  This deserves some investigation.  FIXME
9612        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9613      else
9614        ld_shlibs=no
9615      fi
9616      ;;
9617
9618    cygwin* | mingw* | pw32*)
9619      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9620      # as there is no search path for DLLs.
9621      hardcode_libdir_flag_spec='-L$libdir'
9622      allow_undefined_flag=unsupported
9623      always_export_symbols=no
9624      enable_shared_with_static_runtimes=yes
9625      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9626
9627      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9628        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9629        # If the export-symbols file already is a .def file (1st line
9630        # is EXPORTS), use it as is; otherwise, prepend...
9631        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9632          cp $export_symbols $output_objdir/$soname.def;
9633        else
9634          echo EXPORTS > $output_objdir/$soname.def;
9635          cat $export_symbols >> $output_objdir/$soname.def;
9636        fi~
9637        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9638      else
9639        ld_shlibs=no
9640      fi
9641      ;;
9642
9643    interix3*)
9644      hardcode_direct=no
9645      hardcode_shlibpath_var=no
9646      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9647      export_dynamic_flag_spec='${wl}-E'
9648      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9649      # Instead, shared libraries are loaded at an image base (0x10000000 by
9650      # default) and relocated if they conflict, which is a slow very memory
9651      # consuming and fragmenting process.  To avoid this, we pick a random,
9652      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9653      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9654      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9655      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'
9656      ;;
9657
9658    linux*)
9659      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9660        tmp_addflag=
9661        case $cc_basename,$host_cpu in
9662        pgcc*)                          # Portland Group C compiler
9663          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'
9664          tmp_addflag=' $pic_flag'
9665          ;;
9666        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9667          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'
9668          tmp_addflag=' $pic_flag -Mnomain' ;;
9669        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9670          tmp_addflag=' -i_dynamic' ;;
9671        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9672          tmp_addflag=' -i_dynamic -nofor_main' ;;
9673        ifc* | ifort*)                  # Intel Fortran compiler
9674          tmp_addflag=' -nofor_main' ;;
9675        esac
9676        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9677
9678        if test $supports_anon_versioning = yes; then
9679          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9680  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9681  $echo "local: *; };" >> $output_objdir/$libname.ver~
9682          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9683        fi
9684      else
9685        ld_shlibs=no
9686      fi
9687      ;;
9688
9689    netbsd*)
9690      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9691        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9692        wlarc=
9693      else
9694        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9695        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9696      fi
9697      ;;
9698
9699    solaris*)
9700      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9701        ld_shlibs=no
9702        cat <<EOF 1>&2
9703
9704*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9705*** create shared libraries on Solaris systems.  Therefore, libtool
9706*** is disabling shared libraries support.  We urge you to upgrade GNU
9707*** binutils to release 2.9.1 or newer.  Another option is to modify
9708*** your PATH or compiler configuration so that the native linker is
9709*** used, and then restart.
9710
9711EOF
9712      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9713        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9714        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9715      else
9716        ld_shlibs=no
9717      fi
9718      ;;
9719
9720    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9721      case `$LD -v 2>&1` in
9722        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9723        ld_shlibs=no
9724        cat <<_LT_EOF 1>&2
9725
9726*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9727*** reliably create shared libraries on SCO systems.  Therefore, libtool
9728*** is disabling shared libraries support.  We urge you to upgrade GNU
9729*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9730*** your PATH or compiler configuration so that the native linker is
9731*** used, and then restart.
9732
9733_LT_EOF
9734        ;;
9735        *)
9736          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9737            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9738            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9739            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9740          else
9741            ld_shlibs=no
9742          fi
9743        ;;
9744      esac
9745      ;;
9746
9747    sunos4*)
9748      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9749      wlarc=
9750      hardcode_direct=yes
9751      hardcode_shlibpath_var=no
9752      ;;
9753
9754    *)
9755      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9756        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9758      else
9759        ld_shlibs=no
9760      fi
9761      ;;
9762    esac
9763
9764    if test "$ld_shlibs" = no; then
9765      runpath_var=
9766      hardcode_libdir_flag_spec=
9767      export_dynamic_flag_spec=
9768      whole_archive_flag_spec=
9769    fi
9770  else
9771    # PORTME fill in a description of your system's linker (not GNU ld)
9772    case $host_os in
9773    aix3*)
9774      allow_undefined_flag=unsupported
9775      always_export_symbols=yes
9776      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'
9777      # Note: this linker hardcodes the directories in LIBPATH if there
9778      # are no directories specified by -L.
9779      hardcode_minus_L=yes
9780      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9781        # Neither direct hardcoding nor static linking is supported with a
9782        # broken collect2.
9783        hardcode_direct=unsupported
9784      fi
9785      ;;
9786
9787    aix4* | aix5*)
9788      if test "$host_cpu" = ia64; then
9789        # On IA64, the linker does run time linking by default, so we don't
9790        # have to do anything special.
9791        aix_use_runtimelinking=no
9792        exp_sym_flag='-Bexport'
9793        no_entry_flag=""
9794      else
9795        # If we're using GNU nm, then we don't want the "-C" option.
9796        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9797        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9798          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'
9799        else
9800          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'
9801        fi
9802        aix_use_runtimelinking=no
9803
9804        # Test if we are trying to use run time linking or normal
9805        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9806        # need to do runtime linking.
9807        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9808          for ld_flag in $LDFLAGS; do
9809          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9810            aix_use_runtimelinking=yes
9811            break
9812          fi
9813          done
9814          ;;
9815        esac
9816
9817        exp_sym_flag='-bexport'
9818        no_entry_flag='-bnoentry'
9819      fi
9820
9821      # When large executables or shared objects are built, AIX ld can
9822      # have problems creating the table of contents.  If linking a library
9823      # or program results in "error TOC overflow" add -mminimal-toc to
9824      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9825      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9826
9827      archive_cmds=''
9828      hardcode_direct=yes
9829      hardcode_libdir_separator=':'
9830      link_all_deplibs=yes
9831
9832      if test "$GCC" = yes; then
9833        case $host_os in aix4.[012]|aix4.[012].*)
9834        # We only want to do this on AIX 4.2 and lower, the check
9835        # below for broken collect2 doesn't work under 4.3+
9836          collect2name=`${CC} -print-prog-name=collect2`
9837          if test -f "$collect2name" && \
9838           strings "$collect2name" | grep resolve_lib_name >/dev/null
9839          then
9840          # We have reworked collect2
9841          hardcode_direct=yes
9842          else
9843          # We have old collect2
9844          hardcode_direct=unsupported
9845          # It fails to find uninstalled libraries when the uninstalled
9846          # path is not listed in the libpath.  Setting hardcode_minus_L
9847          # to unsupported forces relinking
9848          hardcode_minus_L=yes
9849          hardcode_libdir_flag_spec='-L$libdir'
9850          hardcode_libdir_separator=
9851          fi
9852          ;;
9853        esac
9854        shared_flag='-shared'
9855        if test "$aix_use_runtimelinking" = yes; then
9856          shared_flag="$shared_flag "'${wl}-G'
9857        fi
9858      else
9859        # not using gcc
9860        if test "$host_cpu" = ia64; then
9861        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9862        # chokes on -Wl,-G. The following line is correct:
9863          shared_flag='-G'
9864        else
9865          if test "$aix_use_runtimelinking" = yes; then
9866            shared_flag='${wl}-G'
9867          else
9868            shared_flag='${wl}-bM:SRE'
9869          fi
9870        fi
9871      fi
9872
9873      # It seems that -bexpall does not export symbols beginning with
9874      # underscore (_), so it is better to generate a list of symbols to export.
9875      always_export_symbols=yes
9876      if test "$aix_use_runtimelinking" = yes; then
9877        # Warning - without using the other runtime loading flags (-brtl),
9878        # -berok will link without error, but may produce a broken library.
9879        allow_undefined_flag='-berok'
9880       # Determine the default libpath from the value encoded in an empty executable.
9881       cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h.  */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h.  */
9887
9888#ifdef F77_DUMMY_MAIN
9889
9890#  ifdef __cplusplus
9891     extern "C"
9892#  endif
9893   int F77_DUMMY_MAIN() { return 1; }
9894
9895#endif
9896int
9897main ()
9898{
9899
9900  ;
9901  return 0;
9902}
9903_ACEOF
9904rm -f conftest.$ac_objext conftest$ac_exeext
9905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906  (eval $ac_link) 2>conftest.er1
9907  ac_status=$?
9908  grep -v '^ *+' conftest.er1 >conftest.err
9909  rm -f conftest.er1
9910  cat conftest.err >&5
9911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912  (exit $ac_status); } &&
9913         { ac_try='test -z "$ac_c_werror_flag"
9914                         || test ! -s conftest.err'
9915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916  (eval $ac_try) 2>&5
9917  ac_status=$?
9918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); }; } &&
9920         { ac_try='test -s conftest$ac_exeext'
9921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922  (eval $ac_try) 2>&5
9923  ac_status=$?
9924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925  (exit $ac_status); }; }; then
9926
9927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9928}'`
9929# Check for a 64-bit object if we didn't find anything.
9930if 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; }
9931}'`; fi
9932else
9933  echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936fi
9937rm -f conftest.err conftest.$ac_objext \
9938      conftest$ac_exeext conftest.$ac_ext
9939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9940
9941       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9942        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"
9943       else
9944        if test "$host_cpu" = ia64; then
9945          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9946          allow_undefined_flag="-z nodefs"
9947          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"
9948        else
9949         # Determine the default libpath from the value encoded in an empty executable.
9950         cat >conftest.$ac_ext <<_ACEOF
9951/* confdefs.h.  */
9952_ACEOF
9953cat confdefs.h >>conftest.$ac_ext
9954cat >>conftest.$ac_ext <<_ACEOF
9955/* end confdefs.h.  */
9956
9957#ifdef F77_DUMMY_MAIN
9958
9959#  ifdef __cplusplus
9960     extern "C"
9961#  endif
9962   int F77_DUMMY_MAIN() { return 1; }
9963
9964#endif
9965int
9966main ()
9967{
9968
9969  ;
9970  return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
9974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975  (eval $ac_link) 2>conftest.er1
9976  ac_status=$?
9977  grep -v '^ *+' conftest.er1 >conftest.err
9978  rm -f conftest.er1
9979  cat conftest.err >&5
9980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981  (exit $ac_status); } &&
9982         { ac_try='test -z "$ac_c_werror_flag"
9983                         || test ! -s conftest.err'
9984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985  (eval $ac_try) 2>&5
9986  ac_status=$?
9987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988  (exit $ac_status); }; } &&
9989         { ac_try='test -s conftest$ac_exeext'
9990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991  (eval $ac_try) 2>&5
9992  ac_status=$?
9993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994  (exit $ac_status); }; }; then
9995
9996aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9997}'`
9998# Check for a 64-bit object if we didn't find anything.
9999if 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; }
10000}'`; fi
10001else
10002  echo "$as_me: failed program was:" >&5
10003sed 's/^/| /' conftest.$ac_ext >&5
10004
10005fi
10006rm -f conftest.err conftest.$ac_objext \
10007      conftest$ac_exeext conftest.$ac_ext
10008if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10009
10010         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10011          # Warning - without using the other run time loading flags,
10012          # -berok will link without error, but may produce a broken library.
10013          no_undefined_flag=' ${wl}-bernotok'
10014          allow_undefined_flag=' ${wl}-berok'
10015          # Exported symbols can be pulled into shared objects from archives
10016          whole_archive_flag_spec='$convenience'
10017          archive_cmds_need_lc=yes
10018          # This is similar to how AIX traditionally builds its shared libraries.
10019          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'
10020        fi
10021      fi
10022      ;;
10023
10024    amigaos*)
10025      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)'
10026      hardcode_libdir_flag_spec='-L$libdir'
10027      hardcode_minus_L=yes
10028      # see comment about different semantics on the GNU ld section
10029      ld_shlibs=no
10030      ;;
10031
10032    bsdi[45]*)
10033      export_dynamic_flag_spec=-rdynamic
10034      ;;
10035
10036    cygwin* | mingw* | pw32*)
10037      # When not using gcc, we currently assume that we are using
10038      # Microsoft Visual C++.
10039      # hardcode_libdir_flag_spec is actually meaningless, as there is
10040      # no search path for DLLs.
10041      hardcode_libdir_flag_spec=' '
10042      allow_undefined_flag=unsupported
10043      # Tell ltmain to make .lib files, not .a files.
10044      libext=lib
10045      # Tell ltmain to make .dll files, not .so files.
10046      shrext_cmds=".dll"
10047      # FIXME: Setting linknames here is a bad hack.
10048      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10049      # The linker will automatically build a .lib file if we build a DLL.
10050      old_archive_From_new_cmds='true'
10051      # FIXME: Should let the user specify the lib program.
10052      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10053      fix_srcfile_path='`cygpath -w "$srcfile"`'
10054      enable_shared_with_static_runtimes=yes
10055      ;;
10056
10057    darwin* | rhapsody*)
10058      case $host_os in
10059        rhapsody* | darwin1.[012])
10060         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10061         ;;
10062       *) # Darwin 1.3 on
10063         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10064           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10065         else
10066           case ${MACOSX_DEPLOYMENT_TARGET} in
10067             10.[012])
10068               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10069               ;;
10070             10.*)
10071               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10072               ;;
10073           esac
10074         fi
10075         ;;
10076      esac
10077      archive_cmds_need_lc=no
10078      hardcode_direct=no
10079      hardcode_automatic=yes
10080      hardcode_shlibpath_var=unsupported
10081      whole_archive_flag_spec=''
10082      link_all_deplibs=yes
10083    if test "$GCC" = yes ; then
10084        output_verbose_link_cmd='echo'
10085        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10086      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10087      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10088      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}'
10089      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}'
10090    else
10091      case $cc_basename in
10092        xlc*)
10093         output_verbose_link_cmd='echo'
10094         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10095         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10096          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10097         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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}'
10098          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10099          ;;
10100       *)
10101         ld_shlibs=no
10102          ;;
10103      esac
10104    fi
10105      ;;
10106
10107    dgux*)
10108      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109      hardcode_libdir_flag_spec='-L$libdir'
10110      hardcode_shlibpath_var=no
10111      ;;
10112
10113    freebsd1*)
10114      ld_shlibs=no
10115      ;;
10116
10117    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10118    # support.  Future versions do this automatically, but an explicit c++rt0.o
10119    # does not break anything, and helps significantly (at the cost of a little
10120    # extra space).
10121    freebsd2.2*)
10122      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10123      hardcode_libdir_flag_spec='-R$libdir'
10124      hardcode_direct=yes
10125      hardcode_shlibpath_var=no
10126      ;;
10127
10128    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10129    freebsd2*)
10130      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10131      hardcode_direct=yes
10132      hardcode_minus_L=yes
10133      hardcode_shlibpath_var=no
10134      ;;
10135
10136    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10137    freebsd* | kfreebsd*-gnu | dragonfly*)
10138      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10139      hardcode_libdir_flag_spec='-R$libdir'
10140      hardcode_direct=yes
10141      hardcode_shlibpath_var=no
10142      ;;
10143
10144    hpux9*)
10145      if test "$GCC" = yes; then
10146        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'
10147      else
10148        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'
10149      fi
10150      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10151      hardcode_libdir_separator=:
10152      hardcode_direct=yes
10153
10154      # hardcode_minus_L: Not really in the search PATH,
10155      # but as the default location of the library.
10156      hardcode_minus_L=yes
10157      export_dynamic_flag_spec='${wl}-E'
10158      ;;
10159
10160    hpux10*)
10161      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10162        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10163      else
10164        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10165      fi
10166      if test "$with_gnu_ld" = no; then
10167        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10168        hardcode_libdir_separator=:
10169
10170        hardcode_direct=yes
10171        export_dynamic_flag_spec='${wl}-E'
10172
10173        # hardcode_minus_L: Not really in the search PATH,
10174        # but as the default location of the library.
10175        hardcode_minus_L=yes
10176      fi
10177      ;;
10178
10179    hpux11*)
10180      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10181        case $host_cpu in
10182        hppa*64*)
10183          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10184          ;;
10185        ia64*)
10186          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10187          ;;
10188        *)
10189          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10190          ;;
10191        esac
10192      else
10193        case $host_cpu in
10194        hppa*64*)
10195          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10196          ;;
10197        ia64*)
10198          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10199          ;;
10200        *)
10201          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10202          ;;
10203        esac
10204      fi
10205      if test "$with_gnu_ld" = no; then
10206        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10207        hardcode_libdir_separator=:
10208
10209        case $host_cpu in
10210        hppa*64*|ia64*)
10211          hardcode_libdir_flag_spec_ld='+b $libdir'
10212          hardcode_direct=no
10213          hardcode_shlibpath_var=no
10214          ;;
10215        *)
10216          hardcode_direct=yes
10217          export_dynamic_flag_spec='${wl}-E'
10218
10219          # hardcode_minus_L: Not really in the search PATH,
10220          # but as the default location of the library.
10221          hardcode_minus_L=yes
10222          ;;
10223        esac
10224      fi
10225      ;;
10226
10227    irix5* | irix6* | nonstopux*)
10228      if test "$GCC" = yes; then
10229        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'
10230      else
10231        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'
10232        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10233      fi
10234      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10235      hardcode_libdir_separator=:
10236      link_all_deplibs=yes
10237      ;;
10238
10239    netbsd*)
10240      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10241        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10242      else
10243        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10244      fi
10245      hardcode_libdir_flag_spec='-R$libdir'
10246      hardcode_direct=yes
10247      hardcode_shlibpath_var=no
10248      ;;
10249
10250    newsos6)
10251      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252      hardcode_direct=yes
10253      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10254      hardcode_libdir_separator=:
10255      hardcode_shlibpath_var=no
10256      ;;
10257
10258    openbsd*)
10259      hardcode_direct=yes
10260      hardcode_shlibpath_var=no
10261      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10262        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10263        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10264        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10265        export_dynamic_flag_spec='${wl}-E'
10266      else
10267       case $host_os in
10268         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10269           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10270           hardcode_libdir_flag_spec='-R$libdir'
10271           ;;
10272         *)
10273           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10274           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10275           ;;
10276       esac
10277      fi
10278      ;;
10279
10280    os2*)
10281      hardcode_libdir_flag_spec='-L$libdir'
10282      hardcode_minus_L=yes
10283      allow_undefined_flag=unsupported
10284      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'
10285      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10286      ;;
10287
10288    osf3*)
10289      if test "$GCC" = yes; then
10290        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10291        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'
10292      else
10293        allow_undefined_flag=' -expect_unresolved \*'
10294        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'
10295      fi
10296      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10297      hardcode_libdir_separator=:
10298      ;;
10299
10300    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10301      if test "$GCC" = yes; then
10302        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10303        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'
10304        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305      else
10306        allow_undefined_flag=' -expect_unresolved \*'
10307        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'
10308        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10309        $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'
10310
10311        # Both c and cxx compiler support -rpath directly
10312        hardcode_libdir_flag_spec='-rpath $libdir'
10313      fi
10314      hardcode_libdir_separator=:
10315      ;;
10316
10317    solaris*)
10318      no_undefined_flag=' -z text'
10319      if test "$GCC" = yes; then
10320        wlarc='${wl}'
10321        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10322        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10323          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10324      else
10325        wlarc=''
10326        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10328        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10329      fi
10330      hardcode_libdir_flag_spec='-R$libdir'
10331      hardcode_shlibpath_var=no
10332      case $host_os in
10333      solaris2.[0-5] | solaris2.[0-5].*) ;;
10334      *)
10335        # The compiler driver will combine linker options so we
10336        # cannot just pass the convience library names through
10337        # without $wl, iff we do not link with $LD.
10338        # Luckily, gcc supports the same syntax we need for Sun Studio.
10339        # Supported since Solaris 2.6 (maybe 2.5.1?)
10340        case $wlarc in
10341        '')
10342          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10343        *)
10344          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' ;;
10345        esac ;;
10346      esac
10347      link_all_deplibs=yes
10348      ;;
10349
10350    sunos4*)
10351      if test "x$host_vendor" = xsequent; then
10352        # Use $CC to link under sequent, because it throws in some extra .o
10353        # files that make .init and .fini sections work.
10354        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10355      else
10356        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10357      fi
10358      hardcode_libdir_flag_spec='-L$libdir'
10359      hardcode_direct=yes
10360      hardcode_minus_L=yes
10361      hardcode_shlibpath_var=no
10362      ;;
10363
10364    sysv4)
10365      case $host_vendor in
10366        sni)
10367          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10368          hardcode_direct=yes # is this really true???
10369        ;;
10370        siemens)
10371          ## LD is ld it makes a PLAMLIB
10372          ## CC just makes a GrossModule.
10373          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10374          reload_cmds='$CC -r -o $output$reload_objs'
10375          hardcode_direct=no
10376        ;;
10377        motorola)
10378          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10380        ;;
10381      esac
10382      runpath_var='LD_RUN_PATH'
10383      hardcode_shlibpath_var=no
10384      ;;
10385
10386    sysv4.3*)
10387      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388      hardcode_shlibpath_var=no
10389      export_dynamic_flag_spec='-Bexport'
10390      ;;
10391
10392    sysv4*MP*)
10393      if test -d /usr/nec; then
10394        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395        hardcode_shlibpath_var=no
10396        runpath_var=LD_RUN_PATH
10397        hardcode_runpath_var=yes
10398        ld_shlibs=yes
10399      fi
10400      ;;
10401
10402    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10403      no_undefined_flag='${wl}-z,text'
10404      archive_cmds_need_lc=no
10405      hardcode_shlibpath_var=no
10406      runpath_var='LD_RUN_PATH'
10407
10408      if test "$GCC" = yes; then
10409        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10410        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411      else
10412        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10413        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414      fi
10415      ;;
10416
10417    sysv5* | sco3.2v5* | sco5v6*)
10418      # Note: We can NOT use -z defs as we might desire, because we do not
10419      # link with -lc, and that would cause any symbols used from libc to
10420      # always be unresolved, which means just about no library would
10421      # ever link correctly.  If we're not using GNU ld we use -z text
10422      # though, which does catch some bad symbols but isn't as heavy-handed
10423      # as -z defs.
10424      no_undefined_flag='${wl}-z,text'
10425      allow_undefined_flag='${wl}-z,nodefs'
10426      archive_cmds_need_lc=no
10427      hardcode_shlibpath_var=no
10428      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10429      hardcode_libdir_separator=':'
10430      link_all_deplibs=yes
10431      export_dynamic_flag_spec='${wl}-Bexport'
10432      runpath_var='LD_RUN_PATH'
10433
10434      if test "$GCC" = yes; then
10435        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10436        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10437      else
10438        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10439        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10440      fi
10441      ;;
10442
10443    uts4*)
10444      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10445      hardcode_libdir_flag_spec='-L$libdir'
10446      hardcode_shlibpath_var=no
10447      ;;
10448
10449    *)
10450      ld_shlibs=no
10451      ;;
10452    esac
10453  fi
10454
10455echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10456echo "${ECHO_T}$ld_shlibs" >&6
10457test "$ld_shlibs" = no && can_build_shared=no
10458
10459#
10460# Do we need to explicitly link libc?
10461#
10462case "x$archive_cmds_need_lc" in
10463x|xyes)
10464  # Assume -lc should be added
10465  archive_cmds_need_lc=yes
10466
10467  if test "$enable_shared" = yes && test "$GCC" = yes; then
10468    case $archive_cmds in
10469    *'~'*)
10470      # FIXME: we may have to deal with multi-command sequences.
10471      ;;
10472    '$CC '*)
10473      # Test whether the compiler implicitly links with -lc since on some
10474      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10475      # to ld, don't add -lc before -lgcc.
10476      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10477echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10478      $rm conftest*
10479      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482  (eval $ac_compile) 2>&5
10483  ac_status=$?
10484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485  (exit $ac_status); } 2>conftest.err; then
10486        soname=conftest
10487        lib=conftest
10488        libobjs=conftest.$ac_objext
10489        deplibs=
10490        wl=$lt_prog_compiler_wl
10491        pic_flag=$lt_prog_compiler_pic
10492        compiler_flags=-v
10493        linker_flags=-v
10494        verstring=
10495        output_objdir=.
10496        libname=conftest
10497        lt_save_allow_undefined_flag=$allow_undefined_flag
10498        allow_undefined_flag=
10499        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10500  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10501  ac_status=$?
10502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503  (exit $ac_status); }
10504        then
10505          archive_cmds_need_lc=no
10506        else
10507          archive_cmds_need_lc=yes
10508        fi
10509        allow_undefined_flag=$lt_save_allow_undefined_flag
10510      else
10511        cat conftest.err 1>&5
10512      fi
10513      $rm conftest*
10514      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10515echo "${ECHO_T}$archive_cmds_need_lc" >&6
10516      ;;
10517    esac
10518  fi
10519  ;;
10520esac
10521
10522echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10523echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10524library_names_spec=
10525libname_spec='lib$name'
10526soname_spec=
10527shrext_cmds=".so"
10528postinstall_cmds=
10529postuninstall_cmds=
10530finish_cmds=
10531finish_eval=
10532shlibpath_var=
10533shlibpath_overrides_runpath=unknown
10534version_type=none
10535dynamic_linker="$host_os ld.so"
10536sys_lib_dlsearch_path_spec="/lib /usr/lib"
10537if test "$GCC" = yes; then
10538  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10539  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10540    # if the path contains ";" then we assume it to be the separator
10541    # otherwise default to the standard path separator (i.e. ":") - it is
10542    # assumed that no part of a normal pathname contains ";" but that should
10543    # okay in the real world where ";" in dirpaths is itself problematic.
10544    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10545  else
10546    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10547  fi
10548else
10549  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10550fi
10551need_lib_prefix=unknown
10552hardcode_into_libs=no
10553
10554# when you set need_version to no, make sure it does not cause -set_version
10555# flags to be left without arguments
10556need_version=unknown
10557
10558case $host_os in
10559aix3*)
10560  version_type=linux
10561  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10562  shlibpath_var=LIBPATH
10563
10564  # AIX 3 has no versioning support, so we append a major version to the name.
10565  soname_spec='${libname}${release}${shared_ext}$major'
10566  ;;
10567
10568aix4* | aix5*)
10569  version_type=linux
10570  need_lib_prefix=no
10571  need_version=no
10572  hardcode_into_libs=yes
10573  if test "$host_cpu" = ia64; then
10574    # AIX 5 supports IA64
10575    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10576    shlibpath_var=LD_LIBRARY_PATH
10577  else
10578    # With GCC up to 2.95.x, collect2 would create an import file
10579    # for dependence libraries.  The import file would start with
10580    # the line `#! .'.  This would cause the generated library to
10581    # depend on `.', always an invalid library.  This was fixed in
10582    # development snapshots of GCC prior to 3.0.
10583    case $host_os in
10584      aix4 | aix4.[01] | aix4.[01].*)
10585      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10586           echo ' yes '
10587           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10588        :
10589      else
10590        can_build_shared=no
10591      fi
10592      ;;
10593    esac
10594    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10595    # soname into executable. Probably we can add versioning support to
10596    # collect2, so additional links can be useful in future.
10597    if test "$aix_use_runtimelinking" = yes; then
10598      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10599      # instead of lib<name>.a to let people know that these are not
10600      # typical AIX shared libraries.
10601      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602    else
10603      # We preserve .a as extension for shared libraries through AIX4.2
10604      # and later when we are not doing run time linking.
10605      library_names_spec='${libname}${release}.a $libname.a'
10606      soname_spec='${libname}${release}${shared_ext}$major'
10607    fi
10608    shlibpath_var=LIBPATH
10609  fi
10610  ;;
10611
10612amigaos*)
10613  library_names_spec='$libname.ixlibrary $libname.a'
10614  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10615  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'
10616  ;;
10617
10618beos*)
10619  library_names_spec='${libname}${shared_ext}'
10620  dynamic_linker="$host_os ld.so"
10621  shlibpath_var=LIBRARY_PATH
10622  ;;
10623
10624bsdi[45]*)
10625  version_type=linux
10626  need_version=no
10627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628  soname_spec='${libname}${release}${shared_ext}$major'
10629  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10630  shlibpath_var=LD_LIBRARY_PATH
10631  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10632  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10633  # the default ld.so.conf also contains /usr/contrib/lib and
10634  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10635  # libtool to hard-code these into programs
10636  ;;
10637
10638cygwin* | mingw* | pw32*)
10639  version_type=windows
10640  shrext_cmds=".dll"
10641  need_version=no
10642  need_lib_prefix=no
10643
10644  case $GCC,$host_os in
10645  yes,cygwin* | yes,mingw* | yes,pw32*)
10646    library_names_spec='$libname.dll.a'
10647    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10648    postinstall_cmds='base_file=`basename \${file}`~
10649      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10650      dldir=$destdir/`dirname \$dlpath`~
10651      test -d \$dldir || mkdir -p \$dldir~
10652      $install_prog $dir/$dlname \$dldir/$dlname~
10653      chmod a+x \$dldir/$dlname'
10654    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10655      dlpath=$dir/\$dldll~
10656       $rm \$dlpath'
10657    shlibpath_overrides_runpath=yes
10658
10659    case $host_os in
10660    cygwin*)
10661      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10662      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10664      ;;
10665    mingw*)
10666      # MinGW DLLs use traditional 'lib' prefix
10667      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10668      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10669      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10670        # It is most probably a Windows format PATH printed by
10671        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10672        # path with ; separators, and with drive letters. We can handle the
10673        # drive letters (cygwin fileutils understands them), so leave them,
10674        # especially as we might pass files found there to a mingw objdump,
10675        # which wouldn't understand a cygwinified path. Ahh.
10676        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10677      else
10678        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10679      fi
10680      ;;
10681    pw32*)
10682      # pw32 DLLs use 'pw' prefix rather than 'lib'
10683      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10684      ;;
10685    esac
10686    ;;
10687
10688  *)
10689    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10690    ;;
10691  esac
10692  dynamic_linker='Win32 ld.exe'
10693  # FIXME: first we should search . and the directory the executable is in
10694  shlibpath_var=PATH
10695  ;;
10696
10697darwin* | rhapsody*)
10698  dynamic_linker="$host_os dyld"
10699  version_type=darwin
10700  need_lib_prefix=no
10701  need_version=no
10702  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10703  soname_spec='${libname}${release}${major}$shared_ext'
10704  shlibpath_overrides_runpath=yes
10705  shlibpath_var=DYLD_LIBRARY_PATH
10706  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10707  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10708  if test "$GCC" = yes; then
10709    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"`
10710  else
10711    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10712  fi
10713  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10714  ;;
10715
10716dgux*)
10717  version_type=linux
10718  need_lib_prefix=no
10719  need_version=no
10720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10721  soname_spec='${libname}${release}${shared_ext}$major'
10722  shlibpath_var=LD_LIBRARY_PATH
10723  ;;
10724
10725freebsd1*)
10726  dynamic_linker=no
10727  ;;
10728
10729kfreebsd*-gnu)
10730  version_type=linux
10731  need_lib_prefix=no
10732  need_version=no
10733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10734  soname_spec='${libname}${release}${shared_ext}$major'
10735  shlibpath_var=LD_LIBRARY_PATH
10736  shlibpath_overrides_runpath=no
10737  hardcode_into_libs=yes
10738  dynamic_linker='GNU ld.so'
10739  ;;
10740
10741freebsd* | dragonfly*)
10742  # DragonFly does not have aout.  When/if they implement a new
10743  # versioning mechanism, adjust this.
10744  if test -x /usr/bin/objformat; then
10745    objformat=`/usr/bin/objformat`
10746  else
10747    case $host_os in
10748    freebsd[123]*) objformat=aout ;;
10749    *) objformat=elf ;;
10750    esac
10751  fi
10752  version_type=freebsd-$objformat
10753  case $version_type in
10754    freebsd-elf*)
10755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10756      need_version=no
10757      need_lib_prefix=no
10758      ;;
10759    freebsd-*)
10760      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10761      need_version=yes
10762      ;;
10763  esac
10764  shlibpath_var=LD_LIBRARY_PATH
10765  case $host_os in
10766  freebsd2*)
10767    shlibpath_overrides_runpath=yes
10768    ;;
10769  freebsd3.[01]* | freebsdelf3.[01]*)
10770    shlibpath_overrides_runpath=yes
10771    hardcode_into_libs=yes
10772    ;;
10773  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10774  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10775    shlibpath_overrides_runpath=no
10776    hardcode_into_libs=yes