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

Last change on this file since 2791 was 2791, checked in by stefan, 8 years ago

temporarily committing release candidate

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