source: ThirdParty/Lapack/stable/1.2/configure @ 1974

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

temporarily committing release candidate

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