source: ThirdParty/Lapack/trunk/configure @ 1753

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

restoring BuildTools/ThirdParty/Lapack?/trunk

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