source: ThirdParty/Lapack/stable/1.3/configure @ 2064

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

sync with trunk rev2060

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