source: ThirdParty/Lapack/stable/1.2/configure

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

rerun autotools; merge fixes in example Makefiles for mingw/cl from trunk

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