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

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

temporarily committing release candidate

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