source: releases/1.15.3/Clp/configure @ 1985

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

Re-running the autotools

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