source: ThirdParty/HSL/trunk/configure @ 1548

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

copy over pkg-config setup and making thirdparty projects installable projects from split branch

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