source: ThirdParty/HSL/stable/1.2/configure @ 1864

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

restoring BuildTools/ThirdParty?/HSL/stable/1.2

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