source: ThirdParty/Blas/trunk/configure @ 2985

Last change on this file since 2985 was 2985, checked in by stefan, 6 years ago

revert r2394:HEAD - releases are not to be modified

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