source: ThirdParty/Blas/stable/1.1/configure @ 1932

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

restoring BuildTools/ThirdParty/Blas?/stable/1.1

  • Property svn:executable set to *
File size: 739.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 1.1.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='1.1'
433PACKAGE_STRING='ThirdPartyBlas 1.1'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion BLAS_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS BLAS_PCLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyBlas 1.1 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyBlas 1.1:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-blas compile this project (Blas) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-pkg-config     use pkg-config if available (default is yes)
1085  --enable-static[=PKGS]
1086                          build static libraries [default=no]
1087  --disable-dependency-tracking  speeds up one-time build
1088  --enable-dependency-tracking   do not reject slow dependency extractors
1089  --enable-maintainer-mode  enable make rules and dependencies not useful
1090                          (and sometimes confusing) to the casual installer
1091  --enable-shared[=PKGS]
1092                          build shared libraries [default=yes]
1093  --enable-fast-install[=PKGS]
1094                          optimize for fast installation [default=yes]
1095  --disable-libtool-lock  avoid locking (might break parallel builds)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-blas-verbosity specify the debug verbosity level for project Blas
1101  --with-blas-checklevel specify the sanity check level for project Blas
1102  --with-coin-instdir     prefix of installation directory for precompiled
1103                          COIN packages
1104  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1105  --with-pic              try to use only PIC/non-PIC objects [default=use
1106                          both]
1107  --with-tags[=TAGS]
1108                          include additional configurations [automatic]
1109
1110Some influential environment variables:
1111  CDEFS       Additional -D flags to be used when compiling C code.
1112  ADD_CFLAGS  Additional C compiler options
1113  DBG_CFLAGS  Debug C compiler options
1114  OPT_CFLAGS  Optimize C compiler options
1115  CC          C compiler command
1116  CFLAGS      C compiler flags
1117  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1118              nonstandard directory <lib dir>
1119  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1120              headers in a nonstandard directory <include dir>
1121  MPICC       C MPI Compiler
1122  ADD_FFLAGS  Additional Fortran compiler options
1123  DBG_FFLAGS  Debug Fortran compiler options
1124  OPT_FFLAGS  Optimize Fortran compiler options
1125  F77         Fortran 77 compiler command
1126  FFLAGS      Fortran 77 compiler flags
1127  MPIF77      Fortran MPI Compiler
1128  PKG_CONFIG  path to pkg-config utility
1129  CPP         C preprocessor
1130  CXX         C++ compiler command
1131  CXXFLAGS    C++ compiler flags
1132  CXXCPP      C++ preprocessor
1133
1134Use these variables to override the choices made by `configure' or to help
1135it to find libraries and programs with nonstandard names/locations.
1136
1137Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1138_ACEOF
1139fi
1140
1141if test "$ac_init_help" = "recursive"; then
1142  # If there are subdirs, report their specific --help.
1143  ac_popdir=`pwd`
1144  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1145    test -d $ac_dir || continue
1146    ac_builddir=.
1147
1148if test "$ac_dir" != .; then
1149  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1150  # A "../" for each directory in $ac_dir_suffix.
1151  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1152else
1153  ac_dir_suffix= ac_top_builddir=
1154fi
1155
1156case $srcdir in
1157  .)  # No --srcdir option.  We are building in place.
1158    ac_srcdir=.
1159    if test -z "$ac_top_builddir"; then
1160       ac_top_srcdir=.
1161    else
1162       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1163    fi ;;
1164  [\\/]* | ?:[\\/]* )  # Absolute path.
1165    ac_srcdir=$srcdir$ac_dir_suffix;
1166    ac_top_srcdir=$srcdir ;;
1167  *) # Relative path.
1168    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1169    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1170esac
1171
1172# Do not use `cd foo && pwd` to compute absolute paths, because
1173# the directories may not exist.
1174case `pwd` in
1175.) ac_abs_builddir="$ac_dir";;
1176*)
1177  case "$ac_dir" in
1178  .) ac_abs_builddir=`pwd`;;
1179  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1180  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1181  esac;;
1182esac
1183case $ac_abs_builddir in
1184.) ac_abs_top_builddir=${ac_top_builddir}.;;
1185*)
1186  case ${ac_top_builddir}. in
1187  .) ac_abs_top_builddir=$ac_abs_builddir;;
1188  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1189  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1190  esac;;
1191esac
1192case $ac_abs_builddir in
1193.) ac_abs_srcdir=$ac_srcdir;;
1194*)
1195  case $ac_srcdir in
1196  .) ac_abs_srcdir=$ac_abs_builddir;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1198  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_top_srcdir=$ac_top_srcdir;;
1203*)
1204  case $ac_top_srcdir in
1205  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1207  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1208  esac;;
1209esac
1210
1211    cd $ac_dir
1212    # Check for guested configure; otherwise get Cygnus style configure.
1213    if test -f $ac_srcdir/configure.gnu; then
1214      echo
1215      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1216    elif test -f $ac_srcdir/configure; then
1217      echo
1218      $SHELL $ac_srcdir/configure  --help=recursive
1219    elif test -f $ac_srcdir/configure.ac ||
1220           test -f $ac_srcdir/configure.in; then
1221      echo
1222      $ac_configure --help
1223    else
1224      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1225    fi
1226    cd $ac_popdir
1227  done
1228fi
1229
1230test -n "$ac_init_help" && exit 0
1231if $ac_init_version; then
1232  cat <<\_ACEOF
1233ThirdPartyBlas configure 1.1
1234generated by GNU Autoconf 2.59
1235
1236Copyright (C) 2003 Free Software Foundation, Inc.
1237This configure script is free software; the Free Software Foundation
1238gives unlimited permission to copy, distribute and modify it.
1239
1240
1241Copyright 2006 International Business Machines and others.
1242All Rights Reserved.
1243This file is part of the open source package Coin which is distributed
1244under the Common Public License.
1245_ACEOF
1246  exit 0
1247fi
1248exec 5>config.log
1249cat >&5 <<_ACEOF
1250This file contains any messages produced by compilers while
1251running configure, to aid debugging if configure makes a mistake.
1252
1253It was created by ThirdPartyBlas $as_me 1.1, which was
1254generated by GNU Autoconf 2.59.  Invocation command line was
1255
1256  $ $0 $@
1257
1258_ACEOF
1259{
1260cat <<_ASUNAME
1261## --------- ##
1262## Platform. ##
1263## --------- ##
1264
1265hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1266uname -m = `(uname -m) 2>/dev/null || echo unknown`
1267uname -r = `(uname -r) 2>/dev/null || echo unknown`
1268uname -s = `(uname -s) 2>/dev/null || echo unknown`
1269uname -v = `(uname -v) 2>/dev/null || echo unknown`
1270
1271/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1272/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1273
1274/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1275/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1276/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1277hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1278/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1279/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1280/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1281
1282_ASUNAME
1283
1284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1285for as_dir in $PATH
1286do
1287  IFS=$as_save_IFS
1288  test -z "$as_dir" && as_dir=.
1289  echo "PATH: $as_dir"
1290done
1291
1292} >&5
1293
1294cat >&5 <<_ACEOF
1295
1296
1297## ----------- ##
1298## Core tests. ##
1299## ----------- ##
1300
1301_ACEOF
1302
1303
1304# Keep a trace of the command line.
1305# Strip out --no-create and --no-recursion so they do not pile up.
1306# Strip out --silent because we don't want to record it for future runs.
1307# Also quote any args containing shell meta-characters.
1308# Make two passes to allow for proper duplicate-argument suppression.
1309ac_configure_args=
1310ac_configure_args0=
1311ac_configure_args1=
1312ac_sep=
1313ac_must_keep_next=false
1314for ac_pass in 1 2
1315do
1316  for ac_arg
1317  do
1318    case $ac_arg in
1319    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1320    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321    | -silent | --silent | --silen | --sile | --sil)
1322      continue ;;
1323    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1325    esac
1326    case $ac_pass in
1327    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1328    2)
1329      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1330      if test $ac_must_keep_next = true; then
1331        ac_must_keep_next=false # Got value, back to normal.
1332      else
1333        case $ac_arg in
1334          *=* | --config-cache | -C | -disable-* | --disable-* \
1335          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1336          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1337          | -with-* | --with-* | -without-* | --without-* | --x)
1338            case "$ac_configure_args0 " in
1339              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1340            esac
1341            ;;
1342          -* ) ac_must_keep_next=true ;;
1343        esac
1344      fi
1345      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1346      # Get rid of the leading space.
1347      ac_sep=" "
1348      ;;
1349    esac
1350  done
1351done
1352$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1353$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1354
1355# When interrupted or exit'd, cleanup temporary files, and complete
1356# config.log.  We remove comments because anyway the quotes in there
1357# would cause problems or look ugly.
1358# WARNING: Be sure not to use single quotes in there, as some shells,
1359# such as our DU 5.0 friend, will then `close' the trap.
1360trap 'exit_status=$?
1361  # Save into config.log some information that might help in debugging.
1362  {
1363    echo
1364
1365    cat <<\_ASBOX
1366## ---------------- ##
1367## Cache variables. ##
1368## ---------------- ##
1369_ASBOX
1370    echo
1371    # The following way of writing the cache mishandles newlines in values,
1372{
1373  (set) 2>&1 |
1374    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1375    *ac_space=\ *)
1376      sed -n \
1377        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1378          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1379      ;;
1380    *)
1381      sed -n \
1382        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1383      ;;
1384    esac;
1385}
1386    echo
1387
1388    cat <<\_ASBOX
1389## ----------------- ##
1390## Output variables. ##
1391## ----------------- ##
1392_ASBOX
1393    echo
1394    for ac_var in $ac_subst_vars
1395    do
1396      eval ac_val=$`echo $ac_var`
1397      echo "$ac_var='"'"'$ac_val'"'"'"
1398    done | sort
1399    echo
1400
1401    if test -n "$ac_subst_files"; then
1402      cat <<\_ASBOX
1403## ------------- ##
1404## Output files. ##
1405## ------------- ##
1406_ASBOX
1407      echo
1408      for ac_var in $ac_subst_files
1409      do
1410        eval ac_val=$`echo $ac_var`
1411        echo "$ac_var='"'"'$ac_val'"'"'"
1412      done | sort
1413      echo
1414    fi
1415
1416    if test -s confdefs.h; then
1417      cat <<\_ASBOX
1418## ----------- ##
1419## confdefs.h. ##
1420## ----------- ##
1421_ASBOX
1422      echo
1423      sed "/^$/d" confdefs.h | sort
1424      echo
1425    fi
1426    test "$ac_signal" != 0 &&
1427      echo "$as_me: caught signal $ac_signal"
1428    echo "$as_me: exit $exit_status"
1429  } >&5
1430  rm -f core *.core &&
1431  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1432    exit $exit_status
1433     ' 0
1434for ac_signal in 1 2 13 15; do
1435  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1436done
1437ac_signal=0
1438
1439# confdefs.h avoids OS command line length limits that DEFS can exceed.
1440rm -rf conftest* confdefs.h
1441# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1442echo >confdefs.h
1443
1444# Predefined preprocessor variables.
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_NAME "$PACKAGE_NAME"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_VERSION "$PACKAGE_VERSION"
1458_ACEOF
1459
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_STRING "$PACKAGE_STRING"
1463_ACEOF
1464
1465
1466cat >>confdefs.h <<_ACEOF
1467#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1468_ACEOF
1469
1470
1471# Let the site file select an alternate cache file if it wants to.
1472# Prefer explicitly selected file to automatically selected ones.
1473if test -z "$CONFIG_SITE"; then
1474  if test "x$prefix" != xNONE; then
1475    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1476  else
1477    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1478  fi
1479fi
1480for ac_site_file in $CONFIG_SITE; do
1481  if test -r "$ac_site_file"; then
1482    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1483echo "$as_me: loading site script $ac_site_file" >&6;}
1484    sed 's/^/| /' "$ac_site_file" >&5
1485    . "$ac_site_file"
1486  fi
1487done
1488
1489if test -r "$cache_file"; then
1490  # Some versions of bash will fail to source /dev/null (special
1491  # files actually), so we avoid doing that.
1492  if test -f "$cache_file"; then
1493    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1494echo "$as_me: loading cache $cache_file" >&6;}
1495    case $cache_file in
1496      [\\/]* | ?:[\\/]* ) . $cache_file;;
1497      *)                      . ./$cache_file;;
1498    esac
1499  fi
1500else
1501  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1502echo "$as_me: creating cache $cache_file" >&6;}
1503  >$cache_file
1504fi
1505
1506# Check that the precious variables saved in the cache have kept the same
1507# value.
1508ac_cache_corrupted=false
1509for ac_var in `(set) 2>&1 |
1510               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1511  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1512  eval ac_new_set=\$ac_env_${ac_var}_set
1513  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1514  eval ac_new_val="\$ac_env_${ac_var}_value"
1515  case $ac_old_set,$ac_new_set in
1516    set,)
1517      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1518echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1519      ac_cache_corrupted=: ;;
1520    ,set)
1521      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1522echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1523      ac_cache_corrupted=: ;;
1524    ,);;
1525    *)
1526      if test "x$ac_old_val" != "x$ac_new_val"; then
1527        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1528echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1529        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1530echo "$as_me:   former value:  $ac_old_val" >&2;}
1531        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1532echo "$as_me:   current value: $ac_new_val" >&2;}
1533        ac_cache_corrupted=:
1534      fi;;
1535  esac
1536  # Pass precious variables to config.status.
1537  if test "$ac_new_set" = set; then
1538    case $ac_new_val in
1539    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1540      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1541    *) ac_arg=$ac_var=$ac_new_val ;;
1542    esac
1543    case " $ac_configure_args " in
1544      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1545      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1546    esac
1547  fi
1548done
1549if $ac_cache_corrupted; then
1550  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1551echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1552  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1553echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1554   { (exit 1); exit 1; }; }
1555fi
1556
1557ac_ext=c
1558ac_cpp='$CPP $CPPFLAGS'
1559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1561ac_compiler_gnu=$ac_cv_c_compiler_gnu
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592# List one file in the package so that the configure script can test
1593# whether the package is actually there
1594
1595
1596# Where should everything be installed by default?  Here, we want it
1597# to be installed directly in 'bin', 'lib', 'include' subdirectories
1598# of the directory where configure is run.  The default would be
1599# /usr/local.
1600
1601
1602# Initialize the ADDLIBS variable
1603ADDLIBS="-lm $LIBS"
1604
1605
1606# Initialize the PCADDLIBS variable.
1607# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1608# In certain cases, it may contain more flags than the ADDLIBS variable.
1609PCADDLIBS=""
1610
1611
1612# As backup, we make sure we don't loose an FLIBS if it has been set
1613# by the user
1614save_FLIBS="$FLIBS"
1615
1616# Initialize the FADDLIBS variable (which is to be used with a fortran
1617# compiler and will not include FLIBS)
1618FADDLIBS="$LIBS"
1619
1620
1621# A useful makefile conditional that is always false
1622
1623
1624if false; then
1625  ALWAYS_FALSE_TRUE=
1626  ALWAYS_FALSE_FALSE='#'
1627else
1628  ALWAYS_FALSE_TRUE='#'
1629  ALWAYS_FALSE_FALSE=
1630fi
1631
1632
1633# We set the following variable so that we know later in AC_COIN_FINALIZE
1634# that we are in a project main directory
1635coin_projectdir=yes
1636
1637# Set the project's version number
1638if test "xBlas" != x; then
1639
1640cat >>confdefs.h <<_ACEOF
1641#define BLAS_VERSION "$PACKAGE_VERSION"
1642_ACEOF
1643
1644fi
1645
1646# Set the project's SVN revision number. The complicated sed expression
1647# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1648# as a single number.
1649# Extract the first word of "svnversion", so it can be a program name with args.
1650set dummy svnversion; ac_word=$2
1651echo "$as_me:$LINENO: checking for $ac_word" >&5
1652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653if test "${ac_cv_prog_have_svnversion+set}" = set; then
1654  echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656  if test -n "$have_svnversion"; then
1657  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1658else
1659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660for as_dir in $PATH
1661do
1662  IFS=$as_save_IFS
1663  test -z "$as_dir" && as_dir=.
1664  for ac_exec_ext in '' $ac_executable_extensions; do
1665  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666    ac_cv_prog_have_svnversion="yes"
1667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668    break 2
1669  fi
1670done
1671done
1672
1673  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1674fi
1675fi
1676have_svnversion=$ac_cv_prog_have_svnversion
1677if test -n "$have_svnversion"; then
1678  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1679echo "${ECHO_T}$have_svnversion" >&6
1680else
1681  echo "$as_me:$LINENO: result: no" >&5
1682echo "${ECHO_T}no" >&6
1683fi
1684
1685if test "x$have_svnversion" = xyes && test "xBlas" != x; then
1686
1687  svn_rev_tmp=`cd $srcdir/$coin_has_blas ; svnversion`
1688  BLAS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1689  if test $BLAS_SVN_REV != exported; then
1690
1691cat >>confdefs.h <<_ACEOF
1692#define BLAS_SVN_REV $BLAS_SVN_REV
1693_ACEOF
1694
1695  fi
1696fi
1697
1698# Capture libtool library version, if given.
1699
1700
1701
1702#############################################################################
1703#                         Standard build tool stuff                         #
1704#############################################################################
1705
1706# Get the system type
1707ac_aux_dir=
1708for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1709  if test -f $ac_dir/install-sh; then
1710    ac_aux_dir=$ac_dir
1711    ac_install_sh="$ac_aux_dir/install-sh -c"
1712    break
1713  elif test -f $ac_dir/install.sh; then
1714    ac_aux_dir=$ac_dir
1715    ac_install_sh="$ac_aux_dir/install.sh -c"
1716    break
1717  elif test -f $ac_dir/shtool; then
1718    ac_aux_dir=$ac_dir
1719    ac_install_sh="$ac_aux_dir/shtool install -c"
1720    break
1721  fi
1722done
1723if test -z "$ac_aux_dir"; then
1724  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1725echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1726   { (exit 1); exit 1; }; }
1727fi
1728ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1729ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1730ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1731
1732# Make sure we can run config.sub.
1733$ac_config_sub sun4 >/dev/null 2>&1 ||
1734  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1735echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1736   { (exit 1); exit 1; }; }
1737
1738echo "$as_me:$LINENO: checking build system type" >&5
1739echo $ECHO_N "checking build system type... $ECHO_C" >&6
1740if test "${ac_cv_build+set}" = set; then
1741  echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743  ac_cv_build_alias=$build_alias
1744test -z "$ac_cv_build_alias" &&
1745  ac_cv_build_alias=`$ac_config_guess`
1746test -z "$ac_cv_build_alias" &&
1747  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1748echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1749   { (exit 1); exit 1; }; }
1750ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1751  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1752echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1753   { (exit 1); exit 1; }; }
1754
1755fi
1756echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1757echo "${ECHO_T}$ac_cv_build" >&6
1758build=$ac_cv_build
1759build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1760build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1761build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1762
1763
1764
1765#turn off warnings and pedantic mode since they could make trouble on some platforms,
1766#and we couldn't fix them anyway
1767coin_skip_warn_fflags=yes
1768
1769# Check if user wants to produce debugging code
1770
1771echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1772echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1773
1774# Check whether --enable-debug or --disable-debug was given.
1775if test "${enable_debug+set}" = set; then
1776  enableval="$enable_debug"
1777  case "${enableval}" in
1778   yes) coin_debug_compile=true
1779        if test "${enable_shared+set}" = set; then :; else
1780          enable_shared=no
1781        fi
1782        ;;
1783   no)  coin_debug_compile=false
1784        ;;
1785   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1786echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1787   { (exit 1); exit 1; }; }
1788        ;;
1789esac
1790else
1791  coin_debug_compile=false
1792fi;
1793
1794# Check whether --enable-debug-blas or --disable-debug-blas was given.
1795if test "${enable_debug_blas+set}" = set; then
1796  enableval="$enable_debug_blas"
1797  case "${enableval}" in
1798    yes) coin_debug_compile=true
1799         enable_shared=no
1800         ;;
1801    no)  coin_debug_compile=false
1802         ;;
1803    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1804echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1805   { (exit 1); exit 1; }; }
1806         ;;
1807 esac
1808else
1809  :
1810fi;
1811
1812 # m4_ifvaln([Blas],
1813
1814if test $coin_debug_compile = true; then
1815  echo "$as_me:$LINENO: result: yes" >&5
1816echo "${ECHO_T}yes" >&6
1817else
1818  echo "$as_me:$LINENO: result: no" >&5
1819echo "${ECHO_T}no" >&6
1820fi
1821
1822
1823# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1824if test "${with_blas_verbosity+set}" = set; then
1825  withval="$with_blas_verbosity"
1826  if test "$withval" = yes; then
1827                withval=1
1828              fi
1829              coin_blas_verbosity=$withval
1830else
1831  coin_blas_verbosity=0
1832fi;
1833
1834cat >>confdefs.h <<_ACEOF
1835#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1836_ACEOF
1837
1838
1839
1840# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1841if test "${with_blas_checklevel+set}" = set; then
1842  withval="$with_blas_checklevel"
1843  if test "$withval" = yes; then
1844                withval=1
1845              fi
1846              coin_blas_checklevel=$withval
1847else
1848  coin_blas_checklevel=0
1849fi;
1850
1851cat >>confdefs.h <<_ACEOF
1852#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1853_ACEOF
1854
1855
1856# We use the following variable to have a string with the upper case
1857# version of the project name
1858COIN_PRJCT=BLAS
1859
1860
1861 # m4_ifvaln([Blas],
1862
1863
1864
1865# Get the name of the Fortran compiler and appropriate compiler options
1866case $build in
1867  *-mingw*)
1868    if test "${LD+set}" = set; then :; else
1869      LD=link
1870    fi
1871    ;;
1872 esac
1873 case $enable_doscompile in
1874   msvc)
1875     if test "x${LD+set}" = xset; then :; else
1876       LD=link
1877     fi
1878     ;;
1879 esac
1880
1881
1882 # Check whether --enable-doscompile or --disable-doscompile was given.
1883if test "${enable_doscompile+set}" = set; then
1884  enableval="$enable_doscompile"
1885  if test "$enable_doscompile" != no; then
1886     case $build in
1887       *-cygwin* | *-mingw*) ;;
1888       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1889echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1890   { (exit 1); exit 1; }; } ;;
1891     esac
1892   fi
1893else
1894  enable_doscompile=no
1895fi;
1896 case "$enable_doscompile" in
1897   mingw)
1898     case $build in
1899       *-mingw*) enable_doscompile=no ;;
1900     esac
1901     ;;
1902   msvc|no) ;;
1903   yes) enable_doscompile=mingw ;;
1904   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1905                    Try configure --help=recursive." >&5
1906echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1907                    Try configure --help=recursive." >&2;}
1908   { (exit 1); exit 1; }; }
1909      ;;
1910  esac
1911  if test "$enable_doscompile" != no ; then
1912    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1913echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1914  fi
1915
1916
1917
1918
1919ac_ext=c
1920ac_cpp='$CPP $CPPFLAGS'
1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924
1925
1926# For consistency, we set the C compiler to the same value of the C++
1927# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1928if test x"$CXX" != x; then
1929  case "$CXX" in
1930    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1931      if test x"$CC" = x; then
1932        CC="$CXX"
1933        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1934echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1935      fi
1936      ;;
1937  esac
1938fi
1939
1940# add automake conditional so we can recognize cl compiler in makefile
1941coin_cc_is_cl=false
1942if test x"$CXX" != x; then
1943  case "$CXX" in
1944    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1945      coin_cc_is_cl=true
1946      ;;
1947  esac
1948fi
1949
1950
1951if test $coin_cc_is_cl = true; then
1952  COIN_CC_IS_CL_TRUE=
1953  COIN_CC_IS_CL_FALSE='#'
1954else
1955  COIN_CC_IS_CL_TRUE='#'
1956  COIN_CC_IS_CL_FALSE=
1957fi
1958
1959
1960
1961
1962
1963
1964
1965coin_has_cc=yes
1966
1967save_cflags="$CFLAGS"
1968
1969# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1970# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1971# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1972# compiler. In this case, put cc after gcc.
1973
1974case $build in
1975  *-cygwin* | *-mingw*)
1976             if test "$enable_doscompile" = msvc ; then
1977               comps="icl cl"
1978             else
1979               comps="gcc cl"
1980             fi ;;
1981  *-*-solaris*)
1982             # Extract the first word of "cc", so it can be a program name with args.
1983set dummy cc; ac_word=$2
1984echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1987  echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989  if test -n "$sol_cc_compiler"; then
1990  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1991else
1992  ac_prog_rejected=no
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001       ac_prog_rejected=yes
2002       continue
2003     fi
2004    ac_cv_prog_sol_cc_compiler="cc"
2005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006    break 2
2007  fi
2008done
2009done
2010
2011if test $ac_prog_rejected = yes; then
2012  # We found a bogon in the path, so make sure we never use it.
2013  set dummy $ac_cv_prog_sol_cc_compiler
2014  shift
2015  if test $# != 0; then
2016    # We chose a different compiler from the bogus one.
2017    # However, it has the same basename, so the bogon will be chosen
2018    # first if we set sol_cc_compiler to just the basename; use the full file name.
2019    shift
2020    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2021  fi
2022fi
2023fi
2024fi
2025sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2026if test -n "$sol_cc_compiler"; then
2027  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2028echo "${ECHO_T}$sol_cc_compiler" >&6
2029else
2030  echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6
2032fi
2033
2034             if test "$sol_cc_compiler" = "cc" ; then
2035               comps="cc xlc gcc pgcc icc"
2036             else
2037               comps="xlc gcc pgcc icc cc"
2038             fi
2039             ;;
2040  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2041  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2042esac
2043
2044# We delete the cached value, since the test might not have been
2045# performed with our choice of compilers earlier
2046$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2047# AC_MSG_NOTICE([C compiler candidates: $comps])
2048ac_ext=c
2049ac_cpp='$CPP $CPPFLAGS'
2050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053if test -n "$ac_tool_prefix"; then
2054  for ac_prog in $comps
2055  do
2056    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2058echo "$as_me:$LINENO: checking for $ac_word" >&5
2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060if test "${ac_cv_prog_CC+set}" = set; then
2061  echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063  if test -n "$CC"; then
2064  ac_cv_prog_CC="$CC" # Let the user override the test.
2065else
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069  IFS=$as_save_IFS
2070  test -z "$as_dir" && as_dir=.
2071  for ac_exec_ext in '' $ac_executable_extensions; do
2072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075    break 2
2076  fi
2077done
2078done
2079
2080fi
2081fi
2082CC=$ac_cv_prog_CC
2083if test -n "$CC"; then
2084  echo "$as_me:$LINENO: result: $CC" >&5
2085echo "${ECHO_T}$CC" >&6
2086else
2087  echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091    test -n "$CC" && break
2092  done
2093fi
2094if test -z "$CC"; then
2095  ac_ct_CC=$CC
2096  for ac_prog in $comps
2097do
2098  # Extract the first word of "$ac_prog", so it can be a program name with args.
2099set dummy $ac_prog; ac_word=$2
2100echo "$as_me:$LINENO: checking for $ac_word" >&5
2101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2103  echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105  if test -n "$ac_ct_CC"; then
2106  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2107else
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111  IFS=$as_save_IFS
2112  test -z "$as_dir" && as_dir=.
2113  for ac_exec_ext in '' $ac_executable_extensions; do
2114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115    ac_cv_prog_ac_ct_CC="$ac_prog"
2116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117    break 2
2118  fi
2119done
2120done
2121
2122fi
2123fi
2124ac_ct_CC=$ac_cv_prog_ac_ct_CC
2125if test -n "$ac_ct_CC"; then
2126  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2127echo "${ECHO_T}$ac_ct_CC" >&6
2128else
2129  echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6
2131fi
2132
2133  test -n "$ac_ct_CC" && break
2134done
2135
2136  CC=$ac_ct_CC
2137fi
2138
2139
2140test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2141See \`config.log' for more details." >&5
2142echo "$as_me: error: no acceptable C compiler found in \$PATH
2143See \`config.log' for more details." >&2;}
2144   { (exit 1); exit 1; }; }
2145
2146# Provide some information about the compiler.
2147echo "$as_me:$LINENO:" \
2148     "checking for C compiler version" >&5
2149ac_compiler=`set X $ac_compile; echo $2`
2150{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2151  (eval $ac_compiler --version </dev/null >&5) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }
2155{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2156  (eval $ac_compiler -v </dev/null >&5) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }
2160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2161  (eval $ac_compiler -V </dev/null >&5) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165
2166cat >conftest.$ac_ext <<_ACEOF
2167/* confdefs.h.  */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h.  */
2172
2173int
2174main ()
2175{
2176
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181ac_clean_files_save=$ac_clean_files
2182ac_clean_files="$ac_clean_files a.out a.exe b.out"
2183# Try to create an executable without -o first, disregard a.out.
2184# It will help us diagnose broken compilers, and finding out an intuition
2185# of exeext.
2186echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2187echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2188ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2189if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2190  (eval $ac_link_default) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); }; then
2194  # Find the output, starting from the most likely.  This scheme is
2195# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2196# resort.
2197
2198# Be careful to initialize this variable, since it used to be cached.
2199# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2200ac_cv_exeext=
2201# b.out is created by i960 compilers.
2202for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2203do
2204  test -f "$ac_file" || continue
2205  case $ac_file in
2206    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2207        ;;
2208    conftest.$ac_ext )
2209        # This is the source file.
2210        ;;
2211    [ab].out )
2212        # We found the default executable, but exeext='' is most
2213        # certainly right.
2214        break;;
2215    *.* )
2216        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217        # FIXME: I believe we export ac_cv_exeext for Libtool,
2218        # but it would be cool to find out if it's true.  Does anybody
2219        # maintain Libtool? --akim.
2220        export ac_cv_exeext
2221        break;;
2222    * )
2223        break;;
2224  esac
2225done
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2231See \`config.log' for more details." >&5
2232echo "$as_me: error: C compiler cannot create executables
2233See \`config.log' for more details." >&2;}
2234   { (exit 77); exit 77; }; }
2235fi
2236
2237ac_exeext=$ac_cv_exeext
2238echo "$as_me:$LINENO: result: $ac_file" >&5
2239echo "${ECHO_T}$ac_file" >&6
2240
2241# Check the compiler produces executables we can run.  If not, either
2242# the compiler is broken, or we cross compile.
2243echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2244echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2245# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2246# If not cross compiling, check that we can run a simple program.
2247if test "$cross_compiling" != yes; then
2248  if { ac_try='./$ac_file'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; }; then
2254    cross_compiling=no
2255  else
2256    if test "$cross_compiling" = maybe; then
2257        cross_compiling=yes
2258    else
2259        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2260If you meant to cross compile, use \`--host'.
2261See \`config.log' for more details." >&5
2262echo "$as_me: error: cannot run C compiled programs.
2263If you meant to cross compile, use \`--host'.
2264See \`config.log' for more details." >&2;}
2265   { (exit 1); exit 1; }; }
2266    fi
2267  fi
2268fi
2269echo "$as_me:$LINENO: result: yes" >&5
2270echo "${ECHO_T}yes" >&6
2271
2272rm -f a.out a.exe conftest$ac_cv_exeext b.out
2273ac_clean_files=$ac_clean_files_save
2274# Check the compiler produces executables we can run.  If not, either
2275# the compiler is broken, or we cross compile.
2276echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2277echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2278echo "$as_me:$LINENO: result: $cross_compiling" >&5
2279echo "${ECHO_T}$cross_compiling" >&6
2280
2281echo "$as_me:$LINENO: checking for suffix of executables" >&5
2282echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2284  (eval $ac_link) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; then
2288  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2290# work properly (i.e., refer to `conftest.exe'), while it won't with
2291# `rm'.
2292for ac_file in conftest.exe conftest conftest.*; do
2293  test -f "$ac_file" || continue
2294  case $ac_file in
2295    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2296    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297          export ac_cv_exeext
2298          break;;
2299    * ) break;;
2300  esac
2301done
2302else
2303  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304See \`config.log' for more details." >&5
2305echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306See \`config.log' for more details." >&2;}
2307   { (exit 1); exit 1; }; }
2308fi
2309
2310rm -f conftest$ac_cv_exeext
2311echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312echo "${ECHO_T}$ac_cv_exeext" >&6
2313
2314rm -f conftest.$ac_ext
2315EXEEXT=$ac_cv_exeext
2316ac_exeext=$EXEEXT
2317echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2319if test "${ac_cv_objext+set}" = set; then
2320  echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322  cat >conftest.$ac_ext <<_ACEOF
2323/* confdefs.h.  */
2324_ACEOF
2325cat confdefs.h >>conftest.$ac_ext
2326cat >>conftest.$ac_ext <<_ACEOF
2327/* end confdefs.h.  */
2328
2329int
2330main ()
2331{
2332
2333  ;
2334  return 0;
2335}
2336_ACEOF
2337rm -f conftest.o conftest.obj
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339  (eval $ac_compile) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; then
2343  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2344  case $ac_file in
2345    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2346    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347       break;;
2348  esac
2349done
2350else
2351  echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&5
2356echo "$as_me: error: cannot compute suffix of object files: cannot compile
2357See \`config.log' for more details." >&2;}
2358   { (exit 1); exit 1; }; }
2359fi
2360
2361rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362fi
2363echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2364echo "${ECHO_T}$ac_cv_objext" >&6
2365OBJEXT=$ac_cv_objext
2366ac_objext=$OBJEXT
2367echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2368echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2369if test "${ac_cv_c_compiler_gnu+set}" = set; then
2370  echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372  cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h.  */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h.  */
2378
2379int
2380main ()
2381{
2382#ifndef __GNUC__
2383       choke me
2384#endif
2385
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390rm -f conftest.$ac_objext
2391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392  (eval $ac_compile) 2>conftest.er1
2393  ac_status=$?
2394  grep -v '^ *+' conftest.er1 >conftest.err
2395  rm -f conftest.er1
2396  cat conftest.err >&5
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); } &&
2399         { ac_try='test -z "$ac_c_werror_flag"
2400                         || test ! -s conftest.err'
2401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402  (eval $ac_try) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; } &&
2406         { ac_try='test -s conftest.$ac_objext'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  ac_compiler_gnu=yes
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417ac_compiler_gnu=no
2418fi
2419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421
2422fi
2423echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2424echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2425GCC=`test $ac_compiler_gnu = yes && echo yes`
2426ac_test_CFLAGS=${CFLAGS+set}
2427ac_save_CFLAGS=$CFLAGS
2428CFLAGS="-g"
2429echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451  (eval $ac_compile) 2>conftest.er1
2452  ac_status=$?
2453  grep -v '^ *+' conftest.er1 >conftest.err
2454  rm -f conftest.er1
2455  cat conftest.err >&5
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); } &&
2458         { ac_try='test -z "$ac_c_werror_flag"
2459                         || test ! -s conftest.err'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; } &&
2465         { ac_try='test -s conftest.$ac_objext'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471  ac_cv_prog_cc_g=yes
2472else
2473  echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476ac_cv_prog_cc_g=no
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479fi
2480echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2481echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2482if test "$ac_test_CFLAGS" = set; then
2483  CFLAGS=$ac_save_CFLAGS
2484elif test $ac_cv_prog_cc_g = yes; then
2485  if test "$GCC" = yes; then
2486    CFLAGS="-g -O2"
2487  else
2488    CFLAGS="-g"
2489  fi
2490else
2491  if test "$GCC" = yes; then
2492    CFLAGS="-O2"
2493  else
2494    CFLAGS=
2495  fi
2496fi
2497echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2498echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2499if test "${ac_cv_prog_cc_stdc+set}" = set; then
2500  echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502  ac_cv_prog_cc_stdc=no
2503ac_save_CC=$CC
2504cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h.  */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h.  */
2510#include <stdarg.h>
2511#include <stdio.h>
2512#include <sys/types.h>
2513#include <sys/stat.h>
2514/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2515struct buf { int x; };
2516FILE * (*rcsopen) (struct buf *, struct stat *, int);
2517static char *e (p, i)
2518     char **p;
2519     int i;
2520{
2521  return p[i];
2522}
2523static char *f (char * (*g) (char **, int), char **p, ...)
2524{
2525  char *s;
2526  va_list v;
2527  va_start (v,p);
2528  s = g (p, va_arg (v,int));
2529  va_end (v);
2530  return s;
2531}
2532
2533/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2534   function prototypes and stuff, but not '\xHH' hex character constants.
2535   These don't provoke an error unfortunately, instead are silently treated
2536   as 'x'.  The following induces an error, until -std1 is added to get
2537   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2538   array size at least.  It's necessary to write '\x00'==0 to get something
2539   that's true only with -std1.  */
2540int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2541
2542int test (int i, double x);
2543struct s1 {int (*f) (int a);};
2544struct s2 {int (*f) (double a);};
2545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2546int argc;
2547char **argv;
2548int
2549main ()
2550{
2551return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2552  ;
2553  return 0;
2554}
2555_ACEOF
2556# Don't try gcc -ansi; that turns off useful extensions and
2557# breaks some systems' header files.
2558# AIX                   -qlanglvl=ansi
2559# Ultrix and OSF/1      -std1
2560# HP-UX 10.20 and later -Ae
2561# HP-UX older versions  -Aa -D_HPUX_SOURCE
2562# SVR4                  -Xc -D__EXTENSIONS__
2563for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2564do
2565  CC="$ac_save_CC $ac_arg"
2566  rm -f conftest.$ac_objext
2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568  (eval $ac_compile) 2>conftest.er1
2569  ac_status=$?
2570  grep -v '^ *+' conftest.er1 >conftest.err
2571  rm -f conftest.er1
2572  cat conftest.err >&5
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); } &&
2575         { ac_try='test -z "$ac_c_werror_flag"
2576                         || test ! -s conftest.err'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582         { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  ac_cv_prog_cc_stdc=$ac_arg
2589break
2590else
2591  echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594fi
2595rm -f conftest.err conftest.$ac_objext
2596done
2597rm -f conftest.$ac_ext conftest.$ac_objext
2598CC=$ac_save_CC
2599
2600fi
2601
2602case "x$ac_cv_prog_cc_stdc" in
2603  x|xno)
2604    echo "$as_me:$LINENO: result: none needed" >&5
2605echo "${ECHO_T}none needed" >&6 ;;
2606  *)
2607    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2608echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2609    CC="$CC $ac_cv_prog_cc_stdc" ;;
2610esac
2611
2612# Some people use a C++ compiler to compile C.  Since we use `exit',
2613# in C++ we need to declare it.  In case someone uses the same compiler
2614# for both compiling C and C++ we need to have the C++ compiler decide
2615# the declaration of exit, since it's the most demanding environment.
2616cat >conftest.$ac_ext <<_ACEOF
2617#ifndef __cplusplus
2618  choke me
2619#endif
2620_ACEOF
2621rm -f conftest.$ac_objext
2622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623  (eval $ac_compile) 2>conftest.er1
2624  ac_status=$?
2625  grep -v '^ *+' conftest.er1 >conftest.err
2626  rm -f conftest.er1
2627  cat conftest.err >&5
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); } &&
2630         { ac_try='test -z "$ac_c_werror_flag"
2631                         || test ! -s conftest.err'
2632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633  (eval $ac_try) 2>&5
2634  ac_status=$?
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); }; } &&
2637         { ac_try='test -s conftest.$ac_objext'
2638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639  (eval $ac_try) 2>&5
2640  ac_status=$?
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); }; }; then
2643  for ac_declaration in \
2644   '' \
2645   'extern "C" void std::exit (int) throw (); using std::exit;' \
2646   'extern "C" void std::exit (int); using std::exit;' \
2647   'extern "C" void exit (int) throw ();' \
2648   'extern "C" void exit (int);' \
2649   'void exit (int);'
2650do
2651  cat >conftest.$ac_ext <<_ACEOF
2652/* confdefs.h.  */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h.  */
2657$ac_declaration
2658#include <stdlib.h>
2659int
2660main ()
2661{
2662exit (42);
2663  ;
2664  return 0;
2665}
2666_ACEOF
2667rm -f conftest.$ac_objext
2668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669  (eval $ac_compile) 2>conftest.er1
2670  ac_status=$?
2671  grep -v '^ *+' conftest.er1 >conftest.err
2672  rm -f conftest.er1
2673  cat conftest.err >&5
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); } &&
2676         { ac_try='test -z "$ac_c_werror_flag"
2677                         || test ! -s conftest.err'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; } &&
2683         { ac_try='test -s conftest.$ac_objext'
2684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685  (eval $ac_try) 2>&5
2686  ac_status=$?
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); }; }; then
2689  :
2690else
2691  echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694continue
2695fi
2696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697  cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h.  */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h.  */
2703$ac_declaration
2704int
2705main ()
2706{
2707exit (42);
2708  ;
2709  return 0;
2710}
2711_ACEOF
2712rm -f conftest.$ac_objext
2713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714  (eval $ac_compile) 2>conftest.er1
2715  ac_status=$?
2716  grep -v '^ *+' conftest.er1 >conftest.err
2717  rm -f conftest.er1
2718  cat conftest.err >&5
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); } &&
2721         { ac_try='test -z "$ac_c_werror_flag"
2722                         || test ! -s conftest.err'
2723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724  (eval $ac_try) 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; } &&
2728         { ac_try='test -s conftest.$ac_objext'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; }; then
2734  break
2735else
2736  echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739fi
2740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741done
2742rm -f conftest*
2743if test -n "$ac_declaration"; then
2744  echo '#ifdef __cplusplus' >>confdefs.h
2745  echo $ac_declaration      >>confdefs.h
2746  echo '#endif'             >>confdefs.h
2747fi
2748
2749else
2750  echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753fi
2754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760
2761if test -z "$CC" ; then
2762  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2763echo "$as_me: error: Failed to find a C compiler!" >&2;}
2764   { (exit 1); exit 1; }; }
2765fi
2766# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2767case "$CC" in
2768  cl* | */cl* | CL* | */CL* )
2769    if test "$ac_cv_prog_cc_g" = yes ; then
2770      ac_cv_prog_cc_g=no
2771      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2772echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2773    fi ;;
2774esac
2775CFLAGS="$save_cflags"
2776
2777# Check if a project specific CFLAGS variable has been set
2778if test x$COIN_PRJCT != x; then
2779  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2780  if test x$coin_tmp = xset; then
2781    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2782  fi
2783fi
2784
2785if test x"$CFLAGS" = x; then
2786
2787  coin_add_cflags=
2788  coin_opt_cflags=
2789  coin_dbg_cflags=
2790  coin_warn_cflags=
2791
2792  if test "$GCC" = "yes"; then
2793    case "$CC" in
2794      icc* | */icc*)
2795        ;;
2796      *)
2797        coin_opt_cflags="-O3"
2798        coin_add_cflags="-pipe"
2799        coin_dbg_cflags="-g"
2800        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2801        case $build in
2802          *-darwin*)
2803            ;;
2804          *)
2805            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2806            ;;
2807        esac
2808        case $enable_doscompile in
2809          mingw)
2810            CFLAGS="-mno-cygwin"
2811            cat >conftest.$ac_ext <<_ACEOF
2812/* confdefs.h.  */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h.  */
2817
2818int
2819main ()
2820{
2821int i=0; i++;
2822  ;
2823  return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext conftest$ac_exeext
2827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2828  (eval $ac_link) 2>conftest.er1
2829  ac_status=$?
2830  grep -v '^ *+' conftest.er1 >conftest.err
2831  rm -f conftest.er1
2832  cat conftest.err >&5
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); } &&
2835         { ac_try='test -z "$ac_c_werror_flag"
2836                         || test ! -s conftest.err'
2837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838  (eval $ac_try) 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }; } &&
2842         { ac_try='test -s conftest$ac_exeext'
2843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844  (eval $ac_try) 2>&5
2845  ac_status=$?
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); }; }; then
2848  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2849else
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853fi
2854rm -f conftest.err conftest.$ac_objext \
2855      conftest$ac_exeext conftest.$ac_ext
2856            CFLAGS=
2857          ;;
2858        esac
2859    esac
2860  fi
2861  if test -z "$coin_opt_cflags"; then
2862    case $build in
2863      *-cygwin* | *-mingw*)
2864        case "$CC" in
2865          cl* | */cl* | CL* | */CL*)
2866            coin_opt_cflags='-MT -O2'
2867            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2868            coin_dbg_cflags='-MTd'
2869            ;;
2870          icl* | */icl* | ICL* | */ICL*)
2871            coin_opt_cflags='-MT -Ox'
2872            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2873            coin_dbg_cflags='-MTd -debug'
2874            ;;
2875        esac
2876        ;;
2877      *-linux-*)
2878        case "$CC" in
2879          icc* | */icc*)
2880            coin_opt_cflags="-O3 -ip -mp1"
2881            coin_add_cflags=""
2882            coin_dbg_cflags="-g"
2883            # Check if -i_dynamic is necessary (for new glibc library)
2884            CFLAGS=
2885            cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h.  */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h.  */
2891
2892int
2893main ()
2894{
2895int i=0; i++;
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext conftest$ac_exeext
2901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2902  (eval $ac_link) 2>conftest.er1
2903  ac_status=$?
2904  grep -v '^ *+' conftest.er1 >conftest.err
2905  rm -f conftest.er1
2906  cat conftest.err >&5
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); } &&
2909         { ac_try='test -z "$ac_c_werror_flag"
2910                         || test ! -s conftest.err'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; } &&
2916         { ac_try='test -s conftest$ac_exeext'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; }; then
2922  :
2923else
2924  echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927coin_add_cflags="-i_dynamic $coin_add_cflags"
2928fi
2929rm -f conftest.err conftest.$ac_objext \
2930      conftest$ac_exeext conftest.$ac_ext
2931            ;;
2932          pgcc* | */pgcc*)
2933            coin_opt_cflags="-fast"
2934            coin_add_cflags="-Kieee -pc 64"
2935            coin_dbg_cflags="-g"
2936            ;;
2937        esac
2938        ;;
2939      *-ibm-*)
2940        case "$CC" in
2941          xlc* | */xlc* | mpxlc* | */mpxlc*)
2942            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2943            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2944            coin_dbg_cflags="-g"
2945          ;;
2946        esac
2947        ;;
2948      *-hp-*)
2949        coin_opt_cflags="-O"
2950        coin_add_cflags="-Ae"
2951        coin_dbg_cflags="-g"
2952        ;;
2953      *-*-solaris*)
2954        coin_opt_cflags="-xO4"
2955        coin_dbg_cflags="-g"
2956        ;;
2957      *-sgi-*)
2958        coin_opt_cflags="-O -OPT:Olimit=0"
2959        coin_dbg_cflags="-g"
2960        ;;
2961    esac
2962  fi
2963
2964  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2965    coin_dbg_cflags="-g"
2966  fi
2967
2968  if test -z "$coin_opt_cflags"; then
2969    # Try if -O option works if nothing else is set
2970    CFLAGS="-O"
2971    cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h.  */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h.  */
2977
2978int
2979main ()
2980{
2981int i=0; i++;
2982  ;
2983  return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext conftest$ac_exeext
2987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988  (eval $ac_link) 2>conftest.er1
2989  ac_status=$?
2990  grep -v '^ *+' conftest.er1 >conftest.err
2991  rm -f conftest.er1
2992  cat conftest.err >&5
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); } &&
2995         { ac_try='test -z "$ac_c_werror_flag"
2996                         || test ! -s conftest.err'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; } &&
3002         { ac_try='test -s conftest$ac_exeext'
3003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004  (eval $ac_try) 2>&5
3005  ac_status=$?
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); }; }; then
3008  coin_opt_cflags="-O"
3009else
3010  echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013fi
3014rm -f conftest.err conftest.$ac_objext \
3015      conftest$ac_exeext conftest.$ac_ext
3016  fi
3017
3018  # if PM doesn't want the warning messages, take them out
3019  if test x"$coin_skip_warn_cflags" = xyes; then
3020    coin_warn_cflags=
3021  fi
3022
3023  if test x${DBG_CFLAGS+set} != xset; then
3024    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3025  fi
3026  if test x${OPT_CFLAGS+set} != xset; then
3027    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3028  fi
3029
3030  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3031  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3032
3033  if test "$coin_debug_compile" = "true"; then
3034    CFLAGS="$DBG_CFLAGS"
3035  else
3036    CFLAGS="$OPT_CFLAGS"
3037  fi
3038else
3039  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3040  if test x${DBG_CFLAGS+set} != xset; then
3041    DBG_CFLAGS="$CFLAGS"
3042  fi
3043  if test x${OPT_CFLAGS+set} != xset; then
3044    OPT_CFLAGS="$CFLAGS"
3045  fi
3046fi
3047
3048# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3049
3050case "$CFLAGS" in
3051  *-mno-cygwin*)
3052    if test x${CPPFLAGS+set} != xset ; then
3053      CPPFLAGS="-mno-cygwin"
3054    else
3055      case "$CPPFLAGS" in
3056        *-mno-cygwin*)
3057          ;;
3058        *)
3059          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3060          ;;
3061      esac
3062    fi ;;
3063esac
3064
3065# Try if CFLAGS works
3066save_CFLAGS="$CFLAGS"
3067cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h.  */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h.  */
3073
3074int
3075main ()
3076{
3077int i=0; i++;
3078  ;
3079  return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext conftest$ac_exeext
3083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3084  (eval $ac_link) 2>conftest.er1
3085  ac_status=$?
3086  grep -v '^ *+' conftest.er1 >conftest.err
3087  rm -f conftest.er1
3088  cat conftest.err >&5
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); } &&
3091         { ac_try='test -z "$ac_c_werror_flag"
3092                         || test ! -s conftest.err'
3093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094  (eval $ac_try) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; } &&
3098         { ac_try='test -s conftest$ac_exeext'
3099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100  (eval $ac_try) 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; }; then
3104  :
3105else
3106  echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109CFLAGS=
3110fi
3111rm -f conftest.err conftest.$ac_objext \
3112      conftest$ac_exeext conftest.$ac_ext
3113if test -z "$CFLAGS"; then
3114  { 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
3115echo "$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;}
3116  CFLAGS='-O'
3117  cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127int i=0; i++;
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext conftest$ac_exeext
3133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3134  (eval $ac_link) 2>conftest.er1
3135  ac_status=$?
3136  grep -v '^ *+' conftest.er1 >conftest.err
3137  rm -f conftest.er1
3138  cat conftest.err >&5
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); } &&
3141         { ac_try='test -z "$ac_c_werror_flag"
3142                         || test ! -s conftest.err'
3143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144  (eval $ac_try) 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; } &&
3148         { ac_try='test -s conftest$ac_exeext'
3149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150  (eval $ac_try) 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; }; then
3154  :
3155else
3156  echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159CFLAGS=
3160fi
3161rm -f conftest.err conftest.$ac_objext \
3162      conftest$ac_exeext conftest.$ac_ext
3163  if test -z "$CFLAGS"; then
3164    { 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
3165echo "$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;}
3166  fi
3167fi
3168
3169{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3170echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3171
3172
3173if test x"$MPICC" = x; then :; else
3174  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3175echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3176  CC="$MPICC"
3177fi
3178
3179# Correct ADDLIBS initialization if we are using the MS compiler
3180case "$CC" in
3181  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3182    ADDLIBS=
3183    case $build in
3184  *-mingw*)
3185    if test "${LD+set}" = set; then :; else
3186      LD=link
3187    fi
3188    ;;
3189 esac
3190 case $enable_doscompile in
3191   msvc)
3192     if test "x${LD+set}" = xset; then :; else
3193       LD=link
3194     fi
3195     ;;
3196 esac
3197
3198    ;;
3199esac
3200
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207
3208case $build in
3209  *-cygwin* | *-mingw*)
3210     if test "$enable_doscompile" = msvc ; then
3211       coin_f77_comps="ifort fl32 compile_f2c"
3212     else
3213       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3214     fi ;;
3215  *-*-solaris*)
3216     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3217  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3218 esac
3219
3220
3221
3222
3223
3224
3225ac_ext=f
3226ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3227ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3229
3230
3231
3232
3233
3234
3235coin_has_f77=yes
3236
3237save_fflags="$FFLAGS"
3238
3239# We delete the cached value, since the test might not have been
3240# performed with our choice of compilers earlier
3241$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3242
3243# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3244# coin_f77_comps to see if there's a program that matches one of the names.
3245# If there's no such program, F77 = unavailable. If we match the name,
3246# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3247# compiler.
3248# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3249
3250
3251{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3252echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3253for ac_prog in $coin_f77_comps
3254do
3255  # Extract the first word of "$ac_prog", so it can be a program name with args.
3256set dummy $ac_prog; ac_word=$2
3257echo "$as_me:$LINENO: checking for $ac_word" >&5
3258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259if test "${ac_cv_prog_F77+set}" = set; then
3260  echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262  if test -n "$F77"; then
3263  ac_cv_prog_F77="$F77" # Let the user override the test.
3264else
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270  for ac_exec_ext in '' $ac_executable_extensions; do
3271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272    ac_cv_prog_F77="$ac_prog"
3273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274    break 2
3275  fi
3276done
3277done
3278
3279fi
3280fi
3281F77=$ac_cv_prog_F77
3282if test -n "$F77"; then
3283  echo "$as_me:$LINENO: result: $F77" >&5
3284echo "${ECHO_T}$F77" >&6
3285else
3286  echo "$as_me:$LINENO: result: no" >&5
3287echo "${ECHO_T}no" >&6
3288fi
3289
3290  test -n "$F77" && break
3291done
3292test -n "$F77" || F77="unavailable"
3293
3294
3295if test "$F77" != "unavailable" ; then
3296  ac_ext=f
3297ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3298ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3300if test -n "$ac_tool_prefix"; then
3301  for ac_prog in $coin_f77_comps
3302  do
3303    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3305echo "$as_me:$LINENO: checking for $ac_word" >&5
3306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307if test "${ac_cv_prog_F77+set}" = set; then
3308  echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310  if test -n "$F77"; then
3311  ac_cv_prog_F77="$F77" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318  for ac_exec_ext in '' $ac_executable_extensions; do
3319  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325done
3326
3327fi
3328fi
3329F77=$ac_cv_prog_F77
3330if test -n "$F77"; then
3331  echo "$as_me:$LINENO: result: $F77" >&5
3332echo "${ECHO_T}$F77" >&6
3333else
3334  echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
3336fi
3337
3338    test -n "$F77" && break
3339  done
3340fi
3341if test -z "$F77"; then
3342  ac_ct_F77=$F77
3343  for ac_prog in $coin_f77_comps
3344do
3345  # Extract the first word of "$ac_prog", so it can be a program name with args.
3346set dummy $ac_prog; ac_word=$2
3347echo "$as_me:$LINENO: checking for $ac_word" >&5
3348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3350  echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352  if test -n "$ac_ct_F77"; then
3353  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360  for ac_exec_ext in '' $ac_executable_extensions; do
3361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362    ac_cv_prog_ac_ct_F77="$ac_prog"
3363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367done
3368
3369fi
3370fi
3371ac_ct_F77=$ac_cv_prog_ac_ct_F77
3372if test -n "$ac_ct_F77"; then
3373  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3374echo "${ECHO_T}$ac_ct_F77" >&6
3375else
3376  echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
3378fi
3379
3380  test -n "$ac_ct_F77" && break
3381done
3382
3383  F77=$ac_ct_F77
3384fi
3385
3386
3387# Provide some information about the compiler.
3388echo "$as_me:3388:" \
3389     "checking for Fortran 77 compiler version" >&5
3390ac_compiler=`set X $ac_compile; echo $2`
3391{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3392  (eval $ac_compiler --version </dev/null >&5) 2>&5
3393  ac_status=$?
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); }
3396{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3397  (eval $ac_compiler -v </dev/null >&5) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }
3401{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3402  (eval $ac_compiler -V </dev/null >&5) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); }
3406rm -f a.out
3407
3408# If we don't use `.F' as extension, the preprocessor is not run on the
3409# input file.  (Note that this only needs to work for GNU compilers.)
3410ac_save_ext=$ac_ext
3411ac_ext=F
3412echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3413echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3414if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3415  echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417  cat >conftest.$ac_ext <<_ACEOF
3418      program main
3419#ifndef __GNUC__
3420       choke me
3421#endif
3422
3423      end
3424_ACEOF
3425rm -f conftest.$ac_objext
3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427  (eval $ac_compile) 2>conftest.er1
3428  ac_status=$?
3429  grep -v '^ *+' conftest.er1 >conftest.err
3430  rm -f conftest.er1
3431  cat conftest.err >&5
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); } &&
3434         { ac_try='test -z "$ac_f77_werror_flag"
3435                         || test ! -s conftest.err'
3436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437  (eval $ac_try) 2>&5
3438  ac_status=$?
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); }; } &&
3441         { ac_try='test -s conftest.$ac_objext'
3442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443  (eval $ac_try) 2>&5
3444  ac_status=$?
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); }; }; then
3447  ac_compiler_gnu=yes
3448else
3449  echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452ac_compiler_gnu=no
3453fi
3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3456
3457fi
3458echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3459echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3460ac_ext=$ac_save_ext
3461ac_test_FFLAGS=${FFLAGS+set}
3462ac_save_FFLAGS=$FFLAGS
3463FFLAGS=
3464echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3465echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3466if test "${ac_cv_prog_f77_g+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469  FFLAGS=-g
3470cat >conftest.$ac_ext <<_ACEOF
3471      program main
3472
3473      end
3474_ACEOF
3475rm -f conftest.$ac_objext
3476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477  (eval $ac_compile) 2>conftest.er1
3478  ac_status=$?
3479  grep -v '^ *+' conftest.er1 >conftest.err
3480  rm -f conftest.er1
3481  cat conftest.err >&5
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); } &&
3484         { ac_try='test -z "$ac_f77_werror_flag"
3485                         || test ! -s conftest.err'
3486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487  (eval $ac_try) 2>&5
3488  ac_status=$?
3489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490  (exit $ac_status); }; } &&
3491         { ac_try='test -s conftest.$ac_objext'
3492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493  (eval $ac_try) 2>&5
3494  ac_status=$?
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); }; }; then
3497  ac_cv_prog_f77_g=yes
3498else
3499  echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502ac_cv_prog_f77_g=no
3503fi
3504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3505
3506fi
3507echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3508echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3509if test "$ac_test_FFLAGS" = set; then
3510  FFLAGS=$ac_save_FFLAGS
3511elif test $ac_cv_prog_f77_g = yes; then
3512  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3513    FFLAGS="-g -O2"
3514  else
3515    FFLAGS="-g"
3516  fi
3517else
3518  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3519    FFLAGS="-O2"
3520  else
3521    FFLAGS=
3522  fi
3523fi
3524
3525G77=`test $ac_compiler_gnu = yes && echo yes`
3526ac_ext=f
3527ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3528ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3530
3531else
3532  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3533echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3534fi
3535
3536FFLAGS="$save_fflags"
3537
3538# Check if a project specific FFLAGS variable has been set
3539if test x$COIN_PRJCT != x; then
3540  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3541  if test x$coin_tmp = xset; then
3542    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3543  fi
3544fi
3545
3546if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3547
3548  coin_add_fflags=
3549  coin_opt_fflags=
3550  coin_dbg_fflags=
3551  coin_warn_fflags=
3552
3553  if test "$G77" = "yes"; then
3554    coin_opt_fflags="-O3"
3555    coin_add_fflags="-pipe"
3556    coin_dbg_fflags="-g"
3557    case $enable_doscompile in
3558      mingw)
3559        FFLAGS="-mno-cygwin"
3560        cat >conftest.$ac_ext <<_ACEOF
3561      program main
3562      write(*,*) 'Hello world'
3563      end
3564_ACEOF
3565rm -f conftest.$ac_objext conftest$ac_exeext
3566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3567  (eval $ac_link) 2>conftest.er1
3568  ac_status=$?
3569  grep -v '^ *+' conftest.er1 >conftest.err
3570  rm -f conftest.er1
3571  cat conftest.err >&5
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); } &&
3574         { ac_try='test -z "$ac_f77_werror_flag"
3575                         || test ! -s conftest.err'
3576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577  (eval $ac_try) 2>&5
3578  ac_status=$?
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); }; } &&
3581         { ac_try='test -s conftest$ac_exeext'
3582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583  (eval $ac_try) 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; }; then
3587  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3588else
3589  echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592fi
3593rm -f conftest.err conftest.$ac_objext \
3594      conftest$ac_exeext conftest.$ac_ext
3595        FFLAGS=
3596      ;;
3597    esac
3598  else
3599    case $build in
3600      *-cygwin* | *-mingw*)
3601        case $F77 in
3602          ifort* | */ifort* | IFORT* | */IFORT* )
3603            coin_opt_fflags='-MT -O3'
3604            coin_add_fflags='-fpp -nologo'
3605            coin_dbg_fflags='-MTd -debug'
3606          ;;
3607          compile_f2c*)
3608            coin_opt_fflags='-MT -O2'
3609            coin_add_fflags='-nologo -wd4996'
3610            coin_dbg_fflags='-MTd'
3611          ;;
3612        esac
3613        ;;
3614      *-linux-*)
3615        case $F77 in
3616          ifc* | */ifc* | ifort* | */ifort*)
3617            coin_opt_fflags="-O3 -ip"
3618            coin_add_fflags="-cm -w90 -w95"
3619            coin_dbg_fflags="-g -CA -CB -CS"
3620            # Check if -i_dynamic is necessary (for new glibc library)
3621            FFLAGS=
3622            cat >conftest.$ac_ext <<_ACEOF
3623      program main
3624      write(*,*) 'Hello world'
3625      end
3626_ACEOF
3627rm -f conftest.$ac_objext conftest$ac_exeext
3628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629  (eval $ac_link) 2>conftest.er1
3630  ac_status=$?
3631  grep -v '^ *+' conftest.er1 >conftest.err
3632  rm -f conftest.er1
3633  cat conftest.err >&5
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); } &&
3636         { ac_try='test -z "$ac_f77_werror_flag"
3637                         || test ! -s conftest.err'
3638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639  (eval $ac_try) 2>&5
3640  ac_status=$?
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); }; } &&
3643         { ac_try='test -s conftest$ac_exeext'
3644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645  (eval $ac_try) 2>&5
3646  ac_status=$?
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); }; }; then
3649  :
3650else
3651  echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654coin_add_fflags="-i_dynamic $coin_add_fflags"
3655fi
3656rm -f conftest.err conftest.$ac_objext \
3657      conftest$ac_exeext conftest.$ac_ext
3658            ;;
3659          pgf77* | */pgf77* | pgf90* | */pgf90*)
3660            coin_opt_fflags="-fast"
3661            coin_add_fflags="-Kieee -pc 64"
3662            coin_dbg_fflags="-g"
3663          ;;
3664        esac
3665        ;;
3666      *-ibm-*)
3667        case "$F77" in
3668          xlf* | */xlf* | mpxlf* | */mpxlf* )
3669            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3670            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3671            coin_dbg_fflags="-g -C"
3672            ;;
3673        esac
3674        ;;
3675      *-hp-*)
3676        coin_opt_fflags="+O3"
3677        coin_add_fflags="+U77"
3678        coin_dbg_fflags="-C -g"
3679        ;;
3680      *-*-solaris*)
3681        coin_opt_fflags="-O4"
3682        coin_dbg_fflags="-g"
3683        ;;
3684      *-sgi-*)
3685        coin_opt_fflags="-O5 -OPT:Olimit=0"
3686        coin_dbg_fflags="-g"
3687        ;;
3688    esac
3689  fi
3690
3691  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3692    coin_dbg_fflags="-g"
3693  fi
3694
3695  if test -z "$coin_opt_fflags"; then
3696    # Try if -O option works if nothing else is set
3697    FFLAGS=-O
3698    cat >conftest.$ac_ext <<_ACEOF
3699      program main
3700      integer i
3701      end
3702_ACEOF
3703rm -f conftest.$ac_objext conftest$ac_exeext
3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705  (eval $ac_link) 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } &&
3712         { ac_try='test -z "$ac_f77_werror_flag"
3713                         || test ! -s conftest.err'
3714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715  (eval $ac_try) 2>&5
3716  ac_status=$?
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); }; } &&
3719         { ac_try='test -s conftest$ac_exeext'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; }; then
3725  coin_opt_fflags="-O"
3726else
3727  echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730fi
3731rm -f conftest.err conftest.$ac_objext \
3732      conftest$ac_exeext conftest.$ac_ext
3733  fi
3734
3735  # if PM doesn't want the warning messages, take them out
3736  if test x"$coin_skip_warn_fflags" = xyes; then
3737    coin_warn_fflags=
3738  fi
3739
3740  if test x${DBG_FFLAGS+set} != xset; then
3741    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3742  fi
3743  if test x${OPT_FFLAGS+set} != xset; then
3744    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3745  fi
3746
3747  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3748  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3749
3750  if test "$coin_debug_compile" = "true"; then
3751    FFLAGS="$DBG_FFLAGS"
3752  else
3753    FFLAGS="$OPT_FFLAGS"
3754  fi
3755else
3756  FFLAGS="$FFLAGS $ADD_FFLAGS"
3757  if test x${DBG_FFLAGS+set} != xset; then
3758    DBG_FFLAGS="$FFLAGS"
3759  fi
3760  if test x${OPT_FFLAGS+set} != xset; then
3761    OPT_FFLAGS="$FFLAGS"
3762  fi
3763fi
3764
3765# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3766case "$FFLAGS" in
3767  *-mno-cygwin*)
3768    if test x${CPPFLAGS+set} != xset ; then
3769      CPPFLAGS="-mno-cygwin"
3770    else
3771      case "$CPPFLAGS" in
3772        *-mno-cygwin*)
3773          ;;
3774        *)
3775          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3776          ;;
3777      esac
3778    fi ;;
3779esac
3780
3781# Try if FFLAGS works
3782if test "$F77" != "unavailable" ; then
3783  cat >conftest.$ac_ext <<_ACEOF
3784      program main
3785      integer i
3786      end
3787_ACEOF
3788rm -f conftest.$ac_objext conftest$ac_exeext
3789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790  (eval $ac_link) 2>conftest.er1
3791  ac_status=$?
3792  grep -v '^ *+' conftest.er1 >conftest.err
3793  rm -f conftest.er1
3794  cat conftest.err >&5
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); } &&
3797         { ac_try='test -z "$ac_f77_werror_flag"
3798                         || test ! -s conftest.err'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; } &&
3804         { ac_try='test -s conftest$ac_exeext'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; }; then
3810  :
3811else
3812  echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815FFLAGS=
3816fi
3817rm -f conftest.err conftest.$ac_objext \
3818      conftest$ac_exeext conftest.$ac_ext
3819  if test -z "$FFLAGS"; then
3820    { 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
3821echo "$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;}
3822    FFLAGS='-O'
3823    cat >conftest.$ac_ext <<_ACEOF
3824      program main
3825      integer i
3826      end
3827_ACEOF
3828rm -f conftest.$ac_objext conftest$ac_exeext
3829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830  (eval $ac_link) 2>conftest.er1
3831  ac_status=$?
3832  grep -v '^ *+' conftest.er1 >conftest.err
3833  rm -f conftest.er1
3834  cat conftest.err >&5
3835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836  (exit $ac_status); } &&
3837         { ac_try='test -z "$ac_f77_werror_flag"
3838                         || test ! -s conftest.err'
3839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840  (eval $ac_try) 2>&5
3841  ac_status=$?
3842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843  (exit $ac_status); }; } &&
3844         { ac_try='test -s conftest$ac_exeext'
3845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846  (eval $ac_try) 2>&5
3847  ac_status=$?
3848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849  (exit $ac_status); }; }; then
3850  :
3851else
3852  echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855FFLAGS=
3856fi
3857rm -f conftest.err conftest.$ac_objext \
3858      conftest$ac_exeext conftest.$ac_ext
3859    if test -z "$FFLAGS"; then
3860      { 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
3861echo "$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;}
3862    fi
3863  fi
3864fi
3865
3866{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3867echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3868
3869
3870if test x"$MPIF77" = x; then :; else
3871  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3872echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3873  F77="$MPIF77"
3874fi
3875
3876case "$F77" in
3877  ifort* | */ifort* | IFORT* | */IFORT*)
3878    case $build in
3879  *-mingw*)
3880    if test "${LD+set}" = set; then :; else
3881      LD=link
3882    fi
3883    ;;
3884 esac
3885 case $enable_doscompile in
3886   msvc)
3887     if test "x${LD+set}" = xset; then :; else
3888       LD=link
3889     fi
3890     ;;
3891 esac
3892
3893    ;;
3894esac
3895
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902
3903
3904# Get the linker flags (FLIBS) that are required for linking against this blas library
3905ac_ext=f
3906ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3907ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3909echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3910echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3911if test "${ac_cv_prog_f77_v+set}" = set; then
3912  echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914  cat >conftest.$ac_ext <<_ACEOF
3915      program main
3916
3917      end
3918_ACEOF
3919rm -f conftest.$ac_objext
3920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921  (eval $ac_compile) 2>conftest.er1
3922  ac_status=$?
3923  grep -v '^ *+' conftest.er1 >conftest.err
3924  rm -f conftest.er1
3925  cat conftest.err >&5
3926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927  (exit $ac_status); } &&
3928         { ac_try='test -z "$ac_f77_werror_flag"
3929                         || test ! -s conftest.err'
3930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931  (eval $ac_try) 2>&5
3932  ac_status=$?
3933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934  (exit $ac_status); }; } &&
3935         { ac_try='test -s conftest.$ac_objext'
3936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937  (eval $ac_try) 2>&5
3938  ac_status=$?
3939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940  (exit $ac_status); }; }; then
3941  ac_cv_prog_f77_v=
3942# Try some options frequently used verbose output
3943for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3944  cat >conftest.$ac_ext <<_ACEOF
3945      program main
3946
3947      end
3948_ACEOF
3949
3950# Compile and link our simple test program by passing a flag (argument
3951# 1 to this macro) to the Fortran compiler in order to get
3952# "verbose" output that we can then parse for the Fortran linker
3953# flags.
3954ac_save_FFLAGS=$FFLAGS
3955FFLAGS="$FFLAGS $ac_verb"
3956(eval echo $as_me:3956: \"$ac_link\") >&5
3957ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3958echo "$ac_f77_v_output" >&5
3959FFLAGS=$ac_save_FFLAGS
3960
3961rm -f conftest*
3962
3963# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3964# /foo, /bar, and /baz are search directories for the Fortran linker.
3965# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3966ac_f77_v_output="`echo $ac_f77_v_output |
3967        grep 'LPATH is:' |
3968        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3969
3970case $ac_f77_v_output in
3971  # If we are using xlf then replace all the commas with spaces.
3972  *xlfentry*)
3973    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3974
3975  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3976  # $LIBS confuse us, and the libraries appear later in the output anyway).
3977  *mGLOB_options_string*)
3978    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3979
3980  # If we are using Cray Fortran then delete quotes.
3981  # Use "\"" instead of '"' for font-lock-mode.
3982  # FIXME: a more general fix for quoted arguments with spaces?
3983  *cft90*)
3984    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3985esac
3986
3987
3988  # look for -l* and *.a constructs in the output
3989  for ac_arg in $ac_f77_v_output; do
3990     case $ac_arg in
3991        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3992          ac_cv_prog_f77_v=$ac_verb
3993          break 2 ;;
3994     esac
3995  done
3996done
3997if test -z "$ac_cv_prog_f77_v"; then
3998   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3999echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4000fi
4001else
4002  echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4006echo "$as_me: WARNING: compilation failed" >&2;}
4007fi
4008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4012echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4013echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4014echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4015if test "${ac_cv_f77_libs+set}" = set; then
4016  echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018  if test "x$FLIBS" != "x"; then
4019  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4020else
4021
4022cat >conftest.$ac_ext <<_ACEOF
4023      program main
4024
4025      end
4026_ACEOF
4027
4028# Compile and link our simple test program by passing a flag (argument
4029# 1 to this macro) to the Fortran compiler in order to get
4030# "verbose" output that we can then parse for the Fortran linker
4031# flags.
4032ac_save_FFLAGS=$FFLAGS
4033FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4034(eval echo $as_me:4034: \"$ac_link\") >&5
4035ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4036echo "$ac_f77_v_output" >&5
4037FFLAGS=$ac_save_FFLAGS
4038
4039rm -f conftest*
4040
4041# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4042# /foo, /bar, and /baz are search directories for the Fortran linker.
4043# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4044ac_f77_v_output="`echo $ac_f77_v_output |
4045        grep 'LPATH is:' |
4046        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4047
4048case $ac_f77_v_output in
4049  # If we are using xlf then replace all the commas with spaces.
4050  *xlfentry*)
4051    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4052
4053  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4054  # $LIBS confuse us, and the libraries appear later in the output anyway).
4055  *mGLOB_options_string*)
4056    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4057
4058  # If we are using Cray Fortran then delete quotes.
4059  # Use "\"" instead of '"' for font-lock-mode.
4060  # FIXME: a more general fix for quoted arguments with spaces?
4061  *cft90*)
4062    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4063esac
4064
4065
4066
4067ac_cv_f77_libs=
4068
4069# Save positional arguments (if any)
4070ac_save_positional="$@"
4071
4072set X $ac_f77_v_output
4073while test $# != 1; do
4074  shift
4075  ac_arg=$1
4076  case $ac_arg in
4077        [\\/]*.a | ?:[\\/]*.a)
4078            ac_exists=false
4079  for ac_i in $ac_cv_f77_libs; do
4080    if test x"$ac_arg" = x"$ac_i"; then
4081      ac_exists=true
4082      break
4083    fi
4084  done
4085
4086  if test x"$ac_exists" = xtrue; then
4087  :
4088else
4089  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4090fi
4091
4092          ;;
4093        -bI:*)
4094            ac_exists=false
4095  for ac_i in $ac_cv_f77_libs; do
4096    if test x"$ac_arg" = x"$ac_i"; then
4097      ac_exists=true
4098      break
4099    fi
4100  done
4101
4102  if test x"$ac_exists" = xtrue; then
4103  :
4104else
4105  if test "$ac_compiler_gnu" = yes; then
4106  for ac_link_opt in $ac_arg; do
4107    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4108  done
4109else
4110  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4111fi
4112fi
4113
4114          ;;
4115          # Ignore these flags.
4116        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4117          ;;
4118        -lkernel32)
4119          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4120          ;;
4121        -[LRuY])
4122          # These flags, when seen by themselves, take an argument.
4123          # We remove the space between option and argument and re-iterate
4124          # unless we find an empty arg or a new option (starting with -)
4125          case $2 in
4126             "" | -*);;
4127             *)
4128                ac_arg="$ac_arg$2"
4129                shift; shift
4130                set X $ac_arg "$@"
4131                ;;
4132          esac
4133          ;;
4134        -YP,*)
4135          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4136              ac_exists=false
4137  for ac_i in $ac_cv_f77_libs; do
4138    if test x"$ac_j" = x"$ac_i"; then
4139      ac_exists=true
4140      break
4141    fi
4142  done
4143
4144  if test x"$ac_exists" = xtrue; then
4145  :
4146else
4147  ac_arg="$ac_arg $ac_j"
4148                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4149fi
4150
4151          done
4152          ;;
4153        -[lLR]*)
4154            ac_exists=false
4155  for ac_i in $ac_cv_f77_libs; do
4156    if test x"$ac_arg" = x"$ac_i"; then
4157      ac_exists=true
4158      break
4159    fi
4160  done
4161
4162  if test x"$ac_exists" = xtrue; then
4163  :
4164else
4165  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4166fi
4167
4168          ;;
4169          # Ignore everything else.
4170  esac
4171done
4172# restore positional arguments
4173set X $ac_save_positional; shift
4174
4175# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4176# then we insist that the "run path" must be an absolute path (i.e. it
4177# must begin with a "/").
4178case `(uname -sr) 2>/dev/null` in
4179   "SunOS 5"*)
4180      ac_ld_run_path=`echo $ac_f77_v_output |
4181                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4182      test "x$ac_ld_run_path" != x &&
4183        if test "$ac_compiler_gnu" = yes; then
4184  for ac_link_opt in $ac_ld_run_path; do
4185    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4186  done
4187else
4188  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4189fi
4190      ;;
4191esac
4192fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4193
4194fi
4195echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4196echo "${ECHO_T}$ac_cv_f77_libs" >&6
4197FLIBS="$ac_cv_f77_libs"
4198
4199
4200ac_ext=f
4201ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4202ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4204
4205ac_ext=f
4206ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4207ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4209
4210echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4211echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4212if test "${ac_cv_f77_dummy_main+set}" = set; then
4213  echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215  ac_f77_dm_save_LIBS=$LIBS
4216 LIBS="$LIBS $FLIBS"
4217 ac_fortran_dm_var=F77_DUMMY_MAIN
4218 ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224 # First, try linking without a dummy main:
4225 cat >conftest.$ac_ext <<_ACEOF
4226/* confdefs.h.  */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h.  */
4231
4232#ifdef F77_DUMMY_MAIN
4233
4234#  ifdef __cplusplus
4235     extern "C"
4236#  endif
4237   int F77_DUMMY_MAIN() { return 1; }
4238
4239#endif
4240int
4241main ()
4242{
4243
4244  ;
4245  return 0;
4246}
4247_ACEOF
4248rm -f conftest.$ac_objext conftest$ac_exeext
4249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250  (eval $ac_link) 2>conftest.er1
4251  ac_status=$?
4252  grep -v '^ *+' conftest.er1 >conftest.err
4253  rm -f conftest.er1
4254  cat conftest.err >&5
4255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256  (exit $ac_status); } &&
4257         { ac_try='test -z "$ac_c_werror_flag"
4258                         || test ! -s conftest.err'
4259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260  (eval $ac_try) 2>&5
4261  ac_status=$?
4262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263  (exit $ac_status); }; } &&
4264         { ac_try='test -s conftest$ac_exeext'
4265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266  (eval $ac_try) 2>&5
4267  ac_status=$?
4268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269  (exit $ac_status); }; }; then
4270  ac_cv_fortran_dummy_main=none
4271else
4272  echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275ac_cv_fortran_dummy_main=unknown
4276fi
4277rm -f conftest.err conftest.$ac_objext \
4278      conftest$ac_exeext conftest.$ac_ext
4279
4280 if test $ac_cv_fortran_dummy_main = unknown; then
4281   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4282     cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h.  */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h.  */
4288#define $ac_fortran_dm_var $ac_func
4289#ifdef F77_DUMMY_MAIN
4290
4291#  ifdef __cplusplus
4292     extern "C"
4293#  endif
4294   int F77_DUMMY_MAIN() { return 1; }
4295
4296#endif
4297int
4298main ()
4299{
4300
4301  ;
4302  return 0;
4303}
4304_ACEOF
4305rm -f conftest.$ac_objext conftest$ac_exeext
4306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307  (eval $ac_link) 2>conftest.er1
4308  ac_status=$?
4309  grep -v '^ *+' conftest.er1 >conftest.err
4310  rm -f conftest.er1
4311  cat conftest.err >&5
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); } &&
4314         { ac_try='test -z "$ac_c_werror_flag"
4315                         || test ! -s conftest.err'
4316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317  (eval $ac_try) 2>&5
4318  ac_status=$?
4319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320  (exit $ac_status); }; } &&
4321         { ac_try='test -s conftest$ac_exeext'
4322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323  (eval $ac_try) 2>&5
4324  ac_status=$?
4325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326  (exit $ac_status); }; }; then
4327  ac_cv_fortran_dummy_main=$ac_func; break
4328else
4329  echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332fi
4333rm -f conftest.err conftest.$ac_objext \
4334      conftest$ac_exeext conftest.$ac_ext
4335   done
4336 fi
4337 ac_ext=f
4338ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4339ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4341 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4342 rm -f conftest*
4343 LIBS=$ac_f77_dm_save_LIBS
4344
4345fi
4346echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4347echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4348F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4349if test "$F77_DUMMY_MAIN" != unknown; then
4350  if test $F77_DUMMY_MAIN != none; then
4351
4352cat >>confdefs.h <<_ACEOF
4353#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4354_ACEOF
4355
4356  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4357
4358cat >>confdefs.h <<\_ACEOF
4359#define FC_DUMMY_MAIN_EQ_F77 1
4360_ACEOF
4361
4362  fi
4363fi
4364else
4365  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4366See \`config.log' for more details." >&5
4367echo "$as_me: error: linking to Fortran libraries from C fails
4368See \`config.log' for more details." >&2;}
4369   { (exit 1); exit 1; }; }
4370fi
4371
4372
4373ac_ext=f
4374ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4375ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4377
4378ac_ext=f
4379ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4380ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4382echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4383echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4384if test "${ac_cv_f77_mangling+set}" = set; then
4385  echo $ECHO_N "(cached) $ECHO_C" >&6
4386else
4387  cat >conftest.$ac_ext <<_ACEOF
4388      subroutine foobar()
4389      return
4390      end
4391      subroutine foo_bar()
4392      return
4393      end
4394_ACEOF
4395rm -f conftest.$ac_objext
4396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397  (eval $ac_compile) 2>conftest.er1
4398  ac_status=$?
4399  grep -v '^ *+' conftest.er1 >conftest.err
4400  rm -f conftest.er1
4401  cat conftest.err >&5
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); } &&
4404         { ac_try='test -z "$ac_f77_werror_flag"
4405                         || test ! -s conftest.err'
4406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407  (eval $ac_try) 2>&5
4408  ac_status=$?
4409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410  (exit $ac_status); }; } &&
4411         { ac_try='test -s conftest.$ac_objext'
4412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413  (eval $ac_try) 2>&5
4414  ac_status=$?
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); }; }; then
4417  mv conftest.$ac_objext cfortran_test.$ac_objext
4418
4419  ac_save_LIBS=$LIBS
4420  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4421
4422  ac_ext=c
4423ac_cpp='$CPP $CPPFLAGS'
4424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427  ac_success=no
4428  for ac_foobar in foobar FOOBAR; do
4429    for ac_underscore in "" "_"; do
4430      ac_func="$ac_foobar$ac_underscore"
4431      cat >conftest.$ac_ext <<_ACEOF
4432/* confdefs.h.  */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h.  */
4437
4438/* Override any gcc2 internal prototype to avoid an error.  */
4439#ifdef __cplusplus
4440extern "C"
4441#endif
4442/* We use char because int might match the return type of a gcc2
4443   builtin and then its argument prototype would still apply.  */
4444char $ac_func ();
4445#ifdef F77_DUMMY_MAIN
4446
4447#  ifdef __cplusplus
4448     extern "C"
4449#  endif
4450   int F77_DUMMY_MAIN() { return 1; }
4451
4452#endif
4453int
4454main ()
4455{
4456$ac_func ();
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461rm -f conftest.$ac_objext conftest$ac_exeext
4462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463  (eval $ac_link) 2>conftest.er1
4464  ac_status=$?
4465  grep -v '^ *+' conftest.er1 >conftest.err
4466  rm -f conftest.er1
4467  cat conftest.err >&5
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); } &&
4470         { ac_try='test -z "$ac_c_werror_flag"
4471                         || test ! -s conftest.err'
4472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473  (eval $ac_try) 2>&5
4474  ac_status=$?
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); }; } &&
4477         { ac_try='test -s conftest$ac_exeext'
4478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479  (eval $ac_try) 2>&5
4480  ac_status=$?
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); }; }; then
4483  ac_success=yes; break 2
4484else
4485  echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488fi
4489rm -f conftest.err conftest.$ac_objext \
4490      conftest$ac_exeext conftest.$ac_ext
4491    done
4492  done
4493  ac_ext=f
4494ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4495ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4497
4498  if test "$ac_success" = "yes"; then
4499     case $ac_foobar in
4500        foobar)
4501           ac_case=lower
4502           ac_foo_bar=foo_bar
4503           ;;
4504        FOOBAR)
4505           ac_case=upper
4506           ac_foo_bar=FOO_BAR
4507           ;;
4508     esac
4509
4510     ac_ext=c
4511ac_cpp='$CPP $CPPFLAGS'
4512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515     ac_success_extra=no
4516     for ac_extra in "" "_"; do
4517        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4518        cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h.  */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h.  */
4524
4525/* Override any gcc2 internal prototype to avoid an error.  */
4526#ifdef __cplusplus
4527extern "C"
4528#endif
4529/* We use char because int might match the return type of a gcc2
4530   builtin and then its argument prototype would still apply.  */
4531char $ac_func ();
4532#ifdef F77_DUMMY_MAIN
4533
4534#  ifdef __cplusplus
4535     extern "C"
4536#  endif
4537   int F77_DUMMY_MAIN() { return 1; }
4538
4539#endif
4540int
4541main ()
4542{
4543$ac_func ();
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548rm -f conftest.$ac_objext conftest$ac_exeext
4549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550  (eval $ac_link) 2>conftest.er1
4551  ac_status=$?
4552  grep -v '^ *+' conftest.er1 >conftest.err
4553  rm -f conftest.er1
4554  cat conftest.err >&5
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } &&
4557         { ac_try='test -z "$ac_c_werror_flag"
4558                         || test ! -s conftest.err'
4559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560  (eval $ac_try) 2>&5
4561  ac_status=$?
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); }; } &&
4564         { ac_try='test -s conftest$ac_exeext'
4565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566  (eval $ac_try) 2>&5
4567  ac_status=$?
4568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569  (exit $ac_status); }; }; then
4570  ac_success_extra=yes; break
4571else
4572  echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575fi
4576rm -f conftest.err conftest.$ac_objext \
4577      conftest$ac_exeext conftest.$ac_ext
4578     done
4579     ac_ext=f
4580ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4581ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4583
4584     if test "$ac_success_extra" = "yes"; then
4585        ac_cv_f77_mangling="$ac_case case"
4586        if test -z "$ac_underscore"; then
4587           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4588        else
4589           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4590        fi
4591        if test -z "$ac_extra"; then
4592           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4593        else
4594           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4595        fi
4596      else
4597        ac_cv_f77_mangling="unknown"
4598      fi
4599  else
4600     ac_cv_f77_mangling="unknown"
4601  fi
4602
4603  LIBS=$ac_save_LIBS
4604  rm -f cfortran_test* conftest*
4605else
4606  echo "$as_me: failed program was:" >&5
4607sed 's/^/| /' conftest.$ac_ext >&5
4608
4609{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4610See \`config.log' for more details." >&5
4611echo "$as_me: error: cannot compile a simple Fortran program
4612See \`config.log' for more details." >&2;}
4613   { (exit 1); exit 1; }; }
4614fi
4615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616
4617fi
4618echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4619echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4620
4621ac_ext=f
4622ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4623ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4625
4626
4627ac_ext=f
4628ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4629ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4631
4632
4633ac_ext=f
4634ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4635ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4637
4638
4639case $ac_cv_f77_mangling in
4640  "lower case, no underscore, no extra underscore")
4641          cat >>confdefs.h <<\_ACEOF
4642#define F77_FUNC(name,NAME) name
4643_ACEOF
4644
4645          cat >>confdefs.h <<\_ACEOF
4646#define F77_FUNC_(name,NAME) name
4647_ACEOF
4648 ;;
4649  "lower case, no underscore, extra underscore")
4650          cat >>confdefs.h <<\_ACEOF
4651#define F77_FUNC(name,NAME) name
4652_ACEOF
4653
4654          cat >>confdefs.h <<\_ACEOF
4655#define F77_FUNC_(name,NAME) name ## _
4656_ACEOF
4657 ;;
4658  "lower case, underscore, no extra underscore")
4659          cat >>confdefs.h <<\_ACEOF
4660#define F77_FUNC(name,NAME) name ## _
4661_ACEOF
4662
4663          cat >>confdefs.h <<\_ACEOF
4664#define F77_FUNC_(name,NAME) name ## _
4665_ACEOF
4666 ;;
4667  "lower case, underscore, extra underscore")
4668          cat >>confdefs.h <<\_ACEOF
4669#define F77_FUNC(name,NAME) name ## _
4670_ACEOF
4671
4672          cat >>confdefs.h <<\_ACEOF
4673#define F77_FUNC_(name,NAME) name ## __
4674_ACEOF
4675 ;;
4676  "upper case, no underscore, no extra underscore")
4677          cat >>confdefs.h <<\_ACEOF
4678#define F77_FUNC(name,NAME) NAME
4679_ACEOF
4680
4681          cat >>confdefs.h <<\_ACEOF
4682#define F77_FUNC_(name,NAME) NAME
4683_ACEOF
4684 ;;
4685  "upper case, no underscore, extra underscore")
4686          cat >>confdefs.h <<\_ACEOF
4687#define F77_FUNC(name,NAME) NAME
4688_ACEOF
4689
4690          cat >>confdefs.h <<\_ACEOF
4691#define F77_FUNC_(name,NAME) NAME ## _
4692_ACEOF
4693 ;;
4694  "upper case, underscore, no extra underscore")
4695          cat >>confdefs.h <<\_ACEOF
4696#define F77_FUNC(name,NAME) NAME ## _
4697_ACEOF
4698
4699          cat >>confdefs.h <<\_ACEOF
4700#define F77_FUNC_(name,NAME) NAME ## _
4701_ACEOF
4702 ;;
4703  "upper case, underscore, extra underscore")
4704          cat >>confdefs.h <<\_ACEOF
4705#define F77_FUNC(name,NAME) NAME ## _
4706_ACEOF
4707
4708          cat >>confdefs.h <<\_ACEOF
4709#define F77_FUNC_(name,NAME) NAME ## __
4710_ACEOF
4711 ;;
4712  *)
4713          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4714echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4715          ;;
4716esac
4717
4718ac_ext=f
4719ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4720ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4722
4723
4724# If FLIBS has been set by the user, we just restore its value here
4725if test x"$save_FLIBS" != x; then
4726  FLIBS="$save_FLIBS"
4727else
4728  # This is to correct a missing exclusion in autoconf 2.59
4729  if test x"$FLIBS" != x; then
4730    my_flibs=
4731    for flag in $FLIBS; do
4732      case $flag in
4733        -lcrt*.o) ;;
4734        -lcygwin) ;;
4735               *) my_flibs="$my_flibs $flag" ;;
4736      esac
4737    done
4738    FLIBS="$my_flibs"
4739  fi
4740
4741  case $build in
4742  # The following is a fix to define FLIBS for ifort on Windows
4743  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4744  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4745  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4746  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4747  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
4748     *-cygwin* | *-mingw*)
4749       case "$F77" in
4750#         ifort* | */ifort* | IFORT* | */IFORT*)
4751#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4752#           if "$coin_debug_compile" = true ; then
4753#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4754#           else
4755#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4756#           fi
4757#           ;;
4758         compile_f2c*)
4759           FLIBS=`$F77 -FLIBS` ;;
4760       esac;;
4761     *-hp-*)
4762         FLIBS="$FLIBS -lm";;
4763     *-ibm-*)
4764         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4765     *-linux-*)
4766       case "$F77" in
4767         pgf77* | */pgf77* | pgf90* | */pgf90*)
4768# ask linker to go through the archives multiple times
4769# (the Fortran compiler seems to do that automatically...)
4770           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4771       esac
4772  esac
4773  ac_cv_f77_libs="$FLIBS"
4774fi
4775
4776ac_ext=c
4777ac_cpp='$CPP $CPPFLAGS'
4778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781
4782
4783
4784
4785# Add FLIBS to BLAS_PCLIBS, so that they get into the .pc files
4786BLAS_PCLIBS="$FLIBS"
4787
4788
4789# Check if pkg-config is available (to setup addlibs file)
4790
4791
4792# Check whether --enable-pkg-config or --disable-pkg-config was given.
4793if test "${enable_pkg_config+set}" = set; then
4794  enableval="$enable_pkg_config"
4795  use_pkgconfig="$enableval"
4796else
4797  use_pkgconfig=yes
4798fi;
4799
4800if test $use_pkgconfig = yes ; then
4801  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4802    if test -n "$ac_tool_prefix"; then
4803  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4804set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4805echo "$as_me:$LINENO: checking for $ac_word" >&5
4806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4807if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  case $PKG_CONFIG in
4811  [\\/]* | ?:[\\/]*)
4812  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4813  ;;
4814  *)
4815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818  IFS=$as_save_IFS
4819  test -z "$as_dir" && as_dir=.
4820  for ac_exec_ext in '' $ac_executable_extensions; do
4821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824    break 2
4825  fi
4826done
4827done
4828
4829  ;;
4830esac
4831fi
4832PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4833
4834if test -n "$PKG_CONFIG"; then
4835  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4836echo "${ECHO_T}$PKG_CONFIG" >&6
4837else
4838  echo "$as_me:$LINENO: result: no" >&5
4839echo "${ECHO_T}no" >&6
4840fi
4841
4842fi
4843if test -z "$ac_cv_path_PKG_CONFIG"; then
4844  ac_pt_PKG_CONFIG=$PKG_CONFIG
4845  # Extract the first word of "pkg-config", so it can be a program name with args.
4846set dummy pkg-config; ac_word=$2
4847echo "$as_me:$LINENO: checking for $ac_word" >&5
4848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4850  echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852  case $ac_pt_PKG_CONFIG in
4853  [\\/]* | ?:[\\/]*)
4854  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4855  ;;
4856  *)
4857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860  IFS=$as_save_IFS
4861  test -z "$as_dir" && as_dir=.
4862  for ac_exec_ext in '' $ac_executable_extensions; do
4863  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866    break 2
4867  fi
4868done
4869done
4870
4871  ;;
4872esac
4873fi
4874ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4875
4876if test -n "$ac_pt_PKG_CONFIG"; then
4877  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4878echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4879else
4880  echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882fi
4883
4884  PKG_CONFIG=$ac_pt_PKG_CONFIG
4885else
4886  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4887fi
4888
4889  fi
4890  if test -n "$PKG_CONFIG"; then
4891    _pkg_min_version=0.9.0
4892    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4893echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4894    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4895      echo "$as_me:$LINENO: result: yes" >&5
4896echo "${ECHO_T}yes" >&6
4897    else
4898      echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900      PKG_CONFIG=""
4901    fi
4902  fi
4903
4904  # check if pkg-config supports the short-errors flag
4905  if test -n "$PKG_CONFIG" && \
4906    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4907    pkg_short_errors=" --short-errors "
4908  else
4909    pkg_short_errors=""
4910  fi
4911fi
4912
4913
4914
4915if test -n "$PKG_CONFIG"; then
4916  COIN_HAS_PKGCONFIG_TRUE=
4917  COIN_HAS_PKGCONFIG_FALSE='#'
4918else
4919  COIN_HAS_PKGCONFIG_TRUE='#'
4920  COIN_HAS_PKGCONFIG_FALSE=
4921fi
4922
4923
4924
4925# assemble pkg-config search path for installed projects
4926COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4927
4928# 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
4929# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4930# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4931if test "x${prefix}" = xNONE ; then
4932  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4933else
4934  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4935fi
4936
4937
4938# Check whether --with-coin-instdir or --without-coin-instdir was given.
4939if test "${with_coin_instdir+set}" = set; then
4940  withval="$with_coin_instdir"
4941  if test -d "$withval"; then : ; else
4942     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4943echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4944   { (exit 1); exit 1; }; }
4945   fi
4946   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4947
4948fi;
4949
4950
4951
4952# assemble additional pkg-config search paths for uninstalled projects
4953if test x$coin_projectdir = xyes ; then
4954  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4955  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4956  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4957  # 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)
4958  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4959  if test -e ../coin_subdirs.txt ; then
4960    for i in `cat ../coin_subdirs.txt` ; do
4961      if test -d ../$i ; then
4962        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4963      fi
4964    done
4965  fi
4966
4967  if test -e ../../coin_subdirs.txt ; then
4968    for i in `cat ../../coin_subdirs.txt` ; do
4969      if test -d ../../$i ; then
4970        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4971      fi
4972    done
4973  fi
4974
4975
4976fi
4977
4978
4979
4980# Initialize automake
4981{
4982
4983
4984
4985# START
4986
4987# Test if force_shared has been set
4988if test "x" = xforce_shared; then
4989  if test x$enable_shared = xno; then
4990    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4991echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4992   { (exit 1); exit 1; }; }
4993  fi
4994  enable_shared=yes;
4995else
4996  # On Cygwin and AIX, building DLLs doesn't work
4997  case $build in
4998    *-cygwin*)
4999      coin_disable_shared=yes
5000      platform=Cygwin
5001    ;;
5002    *-aix*)
5003      coin_disable_shared=yes
5004      platform=AIX
5005    ;;
5006    *-mingw*)
5007      coin_disable_shared=yes
5008      platform="Msys"
5009#      case "$CXX" in
5010#        cl*)
5011#          coin_disable_shared=yes
5012#          platform="Msys with cl"
5013#      ;;
5014#      esac
5015    ;;
5016  esac
5017fi
5018if test x"$coin_disable_shared" = xyes; then
5019  if test x"$enable_shared" = xyes; then
5020    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5021echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5022  fi
5023  enable_shared=no
5024fi
5025# By default, we only want the shared objects to be compiled
5026# Check whether --enable-static or --disable-static was given.
5027if test "${enable_static+set}" = set; then
5028  enableval="$enable_static"
5029  p=${PACKAGE-default}
5030    case $enableval in
5031    yes) enable_static=yes ;;
5032    no) enable_static=no ;;
5033    *)
5034     enable_static=no
5035      # Look at the argument we got.  We use all the common list separators.
5036      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5037      for pkg in $enableval; do
5038        IFS="$lt_save_ifs"
5039        if test "X$pkg" = "X$p"; then
5040          enable_static=yes
5041        fi
5042      done
5043      IFS="$lt_save_ifs"
5044      ;;
5045    esac
5046else
5047  enable_static=no
5048fi;
5049
5050
5051
5052
5053# Initialize automake
5054echo "$as_me:$LINENO: checking for egrep" >&5
5055echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5056if test "${ac_cv_prog_egrep+set}" = set; then
5057  echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5060    then ac_cv_prog_egrep='grep -E'
5061    else ac_cv_prog_egrep='egrep'
5062    fi
5063fi
5064echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5065echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5066 EGREP=$ac_cv_prog_egrep
5067
5068
5069am__api_version="1.9"
5070# Find a good install program.  We prefer a C program (faster),
5071# so one script is as good as another.  But avoid the broken or
5072# incompatible versions:
5073# SysV /etc/install, /usr/sbin/install
5074# SunOS /usr/etc/install
5075# IRIX /sbin/install
5076# AIX /bin/install
5077# AmigaOS /C/install, which installs bootblocks on floppy discs
5078# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5079# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5080# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5081# OS/2's system install, which has a completely different semantic
5082# ./install, which can be erroneously created by make from ./install.sh.
5083echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5084echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5085if test -z "$INSTALL"; then
5086if test "${ac_cv_path_install+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH
5091do
5092  IFS=$as_save_IFS
5093  test -z "$as_dir" && as_dir=.
5094  # Account for people who put trailing slashes in PATH elements.
5095case $as_dir/ in
5096  ./ | .// | /cC/* | \
5097  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5098  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5099  /usr/ucb/* ) ;;
5100  *)
5101    # OSF1 and SCO ODT 3.0 have their own names for install.
5102    # Don't use installbsd from OSF since it installs stuff as root
5103    # by default.
5104    for ac_prog in ginstall scoinst install; do
5105      for ac_exec_ext in '' $ac_executable_extensions; do
5106        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5107          if test $ac_prog = install &&
5108            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5109            # AIX install.  It has an incompatible calling convention.
5110            :
5111          elif test $ac_prog = install &&
5112            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5113            # program-specific install script used by HP pwplus--don't use.
5114            :
5115          else
5116            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5117            break 3
5118          fi
5119        fi
5120      done
5121    done
5122    ;;
5123esac
5124done
5125
5126
5127fi
5128  if test "${ac_cv_path_install+set}" = set; then
5129    INSTALL=$ac_cv_path_install
5130  else
5131    # As a last resort, use the slow shell script.  We don't cache a
5132    # path for INSTALL within a source directory, because that will
5133    # break other packages using the cache if that directory is
5134    # removed, or if the path is relative.
5135    INSTALL=$ac_install_sh
5136  fi
5137fi
5138echo "$as_me:$LINENO: result: $INSTALL" >&5
5139echo "${ECHO_T}$INSTALL" >&6
5140
5141# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5142# It thinks the first close brace ends the variable substitution.
5143test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5144
5145test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5146
5147test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5148
5149echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5150echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5151# Just in case
5152sleep 1
5153echo timestamp > conftest.file
5154# Do `set' in a subshell so we don't clobber the current shell's
5155# arguments.  Must try -L first in case configure is actually a
5156# symlink; some systems play weird games with the mod time of symlinks
5157# (eg FreeBSD returns the mod time of the symlink's containing
5158# directory).
5159if (
5160   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5161   if test "$*" = "X"; then
5162      # -L didn't work.
5163      set X `ls -t $srcdir/configure conftest.file`
5164   fi
5165   rm -f conftest.file
5166   if test "$*" != "X $srcdir/configure conftest.file" \
5167      && test "$*" != "X conftest.file $srcdir/configure"; then
5168
5169      # If neither matched, then we have a broken ls.  This can happen
5170      # if, for instance, CONFIG_SHELL is bash and it inherits a
5171      # broken ls alias from the environment.  This has actually
5172      # happened.  Such a system could not be considered "sane".
5173      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5174alias in your environment" >&5
5175echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5176alias in your environment" >&2;}
5177   { (exit 1); exit 1; }; }
5178   fi
5179
5180   test "$2" = conftest.file
5181   )
5182then
5183   # Ok.
5184   :
5185else
5186   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5187Check your system clock" >&5
5188echo "$as_me: error: newly created file is older than distributed files!
5189Check your system clock" >&2;}
5190   { (exit 1); exit 1; }; }
5191fi
5192echo "$as_me:$LINENO: result: yes" >&5
5193echo "${ECHO_T}yes" >&6
5194test "$program_prefix" != NONE &&
5195  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5196# Use a double $ so make ignores it.
5197test "$program_suffix" != NONE &&
5198  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5199# Double any \ or $.  echo might interpret backslashes.
5200# By default was `s,x,x', remove it if useless.
5201cat <<\_ACEOF >conftest.sed
5202s/[\\$]/&&/g;s/;s,x,x,$//
5203_ACEOF
5204program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5205rm conftest.sed
5206
5207# expand $ac_aux_dir to an absolute path
5208am_aux_dir=`cd $ac_aux_dir && pwd`
5209
5210test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5211# Use eval to expand $SHELL
5212if eval "$MISSING --run true"; then
5213  am_missing_run="$MISSING --run "
5214else
5215  am_missing_run=
5216  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5217echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5218fi
5219
5220if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5221  # We used to keeping the `.' as first argument, in order to
5222  # allow $(mkdir_p) to be used without argument.  As in
5223  #   $(mkdir_p) $(somedir)
5224  # where $(somedir) is conditionally defined.  However this is wrong
5225  # for two reasons:
5226  #  1. if the package is installed by a user who cannot write `.'
5227  #     make install will fail,
5228  #  2. the above comment should most certainly read
5229  #     $(mkdir_p) $(DESTDIR)$(somedir)
5230  #     so it does not work when $(somedir) is undefined and
5231  #     $(DESTDIR) is not.
5232  #  To support the latter case, we have to write
5233  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5234  #  so the `.' trick is pointless.
5235  mkdir_p='mkdir -p --'
5236else
5237  # On NextStep and OpenStep, the `mkdir' command does not
5238  # recognize any option.  It will interpret all options as
5239  # directories to create, and then abort because `.' already
5240  # exists.
5241  for d in ./-p ./--version;
5242  do
5243    test -d $d && rmdir $d
5244  done
5245  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5246  if test -f "$ac_aux_dir/mkinstalldirs"; then
5247    mkdir_p='$(mkinstalldirs)'
5248  else
5249    mkdir_p='$(install_sh) -d'
5250  fi
5251fi
5252
5253for ac_prog in gawk mawk nawk awk
5254do
5255  # Extract the first word of "$ac_prog", so it can be a program name with args.
5256set dummy $ac_prog; ac_word=$2
5257echo "$as_me:$LINENO: checking for $ac_word" >&5
5258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259if test "${ac_cv_prog_AWK+set}" = set; then
5260  echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262  if test -n "$AWK"; then
5263  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268  IFS=$as_save_IFS
5269  test -z "$as_dir" && as_dir=.
5270  for ac_exec_ext in '' $ac_executable_extensions; do
5271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272    ac_cv_prog_AWK="$ac_prog"
5273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274    break 2
5275  fi
5276done
5277done
5278
5279fi
5280fi
5281AWK=$ac_cv_prog_AWK
5282if test -n "$AWK"; then
5283  echo "$as_me:$LINENO: result: $AWK" >&5
5284echo "${ECHO_T}$AWK" >&6
5285else
5286  echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288fi
5289
5290  test -n "$AWK" && break
5291done
5292
5293echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5294echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5295set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5296if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5297  echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299  cat >conftest.make <<\_ACEOF
5300all:
5301        @echo 'ac_maketemp="$(MAKE)"'
5302_ACEOF
5303# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5304eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5305if test -n "$ac_maketemp"; then
5306  eval ac_cv_prog_make_${ac_make}_set=yes
5307else
5308  eval ac_cv_prog_make_${ac_make}_set=no
5309fi
5310rm -f conftest.make
5311fi
5312if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5313  echo "$as_me:$LINENO: result: yes" >&5
5314echo "${ECHO_T}yes" >&6
5315  SET_MAKE=
5316else
5317  echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319  SET_MAKE="MAKE=${MAKE-make}"
5320fi
5321
5322rm -rf .tst 2>/dev/null
5323mkdir .tst 2>/dev/null
5324if test -d .tst; then
5325  am__leading_dot=.
5326else
5327  am__leading_dot=_
5328fi
5329rmdir .tst 2>/dev/null
5330
5331DEPDIR="${am__leading_dot}deps"
5332
5333          ac_config_commands="$ac_config_commands depfiles"
5334
5335
5336am_make=${MAKE-make}
5337cat > confinc << 'END'
5338am__doit:
5339        @echo done
5340.PHONY: am__doit
5341END
5342# If we don't find an include directive, just comment out the code.
5343echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5344echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5345am__include="#"
5346am__quote=
5347_am_result=none
5348# First try GNU make style include.
5349echo "include confinc" > confmf
5350# We grep out `Entering directory' and `Leaving directory'
5351# messages which can occur if `w' ends up in MAKEFLAGS.
5352# In particular we don't look at `^make:' because GNU make might
5353# be invoked under some other name (usually "gmake"), in which
5354# case it prints its new name instead of `make'.
5355if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5356   am__include=include
5357   am__quote=
5358   _am_result=GNU
5359fi
5360# Now try BSD make style include.
5361if test "$am__include" = "#"; then
5362   echo '.include "confinc"' > confmf
5363   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5364      am__include=.include
5365      am__quote="\""
5366      _am_result=BSD
5367   fi
5368fi
5369
5370
5371echo "$as_me:$LINENO: result: $_am_result" >&5
5372echo "${ECHO_T}$_am_result" >&6
5373rm -f confinc confmf
5374
5375# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5376if test "${enable_dependency_tracking+set}" = set; then
5377  enableval="$enable_dependency_tracking"
5378
5379fi;
5380if test "x$enable_dependency_tracking" != xno; then
5381  am_depcomp="$ac_aux_dir/depcomp"
5382  AMDEPBACKSLASH='\'
5383fi
5384
5385
5386if test "x$enable_dependency_tracking" != xno; then
5387  AMDEP_TRUE=
5388  AMDEP_FALSE='#'
5389else
5390  AMDEP_TRUE='#'
5391  AMDEP_FALSE=
5392fi
5393
5394
5395
5396
5397
5398# AC_MSG_NOTICE([Beginning automake initialisation.])
5399# Stuff for automake
5400# test to see if srcdir already configured
5401if test "`cd $srcdir && pwd`" != "`pwd`" &&
5402   test -f $srcdir/config.status; then
5403  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5404echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5405   { (exit 1); exit 1; }; }
5406fi
5407
5408# test whether we have cygpath
5409if test -z "$CYGPATH_W"; then
5410  if (cygpath --version) >/dev/null 2>/dev/null; then
5411    CYGPATH_W='cygpath -w'
5412  else
5413    CYGPATH_W=echo
5414  fi
5415fi
5416
5417
5418# Define the identity of the package.
5419 PACKAGE='thirdpartyblas'
5420 VERSION='1.1'
5421
5422
5423cat >>confdefs.h <<_ACEOF
5424#define PACKAGE "$PACKAGE"
5425_ACEOF
5426
5427
5428cat >>confdefs.h <<_ACEOF
5429#define VERSION "$VERSION"
5430_ACEOF
5431
5432# Some tools Automake needs.
5433
5434ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5435
5436
5437AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5438
5439
5440AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5441
5442
5443AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5444
5445
5446MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5447
5448install_sh=${install_sh-"$am_aux_dir/install-sh"}
5449
5450# Installed binaries are usually stripped using `strip' when the user
5451# run `make install-strip'.  However `strip' might not be the right
5452# tool to use in cross-compilation environments, therefore Automake
5453# will honor the `STRIP' environment variable to overrule this program.
5454if test "$cross_compiling" != no; then
5455  if test -n "$ac_tool_prefix"; then
5456  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5457set dummy ${ac_tool_prefix}strip; ac_word=$2
5458echo "$as_me:$LINENO: checking for $ac_word" >&5
5459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5460if test "${ac_cv_prog_STRIP+set}" = set; then
5461  echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463  if test -n "$STRIP"; then
5464  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5465else
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469  IFS=$as_save_IFS
5470  test -z "$as_dir" && as_dir=.
5471  for ac_exec_ext in '' $ac_executable_extensions; do
5472  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475    break 2
5476  fi
5477done
5478done
5479
5480fi
5481fi
5482STRIP=$ac_cv_prog_STRIP
5483if test -n "$STRIP"; then
5484  echo "$as_me:$LINENO: result: $STRIP" >&5
5485echo "${ECHO_T}$STRIP" >&6
5486else
5487  echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
5489fi
5490
5491fi
5492if test -z "$ac_cv_prog_STRIP"; then
5493  ac_ct_STRIP=$STRIP
5494  # Extract the first word of "strip", so it can be a program name with args.
5495set dummy strip; ac_word=$2
5496echo "$as_me:$LINENO: checking for $ac_word" >&5
5497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5498if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501  if test -n "$ac_ct_STRIP"; then
5502  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5503else
5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507  IFS=$as_save_IFS
5508  test -z "$as_dir" && as_dir=.
5509  for ac_exec_ext in '' $ac_executable_extensions; do
5510  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511    ac_cv_prog_ac_ct_STRIP="strip"
5512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513    break 2
5514  fi
5515done
5516done
5517
5518  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5519fi
5520fi
5521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5522if test -n "$ac_ct_STRIP"; then
5523  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5524echo "${ECHO_T}$ac_ct_STRIP" >&6
5525else
5526  echo "$as_me:$LINENO: result: no" >&5
5527echo "${ECHO_T}no" >&6
5528fi
5529
5530  STRIP=$ac_ct_STRIP
5531else
5532  STRIP="$ac_cv_prog_STRIP"
5533fi
5534
5535fi
5536INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5537
5538# We need awk for the "check" target.  The system "awk" is bad on
5539# some platforms.
5540# Always define AMTAR for backward compatibility.
5541
5542AMTAR=${AMTAR-"${am_missing_run}tar"}
5543
5544am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5545
5546
5547
5548
5549depcc="$CC"   am_compiler_list=
5550
5551echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5552echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5553if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5554  echo $ECHO_N "(cached) $ECHO_C" >&6
5555else
5556  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5557  # We make a subdir and do the tests there.  Otherwise we can end up
5558  # making bogus files that we don't know about and never remove.  For
5559  # instance it was reported that on HP-UX the gcc test will end up
5560  # making a dummy file named `D' -- because `-MD' means `put the output
5561  # in D'.
5562  mkdir conftest.dir
5563  # Copy depcomp to subdir because otherwise we won't find it if we're
5564  # using a relative directory.
5565  cp "$am_depcomp" conftest.dir
5566  cd conftest.dir
5567  # We will build objects and dependencies in a subdirectory because
5568  # it helps to detect inapplicable dependency modes.  For instance
5569  # both Tru64's cc and ICC support -MD to output dependencies as a
5570  # side effect of compilation, but ICC will put the dependencies in
5571  # the current directory while Tru64 will put them in the object
5572  # directory.
5573  mkdir sub
5574
5575  am_cv_CC_dependencies_compiler_type=none
5576  if test "$am_compiler_list" = ""; then
5577     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5578  fi
5579  for depmode in $am_compiler_list; do
5580    # Setup a source with many dependencies, because some compilers
5581    # like to wrap large dependency lists on column 80 (with \), and
5582    # we should not choose a depcomp mode which is confused by this.
5583    #
5584    # We need to recreate these files for each test, as the compiler may
5585    # overwrite some of them when testing with obscure command lines.
5586    # This happens at least with the AIX C compiler.
5587    : > sub/conftest.c
5588    for i in 1 2 3 4 5 6; do
5589      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5590      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5591      # Solaris 8's {/usr,}/bin/sh.
5592      touch sub/conftst$i.h
5593    done
5594    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5595
5596    case $depmode in
5597    nosideeffect)
5598      # after this tag, mechanisms are not by side-effect, so they'll
5599      # only be used when explicitly requested
5600      if test "x$enable_dependency_tracking" = xyes; then
5601        continue
5602      else
5603        break
5604      fi
5605      ;;
5606    none) break ;;
5607    esac
5608    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5609    # mode.  It turns out that the SunPro C++ compiler does not properly
5610    # handle `-M -o', and we need to detect this.
5611    if depmode=$depmode \
5612       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5613       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5614       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5615         >/dev/null 2>conftest.err &&
5616       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5617       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5618       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5619      # icc doesn't choke on unknown options, it will just issue warnings
5620      # or remarks (even with -Werror).  So we grep stderr for any message
5621      # that says an option was ignored or not supported.
5622      # When given -MP, icc 7.0 and 7.1 complain thusly:
5623      #   icc: Command line warning: ignoring option '-M'; no argument required
5624      # The diagnosis changed in icc 8.0:
5625      #   icc: Command line remark: option '-MP' not supported
5626      if (grep 'ignoring option' conftest.err ||
5627          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5628        am_cv_CC_dependencies_compiler_type=$depmode
5629        break
5630      fi
5631    fi
5632  done
5633
5634  cd ..
5635  rm -rf conftest.dir
5636else
5637  am_cv_CC_dependencies_compiler_type=none
5638fi
5639
5640fi
5641echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5642echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5643CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5644
5645
5646
5647if
5648  test "x$enable_dependency_tracking" != xno \
5649  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5650  am__fastdepCC_TRUE=
5651  am__fastdepCC_FALSE='#'
5652else
5653  am__fastdepCC_TRUE='#'
5654  am__fastdepCC_FALSE=
5655fi
5656
5657
5658
5659echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5660echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5661    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5662if test "${enable_maintainer_mode+set}" = set; then
5663  enableval="$enable_maintainer_mode"
5664  USE_MAINTAINER_MODE=$enableval
5665else
5666  USE_MAINTAINER_MODE=no
5667fi;
5668  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5669echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5670
5671
5672if test $USE_MAINTAINER_MODE = yes; then
5673  MAINTAINER_MODE_TRUE=
5674  MAINTAINER_MODE_FALSE='#'
5675else
5676  MAINTAINER_MODE_TRUE='#'
5677  MAINTAINER_MODE_FALSE=
5678fi
5679
5680  MAINT=$MAINTAINER_MODE_TRUE
5681
5682
5683
5684coin_have_externals=no
5685if test "$enable_maintainer_mode" = yes; then
5686
5687  # If maintainer mode is chosen, we make sure that the correct versions
5688  # of the tools are used, and that we know where libtool.m4 is (to
5689  # recreate acinclude.m4)
5690
5691
5692  LIBTOOLM4=
5693  # Normally, $HOME
5694  AUTOTOOLS_DFLT=$HOME
5695
5696  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5697echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5698if test "${ac_cv_use_correct_autotools+set}" = set; then
5699  echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701  ac_cv_use_correct_autotools=check
5702fi
5703echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5704echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5705
5706  if test $ac_cv_use_correct_autotools = check; then
5707    ac_cv_use_correct_autotools=yes
5708    # Check if we have autoconf
5709    # Extract the first word of "autoconf", so it can be a program name with args.
5710set dummy autoconf; ac_word=$2
5711echo "$as_me:$LINENO: checking for $ac_word" >&5
5712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713if test "${ac_cv_prog_have_autoconf+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716  if test -n "$have_autoconf"; then
5717  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724  for ac_exec_ext in '' $ac_executable_extensions; do
5725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726    ac_cv_prog_have_autoconf="yes"
5727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731done
5732
5733  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5734fi
5735fi
5736have_autoconf=$ac_cv_prog_have_autoconf
5737if test -n "$have_autoconf"; then
5738  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5739echo "${ECHO_T}$have_autoconf" >&6
5740else
5741  echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6
5743fi
5744
5745    if test $have_autoconf = no; then
5746      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5747echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5748   { (exit 1); exit 1; }; }
5749    fi
5750
5751    # Check whether autoconf is the correct version
5752    correct_version='2.59'
5753    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5754    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5755echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5756    autoconf --version > confauto.out 2>&1
5757    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5758      echo "$as_me:$LINENO: result: yes" >&5
5759echo "${ECHO_T}yes" >&6
5760    else
5761      rm -f confauto.out
5762      echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5765echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5766   { (exit 1); exit 1; }; }
5767    fi
5768    rm -f confauto.out
5769
5770    # Check if the executable autoconf is picked up from the correct location
5771    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5772echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5773    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5774    autoconf_dir=`cd $autoconf_dir; pwd`
5775    if test x$AUTOTOOLS_DIR = x; then
5776      want_dir=$AUTOTOOLS_DFLT/bin
5777    else
5778      want_dir=$AUTOTOOLS_DIR/bin
5779    fi
5780    if test $autoconf_dir = `cd $want_dir; pwd`; then
5781      echo "$as_me:$LINENO: result: yes" >&5
5782echo "${ECHO_T}yes" >&6
5783    else
5784      rm -f confauto.out
5785      echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
5787      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5788echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5789   { (exit 1); exit 1; }; }
5790    fi
5791
5792    # Check if we have automake
5793    # Extract the first word of "automake", so it can be a program name with args.
5794set dummy automake; ac_word=$2
5795echo "$as_me:$LINENO: checking for $ac_word" >&5
5796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5797if test "${ac_cv_prog_have_automake+set}" = set; then
5798  echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800  if test -n "$have_automake"; then
5801  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806  IFS=$as_save_IFS
5807  test -z "$as_dir" && as_dir=.
5808  for ac_exec_ext in '' $ac_executable_extensions; do
5809  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810    ac_cv_prog_have_automake="yes"
5811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812    break 2
5813  fi
5814done
5815done
5816
5817  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5818fi
5819fi
5820have_automake=$ac_cv_prog_have_automake
5821if test -n "$have_automake"; then
5822  echo "$as_me:$LINENO: result: $have_automake" >&5
5823echo "${ECHO_T}$have_automake" >&6
5824else
5825  echo "$as_me:$LINENO: result: no" >&5
5826echo "${ECHO_T}no" >&6
5827fi
5828
5829    if test $have_automake = no; then
5830      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5831echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5832   { (exit 1); exit 1; }; }
5833    fi
5834
5835    # Check whether automake is the correct version
5836    correct_version='1.9.6'
5837    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5838    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5839echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5840    automake --version > confauto.out 2>&1
5841    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5842      echo "$as_me:$LINENO: result: yes" >&5
5843echo "${ECHO_T}yes" >&6
5844    else
5845      rm -f confauto.out
5846      echo "$as_me:$LINENO: result: no" >&5
5847echo "${ECHO_T}no" >&6
5848      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5849echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5850   { (exit 1); exit 1; }; }
5851    fi
5852    rm -f confauto.out
5853
5854    # Check if the executable automake is picked up from the correct location
5855    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5856echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5857    automake_dir=`which automake | sed -e 's=/automake=='`
5858    automake_dir=`cd $automake_dir; pwd`
5859    if test x$AUTOTOOLS_DIR = x; then
5860      want_dir=$AUTOTOOLS_DFLT/bin
5861    else
5862      want_dir=$AUTOTOOLS_DIR/bin
5863    fi
5864    if test $automake_dir = `cd $want_dir; pwd`; then
5865      echo "$as_me:$LINENO: result: yes" >&5
5866echo "${ECHO_T}yes" >&6
5867    else
5868      rm -f confauto.out
5869      echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6
5871      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5872echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5873   { (exit 1); exit 1; }; }
5874    fi
5875
5876    # Check if this is the correct version of libtool (with escaped dots)
5877    if test x$AUTOTOOLS_DIR = x; then
5878      want_dir=$AUTOTOOLS_DFLT/share
5879    else
5880      want_dir=$AUTOTOOLS_DIR/share
5881    fi
5882    correct_version='1.5.22'
5883    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5884    if test -r $want_dir/libtool/ltmain.sh; then
5885  have_ltmain=yes
5886  :
5887else
5888  have_ltmain=no
5889  :
5890fi
5891
5892    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5893echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5894    if test $have_ltmain = yes; then
5895    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5896        echo "$as_me:$LINENO: result: yes" >&5
5897echo "${ECHO_T}yes" >&6
5898      else
5899        echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6
5901        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5902echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5903   { (exit 1); exit 1; }; }
5904      fi
5905    else
5906      echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6
5908      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5909echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5910   { (exit 1); exit 1; }; }
5911    fi
5912  fi
5913
5914  # Check if we can find the libtool file
5915  if test x$AUTOTOOLS_DIR = x; then
5916    want_dir=$AUTOTOOLS_DFLT/share
5917  else
5918    want_dir=$AUTOTOOLS_DIR/share
5919  fi
5920  if test -r $want_dir/aclocal/libtool.m4; then
5921  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5922  :
5923else
5924  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5925echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5926   { (exit 1); exit 1; }; }
5927  :
5928fi
5929
5930
5931  # Check if we have an Externals file
5932  if test -r $srcdir/Externals; then
5933    coin_have_externals=yes
5934  fi
5935  # Check if subversion is installed and understands https
5936  # Extract the first word of "svn", so it can be a program name with args.
5937set dummy svn; ac_word=$2
5938echo "$as_me:$LINENO: checking for $ac_word" >&5
5939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5940if test "${ac_cv_prog_have_svn+set}" = set; then
5941  echo $ECHO_N "(cached) $ECHO_C" >&6
5942else
5943  if test -n "$have_svn"; then
5944  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949  IFS=$as_save_IFS
5950  test -z "$as_dir" && as_dir=.
5951  for ac_exec_ext in '' $ac_executable_extensions; do
5952  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953    ac_cv_prog_have_svn="yes"
5954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955    break 2
5956  fi
5957done
5958done
5959
5960  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5961fi
5962fi
5963have_svn=$ac_cv_prog_have_svn
5964if test -n "$have_svn"; then
5965  echo "$as_me:$LINENO: result: $have_svn" >&5
5966echo "${ECHO_T}$have_svn" >&6
5967else
5968  echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970fi
5971
5972  if test x$have_svn = xyes; then
5973    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5974echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5975if test "${ac_cv_svn_understands_https+set}" = set; then
5976  echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978  svn --version > confauto.out 2>&1
5979                    if $EGREP https confauto.out >/dev/null 2>&1; then
5980                      ac_cv_svn_understands_https=yes
5981                    else
5982                      ac_cv_svn_understands_https=no
5983                      have_svn=no
5984                      ac_cv_prog_have_svn=no
5985                    fi
5986                    rm -f confauto.out
5987fi
5988echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5989echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5990  fi
5991
5992  # Find the location of the BuildTools directory
5993  BUILDTOOLSDIR=
5994  if test -r $srcdir/BuildTools/coin.m4; then
5995    BUILDTOOLSDIR=$srcdir/BuildTools
5996  else
5997    if test -r $srcdir/../BuildTools/coin.m4; then
5998      BUILDTOOLSDIR=$srcdir/../BuildTools
5999    else
6000      if test -r $srcdir/../../BuildTools/coin.m4; then
6001        BUILDTOOLSDIR=$srcdir/../../BuildTools
6002      else
6003        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6004echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6005   { (exit 1); exit 1; }; }
6006      fi
6007    fi
6008  fi
6009
6010
6011  # The following variable is set to the name of the directory where
6012  # the autotool scripts are located
6013
6014  AUX_DIR=$ac_aux_dir
6015fi
6016
6017# helpful variable for the base directory of this package
6018abs_source_dir=`cd $srcdir; pwd`
6019
6020
6021# Stuff for example Makefiles
6022if test x$prefix = xNONE; then
6023  full_prefix=$ac_default_prefix
6024else
6025  full_prefix=$prefix
6026fi
6027full_prefix=`cd $full_prefix ; pwd`
6028
6029abs_lib_dir=$full_prefix/lib/coin
6030
6031abs_include_dir=$full_prefix/include
6032
6033abs_bin_dir=$full_prefix/bin
6034
6035
6036
6037if test $coin_have_externals = yes && test x$have_svn = xyes; then
6038  HAVE_EXTERNALS_TRUE=
6039  HAVE_EXTERNALS_FALSE='#'
6040else
6041  HAVE_EXTERNALS_TRUE='#'
6042  HAVE_EXTERNALS_FALSE=
6043fi
6044
6045
6046# AC_MSG_NOTICE([End automake initialisation.])
6047
6048
6049
6050LIBTOOL=
6051if test -r ../libtool; then
6052  coin_config_dir=..
6053  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6054fi
6055if test "x$LIBTOOL" = x; then
6056  if test -r ../../libtool; then
6057    coin_config_dir=../..
6058    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6059  fi
6060fi
6061
6062if test "x$LIBTOOL" = x; then
6063# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6064  # Stuff for libtool
6065  # Check whether --enable-shared or --disable-shared was given.
6066if test "${enable_shared+set}" = set; then
6067  enableval="$enable_shared"
6068  p=${PACKAGE-default}
6069    case $enableval in
6070    yes) enable_shared=yes ;;
6071    no) enable_shared=no ;;
6072    *)
6073      enable_shared=no
6074      # Look at the argument we got.  We use all the common list separators.
6075      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6076      for pkg in $enableval; do
6077        IFS="$lt_save_ifs"
6078        if test "X$pkg" = "X$p"; then
6079          enable_shared=yes
6080        fi
6081      done
6082      IFS="$lt_save_ifs"
6083      ;;
6084    esac
6085else
6086  enable_shared=yes
6087fi;
6088
6089# Check whether --enable-fast-install or --disable-fast-install was given.
6090if test "${enable_fast_install+set}" = set; then
6091  enableval="$enable_fast_install"
6092  p=${PACKAGE-default}
6093    case $enableval in
6094    yes) enable_fast_install=yes ;;
6095    no) enable_fast_install=no ;;
6096    *)
6097      enable_fast_install=no
6098      # Look at the argument we got.  We use all the common list separators.
6099      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6100      for pkg in $enableval; do
6101        IFS="$lt_save_ifs"
6102        if test "X$pkg" = "X$p"; then
6103          enable_fast_install=yes
6104        fi
6105      done
6106      IFS="$lt_save_ifs"
6107      ;;
6108    esac
6109else
6110  enable_fast_install=yes
6111fi;
6112
6113echo "$as_me:$LINENO: checking host system type" >&5
6114echo $ECHO_N "checking host system type... $ECHO_C" >&6
6115if test "${ac_cv_host+set}" = set; then
6116  echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118  ac_cv_host_alias=$host_alias
6119test -z "$ac_cv_host_alias" &&
6120  ac_cv_host_alias=$ac_cv_build_alias
6121ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6122  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6123echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6124   { (exit 1); exit 1; }; }
6125
6126fi
6127echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6128echo "${ECHO_T}$ac_cv_host" >&6
6129host=$ac_cv_host
6130host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6131host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6132host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6133
6134
6135echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6136echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6137if test "${lt_cv_path_SED+set}" = set; then
6138  echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140  # Loop through the user's path and test for sed and gsed.
6141# Then use that list of sed's as ones to test for truncation.
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145  IFS=$as_save_IFS
6146  test -z "$as_dir" && as_dir=.
6147  for lt_ac_prog in sed gsed; do
6148    for ac_exec_ext in '' $ac_executable_extensions; do
6149      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6150        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6151      fi
6152    done
6153  done
6154done
6155lt_ac_max=0
6156lt_ac_count=0
6157# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6158# along with /bin/sed that truncates output.
6159for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6160  test ! -f $lt_ac_sed && continue
6161  cat /dev/null > conftest.in
6162  lt_ac_count=0
6163  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6164  # Check for GNU sed and select it if it is found.
6165  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6166    lt_cv_path_SED=$lt_ac_sed
6167    break
6168  fi
6169  while true; do
6170    cat conftest.in conftest.in >conftest.tmp
6171    mv conftest.tmp conftest.in
6172    cp conftest.in conftest.nl
6173    echo >>conftest.nl
6174    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6175    cmp -s conftest.out conftest.nl || break
6176    # 10000 chars as input seems more than enough
6177    test $lt_ac_count -gt 10 && break
6178    lt_ac_count=`expr $lt_ac_count + 1`
6179    if test $lt_ac_count -gt $lt_ac_max; then
6180      lt_ac_max=$lt_ac_count
6181      lt_cv_path_SED=$lt_ac_sed
6182    fi
6183  done
6184done
6185
6186fi
6187
6188SED=$lt_cv_path_SED
6189echo "$as_me:$LINENO: result: $SED" >&5
6190echo "${ECHO_T}$SED" >&6
6191
6192
6193# Check whether --with-gnu-ld or --without-gnu-ld was given.
6194if test "${with_gnu_ld+set}" = set; then
6195  withval="$with_gnu_ld"
6196  test "$withval" = no || with_gnu_ld=yes
6197else
6198  with_gnu_ld=no
6199fi;
6200ac_prog=ld
6201if test "$GCC" = yes; then
6202  # Check if gcc -print-prog-name=ld gives a path.
6203  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6204echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6205  case $host in
6206  *-*-mingw*)
6207    # gcc leaves a trailing carriage return which upsets mingw
6208    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6209  *)
6210    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6211  esac
6212  case $ac_prog in
6213    # Accept absolute paths.
6214    [\\/]* | ?:[\\/]*)
6215      re_direlt='/[^/][^/]*/\.\./'
6216      # Canonicalize the pathname of ld
6217      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6218      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6219        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6220      done
6221      test -z "$LD" && LD="$ac_prog"
6222      ;;
6223  "")
6224    # If it fails, then pretend we aren't using GCC.
6225    ac_prog=ld
6226    ;;
6227  *)
6228    # If it is relative, then search for the first ld in PATH.
6229    with_gnu_ld=unknown
6230    ;;
6231  esac
6232elif test "$with_gnu_ld" = yes; then
6233  echo "$as_me:$LINENO: checking for GNU ld" >&5
6234echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6235else
6236  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6237echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6238fi
6239if test "${lt_cv_path_LD+set}" = set; then
6240  echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242  if test -z "$LD"; then
6243  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6244  for ac_dir in $PATH; do
6245    IFS="$lt_save_ifs"
6246    test -z "$ac_dir" && ac_dir=.
6247    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6248      lt_cv_path_LD="$ac_dir/$ac_prog"
6249      # Check to see if the program is GNU ld.  I'd rather use --version,
6250      # but apparently some variants of GNU ld only accept -v.
6251      # Break only if it was the GNU/non-GNU ld that we prefer.
6252      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6253      *GNU* | *'with BFD'*)
6254        test "$with_gnu_ld" != no && break
6255        ;;
6256      *)
6257        test "$with_gnu_ld" != yes && break
6258        ;;
6259      esac
6260    fi
6261  done
6262  IFS="$lt_save_ifs"
6263else
6264  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6265fi
6266fi
6267
6268LD="$lt_cv_path_LD"
6269if test -n "$LD"; then
6270  echo "$as_me:$LINENO: result: $LD" >&5
6271echo "${ECHO_T}$LD" >&6
6272else
6273  echo "$as_me:$LINENO: result: no" >&5
6274echo "${ECHO_T}no" >&6
6275fi
6276test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6277echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6278   { (exit 1); exit 1; }; }
6279echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6280echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6281if test "${lt_cv_prog_gnu_ld+set}" = set; then
6282  echo $ECHO_N "(cached) $ECHO_C" >&6
6283else
6284  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6285case `$LD -v 2>&1 </dev/null` in
6286*GNU* | *'with BFD'*)
6287  lt_cv_prog_gnu_ld=yes
6288  ;;
6289*)
6290  lt_cv_prog_gnu_ld=no
6291  ;;
6292esac
6293fi
6294echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6295echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6296with_gnu_ld=$lt_cv_prog_gnu_ld
6297
6298
6299echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6300echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6301if test "${lt_cv_ld_reload_flag+set}" = set; then
6302  echo $ECHO_N "(cached) $ECHO_C" >&6
6303else
6304  lt_cv_ld_reload_flag='-r'
6305fi
6306echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6307echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6308reload_flag=$lt_cv_ld_reload_flag
6309case $reload_flag in
6310"" | " "*) ;;
6311*) reload_flag=" $reload_flag" ;;
6312esac
6313reload_cmds='$LD$reload_flag -o $output$reload_objs'
6314case $host_os in
6315  darwin*)
6316    if test "$GCC" = yes; then
6317      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6318    else
6319      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6320    fi
6321    ;;
6322esac
6323
6324echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6325echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6326if test "${lt_cv_path_NM+set}" = set; then
6327  echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329  if test -n "$NM"; then
6330  # Let the user override the test.
6331  lt_cv_path_NM="$NM"
6332else
6333  lt_nm_to_check="${ac_tool_prefix}nm"
6334  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6335    lt_nm_to_check="$lt_nm_to_check nm"
6336  fi
6337  for lt_tmp_nm in $lt_nm_to_check; do
6338    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6339    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6340      IFS="$lt_save_ifs"
6341      test -z "$ac_dir" && ac_dir=.
6342      tmp_nm="$ac_dir/$lt_tmp_nm"
6343      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6344        # Check to see if the nm accepts a BSD-compat flag.
6345        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6346        #   nm: unknown option "B" ignored
6347        # Tru64's nm complains that /dev/null is an invalid object file
6348        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6349        */dev/null* | *'Invalid file or object type'*)
6350          lt_cv_path_NM="$tmp_nm -B"
6351          break
6352          ;;
6353        *)
6354          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6355          */dev/null*)
6356            lt_cv_path_NM="$tmp_nm -p"
6357            break
6358            ;;
6359          *)
6360            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6361            continue # so that we can try to find one that supports BSD flags
6362            ;;
6363          esac
6364          ;;
6365        esac
6366      fi
6367    done
6368    IFS="$lt_save_ifs"
6369  done
6370  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6371fi
6372fi
6373echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6374echo "${ECHO_T}$lt_cv_path_NM" >&6
6375NM="$lt_cv_path_NM"
6376
6377echo "$as_me:$LINENO: checking whether ln -s works" >&5
6378echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6379LN_S=$as_ln_s
6380if test "$LN_S" = "ln -s"; then
6381  echo "$as_me:$LINENO: result: yes" >&5
6382echo "${ECHO_T}yes" >&6
6383else
6384  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6385echo "${ECHO_T}no, using $LN_S" >&6
6386fi
6387
6388echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6389echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6390if test "${lt_cv_deplibs_check_method+set}" = set; then
6391  echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393  lt_cv_file_magic_cmd='$MAGIC_CMD'
6394lt_cv_file_magic_test_file=
6395lt_cv_deplibs_check_method='unknown'
6396# Need to set the preceding variable on all platforms that support
6397# interlibrary dependencies.
6398# 'none' -- dependencies not supported.
6399# `unknown' -- same as none, but documents that we really don't know.
6400# 'pass_all' -- all dependencies passed with no checks.
6401# 'test_compile' -- check by making test program.
6402# 'file_magic [[regex]]' -- check by looking for files in library path
6403# which responds to the $file_magic_cmd with a given extended regex.
6404# If you have `file' or equivalent on your system and you're not sure
6405# whether `pass_all' will *always* work, you probably want this one.
6406
6407case $host_os in
6408aix4* | aix5*)
6409  lt_cv_deplibs_check_method=pass_all
6410  ;;
6411
6412beos*)
6413  lt_cv_deplibs_check_method=pass_all
6414  ;;
6415
6416bsdi[45]*)
6417  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6418  lt_cv_file_magic_cmd='/usr/bin/file -L'
6419  lt_cv_file_magic_test_file=/shlib/libc.so
6420  ;;
6421
6422cygwin*)
6423  # func_win32_libid is a shell function defined in ltmain.sh
6424  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6425  lt_cv_file_magic_cmd='func_win32_libid'
6426  ;;
6427
6428mingw* | pw32*)
6429  # Base MSYS/MinGW do not provide the 'file' command needed by
6430  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6431  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6432  lt_cv_file_magic_cmd='$OBJDUMP -f'
6433  ;;
6434
6435darwin* | rhapsody*)
6436  lt_cv_deplibs_check_method=pass_all
6437  ;;
6438
6439freebsd* | kfreebsd*-gnu | dragonfly*)
6440  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6441    case $host_cpu in
6442    i*86 )
6443      # Not sure whether the presence of OpenBSD here was a mistake.
6444      # Let's accept both of them until this is cleared up.
6445      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6446      lt_cv_file_magic_cmd=/usr/bin/file
6447      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6448      ;;
6449    esac
6450  else
6451    lt_cv_deplibs_check_method=pass_all
6452  fi
6453  ;;
6454
6455gnu*)
6456  lt_cv_deplibs_check_method=pass_all
6457  ;;
6458
6459hpux10.20* | hpux11*)
6460  lt_cv_file_magic_cmd=/usr/bin/file
6461  case $host_cpu in
6462  ia64*)
6463    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6464    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6465    ;;
6466  hppa*64*)
6467    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]'
6468    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6469    ;;
6470  *)
6471    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6472    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6473    ;;
6474  esac
6475  ;;
6476
6477interix3*)
6478  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6479  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6480  ;;
6481
6482irix5* | irix6* | nonstopux*)
6483  case $LD in
6484  *-32|*"-32 ") libmagic=32-bit;;
6485  *-n32|*"-n32 ") libmagic=N32;;
6486  *-64|*"-64 ") libmagic=64-bit;;
6487  *) libmagic=never-match;;
6488  esac
6489  lt_cv_deplibs_check_method=pass_all
6490  ;;
6491
6492# This must be Linux ELF.
6493linux*)
6494  lt_cv_deplibs_check_method=pass_all
6495  ;;
6496
6497netbsd*)
6498  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6499    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6500  else
6501    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6502  fi
6503  ;;
6504
6505newos6*)
6506  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6507  lt_cv_file_magic_cmd=/usr/bin/file
6508  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6509  ;;
6510
6511nto-qnx*)
6512  lt_cv_deplibs_check_method=unknown
6513  ;;
6514
6515openbsd*)
6516  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6517    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6518  else
6519    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6520  fi
6521  ;;
6522
6523osf3* | osf4* | osf5*)
6524  lt_cv_deplibs_check_method=pass_all
6525  ;;
6526
6527solaris*)
6528  lt_cv_deplibs_check_method=pass_all
6529  ;;
6530
6531sysv4 | sysv4.3*)
6532  case $host_vendor in
6533  motorola)
6534    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]'
6535    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6536    ;;
6537  ncr)
6538    lt_cv_deplibs_check_method=pass_all
6539    ;;
6540  sequent)
6541    lt_cv_file_magic_cmd='/bin/file'
6542    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6543    ;;
6544  sni)
6545    lt_cv_file_magic_cmd='/bin/file'
6546    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6547    lt_cv_file_magic_test_file=/lib/libc.so
6548    ;;
6549  siemens)
6550    lt_cv_deplibs_check_method=pass_all
6551    ;;
6552  pc)
6553    lt_cv_deplibs_check_method=pass_all
6554    ;;
6555  esac
6556  ;;
6557
6558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6559  lt_cv_deplibs_check_method=pass_all
6560  ;;
6561esac
6562
6563fi
6564echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6565echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6566file_magic_cmd=$lt_cv_file_magic_cmd
6567deplibs_check_method=$lt_cv_deplibs_check_method
6568test -z "$deplibs_check_method" && deplibs_check_method=unknown
6569
6570
6571
6572
6573# If no C compiler was specified, use CC.
6574LTCC=${LTCC-"$CC"}
6575
6576# If no C compiler flags were specified, use CFLAGS.
6577LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6578
6579# Allow CC to be a program name with arguments.
6580compiler=$CC
6581
6582# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6583if test "${enable_libtool_lock+set}" = set; then
6584  enableval="$enable_libtool_lock"
6585
6586fi;
6587test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6588
6589# Some flags need to be propagated to the compiler or linker for good
6590# libtool support.
6591case $host in
6592ia64-*-hpux*)
6593  # Find out which ABI we are using.
6594  echo 'int i;' > conftest.$ac_ext
6595  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596  (eval $ac_compile) 2>&5
6597  ac_status=$?
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); }; then
6600    case `/usr/bin/file conftest.$ac_objext` in
6601    *ELF-32*)
6602      HPUX_IA64_MODE="32"
6603      ;;
6604    *ELF-64*)
6605      HPUX_IA64_MODE="64"
6606      ;;
6607    esac
6608  fi
6609  rm -rf conftest*
6610  ;;
6611*-*-irix6*)
6612  # Find out which ABI we are using.
6613  echo '#line 6613 "configure"' > conftest.$ac_ext
6614  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615  (eval $ac_compile) 2>&5
6616  ac_status=$?
6617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618  (exit $ac_status); }; then
6619   if test "$lt_cv_prog_gnu_ld" = yes; then
6620    case `/usr/bin/file conftest.$ac_objext` in
6621    *32-bit*)
6622      LD="${LD-ld} -melf32bsmip"
6623      ;;
6624    *N32*)
6625      LD="${LD-ld} -melf32bmipn32"
6626      ;;
6627    *64-bit*)
6628      LD="${LD-ld} -melf64bmip"
6629      ;;
6630    esac
6631   else
6632    case `/usr/bin/file conftest.$ac_objext` in
6633    *32-bit*)
6634      LD="${LD-ld} -32"
6635      ;;
6636    *N32*)
6637      LD="${LD-ld} -n32"
6638      ;;
6639    *64-bit*)
6640      LD="${LD-ld} -64"
6641      ;;
6642    esac
6643   fi
6644  fi
6645  rm -rf conftest*
6646  ;;
6647
6648x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6649  # Find out which ABI we are using.
6650  echo 'int i;' > conftest.$ac_ext
6651  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652  (eval $ac_compile) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; then
6656    case `/usr/bin/file conftest.o` in
6657    *32-bit*)
6658      case $host in
6659        x86_64-*linux*)
6660          LD="${LD-ld} -m elf_i386"
6661          ;;
6662        ppc64-*linux*|powerpc64-*linux*)
6663          LD="${LD-ld} -m elf32ppclinux"
6664          ;;
6665        s390x-*linux*)
6666          LD="${LD-ld} -m elf_s390"
6667          ;;
6668        sparc64-*linux*)
6669          LD="${LD-ld} -m elf32_sparc"
6670          ;;
6671      esac
6672      ;;
6673    *64-bit*)
6674      case $host in
6675        x86_64-*linux*)
6676          LD="${LD-ld} -m elf_x86_64"
6677          ;;
6678        ppc*-*linux*|powerpc*-*linux*)
6679          LD="${LD-ld} -m elf64ppc"
6680          ;;
6681        s390*-*linux*)
6682          LD="${LD-ld} -m elf64_s390"
6683          ;;
6684        sparc*-*linux*)
6685          LD="${LD-ld} -m elf64_sparc"
6686          ;;
6687      esac
6688      ;;
6689    esac
6690  fi
6691  rm -rf conftest*
6692  ;;
6693
6694*-*-sco3.2v5*)
6695  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6696  SAVE_CFLAGS="$CFLAGS"
6697  CFLAGS="$CFLAGS -belf"
6698  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6699echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6700if test "${lt_cv_cc_needs_belf+set}" = set; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703  ac_ext=c
6704ac_cpp='$CPP $CPPFLAGS'
6705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707ac_compiler_gnu=$ac_cv_c_compiler_gnu
6708
6709     cat >conftest.$ac_ext <<_ACEOF
6710/* confdefs.h.  */
6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h.  */
6715
6716#ifdef F77_DUMMY_MAIN
6717
6718#  ifdef __cplusplus
6719     extern "C"
6720#  endif
6721   int F77_DUMMY_MAIN() { return 1; }
6722
6723#endif
6724int
6725main ()
6726{
6727
6728  ;
6729  return 0;
6730}
6731_ACEOF
6732rm -f conftest.$ac_objext conftest$ac_exeext
6733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6734  (eval $ac_link) 2>conftest.er1
6735  ac_status=$?
6736  grep -v '^ *+' conftest.er1 >conftest.err
6737  rm -f conftest.er1
6738  cat conftest.err >&5
6739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740  (exit $ac_status); } &&
6741         { ac_try='test -z "$ac_c_werror_flag"
6742                         || test ! -s conftest.err'
6743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744  (eval $ac_try) 2>&5
6745  ac_status=$?
6746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747  (exit $ac_status); }; } &&
6748         { ac_try='test -s conftest$ac_exeext'
6749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750  (eval $ac_try) 2>&5
6751  ac_status=$?
6752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753  (exit $ac_status); }; }; then
6754  lt_cv_cc_needs_belf=yes
6755else
6756  echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
6758
6759lt_cv_cc_needs_belf=no
6760fi
6761rm -f conftest.err conftest.$ac_objext \
6762      conftest$ac_exeext conftest.$ac_ext
6763     ac_ext=c
6764ac_cpp='$CPP $CPPFLAGS'
6765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767ac_compiler_gnu=$ac_cv_c_compiler_gnu
6768
6769fi
6770echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6771echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6772  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6773    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6774    CFLAGS="$SAVE_CFLAGS"
6775  fi
6776  ;;
6777sparc*-*solaris*)
6778  # Find out which ABI we are using.
6779  echo 'int i;' > conftest.$ac_ext
6780  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6781  (eval $ac_compile) 2>&5
6782  ac_status=$?
6783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784  (exit $ac_status); }; then
6785    case `/usr/bin/file conftest.o` in
6786    *64-bit*)
6787      case $lt_cv_prog_gnu_ld in
6788      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6789      *)    LD="${LD-ld} -64" ;;
6790      esac
6791      ;;
6792    esac
6793  fi
6794  rm -rf conftest*
6795  ;;
6796
6797
6798esac
6799
6800need_locks="$enable_libtool_lock"
6801
6802
6803ac_ext=c
6804ac_cpp='$CPP $CPPFLAGS'
6805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6809echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6810# On Suns, sometimes $CPP names a directory.
6811if test -n "$CPP" && test -d "$CPP"; then
6812  CPP=
6813fi
6814if test -z "$CPP"; then
6815  if test "${ac_cv_prog_CPP+set}" = set; then
6816  echo $ECHO_N "(cached) $ECHO_C" >&6
6817else
6818      # Double quotes because CPP needs to be expanded
6819    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6820    do
6821      ac_preproc_ok=false
6822for ac_c_preproc_warn_flag in '' yes
6823do
6824  # Use a header file that comes with gcc, so configuring glibc
6825  # with a fresh cross-compiler works.
6826  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827  # <limits.h> exists even on freestanding compilers.
6828  # On the NeXT, cc -E runs the code through the compiler's parser,
6829  # not just through cpp. "Syntax error" is here to catch this case.
6830  cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h.  */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h.  */
6836#ifdef __STDC__
6837# include <limits.h>
6838#else
6839# include <assert.h>
6840#endif
6841                     Syntax error
6842_ACEOF
6843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6844  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6845  ac_status=$?
6846  grep -v '^ *+' conftest.er1 >conftest.err
6847  rm -f conftest.er1
6848  cat conftest.err >&5
6849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850  (exit $ac_status); } >/dev/null; then
6851  if test -s conftest.err; then
6852    ac_cpp_err=$ac_c_preproc_warn_flag
6853    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6854  else
6855    ac_cpp_err=
6856  fi
6857else
6858  ac_cpp_err=yes
6859fi
6860if test -z "$ac_cpp_err"; then
6861  :
6862else
6863  echo "$as_me: failed program was:" >&5
6864sed 's/^/| /' conftest.$ac_ext >&5
6865
6866  # Broken: fails on valid input.
6867continue
6868fi
6869rm -f conftest.err conftest.$ac_ext
6870
6871  # OK, works on sane cases.  Now check whether non-existent headers
6872  # can be detected and how.
6873  cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h.  */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h.  */
6879#include <ac_nonexistent.h>
6880_ACEOF
6881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6882  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6883  ac_status=$?
6884  grep -v '^ *+' conftest.er1 >conftest.err
6885  rm -f conftest.er1
6886  cat conftest.err >&5
6887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888  (exit $ac_status); } >/dev/null; then
6889  if test -s conftest.err; then
6890    ac_cpp_err=$ac_c_preproc_warn_flag
6891    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6892  else
6893    ac_cpp_err=
6894  fi
6895else
6896  ac_cpp_err=yes
6897fi
6898if test -z "$ac_cpp_err"; then
6899  # Broken: success on invalid input.
6900continue
6901else
6902  echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905  # Passes both tests.
6906ac_preproc_ok=:
6907break
6908fi
6909rm -f conftest.err conftest.$ac_ext
6910
6911done
6912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6913rm -f conftest.err conftest.$ac_ext
6914if $ac_preproc_ok; then
6915  break
6916fi
6917
6918    done
6919    ac_cv_prog_CPP=$CPP
6920
6921fi
6922  CPP=$ac_cv_prog_CPP
6923else
6924  ac_cv_prog_CPP=$CPP
6925fi
6926echo "$as_me:$LINENO: result: $CPP" >&5
6927echo "${ECHO_T}$CPP" >&6
6928ac_preproc_ok=false
6929for ac_c_preproc_warn_flag in '' yes
6930do
6931  # Use a header file that comes with gcc, so configuring glibc
6932  # with a fresh cross-compiler works.
6933  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934  # <limits.h> exists even on freestanding compilers.
6935  # On the NeXT, cc -E runs the code through the compiler's parser,
6936  # not just through cpp. "Syntax error" is here to catch this case.
6937  cat >conftest.$ac_ext <<_ACEOF
6938/* confdefs.h.  */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h.  */
6943#ifdef __STDC__
6944# include <limits.h>
6945#else
6946# include <assert.h>
6947#endif
6948                     Syntax error
6949_ACEOF
6950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6951  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6952  ac_status=$?
6953  grep -v '^ *+' conftest.er1 >conftest.err
6954  rm -f conftest.er1
6955  cat conftest.err >&5
6956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957  (exit $ac_status); } >/dev/null; then
6958  if test -s conftest.err; then
6959    ac_cpp_err=$ac_c_preproc_warn_flag
6960    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6961  else
6962    ac_cpp_err=
6963  fi
6964else
6965  ac_cpp_err=yes
6966fi
6967if test -z "$ac_cpp_err"; then
6968  :
6969else
6970  echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973  # Broken: fails on valid input.
6974continue
6975fi
6976rm -f conftest.err conftest.$ac_ext
6977
6978  # OK, works on sane cases.  Now check whether non-existent headers
6979  # can be detected and how.
6980  cat >conftest.$ac_ext <<_ACEOF
6981/* confdefs.h.  */
6982_ACEOF
6983cat confdefs.h >>conftest.$ac_ext
6984cat >>conftest.$ac_ext <<_ACEOF
6985/* end confdefs.h.  */
6986#include <ac_nonexistent.h>
6987_ACEOF
6988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6989  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6990  ac_status=$?
6991  grep -v '^ *+' conftest.er1 >conftest.err
6992  rm -f conftest.er1
6993  cat conftest.err >&5
6994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995  (exit $ac_status); } >/dev/null; then
6996  if test -s conftest.err; then
6997    ac_cpp_err=$ac_c_preproc_warn_flag
6998    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6999  else
7000    ac_cpp_err=
7001  fi
7002else
7003  ac_cpp_err=yes
7004fi
7005if test -z "$ac_cpp_err"; then
7006  # Broken: success on invalid input.
7007continue
7008else
7009  echo "$as_me: failed program was:" >&5
7010sed 's/^/| /' conftest.$ac_ext >&5
7011
7012  # Passes both tests.
7013ac_preproc_ok=:
7014break
7015fi
7016rm -f conftest.err conftest.$ac_ext
7017
7018done
7019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7020rm -f conftest.err conftest.$ac_ext
7021if $ac_preproc_ok; then
7022  :
7023else
7024  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7025See \`config.log' for more details." >&5
7026echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7027See \`config.log' for more details." >&2;}
7028   { (exit 1); exit 1; }; }
7029fi
7030
7031ac_ext=c
7032ac_cpp='$CPP $CPPFLAGS'
7033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037
7038echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7039echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7040if test "${ac_cv_header_stdc+set}" = set; then
7041  echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043  cat >conftest.$ac_ext <<_ACEOF
7044/* confdefs.h.  */
7045_ACEOF
7046cat confdefs.h >>conftest.$ac_ext
7047cat >>conftest.$ac_ext <<_ACEOF
7048/* end confdefs.h.  */
7049#include <stdlib.h>
7050#include <stdarg.h>
7051#include <string.h>
7052#include <float.h>
7053
7054#ifdef F77_DUMMY_MAIN
7055
7056#  ifdef __cplusplus
7057     extern "C"
7058#  endif
7059   int F77_DUMMY_MAIN() { return 1; }
7060
7061#endif
7062int
7063main ()
7064{
7065
7066  ;
7067  return 0;
7068}
7069_ACEOF
7070rm -f conftest.$ac_objext
7071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7072  (eval $ac_compile) 2>conftest.er1
7073  ac_status=$?
7074  grep -v '^ *+' conftest.er1 >conftest.err
7075  rm -f conftest.er1
7076  cat conftest.err >&5
7077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078  (exit $ac_status); } &&
7079         { ac_try='test -z "$ac_c_werror_flag"
7080                         || test ! -s conftest.err'
7081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082  (eval $ac_try) 2>&5
7083  ac_status=$?
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); }; } &&
7086         { ac_try='test -s conftest.$ac_objext'
7087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088  (eval $ac_try) 2>&5
7089  ac_status=$?
7090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091  (exit $ac_status); }; }; then
7092  ac_cv_header_stdc=yes
7093else
7094  echo "$as_me: failed program was:" >&5
7095sed 's/^/| /' conftest.$ac_ext >&5
7096
7097ac_cv_header_stdc=no
7098fi
7099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7100
7101if test $ac_cv_header_stdc = yes; then
7102  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7103  cat >conftest.$ac_ext <<_ACEOF
7104/* confdefs.h.  */
7105_ACEOF
7106cat confdefs.h >>conftest.$ac_ext
7107cat >>conftest.$ac_ext <<_ACEOF
7108/* end confdefs.h.  */
7109#include <string.h>
7110
7111_ACEOF
7112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7113  $EGREP "memchr" >/dev/null 2>&1; then
7114  :
7115else
7116  ac_cv_header_stdc=no
7117fi
7118rm -f conftest*
7119
7120fi
7121
7122if test $ac_cv_header_stdc = yes; then
7123  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7124  cat >conftest.$ac_ext <<_ACEOF
7125/* confdefs.h.  */
7126_ACEOF
7127cat confdefs.h >>conftest.$ac_ext
7128cat >>conftest.$ac_ext <<_ACEOF
7129/* end confdefs.h.  */
7130#include <stdlib.h>
7131
7132_ACEOF
7133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7134  $EGREP "free" >/dev/null 2>&1; then
7135  :
7136else
7137  ac_cv_header_stdc=no
7138fi
7139rm -f conftest*
7140
7141fi
7142
7143if test $ac_cv_header_stdc = yes; then
7144  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7145  if test "$cross_compiling" = yes; then
7146  :
7147else
7148  cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h.  */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h.  */
7154#include <ctype.h>
7155#if ((' ' & 0x0FF) == 0x020)
7156# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7157# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7158#else
7159# define ISLOWER(c) \
7160                   (('a' <= (c) && (c) <= 'i') \
7161                     || ('j' <= (c) && (c) <= 'r') \
7162                     || ('s' <= (c) && (c) <= 'z'))
7163# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7164#endif
7165
7166#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7167int
7168main ()
7169{
7170  int i;
7171  for (i = 0; i < 256; i++)
7172    if (XOR (islower (i), ISLOWER (i))
7173        || toupper (i) != TOUPPER (i))
7174      exit(2);
7175  exit (0);
7176}
7177_ACEOF
7178rm -f conftest$ac_exeext
7179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7180  (eval $ac_link) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185  (eval $ac_try) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }; }; then
7189  :
7190else
7191  echo "$as_me: program exited with status $ac_status" >&5
7192echo "$as_me: failed program was:" >&5
7193sed 's/^/| /' conftest.$ac_ext >&5
7194
7195( exit $ac_status )
7196ac_cv_header_stdc=no
7197fi
7198rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7199fi
7200fi
7201fi
7202echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7203echo "${ECHO_T}$ac_cv_header_stdc" >&6
7204if test $ac_cv_header_stdc = yes; then
7205
7206cat >>confdefs.h <<\_ACEOF
7207#define STDC_HEADERS 1
7208_ACEOF
7209
7210fi
7211
7212# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7223                  inttypes.h stdint.h unistd.h
7224do
7225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7226echo "$as_me:$LINENO: checking for $ac_header" >&5
7227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7228if eval "test \"\${$as_ac_Header+set}\" = set"; then
7229  echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231  cat >conftest.$ac_ext <<_ACEOF
7232/* confdefs.h.  */
7233_ACEOF
7234cat confdefs.h >>conftest.$ac_ext
7235cat >>conftest.$ac_ext <<_ACEOF
7236/* end confdefs.h.  */
7237$ac_includes_default
7238
7239#include <$ac_header>
7240_ACEOF
7241rm -f conftest.$ac_objext
7242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243  (eval $ac_compile) 2>conftest.er1
7244  ac_status=$?
7245  grep -v '^ *+' conftest.er1 >conftest.err
7246  rm -f conftest.er1
7247  cat conftest.err >&5
7248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249  (exit $ac_status); } &&
7250         { ac_try='test -z "$ac_c_werror_flag"
7251                         || test ! -s conftest.err'
7252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253  (eval $ac_try) 2>&5
7254  ac_status=$?
7255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); }; } &&
7257         { ac_try='test -s conftest.$ac_objext'
7258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259  (eval $ac_try) 2>&5
7260  ac_status=$?
7261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262  (exit $ac_status); }; }; then
7263  eval "$as_ac_Header=yes"
7264else
7265  echo "$as_me: failed program was:" >&5
7266sed 's/^/| /' conftest.$ac_ext >&5
7267
7268eval "$as_ac_Header=no"
7269fi
7270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271fi
7272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7274if test `eval echo '${'$as_ac_Header'}'` = yes; then
7275  cat >>confdefs.h <<_ACEOF
7276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277_ACEOF
7278
7279fi
7280
7281done
7282
7283
7284
7285for ac_header in dlfcn.h
7286do
7287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288if eval "test \"\${$as_ac_Header+set}\" = set"; then
7289  echo "$as_me:$LINENO: checking for $ac_header" >&5
7290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7291if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292  echo $ECHO_N "(cached) $ECHO_C" >&6
7293fi
7294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296else
7297  # Is the header compilable?
7298echo "$as_me:$LINENO: checking $ac_header usability" >&5
7299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7300cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h.  */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h.  */
7306$ac_includes_default
7307#include <$ac_header>
7308_ACEOF
7309rm -f conftest.$ac_objext
7310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311  (eval $ac_compile) 2>conftest.er1
7312  ac_status=$?
7313  grep -v '^ *+' conftest.er1 >conftest.err
7314  rm -f conftest.er1
7315  cat conftest.err >&5
7316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317  (exit $ac_status); } &&
7318         { ac_try='test -z "$ac_c_werror_flag"
7319                         || test ! -s conftest.err'
7320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321  (eval $ac_try) 2>&5
7322  ac_status=$?
7323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324  (exit $ac_status); }; } &&
7325         { ac_try='test -s conftest.$ac_objext'
7326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327  (eval $ac_try) 2>&5
7328  ac_status=$?
7329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330  (exit $ac_status); }; }; then
7331  ac_header_compiler=yes
7332else
7333  echo "$as_me: failed program was:" >&5
7334sed 's/^/| /' conftest.$ac_ext >&5
7335
7336ac_header_compiler=no
7337fi
7338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7340echo "${ECHO_T}$ac_header_compiler" >&6
7341
7342# Is the header present?
7343echo "$as_me:$LINENO: checking $ac_header presence" >&5
7344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7345cat >conftest.$ac_ext <<_ACEOF
7346/* confdefs.h.  */
7347_ACEOF
7348cat confdefs.h >>conftest.$ac_ext
7349cat >>conftest.$ac_ext <<_ACEOF
7350/* end confdefs.h.  */
7351#include <$ac_header>
7352_ACEOF
7353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7354  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7355  ac_status=$?
7356  grep -v '^ *+' conftest.er1 >conftest.err
7357  rm -f conftest.er1
7358  cat conftest.err >&5
7359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360  (exit $ac_status); } >/dev/null; then
7361  if test -s conftest.err; then
7362    ac_cpp_err=$ac_c_preproc_warn_flag
7363    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7364  else
7365    ac_cpp_err=
7366  fi
7367else
7368  ac_cpp_err=yes
7369fi
7370if test -z "$ac_cpp_err"; then
7371  ac_header_preproc=yes
7372else
7373  echo "$as_me: failed program was:" >&5
7374sed 's/^/| /' conftest.$ac_ext >&5
7375
7376  ac_header_preproc=no
7377fi
7378rm -f conftest.err conftest.$ac_ext
7379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7380echo "${ECHO_T}$ac_header_preproc" >&6
7381
7382# So?  What about this header?
7383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7384  yes:no: )
7385    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7387    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7389    ac_header_preproc=yes
7390    ;;
7391  no:yes:* )
7392    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7394    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7395echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7396    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7398    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7399echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7400    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7402    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7404    (
7405      cat <<\_ASBOX
7406## --------------------------------------------------------------- ##
7407## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7408## --------------------------------------------------------------- ##
7409_ASBOX
7410    ) |
7411      sed "s/^/$as_me: WARNING:     /" >&2
7412    ;;
7413esac
7414echo "$as_me:$LINENO: checking for $ac_header" >&5
7415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7416if eval "test \"\${$as_ac_Header+set}\" = set"; then
7417  echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419  eval "$as_ac_Header=\$ac_header_preproc"
7420fi
7421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7423
7424fi
7425if test `eval echo '${'$as_ac_Header'}'` = yes; then
7426  cat >>confdefs.h <<_ACEOF
7427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7428_ACEOF
7429
7430fi
7431
7432done
7433
7434ac_ext=cc
7435ac_cpp='$CXXCPP $CPPFLAGS'
7436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7439if test -n "$ac_tool_prefix"; then
7440  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7441  do
7442    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7443set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7444echo "$as_me:$LINENO: checking for $ac_word" >&5
7445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7446if test "${ac_cv_prog_CXX+set}" = set; then
7447  echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449  if test -n "$CXX"; then
7450  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7451else
7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455  IFS=$as_save_IFS
7456  test -z "$as_dir" && as_dir=.
7457  for ac_exec_ext in '' $ac_executable_extensions; do
7458  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461    break 2
7462  fi
7463done
7464done
7465
7466fi
7467fi
7468CXX=$ac_cv_prog_CXX
7469if test -n "$CXX"; then
7470  echo "$as_me:$LINENO: result: $CXX" >&5
7471echo "${ECHO_T}$CXX" >&6
7472else
7473  echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6
7475fi
7476
7477    test -n "$CXX" && break
7478  done
7479fi
7480if test -z "$CXX"; then
7481  ac_ct_CXX=$CXX
7482  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7483do
7484  # Extract the first word of "$ac_prog", so it can be a program name with args.
7485set dummy $ac_prog; ac_word=$2
7486echo "$as_me:$LINENO: checking for $ac_word" >&5
7487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7489  echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491  if test -n "$ac_ct_CXX"; then
7492  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497  IFS=$as_save_IFS
7498  test -z "$as_dir" && as_dir=.
7499  for ac_exec_ext in '' $ac_executable_extensions; do
7500  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501    ac_cv_prog_ac_ct_CXX="$ac_prog"
7502    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503    break 2
7504  fi
7505done
7506done
7507
7508fi
7509fi
7510ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7511if test -n "$ac_ct_CXX"; then
7512  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7513echo "${ECHO_T}$ac_ct_CXX" >&6
7514else
7515  echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
7517fi
7518
7519  test -n "$ac_ct_CXX" && break
7520done
7521test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7522
7523  CXX=$ac_ct_CXX
7524fi
7525
7526
7527# Provide some information about the compiler.
7528echo "$as_me:$LINENO:" \
7529     "checking for C++ compiler version" >&5
7530ac_compiler=`set X $ac_compile; echo $2`
7531{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7532  (eval $ac_compiler --version </dev/null >&5) 2>&5
7533  ac_status=$?
7534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535  (exit $ac_status); }
7536{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7537  (eval $ac_compiler -v </dev/null >&5) 2>&5
7538  ac_status=$?
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); }
7541{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7542  (eval $ac_compiler -V </dev/null >&5) 2>&5
7543  ac_status=$?
7544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545  (exit $ac_status); }
7546
7547echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7548echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7549if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  cat >conftest.$ac_ext <<_ACEOF
7553/* confdefs.h.  */
7554_ACEOF
7555cat confdefs.h >>conftest.$ac_ext
7556cat >>conftest.$ac_ext <<_ACEOF
7557/* end confdefs.h.  */
7558
7559#ifdef F77_DUMMY_MAIN
7560
7561#  ifdef __cplusplus
7562     extern "C"
7563#  endif
7564   int F77_DUMMY_MAIN() { return 1; }
7565
7566#endif
7567int
7568main ()
7569{
7570#ifndef __GNUC__
7571       choke me
7572#endif
7573
7574  ;
7575  return 0;
7576}
7577_ACEOF
7578rm -f conftest.$ac_objext
7579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580  (eval $ac_compile) 2>conftest.er1
7581  ac_status=$?
7582  grep -v '^ *+' conftest.er1 >conftest.err
7583  rm -f conftest.er1
7584  cat conftest.err >&5
7585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586  (exit $ac_status); } &&
7587         { ac_try='test -z "$ac_cxx_werror_flag"
7588                         || test ! -s conftest.err'
7589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590  (eval $ac_try) 2>&5
7591  ac_status=$?
7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593  (exit $ac_status); }; } &&
7594         { ac_try='test -s conftest.$ac_objext'
7595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596  (eval $ac_try) 2>&5
7597  ac_status=$?
7598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599  (exit $ac_status); }; }; then
7600  ac_compiler_gnu=yes
7601else
7602  echo "$as_me: failed program was:" >&5
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
7605ac_compiler_gnu=no
7606fi
7607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7609
7610fi
7611echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7612echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7613GXX=`test $ac_compiler_gnu = yes && echo yes`
7614ac_test_CXXFLAGS=${CXXFLAGS+set}
7615ac_save_CXXFLAGS=$CXXFLAGS
7616CXXFLAGS="-g"
7617echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7618echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7619if test "${ac_cv_prog_cxx_g+set}" = set; then
7620  echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622  cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h.  */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h.  */
7628
7629#ifdef F77_DUMMY_MAIN
7630
7631#  ifdef __cplusplus
7632     extern "C"
7633#  endif
7634   int F77_DUMMY_MAIN() { return 1; }
7635
7636#endif
7637int
7638main ()
7639{
7640
7641  ;
7642  return 0;
7643}
7644_ACEOF
7645rm -f conftest.$ac_objext
7646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647  (eval $ac_compile) 2>conftest.er1
7648  ac_status=$?
7649  grep -v '^ *+' conftest.er1 >conftest.err
7650  rm -f conftest.er1
7651  cat conftest.err >&5
7652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653  (exit $ac_status); } &&
7654         { ac_try='test -z "$ac_cxx_werror_flag"
7655                         || test ! -s conftest.err'
7656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657  (eval $ac_try) 2>&5
7658  ac_status=$?
7659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660  (exit $ac_status); }; } &&
7661         { ac_try='test -s conftest.$ac_objext'
7662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663  (eval $ac_try) 2>&5
7664  ac_status=$?
7665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666  (exit $ac_status); }; }; then
7667  ac_cv_prog_cxx_g=yes
7668else
7669  echo "$as_me: failed program was:" >&5
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
7672ac_cv_prog_cxx_g=no
7673fi
7674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7675fi
7676echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7677echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7678if test "$ac_test_CXXFLAGS" = set; then
7679  CXXFLAGS=$ac_save_CXXFLAGS
7680elif test $ac_cv_prog_cxx_g = yes; then
7681  if test "$GXX" = yes; then
7682    CXXFLAGS="-g -O2"
7683  else
7684    CXXFLAGS="-g"
7685  fi
7686else
7687  if test "$GXX" = yes; then
7688    CXXFLAGS="-O2"
7689  else
7690    CXXFLAGS=
7691  fi
7692fi
7693for ac_declaration in \
7694   '' \
7695   'extern "C" void std::exit (int) throw (); using std::exit;' \
7696   'extern "C" void std::exit (int); using std::exit;' \
7697   'extern "C" void exit (int) throw ();' \
7698   'extern "C" void exit (int);' \
7699   'void exit (int);'
7700do
7701  cat >conftest.$ac_ext <<_ACEOF
7702/* confdefs.h.  */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h.  */
7707$ac_declaration
7708#include <stdlib.h>
7709#ifdef F77_DUMMY_MAIN
7710
7711#  ifdef __cplusplus
7712     extern "C"
7713#  endif
7714   int F77_DUMMY_MAIN() { return 1; }
7715
7716#endif
7717int
7718main ()
7719{
7720exit (42);
7721  ;
7722  return 0;
7723}
7724_ACEOF
7725rm -f conftest.$ac_objext
7726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727  (eval $ac_compile) 2>conftest.er1
7728  ac_status=$?
7729  grep -v '^ *+' conftest.er1 >conftest.err
7730  rm -f conftest.er1
7731  cat conftest.err >&5
7732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733  (exit $ac_status); } &&
7734         { ac_try='test -z "$ac_cxx_werror_flag"
7735                         || test ! -s conftest.err'
7736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737  (eval $ac_try) 2>&5
7738  ac_status=$?
7739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740  (exit $ac_status); }; } &&
7741         { ac_try='test -s conftest.$ac_objext'
7742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743  (eval $ac_try) 2>&5
7744  ac_status=$?
7745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746  (exit $ac_status); }; }; then
7747  :
7748else
7749  echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752continue
7753fi
7754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7755  cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h.  */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h.  */
7761$ac_declaration
7762#ifdef F77_DUMMY_MAIN
7763
7764#  ifdef __cplusplus
7765     extern "C"
7766#  endif
7767   int F77_DUMMY_MAIN() { return 1; }
7768
7769#endif
7770int
7771main ()
7772{
7773exit (42);
7774  ;
7775  return 0;
7776}
7777_ACEOF
7778rm -f conftest.$ac_objext
7779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780  (eval $ac_compile) 2>conftest.er1
7781  ac_status=$?
7782  grep -v '^ *+' conftest.er1 >conftest.err
7783  rm -f conftest.er1
7784  cat conftest.err >&5
7785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786  (exit $ac_status); } &&
7787         { ac_try='test -z "$ac_cxx_werror_flag"
7788                         || test ! -s conftest.err'
7789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790  (eval $ac_try) 2>&5
7791  ac_status=$?
7792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793  (exit $ac_status); }; } &&
7794         { ac_try='test -s conftest.$ac_objext'
7795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796  (eval $ac_try) 2>&5
7797  ac_status=$?
7798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799  (exit $ac_status); }; }; then
7800  break
7801else
7802  echo "$as_me: failed program was:" >&5
7803sed 's/^/| /' conftest.$ac_ext >&5
7804
7805fi
7806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807done
7808rm -f conftest*
7809if test -n "$ac_declaration"; then
7810  echo '#ifdef __cplusplus' >>confdefs.h
7811  echo $ac_declaration      >>confdefs.h
7812  echo '#endif'             >>confdefs.h
7813fi
7814
7815ac_ext=cc
7816ac_cpp='$CXXCPP $CPPFLAGS'
7817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7820
7821depcc="$CXX"  am_compiler_list=
7822
7823echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7824echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7825if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7826  echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7829  # We make a subdir and do the tests there.  Otherwise we can end up
7830  # making bogus files that we don't know about and never remove.  For
7831  # instance it was reported that on HP-UX the gcc test will end up
7832  # making a dummy file named `D' -- because `-MD' means `put the output
7833  # in D'.
7834  mkdir conftest.dir
7835  # Copy depcomp to subdir because otherwise we won't find it if we're
7836  # using a relative directory.
7837  cp "$am_depcomp" conftest.dir
7838  cd conftest.dir
7839  # We will build objects and dependencies in a subdirectory because
7840  # it helps to detect inapplicable dependency modes.  For instance
7841  # both Tru64's cc and ICC support -MD to output dependencies as a
7842  # side effect of compilation, but ICC will put the dependencies in
7843  # the current directory while Tru64 will put them in the object
7844  # directory.
7845  mkdir sub
7846
7847  am_cv_CXX_dependencies_compiler_type=none
7848  if test "$am_compiler_list" = ""; then
7849     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7850  fi
7851  for depmode in $am_compiler_list; do
7852    # Setup a source with many dependencies, because some compilers
7853    # like to wrap large dependency lists on column 80 (with \), and
7854    # we should not choose a depcomp mode which is confused by this.
7855    #
7856    # We need to recreate these files for each test, as the compiler may
7857    # overwrite some of them when testing with obscure command lines.
7858    # This happens at least with the AIX C compiler.
7859    : > sub/conftest.c
7860    for i in 1 2 3 4 5 6; do
7861      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7862      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7863      # Solaris 8's {/usr,}/bin/sh.
7864      touch sub/conftst$i.h
7865    done
7866    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7867
7868    case $depmode in
7869    nosideeffect)
7870      # after this tag, mechanisms are not by side-effect, so they'll
7871      # only be used when explicitly requested
7872      if test "x$enable_dependency_tracking" = xyes; then
7873        continue
7874      else
7875        break
7876      fi
7877      ;;
7878    none) break ;;
7879    esac
7880    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7881    # mode.  It turns out that the SunPro C++ compiler does not properly
7882    # handle `-M -o', and we need to detect this.
7883    if depmode=$depmode \
7884       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7885       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7886       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7887         >/dev/null 2>conftest.err &&
7888       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7889       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7890       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7891      # icc doesn't choke on unknown options, it will just issue warnings
7892      # or remarks (even with -Werror).  So we grep stderr for any message
7893      # that says an option was ignored or not supported.
7894      # When given -MP, icc 7.0 and 7.1 complain thusly:
7895      #   icc: Command line warning: ignoring option '-M'; no argument required
7896      # The diagnosis changed in icc 8.0:
7897      #   icc: Command line remark: option '-MP' not supported
7898      if (grep 'ignoring option' conftest.err ||
7899          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7900        am_cv_CXX_dependencies_compiler_type=$depmode
7901        break
7902      fi
7903    fi
7904  done
7905
7906  cd ..
7907  rm -rf conftest.dir
7908else
7909  am_cv_CXX_dependencies_compiler_type=none
7910fi
7911
7912fi
7913echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7914echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7915CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7916
7917
7918
7919if
7920  test "x$enable_dependency_tracking" != xno \
7921  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7922  am__fastdepCXX_TRUE=
7923  am__fastdepCXX_FALSE='#'
7924else
7925  am__fastdepCXX_TRUE='#'
7926  am__fastdepCXX_FALSE=
7927fi
7928
7929
7930
7931
7932if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7933    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7934    (test "X$CXX" != "Xg++"))) ; then
7935  ac_ext=cc
7936ac_cpp='$CXXCPP $CPPFLAGS'
7937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7940echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7941echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7942if test -z "$CXXCPP"; then
7943  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7944  echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946      # Double quotes because CXXCPP needs to be expanded
7947    for CXXCPP in "$CXX -E" "/lib/cpp"
7948    do
7949      ac_preproc_ok=false
7950for ac_cxx_preproc_warn_flag in '' yes
7951do
7952  # Use a header file that comes with gcc, so configuring glibc
7953  # with a fresh cross-compiler works.
7954  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7955  # <limits.h> exists even on freestanding compilers.
7956  # On the NeXT, cc -E runs the code through the compiler's parser,
7957  # not just through cpp. "Syntax error" is here to catch this case.
7958  cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h.  */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h.  */
7964#ifdef __STDC__
7965# include <limits.h>
7966#else
7967# include <assert.h>
7968#endif
7969                     Syntax error
7970_ACEOF
7971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7973  ac_status=$?
7974  grep -v '^ *+' conftest.er1 >conftest.err
7975  rm -f conftest.er1
7976  cat conftest.err >&5
7977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978  (exit $ac_status); } >/dev/null; then
7979  if test -s conftest.err; then
7980    ac_cpp_err=$ac_cxx_preproc_warn_flag
7981    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7982  else
7983    ac_cpp_err=
7984  fi
7985else
7986  ac_cpp_err=yes
7987fi
7988if test -z "$ac_cpp_err"; then
7989  :
7990else
7991  echo "$as_me: failed program was:" >&5
7992sed 's/^/| /' conftest.$ac_ext >&5
7993
7994  # Broken: fails on valid input.
7995continue
7996fi
7997rm -f conftest.err conftest.$ac_ext
7998
7999  # OK, works on sane cases.  Now check whether non-existent headers
8000  # can be detected and how.
8001  cat >conftest.$ac_ext <<_ACEOF
8002/* confdefs.h.  */
8003_ACEOF
8004cat confdefs.h >>conftest.$ac_ext
8005cat >>conftest.$ac_ext <<_ACEOF
8006/* end confdefs.h.  */
8007#include <ac_nonexistent.h>
8008_ACEOF
8009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8010  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8011  ac_status=$?
8012  grep -v '^ *+' conftest.er1 >conftest.err
8013  rm -f conftest.er1
8014  cat conftest.err >&5
8015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); } >/dev/null; then
8017  if test -s conftest.err; then
8018    ac_cpp_err=$ac_cxx_preproc_warn_flag
8019    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8020  else
8021    ac_cpp_err=
8022  fi
8023else
8024  ac_cpp_err=yes
8025fi
8026if test -z "$ac_cpp_err"; then
8027  # Broken: success on invalid input.
8028continue
8029else
8030  echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
8032
8033  # Passes both tests.
8034ac_preproc_ok=:
8035break
8036fi
8037rm -f conftest.err conftest.$ac_ext
8038
8039done
8040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8041rm -f conftest.err conftest.$ac_ext
8042if $ac_preproc_ok; then
8043  break
8044fi
8045
8046    done
8047    ac_cv_prog_CXXCPP=$CXXCPP
8048
8049fi
8050  CXXCPP=$ac_cv_prog_CXXCPP
8051else
8052  ac_cv_prog_CXXCPP=$CXXCPP
8053fi
8054echo "$as_me:$LINENO: result: $CXXCPP" >&5
8055echo "${ECHO_T}$CXXCPP" >&6
8056ac_preproc_ok=false
8057for ac_cxx_preproc_warn_flag in '' yes
8058do
8059  # Use a header file that comes with gcc, so configuring glibc
8060  # with a fresh cross-compiler works.
8061  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8062  # <limits.h> exists even on freestanding compilers.
8063  # On the NeXT, cc -E runs the code through the compiler's parser,
8064  # not just through cpp. "Syntax error" is here to catch this case.
8065  cat >conftest.$ac_ext <<_ACEOF
8066/* confdefs.h.  */
8067_ACEOF
8068cat confdefs.h >>conftest.$ac_ext
8069cat >>conftest.$ac_ext <<_ACEOF
8070/* end confdefs.h.  */
8071#ifdef __STDC__
8072# include <limits.h>
8073#else
8074# include <assert.h>
8075#endif
8076                     Syntax error
8077_ACEOF
8078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8079  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8080  ac_status=$?
8081  grep -v '^ *+' conftest.er1 >conftest.err
8082  rm -f conftest.er1
8083  cat conftest.err >&5
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); } >/dev/null; then
8086  if test -s conftest.err; then
8087    ac_cpp_err=$ac_cxx_preproc_warn_flag
8088    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8089  else
8090    ac_cpp_err=
8091  fi
8092else
8093  ac_cpp_err=yes
8094fi
8095if test -z "$ac_cpp_err"; then
8096  :
8097else
8098  echo "$as_me: failed program was:" >&5
8099sed 's/^/| /' conftest.$ac_ext >&5
8100
8101  # Broken: fails on valid input.
8102continue
8103fi
8104rm -f conftest.err conftest.$ac_ext
8105
8106  # OK, works on sane cases.  Now check whether non-existent headers
8107  # can be detected and how.
8108  cat >conftest.$ac_ext <<_ACEOF
8109/* confdefs.h.  */
8110_ACEOF
8111cat confdefs.h >>conftest.$ac_ext
8112cat >>conftest.$ac_ext <<_ACEOF
8113/* end confdefs.h.  */
8114#include <ac_nonexistent.h>
8115_ACEOF
8116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8117  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8118  ac_status=$?
8119  grep -v '^ *+' conftest.er1 >conftest.err
8120  rm -f conftest.er1
8121  cat conftest.err >&5
8122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123  (exit $ac_status); } >/dev/null; then
8124  if test -s conftest.err; then
8125    ac_cpp_err=$ac_cxx_preproc_warn_flag
8126    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8127  else
8128    ac_cpp_err=
8129  fi
8130else
8131  ac_cpp_err=yes
8132fi
8133if test -z "$ac_cpp_err"; then
8134  # Broken: success on invalid input.
8135continue
8136else
8137  echo "$as_me: failed program was:" >&5
8138sed 's/^/| /' conftest.$ac_ext >&5
8139
8140  # Passes both tests.
8141ac_preproc_ok=:
8142break
8143fi
8144rm -f conftest.err conftest.$ac_ext
8145
8146done
8147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8148rm -f conftest.err conftest.$ac_ext
8149if $ac_preproc_ok; then
8150  :
8151else
8152  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8153See \`config.log' for more details." >&5
8154echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8155See \`config.log' for more details." >&2;}
8156   { (exit 1); exit 1; }; }
8157fi
8158
8159ac_ext=cc
8160ac_cpp='$CXXCPP $CPPFLAGS'
8161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8164
8165fi
8166
8167
8168
8169# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8170
8171# find the maximum length of command line arguments
8172echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8173echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8174if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8175  echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177    i=0
8178  teststring="ABCD"
8179
8180  case $build_os in
8181  msdosdjgpp*)
8182    # On DJGPP, this test can blow up pretty badly due to problems in libc
8183    # (any single argument exceeding 2000 bytes causes a buffer overrun
8184    # during glob expansion).  Even if it were fixed, the result of this
8185    # check would be larger than it should be.
8186    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8187    ;;
8188
8189  gnu*)
8190    # Under GNU Hurd, this test is not required because there is
8191    # no limit to the length of command line arguments.
8192    # Libtool will interpret -1 as no limit whatsoever
8193    lt_cv_sys_max_cmd_len=-1;
8194    ;;
8195
8196  cygwin* | mingw*)
8197    # On Win9x/ME, this test blows up -- it succeeds, but takes
8198    # about 5 minutes as the teststring grows exponentially.
8199    # Worse, since 9x/ME are not pre-emptively multitasking,
8200    # you end up with a "frozen" computer, even though with patience
8201    # the test eventually succeeds (with a max line length of 256k).
8202    # Instead, let's just punt: use the minimum linelength reported by
8203    # all of the supported platforms: 8192 (on NT/2K/XP).
8204    lt_cv_sys_max_cmd_len=8192;
8205    ;;
8206
8207  amigaos*)
8208    # On AmigaOS with pdksh, this test takes hours, literally.
8209    # So we just punt and use a minimum line length of 8192.
8210    lt_cv_sys_max_cmd_len=8192;
8211    ;;
8212
8213  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8214    # This has been around since 386BSD, at least.  Likely further.
8215    if test -x /sbin/sysctl; then
8216      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8217    elif test -x /usr/sbin/sysctl; then
8218      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8219    else
8220      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8221    fi
8222    # And add a safety zone
8223    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8224    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8225    ;;
8226
8227  interix*)
8228    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8229    lt_cv_sys_max_cmd_len=196608
8230    ;;
8231
8232  osf*)
8233    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8234    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8235    # nice to cause kernel panics so lets avoid the loop below.
8236    # First set a reasonable default.
8237    lt_cv_sys_max_cmd_len=16384
8238    #
8239    if test -x /sbin/sysconfig; then
8240      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8241        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8242      esac
8243    fi
8244    ;;
8245  sco3.2v5*)
8246    lt_cv_sys_max_cmd_len=102400
8247    ;;
8248  sysv5* | sco5v6* | sysv4.2uw2*)
8249    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8250    if test -n "$kargmax"; then
8251      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8252    else
8253      lt_cv_sys_max_cmd_len=32768
8254    fi
8255    ;;
8256  *)
8257    # If test is not a shell built-in, we'll probably end up computing a
8258    # maximum length that is only half of the actual maximum length, but
8259    # we can't tell.
8260    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8261    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8262               = "XX$teststring") >/dev/null 2>&1 &&
8263            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8264            lt_cv_sys_max_cmd_len=$new_result &&
8265            test $i != 17 # 1/2 MB should be enough
8266    do
8267      i=`expr $i + 1`
8268      teststring=$teststring$teststring
8269    done
8270    teststring=
8271    # Add a significant safety factor because C++ compilers can tack on massive
8272    # amounts of additional arguments before passing them to the linker.
8273    # It appears as though 1/2 is a usable value.
8274    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8275    ;;
8276  esac
8277
8278fi
8279
8280if test -n $lt_cv_sys_max_cmd_len ; then
8281  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8282echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8283else
8284  echo "$as_me:$LINENO: result: none" >&5
8285echo "${ECHO_T}none" >&6
8286fi
8287
8288
8289
8290
8291# Check for command to grab the raw symbol name followed by C symbol from nm.
8292echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8293echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8294if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8295  echo $ECHO_N "(cached) $ECHO_C" >&6
8296else
8297
8298# These are sane defaults that work on at least a few old systems.
8299# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8300
8301# Character class describing NM global symbol codes.
8302symcode='[BCDEGRST]'
8303
8304# Regexp to match symbols that can be accessed directly from C.
8305sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8306
8307# Transform an extracted symbol line into a proper C declaration
8308lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8309
8310# Transform an extracted symbol line into symbol name and symbol address
8311lt_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'"
8312
8313# Define system-specific variables.
8314case $host_os in
8315aix*)
8316  symcode='[BCDT]'
8317  ;;
8318cygwin* | mingw* | pw32*)
8319  symcode='[ABCDGISTW]'
8320  ;;
8321hpux*) # Its linker distinguishes data from code symbols
8322  if test "$host_cpu" = ia64; then
8323    symcode='[ABCDEGRST]'
8324  fi
8325  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8326  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'"
8327  ;;
8328linux*)
8329  if test "$host_cpu" = ia64; then
8330    symcode='[ABCDGIRSTW]'
8331    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8332    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'"
8333  fi
8334  ;;
8335irix* | nonstopux*)
8336  symcode='[BCDEGRST]'
8337  ;;
8338osf*)
8339  symcode='[BCDEGQRST]'
8340  ;;
8341solaris*)
8342  symcode='[BDRT]'
8343  ;;
8344sco3.2v5*)
8345  symcode='[DT]'
8346  ;;
8347sysv4.2uw2*)
8348  symcode='[DT]'
8349  ;;
8350sysv5* | sco5v6* | unixware* | OpenUNIX*)
8351  symcode='[ABDT]'
8352  ;;
8353sysv4)
8354  symcode='[DFNSTU]'
8355  ;;
8356esac
8357
8358# Handle CRLF in mingw tool chain
8359opt_cr=
8360case $build_os in
8361mingw*)
8362  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8363  ;;
8364esac
8365
8366# If we're using GNU nm, then use its standard symbol codes.
8367case `$NM -V 2>&1` in
8368*GNU* | *'with BFD'*)
8369  symcode='[ABCDGIRSTW]' ;;
8370esac
8371
8372# Try without a prefix undercore, then with it.
8373for ac_symprfx in "" "_"; do
8374
8375  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8376  symxfrm="\\1 $ac_symprfx\\2 \\2"
8377
8378  # Write the raw and C identifiers.
8379  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8380
8381  # Check to see that the pipe works correctly.
8382  pipe_works=no
8383
8384  rm -f conftest*
8385  cat > conftest.$ac_ext <<EOF
8386#ifdef __cplusplus
8387extern "C" {
8388#endif
8389char nm_test_var;
8390void nm_test_func(){}
8391#ifdef __cplusplus
8392}
8393#endif
8394int main(){nm_test_var='a';nm_test_func();return(0);}
8395EOF
8396
8397  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398  (eval $ac_compile) 2>&5
8399  ac_status=$?
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); }; then
8402    # Now try to grab the symbols.
8403    nlist=conftest.nm
8404    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8405  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8406  ac_status=$?
8407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408  (exit $ac_status); } && test -s "$nlist"; then
8409      # Try sorting and uniquifying the output.
8410      if sort "$nlist" | uniq > "$nlist"T; then
8411        mv -f "$nlist"T "$nlist"
8412      else
8413        rm -f "$nlist"T
8414      fi
8415
8416      # Make sure that we snagged all the symbols we need.
8417      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8418        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8419          cat <<EOF > conftest.$ac_ext
8420#ifdef __cplusplus
8421extern "C" {
8422#endif
8423
8424EOF
8425          # Now generate the symbol file.
8426          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8427
8428          cat <<EOF >> conftest.$ac_ext
8429#if defined (__STDC__) && __STDC__
8430# define lt_ptr_t void *
8431#else
8432# define lt_ptr_t char *
8433# define const
8434#endif
8435
8436/* The mapping between symbol names and symbols. */
8437const struct {
8438  const char *name;
8439  lt_ptr_t address;
8440}
8441lt_preloaded_symbols[] =
8442{
8443EOF
8444          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8445          cat <<\EOF >> conftest.$ac_ext
8446  {0, (lt_ptr_t) 0}
8447};
8448
8449#ifdef __cplusplus
8450}
8451#endif
8452EOF
8453          # Now try linking the two files.
8454          mv conftest.$ac_objext conftstm.$ac_objext
8455          lt_save_LIBS="$LIBS"
8456          lt_save_CFLAGS="$CFLAGS"
8457          LIBS="conftstm.$ac_objext"
8458          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8459          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460  (eval $ac_link) 2>&5
8461  ac_status=$?
8462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8464            pipe_works=yes
8465          fi
8466          LIBS="$lt_save_LIBS"
8467          CFLAGS="$lt_save_CFLAGS"
8468        else
8469          echo "cannot find nm_test_func in $nlist" >&5
8470        fi
8471      else
8472        echo "cannot find nm_test_var in $nlist" >&5
8473      fi
8474    else
8475      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8476    fi
8477  else
8478    echo "$progname: failed program was:" >&5
8479    cat conftest.$ac_ext >&5
8480  fi
8481  rm -f conftest* conftst*
8482
8483  # Do not use the global_symbol_pipe unless it works.
8484  if test "$pipe_works" = yes; then
8485    break
8486  else
8487    lt_cv_sys_global_symbol_pipe=
8488  fi
8489done
8490
8491fi
8492
8493if test -z "$lt_cv_sys_global_symbol_pipe"; then
8494  lt_cv_sys_global_symbol_to_cdecl=
8495fi
8496if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8497  echo "$as_me:$LINENO: result: failed" >&5
8498echo "${ECHO_T}failed" >&6
8499else
8500  echo "$as_me:$LINENO: result: ok" >&5
8501echo "${ECHO_T}ok" >&6
8502fi
8503
8504echo "$as_me:$LINENO: checking for objdir" >&5
8505echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8506if test "${lt_cv_objdir+set}" = set; then
8507  echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509  rm -f .libs 2>/dev/null
8510mkdir .libs 2>/dev/null
8511if test -d .libs; then
8512  lt_cv_objdir=.libs
8513else
8514  # MS-DOS does not allow filenames that begin with a dot.
8515  lt_cv_objdir=_libs
8516fi
8517rmdir .libs 2>/dev/null
8518fi
8519echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8520echo "${ECHO_T}$lt_cv_objdir" >&6
8521objdir=$lt_cv_objdir
8522
8523
8524
8525
8526
8527case $host_os in
8528aix3*)
8529  # AIX sometimes has problems with the GCC collect2 program.  For some
8530  # reason, if we set the COLLECT_NAMES environment variable, the problems
8531  # vanish in a puff of smoke.
8532  if test "X${COLLECT_NAMES+set}" != Xset; then
8533    COLLECT_NAMES=
8534    export COLLECT_NAMES
8535  fi
8536  ;;
8537esac
8538
8539# Sed substitution that helps us do robust quoting.  It backslashifies
8540# metacharacters that are still active within double-quoted strings.
8541Xsed='sed -e 1s/^X//'
8542sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8543
8544# Same as above, but do not quote variable references.
8545double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8546
8547# Sed substitution to delay expansion of an escaped shell variable in a
8548# double_quote_subst'ed string.
8549delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8550
8551# Sed substitution to avoid accidental globbing in evaled expressions
8552no_glob_subst='s/\*/\\\*/g'
8553
8554# Constants:
8555rm="rm -f"
8556
8557# Global variables:
8558default_ofile=libtool
8559can_build_shared=yes
8560
8561# All known linkers require a `.a' archive for static linking (except MSVC,
8562# which needs '.lib').
8563libext=a
8564ltmain="$ac_aux_dir/ltmain.sh"
8565ofile="$default_ofile"
8566with_gnu_ld="$lt_cv_prog_gnu_ld"
8567
8568if test -n "$ac_tool_prefix"; then
8569  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8570set dummy ${ac_tool_prefix}ar; ac_word=$2
8571echo "$as_me:$LINENO: checking for $ac_word" >&5
8572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8573if test "${ac_cv_prog_AR+set}" = set; then
8574  echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576  if test -n "$AR"; then
8577  ac_cv_prog_AR="$AR" # Let the user override the test.
8578else
8579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580for as_dir in $PATH
8581do
8582  IFS=$as_save_IFS
8583  test -z "$as_dir" && as_dir=.
8584  for ac_exec_ext in '' $ac_executable_extensions; do
8585  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8586    ac_cv_prog_AR="${ac_tool_prefix}ar"
8587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8588    break 2
8589  fi
8590done
8591done
8592
8593fi
8594fi
8595AR=$ac_cv_prog_AR
8596if test -n "$AR"; then
8597  echo "$as_me:$LINENO: result: $AR" >&5
8598echo "${ECHO_T}$AR" >&6
8599else
8600  echo "$as_me:$LINENO: result: no" >&5
8601echo "${ECHO_T}no" >&6
8602fi
8603
8604fi
8605if test -z "$ac_cv_prog_AR"; then
8606  ac_ct_AR=$AR
8607  # Extract the first word of "ar", so it can be a program name with args.
8608set dummy ar; ac_word=$2
8609echo "$as_me:$LINENO: checking for $ac_word" >&5
8610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8611if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8612  echo $ECHO_N "(cached) $ECHO_C" >&6
8613else
8614  if test -n "$ac_ct_AR"; then
8615  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8616else
8617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618for as_dir in $PATH
8619do
8620  IFS=$as_save_IFS
8621  test -z "$as_dir" && as_dir=.
8622  for ac_exec_ext in '' $ac_executable_extensions; do
8623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8624    ac_cv_prog_ac_ct_AR="ar"
8625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626    break 2
8627  fi
8628done
8629done
8630
8631  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8632fi
8633fi
8634ac_ct_AR=$ac_cv_prog_ac_ct_AR
8635if test -n "$ac_ct_AR"; then
8636  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8637echo "${ECHO_T}$ac_ct_AR" >&6
8638else
8639  echo "$as_me:$LINENO: result: no" >&5
8640echo "${ECHO_T}no" >&6
8641fi
8642
8643  AR=$ac_ct_AR
8644else
8645  AR="$ac_cv_prog_AR"
8646fi
8647
8648if test -n "$ac_tool_prefix"; then
8649  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8650set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8651echo "$as_me:$LINENO: checking for $ac_word" >&5
8652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8653if test "${ac_cv_prog_RANLIB+set}" = set; then
8654  echo $ECHO_N "(cached) $ECHO_C" >&6
8655else
8656  if test -n "$RANLIB"; then
8657  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8658else
8659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662  IFS=$as_save_IFS
8663  test -z "$as_dir" && as_dir=.
8664  for ac_exec_ext in '' $ac_executable_extensions; do
8665  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8668    break 2
8669  fi
8670done
8671done
8672
8673fi
8674fi
8675RANLIB=$ac_cv_prog_RANLIB
8676if test -n "$RANLIB"; then
8677  echo "$as_me:$LINENO: result: $RANLIB" >&5
8678echo "${ECHO_T}$RANLIB" >&6
8679else
8680  echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6
8682fi
8683
8684fi
8685if test -z "$ac_cv_prog_RANLIB"; then
8686  ac_ct_RANLIB=$RANLIB
8687  # Extract the first word of "ranlib", so it can be a program name with args.
8688set dummy ranlib; ac_word=$2
8689echo "$as_me:$LINENO: checking for $ac_word" >&5
8690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8691if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8692  echo $ECHO_N "(cached) $ECHO_C" >&6
8693else
8694  if test -n "$ac_ct_RANLIB"; then
8695  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8696else
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700  IFS=$as_save_IFS
8701  test -z "$as_dir" && as_dir=.
8702  for ac_exec_ext in '' $ac_executable_extensions; do
8703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704    ac_cv_prog_ac_ct_RANLIB="ranlib"
8705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8706    break 2
8707  fi
8708done
8709done
8710
8711  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8712fi
8713fi
8714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8715if test -n "$ac_ct_RANLIB"; then
8716  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8717echo "${ECHO_T}$ac_ct_RANLIB" >&6
8718else
8719  echo "$as_me:$LINENO: result: no" >&5
8720echo "${ECHO_T}no" >&6
8721fi
8722
8723  RANLIB=$ac_ct_RANLIB
8724else
8725  RANLIB="$ac_cv_prog_RANLIB"
8726fi
8727
8728if test -n "$ac_tool_prefix"; then
8729  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8730set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
8734  echo $ECHO_N "(cached) $ECHO_C" >&6
8735else
8736  if test -n "$STRIP"; then
8737  ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
8747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748    break 2
8749  fi
8750done
8751done
8752
8753fi
8754fi
8755STRIP=$ac_cv_prog_STRIP
8756if test -n "$STRIP"; then
8757  echo "$as_me:$LINENO: result: $STRIP" >&5
8758echo "${ECHO_T}$STRIP" >&6
8759else
8760  echo "$as_me:$LINENO: result: no" >&5
8761echo "${ECHO_T}no" >&6
8762fi
8763
8764fi
8765if test -z "$ac_cv_prog_STRIP"; then
8766  ac_ct_STRIP=$STRIP
8767  # Extract the first word of "strip", so it can be a program name with args.
8768set dummy strip; ac_word=$2
8769echo "$as_me:$LINENO: checking for $ac_word" >&5
8770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8771if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8772  echo $ECHO_N "(cached) $ECHO_C" >&6
8773else
8774  if test -n "$ac_ct_STRIP"; then
8775  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8776else
8777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778for as_dir in $PATH
8779do
8780  IFS=$as_save_IFS
8781  test -z "$as_dir" && as_dir=.
8782  for ac_exec_ext in '' $ac_executable_extensions; do
8783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8784    ac_cv_prog_ac_ct_STRIP="strip"
8785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8786    break 2
8787  fi
8788done
8789done
8790
8791  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8792fi
8793fi
8794ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8795if test -n "$ac_ct_STRIP"; then
8796  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8797echo "${ECHO_T}$ac_ct_STRIP" >&6
8798else
8799  echo "$as_me:$LINENO: result: no" >&5
8800echo "${ECHO_T}no" >&6
8801fi
8802
8803  STRIP=$ac_ct_STRIP
8804else
8805  STRIP="$ac_cv_prog_STRIP"
8806fi
8807
8808
8809old_CC="$CC"
8810old_CFLAGS="$CFLAGS"
8811
8812# Set sane defaults for various variables
8813test -z "$AR" && AR=ar
8814test -z "$AR_FLAGS" && AR_FLAGS=cru
8815test -z "$AS" && AS=as
8816test -z "$CC" && CC=cc
8817test -z "$LTCC" && LTCC=$CC
8818test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8819test -z "$DLLTOOL" && DLLTOOL=dlltool
8820test -z "$LD" && LD=ld
8821test -z "$LN_S" && LN_S="ln -s"
8822test -z "$MAGIC_CMD" && MAGIC_CMD=file
8823test -z "$NM" && NM=nm
8824test -z "$SED" && SED=sed
8825test -z "$OBJDUMP" && OBJDUMP=objdump
8826test -z "$RANLIB" && RANLIB=:
8827test -z "$STRIP" && STRIP=:
8828test -z "$ac_objext" && ac_objext=o
8829
8830# Determine commands to create old-style static archives.
8831old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8832old_postinstall_cmds='chmod 644 $oldlib'
8833old_postuninstall_cmds=
8834
8835if test -n "$RANLIB"; then
8836  case $host_os in
8837  openbsd*)
8838    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8839    ;;
8840  *)
8841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8842    ;;
8843  esac
8844  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8845fi
8846
8847for cc_temp in $compiler""; do
8848  case $cc_temp in
8849    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8850    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8851    \-*) ;;
8852    *) break;;
8853  esac
8854done
8855cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8856
8857
8858# Only perform the check for file, if the check method requires it
8859case $deplibs_check_method in
8860file_magic*)
8861  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8862    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8863echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8864if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8865  echo $ECHO_N "(cached) $ECHO_C" >&6
8866else
8867  case $MAGIC_CMD in
8868[\\/*] |  ?:[\\/]*)
8869  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8870  ;;
8871*)
8872  lt_save_MAGIC_CMD="$MAGIC_CMD"
8873  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8874  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8875  for ac_dir in $ac_dummy; do
8876    IFS="$lt_save_ifs"
8877    test -z "$ac_dir" && ac_dir=.
8878    if test -f $ac_dir/${ac_tool_prefix}file; then
8879      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8880      if test -n "$file_magic_test_file"; then
8881        case $deplibs_check_method in
8882        "file_magic "*)
8883          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8884          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8885          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8886            $EGREP "$file_magic_regex" > /dev/null; then
8887            :
8888          else
8889            cat <<EOF 1>&2
8890
8891*** Warning: the command libtool uses to detect shared libraries,
8892*** $file_magic_cmd, produces output that libtool cannot recognize.
8893*** The result is that libtool may fail to recognize shared libraries
8894*** as such.  This will affect the creation of libtool libraries that
8895*** depend on shared libraries, but programs linked with such libtool
8896*** libraries will work regardless of this problem.  Nevertheless, you
8897*** may want to report the problem to your system manager and/or to
8898*** bug-libtool@gnu.org
8899
8900EOF
8901          fi ;;
8902        esac
8903      fi
8904      break
8905    fi
8906  done
8907  IFS="$lt_save_ifs"
8908  MAGIC_CMD="$lt_save_MAGIC_CMD"
8909  ;;
8910esac
8911fi
8912
8913MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914if test -n "$MAGIC_CMD"; then
8915  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8916echo "${ECHO_T}$MAGIC_CMD" >&6
8917else
8918  echo "$as_me:$LINENO: result: no" >&5
8919echo "${ECHO_T}no" >&6
8920fi
8921
8922if test -z "$lt_cv_path_MAGIC_CMD"; then
8923  if test -n "$ac_tool_prefix"; then
8924    echo "$as_me:$LINENO: checking for file" >&5
8925echo $ECHO_N "checking for file... $ECHO_C" >&6
8926if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8927  echo $ECHO_N "(cached) $ECHO_C" >&6
8928else
8929  case $MAGIC_CMD in
8930[\\/*] |  ?:[\\/]*)
8931  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8932  ;;
8933*)
8934  lt_save_MAGIC_CMD="$MAGIC_CMD"
8935  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8936  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8937  for ac_dir in $ac_dummy; do
8938    IFS="$lt_save_ifs"
8939    test -z "$ac_dir" && ac_dir=.
8940    if test -f $ac_dir/file; then
8941      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8942      if test -n "$file_magic_test_file"; then
8943        case $deplibs_check_method in
8944        "file_magic "*)
8945          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8946          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8947          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8948            $EGREP "$file_magic_regex" > /dev/null; then
8949            :
8950          else
8951            cat <<EOF 1>&2
8952
8953*** Warning: the command libtool uses to detect shared libraries,
8954*** $file_magic_cmd, produces output that libtool cannot recognize.
8955*** The result is that libtool may fail to recognize shared libraries
8956*** as such.  This will affect the creation of libtool libraries that
8957*** depend on shared libraries, but programs linked with such libtool
8958*** libraries will work regardless of this problem.  Nevertheless, you
8959*** may want to report the problem to your system manager and/or to
8960*** bug-libtool@gnu.org
8961
8962EOF
8963          fi ;;
8964        esac
8965      fi
8966      break
8967    fi
8968  done
8969  IFS="$lt_save_ifs"
8970  MAGIC_CMD="$lt_save_MAGIC_CMD"
8971  ;;
8972esac
8973fi
8974
8975MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8976if test -n "$MAGIC_CMD"; then
8977  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8978echo "${ECHO_T}$MAGIC_CMD" >&6
8979else
8980  echo "$as_me:$LINENO: result: no" >&5
8981echo "${ECHO_T}no" >&6
8982fi
8983
8984  else
8985    MAGIC_CMD=:
8986  fi
8987fi
8988
8989  fi
8990  ;;
8991esac
8992
8993enable_dlopen=no
8994enable_win32_dll=no
8995
8996# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8997if test "${enable_libtool_lock+set}" = set; then
8998  enableval="$enable_libtool_lock"
8999
9000fi;
9001test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9002
9003
9004# Check whether --with-pic or --without-pic was given.
9005if test "${with_pic+set}" = set; then
9006  withval="$with_pic"
9007  pic_mode="$withval"
9008else
9009  pic_mode=default
9010fi;
9011test -z "$pic_mode" && pic_mode=default
9012
9013# Use C for the default configuration in the libtool script
9014tagname=
9015lt_save_CC="$CC"
9016ac_ext=c
9017ac_cpp='$CPP $CPPFLAGS'
9018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9020ac_compiler_gnu=$ac_cv_c_compiler_gnu
9021
9022
9023# Source file extension for C test sources.
9024ac_ext=c
9025
9026# Object file extension for compiled C test sources.
9027objext=o
9028objext=$objext
9029
9030# Code to be used in simple compile tests
9031lt_simple_compile_test_code="int some_variable = 0;\n"
9032
9033# Code to be used in simple link tests
9034lt_simple_link_test_code='int main(){return(0);}\n'
9035
9036
9037# If no C compiler was specified, use CC.
9038LTCC=${LTCC-"$CC"}
9039
9040# If no C compiler flags were specified, use CFLAGS.
9041LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9042
9043# Allow CC to be a program name with arguments.
9044compiler=$CC
9045
9046
9047# save warnings/boilerplate of simple test code
9048ac_outfile=conftest.$ac_objext
9049printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9050eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9051_lt_compiler_boilerplate=`cat conftest.err`
9052$rm conftest*
9053
9054ac_outfile=conftest.$ac_objext
9055printf "$lt_simple_link_test_code" >conftest.$ac_ext
9056eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9057_lt_linker_boilerplate=`cat conftest.err`
9058$rm conftest*
9059
9060
9061## CAVEAT EMPTOR:
9062## There is no encapsulation within the following macros, do not change
9063## the running order or otherwise move them around unless you know exactly
9064## what you are doing...
9065
9066lt_prog_compiler_no_builtin_flag=
9067
9068if test "$GCC" = yes; then
9069  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9070
9071
9072echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9073echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9074if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9075  echo $ECHO_N "(cached) $ECHO_C" >&6
9076else
9077  lt_cv_prog_compiler_rtti_exceptions=no
9078  ac_outfile=conftest.$ac_objext
9079   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9080   lt_compiler_flag="-fno-rtti -fno-exceptions"
9081   # Insert the option either (1) after the last *FLAGS variable, or
9082   # (2) before a word containing "conftest.", or (3) at the end.
9083   # Note that $ac_compile itself does not contain backslashes and begins
9084   # with a dollar sign (not a hyphen), so the echo should work correctly.
9085   # The option is referenced via a variable to avoid confusing sed.
9086   lt_compile=`echo "$ac_compile" | $SED \
9087   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089   -e 's:$: $lt_compiler_flag:'`
9090   (eval echo "\"\$as_me:9090: $lt_compile\"" >&5)
9091   (eval "$lt_compile" 2>conftest.err)
9092   ac_status=$?
9093   cat conftest.err >&5
9094   echo "$as_me:9094: \$? = $ac_status" >&5
9095   if (exit $ac_status) && test -s "$ac_outfile"; then
9096     # The compiler can only warn and ignore the option if not recognized
9097     # So say no if there are warnings other than the usual output.
9098     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9099     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9101       lt_cv_prog_compiler_rtti_exceptions=yes
9102     fi
9103   fi
9104   $rm conftest*
9105
9106fi
9107echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9108echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9109
9110if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9111    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9112else
9113    :
9114fi
9115
9116fi
9117
9118lt_prog_compiler_wl=
9119lt_prog_compiler_pic=
9120lt_prog_compiler_static=
9121
9122echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9123echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9124
9125  if test "$GCC" = yes; then
9126    lt_prog_compiler_wl='-Wl,'
9127    lt_prog_compiler_static='-static'
9128
9129    case $host_os in
9130      aix*)
9131      # All AIX code is PIC.
9132      if test "$host_cpu" = ia64; then
9133        # AIX 5 now supports IA64 processor
9134        lt_prog_compiler_static='-Bstatic'
9135      fi
9136      ;;
9137
9138    amigaos*)
9139      # FIXME: we need at least 68020 code to build shared libraries, but
9140      # adding the `-m68020' flag to GCC prevents building anything better,
9141      # like `-m68040'.
9142      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9143      ;;
9144
9145    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9146      # PIC is the default for these OSes.
9147      ;;
9148
9149    mingw* | pw32* | os2*)
9150      # This hack is so that the source file can tell whether it is being
9151      # built for inclusion in a dll (and should export symbols for example).
9152      lt_prog_compiler_pic='-DDLL_EXPORT'
9153      ;;
9154
9155    darwin* | rhapsody*)
9156      # PIC is the default on this platform
9157      # Common symbols not allowed in MH_DYLIB files
9158      lt_prog_compiler_pic='-fno-common'
9159      ;;
9160
9161    interix3*)
9162      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9163      # Instead, we relocate shared libraries at runtime.
9164      ;;
9165
9166    msdosdjgpp*)
9167      # Just because we use GCC doesn't mean we suddenly get shared libraries
9168      # on systems that don't support them.
9169      lt_prog_compiler_can_build_shared=no
9170      enable_shared=no
9171      ;;
9172
9173    sysv4*MP*)
9174      if test -d /usr/nec; then
9175        lt_prog_compiler_pic=-Kconform_pic
9176      fi
9177      ;;
9178
9179    hpux*)
9180      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9181      # not for PA HP-UX.
9182      case $host_cpu in
9183      hppa*64*|ia64*)
9184        # +Z the default
9185        ;;
9186      *)
9187        lt_prog_compiler_pic='-fPIC'
9188        ;;
9189      esac
9190      ;;
9191
9192    *)
9193      lt_prog_compiler_pic='-fPIC'
9194      ;;
9195    esac
9196  else
9197    # PORTME Check for flag to pass linker flags through the system compiler.
9198    case $host_os in
9199    aix*)
9200      lt_prog_compiler_wl='-Wl,'
9201      if test "$host_cpu" = ia64; then
9202        # AIX 5 now supports IA64 processor
9203        lt_prog_compiler_static='-Bstatic'
9204      else
9205        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9206      fi
9207      ;;
9208      darwin*)
9209        # PIC is the default on this platform
9210        # Common symbols not allowed in MH_DYLIB files
9211       case $cc_basename in
9212         xlc*)
9213         lt_prog_compiler_pic='-qnocommon'
9214         lt_prog_compiler_wl='-Wl,'
9215         ;;
9216       esac
9217       ;;
9218
9219    mingw* | pw32* | os2*)
9220      # This hack is so that the source file can tell whether it is being
9221      # built for inclusion in a dll (and should export symbols for example).
9222      lt_prog_compiler_pic='-DDLL_EXPORT'
9223      ;;
9224
9225    hpux9* | hpux10* | hpux11*)
9226      lt_prog_compiler_wl='-Wl,'
9227      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9228      # not for PA HP-UX.
9229      case $host_cpu in
9230      hppa*64*|ia64*)
9231        # +Z the default
9232        ;;
9233      *)
9234        lt_prog_compiler_pic='+Z'
9235        ;;
9236      esac
9237      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9238      lt_prog_compiler_static='${wl}-a ${wl}archive'
9239      ;;
9240
9241    irix5* | irix6* | nonstopux*)
9242      lt_prog_compiler_wl='-Wl,'
9243      # PIC (with -KPIC) is the default.
9244      lt_prog_compiler_static='-non_shared'
9245      ;;
9246
9247    newsos6)
9248      lt_prog_compiler_pic='-KPIC'
9249      lt_prog_compiler_static='-Bstatic'
9250      ;;
9251
9252    linux*)
9253      case $cc_basename in
9254      icc* | ecc*)
9255        lt_prog_compiler_wl='-Wl,'
9256        lt_prog_compiler_pic='-KPIC'
9257        lt_prog_compiler_static='-static'
9258        ;;
9259      pgcc* | pgf77* | pgf90* | pgf95*)
9260        # Portland Group compilers (*not* the Pentium gcc compiler,
9261        # which looks to be a dead project)
9262        lt_prog_compiler_wl='-Wl,'
9263        lt_prog_compiler_pic='-fpic'
9264        lt_prog_compiler_static='-Bstatic'
9265        ;;
9266      ccc*)
9267        lt_prog_compiler_wl='-Wl,'
9268        # All Alpha code is PIC.
9269        lt_prog_compiler_static='-non_shared'
9270        ;;
9271      esac
9272      ;;
9273
9274    osf3* | osf4* | osf5*)
9275      lt_prog_compiler_wl='-Wl,'
9276      # All OSF/1 code is PIC.
9277      lt_prog_compiler_static='-non_shared'
9278      ;;
9279
9280    solaris*)
9281      lt_prog_compiler_pic='-KPIC'
9282      lt_prog_compiler_static='-Bstatic'
9283      case $cc_basename in
9284      f77* | f90* | f95*)
9285        lt_prog_compiler_wl='-Qoption ld ';;
9286      *)
9287        lt_prog_compiler_wl='-Wl,';;
9288      esac
9289      ;;
9290
9291    sunos4*)
9292      lt_prog_compiler_wl='-Qoption ld '
9293      lt_prog_compiler_pic='-PIC'
9294      lt_prog_compiler_static='-Bstatic'
9295      ;;
9296
9297    sysv4 | sysv4.2uw2* | sysv4.3*)
9298      lt_prog_compiler_wl='-Wl,'
9299      lt_prog_compiler_pic='-KPIC'
9300      lt_prog_compiler_static='-Bstatic'
9301      ;;
9302
9303    sysv4*MP*)
9304      if test -d /usr/nec ;then
9305        lt_prog_compiler_pic='-Kconform_pic'
9306        lt_prog_compiler_static='-Bstatic'
9307      fi
9308      ;;
9309
9310    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9311      lt_prog_compiler_wl='-Wl,'
9312      lt_prog_compiler_pic='-KPIC'
9313      lt_prog_compiler_static='-Bstatic'
9314      ;;
9315
9316    unicos*)
9317      lt_prog_compiler_wl='-Wl,'
9318      lt_prog_compiler_can_build_shared=no
9319      ;;
9320
9321    uts4*)
9322      lt_prog_compiler_pic='-pic'
9323      lt_prog_compiler_static='-Bstatic'
9324      ;;
9325
9326    *)
9327      lt_prog_compiler_can_build_shared=no
9328      ;;
9329    esac
9330  fi
9331
9332echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9333echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9334
9335#
9336# Check to make sure the PIC flag actually works.
9337#
9338if test -n "$lt_prog_compiler_pic"; then
9339
9340echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9341echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9342if test "${lt_prog_compiler_pic_works+set}" = set; then
9343  echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345  lt_prog_compiler_pic_works=no
9346  ac_outfile=conftest.$ac_objext
9347   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9348   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9349   # Insert the option either (1) after the last *FLAGS variable, or
9350   # (2) before a word containing "conftest.", or (3) at the end.
9351   # Note that $ac_compile itself does not contain backslashes and begins
9352   # with a dollar sign (not a hyphen), so the echo should work correctly.
9353   # The option is referenced via a variable to avoid confusing sed.
9354   lt_compile=`echo "$ac_compile" | $SED \
9355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9357   -e 's:$: $lt_compiler_flag:'`
9358   (eval echo "\"\$as_me:9358: $lt_compile\"" >&5)
9359   (eval "$lt_compile" 2>conftest.err)
9360   ac_status=$?
9361   cat conftest.err >&5
9362   echo "$as_me:9362: \$? = $ac_status" >&5
9363   if (exit $ac_status) && test -s "$ac_outfile"; then
9364     # The compiler can only warn and ignore the option if not recognized
9365     # So say no if there are warnings other than the usual output.
9366     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9367     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9368     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9369       lt_prog_compiler_pic_works=yes
9370     fi
9371   fi
9372   $rm conftest*
9373
9374fi
9375echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9376echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9377
9378if test x"$lt_prog_compiler_pic_works" = xyes; then
9379    case $lt_prog_compiler_pic in
9380     "" | " "*) ;;
9381     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9382     esac
9383else
9384    lt_prog_compiler_pic=
9385     lt_prog_compiler_can_build_shared=no
9386fi
9387
9388fi
9389case $host_os in
9390  # For platforms which do not support PIC, -DPIC is meaningless:
9391  *djgpp*)
9392    lt_prog_compiler_pic=
9393    ;;
9394  *)
9395    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9396    ;;
9397esac
9398
9399#
9400# Check to make sure the static flag actually works.
9401#
9402wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9403echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9404echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9405if test "${lt_prog_compiler_static_works+set}" = set; then
9406  echo $ECHO_N "(cached) $ECHO_C" >&6
9407else
9408  lt_prog_compiler_static_works=no
9409   save_LDFLAGS="$LDFLAGS"
9410   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9411   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9412   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9413     # The linker can only warn and ignore the option if not recognized
9414     # So say no if there are warnings
9415     if test -s conftest.err; then
9416       # Append any errors to the config.log.
9417       cat conftest.err 1>&5
9418       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9419       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9420       if diff conftest.exp conftest.er2 >/dev/null; then
9421         lt_prog_compiler_static_works=yes
9422       fi
9423     else
9424       lt_prog_compiler_static_works=yes
9425     fi
9426   fi
9427   $rm conftest*
9428   LDFLAGS="$save_LDFLAGS"
9429
9430fi
9431echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9432echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9433
9434if test x"$lt_prog_compiler_static_works" = xyes; then
9435    :
9436else
9437    lt_prog_compiler_static=
9438fi
9439
9440
9441echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9442echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9443if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9444  echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446  lt_cv_prog_compiler_c_o=no
9447   $rm -r conftest 2>/dev/null
9448   mkdir conftest
9449   cd conftest
9450   mkdir out
9451   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9452
9453   lt_compiler_flag="-o out/conftest2.$ac_objext"
9454   # Insert the option either (1) after the last *FLAGS variable, or
9455   # (2) before a word containing "conftest.", or (3) at the end.
9456   # Note that $ac_compile itself does not contain backslashes and begins
9457   # with a dollar sign (not a hyphen), so the echo should work correctly.
9458   lt_compile=`echo "$ac_compile" | $SED \
9459   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9460   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9461   -e 's:$: $lt_compiler_flag:'`
9462   (eval echo "\"\$as_me:9462: $lt_compile\"" >&5)
9463   (eval "$lt_compile" 2>out/conftest.err)
9464   ac_status=$?
9465   cat out/conftest.err >&5
9466   echo "$as_me:9466: \$? = $ac_status" >&5
9467   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9468   then
9469     # The compiler can only warn and ignore the option if not recognized
9470     # So say no if there are warnings
9471     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9472     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9473     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9474       lt_cv_prog_compiler_c_o=yes
9475     fi
9476   fi
9477   chmod u+w . 2>&5
9478   $rm conftest*
9479   # SGI C++ compiler will create directory out/ii_files/ for
9480   # template instantiation
9481   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9482   $rm out/* && rmdir out
9483   cd ..
9484   rmdir conftest
9485   $rm conftest*
9486
9487fi
9488echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9489echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9490
9491
9492hard_links="nottested"
9493if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9494  # do not overwrite the value of need_locks provided by the user
9495  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9496echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9497  hard_links=yes
9498  $rm conftest*
9499  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9500  touch conftest.a
9501  ln conftest.a conftest.b 2>&5 || hard_links=no
9502  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9503  echo "$as_me:$LINENO: result: $hard_links" >&5
9504echo "${ECHO_T}$hard_links" >&6
9505  if test "$hard_links" = no; then
9506    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9507echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9508    need_locks=warn
9509  fi
9510else
9511  need_locks=no
9512fi
9513
9514echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9515echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9516
9517  runpath_var=
9518  allow_undefined_flag=
9519  enable_shared_with_static_runtimes=no
9520  archive_cmds=
9521  archive_expsym_cmds=
9522  old_archive_From_new_cmds=
9523  old_archive_from_expsyms_cmds=
9524  export_dynamic_flag_spec=
9525  whole_archive_flag_spec=
9526  thread_safe_flag_spec=
9527  hardcode_libdir_flag_spec=
9528  hardcode_libdir_flag_spec_ld=
9529  hardcode_libdir_separator=
9530  hardcode_direct=no
9531  hardcode_minus_L=no
9532  hardcode_shlibpath_var=unsupported
9533  link_all_deplibs=unknown
9534  hardcode_automatic=no
9535  module_cmds=
9536  module_expsym_cmds=
9537  always_export_symbols=no
9538  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9539  # include_expsyms should be a list of space-separated symbols to be *always*
9540  # included in the symbol list
9541  include_expsyms=
9542  # exclude_expsyms can be an extended regexp of symbols to exclude
9543  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9544  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9545  # as well as any symbol that contains `d'.
9546  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9547  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9548  # platforms (ab)use it in PIC code, but their linkers get confused if
9549  # the symbol is explicitly referenced.  Since portable code cannot
9550  # rely on this symbol name, it's probably fine to never include it in
9551  # preloaded symbol tables.
9552  extract_expsyms_cmds=
9553  # Just being paranoid about ensuring that cc_basename is set.
9554  for cc_temp in $compiler""; do
9555  case $cc_temp in
9556    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9557    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9558    \-*) ;;
9559    *) break;;
9560  esac
9561done
9562cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9563
9564  case $host_os in
9565  cygwin* | mingw* | pw32*)
9566    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9567    # When not using gcc, we currently assume that we are using
9568    # Microsoft Visual C++.
9569    if test "$GCC" != yes; then
9570      with_gnu_ld=no
9571    fi
9572    ;;
9573  interix*)
9574    # we just hope/assume this is gcc and not c89 (= MSVC++)
9575    with_gnu_ld=yes
9576    ;;
9577  openbsd*)
9578    with_gnu_ld=no
9579    ;;
9580  esac
9581
9582  ld_shlibs=yes
9583  if test "$with_gnu_ld" = yes; then
9584    # If archive_cmds runs LD, not CC, wlarc should be empty
9585    wlarc='${wl}'
9586
9587    # Set some defaults for GNU ld with shared library support. These
9588    # are reset later if shared libraries are not supported. Putting them
9589    # here allows them to be overridden if necessary.
9590    runpath_var=LD_RUN_PATH
9591    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9592    export_dynamic_flag_spec='${wl}--export-dynamic'
9593    # ancient GNU ld didn't support --whole-archive et. al.
9594    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9595        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9596      else
9597        whole_archive_flag_spec=
9598    fi
9599    supports_anon_versioning=no
9600    case `$LD -v 2>/dev/null` in
9601      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9602      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9603      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9604      *\ 2.11.*) ;; # other 2.11 versions
9605      *) supports_anon_versioning=yes ;;
9606    esac
9607
9608    # See if GNU ld supports shared libraries.
9609    case $host_os in
9610    aix3* | aix4* | aix5*)
9611      # On AIX/PPC, the GNU linker is very broken
9612      if test "$host_cpu" != ia64; then
9613        ld_shlibs=no
9614        cat <<EOF 1>&2
9615
9616*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9617*** to be unable to reliably create shared libraries on AIX.
9618*** Therefore, libtool is disabling shared libraries support.  If you
9619*** really care for shared libraries, you may want to modify your PATH
9620*** so that a non-GNU linker is found, and then restart.
9621
9622EOF
9623      fi
9624      ;;
9625
9626    amigaos*)
9627      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)'
9628      hardcode_libdir_flag_spec='-L$libdir'
9629      hardcode_minus_L=yes
9630
9631      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9632      # that the semantics of dynamic libraries on AmigaOS, at least up
9633      # to version 4, is to share data among multiple programs linked
9634      # with the same dynamic library.  Since this doesn't match the
9635      # behavior of shared libraries on other platforms, we can't use
9636      # them.
9637      ld_shlibs=no
9638      ;;
9639
9640    beos*)
9641      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9642        allow_undefined_flag=unsupported
9643        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9644        # support --undefined.  This deserves some investigation.  FIXME
9645        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646      else
9647        ld_shlibs=no
9648      fi
9649      ;;
9650
9651    cygwin* | mingw* | pw32*)
9652      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9653      # as there is no search path for DLLs.
9654      hardcode_libdir_flag_spec='-L$libdir'
9655      allow_undefined_flag=unsupported
9656      always_export_symbols=no
9657      enable_shared_with_static_runtimes=yes
9658      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9659
9660      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9661        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9662        # If the export-symbols file already is a .def file (1st line
9663        # is EXPORTS), use it as is; otherwise, prepend...
9664        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9665          cp $export_symbols $output_objdir/$soname.def;
9666        else
9667          echo EXPORTS > $output_objdir/$soname.def;
9668          cat $export_symbols >> $output_objdir/$soname.def;
9669        fi~
9670        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9671      else
9672        ld_shlibs=no
9673      fi
9674      ;;
9675
9676    interix3*)
9677      hardcode_direct=no
9678      hardcode_shlibpath_var=no
9679      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9680      export_dynamic_flag_spec='${wl}-E'
9681      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9682      # Instead, shared libraries are loaded at an image base (0x10000000 by
9683      # default) and relocated if they conflict, which is a slow very memory
9684      # consuming and fragmenting process.  To avoid this, we pick a random,
9685      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9686      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9687      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9688      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'
9689      ;;
9690
9691    linux*)
9692      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9693        tmp_addflag=
9694        case $cc_basename,$host_cpu in
9695        pgcc*)                          # Portland Group C compiler
9696          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'
9697          tmp_addflag=' $pic_flag'
9698          ;;
9699        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9700          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'
9701          tmp_addflag=' $pic_flag -Mnomain' ;;
9702        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9703          tmp_addflag=' -i_dynamic' ;;
9704        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9705          tmp_addflag=' -i_dynamic -nofor_main' ;;
9706        ifc* | ifort*)                  # Intel Fortran compiler
9707          tmp_addflag=' -nofor_main' ;;
9708        esac
9709        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710
9711        if test $supports_anon_versioning = yes; then
9712          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9713  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9714  $echo "local: *; };" >> $output_objdir/$libname.ver~
9715          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9716        fi
9717      else
9718        ld_shlibs=no
9719      fi
9720      ;;
9721
9722    netbsd*)
9723      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9724        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9725        wlarc=
9726      else
9727        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9729      fi
9730      ;;
9731
9732    solaris*)
9733      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9734        ld_shlibs=no
9735        cat <<EOF 1>&2
9736
9737*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9738*** create shared libraries on Solaris systems.  Therefore, libtool
9739*** is disabling shared libraries support.  We urge you to upgrade GNU
9740*** binutils to release 2.9.1 or newer.  Another option is to modify
9741*** your PATH or compiler configuration so that the native linker is
9742*** used, and then restart.
9743
9744EOF
9745      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9746        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9748      else
9749        ld_shlibs=no
9750      fi
9751      ;;
9752
9753    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9754      case `$LD -v 2>&1` in
9755        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9756        ld_shlibs=no
9757        cat <<_LT_EOF 1>&2
9758
9759*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9760*** reliably create shared libraries on SCO systems.  Therefore, libtool
9761*** is disabling shared libraries support.  We urge you to upgrade GNU
9762*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9763*** your PATH or compiler configuration so that the native linker is
9764*** used, and then restart.
9765
9766_LT_EOF
9767        ;;
9768        *)
9769          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9770            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9771            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9772            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9773          else
9774            ld_shlibs=no
9775          fi
9776        ;;
9777      esac
9778      ;;
9779
9780    sunos4*)
9781      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9782      wlarc=
9783      hardcode_direct=yes
9784      hardcode_shlibpath_var=no
9785      ;;
9786
9787    *)
9788      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9789        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9791      else
9792        ld_shlibs=no
9793      fi
9794      ;;
9795    esac
9796
9797    if test "$ld_shlibs" = no; then
9798      runpath_var=
9799      hardcode_libdir_flag_spec=
9800      export_dynamic_flag_spec=
9801      whole_archive_flag_spec=
9802    fi
9803  else
9804    # PORTME fill in a description of your system's linker (not GNU ld)
9805    case $host_os in
9806    aix3*)
9807      allow_undefined_flag=unsupported
9808      always_export_symbols=yes
9809      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'
9810      # Note: this linker hardcodes the directories in LIBPATH if there
9811      # are no directories specified by -L.
9812      hardcode_minus_L=yes
9813      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9814        # Neither direct hardcoding nor static linking is supported with a
9815        # broken collect2.
9816        hardcode_direct=unsupported
9817      fi
9818      ;;
9819
9820    aix4* | aix5*)
9821      if test "$host_cpu" = ia64; then
9822        # On IA64, the linker does run time linking by default, so we don't
9823        # have to do anything special.
9824        aix_use_runtimelinking=no
9825        exp_sym_flag='-Bexport'
9826        no_entry_flag=""
9827      else
9828        # If we're using GNU nm, then we don't want the "-C" option.
9829        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9830        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9831          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'
9832        else
9833          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'
9834        fi
9835        aix_use_runtimelinking=no
9836
9837        # Test if we are trying to use run time linking or normal
9838        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9839        # need to do runtime linking.
9840        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9841          for ld_flag in $LDFLAGS; do
9842          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9843            aix_use_runtimelinking=yes
9844            break
9845          fi
9846          done
9847          ;;
9848        esac
9849
9850        exp_sym_flag='-bexport'
9851        no_entry_flag='-bnoentry'
9852      fi
9853
9854      # When large executables or shared objects are built, AIX ld can
9855      # have problems creating the table of contents.  If linking a library
9856      # or program results in "error TOC overflow" add -mminimal-toc to
9857      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9858      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9859
9860      archive_cmds=''
9861      hardcode_direct=yes
9862      hardcode_libdir_separator=':'
9863      link_all_deplibs=yes
9864
9865      if test "$GCC" = yes; then
9866        case $host_os in aix4.[012]|aix4.[012].*)
9867        # We only want to do this on AIX 4.2 and lower, the check
9868        # below for broken collect2 doesn't work under 4.3+
9869          collect2name=`${CC} -print-prog-name=collect2`
9870          if test -f "$collect2name" && \
9871           strings "$collect2name" | grep resolve_lib_name >/dev/null
9872          then
9873          # We have reworked collect2
9874          hardcode_direct=yes
9875          else
9876          # We have old collect2
9877          hardcode_direct=unsupported
9878          # It fails to find uninstalled libraries when the uninstalled
9879          # path is not listed in the libpath.  Setting hardcode_minus_L
9880          # to unsupported forces relinking
9881          hardcode_minus_L=yes
9882          hardcode_libdir_flag_spec='-L$libdir'
9883          hardcode_libdir_separator=
9884          fi
9885          ;;
9886        esac
9887        shared_flag='-shared'
9888        if test "$aix_use_runtimelinking" = yes; then
9889          shared_flag="$shared_flag "'${wl}-G'
9890        fi
9891      else
9892        # not using gcc
9893        if test "$host_cpu" = ia64; then
9894        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9895        # chokes on -Wl,-G. The following line is correct:
9896          shared_flag='-G'
9897        else
9898          if test "$aix_use_runtimelinking" = yes; then
9899            shared_flag='${wl}-G'
9900          else
9901            shared_flag='${wl}-bM:SRE'
9902          fi
9903        fi
9904      fi
9905
9906      # It seems that -bexpall does not export symbols beginning with
9907      # underscore (_), so it is better to generate a list of symbols to export.
9908      always_export_symbols=yes
9909      if test "$aix_use_runtimelinking" = yes; then
9910        # Warning - without using the other runtime loading flags (-brtl),
9911        # -berok will link without error, but may produce a broken library.
9912        allow_undefined_flag='-berok'
9913       # Determine the default libpath from the value encoded in an empty executable.
9914       cat >conftest.$ac_ext <<_ACEOF
9915/* confdefs.h.  */
9916_ACEOF
9917cat confdefs.h >>conftest.$ac_ext
9918cat >>conftest.$ac_ext <<_ACEOF
9919/* end confdefs.h.  */
9920
9921#ifdef F77_DUMMY_MAIN
9922
9923#  ifdef __cplusplus
9924     extern "C"
9925#  endif
9926   int F77_DUMMY_MAIN() { return 1; }
9927
9928#endif
9929int
9930main ()
9931{
9932
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937rm -f conftest.$ac_objext conftest$ac_exeext
9938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939  (eval $ac_link) 2>conftest.er1
9940  ac_status=$?
9941  grep -v '^ *+' conftest.er1 >conftest.err
9942  rm -f conftest.er1
9943  cat conftest.err >&5
9944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945  (exit $ac_status); } &&
9946         { ac_try='test -z "$ac_c_werror_flag"
9947                         || test ! -s conftest.err'
9948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949  (eval $ac_try) 2>&5
9950  ac_status=$?
9951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952  (exit $ac_status); }; } &&
9953         { ac_try='test -s conftest$ac_exeext'
9954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955  (eval $ac_try) 2>&5
9956  ac_status=$?
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); }; }; then
9959
9960aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9961}'`
9962# Check for a 64-bit object if we didn't find anything.
9963if 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; }
9964}'`; fi
9965else
9966  echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969fi
9970rm -f conftest.err conftest.$ac_objext \
9971      conftest$ac_exeext conftest.$ac_ext
9972if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9973
9974       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9975        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"
9976       else
9977        if test "$host_cpu" = ia64; then
9978          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9979          allow_undefined_flag="-z nodefs"
9980          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"
9981        else
9982         # Determine the default libpath from the value encoded in an empty executable.
9983         cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h.  */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h.  */
9989
9990#ifdef F77_DUMMY_MAIN
9991
9992#  ifdef __cplusplus
9993     extern "C"
9994#  endif
9995   int F77_DUMMY_MAIN() { return 1; }
9996
9997#endif
9998int
9999main ()
10000{
10001
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006rm -f conftest.$ac_objext conftest$ac_exeext
10007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008  (eval $ac_link) 2>conftest.er1
10009  ac_status=$?
10010  grep -v '^ *+' conftest.er1 >conftest.err
10011  rm -f conftest.er1
10012  cat conftest.err >&5
10013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014  (exit $ac_status); } &&
10015         { ac_try='test -z "$ac_c_werror_flag"
10016                         || test ! -s conftest.err'
10017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018  (eval $ac_try) 2>&5
10019  ac_status=$?
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); }; } &&
10022         { ac_try='test -s conftest$ac_exeext'
10023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024  (eval $ac_try) 2>&5
10025  ac_status=$?
10026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); }; }; then
10028
10029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10030}'`
10031# Check for a 64-bit object if we didn't find anything.
10032if 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; }
10033}'`; fi
10034else
10035  echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038fi
10039rm -f conftest.err conftest.$ac_objext \
10040      conftest$ac_exeext conftest.$ac_ext
10041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10042
10043         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10044          # Warning - without using the other run time loading flags,
10045          # -berok will link without error, but may produce a broken library.
10046          no_undefined_flag=' ${wl}-bernotok'
10047          allow_undefined_flag=' ${wl}-berok'
10048          # Exported symbols can be pulled into shared objects from archives
10049          whole_archive_flag_spec='$convenience'
10050          archive_cmds_need_lc=yes
10051          # This is similar to how AIX traditionally builds its shared libraries.
10052          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'
10053        fi
10054      fi
10055      ;;
10056
10057    amigaos*)
10058      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)'
10059      hardcode_libdir_flag_spec='-L$libdir'
10060      hardcode_minus_L=yes
10061      # see comment about different semantics on the GNU ld section
10062      ld_shlibs=no
10063      ;;
10064
10065    bsdi[45]*)
10066      export_dynamic_flag_spec=-rdynamic
10067      ;;
10068
10069    cygwin* | mingw* | pw32*)
10070      # When not using gcc, we currently assume that we are using
10071      # Microsoft Visual C++.
10072      # hardcode_libdir_flag_spec is actually meaningless, as there is
10073      # no search path for DLLs.
10074      hardcode_libdir_flag_spec=' '
10075      allow_undefined_flag=unsupported
10076      # Tell ltmain to make .lib files, not .a files.
10077      libext=lib
10078      # Tell ltmain to make .dll files, not .so files.
10079      shrext_cmds=".dll"
10080      # FIXME: Setting linknames here is a bad hack.
10081      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10082      # The linker will automatically build a .lib file if we build a DLL.
10083      old_archive_From_new_cmds='true'
10084      # FIXME: Should let the user specify the lib program.
10085      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10086      fix_srcfile_path='`cygpath -w "$srcfile"`'
10087      enable_shared_with_static_runtimes=yes
10088      ;;
10089
10090    darwin* | rhapsody*)
10091      case $host_os in
10092        rhapsody* | darwin1.[012])
10093         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10094         ;;
10095       *) # Darwin 1.3 on
10096         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10097           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10098         else
10099           case ${MACOSX_DEPLOYMENT_TARGET} in
10100             10.[012])
10101               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10102               ;;
10103             10.*)
10104               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10105               ;;
10106           esac
10107         fi
10108         ;;
10109      esac
10110      archive_cmds_need_lc=no
10111      hardcode_direct=no
10112      hardcode_automatic=yes
10113      hardcode_shlibpath_var=unsupported
10114      whole_archive_flag_spec=''
10115      link_all_deplibs=yes
10116    if test "$GCC" = yes ; then
10117        output_verbose_link_cmd='echo'
10118        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10119      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10120      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10121      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}'
10122      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}'
10123    else
10124      case $cc_basename in
10125        xlc*)
10126         output_verbose_link_cmd='echo'
10127         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10128         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10129          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10130         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}'
10131          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}'
10132          ;;
10133       *)
10134         ld_shlibs=no
10135          ;;
10136      esac
10137    fi
10138      ;;
10139
10140    dgux*)
10141      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142      hardcode_libdir_flag_spec='-L$libdir'
10143      hardcode_shlibpath_var=no
10144      ;;
10145
10146    freebsd1*)
10147      ld_shlibs=no
10148      ;;
10149
10150    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10151    # support.  Future versions do this automatically, but an explicit c++rt0.o
10152    # does not break anything, and helps significantly (at the cost of a little
10153    # extra space).
10154    freebsd2.2*)
10155      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10156      hardcode_libdir_flag_spec='-R$libdir'
10157      hardcode_direct=yes
10158      hardcode_shlibpath_var=no
10159      ;;
10160
10161    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10162    freebsd2*)
10163      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10164      hardcode_direct=yes
10165      hardcode_minus_L=yes
10166      hardcode_shlibpath_var=no
10167      ;;
10168
10169    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10170    freebsd* | kfreebsd*-gnu | dragonfly*)
10171      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10172      hardcode_libdir_flag_spec='-R$libdir'
10173      hardcode_direct=yes
10174      hardcode_shlibpath_var=no
10175      ;;
10176
10177    hpux9*)
10178      if test "$GCC" = yes; then
10179        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'
10180      else
10181        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'
10182      fi
10183      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10184      hardcode_libdir_separator=:
10185      hardcode_direct=yes
10186
10187      # hardcode_minus_L: Not really in the search PATH,
10188      # but as the default location of the library.
10189      hardcode_minus_L=yes
10190      export_dynamic_flag_spec='${wl}-E'
10191      ;;
10192
10193    hpux10*)
10194      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10195        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10196      else
10197        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10198      fi
10199      if test "$with_gnu_ld" = no; then
10200        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10201        hardcode_libdir_separator=:
10202
10203        hardcode_direct=yes
10204        export_dynamic_flag_spec='${wl}-E'
10205
10206        # hardcode_minus_L: Not really in the search PATH,
10207        # but as the default location of the library.
10208        hardcode_minus_L=yes
10209      fi
10210      ;;
10211
10212    hpux11*)
10213      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10214        case $host_cpu in
10215        hppa*64*)
10216          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10217          ;;
10218        ia64*)
10219          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10220          ;;
10221        *)
10222          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10223          ;;
10224        esac
10225      else
10226        case $host_cpu in
10227        hppa*64*)
10228          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10229          ;;
10230        ia64*)
10231          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10232          ;;
10233        *)
10234          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10235          ;;
10236        esac
10237      fi
10238      if test "$with_gnu_ld" = no; then
10239        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10240        hardcode_libdir_separator=:
10241
10242        case $host_cpu in
10243        hppa*64*|ia64*)
10244          hardcode_libdir_flag_spec_ld='+b $libdir'
10245          hardcode_direct=no
10246          hardcode_shlibpath_var=no
10247          ;;
10248        *)
10249          hardcode_direct=yes
10250          export_dynamic_flag_spec='${wl}-E'
10251
10252          # hardcode_minus_L: Not really in the search PATH,
10253          # but as the default location of the library.
10254          hardcode_minus_L=yes
10255          ;;
10256        esac
10257      fi
10258      ;;
10259
10260    irix5* | irix6* | nonstopux*)
10261      if test "$GCC" = yes; then
10262        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'
10263      else
10264        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'
10265        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10266      fi
10267      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10268      hardcode_libdir_separator=:
10269      link_all_deplibs=yes
10270      ;;
10271
10272    netbsd*)
10273      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10274        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10275      else
10276        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10277      fi
10278      hardcode_libdir_flag_spec='-R$libdir'
10279      hardcode_direct=yes
10280      hardcode_shlibpath_var=no
10281      ;;
10282
10283    newsos6)
10284      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285      hardcode_direct=yes
10286      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10287      hardcode_libdir_separator=:
10288      hardcode_shlibpath_var=no
10289      ;;
10290
10291    openbsd*)
10292      hardcode_direct=yes
10293      hardcode_shlibpath_var=no
10294      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10295        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10296        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10297        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10298        export_dynamic_flag_spec='${wl}-E'
10299      else
10300       case $host_os in
10301         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10302           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10303           hardcode_libdir_flag_spec='-R$libdir'
10304           ;;
10305         *)
10306           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10307           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10308           ;;
10309       esac
10310      fi
10311      ;;
10312
10313    os2*)
10314      hardcode_libdir_flag_spec='-L$libdir'
10315      hardcode_minus_L=yes
10316      allow_undefined_flag=unsupported
10317      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'
10318      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10319      ;;
10320
10321    osf3*)
10322      if test "$GCC" = yes; then
10323        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10324        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'
10325      else
10326        allow_undefined_flag=' -expect_unresolved \*'
10327        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'
10328      fi
10329      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10330      hardcode_libdir_separator=:
10331      ;;
10332
10333    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10334      if test "$GCC" = yes; then
10335        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10336        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'
10337        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10338      else
10339        allow_undefined_flag=' -expect_unresolved \*'
10340        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'
10341        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10342        $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'
10343
10344        # Both c and cxx compiler support -rpath directly
10345        hardcode_libdir_flag_spec='-rpath $libdir'
10346      fi
10347      hardcode_libdir_separator=:
10348      ;;
10349
10350    solaris*)
10351      no_undefined_flag=' -z text'
10352      if test "$GCC" = yes; then
10353        wlarc='${wl}'
10354        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10355        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10356          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10357      else
10358        wlarc=''
10359        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10361        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10362      fi
10363      hardcode_libdir_flag_spec='-R$libdir'
10364      hardcode_shlibpath_var=no
10365      case $host_os in
10366      solaris2.[0-5] | solaris2.[0-5].*) ;;
10367      *)
10368        # The compiler driver will combine linker options so we
10369        # cannot just pass the convience library names through
10370        # without $wl, iff we do not link with $LD.
10371        # Luckily, gcc supports the same syntax we need for Sun Studio.
10372        # Supported since Solaris 2.6 (maybe 2.5.1?)
10373        case $wlarc in
10374        '')
10375          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10376        *)
10377          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' ;;
10378        esac ;;
10379      esac
10380      link_all_deplibs=yes
10381      ;;
10382
10383    sunos4*)
10384      if test "x$host_vendor" = xsequent; then
10385        # Use $CC to link under sequent, because it throws in some extra .o
10386        # files that make .init and .fini sections work.
10387        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10388      else
10389        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10390      fi
10391      hardcode_libdir_flag_spec='-L$libdir'
10392      hardcode_direct=yes
10393      hardcode_minus_L=yes
10394      hardcode_shlibpath_var=no
10395      ;;
10396
10397    sysv4)
10398      case $host_vendor in
10399        sni)
10400          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401          hardcode_direct=yes # is this really true???
10402        ;;
10403        siemens)
10404          ## LD is ld it makes a PLAMLIB
10405          ## CC just makes a GrossModule.
10406          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10407          reload_cmds='$CC -r -o $output$reload_objs'
10408          hardcode_direct=no
10409        ;;
10410        motorola)
10411          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10413        ;;
10414      esac
10415      runpath_var='LD_RUN_PATH'
10416      hardcode_shlibpath_var=no
10417      ;;
10418
10419    sysv4.3*)
10420      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421      hardcode_shlibpath_var=no
10422      export_dynamic_flag_spec='-Bexport'
10423      ;;
10424
10425    sysv4*MP*)
10426      if test -d /usr/nec; then
10427        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428        hardcode_shlibpath_var=no
10429        runpath_var=LD_RUN_PATH
10430        hardcode_runpath_var=yes
10431        ld_shlibs=yes
10432      fi
10433      ;;
10434
10435    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10436      no_undefined_flag='${wl}-z,text'
10437      archive_cmds_need_lc=no
10438      hardcode_shlibpath_var=no
10439      runpath_var='LD_RUN_PATH'
10440
10441      if test "$GCC" = yes; then
10442        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444      else
10445        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447      fi
10448      ;;
10449
10450    sysv5* | sco3.2v5* | sco5v6*)
10451      # Note: We can NOT use -z defs as we might desire, because we do not
10452      # link with -lc, and that would cause any symbols used from libc to
10453      # always be unresolved, which means just about no library would
10454      # ever link correctly.  If we're not using GNU ld we use -z text
10455      # though, which does catch some bad symbols but isn't as heavy-handed
10456      # as -z defs.
10457      no_undefined_flag='${wl}-z,text'
10458      allow_undefined_flag='${wl}-z,nodefs'
10459      archive_cmds_need_lc=no
10460      hardcode_shlibpath_var=no
10461      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10462      hardcode_libdir_separator=':'
10463      link_all_deplibs=yes
10464      export_dynamic_flag_spec='${wl}-Bexport'
10465      runpath_var='LD_RUN_PATH'
10466
10467      if test "$GCC" = yes; then
10468        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10469        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10470      else
10471        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10472        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10473      fi
10474      ;;
10475
10476    uts4*)
10477      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478      hardcode_libdir_flag_spec='-L$libdir'
10479      hardcode_shlibpath_var=no
10480      ;;
10481
10482    *)
10483      ld_shlibs=no
10484      ;;
10485    esac
10486  fi
10487
10488echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10489echo "${ECHO_T}$ld_shlibs" >&6
10490test "$ld_shlibs" = no && can_build_shared=no
10491
10492#
10493# Do we need to explicitly link libc?
10494#
10495case "x$archive_cmds_need_lc" in
10496x|xyes)
10497  # Assume -lc should be added
10498  archive_cmds_need_lc=yes
10499
10500  if test "$enable_shared" = yes && test "$GCC" = yes; then
10501    case $archive_cmds in
10502    *'~'*)
10503      # FIXME: we may have to deal with multi-command sequences.
10504      ;;
10505    '$CC '*)
10506      # Test whether the compiler implicitly links with -lc since on some
10507      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10508      # to ld, don't add -lc before -lgcc.
10509      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10510echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10511      $rm conftest*
10512      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10513
10514      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515  (eval $ac_compile) 2>&5
10516  ac_status=$?
10517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518  (exit $ac_status); } 2>conftest.err; then
10519        soname=conftest
10520        lib=conftest
10521        libobjs=conftest.$ac_objext
10522        deplibs=
10523        wl=$lt_prog_compiler_wl
10524        pic_flag=$lt_prog_compiler_pic
10525        compiler_flags=-v
10526        linker_flags=-v
10527        verstring=
10528        output_objdir=.
10529        libname=conftest
10530        lt_save_allow_undefined_flag=$allow_undefined_flag
10531        allow_undefined_flag=
10532        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10533  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10534  ac_status=$?
10535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536  (exit $ac_status); }
10537        then
10538          archive_cmds_need_lc=no
10539        else
10540          archive_cmds_need_lc=yes
10541        fi
10542        allow_undefined_flag=$lt_save_allow_undefined_flag
10543      else
10544        cat conftest.err 1>&5
10545      fi
10546      $rm conftest*
10547      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10548echo "${ECHO_T}$archive_cmds_need_lc" >&6
10549      ;;
10550    esac
10551  fi
10552  ;;
10553esac
10554
10555echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10556echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10557library_names_spec=
10558libname_spec='lib$name'
10559soname_spec=
10560shrext_cmds=".so"
10561postinstall_cmds=
10562postuninstall_cmds=
10563finish_cmds=
10564finish_eval=
10565shlibpath_var=
10566shlibpath_overrides_runpath=unknown
10567version_type=none
10568dynamic_linker="$host_os ld.so"
10569sys_lib_dlsearch_path_spec="/lib /usr/lib"
10570if test "$GCC" = yes; then
10571  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10572  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10573    # if the path contains ";" then we assume it to be the separator
10574    # otherwise default to the standard path separator (i.e. ":") - it is
10575    # assumed that no part of a normal pathname contains ";" but that should
10576    # okay in the real world where ";" in dirpaths is itself problematic.
10577    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10578  else
10579    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10580  fi
10581else
10582  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10583fi
10584need_lib_prefix=unknown
10585hardcode_into_libs=no
10586
10587# when you set need_version to no, make sure it does not cause -set_version
10588# flags to be left without arguments
10589need_version=unknown
10590
10591case $host_os in
10592aix3*)
10593  version_type=linux
10594  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10595  shlibpath_var=LIBPATH
10596
10597  # AIX 3 has no versioning support, so we append a major version to the name.
10598  soname_spec='${libname}${release}${shared_ext}$major'
10599  ;;
10600
10601aix4* | aix5*)
10602  version_type=linux
10603  need_lib_prefix=no
10604  need_version=no
10605  hardcode_into_libs=yes
10606  if test "$host_cpu" = ia64; then
10607    # AIX 5 supports IA64
10608    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10609    shlibpath_var=LD_LIBRARY_PATH
10610  else
10611    # With GCC up to 2.95.x, collect2 would create an import file
10612    # for dependence libraries.  The import file would start with
10613    # the line `#! .'.  This would cause the generated library to
10614    # depend on `.', always an invalid library.  This was fixed in
10615    # development snapshots of GCC prior to 3.0.
10616    case $host_os in
10617      aix4 | aix4.[01] | aix4.[01].*)
10618      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10619           echo ' yes '
10620           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10621        :
10622      else
10623        can_build_shared=no
10624      fi
10625      ;;
10626    esac
10627    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10628    # soname into executable. Probably we can add versioning support to
10629    # collect2, so additional links can be useful in future.
10630    if test "$aix_use_runtimelinking" = yes; then
10631      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10632      # instead of lib<name>.a to let people know that these are not
10633      # typical AIX shared libraries.
10634      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635    else
10636      # We preserve .a as extension for shared libraries through AIX4.2
10637      # and later when we are not doing run time linking.
10638      library_names_spec='${libname}${release}.a $libname.a'
10639      soname_spec='${libname}${release}${shared_ext}$major'
10640    fi
10641    shlibpath_var=LIBPATH
10642  fi
10643  ;;
10644
10645amigaos*)
10646  library_names_spec='$libname.ixlibrary $libname.a'
10647  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10648  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'
10649  ;;
10650
10651beos*)
10652  library_names_spec='${libname}${shared_ext}'
10653  dynamic_linker="$host_os ld.so"
10654  shlibpath_var=LIBRARY_PATH
10655  ;;
10656
10657bsdi[45]*)
10658  version_type=linux
10659  need_version=no
10660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661  soname_spec='${libname}${release}${shared_ext}$major'
10662  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10663  shlibpath_var=LD_LIBRARY_PATH
10664  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10665  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10666  # the default ld.so.conf also contains /usr/contrib/lib and
10667  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10668  # libtool to hard-code these into programs
10669  ;;
10670
10671cygwin* | mingw* | pw32*)
10672  version_type=windows
10673  shrext_cmds=".dll"
10674  need_version=no
10675  need_lib_prefix=no
10676
10677  case $GCC,$host_os in
10678  yes,cygwin* | yes,mingw* | yes,pw32*)
10679    library_names_spec='$libname.dll.a'
10680    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10681    postinstall_cmds='base_file=`basename \${file}`~
10682      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10683      dldir=$destdir/`dirname \$dlpath`~
10684      test -d \$dldir || mkdir -p \$dldir~
10685      $install_prog $dir/$dlname \$dldir/$dlname~
10686      chmod a+x \$dldir/$dlname'
10687    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10688      dlpath=$dir/\$dldll~
10689       $rm \$dlpath'
10690    shlibpath_overrides_runpath=yes
10691
10692    case $host_os in
10693    cygwin*)
10694      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10695      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10697      ;;
10698    mingw*)
10699      # MinGW DLLs use traditional 'lib' prefix
10700      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10701      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10702      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10703        # It is most probably a Windows format PATH printed by
10704        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10705        # path with ; separators, and with drive letters. We can handle the
10706        # drive letters (cygwin fileutils understands them), so leave them,
10707        # especially as we might pass files found there to a mingw objdump,
10708        # which wouldn't understand a cygwinified path. Ahh.
10709        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10710      else
10711        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10712      fi
10713      ;;
10714    pw32*)
10715      # pw32 DLLs use 'pw' prefix rather than 'lib'
10716      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10717      ;;
10718    esac
10719    ;;
10720
10721  *)
10722    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10723    ;;
10724  esac
10725  dynamic_linker='Win32 ld.exe'
10726  # FIXME: first we should search . and the directory the executable is in
10727  shlibpath_var=PATH
10728  ;;
10729
10730darwin* | rhapsody*)
10731  dynamic_linker="$host_os dyld"
10732  version_type=darwin
10733  need_lib_prefix=no
10734  need_version=no
10735  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10736  soname_spec='${libname}${release}${major}$shared_ext'
10737  shlibpath_overrides_runpath=yes
10738  shlibpath_var=DYLD_LIBRARY_PATH
10739  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10740  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10741  if test "$GCC" = yes; then
10742    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10743  else
10744    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10745  fi
10746  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10747  ;;
10748
10749dgux*)
10750  version_type=linux
10751  need_lib_prefix=no
10752  need_version=no
10753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10754  soname_spec='${libname}${release}${shared_ext}$major'
10755  shlibpath_var=LD_LIBRARY_PATH
10756  ;;
10757
10758freebsd1*)
10759  dynamic_linker=no
10760  ;;
10761
10762kfreebsd*-gnu)
10763  version_type=linux
10764  need_lib_prefix=no
10765  need_version=no
10766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10767  soname_spec='${libname}${release}${shared_ext}$major'
10768  shlibpath_var=LD_LIBRARY_PATH
10769  shlibpath_overrides_runpath=no
10770  hardcode_into_libs=yes
10771  dynamic_linker='GNU ld.so'
10772  ;;
10773
10774freebsd* | dragonfly*)
10775  # DragonFly does not have aout.  When/if they implement a new
10776  # versioning mechanism, adjust this.
10777  if test -x /usr/bin/objformat; then
10778    objformat=`/usr/bin/objformat`
10779  else
10780    case $host_os in
10781    freebsd[123]*) objformat=aout ;;
10782    *) objformat=elf ;;
10783    esac
10784  fi
10785  version_type=freebsd-$objformat
10786  case $version_type in
10787    freebsd-elf*)
10788      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10789      need_version=no
10790      need_lib_prefix=no
10791      ;;
10792    freebsd-*)
10793      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10794      need_version=yes
10795      ;;
10796  esac
10797  shlibpath_var=LD_LIBRARY_PATH
10798  case $host_os in
10799  freebsd2*)
10800    shlibpath_overrides_runpath=yes
10801    ;;