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

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

rerun autotools

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