source: trunk/Clp/configure @ 1965

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

Change to allow embedding of manifest

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