source: ThirdParty/SoPlex/stable/1.2/configure @ 2901

Last change on this file since 2901 was 2901, checked in by tkr, 6 years ago

Re-running autotools

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