source: ThirdParty/HSL/trunk/configure @ 1722

Last change on this file since 1722 was 1722, checked in by stefan, 11 years ago

set version number to 'trunk'

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