source: stable/1.15/Clp/configure @ 1987

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

Re-running the autotools

  • Property svn:executable set to *
File size: 1.0 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.15.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.15'
433PACKAGE_STRING='Clp 1.15'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE COIN_HAS_ABC_TRUE COIN_HAS_ABC_FALSE AMDINCDIR AMDLIB COIN_HAS_AMD_TRUE COIN_HAS_AMD_FALSE CHOLMODINCDIR CHOLMODLIB COIN_HAS_CHOLMOD_TRUE COIN_HAS_CHOLMOD_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS MPIF77 FLIBS BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_WSMP_TRUE COIN_HAS_WSMP_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1001ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1002ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1003ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1004ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1005ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1006ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1007ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1008ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1009ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1010ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1011ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016
1017#
1018# Report the --help message.
1019#
1020if test "$ac_init_help" = "long"; then
1021  # Omit some internal or obsolete options to make the list less imposing.
1022  # This message is too long to be a string in the A/UX 3.1 sh.
1023  cat <<_ACEOF
1024\`configure' configures Clp 1.15 to adapt to many kinds of systems.
1025
1026Usage: $0 [OPTION]... [VAR=VALUE]...
1027
1028To assign environment variables (e.g., CC, CFLAGS...), specify them as
1029VAR=VALUE.  See below for descriptions of some of the useful variables.
1030
1031Defaults for the options are specified in brackets.
1032
1033Configuration:
1034  -h, --help              display this help and exit
1035      --help=short        display options specific to this package
1036      --help=recursive    display the short help of all the included packages
1037  -V, --version           display version information and exit
1038  -q, --quiet, --silent   do not print \`checking...' messages
1039      --cache-file=FILE   cache test results in FILE [disabled]
1040  -C, --config-cache      alias for \`--cache-file=config.cache'
1041  -n, --no-create         do not create output files
1042      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1043
1044_ACEOF
1045
1046  cat <<_ACEOF
1047Installation directories:
1048  --prefix=PREFIX         install architecture-independent files in PREFIX
1049                          [$ac_default_prefix]
1050  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1051                          [PREFIX]
1052
1053By default, \`make install' will install all the files in
1054\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1055an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1056for instance \`--prefix=\$HOME'.
1057
1058For better control, use the options below.
1059
1060Fine tuning of the installation directories:
1061  --bindir=DIR           user executables [EPREFIX/bin]
1062  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1063  --libexecdir=DIR       program executables [EPREFIX/libexec]
1064  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1065  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1066  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1067  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1068  --libdir=DIR           object code libraries [EPREFIX/lib]
1069  --includedir=DIR       C header files [PREFIX/include]
1070  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1071  --infodir=DIR          info documentation [PREFIX/info]
1072  --mandir=DIR           man documentation [PREFIX/man]
1073_ACEOF
1074
1075  cat <<\_ACEOF
1076
1077Program names:
1078  --program-prefix=PREFIX            prepend PREFIX to installed program names
1079  --program-suffix=SUFFIX            append SUFFIX to installed program names
1080  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1081
1082System types:
1083  --build=BUILD     configure for building on BUILD [guessed]
1084  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1085_ACEOF
1086fi
1087
1088if test -n "$ac_init_help"; then
1089  case $ac_init_help in
1090     short | recursive ) echo "Configuration of Clp 1.15:";;
1091   esac
1092  cat <<\_ACEOF
1093
1094Optional Features:
1095  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1096  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1097  --enable-debug          compile all projects with debug options tests
1098                          (implies --disable-shared)
1099  --enable-debug-clp compile project Clp with debug compiler flags
1100
1101  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1102  --enable-static[=PKGS]
1103                          build static libraries [default=no]
1104  --disable-dependency-tracking  speeds up one-time build
1105  --enable-dependency-tracking   do not reject slow dependency extractors
1106  --enable-maintainer-mode  enable make rules and dependencies not useful
1107                          (and sometimes confusing) to the casual installer
1108  --enable-shared[=PKGS]
1109                          build shared libraries [default=yes]
1110  --enable-fast-install[=PKGS]
1111                          optimize for fast installation [default=yes]
1112  --disable-libtool-lock  avoid locking (might break parallel builds)
1113  --disable-pkg-config    disable use of pkg-config (if available)
1114  --disable-interpackage-dependencies
1115                          disables deduction of Makefile dependencies from
1116                          package linker flags
1117  --enable-aboca          enables build of Aboca solver (set to 1,2,3,4)
1118  --disable-amd-libcheck skip the link check at configuration time
1119  --disable-cholmod-libcheck
1120                          skip the link check at configuration time
1121  --enable-gnu-packages   compile with GNU packages (disabled by default)
1122
1123Optional Packages:
1124  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1125  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1126  --with-clp-verbosity specify the debug verbosity level for project Clp
1127  --with-clp-checklevel specify the sanity check level for project Clp
1128  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1129  --with-pic              try to use only PIC/non-PIC objects [default=use
1130                          both]
1131  --with-tags[=TAGS]
1132                          include additional configurations [automatic]
1133  --with-coin-instdir     prefix of installation directory for precompiled
1134                          COIN packages
1135
1136  --with-coinutils-lib linker flags for using package CoinUtils
1137  --with-coinutils-incdir directory with header files for using package
1138                          CoinUtils
1139  --with-coinutils-datadir
1140                          directory with data files for using package
1141                          CoinUtils
1142  --with-osi-lib linker flags for using package Osi
1143  --with-osi-incdir directory with header files for using package Osi
1144  --with-osi-datadir directory with data files for using package Osi
1145  --with-ositests-lib linker flags for using package OsiTests
1146  --with-ositests-incdir directory with header files for using package
1147                          OsiTests
1148  --with-ositests-datadir directory with data files for using package OsiTests
1149  --with-sample-lib linker flags for using package Sample
1150  --with-sample-incdir directory with header files for using package Sample
1151  --with-sample-datadir directory with data files for using package Sample
1152  --with-netlib-lib linker flags for using package Netlib
1153  --with-netlib-incdir directory with header files for using package Netlib
1154  --with-netlib-datadir directory with data files for using package Netlib
1155  --with-amd-incdir specify the header file directory for library AMD
1156  --with-amd-lib specify the flags used to link with the library AMD
1157  --with-cholmod-incdir specify the header file directory for library CHOLMOD
1158  --with-cholmod-lib specify the flags used to link with the library CHOLMOD
1159  --with-glpk-lib linker flags for using package Glpk
1160  --with-glpk-incdir directory with header files for using package Glpk
1161  --with-glpk-datadir directory with data files for using package Glpk
1162  --with-mumps-lib linker flags for using package Mumps
1163  --with-mumps-incdir directory with header files for using package Mumps
1164  --with-mumps-datadir directory with data files for using package Mumps
1165  --with-wsmp             specify WSMP library
1166  --with-blas             specify BLAS library (or BUILD to enforce use of
1167                          ThirdParty/Blas)
1168  --with-blas-lib linker flags for using package Blas
1169  --with-blas-incdir directory with header files for using package Blas
1170  --with-blas-datadir directory with data files for using package Blas
1171  --with-dot              use dot (from graphviz) when creating documentation
1172                          with doxygen if available; --without-dot to disable
1173
1174Some influential environment variables:
1175  CDEFS       Additional -D flags to be used when compiling C code.
1176  ADD_CFLAGS  Additional C compiler options
1177  DBG_CFLAGS  Debug C compiler options
1178  OPT_CFLAGS  Optimize C compiler options
1179  CC          C compiler command
1180  CFLAGS      C compiler flags
1181  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1182              nonstandard directory <lib dir>
1183  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1184              headers in a nonstandard directory <include dir>
1185  MPICC       C MPI Compiler
1186  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1187  ADD_CXXFLAGS
1188              Additional C++ compiler options
1189  DBG_CXXFLAGS
1190              Debug C++ compiler options
1191  OPT_CXXFLAGS
1192              Optimize C++ compiler options
1193  CXX         C++ compiler command
1194  CXXFLAGS    C++ compiler flags
1195  MPICXX      C++ MPI Compiler
1196  CPP         C preprocessor
1197  CXXCPP      C++ preprocessor
1198  F77         Fortran 77 compiler command
1199  FFLAGS      Fortran 77 compiler flags
1200  PKG_CONFIG  path to pkg-config utility
1201  ADD_FFLAGS  Additional Fortran compiler options
1202  DBG_FFLAGS  Debug Fortran compiler options
1203  OPT_FFLAGS  Optimize Fortran compiler options
1204  MPIF77      Fortran MPI Compiler
1205
1206Use these variables to override the choices made by `configure' or to help
1207it to find libraries and programs with nonstandard names/locations.
1208
1209Report bugs to <clp@list.coin-or.org>.
1210_ACEOF
1211fi
1212
1213if test "$ac_init_help" = "recursive"; then
1214  # If there are subdirs, report their specific --help.
1215  ac_popdir=`pwd`
1216  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1217    test -d $ac_dir || continue
1218    ac_builddir=.
1219
1220if test "$ac_dir" != .; then
1221  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1222  # A "../" for each directory in $ac_dir_suffix.
1223  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1224else
1225  ac_dir_suffix= ac_top_builddir=
1226fi
1227
1228case $srcdir in
1229  .)  # No --srcdir option.  We are building in place.
1230    ac_srcdir=.
1231    if test -z "$ac_top_builddir"; then
1232       ac_top_srcdir=.
1233    else
1234       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1235    fi ;;
1236  [\\/]* | ?:[\\/]* )  # Absolute path.
1237    ac_srcdir=$srcdir$ac_dir_suffix;
1238    ac_top_srcdir=$srcdir ;;
1239  *) # Relative path.
1240    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1241    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1242esac
1243
1244# Do not use `cd foo && pwd` to compute absolute paths, because
1245# the directories may not exist.
1246case `pwd` in
1247.) ac_abs_builddir="$ac_dir";;
1248*)
1249  case "$ac_dir" in
1250  .) ac_abs_builddir=`pwd`;;
1251  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1252  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1253  esac;;
1254esac
1255case $ac_abs_builddir in
1256.) ac_abs_top_builddir=${ac_top_builddir}.;;
1257*)
1258  case ${ac_top_builddir}. in
1259  .) ac_abs_top_builddir=$ac_abs_builddir;;
1260  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1261  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1262  esac;;
1263esac
1264case $ac_abs_builddir in
1265.) ac_abs_srcdir=$ac_srcdir;;
1266*)
1267  case $ac_srcdir in
1268  .) ac_abs_srcdir=$ac_abs_builddir;;
1269  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1270  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1271  esac;;
1272esac
1273case $ac_abs_builddir in
1274.) ac_abs_top_srcdir=$ac_top_srcdir;;
1275*)
1276  case $ac_top_srcdir in
1277  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1278  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1279  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1280  esac;;
1281esac
1282
1283    cd $ac_dir
1284    # Check for guested configure; otherwise get Cygnus style configure.
1285    if test -f $ac_srcdir/configure.gnu; then
1286      echo
1287      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1288    elif test -f $ac_srcdir/configure; then
1289      echo
1290      $SHELL $ac_srcdir/configure  --help=recursive
1291    elif test -f $ac_srcdir/configure.ac ||
1292           test -f $ac_srcdir/configure.in; then
1293      echo
1294      $ac_configure --help
1295    else
1296      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1297    fi
1298    cd $ac_popdir
1299  done
1300fi
1301
1302test -n "$ac_init_help" && exit 0
1303if $ac_init_version; then
1304  cat <<\_ACEOF
1305Clp configure 1.15
1306generated by GNU Autoconf 2.59
1307
1308Copyright (C) 2003 Free Software Foundation, Inc.
1309This configure script is free software; the Free Software Foundation
1310gives unlimited permission to copy, distribute and modify it.
1311
1312
1313Copyright 2006 International Business Machines and others.
1314All Rights Reserved.
1315This file is part of the open source package Coin which is distributed
1316under the Eclipse Public License.
1317_ACEOF
1318  exit 0
1319fi
1320exec 5>config.log
1321cat >&5 <<_ACEOF
1322This file contains any messages produced by compilers while
1323running configure, to aid debugging if configure makes a mistake.
1324
1325It was created by Clp $as_me 1.15, which was
1326generated by GNU Autoconf 2.59.  Invocation command line was
1327
1328  $ $0 $@
1329
1330_ACEOF
1331{
1332cat <<_ASUNAME
1333## --------- ##
1334## Platform. ##
1335## --------- ##
1336
1337hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1338uname -m = `(uname -m) 2>/dev/null || echo unknown`
1339uname -r = `(uname -r) 2>/dev/null || echo unknown`
1340uname -s = `(uname -s) 2>/dev/null || echo unknown`
1341uname -v = `(uname -v) 2>/dev/null || echo unknown`
1342
1343/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1344/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1345
1346/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1347/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1348/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1349hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1350/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1351/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1352/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1353
1354_ASUNAME
1355
1356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1357for as_dir in $PATH
1358do
1359  IFS=$as_save_IFS
1360  test -z "$as_dir" && as_dir=.
1361  echo "PATH: $as_dir"
1362done
1363
1364} >&5
1365
1366cat >&5 <<_ACEOF
1367
1368
1369## ----------- ##
1370## Core tests. ##
1371## ----------- ##
1372
1373_ACEOF
1374
1375
1376# Keep a trace of the command line.
1377# Strip out --no-create and --no-recursion so they do not pile up.
1378# Strip out --silent because we don't want to record it for future runs.
1379# Also quote any args containing shell meta-characters.
1380# Make two passes to allow for proper duplicate-argument suppression.
1381ac_configure_args=
1382ac_configure_args0=
1383ac_configure_args1=
1384ac_sep=
1385ac_must_keep_next=false
1386for ac_pass in 1 2
1387do
1388  for ac_arg
1389  do
1390    case $ac_arg in
1391    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1392    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1393    | -silent | --silent | --silen | --sile | --sil)
1394      continue ;;
1395    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1396      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1397    esac
1398    case $ac_pass in
1399    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1400    2)
1401      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1402      if test $ac_must_keep_next = true; then
1403        ac_must_keep_next=false # Got value, back to normal.
1404      else
1405        case $ac_arg in
1406          *=* | --config-cache | -C | -disable-* | --disable-* \
1407          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1408          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1409          | -with-* | --with-* | -without-* | --without-* | --x)
1410            case "$ac_configure_args0 " in
1411              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1412            esac
1413            ;;
1414          -* ) ac_must_keep_next=true ;;
1415        esac
1416      fi
1417      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1418      # Get rid of the leading space.
1419      ac_sep=" "
1420      ;;
1421    esac
1422  done
1423done
1424$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1425$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1426
1427# When interrupted or exit'd, cleanup temporary files, and complete
1428# config.log.  We remove comments because anyway the quotes in there
1429# would cause problems or look ugly.
1430# WARNING: Be sure not to use single quotes in there, as some shells,
1431# such as our DU 5.0 friend, will then `close' the trap.
1432trap 'exit_status=$?
1433  # Save into config.log some information that might help in debugging.
1434  {
1435    echo
1436
1437    cat <<\_ASBOX
1438## ---------------- ##
1439## Cache variables. ##
1440## ---------------- ##
1441_ASBOX
1442    echo
1443    # The following way of writing the cache mishandles newlines in values,
1444{
1445  (set) 2>&1 |
1446    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1447    *ac_space=\ *)
1448      sed -n \
1449        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1450          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1451      ;;
1452    *)
1453      sed -n \
1454        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1455      ;;
1456    esac;
1457}
1458    echo
1459
1460    cat <<\_ASBOX
1461## ----------------- ##
1462## Output variables. ##
1463## ----------------- ##
1464_ASBOX
1465    echo
1466    for ac_var in $ac_subst_vars
1467    do
1468      eval ac_val=$`echo $ac_var`
1469      echo "$ac_var='"'"'$ac_val'"'"'"
1470    done | sort
1471    echo
1472
1473    if test -n "$ac_subst_files"; then
1474      cat <<\_ASBOX
1475## ------------- ##
1476## Output files. ##
1477## ------------- ##
1478_ASBOX
1479      echo
1480      for ac_var in $ac_subst_files
1481      do
1482        eval ac_val=$`echo $ac_var`
1483        echo "$ac_var='"'"'$ac_val'"'"'"
1484      done | sort
1485      echo
1486    fi
1487
1488    if test -s confdefs.h; then
1489      cat <<\_ASBOX
1490## ----------- ##
1491## confdefs.h. ##
1492## ----------- ##
1493_ASBOX
1494      echo
1495      sed "/^$/d" confdefs.h | sort
1496      echo
1497    fi
1498    test "$ac_signal" != 0 &&
1499      echo "$as_me: caught signal $ac_signal"
1500    echo "$as_me: exit $exit_status"
1501  } >&5
1502  rm -f core *.core &&
1503  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1504    exit $exit_status
1505     ' 0
1506for ac_signal in 1 2 13 15; do
1507  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1508done
1509ac_signal=0
1510
1511# confdefs.h avoids OS command line length limits that DEFS can exceed.
1512rm -rf conftest* confdefs.h
1513# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1514echo >confdefs.h
1515
1516# Predefined preprocessor variables.
1517
1518cat >>confdefs.h <<_ACEOF
1519#define PACKAGE_NAME "$PACKAGE_NAME"
1520_ACEOF
1521
1522
1523cat >>confdefs.h <<_ACEOF
1524#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1525_ACEOF
1526
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_VERSION "$PACKAGE_VERSION"
1530_ACEOF
1531
1532
1533cat >>confdefs.h <<_ACEOF
1534#define PACKAGE_STRING "$PACKAGE_STRING"
1535_ACEOF
1536
1537
1538cat >>confdefs.h <<_ACEOF
1539#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1540_ACEOF
1541
1542
1543# Let the site file select an alternate cache file if it wants to.
1544# Prefer explicitly selected file to automatically selected ones.
1545if test -z "$CONFIG_SITE"; then
1546  if test "x$prefix" != xNONE; then
1547    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1548  else
1549    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1550  fi
1551fi
1552for ac_site_file in $CONFIG_SITE; do
1553  if test -r "$ac_site_file"; then
1554    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1555echo "$as_me: loading site script $ac_site_file" >&6;}
1556    sed 's/^/| /' "$ac_site_file" >&5
1557    . "$ac_site_file"
1558  fi
1559done
1560
1561if test -r "$cache_file"; then
1562  # Some versions of bash will fail to source /dev/null (special
1563  # files actually), so we avoid doing that.
1564  if test -f "$cache_file"; then
1565    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1566echo "$as_me: loading cache $cache_file" >&6;}
1567    case $cache_file in
1568      [\\/]* | ?:[\\/]* ) . $cache_file;;
1569      *)                      . ./$cache_file;;
1570    esac
1571  fi
1572else
1573  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1574echo "$as_me: creating cache $cache_file" >&6;}
1575  >$cache_file
1576fi
1577
1578# Check that the precious variables saved in the cache have kept the same
1579# value.
1580ac_cache_corrupted=false
1581for ac_var in `(set) 2>&1 |
1582               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1583  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1584  eval ac_new_set=\$ac_env_${ac_var}_set
1585  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1586  eval ac_new_val="\$ac_env_${ac_var}_value"
1587  case $ac_old_set,$ac_new_set in
1588    set,)
1589      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1590echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1591      ac_cache_corrupted=: ;;
1592    ,set)
1593      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1594echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1595      ac_cache_corrupted=: ;;
1596    ,);;
1597    *)
1598      if test "x$ac_old_val" != "x$ac_new_val"; then
1599        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1600echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1601        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1602echo "$as_me:   former value:  $ac_old_val" >&2;}
1603        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1604echo "$as_me:   current value: $ac_new_val" >&2;}
1605        ac_cache_corrupted=:
1606      fi;;
1607  esac
1608  # Pass precious variables to config.status.
1609  if test "$ac_new_set" = set; then
1610    case $ac_new_val in
1611    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1612      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1613    *) ac_arg=$ac_var=$ac_new_val ;;
1614    esac
1615    case " $ac_configure_args " in
1616      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1617      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1618    esac
1619  fi
1620done
1621if $ac_cache_corrupted; then
1622  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1623echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1624  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1625echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1626   { (exit 1); exit 1; }; }
1627fi
1628
1629ac_ext=c
1630ac_cpp='$CPP $CPPFLAGS'
1631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664# List one file in the package so that the configure script can test
1665# whether the package is actually there
1666
1667
1668# Where should everything be installed by default?  Here, we want it
1669# to be installed directly in 'bin', 'lib', 'include' subdirectories
1670# of the directory where configure is run.  The default would be
1671# /usr/local.
1672
1673
1674#############################################################################
1675#                         Standard build tool stuff                         #
1676#############################################################################
1677
1678# Get the system type
1679ac_aux_dir=
1680for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1681  if test -f $ac_dir/install-sh; then
1682    ac_aux_dir=$ac_dir
1683    ac_install_sh="$ac_aux_dir/install-sh -c"
1684    break
1685  elif test -f $ac_dir/install.sh; then
1686    ac_aux_dir=$ac_dir
1687    ac_install_sh="$ac_aux_dir/install.sh -c"
1688    break
1689  elif test -f $ac_dir/shtool; then
1690    ac_aux_dir=$ac_dir
1691    ac_install_sh="$ac_aux_dir/shtool install -c"
1692    break
1693  fi
1694done
1695if test -z "$ac_aux_dir"; then
1696  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1697echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1698   { (exit 1); exit 1; }; }
1699fi
1700ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1701ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1702ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1703
1704# Make sure we can run config.sub.
1705$ac_config_sub sun4 >/dev/null 2>&1 ||
1706  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1707echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1708   { (exit 1); exit 1; }; }
1709
1710echo "$as_me:$LINENO: checking build system type" >&5
1711echo $ECHO_N "checking build system type... $ECHO_C" >&6
1712if test "${ac_cv_build+set}" = set; then
1713  echo $ECHO_N "(cached) $ECHO_C" >&6
1714else
1715  ac_cv_build_alias=$build_alias
1716test -z "$ac_cv_build_alias" &&
1717  ac_cv_build_alias=`$ac_config_guess`
1718test -z "$ac_cv_build_alias" &&
1719  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1720echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1721   { (exit 1); exit 1; }; }
1722ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1723  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1724echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1725   { (exit 1); exit 1; }; }
1726
1727fi
1728echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1729echo "${ECHO_T}$ac_cv_build" >&6
1730build=$ac_cv_build
1731build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1732build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1733build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1734
1735
1736
1737# If this project depends on external projects, the Externals file in
1738# the source root directory contains definition of where to find those
1739# externals.  The following macro ensures that those externals are
1740# retrieved by svn if they are not there yet.
1741
1742# As backup, we make sure we don't loose an FLIBS if it has been set
1743# by the user
1744save_FLIBS="$FLIBS"
1745
1746# A useful makefile conditional that is always false
1747
1748
1749if false; then
1750  ALWAYS_FALSE_TRUE=
1751  ALWAYS_FALSE_FALSE='#'
1752else
1753  ALWAYS_FALSE_TRUE='#'
1754  ALWAYS_FALSE_FALSE=
1755fi
1756
1757
1758# We set the following variable so that we know later in AC_COIN_FINALIZE
1759# that we are in a project main directory
1760coin_projectdir=yes
1761
1762# Set the project's version numbers
1763
1764
1765cat >>confdefs.h <<_ACEOF
1766#define CLP_VERSION "$PACKAGE_VERSION"
1767_ACEOF
1768
1769
1770  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1771  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1772  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1773  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1774  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1775  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1776
1777cat >>confdefs.h <<_ACEOF
1778#define CLP_VERSION_MAJOR $coin_majorver
1779_ACEOF
1780
1781
1782cat >>confdefs.h <<_ACEOF
1783#define CLP_VERSION_MINOR $coin_minorver
1784_ACEOF
1785
1786
1787cat >>confdefs.h <<_ACEOF
1788#define CLP_VERSION_RELEASE $coin_releasever
1789_ACEOF
1790
1791
1792  # We use the following variable to have a string with the upper case
1793  # version of the project name
1794  COIN_PRJCT=CLP
1795
1796  # Set the project's SVN revision number. The complicated sed expression
1797  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1798  # as a single number.
1799  # Extract the first word of "svnversion", so it can be a program name with args.
1800set dummy svnversion; ac_word=$2
1801echo "$as_me:$LINENO: checking for $ac_word" >&5
1802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803if test "${ac_cv_prog_have_svnversion+set}" = set; then
1804  echo $ECHO_N "(cached) $ECHO_C" >&6
1805else
1806  if test -n "$have_svnversion"; then
1807  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1808else
1809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810for as_dir in $PATH
1811do
1812  IFS=$as_save_IFS
1813  test -z "$as_dir" && as_dir=.
1814  for ac_exec_ext in '' $ac_executable_extensions; do
1815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816    ac_cv_prog_have_svnversion="yes"
1817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818    break 2
1819  fi
1820done
1821done
1822
1823  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1824fi
1825fi
1826have_svnversion=$ac_cv_prog_have_svnversion
1827if test -n "$have_svnversion"; then
1828  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1829echo "${ECHO_T}$have_svnversion" >&6
1830else
1831  echo "$as_me:$LINENO: result: no" >&5
1832echo "${ECHO_T}no" >&6
1833fi
1834
1835  if test "x$have_svnversion" = xyes; then
1836
1837    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1838    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1839      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1840
1841cat >>confdefs.h <<_ACEOF
1842#define CLP_SVN_REV $CLP_SVN_REV
1843_ACEOF
1844
1845    fi
1846  fi
1847
1848
1849
1850# Capture libtool library version, if given.
1851
1852
1853
1854
1855# Check if user wants to produce debugging code
1856
1857echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1858echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1859
1860# Check whether --enable-debug or --disable-debug was given.
1861if test "${enable_debug+set}" = set; then
1862  enableval="$enable_debug"
1863  case "${enableval}" in
1864   yes) coin_debug_compile=true
1865        if test "${enable_shared+set}" = set; then :; else
1866          enable_shared=no
1867        fi
1868        ;;
1869   no)  coin_debug_compile=false
1870        ;;
1871   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1872echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1873   { (exit 1); exit 1; }; }
1874        ;;
1875esac
1876else
1877  coin_debug_compile=false
1878fi;
1879
1880# Check whether --enable-debug-clp or --disable-debug-clp was given.
1881if test "${enable_debug_clp+set}" = set; then
1882  enableval="$enable_debug_clp"
1883  case "${enableval}" in
1884    yes) coin_debug_compile=true
1885         ;;
1886    no)  coin_debug_compile=false
1887         ;;
1888    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1889echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1890   { (exit 1); exit 1; }; }
1891         ;;
1892 esac
1893else
1894  :
1895fi;
1896
1897 # m4_ifvaln([Clp],
1898
1899if test $coin_debug_compile = true; then
1900  echo "$as_me:$LINENO: result: yes" >&5
1901echo "${ECHO_T}yes" >&6
1902else
1903  echo "$as_me:$LINENO: result: no" >&5
1904echo "${ECHO_T}no" >&6
1905fi
1906
1907
1908# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1909if test "${with_clp_verbosity+set}" = set; then
1910  withval="$with_clp_verbosity"
1911  if test "$withval" = yes; then
1912                withval=1
1913              fi
1914              coin_clp_verbosity=$withval
1915else
1916  coin_clp_verbosity=0
1917fi;
1918
1919cat >>confdefs.h <<_ACEOF
1920#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1921_ACEOF
1922
1923
1924
1925# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1926if test "${with_clp_checklevel+set}" = set; then
1927  withval="$with_clp_checklevel"
1928  if test "$withval" = yes; then
1929                withval=1
1930              fi
1931              coin_clp_checklevel=$withval
1932else
1933  coin_clp_checklevel=0
1934fi;
1935
1936cat >>confdefs.h <<_ACEOF
1937#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1938_ACEOF
1939
1940
1941 # m4_ifvaln([Clp],
1942
1943
1944
1945# Get the name of the C++ compiler and appropriate compiler options
1946
1947
1948  # for backward compatibility
1949  # Check whether --enable-doscompile or --disable-doscompile was given.
1950if test "${enable_doscompile+set}" = set; then
1951  enableval="$enable_doscompile"
1952  enable_doscompile=$enableval
1953else
1954  enable_doscompile=no
1955fi;
1956
1957  # Check whether --enable-msvc or --disable-msvc was given.
1958if test "${enable_msvc+set}" = set; then
1959  enableval="$enable_msvc"
1960  enable_msvc=$enableval
1961else
1962  enable_msvc=no
1963     if test "$enable_doscompile" = msvc ; then
1964       enable_msvc=yes
1965     elif test "$enable_doscompile" != no ; then
1966       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1967echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1968   { (exit 1); exit 1; }; }
1969     fi
1970
1971fi;
1972
1973  if test "$enable_msvc" = yes; then
1974    case $build in
1975      *-cygwin* | *-mingw*) ;;
1976      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1977echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1978   { (exit 1); exit 1; }; } ;;
1979    esac
1980  fi
1981
1982
1983 case $build in
1984  *-mingw*)
1985    if test "${LD+set}" = set; then :; else
1986      LD=link
1987    fi
1988    ;;
1989 esac
1990 if test $enable_msvc = yes ; then
1991   if test "x${LD+set}" = xset; then :; else
1992     LD=link
1993   fi
1994 fi
1995
1996
1997
1998
1999ac_ext=c
2000ac_cpp='$CPP $CPPFLAGS'
2001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004
2005
2006# For consistency, we set the C compiler to the same value of the C++
2007# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2008if test x"$CXX" != x; then
2009  case "$CXX" in
2010    clang* ) ;;
2011    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2012      if test x"$CC" = x; then
2013        CC="$CXX"
2014        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2015echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2016      fi
2017      ;;
2018  esac
2019fi
2020
2021
2022
2023
2024
2025
2026coin_has_cc=yes
2027
2028save_cflags="$CFLAGS"
2029
2030# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2031# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2032# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2033# compiler. In this case, put cc after gcc.
2034
2035case $build in
2036  *-cygwin* | *-mingw*)
2037             if test "$enable_msvc" = yes ; then
2038               comps="icl cl gcc"
2039             else
2040               comps="gcc icl cl"
2041             fi ;;
2042  *-*-solaris*)
2043             # Extract the first word of "cc", so it can be a program name with args.
2044set dummy cc; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2048  echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050  if test -n "$sol_cc_compiler"; then
2051  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2052else
2053  ac_prog_rejected=no
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057  IFS=$as_save_IFS
2058  test -z "$as_dir" && as_dir=.
2059  for ac_exec_ext in '' $ac_executable_extensions; do
2060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2062       ac_prog_rejected=yes
2063       continue
2064     fi
2065    ac_cv_prog_sol_cc_compiler="cc"
2066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067    break 2
2068  fi
2069done
2070done
2071
2072if test $ac_prog_rejected = yes; then
2073  # We found a bogon in the path, so make sure we never use it.
2074  set dummy $ac_cv_prog_sol_cc_compiler
2075  shift
2076  if test $# != 0; then
2077    # We chose a different compiler from the bogus one.
2078    # However, it has the same basename, so the bogon will be chosen
2079    # first if we set sol_cc_compiler to just the basename; use the full file name.
2080    shift
2081    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2082  fi
2083fi
2084fi
2085fi
2086sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2087if test -n "$sol_cc_compiler"; then
2088  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2089echo "${ECHO_T}$sol_cc_compiler" >&6
2090else
2091  echo "$as_me:$LINENO: result: no" >&5
2092echo "${ECHO_T}no" >&6
2093fi
2094
2095             if test "$sol_cc_compiler" = "cc" ; then
2096               comps="cc xlc gcc pgcc icc"
2097             else
2098               comps="xlc gcc pgcc icc cc"
2099             fi
2100             ;;
2101  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2102  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2103  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2104esac
2105
2106# We delete the cached value, since the test might not have been
2107# performed with our choice of compilers earlier
2108$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2109# AC_MSG_NOTICE([C compiler candidates: $comps])
2110ac_ext=c
2111ac_cpp='$CPP $CPPFLAGS'
2112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2114ac_compiler_gnu=$ac_cv_c_compiler_gnu
2115if test -n "$ac_tool_prefix"; then
2116  for ac_prog in $comps
2117  do
2118    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2120echo "$as_me:$LINENO: checking for $ac_word" >&5
2121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122if test "${ac_cv_prog_CC+set}" = set; then
2123  echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125  if test -n "$CC"; then
2126  ac_cv_prog_CC="$CC" # Let the user override the test.
2127else
2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131  IFS=$as_save_IFS
2132  test -z "$as_dir" && as_dir=.
2133  for ac_exec_ext in '' $ac_executable_extensions; do
2134  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137    break 2
2138  fi
2139done
2140done
2141
2142fi
2143fi
2144CC=$ac_cv_prog_CC
2145if test -n "$CC"; then
2146  echo "$as_me:$LINENO: result: $CC" >&5
2147echo "${ECHO_T}$CC" >&6
2148else
2149  echo "$as_me:$LINENO: result: no" >&5
2150echo "${ECHO_T}no" >&6
2151fi
2152
2153    test -n "$CC" && break
2154  done
2155fi
2156if test -z "$CC"; then
2157  ac_ct_CC=$CC
2158  for ac_prog in $comps
2159do
2160  # Extract the first word of "$ac_prog", so it can be a program name with args.
2161set dummy $ac_prog; ac_word=$2
2162echo "$as_me:$LINENO: checking for $ac_word" >&5
2163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167  if test -n "$ac_ct_CC"; then
2168  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2169else
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173  IFS=$as_save_IFS
2174  test -z "$as_dir" && as_dir=.
2175  for ac_exec_ext in '' $ac_executable_extensions; do
2176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177    ac_cv_prog_ac_ct_CC="$ac_prog"
2178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179    break 2
2180  fi
2181done
2182done
2183
2184fi
2185fi
2186ac_ct_CC=$ac_cv_prog_ac_ct_CC
2187if test -n "$ac_ct_CC"; then
2188  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2189echo "${ECHO_T}$ac_ct_CC" >&6
2190else
2191  echo "$as_me:$LINENO: result: no" >&5
2192echo "${ECHO_T}no" >&6
2193fi
2194
2195  test -n "$ac_ct_CC" && break
2196done
2197
2198  CC=$ac_ct_CC
2199fi
2200
2201
2202test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: no acceptable C compiler found in \$PATH
2205See \`config.log' for more details." >&2;}
2206   { (exit 1); exit 1; }; }
2207
2208# Provide some information about the compiler.
2209echo "$as_me:$LINENO:" \
2210     "checking for C compiler version" >&5
2211ac_compiler=`set X $ac_compile; echo $2`
2212{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2213  (eval $ac_compiler --version </dev/null >&5) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }
2217{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2218  (eval $ac_compiler -v </dev/null >&5) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }
2222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2223  (eval $ac_compiler -V </dev/null >&5) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }
2227
2228cat >conftest.$ac_ext <<_ACEOF
2229/* confdefs.h.  */
2230_ACEOF
2231cat confdefs.h >>conftest.$ac_ext
2232cat >>conftest.$ac_ext <<_ACEOF
2233/* end confdefs.h.  */
2234
2235int
2236main ()
2237{
2238
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243ac_clean_files_save=$ac_clean_files
2244ac_clean_files="$ac_clean_files a.out a.exe b.out"
2245# Try to create an executable without -o first, disregard a.out.
2246# It will help us diagnose broken compilers, and finding out an intuition
2247# of exeext.
2248echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2249echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2250ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2251if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2252  (eval $ac_link_default) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; then
2256  # Find the output, starting from the most likely.  This scheme is
2257# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2258# resort.
2259
2260# Be careful to initialize this variable, since it used to be cached.
2261# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2262ac_cv_exeext=
2263# b.out is created by i960 compilers.
2264for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2265do
2266  test -f "$ac_file" || continue
2267  case $ac_file in
2268    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2269        ;;
2270    conftest.$ac_ext )
2271        # This is the source file.
2272        ;;
2273    [ab].out )
2274        # We found the default executable, but exeext='' is most
2275        # certainly right.
2276        break;;
2277    *.* )
2278        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279        # FIXME: I believe we export ac_cv_exeext for Libtool,
2280        # but it would be cool to find out if it's true.  Does anybody
2281        # maintain Libtool? --akim.
2282        export ac_cv_exeext
2283        break;;
2284    * )
2285        break;;
2286  esac
2287done
2288else
2289  echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: C compiler cannot create executables
2295See \`config.log' for more details." >&2;}
2296   { (exit 77); exit 77; }; }
2297fi
2298
2299ac_exeext=$ac_cv_exeext
2300echo "$as_me:$LINENO: result: $ac_file" >&5
2301echo "${ECHO_T}$ac_file" >&6
2302
2303# Check the compiler produces executables we can run.  If not, either
2304# the compiler is broken, or we cross compile.
2305echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2306echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2307# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2308# If not cross compiling, check that we can run a simple program.
2309if test "$cross_compiling" != yes; then
2310  if { ac_try='./$ac_file'
2311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312  (eval $ac_try) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }; }; then
2316    cross_compiling=no
2317  else
2318    if test "$cross_compiling" = maybe; then
2319        cross_compiling=yes
2320    else
2321        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2322If you meant to cross compile, use \`--host'.
2323See \`config.log' for more details." >&5
2324echo "$as_me: error: cannot run C compiled programs.
2325If you meant to cross compile, use \`--host'.
2326See \`config.log' for more details." >&2;}
2327   { (exit 1); exit 1; }; }
2328    fi
2329  fi
2330fi
2331echo "$as_me:$LINENO: result: yes" >&5
2332echo "${ECHO_T}yes" >&6
2333
2334rm -f a.out a.exe conftest$ac_cv_exeext b.out
2335ac_clean_files=$ac_clean_files_save
2336# Check the compiler produces executables we can run.  If not, either
2337# the compiler is broken, or we cross compile.
2338echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2339echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2340echo "$as_me:$LINENO: result: $cross_compiling" >&5
2341echo "${ECHO_T}$cross_compiling" >&6
2342
2343echo "$as_me:$LINENO: checking for suffix of executables" >&5
2344echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2346  (eval $ac_link) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; then
2350  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2351# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2352# work properly (i.e., refer to `conftest.exe'), while it won't with
2353# `rm'.
2354for ac_file in conftest.exe conftest conftest.*; do
2355  test -f "$ac_file" || continue
2356  case $ac_file in
2357    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2358    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2359          export ac_cv_exeext
2360          break;;
2361    * ) break;;
2362  esac
2363done
2364else
2365  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2366See \`config.log' for more details." >&5
2367echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2368See \`config.log' for more details." >&2;}
2369   { (exit 1); exit 1; }; }
2370fi
2371
2372rm -f conftest$ac_cv_exeext
2373echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2374echo "${ECHO_T}$ac_cv_exeext" >&6
2375
2376rm -f conftest.$ac_ext
2377EXEEXT=$ac_cv_exeext
2378ac_exeext=$EXEEXT
2379echo "$as_me:$LINENO: checking for suffix of object files" >&5
2380echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2381if test "${ac_cv_objext+set}" = set; then
2382  echo $ECHO_N "(cached) $ECHO_C" >&6
2383else
2384  cat >conftest.$ac_ext <<_ACEOF
2385/* confdefs.h.  */
2386_ACEOF
2387cat confdefs.h >>conftest.$ac_ext
2388cat >>conftest.$ac_ext <<_ACEOF
2389/* end confdefs.h.  */
2390
2391int
2392main ()
2393{
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399rm -f conftest.o conftest.obj
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; then
2405  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2406  case $ac_file in
2407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2408    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2409       break;;
2410  esac
2411done
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2417See \`config.log' for more details." >&5
2418echo "$as_me: error: cannot compute suffix of object files: cannot compile
2419See \`config.log' for more details." >&2;}
2420   { (exit 1); exit 1; }; }
2421fi
2422
2423rm -f conftest.$ac_cv_objext conftest.$ac_ext
2424fi
2425echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2426echo "${ECHO_T}$ac_cv_objext" >&6
2427OBJEXT=$ac_cv_objext
2428ac_objext=$OBJEXT
2429echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2430echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2431if test "${ac_cv_c_compiler_gnu+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444#ifndef __GNUC__
2445       choke me
2446#endif
2447
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454  (eval $ac_compile) 2>conftest.er1
2455  ac_status=$?
2456  grep -v '^ *+' conftest.er1 >conftest.err
2457  rm -f conftest.er1
2458  cat conftest.err >&5
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); } &&
2461         { ac_try='test -z "$ac_c_werror_flag"
2462                         || test ! -s conftest.err'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; } &&
2468         { ac_try='test -s conftest.$ac_objext'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; }; then
2474  ac_compiler_gnu=yes
2475else
2476  echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479ac_compiler_gnu=no
2480fi
2481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482ac_cv_c_compiler_gnu=$ac_compiler_gnu
2483
2484fi
2485echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2486echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2487GCC=`test $ac_compiler_gnu = yes && echo yes`
2488ac_test_CFLAGS=${CFLAGS+set}
2489ac_save_CFLAGS=$CFLAGS
2490CFLAGS="-g"
2491echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2492echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2493if test "${ac_cv_prog_cc_g+set}" = set; then
2494  echo $ECHO_N "(cached) $ECHO_C" >&6
2495else
2496  cat >conftest.$ac_ext <<_ACEOF
2497/* confdefs.h.  */
2498_ACEOF
2499cat confdefs.h >>conftest.$ac_ext
2500cat >>conftest.$ac_ext <<_ACEOF
2501/* end confdefs.h.  */
2502
2503int
2504main ()
2505{
2506
2507  ;
2508  return 0;
2509}
2510_ACEOF
2511rm -f conftest.$ac_objext
2512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513  (eval $ac_compile) 2>conftest.er1
2514  ac_status=$?
2515  grep -v '^ *+' conftest.er1 >conftest.err
2516  rm -f conftest.er1
2517  cat conftest.err >&5
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); } &&
2520         { ac_try='test -z "$ac_c_werror_flag"
2521                         || test ! -s conftest.err'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; } &&
2527         { ac_try='test -s conftest.$ac_objext'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; }; then
2533  ac_cv_prog_cc_g=yes
2534else
2535  echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538ac_cv_prog_cc_g=no
2539fi
2540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541fi
2542echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2543echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2544if test "$ac_test_CFLAGS" = set; then
2545  CFLAGS=$ac_save_CFLAGS
2546elif test $ac_cv_prog_cc_g = yes; then
2547  if test "$GCC" = yes; then
2548    CFLAGS="-g -O2"
2549  else
2550    CFLAGS="-g"
2551  fi
2552else
2553  if test "$GCC" = yes; then
2554    CFLAGS="-O2"
2555  else
2556    CFLAGS=
2557  fi
2558fi
2559echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2560echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2561if test "${ac_cv_prog_cc_stdc+set}" = set; then
2562  echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564  ac_cv_prog_cc_stdc=no
2565ac_save_CC=$CC
2566cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h.  */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h.  */
2572#include <stdarg.h>
2573#include <stdio.h>
2574#include <sys/types.h>
2575#include <sys/stat.h>
2576/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2577struct buf { int x; };
2578FILE * (*rcsopen) (struct buf *, struct stat *, int);
2579static char *e (p, i)
2580     char **p;
2581     int i;
2582{
2583  return p[i];
2584}
2585static char *f (char * (*g) (char **, int), char **p, ...)
2586{
2587  char *s;
2588  va_list v;
2589  va_start (v,p);
2590  s = g (p, va_arg (v,int));
2591  va_end (v);
2592  return s;
2593}
2594
2595/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2596   function prototypes and stuff, but not '\xHH' hex character constants.
2597   These don't provoke an error unfortunately, instead are silently treated
2598   as 'x'.  The following induces an error, until -std1 is added to get
2599   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2600   array size at least.  It's necessary to write '\x00'==0 to get something
2601   that's true only with -std1.  */
2602int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2603
2604int test (int i, double x);
2605struct s1 {int (*f) (int a);};
2606struct s2 {int (*f) (double a);};
2607int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2608int argc;
2609char **argv;
2610int
2611main ()
2612{
2613return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2614  ;
2615  return 0;
2616}
2617_ACEOF
2618# Don't try gcc -ansi; that turns off useful extensions and
2619# breaks some systems' header files.
2620# AIX                   -qlanglvl=ansi
2621# Ultrix and OSF/1      -std1
2622# HP-UX 10.20 and later -Ae
2623# HP-UX older versions  -Aa -D_HPUX_SOURCE
2624# SVR4                  -Xc -D__EXTENSIONS__
2625for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2626do
2627  CC="$ac_save_CC $ac_arg"
2628  rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637         { ac_try='test -z "$ac_c_werror_flag"
2638                         || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644         { ac_try='test -s conftest.$ac_objext'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; }; then
2650  ac_cv_prog_cc_stdc=$ac_arg
2651break
2652else
2653  echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656fi
2657rm -f conftest.err conftest.$ac_objext
2658done
2659rm -f conftest.$ac_ext conftest.$ac_objext
2660CC=$ac_save_CC
2661
2662fi
2663
2664case "x$ac_cv_prog_cc_stdc" in
2665  x|xno)
2666    echo "$as_me:$LINENO: result: none needed" >&5
2667echo "${ECHO_T}none needed" >&6 ;;
2668  *)
2669    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2670echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2671    CC="$CC $ac_cv_prog_cc_stdc" ;;
2672esac
2673
2674# Some people use a C++ compiler to compile C.  Since we use `exit',
2675# in C++ we need to declare it.  In case someone uses the same compiler
2676# for both compiling C and C++ we need to have the C++ compiler decide
2677# the declaration of exit, since it's the most demanding environment.
2678cat >conftest.$ac_ext <<_ACEOF
2679#ifndef __cplusplus
2680  choke me
2681#endif
2682_ACEOF
2683rm -f conftest.$ac_objext
2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685  (eval $ac_compile) 2>conftest.er1
2686  ac_status=$?
2687  grep -v '^ *+' conftest.er1 >conftest.err
2688  rm -f conftest.er1
2689  cat conftest.err >&5
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); } &&
2692         { ac_try='test -z "$ac_c_werror_flag"
2693                         || test ! -s conftest.err'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; } &&
2699         { ac_try='test -s conftest.$ac_objext'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; }; then
2705  for ac_declaration in \
2706   '' \
2707   'extern "C" void std::exit (int) throw (); using std::exit;' \
2708   'extern "C" void std::exit (int); using std::exit;' \
2709   'extern "C" void exit (int) throw ();' \
2710   'extern "C" void exit (int);' \
2711   'void exit (int);'
2712do
2713  cat >conftest.$ac_ext <<_ACEOF
2714/* confdefs.h.  */
2715_ACEOF
2716cat confdefs.h >>conftest.$ac_ext
2717cat >>conftest.$ac_ext <<_ACEOF
2718/* end confdefs.h.  */
2719$ac_declaration
2720#include <stdlib.h>
2721int
2722main ()
2723{
2724exit (42);
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731  (eval $ac_compile) 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } &&
2738         { ac_try='test -z "$ac_c_werror_flag"
2739                         || test ! -s conftest.err'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; } &&
2745         { ac_try='test -s conftest.$ac_objext'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; }; then
2751  :
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756continue
2757fi
2758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759  cat >conftest.$ac_ext <<_ACEOF
2760/* confdefs.h.  */
2761_ACEOF
2762cat confdefs.h >>conftest.$ac_ext
2763cat >>conftest.$ac_ext <<_ACEOF
2764/* end confdefs.h.  */
2765$ac_declaration
2766int
2767main ()
2768{
2769exit (42);
2770  ;
2771  return 0;
2772}
2773_ACEOF
2774rm -f conftest.$ac_objext
2775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776  (eval $ac_compile) 2>conftest.er1
2777  ac_status=$?
2778  grep -v '^ *+' conftest.er1 >conftest.err
2779  rm -f conftest.er1
2780  cat conftest.err >&5
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); } &&
2783         { ac_try='test -z "$ac_c_werror_flag"
2784                         || test ! -s conftest.err'
2785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786  (eval $ac_try) 2>&5
2787  ac_status=$?
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); }; } &&
2790         { ac_try='test -s conftest.$ac_objext'
2791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792  (eval $ac_try) 2>&5
2793  ac_status=$?
2794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795  (exit $ac_status); }; }; then
2796  break
2797else
2798  echo "$as_me: failed program was:" >&5
2799sed 's/^/| /' conftest.$ac_ext >&5
2800
2801fi
2802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803done
2804rm -f conftest*
2805if test -n "$ac_declaration"; then
2806  echo '#ifdef __cplusplus' >>confdefs.h
2807  echo $ac_declaration      >>confdefs.h
2808  echo '#endif'             >>confdefs.h
2809fi
2810
2811else
2812  echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815fi
2816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823if test -z "$CC" ; then
2824  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2825echo "$as_me: error: Failed to find a C compiler!" >&2;}
2826   { (exit 1); exit 1; }; }
2827fi
2828# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2829case "$CC" in
2830  clang* ) ;;
2831  cl* | */cl* | CL* | */CL* )
2832    if test "$ac_cv_prog_cc_g" = yes ; then
2833      ac_cv_prog_cc_g=no
2834      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2835echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2836    fi ;;
2837  * )
2838    CYGPATH_W=echo
2839    ;;
2840esac
2841CFLAGS="$save_cflags"
2842
2843# add automake conditional so we can recognize cl compiler in makefile
2844coin_cc_is_cl=false
2845case "$CC" in
2846  clang* ) ;;
2847  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2848    coin_cc_is_cl=true
2849    ;;
2850esac
2851
2852
2853if test $coin_cc_is_cl = true; then
2854  COIN_CC_IS_CL_TRUE=
2855  COIN_CC_IS_CL_FALSE='#'
2856else
2857  COIN_CC_IS_CL_TRUE='#'
2858  COIN_CC_IS_CL_FALSE=
2859fi
2860
2861
2862# Check if a project specific CFLAGS variable has been set
2863if test x$COIN_PRJCT != x; then
2864  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2865  if test x$coin_tmp = xset; then
2866    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2867  fi
2868fi
2869
2870if test x"$CFLAGS" = x; then
2871
2872  coin_add_cflags=
2873  coin_opt_cflags=
2874  coin_dbg_cflags=
2875  coin_warn_cflags=
2876
2877  if test "$GCC" = "yes"; then
2878    case "$CC" in
2879      icc* | */icc*)
2880        ;;
2881      *)
2882        coin_opt_cflags="-O3"
2883        coin_add_cflags="-pipe"
2884        coin_dbg_cflags="-g -O0"
2885        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2886        case $build in
2887          *-darwin*)
2888            ;;
2889          *)
2890            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2891            ;;
2892        esac
2893    esac
2894  fi
2895  if test -z "$coin_opt_cflags"; then
2896    case $build in
2897      *-cygwin* | *-mingw*)
2898        case "$CC" in
2899          clang* ) ;;
2900          cl* | */cl* | CL* | */CL*)
2901            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2902              coin_opt_cflags='-MD -O2'
2903              coin_dbg_cflags='-MDd'
2904            else
2905              coin_opt_cflags='-MT -O2'
2906              coin_dbg_cflags='-MTd'
2907            fi
2908            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2909            ;;
2910          icl* | */icl* | ICL* | */ICL*)
2911            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2912              coin_opt_cflags='-MD -Ox'
2913              coin_dbg_cflags='-MDd -debug'
2914            else
2915              coin_opt_cflags='-MT -Ox'
2916              coin_dbg_cflags='-MTd -debug'
2917            fi
2918            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2919            ;;
2920        esac
2921        ;;
2922      *-linux-*)
2923        case "$CC" in
2924          icc* | */icc*)
2925            coin_opt_cflags="-O3 -ip -mp1"
2926            coin_add_cflags=""
2927            coin_dbg_cflags="-g"
2928            # Check if -i_dynamic is necessary (for new glibc library)
2929            CFLAGS=
2930            cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h.  */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h.  */
2936
2937int
2938main ()
2939{
2940int i=0; i++;
2941  ;
2942  return 0;
2943}
2944_ACEOF
2945rm -f conftest.$ac_objext conftest$ac_exeext
2946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2947  (eval $ac_link) 2>conftest.er1
2948  ac_status=$?
2949  grep -v '^ *+' conftest.er1 >conftest.err
2950  rm -f conftest.er1
2951  cat conftest.err >&5
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); } &&
2954         { ac_try='test -z "$ac_c_werror_flag"
2955                         || test ! -s conftest.err'
2956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957  (eval $ac_try) 2>&5
2958  ac_status=$?
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); }; } &&
2961         { ac_try='test -s conftest$ac_exeext'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; }; then
2967  :
2968else
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972coin_add_cflags="-i_dynamic $coin_add_cflags"
2973fi
2974rm -f conftest.err conftest.$ac_objext \
2975      conftest$ac_exeext conftest.$ac_ext
2976            ;;
2977          pgcc* | */pgcc*)
2978            coin_opt_cflags="-fast"
2979            coin_add_cflags="-Kieee -pc 64"
2980            coin_dbg_cflags="-g"
2981            ;;
2982        esac
2983        ;;
2984      *-ibm-*)
2985        case "$CC" in
2986          xlc* | */xlc* | mpxlc* | */mpxlc*)
2987            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2988            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2989            coin_dbg_cflags="-g"
2990          ;;
2991        esac
2992        ;;
2993      *-hp-*)
2994        coin_opt_cflags="-O"
2995        coin_add_cflags="-Ae"
2996        coin_dbg_cflags="-g"
2997        ;;
2998      *-*-solaris*)
2999        coin_opt_cflags="-xO4"
3000        coin_dbg_cflags="-g"
3001        ;;
3002      *-sgi-*)
3003        coin_opt_cflags="-O -OPT:Olimit=0"
3004        coin_dbg_cflags="-g"
3005        ;;
3006    esac
3007  fi
3008
3009  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3010    coin_dbg_cflags="-g"
3011  fi
3012
3013  if test -z "$coin_opt_cflags"; then
3014    # Try if -O option works if nothing else is set
3015    CFLAGS="-O"
3016    cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h.  */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h.  */
3022
3023int
3024main ()
3025{
3026int i=0; i++;
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext conftest$ac_exeext
3032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033  (eval $ac_link) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest$ac_exeext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  coin_opt_cflags="-O"
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058fi
3059rm -f conftest.err conftest.$ac_objext \
3060      conftest$ac_exeext conftest.$ac_ext
3061  fi
3062
3063  # if PM doesn't want the warning messages, take them out
3064  if test x"$coin_skip_warn_cflags" = xyes; then
3065    coin_warn_cflags=
3066  fi
3067
3068  if test x${DBG_CFLAGS+set} != xset; then
3069    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3070  fi
3071  if test x${OPT_CFLAGS+set} != xset; then
3072    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3073  fi
3074
3075  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3076  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3077
3078  if test "$coin_debug_compile" = "true"; then
3079    CFLAGS="$DBG_CFLAGS"
3080  else
3081    CFLAGS="$OPT_CFLAGS"
3082  fi
3083else
3084  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3085  if test x${DBG_CFLAGS+set} != xset; then
3086    DBG_CFLAGS="$CFLAGS"
3087  fi
3088  if test x${OPT_CFLAGS+set} != xset; then
3089    OPT_CFLAGS="$CFLAGS"
3090  fi
3091fi
3092
3093# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3094
3095case "$CFLAGS" in
3096  *-mno-cygwin*)
3097    if test x${CPPFLAGS+set} != xset ; then
3098      CPPFLAGS="-mno-cygwin"
3099    else
3100      case "$CPPFLAGS" in
3101        *-mno-cygwin*)
3102          ;;
3103        *)
3104          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3105          ;;
3106      esac
3107    fi ;;
3108esac
3109
3110# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3111if test x$COIN_PRJCT != x; then
3112  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3113fi
3114
3115# Try if CFLAGS works
3116save_CFLAGS="$CFLAGS"
3117cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127int i=0; i++;
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext conftest$ac_exeext
3133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3134  (eval $ac_link) 2>conftest.er1
3135  ac_status=$?
3136  grep -v '^ *+' conftest.er1 >conftest.err
3137  rm -f conftest.er1
3138  cat conftest.err >&5
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); } &&
3141         { ac_try='test -z "$ac_c_werror_flag"
3142                         || test ! -s conftest.err'
3143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144  (eval $ac_try) 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; } &&
3148         { ac_try='test -s conftest$ac_exeext'
3149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150  (eval $ac_try) 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; }; then
3154  :
3155else
3156  echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159CFLAGS=
3160fi
3161rm -f conftest.err conftest.$ac_objext \
3162      conftest$ac_exeext conftest.$ac_ext
3163if test -z "$CFLAGS"; then
3164  { 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
3165echo "$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;}
3166  CFLAGS='-O'
3167  cat >conftest.$ac_ext <<_ACEOF
3168/* confdefs.h.  */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h.  */
3173
3174int
3175main ()
3176{
3177int i=0; i++;
3178  ;
3179  return 0;
3180}
3181_ACEOF
3182rm -f conftest.$ac_objext conftest$ac_exeext
3183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184  (eval $ac_link) 2>conftest.er1
3185  ac_status=$?
3186  grep -v '^ *+' conftest.er1 >conftest.err
3187  rm -f conftest.er1
3188  cat conftest.err >&5
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); } &&
3191         { ac_try='test -z "$ac_c_werror_flag"
3192                         || test ! -s conftest.err'
3193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194  (eval $ac_try) 2>&5
3195  ac_status=$?
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); }; } &&
3198         { ac_try='test -s conftest$ac_exeext'
3199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200  (eval $ac_try) 2>&5
3201  ac_status=$?
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); }; }; then
3204  :
3205else
3206  echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209CFLAGS=
3210fi
3211rm -f conftest.err conftest.$ac_objext \
3212      conftest$ac_exeext conftest.$ac_ext
3213  if test -z "$CFLAGS"; then
3214    { 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
3215echo "$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;}
3216  fi
3217fi
3218
3219{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3220echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3221
3222
3223if test x"$MPICC" = x; then :; else
3224  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3225echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3226  CC="$MPICC"
3227fi
3228
3229# Correct the LD variable if we are using the MS or Intel-windows compiler
3230case "$CC" in
3231  clang* ) ;;
3232  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3233
3234 case $build in
3235  *-mingw*)
3236    if test "${LD+set}" = set; then :; else
3237      LD=link
3238    fi
3239    ;;
3240 esac
3241 if test $enable_msvc = yes ; then
3242   if test "x${LD+set}" = xset; then :; else
3243     LD=link
3244   fi
3245 fi
3246
3247    ;;
3248esac
3249
3250ac_ext=c
3251ac_cpp='$CPP $CPPFLAGS'
3252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255
3256
3257
3258 #Let's try if that overcomes configuration problem with VC++ 6.0
3259
3260ac_ext=cc
3261ac_cpp='$CXXCPP $CPPFLAGS'
3262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3265
3266
3267
3268
3269
3270
3271
3272coin_has_cxx=yes
3273
3274save_cxxflags="$CXXFLAGS"
3275# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3276case $build in
3277  *-cygwin* | *-mingw*)
3278      if test "$enable_msvc" = yes ; then
3279         comps="icl cl g++"
3280      else
3281         comps="g++ icl cl"
3282      fi ;;
3283  *-*-solaris*)
3284             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3285  *-darwin*) comps="g++ c++ CC" ;;
3286  *-linux-gnu*)
3287             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3288          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3289esac
3290
3291# We delete the cached value, since the test might not have been
3292# performed with our choice of compilers earlier
3293$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3294# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3295ac_ext=cc
3296ac_cpp='$CXXCPP $CPPFLAGS'
3297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3300if test -n "$ac_tool_prefix"; then
3301  for ac_prog in $CCC $comps
3302  do
3303    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3305echo "$as_me:$LINENO: checking for $ac_word" >&5
3306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307if test "${ac_cv_prog_CXX+set}" = set; then
3308  echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310  if test -n "$CXX"; then
3311  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318  for ac_exec_ext in '' $ac_executable_extensions; do
3319  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325done
3326
3327fi
3328fi
3329CXX=$ac_cv_prog_CXX
3330if test -n "$CXX"; then
3331  echo "$as_me:$LINENO: result: $CXX" >&5
3332echo "${ECHO_T}$CXX" >&6
3333else
3334  echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
3336fi
3337
3338    test -n "$CXX" && break
3339  done
3340fi
3341if test -z "$CXX"; then
3342  ac_ct_CXX=$CXX
3343  for ac_prog in $CCC $comps
3344do
3345  # Extract the first word of "$ac_prog", so it can be a program name with args.
3346set dummy $ac_prog; ac_word=$2
3347echo "$as_me:$LINENO: checking for $ac_word" >&5
3348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3350  echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352  if test -n "$ac_ct_CXX"; then
3353  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360  for ac_exec_ext in '' $ac_executable_extensions; do
3361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362    ac_cv_prog_ac_ct_CXX="$ac_prog"
3363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367done
3368
3369fi
3370fi
3371ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3372if test -n "$ac_ct_CXX"; then
3373  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3374echo "${ECHO_T}$ac_ct_CXX" >&6
3375else
3376  echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
3378fi
3379
3380  test -n "$ac_ct_CXX" && break
3381done
3382test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3383
3384  CXX=$ac_ct_CXX
3385fi
3386
3387
3388# Provide some information about the compiler.
3389echo "$as_me:$LINENO:" \
3390     "checking for C++ compiler version" >&5
3391ac_compiler=`set X $ac_compile; echo $2`
3392{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3393  (eval $ac_compiler --version </dev/null >&5) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }
3397{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3398  (eval $ac_compiler -v </dev/null >&5) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }
3402{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3403  (eval $ac_compiler -V </dev/null >&5) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }
3407
3408echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3409echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3410if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3411  echo $ECHO_N "(cached) $ECHO_C" >&6
3412else
3413  cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h.  */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423#ifndef __GNUC__
3424       choke me
3425#endif
3426
3427  ;
3428  return 0;
3429}
3430_ACEOF
3431rm -f conftest.$ac_objext
3432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433  (eval $ac_compile) 2>conftest.er1
3434  ac_status=$?
3435  grep -v '^ *+' conftest.er1 >conftest.err
3436  rm -f conftest.er1
3437  cat conftest.err >&5
3438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439  (exit $ac_status); } &&
3440         { ac_try='test -z "$ac_cxx_werror_flag"
3441                         || test ! -s conftest.err'
3442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443  (eval $ac_try) 2>&5
3444  ac_status=$?
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); }; } &&
3447         { ac_try='test -s conftest.$ac_objext'
3448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449  (eval $ac_try) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }; }; then
3453  ac_compiler_gnu=yes
3454else
3455  echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
3458ac_compiler_gnu=no
3459fi
3460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3461ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3462
3463fi
3464echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3465echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3466GXX=`test $ac_compiler_gnu = yes && echo yes`
3467ac_test_CXXFLAGS=${CXXFLAGS+set}
3468ac_save_CXXFLAGS=$CXXFLAGS
3469CXXFLAGS="-g"
3470echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3471echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3472if test "${ac_cv_prog_cxx_g+set}" = set; then
3473  echo $ECHO_N "(cached) $ECHO_C" >&6
3474else
3475  cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h.  */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h.  */
3481
3482int
3483main ()
3484{
3485
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492  (eval $ac_compile) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } &&
3499         { ac_try='test -z "$ac_cxx_werror_flag"
3500                         || test ! -s conftest.err'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; } &&
3506         { ac_try='test -s conftest.$ac_objext'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; }; then
3512  ac_cv_prog_cxx_g=yes
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517ac_cv_prog_cxx_g=no
3518fi
3519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520fi
3521echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3522echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3523if test "$ac_test_CXXFLAGS" = set; then
3524  CXXFLAGS=$ac_save_CXXFLAGS
3525elif test $ac_cv_prog_cxx_g = yes; then
3526  if test "$GXX" = yes; then
3527    CXXFLAGS="-g -O2"
3528  else
3529    CXXFLAGS="-g"
3530  fi
3531else
3532  if test "$GXX" = yes; then
3533    CXXFLAGS="-O2"
3534  else
3535    CXXFLAGS=
3536  fi
3537fi
3538for ac_declaration in \
3539   '' \
3540   'extern "C" void std::exit (int) throw (); using std::exit;' \
3541   'extern "C" void std::exit (int); using std::exit;' \
3542   'extern "C" void exit (int) throw ();' \
3543   'extern "C" void exit (int);' \
3544   'void exit (int);'
3545do
3546  cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h.  */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h.  */
3552$ac_declaration
3553#include <stdlib.h>
3554int
3555main ()
3556{
3557exit (42);
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562rm -f conftest.$ac_objext
3563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564  (eval $ac_compile) 2>conftest.er1
3565  ac_status=$?
3566  grep -v '^ *+' conftest.er1 >conftest.err
3567  rm -f conftest.er1
3568  cat conftest.err >&5
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); } &&
3571         { ac_try='test -z "$ac_cxx_werror_flag"
3572                         || test ! -s conftest.err'
3573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574  (eval $ac_try) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }; } &&
3578         { ac_try='test -s conftest.$ac_objext'
3579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580  (eval $ac_try) 2>&5
3581  ac_status=$?
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); }; }; then
3584  :
3585else
3586  echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589continue
3590fi
3591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592  cat >conftest.$ac_ext <<_ACEOF
3593/* confdefs.h.  */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h.  */
3598$ac_declaration
3599int
3600main ()
3601{
3602exit (42);
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609  (eval $ac_compile) 2>conftest.er1
3610  ac_status=$?
3611  grep -v '^ *+' conftest.er1 >conftest.err
3612  rm -f conftest.er1
3613  cat conftest.err >&5
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); } &&
3616         { ac_try='test -z "$ac_cxx_werror_flag"
3617                         || test ! -s conftest.err'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; } &&
3623         { ac_try='test -s conftest.$ac_objext'
3624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625  (eval $ac_try) 2>&5
3626  ac_status=$?
3627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); }; }; then
3629  break
3630else
3631  echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634fi
3635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636done
3637rm -f conftest*
3638if test -n "$ac_declaration"; then
3639  echo '#ifdef __cplusplus' >>confdefs.h
3640  echo $ac_declaration      >>confdefs.h
3641  echo '#endif'             >>confdefs.h
3642fi
3643
3644ac_ext=cc
3645ac_cpp='$CXXCPP $CPPFLAGS'
3646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3649
3650
3651#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3652#thus, we test here whether $CXX is actually working
3653ac_ext=cc
3654ac_cpp='$CXXCPP $CPPFLAGS'
3655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3658
3659echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3660echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3661cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h.  */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h.  */
3667
3668int
3669main ()
3670{
3671int i=0;
3672  ;
3673  return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext
3677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678  (eval $ac_compile) 2>conftest.er1
3679  ac_status=$?
3680  grep -v '^ *+' conftest.er1 >conftest.err
3681  rm -f conftest.er1
3682  cat conftest.err >&5
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); } &&
3685         { ac_try='test -z "$ac_cxx_werror_flag"
3686                         || test ! -s conftest.err'
3687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688  (eval $ac_try) 2>&5
3689  ac_status=$?
3690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); }; } &&
3692         { ac_try='test -s conftest.$ac_objext'
3693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694  (eval $ac_try) 2>&5
3695  ac_status=$?
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); }; }; then
3698  echo "$as_me:$LINENO: result: yes" >&5
3699echo "${ECHO_T}yes" >&6
3700else
3701  echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
3706   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3707echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3708   { (exit 1); exit 1; }; }
3709
3710fi
3711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3712ac_ext=cc
3713ac_cpp='$CXXCPP $CPPFLAGS'
3714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3717
3718
3719coin_cxx_is_cl=false
3720# It seems that we need to cleanup something here for the Windows
3721case "$CXX" in
3722  clang* ) ;;
3723  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3724    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3725    mv confdefs.hh confdefs.h
3726    coin_cxx_is_cl=true
3727    ;;
3728esac
3729
3730# add automake conditional so we can recognize cl compiler in makefile
3731
3732
3733if test $coin_cxx_is_cl = true; then
3734  COIN_CXX_IS_CL_TRUE=
3735  COIN_CXX_IS_CL_FALSE='#'
3736else
3737  COIN_CXX_IS_CL_TRUE='#'
3738  COIN_CXX_IS_CL_FALSE=
3739fi
3740
3741
3742# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3743case "$CXX" in
3744  clang* ) ;;
3745  cl* | */cl* | CL* | */CL* )
3746    if test "$ac_cv_prog_cxx_g" = yes ; then
3747      ac_cv_prog_cxx_g=no
3748      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3749echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3750    fi ;;
3751  * )
3752    CYGPATH_W=echo
3753    ;;
3754esac
3755CXXFLAGS="$save_cxxflags"
3756
3757# Check if a project specific CXXFLAGS variable has been set
3758if test x$COIN_PRJCT != x; then
3759  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3760  if test x$coin_tmp = xset; then
3761    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3762  fi
3763fi
3764
3765if test x"$CXXFLAGS" = x; then
3766
3767# ToDo decide whether we want -DNDEBUG for optimization
3768  coin_add_cxxflags=
3769  coin_opt_cxxflags=
3770  coin_dbg_cxxflags=
3771  coin_warn_cxxflags=
3772
3773  if test "$GXX" = "yes"; then
3774    case "$CXX" in
3775      icpc* | */icpc*)
3776        ;;
3777      *)
3778# ToDo decide about unroll-loops
3779        coin_opt_cxxflags="-O3"
3780        coin_add_cxxflags="-pipe"
3781        coin_dbg_cxxflags="-g -O0"
3782        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3783        case $build in
3784          *-darwin*)
3785            ;;
3786          *)
3787            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3788            ;;
3789        esac
3790    esac
3791  fi
3792
3793# Note that we do not need to cover GCC in the following tests.
3794
3795  if test -z "$coin_opt_cxxflags"; then
3796    case $build in
3797      *-cygwin* | *-mingw*)
3798        case "$CXX" in
3799          clang* ) ;;
3800          cl* | */cl* | CL* | */CL*)
3801            # The MT and MTd options are mutually exclusive
3802            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3803               coin_opt_cxxflags='-MD -O2'
3804               coin_dbg_cxxflags='-MDd'
3805            else
3806               coin_opt_cxxflags='-MT -O2'
3807               coin_dbg_cxxflags='-MTd'
3808            fi
3809            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3810            ;;
3811          icl* | */icl* | ICL* | */ICL*)
3812          # The MT and MTd options are mutually exclusive
3813            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3814              coin_opt_cxxflags='-MD -Ox'
3815              coin_dbg_cxxflags='-MDd -debug'
3816            else
3817              coin_opt_cxxflags='-MT -Ox'
3818              coin_dbg_cxxflags='-MTd -debug'
3819            fi
3820            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3821            ;;
3822        esac
3823        ;;
3824      *-linux-*)
3825        case "$CXX" in
3826          icpc* | */icpc*)
3827            coin_opt_cxxflags="-O3 -ip -mp1"
3828            coin_add_cxxflags=""
3829            coin_dbg_cxxflags="-g"
3830            # Check if -i_dynamic is necessary (for new glibc library)
3831            CXXFLAGS=
3832            cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h.  */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h.  */
3838
3839int
3840main ()
3841{
3842int i=0; i++;
3843  ;
3844  return 0;
3845}
3846_ACEOF
3847rm -f conftest.$ac_objext conftest$ac_exeext
3848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3849  (eval $ac_link) 2>conftest.er1
3850  ac_status=$?
3851  grep -v '^ *+' conftest.er1 >conftest.err
3852  rm -f conftest.er1
3853  cat conftest.err >&5
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); } &&
3856         { ac_try='test -z "$ac_cxx_werror_flag"
3857                         || test ! -s conftest.err'
3858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859  (eval $ac_try) 2>&5
3860  ac_status=$?
3861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); }; } &&
3863         { ac_try='test -s conftest$ac_exeext'
3864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865  (eval $ac_try) 2>&5
3866  ac_status=$?
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); }; }; then
3869  :
3870else
3871  echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3875fi
3876rm -f conftest.err conftest.$ac_objext \
3877      conftest$ac_exeext conftest.$ac_ext
3878            ;;
3879          pgCC* | */pgCC*)
3880            coin_opt_cxxflags="-fast"
3881            coin_add_cxxflags="-Kieee -pc 64"
3882            coin_dbg_cxxflags="-g"
3883            ;;
3884        esac
3885        ;;
3886      *-ibm-*)
3887        case "$CXX" in
3888          xlC* | */xlC* | mpxlC* | */mpxlC*)
3889            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3890            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3891            coin_dbg_cxxflags="-g"
3892            ;;
3893        esac
3894        ;;
3895      *-hp-*)
3896        case "$CXX" in
3897          aCC* | */aCC* )
3898            coin_opt_cxxflags="-O"
3899            coin_add_cxxflags="-AA"
3900            coin_dbg_cxxflags="-g"
3901            ;;
3902        esac
3903        ;;
3904      *-*-solaris*)
3905          coin_opt_cxxflags="-O4"
3906          coin_dbg_cxxflags="-g"
3907        ;;
3908    esac
3909  fi
3910
3911# Generic flag settings. If these don't work, add a case above.
3912
3913  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3914    coin_dbg_cxxflags="-g"
3915  fi
3916
3917  if test -z "$coin_opt_cxxflags"; then
3918    # Try if -O option works if nothing else is set
3919    CXXFLAGS=-O
3920    cat >conftest.$ac_ext <<_ACEOF
3921/* confdefs.h.  */
3922_ACEOF
3923cat confdefs.h >>conftest.$ac_ext
3924cat >>conftest.$ac_ext <<_ACEOF
3925/* end confdefs.h.  */
3926
3927int
3928main ()
3929{
3930int i=0; i++;
3931  ;
3932  return 0;
3933}
3934_ACEOF
3935rm -f conftest.$ac_objext conftest$ac_exeext
3936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3937  (eval $ac_link) 2>conftest.er1
3938  ac_status=$?
3939  grep -v '^ *+' conftest.er1 >conftest.err
3940  rm -f conftest.er1
3941  cat conftest.err >&5
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); } &&
3944         { ac_try='test -z "$ac_cxx_werror_flag"
3945                         || test ! -s conftest.err'
3946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947  (eval $ac_try) 2>&5
3948  ac_status=$?
3949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950  (exit $ac_status); }; } &&
3951         { ac_try='test -s conftest$ac_exeext'
3952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953  (eval $ac_try) 2>&5
3954  ac_status=$?
3955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956  (exit $ac_status); }; }; then
3957  coin_opt_cxxflags="-O"
3958else
3959  echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962fi
3963rm -f conftest.err conftest.$ac_objext \
3964      conftest$ac_exeext conftest.$ac_ext
3965  fi
3966
3967  # if PM doesn't want the warning messages, take them out
3968  if test x"$coin_skip_warn_cxxflags" = xyes; then
3969    coin_warn_cxxflags=
3970  fi
3971
3972# Do final setup of flags based on values determined above.
3973
3974  if test x${DBG_CXXFLAGS+set} != xset; then
3975    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3976  fi
3977  if test x${OPT_CXXFLAGS+set} != xset; then
3978    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3979  fi
3980
3981  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3982  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3983
3984  if test "$coin_debug_compile" = "true"; then
3985    CXXFLAGS="$DBG_CXXFLAGS"
3986  else
3987    CXXFLAGS="$OPT_CXXFLAGS"
3988  fi
3989
3990# Handle the case where CXXFLAGS was set externally.
3991else
3992  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3993  if test x${DBG_CXXFLAGS+set} != xset; then
3994    DBG_CXXFLAGS="$CXXFLAGS"
3995  fi
3996  if test x${OPT_CXXFLAGS+set} != xset; then
3997    OPT_CXXFLAGS="$CXXFLAGS"
3998  fi
3999fi
4000
4001# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4002
4003case "$CXXFLAGS" in
4004  *-mno-cygwin*)
4005    if test x${CPPFLAGS+set} != xset ; then
4006      CPPFLAGS="-mno-cygwin"
4007    else
4008      case "$CPPFLAGS" in
4009        *-mno-cygwin*)
4010          ;;
4011        *)
4012          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4013          ;;
4014      esac
4015    fi ;;
4016esac
4017
4018# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4019if test x$COIN_PRJCT != x; then
4020  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4021fi
4022
4023# Try if CXXFLAGS works
4024save_CXXFLAGS="$CXXFLAGS"
4025cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h.  */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h.  */
4031
4032int
4033main ()
4034{
4035int i=0; i++;
4036  ;
4037  return 0;
4038}
4039_ACEOF
4040rm -f conftest.$ac_objext conftest$ac_exeext
4041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042  (eval $ac_link) 2>conftest.er1
4043  ac_status=$?
4044  grep -v '^ *+' conftest.er1 >conftest.err
4045  rm -f conftest.er1
4046  cat conftest.err >&5
4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048  (exit $ac_status); } &&
4049         { ac_try='test -z "$ac_cxx_werror_flag"
4050                         || test ! -s conftest.err'
4051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052  (eval $ac_try) 2>&5
4053  ac_status=$?
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); }; } &&
4056         { ac_try='test -s conftest$ac_exeext'
4057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058  (eval $ac_try) 2>&5
4059  ac_status=$?
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); }; }; then
4062  :
4063else
4064  echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067CXXFLAGS=
4068fi
4069rm -f conftest.err conftest.$ac_objext \
4070      conftest$ac_exeext conftest.$ac_ext
4071if test -z "$CXXFLAGS"; then
4072  { 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
4073echo "$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;}
4074  CXXFLAGS='-O'
4075  cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h.  */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h.  */
4081
4082int
4083main ()
4084{
4085int i=0; i++;
4086  ;
4087  return 0;
4088}
4089_ACEOF
4090rm -f conftest.$ac_objext conftest$ac_exeext
4091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4092  (eval $ac_link) 2>conftest.er1
4093  ac_status=$?
4094  grep -v '^ *+' conftest.er1 >conftest.err
4095  rm -f conftest.er1
4096  cat conftest.err >&5
4097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098  (exit $ac_status); } &&
4099         { ac_try='test -z "$ac_cxx_werror_flag"
4100                         || test ! -s conftest.err'
4101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102  (eval $ac_try) 2>&5
4103  ac_status=$?
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); }; } &&
4106         { ac_try='test -s conftest$ac_exeext'
4107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108  (eval $ac_try) 2>&5
4109  ac_status=$?
4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111  (exit $ac_status); }; }; then
4112  :
4113else
4114  echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117CXXFLAGS=
4118fi
4119rm -f conftest.err conftest.$ac_objext \
4120      conftest$ac_exeext conftest.$ac_ext
4121  if test -z "$CXXFLAGS"; then
4122    { 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
4123echo "$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;}
4124  fi
4125fi
4126
4127{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4128echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4129
4130
4131if test x"$MPICXX" = x; then :; else
4132  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4133echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4134  CXX="$MPICXX"
4135fi
4136
4137# correct the LD variable in a mingw build with MS or intel compiler
4138case "$CXX" in
4139  clang* ) ;;
4140  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4141
4142 case $build in
4143  *-mingw*)
4144    if test "${LD+set}" = set; then :; else
4145      LD=link
4146    fi
4147    ;;
4148 esac
4149 if test $enable_msvc = yes ; then
4150   if test "x${LD+set}" = xset; then :; else
4151     LD=link
4152   fi
4153 fi
4154
4155    ;;
4156esac
4157
4158ac_ext=c
4159ac_cpp='$CPP $CPPFLAGS'
4160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163
4164
4165
4166# Initialize automake and libtool
4167{
4168
4169
4170
4171# START
4172
4173coin_disable_shared=no
4174# Test if force_shared has been set
4175if test "x" = xforce_shared; then
4176  if test x$enable_shared = xno; then
4177    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4178echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4179   { (exit 1); exit 1; }; }
4180  fi
4181  enable_shared=yes;
4182else
4183  # On Cygwin and AIX, building DLLs doesn't work
4184  case $build in
4185    *-cygwin* | *-mingw*)
4186      coin_disable_shared=yes
4187      if test x"$enable_shared" = xyes; then
4188        case "$CXX" in
4189          clang* )
4190            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4191echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4192            ;;
4193          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4194            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
4195echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
4196            ;;
4197          *)
4198            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4199echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4200            ;;
4201        esac
4202      fi
4203    ;;
4204    *-aix*)
4205      coin_disable_shared=yes
4206      platform=AIX
4207      if test x"$enable_shared" = xyes; then
4208        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4209echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4210      fi
4211    ;;
4212  esac
4213fi
4214if test x"$coin_disable_shared" = xyes; then
4215  if test x"$enable_shared" = xyes; then
4216    :
4217  else
4218    # we don't disable shared, because it was not selected anyway
4219    coin_disable_shared=no
4220  fi
4221  enable_shared=no
4222fi
4223# By default, we only want the shared objects to be compiled
4224# Check whether --enable-static or --disable-static was given.
4225if test "${enable_static+set}" = set; then
4226  enableval="$enable_static"
4227  p=${PACKAGE-default}
4228    case $enableval in
4229    yes) enable_static=yes ;;
4230    no) enable_static=no ;;
4231    *)
4232     enable_static=no
4233      # Look at the argument we got.  We use all the common list separators.
4234      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4235      for pkg in $enableval; do
4236        IFS="$lt_save_ifs"
4237        if test "X$pkg" = "X$p"; then
4238          enable_static=yes
4239        fi
4240      done
4241      IFS="$lt_save_ifs"
4242      ;;
4243    esac
4244else
4245  enable_static=no
4246fi;
4247
4248
4249
4250
4251# Initialize automake
4252echo "$as_me:$LINENO: checking for egrep" >&5
4253echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4254if test "${ac_cv_prog_egrep+set}" = set; then
4255  echo $ECHO_N "(cached) $ECHO_C" >&6
4256else
4257  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4258    then ac_cv_prog_egrep='grep -E'
4259    else ac_cv_prog_egrep='egrep'
4260    fi
4261fi
4262echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4263echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4264 EGREP=$ac_cv_prog_egrep
4265
4266
4267echo "$as_me:$LINENO: checking whether ln -s works" >&5
4268echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4269LN_S=$as_ln_s
4270if test "$LN_S" = "ln -s"; then
4271  echo "$as_me:$LINENO: result: yes" >&5
4272echo "${ECHO_T}yes" >&6
4273else
4274  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4275echo "${ECHO_T}no, using $LN_S" >&6
4276fi
4277
4278am__api_version="1.9"
4279# Find a good install program.  We prefer a C program (faster),
4280# so one script is as good as another.  But avoid the broken or
4281# incompatible versions:
4282# SysV /etc/install, /usr/sbin/install
4283# SunOS /usr/etc/install
4284# IRIX /sbin/install
4285# AIX /bin/install
4286# AmigaOS /C/install, which installs bootblocks on floppy discs
4287# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4288# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4289# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4290# OS/2's system install, which has a completely different semantic
4291# ./install, which can be erroneously created by make from ./install.sh.
4292echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4293echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4294if test -z "$INSTALL"; then
4295if test "${ac_cv_path_install+set}" = set; then
4296  echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH
4300do
4301  IFS=$as_save_IFS
4302  test -z "$as_dir" && as_dir=.
4303  # Account for people who put trailing slashes in PATH elements.
4304case $as_dir/ in
4305  ./ | .// | /cC/* | \
4306  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4307  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4308  /usr/ucb/* ) ;;
4309  *)
4310    # OSF1 and SCO ODT 3.0 have their own names for install.
4311    # Don't use installbsd from OSF since it installs stuff as root
4312    # by default.
4313    for ac_prog in ginstall scoinst install; do
4314      for ac_exec_ext in '' $ac_executable_extensions; do
4315        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4316          if test $ac_prog = install &&
4317            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4318            # AIX install.  It has an incompatible calling convention.
4319            :
4320          elif test $ac_prog = install &&
4321            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4322            # program-specific install script used by HP pwplus--don't use.
4323            :
4324          else
4325            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4326            break 3
4327          fi
4328        fi
4329      done
4330    done
4331    ;;
4332esac
4333done
4334
4335
4336fi
4337  if test "${ac_cv_path_install+set}" = set; then
4338    INSTALL=$ac_cv_path_install
4339  else
4340    # As a last resort, use the slow shell script.  We don't cache a
4341    # path for INSTALL within a source directory, because that will
4342    # break other packages using the cache if that directory is
4343    # removed, or if the path is relative.
4344    INSTALL=$ac_install_sh
4345  fi
4346fi
4347echo "$as_me:$LINENO: result: $INSTALL" >&5
4348echo "${ECHO_T}$INSTALL" >&6
4349
4350# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4351# It thinks the first close brace ends the variable substitution.
4352test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4353
4354test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4355
4356test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4357
4358echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4359echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4360# Just in case
4361sleep 1
4362echo timestamp > conftest.file
4363# Do `set' in a subshell so we don't clobber the current shell's
4364# arguments.  Must try -L first in case configure is actually a
4365# symlink; some systems play weird games with the mod time of symlinks
4366# (eg FreeBSD returns the mod time of the symlink's containing
4367# directory).
4368if (
4369   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4370   if test "$*" = "X"; then
4371      # -L didn't work.
4372      set X `ls -t $srcdir/configure conftest.file`
4373   fi
4374   rm -f conftest.file
4375   if test "$*" != "X $srcdir/configure conftest.file" \
4376      && test "$*" != "X conftest.file $srcdir/configure"; then
4377
4378      # If neither matched, then we have a broken ls.  This can happen
4379      # if, for instance, CONFIG_SHELL is bash and it inherits a
4380      # broken ls alias from the environment.  This has actually
4381      # happened.  Such a system could not be considered "sane".
4382      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4383alias in your environment" >&5
4384echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4385alias in your environment" >&2;}
4386   { (exit 1); exit 1; }; }
4387   fi
4388
4389   test "$2" = conftest.file
4390   )
4391then
4392   # Ok.
4393   :
4394else
4395   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4396Check your system clock" >&5
4397echo "$as_me: error: newly created file is older than distributed files!
4398Check your system clock" >&2;}
4399   { (exit 1); exit 1; }; }
4400fi
4401echo "$as_me:$LINENO: result: yes" >&5
4402echo "${ECHO_T}yes" >&6
4403test "$program_prefix" != NONE &&
4404  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4405# Use a double $ so make ignores it.
4406test "$program_suffix" != NONE &&
4407  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4408# Double any \ or $.  echo might interpret backslashes.
4409# By default was `s,x,x', remove it if useless.
4410cat <<\_ACEOF >conftest.sed
4411s/[\\$]/&&/g;s/;s,x,x,$//
4412_ACEOF
4413program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4414rm conftest.sed
4415
4416# expand $ac_aux_dir to an absolute path
4417am_aux_dir=`cd $ac_aux_dir && pwd`
4418
4419test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4420# Use eval to expand $SHELL
4421if eval "$MISSING --run true"; then
4422  am_missing_run="$MISSING --run "
4423else
4424  am_missing_run=
4425  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4426echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4427fi
4428
4429if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4430  # We used to keeping the `.' as first argument, in order to
4431  # allow $(mkdir_p) to be used without argument.  As in
4432  #   $(mkdir_p) $(somedir)
4433  # where $(somedir) is conditionally defined.  However this is wrong
4434  # for two reasons:
4435  #  1. if the package is installed by a user who cannot write `.'
4436  #     make install will fail,
4437  #  2. the above comment should most certainly read
4438  #     $(mkdir_p) $(DESTDIR)$(somedir)
4439  #     so it does not work when $(somedir) is undefined and
4440  #     $(DESTDIR) is not.
4441  #  To support the latter case, we have to write
4442  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4443  #  so the `.' trick is pointless.
4444  mkdir_p='mkdir -p --'
4445else
4446  # On NextStep and OpenStep, the `mkdir' command does not
4447  # recognize any option.  It will interpret all options as
4448  # directories to create, and then abort because `.' already
4449  # exists.
4450  for d in ./-p ./--version;
4451  do
4452    test -d $d && rmdir $d
4453  done
4454  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4455  if test -f "$ac_aux_dir/mkinstalldirs"; then
4456    mkdir_p='$(mkinstalldirs)'
4457  else
4458    mkdir_p='$(install_sh) -d'
4459  fi
4460fi
4461
4462for ac_prog in gawk mawk nawk awk
4463do
4464  # Extract the first word of "$ac_prog", so it can be a program name with args.
4465set dummy $ac_prog; ac_word=$2
4466echo "$as_me:$LINENO: checking for $ac_word" >&5
4467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4468if test "${ac_cv_prog_AWK+set}" = set; then
4469  echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471  if test -n "$AWK"; then
4472  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4473else
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477  IFS=$as_save_IFS
4478  test -z "$as_dir" && as_dir=.
4479  for ac_exec_ext in '' $ac_executable_extensions; do
4480  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481    ac_cv_prog_AWK="$ac_prog"
4482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483    break 2
4484  fi
4485done
4486done
4487
4488fi
4489fi
4490AWK=$ac_cv_prog_AWK
4491if test -n "$AWK"; then
4492  echo "$as_me:$LINENO: result: $AWK" >&5
4493echo "${ECHO_T}$AWK" >&6
4494else
4495  echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6
4497fi
4498
4499  test -n "$AWK" && break
4500done
4501
4502echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4503echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4504set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4505if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4506  echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508  cat >conftest.make <<\_ACEOF
4509all:
4510        @echo 'ac_maketemp="$(MAKE)"'
4511_ACEOF
4512# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4513eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4514if test -n "$ac_maketemp"; then
4515  eval ac_cv_prog_make_${ac_make}_set=yes
4516else
4517  eval ac_cv_prog_make_${ac_make}_set=no
4518fi
4519rm -f conftest.make
4520fi
4521if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4522  echo "$as_me:$LINENO: result: yes" >&5
4523echo "${ECHO_T}yes" >&6
4524  SET_MAKE=
4525else
4526  echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6
4528  SET_MAKE="MAKE=${MAKE-make}"
4529fi
4530
4531rm -rf .tst 2>/dev/null
4532mkdir .tst 2>/dev/null
4533if test -d .tst; then
4534  am__leading_dot=.
4535else
4536  am__leading_dot=_
4537fi
4538rmdir .tst 2>/dev/null
4539
4540DEPDIR="${am__leading_dot}deps"
4541
4542          ac_config_commands="$ac_config_commands depfiles"
4543
4544
4545am_make=${MAKE-make}
4546cat > confinc << 'END'
4547am__doit:
4548        @echo done
4549.PHONY: am__doit
4550END
4551# If we don't find an include directive, just comment out the code.
4552echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4553echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4554am__include="#"
4555am__quote=
4556_am_result=none
4557# First try GNU make style include.
4558echo "include confinc" > confmf
4559# We grep out `Entering directory' and `Leaving directory'
4560# messages which can occur if `w' ends up in MAKEFLAGS.
4561# In particular we don't look at `^make:' because GNU make might
4562# be invoked under some other name (usually "gmake"), in which
4563# case it prints its new name instead of `make'.
4564if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4565   am__include=include
4566   am__quote=
4567   _am_result=GNU
4568fi
4569# Now try BSD make style include.
4570if test "$am__include" = "#"; then
4571   echo '.include "confinc"' > confmf
4572   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4573      am__include=.include
4574      am__quote="\""
4575      _am_result=BSD
4576   fi
4577fi
4578
4579
4580echo "$as_me:$LINENO: result: $_am_result" >&5
4581echo "${ECHO_T}$_am_result" >&6
4582rm -f confinc confmf
4583
4584# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4585if test "${enable_dependency_tracking+set}" = set; then
4586  enableval="$enable_dependency_tracking"
4587
4588fi;
4589if test "x$enable_dependency_tracking" != xno; then
4590  am_depcomp="$ac_aux_dir/depcomp"
4591  AMDEPBACKSLASH='\'
4592fi
4593
4594
4595if test "x$enable_dependency_tracking" != xno; then
4596  AMDEP_TRUE=
4597  AMDEP_FALSE='#'
4598else
4599  AMDEP_TRUE='#'
4600  AMDEP_FALSE=
4601fi
4602
4603
4604
4605
4606
4607
4608# AC_MSG_NOTICE([Beginning automake initialisation.])
4609# Stuff for automake
4610# test to see if srcdir already configured
4611if test "`cd $srcdir && pwd`" != "`pwd`" &&
4612   test -f $srcdir/config.status; then
4613  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4614echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4615   { (exit 1); exit 1; }; }
4616fi
4617
4618# test whether we have cygpath
4619if test -z "$CYGPATH_W"; then
4620  if (cygpath --version) >/dev/null 2>/dev/null; then
4621    CYGPATH_W='cygpath -w'
4622  else
4623    CYGPATH_W=echo
4624  fi
4625fi
4626
4627
4628# Define the identity of the package.
4629 PACKAGE='clp'
4630 VERSION='1.15'
4631
4632
4633cat >>confdefs.h <<_ACEOF
4634#define PACKAGE "$PACKAGE"
4635_ACEOF
4636
4637
4638cat >>confdefs.h <<_ACEOF
4639#define VERSION "$VERSION"
4640_ACEOF
4641
4642# Some tools Automake needs.
4643
4644ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4645
4646
4647AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4648
4649
4650AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4651
4652
4653AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4654
4655
4656MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4657
4658install_sh=${install_sh-"$am_aux_dir/install-sh"}
4659
4660# Installed binaries are usually stripped using `strip' when the user
4661# run `make install-strip'.  However `strip' might not be the right
4662# tool to use in cross-compilation environments, therefore Automake
4663# will honor the `STRIP' environment variable to overrule this program.
4664if test "$cross_compiling" != no; then
4665  if test -n "$ac_tool_prefix"; then
4666  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4667set dummy ${ac_tool_prefix}strip; ac_word=$2
4668echo "$as_me:$LINENO: checking for $ac_word" >&5
4669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4670if test "${ac_cv_prog_STRIP+set}" = set; then
4671  echo $ECHO_N "(cached) $ECHO_C" >&6
4672else
4673  if test -n "$STRIP"; then
4674  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4675else
4676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
4678do
4679  IFS=$as_save_IFS
4680  test -z "$as_dir" && as_dir=.
4681  for ac_exec_ext in '' $ac_executable_extensions; do
4682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4683    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685    break 2
4686  fi
4687done
4688done
4689
4690fi
4691fi
4692STRIP=$ac_cv_prog_STRIP
4693if test -n "$STRIP"; then
4694  echo "$as_me:$LINENO: result: $STRIP" >&5
4695echo "${ECHO_T}$STRIP" >&6
4696else
4697  echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6
4699fi
4700
4701fi
4702if test -z "$ac_cv_prog_STRIP"; then
4703  ac_ct_STRIP=$STRIP
4704  # Extract the first word of "strip", so it can be a program name with args.
4705set dummy strip; ac_word=$2
4706echo "$as_me:$LINENO: checking for $ac_word" >&5
4707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4709  echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
4711  if test -n "$ac_ct_STRIP"; then
4712  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717  IFS=$as_save_IFS
4718  test -z "$as_dir" && as_dir=.
4719  for ac_exec_ext in '' $ac_executable_extensions; do
4720  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721    ac_cv_prog_ac_ct_STRIP="strip"
4722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723    break 2
4724  fi
4725done
4726done
4727
4728  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4729fi
4730fi
4731ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4732if test -n "$ac_ct_STRIP"; then
4733  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4734echo "${ECHO_T}$ac_ct_STRIP" >&6
4735else
4736  echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738fi
4739
4740  STRIP=$ac_ct_STRIP
4741else
4742  STRIP="$ac_cv_prog_STRIP"
4743fi
4744
4745fi
4746INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4747
4748# We need awk for the "check" target.  The system "awk" is bad on
4749# some platforms.
4750# Always define AMTAR for backward compatibility.
4751
4752AMTAR=${AMTAR-"${am_missing_run}tar"}
4753
4754am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4755
4756
4757
4758
4759depcc="$CC"   am_compiler_list=
4760
4761echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4762echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4763if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4764  echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4767  # We make a subdir and do the tests there.  Otherwise we can end up
4768  # making bogus files that we don't know about and never remove.  For
4769  # instance it was reported that on HP-UX the gcc test will end up
4770  # making a dummy file named `D' -- because `-MD' means `put the output
4771  # in D'.
4772  mkdir conftest.dir
4773  # Copy depcomp to subdir because otherwise we won't find it if we're
4774  # using a relative directory.
4775  cp "$am_depcomp" conftest.dir
4776  cd conftest.dir
4777  # We will build objects and dependencies in a subdirectory because
4778  # it helps to detect inapplicable dependency modes.  For instance
4779  # both Tru64's cc and ICC support -MD to output dependencies as a
4780  # side effect of compilation, but ICC will put the dependencies in
4781  # the current directory while Tru64 will put them in the object
4782  # directory.
4783  mkdir sub
4784
4785  am_cv_CC_dependencies_compiler_type=none
4786  if test "$am_compiler_list" = ""; then
4787     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4788  fi
4789  for depmode in $am_compiler_list; do
4790    # Setup a source with many dependencies, because some compilers
4791    # like to wrap large dependency lists on column 80 (with \), and
4792    # we should not choose a depcomp mode which is confused by this.
4793    #
4794    # We need to recreate these files for each test, as the compiler may
4795    # overwrite some of them when testing with obscure command lines.
4796    # This happens at least with the AIX C compiler.
4797    : > sub/conftest.c
4798    for i in 1 2 3 4 5 6; do
4799      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4800      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4801      # Solaris 8's {/usr,}/bin/sh.
4802      touch sub/conftst$i.h
4803    done
4804    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4805
4806    case $depmode in
4807    nosideeffect)
4808      # after this tag, mechanisms are not by side-effect, so they'll
4809      # only be used when explicitly requested
4810      if test "x$enable_dependency_tracking" = xyes; then
4811        continue
4812      else
4813        break
4814      fi
4815      ;;
4816    none) break ;;
4817    esac
4818    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4819    # mode.  It turns out that the SunPro C++ compiler does not properly
4820    # handle `-M -o', and we need to detect this.
4821    if depmode=$depmode \
4822       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4823       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4824       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4825         >/dev/null 2>conftest.err &&
4826       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4827       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4828       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4829      # icc doesn't choke on unknown options, it will just issue warnings
4830      # or remarks (even with -Werror).  So we grep stderr for any message
4831      # that says an option was ignored or not supported.
4832      # When given -MP, icc 7.0 and 7.1 complain thusly:
4833      #   icc: Command line warning: ignoring option '-M'; no argument required
4834      # The diagnosis changed in icc 8.0:
4835      #   icc: Command line remark: option '-MP' not supported
4836      if (grep 'ignoring option' conftest.err ||
4837          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4838        am_cv_CC_dependencies_compiler_type=$depmode
4839        break
4840      fi
4841    fi
4842  done
4843
4844  cd ..
4845  rm -rf conftest.dir
4846else
4847  am_cv_CC_dependencies_compiler_type=none
4848fi
4849
4850fi
4851echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4852echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4853CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4854
4855
4856
4857if
4858  test "x$enable_dependency_tracking" != xno \
4859  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4860  am__fastdepCC_TRUE=
4861  am__fastdepCC_FALSE='#'
4862else
4863  am__fastdepCC_TRUE='#'
4864  am__fastdepCC_FALSE=
4865fi
4866
4867
4868depcc="$CXX"  am_compiler_list=
4869
4870echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4871echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4872if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4873  echo $ECHO_N "(cached) $ECHO_C" >&6
4874else
4875  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4876  # We make a subdir and do the tests there.  Otherwise we can end up
4877  # making bogus files that we don't know about and never remove.  For
4878  # instance it was reported that on HP-UX the gcc test will end up
4879  # making a dummy file named `D' -- because `-MD' means `put the output
4880  # in D'.
4881  mkdir conftest.dir
4882  # Copy depcomp to subdir because otherwise we won't find it if we're
4883  # using a relative directory.
4884  cp "$am_depcomp" conftest.dir
4885  cd conftest.dir
4886  # We will build objects and dependencies in a subdirectory because
4887  # it helps to detect inapplicable dependency modes.  For instance
4888  # both Tru64's cc and ICC support -MD to output dependencies as a
4889  # side effect of compilation, but ICC will put the dependencies in
4890  # the current directory while Tru64 will put them in the object
4891  # directory.
4892  mkdir sub
4893
4894  am_cv_CXX_dependencies_compiler_type=none
4895  if test "$am_compiler_list" = ""; then
4896     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4897  fi
4898  for depmode in $am_compiler_list; do
4899    # Setup a source with many dependencies, because some compilers
4900    # like to wrap large dependency lists on column 80 (with \), and
4901    # we should not choose a depcomp mode which is confused by this.
4902    #
4903    # We need to recreate these files for each test, as the compiler may
4904    # overwrite some of them when testing with obscure command lines.
4905    # This happens at least with the AIX C compiler.
4906    : > sub/conftest.c
4907    for i in 1 2 3 4 5 6; do
4908      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4909      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4910      # Solaris 8's {/usr,}/bin/sh.
4911      touch sub/conftst$i.h
4912    done
4913    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4914
4915    case $depmode in
4916    nosideeffect)
4917      # after this tag, mechanisms are not by side-effect, so they'll
4918      # only be used when explicitly requested
4919      if test "x$enable_dependency_tracking" = xyes; then
4920        continue
4921      else
4922        break
4923      fi
4924      ;;
4925    none) break ;;
4926    esac
4927    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4928    # mode.  It turns out that the SunPro C++ compiler does not properly
4929    # handle `-M -o', and we need to detect this.
4930    if depmode=$depmode \
4931       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4932       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4934         >/dev/null 2>conftest.err &&
4935       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4936       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4937       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4938      # icc doesn't choke on unknown options, it will just issue warnings
4939      # or remarks (even with -Werror).  So we grep stderr for any message
4940      # that says an option was ignored or not supported.
4941      # When given -MP, icc 7.0 and 7.1 complain thusly:
4942      #   icc: Command line warning: ignoring option '-M'; no argument required
4943      # The diagnosis changed in icc 8.0:
4944      #   icc: Command line remark: option '-MP' not supported
4945      if (grep 'ignoring option' conftest.err ||
4946          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4947        am_cv_CXX_dependencies_compiler_type=$depmode
4948        break
4949      fi
4950    fi
4951  done
4952
4953  cd ..
4954  rm -rf conftest.dir
4955else
4956  am_cv_CXX_dependencies_compiler_type=none
4957fi
4958
4959fi
4960echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4961echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4962CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4963
4964
4965
4966if
4967  test "x$enable_dependency_tracking" != xno \
4968  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4969  am__fastdepCXX_TRUE=
4970  am__fastdepCXX_FALSE='#'
4971else
4972  am__fastdepCXX_TRUE='#'
4973  am__fastdepCXX_FALSE=
4974fi
4975
4976
4977
4978echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4979echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4980    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4981if test "${enable_maintainer_mode+set}" = set; then
4982  enableval="$enable_maintainer_mode"
4983  USE_MAINTAINER_MODE=$enableval
4984else
4985  USE_MAINTAINER_MODE=no
4986fi;
4987  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4988echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4989
4990
4991if test $USE_MAINTAINER_MODE = yes; then
4992  MAINTAINER_MODE_TRUE=
4993  MAINTAINER_MODE_FALSE='#'
4994else
4995  MAINTAINER_MODE_TRUE='#'
4996  MAINTAINER_MODE_FALSE=
4997fi
4998
4999  MAINT=$MAINTAINER_MODE_TRUE
5000
5001
5002
5003coin_have_externals=no
5004if test "$enable_maintainer_mode" = yes; then
5005
5006  # If maintainer mode is chosen, we make sure that the correct versions
5007  # of the tools are used, and that we know where libtool.m4 is (to
5008  # recreate acinclude.m4)
5009
5010
5011  LIBTOOLM4=
5012  # Normally, $HOME
5013  AUTOTOOLS_DFLT=$HOME
5014
5015  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5016echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5017if test "${ac_cv_use_correct_autotools+set}" = set; then
5018  echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020  ac_cv_use_correct_autotools=check
5021fi
5022echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5023echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5024
5025  if test $ac_cv_use_correct_autotools = check; then
5026    ac_cv_use_correct_autotools=yes
5027    # Check if we have autoconf
5028    # Extract the first word of "autoconf", so it can be a program name with args.
5029set dummy autoconf; ac_word=$2
5030echo "$as_me:$LINENO: checking for $ac_word" >&5
5031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032if test "${ac_cv_prog_have_autoconf+set}" = set; then
5033  echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035  if test -n "$have_autoconf"; then
5036  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041  IFS=$as_save_IFS
5042  test -z "$as_dir" && as_dir=.
5043  for ac_exec_ext in '' $ac_executable_extensions; do
5044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045    ac_cv_prog_have_autoconf="yes"
5046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047    break 2
5048  fi
5049done
5050done
5051
5052  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5053fi
5054fi
5055have_autoconf=$ac_cv_prog_have_autoconf
5056if test -n "$have_autoconf"; then
5057  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5058echo "${ECHO_T}$have_autoconf" >&6
5059else
5060  echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062fi
5063
5064    if test $have_autoconf = no; then
5065      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5066echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5067   { (exit 1); exit 1; }; }
5068    fi
5069
5070    # Check whether autoconf is the correct version
5071    correct_version='2.59'
5072    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5073    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5074echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5075    autoconf --version > confauto.out 2>&1
5076    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5077      echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079    else
5080      rm -f confauto.out
5081      echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6
5083      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5084echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5085   { (exit 1); exit 1; }; }
5086    fi
5087    rm -f confauto.out
5088
5089    # Check if the executable autoconf is picked up from the correct location
5090    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5091echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5092    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5093    autoconf_dir=`cd $autoconf_dir; pwd`
5094    if test x$AUTOTOOLS_DIR = x; then
5095      want_dir=$AUTOTOOLS_DFLT/bin
5096    else
5097      want_dir=$AUTOTOOLS_DIR/bin
5098    fi
5099    if test $autoconf_dir = `cd $want_dir; pwd`; then
5100      echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
5102    else
5103      rm -f confauto.out
5104      echo "$as_me:$LINENO: result: no" >&5
5105echo "${ECHO_T}no" >&6
5106      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5107echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5108   { (exit 1); exit 1; }; }
5109    fi
5110
5111    # Check if we have automake
5112    # Extract the first word of "automake", so it can be a program name with args.
5113set dummy automake; ac_word=$2
5114echo "$as_me:$LINENO: checking for $ac_word" >&5
5115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5116if test "${ac_cv_prog_have_automake+set}" = set; then
5117  echo $ECHO_N "(cached) $ECHO_C" >&6
5118else
5119  if test -n "$have_automake"; then
5120  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125  IFS=$as_save_IFS
5126  test -z "$as_dir" && as_dir=.
5127  for ac_exec_ext in '' $ac_executable_extensions; do
5128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129    ac_cv_prog_have_automake="yes"
5130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131    break 2
5132  fi
5133done
5134done
5135
5136  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5137fi
5138fi
5139have_automake=$ac_cv_prog_have_automake
5140if test -n "$have_automake"; then
5141  echo "$as_me:$LINENO: result: $have_automake" >&5
5142echo "${ECHO_T}$have_automake" >&6
5143else
5144  echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
5146fi
5147
5148    if test $have_automake = no; then
5149      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5150echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5151   { (exit 1); exit 1; }; }
5152    fi
5153
5154    # Check whether automake is the correct version
5155    correct_version='1.9.6'
5156    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5157    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5158echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5159    automake --version > confauto.out 2>&1
5160    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5161      echo "$as_me:$LINENO: result: yes" >&5
5162echo "${ECHO_T}yes" >&6
5163    else
5164      rm -f confauto.out
5165      echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5168echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5169   { (exit 1); exit 1; }; }
5170    fi
5171    rm -f confauto.out
5172
5173    # Check if the executable automake is picked up from the correct location
5174    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5175echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5176    automake_dir=`which automake | sed -e 's=/automake=='`
5177    automake_dir=`cd $automake_dir; pwd`
5178    if test x$AUTOTOOLS_DIR = x; then
5179      want_dir=$AUTOTOOLS_DFLT/bin
5180    else
5181      want_dir=$AUTOTOOLS_DIR/bin
5182    fi
5183    if test $automake_dir = `cd $want_dir; pwd`; then
5184      echo "$as_me:$LINENO: result: yes" >&5
5185echo "${ECHO_T}yes" >&6
5186    else
5187      rm -f confauto.out
5188      echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5191echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5192   { (exit 1); exit 1; }; }
5193    fi
5194
5195    # Check if this is the correct version of libtool (with escaped dots)
5196    if test x$AUTOTOOLS_DIR = x; then
5197      want_dir=$AUTOTOOLS_DFLT/share
5198    else
5199      want_dir=$AUTOTOOLS_DIR/share
5200    fi
5201    correct_version='1.5.22'
5202    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5203    if test -r $want_dir/libtool/ltmain.sh; then
5204  have_ltmain=yes
5205  :
5206else
5207  have_ltmain=no
5208  :
5209fi
5210
5211    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5212echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5213    if test $have_ltmain = yes; then
5214    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5215        echo "$as_me:$LINENO: result: yes" >&5
5216echo "${ECHO_T}yes" >&6
5217      else
5218        echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5221echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5222   { (exit 1); exit 1; }; }
5223      fi
5224    else
5225      echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
5227      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5228echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5229   { (exit 1); exit 1; }; }
5230    fi
5231  fi
5232
5233  # Check if we can find the libtool file
5234  if test x$AUTOTOOLS_DIR = x; then
5235    want_dir=$AUTOTOOLS_DFLT/share
5236  else
5237    want_dir=$AUTOTOOLS_DIR/share
5238  fi
5239  if test -r $want_dir/aclocal/libtool.m4; then
5240  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5241  :
5242else
5243  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5244echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5245   { (exit 1); exit 1; }; }
5246  :
5247fi
5248
5249
5250  # Check if we have an Dependencies file
5251  if test -r $srcdir/Dependencies; then
5252    coin_have_externals=yes
5253  fi
5254  # Check if subversion is installed and understands https
5255  # Extract the first word of "svn", so it can be a program name with args.
5256set dummy svn; ac_word=$2
5257echo "$as_me:$LINENO: checking for $ac_word" >&5
5258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259if test "${ac_cv_prog_have_svn+set}" = set; then
5260  echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262  if test -n "$have_svn"; then
5263  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268  IFS=$as_save_IFS
5269  test -z "$as_dir" && as_dir=.
5270  for ac_exec_ext in '' $ac_executable_extensions; do
5271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272    ac_cv_prog_have_svn="yes"
5273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274    break 2
5275  fi
5276done
5277done
5278
5279  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5280fi
5281fi
5282have_svn=$ac_cv_prog_have_svn
5283if test -n "$have_svn"; then
5284  echo "$as_me:$LINENO: result: $have_svn" >&5
5285echo "${ECHO_T}$have_svn" >&6
5286else
5287  echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
5289fi
5290
5291  if test x$have_svn = xyes; then
5292    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5293echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5294if test "${ac_cv_svn_understands_https+set}" = set; then
5295  echo $ECHO_N "(cached) $ECHO_C" >&6
5296else
5297  svn --version > confauto.out 2>&1
5298                    if $EGREP https confauto.out >/dev/null 2>&1; then
5299                      ac_cv_svn_understands_https=yes
5300                    else
5301                      ac_cv_svn_understands_https=no
5302                      have_svn=no
5303                      ac_cv_prog_have_svn=no
5304                    fi
5305                    rm -f confauto.out
5306fi
5307echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5308echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5309  fi
5310
5311  # Find the location of the BuildTools directory
5312  BUILDTOOLSDIR=
5313  if test -r $srcdir/BuildTools/coin.m4; then
5314    BUILDTOOLSDIR=$srcdir/BuildTools
5315  else
5316    if test -r $srcdir/../BuildTools/coin.m4; then
5317      BUILDTOOLSDIR=$srcdir/../BuildTools
5318    else
5319      if test -r $srcdir/../../BuildTools/coin.m4; then
5320        BUILDTOOLSDIR=$srcdir/../../BuildTools
5321      else
5322        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5323echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5324   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5325      fi
5326    fi
5327  fi
5328
5329
5330  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5331  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5332    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5333  fi
5334
5335  # The following variable is set to the name of the directory where
5336  # the autotool scripts are located
5337
5338  AUX_DIR=$ac_aux_dir
5339fi
5340
5341# helpful variable for the base directory of this package
5342abs_source_dir=`cd $srcdir; pwd`
5343
5344
5345# Stuff for example Makefiles
5346if test x$prefix = xNONE; then
5347  full_prefix=$ac_default_prefix
5348else
5349  full_prefix=$prefix
5350fi
5351full_prefix=`cd $full_prefix ; pwd`
5352
5353abs_lib_dir=$full_prefix/lib
5354
5355abs_include_dir=$full_prefix/include
5356
5357abs_bin_dir=$full_prefix/bin
5358
5359
5360
5361if test $coin_have_externals = yes && test x$have_svn = xyes; then
5362  HAVE_EXTERNALS_TRUE=
5363  HAVE_EXTERNALS_FALSE='#'
5364else
5365  HAVE_EXTERNALS_TRUE='#'
5366  HAVE_EXTERNALS_FALSE=
5367fi
5368
5369
5370# AC_MSG_NOTICE([End automake initialisation.])
5371
5372
5373
5374LIBTOOL=
5375if test -r ../libtool; then
5376  coin_config_dir=..
5377  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5378fi
5379if test "x$LIBTOOL" = x; then
5380  if test -r ../../libtool; then
5381    coin_config_dir=../..
5382    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5383  fi
5384fi
5385
5386if test "x$LIBTOOL" = x; then
5387# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5388  # Stuff for libtool
5389  # Check whether --enable-shared or --disable-shared was given.
5390if test "${enable_shared+set}" = set; then
5391  enableval="$enable_shared"
5392  p=${PACKAGE-default}
5393    case $enableval in
5394    yes) enable_shared=yes ;;
5395    no) enable_shared=no ;;
5396    *)
5397      enable_shared=no
5398      # Look at the argument we got.  We use all the common list separators.
5399      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5400      for pkg in $enableval; do
5401        IFS="$lt_save_ifs"
5402        if test "X$pkg" = "X$p"; then
5403          enable_shared=yes
5404        fi
5405      done
5406      IFS="$lt_save_ifs"
5407      ;;
5408    esac
5409else
5410  enable_shared=yes
5411fi;
5412
5413# Check whether --enable-fast-install or --disable-fast-install was given.
5414if test "${enable_fast_install+set}" = set; then
5415  enableval="$enable_fast_install"
5416  p=${PACKAGE-default}
5417    case $enableval in
5418    yes) enable_fast_install=yes ;;
5419    no) enable_fast_install=no ;;
5420    *)
5421      enable_fast_install=no
5422      # Look at the argument we got.  We use all the common list separators.
5423      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5424      for pkg in $enableval; do
5425        IFS="$lt_save_ifs"
5426        if test "X$pkg" = "X$p"; then
5427          enable_fast_install=yes
5428        fi
5429      done
5430      IFS="$lt_save_ifs"
5431      ;;
5432    esac
5433else
5434  enable_fast_install=yes
5435fi;
5436
5437echo "$as_me:$LINENO: checking host system type" >&5
5438echo $ECHO_N "checking host system type... $ECHO_C" >&6
5439if test "${ac_cv_host+set}" = set; then
5440  echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442  ac_cv_host_alias=$host_alias
5443test -z "$ac_cv_host_alias" &&
5444  ac_cv_host_alias=$ac_cv_build_alias
5445ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5446  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5447echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5448   { (exit 1); exit 1; }; }
5449
5450fi
5451echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5452echo "${ECHO_T}$ac_cv_host" >&6
5453host=$ac_cv_host
5454host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5455host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5456host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5457
5458
5459echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5460echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5461if test "${lt_cv_path_SED+set}" = set; then
5462  echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464  # Loop through the user's path and test for sed and gsed.
5465# Then use that list of sed's as ones to test for truncation.
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469  IFS=$as_save_IFS
5470  test -z "$as_dir" && as_dir=.
5471  for lt_ac_prog in sed gsed; do
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5474        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5475      fi
5476    done
5477  done
5478done
5479lt_ac_max=0
5480lt_ac_count=0
5481# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5482# along with /bin/sed that truncates output.
5483for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5484  test ! -f $lt_ac_sed && continue
5485  cat /dev/null > conftest.in
5486  lt_ac_count=0
5487  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5488  # Check for GNU sed and select it if it is found.
5489  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5490    lt_cv_path_SED=$lt_ac_sed
5491    break
5492  fi
5493  while true; do
5494    cat conftest.in conftest.in >conftest.tmp
5495    mv conftest.tmp conftest.in
5496    cp conftest.in conftest.nl
5497    echo >>conftest.nl
5498    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5499    cmp -s conftest.out conftest.nl || break
5500    # 10000 chars as input seems more than enough
5501    test $lt_ac_count -gt 10 && break
5502    lt_ac_count=`expr $lt_ac_count + 1`
5503    if test $lt_ac_count -gt $lt_ac_max; then
5504      lt_ac_max=$lt_ac_count
5505      lt_cv_path_SED=$lt_ac_sed
5506    fi
5507  done
5508done
5509
5510fi
5511
5512SED=$lt_cv_path_SED
5513echo "$as_me:$LINENO: result: $SED" >&5
5514echo "${ECHO_T}$SED" >&6
5515
5516
5517# Check whether --with-gnu-ld or --without-gnu-ld was given.
5518if test "${with_gnu_ld+set}" = set; then
5519  withval="$with_gnu_ld"
5520  test "$withval" = no || with_gnu_ld=yes
5521else
5522  with_gnu_ld=no
5523fi;
5524ac_prog=ld
5525if test "$GCC" = yes; then
5526  # Check if gcc -print-prog-name=ld gives a path.
5527  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5528echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5529  case $host in
5530  *-*-mingw*)
5531    # gcc leaves a trailing carriage return which upsets mingw
5532    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5533  *)
5534    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5535  esac
5536  case $ac_prog in
5537    # Accept absolute paths.
5538    [\\/]* | ?:[\\/]*)
5539      re_direlt='/[^/][^/]*/\.\./'
5540      # Canonicalize the pathname of ld
5541      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5542      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5543        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5544      done
5545      test -z "$LD" && LD="$ac_prog"
5546      ;;
5547  "")
5548    # If it fails, then pretend we aren't using GCC.
5549    ac_prog=ld
5550    ;;
5551  *)
5552    # If it is relative, then search for the first ld in PATH.
5553    with_gnu_ld=unknown
5554    ;;
5555  esac
5556elif test "$with_gnu_ld" = yes; then
5557  echo "$as_me:$LINENO: checking for GNU ld" >&5
5558echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5559else
5560  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5561echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5562fi
5563if test "${lt_cv_path_LD+set}" = set; then
5564  echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566  if test -z "$LD"; then
5567  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5568  for ac_dir in $PATH; do
5569    IFS="$lt_save_ifs"
5570    test -z "$ac_dir" && ac_dir=.
5571    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5572      lt_cv_path_LD="$ac_dir/$ac_prog"
5573      # Check to see if the program is GNU ld.  I'd rather use --version,
5574      # but apparently some variants of GNU ld only accept -v.
5575      # Break only if it was the GNU/non-GNU ld that we prefer.
5576      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5577      *GNU* | *'with BFD'*)
5578        test "$with_gnu_ld" != no && break
5579        ;;
5580      *)
5581        test "$with_gnu_ld" != yes && break
5582        ;;
5583      esac
5584    fi
5585  done
5586  IFS="$lt_save_ifs"
5587else
5588  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5589fi
5590fi
5591
5592LD="$lt_cv_path_LD"
5593if test -n "$LD"; then
5594  echo "$as_me:$LINENO: result: $LD" >&5
5595echo "${ECHO_T}$LD" >&6
5596else
5597  echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6
5599fi
5600test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5601echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5602   { (exit 1); exit 1; }; }
5603echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5604echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5605if test "${lt_cv_prog_gnu_ld+set}" = set; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5609case `$LD -v 2>&1 </dev/null` in
5610*GNU* | *'with BFD'*)
5611  lt_cv_prog_gnu_ld=yes
5612  ;;
5613*)
5614  lt_cv_prog_gnu_ld=no
5615  ;;
5616esac
5617fi
5618echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5619echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5620with_gnu_ld=$lt_cv_prog_gnu_ld
5621
5622
5623echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5624echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5625if test "${lt_cv_ld_reload_flag+set}" = set; then
5626  echo $ECHO_N "(cached) $ECHO_C" >&6
5627else
5628  lt_cv_ld_reload_flag='-r'
5629fi
5630echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5631echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5632reload_flag=$lt_cv_ld_reload_flag
5633case $reload_flag in
5634"" | " "*) ;;
5635*) reload_flag=" $reload_flag" ;;
5636esac
5637reload_cmds='$LD$reload_flag -o $output$reload_objs'
5638case $host_os in
5639  darwin*)
5640    if test "$GCC" = yes; then
5641      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5642    else
5643      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5644    fi
5645    ;;
5646esac
5647
5648echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5649echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5650if test "${lt_cv_path_NM+set}" = set; then
5651  echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653  if test -n "$NM"; then
5654  # Let the user override the test.
5655  lt_cv_path_NM="$NM"
5656else
5657  lt_nm_to_check="${ac_tool_prefix}nm"
5658  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5659    lt_nm_to_check="$lt_nm_to_check nm"
5660  fi
5661  for lt_tmp_nm in $lt_nm_to_check; do
5662    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5663    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5664      IFS="$lt_save_ifs"
5665      test -z "$ac_dir" && ac_dir=.
5666      tmp_nm="$ac_dir/$lt_tmp_nm"
5667      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5668        # Check to see if the nm accepts a BSD-compat flag.
5669        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5670        #   nm: unknown option "B" ignored
5671        # Tru64's nm complains that /dev/null is an invalid object file
5672        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5673        */dev/null* | *'Invalid file or object type'*)
5674          lt_cv_path_NM="$tmp_nm -B"
5675          break
5676          ;;
5677        *)
5678          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5679          */dev/null*)
5680            lt_cv_path_NM="$tmp_nm -p"
5681            break
5682            ;;
5683          *)
5684            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5685            continue # so that we can try to find one that supports BSD flags
5686            ;;
5687          esac
5688          ;;
5689        esac
5690      fi
5691    done
5692    IFS="$lt_save_ifs"
5693  done
5694  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5695fi
5696fi
5697echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5698echo "${ECHO_T}$lt_cv_path_NM" >&6
5699NM="$lt_cv_path_NM"
5700
5701echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5702echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5703if test "${lt_cv_deplibs_check_method+set}" = set; then
5704  echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706  lt_cv_file_magic_cmd='$MAGIC_CMD'
5707lt_cv_file_magic_test_file=
5708lt_cv_deplibs_check_method='unknown'
5709# Need to set the preceding variable on all platforms that support
5710# interlibrary dependencies.
5711# 'none' -- dependencies not supported.
5712# `unknown' -- same as none, but documents that we really don't know.
5713# 'pass_all' -- all dependencies passed with no checks.
5714# 'test_compile' -- check by making test program.
5715# 'file_magic [[regex]]' -- check by looking for files in library path
5716# which responds to the $file_magic_cmd with a given extended regex.
5717# If you have `file' or equivalent on your system and you're not sure
5718# whether `pass_all' will *always* work, you probably want this one.
5719
5720case $host_os in
5721aix4* | aix5*)
5722  lt_cv_deplibs_check_method=pass_all
5723  ;;
5724
5725beos*)
5726  lt_cv_deplibs_check_method=pass_all
5727  ;;
5728
5729bsdi[45]*)
5730  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5731  lt_cv_file_magic_cmd='/usr/bin/file -L'
5732  lt_cv_file_magic_test_file=/shlib/libc.so
5733  ;;
5734
5735cygwin*)
5736  # func_win32_libid is a shell function defined in ltmain.sh
5737  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5738  lt_cv_file_magic_cmd='func_win32_libid'
5739  ;;
5740
5741mingw* | pw32*)
5742  # Base MSYS/MinGW do not provide the 'file' command needed by
5743  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5744  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5745  lt_cv_file_magic_cmd='$OBJDUMP -f'
5746  ;;
5747
5748darwin* | rhapsody*)
5749  lt_cv_deplibs_check_method=pass_all
5750  ;;
5751
5752freebsd* | kfreebsd*-gnu | dragonfly*)
5753  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5754    case $host_cpu in
5755    i*86 )
5756      # Not sure whether the presence of OpenBSD here was a mistake.
5757      # Let's accept both of them until this is cleared up.
5758      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5759      lt_cv_file_magic_cmd=/usr/bin/file
5760      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5761      ;;
5762    esac
5763  else
5764    lt_cv_deplibs_check_method=pass_all
5765  fi
5766  ;;
5767
5768gnu*)
5769  lt_cv_deplibs_check_method=pass_all
5770  ;;
5771
5772hpux10.20* | hpux11*)
5773  lt_cv_file_magic_cmd=/usr/bin/file
5774  case $host_cpu in
5775  ia64*)
5776    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5777    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5778    ;;
5779  hppa*64*)
5780    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]'
5781    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5782    ;;
5783  *)
5784    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5785    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5786    ;;
5787  esac
5788  ;;
5789
5790interix3*)
5791  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5792  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5793  ;;
5794
5795irix5* | irix6* | nonstopux*)
5796  case $LD in
5797  *-32|*"-32 ") libmagic=32-bit;;
5798  *-n32|*"-n32 ") libmagic=N32;;
5799  *-64|*"-64 ") libmagic=64-bit;;
5800  *) libmagic=never-match;;
5801  esac
5802  lt_cv_deplibs_check_method=pass_all
5803  ;;
5804
5805# This must be Linux ELF.
5806linux*)
5807  lt_cv_deplibs_check_method=pass_all
5808  ;;
5809
5810netbsd*)
5811  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5812    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5813  else
5814    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5815  fi
5816  ;;
5817
5818newos6*)
5819  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5820  lt_cv_file_magic_cmd=/usr/bin/file
5821  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5822  ;;
5823
5824nto-qnx*)
5825  lt_cv_deplibs_check_method=unknown
5826  ;;
5827
5828openbsd*)
5829  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5830    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5831  else
5832    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5833  fi
5834  ;;
5835
5836osf3* | osf4* | osf5*)
5837  lt_cv_deplibs_check_method=pass_all
5838  ;;
5839
5840solaris*)
5841  lt_cv_deplibs_check_method=pass_all
5842  ;;
5843
5844sysv4 | sysv4.3*)
5845  case $host_vendor in
5846  motorola)
5847    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]'
5848    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5849    ;;
5850  ncr)
5851    lt_cv_deplibs_check_method=pass_all
5852    ;;
5853  sequent)
5854    lt_cv_file_magic_cmd='/bin/file'
5855    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5856    ;;
5857  sni)
5858    lt_cv_file_magic_cmd='/bin/file'
5859    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5860    lt_cv_file_magic_test_file=/lib/libc.so
5861    ;;
5862  siemens)
5863    lt_cv_deplibs_check_method=pass_all
5864    ;;
5865  pc)
5866    lt_cv_deplibs_check_method=pass_all
5867    ;;
5868  esac
5869  ;;
5870
5871sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5872  lt_cv_deplibs_check_method=pass_all
5873  ;;
5874esac
5875
5876fi
5877echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5878echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5879file_magic_cmd=$lt_cv_file_magic_cmd
5880deplibs_check_method=$lt_cv_deplibs_check_method
5881test -z "$deplibs_check_method" && deplibs_check_method=unknown
5882
5883
5884
5885
5886# If no C compiler was specified, use CC.
5887LTCC=${LTCC-"$CC"}
5888
5889# If no C compiler flags were specified, use CFLAGS.
5890LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5891
5892# Allow CC to be a program name with arguments.
5893compiler=$CC
5894
5895# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5896if test "${enable_libtool_lock+set}" = set; then
5897  enableval="$enable_libtool_lock"
5898
5899fi;
5900test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5901
5902# Some flags need to be propagated to the compiler or linker for good
5903# libtool support.
5904case $host in
5905ia64-*-hpux*)
5906  # Find out which ABI we are using.
5907  echo 'int i;' > conftest.$ac_ext
5908  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909  (eval $ac_compile) 2>&5
5910  ac_status=$?
5911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); }; then
5913    case `/usr/bin/file conftest.$ac_objext` in
5914    *ELF-32*)
5915      HPUX_IA64_MODE="32"
5916      ;;
5917    *ELF-64*)
5918      HPUX_IA64_MODE="64"
5919      ;;
5920    esac
5921  fi
5922  rm -rf conftest*
5923  ;;
5924*-*-irix6*)
5925  # Find out which ABI we are using.
5926  echo '#line 5926 "configure"' > conftest.$ac_ext
5927  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928  (eval $ac_compile) 2>&5
5929  ac_status=$?
5930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931  (exit $ac_status); }; then
5932   if test "$lt_cv_prog_gnu_ld" = yes; then
5933    case `/usr/bin/file conftest.$ac_objext` in
5934    *32-bit*)
5935      LD="${LD-ld} -melf32bsmip"
5936      ;;
5937    *N32*)
5938      LD="${LD-ld} -melf32bmipn32"
5939      ;;
5940    *64-bit*)
5941      LD="${LD-ld} -melf64bmip"
5942      ;;
5943    esac
5944   else
5945    case `/usr/bin/file conftest.$ac_objext` in
5946    *32-bit*)
5947      LD="${LD-ld} -32"
5948      ;;
5949    *N32*)
5950      LD="${LD-ld} -n32"
5951      ;;
5952    *64-bit*)
5953      LD="${LD-ld} -64"
5954      ;;
5955    esac
5956   fi
5957  fi
5958  rm -rf conftest*
5959  ;;
5960
5961x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5962  # Find out which ABI we are using.
5963  echo 'int i;' > conftest.$ac_ext
5964  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965  (eval $ac_compile) 2>&5
5966  ac_status=$?
5967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968  (exit $ac_status); }; then
5969    case `/usr/bin/file conftest.o` in
5970    *32-bit*)
5971      case $host in
5972        x86_64-*linux*)
5973          LD="${LD-ld} -m elf_i386"
5974          ;;
5975        ppc64-*linux*|powerpc64-*linux*)
5976          LD="${LD-ld} -m elf32ppclinux"
5977          ;;
5978        s390x-*linux*)
5979          LD="${LD-ld} -m elf_s390"
5980          ;;
5981        sparc64-*linux*)
5982          LD="${LD-ld} -m elf32_sparc"
5983          ;;
5984      esac
5985      ;;
5986    *64-bit*)
5987      case $host in
5988        x86_64-*linux*)
5989          LD="${LD-ld} -m elf_x86_64"
5990          ;;
5991        ppc*-*linux*|powerpc*-*linux*)
5992          LD="${LD-ld} -m elf64ppc"
5993          ;;
5994        s390*-*linux*)
5995          LD="${LD-ld} -m elf64_s390"
5996          ;;
5997        sparc*-*linux*)
5998          LD="${LD-ld} -m elf64_sparc"
5999          ;;
6000      esac
6001      ;;
6002    esac
6003  fi
6004  rm -rf conftest*
6005  ;;
6006
6007*-*-sco3.2v5*)
6008  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6009  SAVE_CFLAGS="$CFLAGS"
6010  CFLAGS="$CFLAGS -belf"
6011  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6012echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6013if test "${lt_cv_cc_needs_belf+set}" = set; then
6014  echo $ECHO_N "(cached) $ECHO_C" >&6
6015else
6016  ac_ext=c
6017ac_cpp='$CPP $CPPFLAGS'
6018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022     cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h.  */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h.  */
6028
6029int
6030main ()
6031{
6032
6033  ;
6034  return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext conftest$ac_exeext
6038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039  (eval $ac_link) 2>conftest.er1
6040  ac_status=$?
6041  grep -v '^ *+' conftest.er1 >conftest.err
6042  rm -f conftest.er1
6043  cat conftest.err >&5
6044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); } &&
6046         { ac_try='test -z "$ac_c_werror_flag"
6047                         || test ! -s conftest.err'
6048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049  (eval $ac_try) 2>&5
6050  ac_status=$?
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); }; } &&
6053         { ac_try='test -s conftest$ac_exeext'
6054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055  (eval $ac_try) 2>&5
6056  ac_status=$?
6057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058  (exit $ac_status); }; }; then
6059  lt_cv_cc_needs_belf=yes
6060else
6061  echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064lt_cv_cc_needs_belf=no
6065fi
6066rm -f conftest.err conftest.$ac_objext \
6067      conftest$ac_exeext conftest.$ac_ext
6068     ac_ext=c
6069ac_cpp='$CPP $CPPFLAGS'
6070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072ac_compiler_gnu=$ac_cv_c_compiler_gnu
6073
6074fi
6075echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6076echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6077  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6078    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6079    CFLAGS="$SAVE_CFLAGS"
6080  fi
6081  ;;
6082sparc*-*solaris*)
6083  # Find out which ABI we are using.
6084  echo 'int i;' > conftest.$ac_ext
6085  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086  (eval $ac_compile) 2>&5
6087  ac_status=$?
6088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089  (exit $ac_status); }; then
6090    case `/usr/bin/file conftest.o` in
6091    *64-bit*)
6092      case $lt_cv_prog_gnu_ld in
6093      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6094      *)    LD="${LD-ld} -64" ;;
6095      esac
6096      ;;
6097    esac
6098  fi
6099  rm -rf conftest*
6100  ;;
6101
6102
6103esac
6104
6105need_locks="$enable_libtool_lock"
6106
6107
6108ac_ext=c
6109ac_cpp='$CPP $CPPFLAGS'
6110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6112ac_compiler_gnu=$ac_cv_c_compiler_gnu
6113echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6114echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6115# On Suns, sometimes $CPP names a directory.
6116if test -n "$CPP" && test -d "$CPP"; then
6117  CPP=
6118fi
6119if test -z "$CPP"; then
6120  if test "${ac_cv_prog_CPP+set}" = set; then
6121  echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123      # Double quotes because CPP needs to be expanded
6124    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6125    do
6126      ac_preproc_ok=false
6127for ac_c_preproc_warn_flag in '' yes
6128do
6129  # Use a header file that comes with gcc, so configuring glibc
6130  # with a fresh cross-compiler works.
6131  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6132  # <limits.h> exists even on freestanding compilers.
6133  # On the NeXT, cc -E runs the code through the compiler's parser,
6134  # not just through cpp. "Syntax error" is here to catch this case.
6135  cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h.  */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h.  */
6141#ifdef __STDC__
6142# include <limits.h>
6143#else
6144# include <assert.h>
6145#endif
6146                     Syntax error
6147_ACEOF
6148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150  ac_status=$?
6151  grep -v '^ *+' conftest.er1 >conftest.err
6152  rm -f conftest.er1
6153  cat conftest.err >&5
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); } >/dev/null; then
6156  if test -s conftest.err; then
6157    ac_cpp_err=$ac_c_preproc_warn_flag
6158    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6159  else
6160    ac_cpp_err=
6161  fi
6162else
6163  ac_cpp_err=yes
6164fi
6165if test -z "$ac_cpp_err"; then
6166  :
6167else
6168  echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
6171  # Broken: fails on valid input.
6172continue
6173fi
6174rm -f conftest.err conftest.$ac_ext
6175
6176  # OK, works on sane cases.  Now check whether non-existent headers
6177  # can be detected and how.
6178  cat >conftest.$ac_ext <<_ACEOF
6179/* confdefs.h.  */
6180_ACEOF
6181cat confdefs.h >>conftest.$ac_ext
6182cat >>conftest.$ac_ext <<_ACEOF
6183/* end confdefs.h.  */
6184#include <ac_nonexistent.h>
6185_ACEOF
6186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6187  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6188  ac_status=$?
6189  grep -v '^ *+' conftest.er1 >conftest.err
6190  rm -f conftest.er1
6191  cat conftest.err >&5
6192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193  (exit $ac_status); } >/dev/null; then
6194  if test -s conftest.err; then
6195    ac_cpp_err=$ac_c_preproc_warn_flag
6196    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6197  else
6198    ac_cpp_err=
6199  fi
6200else
6201  ac_cpp_err=yes
6202fi
6203if test -z "$ac_cpp_err"; then
6204  # Broken: success on invalid input.
6205continue
6206else
6207  echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210  # Passes both tests.
6211ac_preproc_ok=:
6212break
6213fi
6214rm -f conftest.err conftest.$ac_ext
6215
6216done
6217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6218rm -f conftest.err conftest.$ac_ext
6219if $ac_preproc_ok; then
6220  break
6221fi
6222
6223    done
6224    ac_cv_prog_CPP=$CPP
6225
6226fi
6227  CPP=$ac_cv_prog_CPP
6228else
6229  ac_cv_prog_CPP=$CPP
6230fi
6231echo "$as_me:$LINENO: result: $CPP" >&5
6232echo "${ECHO_T}$CPP" >&6
6233ac_preproc_ok=false
6234for ac_c_preproc_warn_flag in '' yes
6235do
6236  # Use a header file that comes with gcc, so configuring glibc
6237  # with a fresh cross-compiler works.
6238  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6239  # <limits.h> exists even on freestanding compilers.
6240  # On the NeXT, cc -E runs the code through the compiler's parser,
6241  # not just through cpp. "Syntax error" is here to catch this case.
6242  cat >conftest.$ac_ext <<_ACEOF
6243/* confdefs.h.  */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h.  */
6248#ifdef __STDC__
6249# include <limits.h>
6250#else
6251# include <assert.h>
6252#endif
6253                     Syntax error
6254_ACEOF
6255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6256  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6257  ac_status=$?
6258  grep -v '^ *+' conftest.er1 >conftest.err
6259  rm -f conftest.er1
6260  cat conftest.err >&5
6261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262  (exit $ac_status); } >/dev/null; then
6263  if test -s conftest.err; then
6264    ac_cpp_err=$ac_c_preproc_warn_flag
6265    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6266  else
6267    ac_cpp_err=
6268  fi
6269else
6270  ac_cpp_err=yes
6271fi
6272if test -z "$ac_cpp_err"; then
6273  :
6274else
6275  echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278  # Broken: fails on valid input.
6279continue
6280fi
6281rm -f conftest.err conftest.$ac_ext
6282
6283  # OK, works on sane cases.  Now check whether non-existent headers
6284  # can be detected and how.
6285  cat >conftest.$ac_ext <<_ACEOF
6286/* confdefs.h.  */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h.  */
6291#include <ac_nonexistent.h>
6292_ACEOF
6293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6295  ac_status=$?
6296  grep -v '^ *+' conftest.er1 >conftest.err
6297  rm -f conftest.er1
6298  cat conftest.err >&5
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); } >/dev/null; then
6301  if test -s conftest.err; then
6302    ac_cpp_err=$ac_c_preproc_warn_flag
6303    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6304  else
6305    ac_cpp_err=
6306  fi
6307else
6308  ac_cpp_err=yes
6309fi
6310if test -z "$ac_cpp_err"; then
6311  # Broken: success on invalid input.
6312continue
6313else
6314  echo "$as_me: failed program was:" >&5
6315sed 's/^/| /' conftest.$ac_ext >&5
6316
6317  # Passes both tests.
6318ac_preproc_ok=:
6319break
6320fi
6321rm -f conftest.err conftest.$ac_ext
6322
6323done
6324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6325rm -f conftest.err conftest.$ac_ext
6326if $ac_preproc_ok; then
6327  :
6328else
6329  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6330See \`config.log' for more details." >&5
6331echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6332See \`config.log' for more details." >&2;}
6333   { (exit 1); exit 1; }; }
6334fi
6335
6336ac_ext=c
6337ac_cpp='$CPP $CPPFLAGS'
6338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341
6342
6343echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6344echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6345if test "${ac_cv_header_stdc+set}" = set; then
6346  echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
6348  cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h.  */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h.  */
6354#include <stdlib.h>
6355#include <stdarg.h>
6356#include <string.h>
6357#include <float.h>
6358
6359int
6360main ()
6361{
6362
6363  ;
6364  return 0;
6365}
6366_ACEOF
6367rm -f conftest.$ac_objext
6368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369  (eval $ac_compile) 2>conftest.er1
6370  ac_status=$?
6371  grep -v '^ *+' conftest.er1 >conftest.err
6372  rm -f conftest.er1
6373  cat conftest.err >&5
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); } &&
6376         { ac_try='test -z "$ac_c_werror_flag"
6377                         || test ! -s conftest.err'
6378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379  (eval $ac_try) 2>&5
6380  ac_status=$?
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); }; } &&
6383         { ac_try='test -s conftest.$ac_objext'
6384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385  (eval $ac_try) 2>&5
6386  ac_status=$?
6387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388  (exit $ac_status); }; }; then
6389  ac_cv_header_stdc=yes
6390else
6391  echo "$as_me: failed program was:" >&5
6392sed 's/^/| /' conftest.$ac_ext >&5
6393
6394ac_cv_header_stdc=no
6395fi
6396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397
6398if test $ac_cv_header_stdc = yes; then
6399  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6400  cat >conftest.$ac_ext <<_ACEOF
6401/* confdefs.h.  */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h.  */
6406#include <string.h>
6407
6408_ACEOF
6409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410  $EGREP "memchr" >/dev/null 2>&1; then
6411  :
6412else
6413  ac_cv_header_stdc=no
6414fi
6415rm -f conftest*
6416
6417fi
6418
6419if test $ac_cv_header_stdc = yes; then
6420  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6421  cat >conftest.$ac_ext <<_ACEOF
6422/* confdefs.h.  */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h.  */
6427#include <stdlib.h>
6428
6429_ACEOF
6430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431  $EGREP "free" >/dev/null 2>&1; then
6432  :
6433else
6434  ac_cv_header_stdc=no
6435fi
6436rm -f conftest*
6437
6438fi
6439
6440if test $ac_cv_header_stdc = yes; then
6441  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6442  if test "$cross_compiling" = yes; then
6443  :
6444else
6445  cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h.  */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h.  */
6451#include <ctype.h>
6452#if ((' ' & 0x0FF) == 0x020)
6453# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6454# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6455#else
6456# define ISLOWER(c) \
6457                   (('a' <= (c) && (c) <= 'i') \
6458                     || ('j' <= (c) && (c) <= 'r') \
6459                     || ('s' <= (c) && (c) <= 'z'))
6460# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6461#endif
6462
6463#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6464int
6465main ()
6466{
6467  int i;
6468  for (i = 0; i < 256; i++)
6469    if (XOR (islower (i), ISLOWER (i))
6470        || toupper (i) != TOUPPER (i))
6471      exit(2);
6472  exit (0);
6473}
6474_ACEOF
6475rm -f conftest$ac_exeext
6476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6477  (eval $ac_link) 2>&5
6478  ac_status=$?
6479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482  (eval $ac_try) 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; }; then
6486  :
6487else
6488  echo "$as_me: program exited with status $ac_status" >&5
6489echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492( exit $ac_status )
6493ac_cv_header_stdc=no
6494fi
6495rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6496fi
6497fi
6498fi
6499echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6500echo "${ECHO_T}$ac_cv_header_stdc" >&6
6501if test $ac_cv_header_stdc = yes; then
6502
6503cat >>confdefs.h <<\_ACEOF
6504#define STDC_HEADERS 1
6505_ACEOF
6506
6507fi
6508
6509# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6520                  inttypes.h stdint.h unistd.h
6521do
6522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6523echo "$as_me:$LINENO: checking for $ac_header" >&5
6524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6525if eval "test \"\${$as_ac_Header+set}\" = set"; then
6526  echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528  cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h.  */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h.  */
6534$ac_includes_default
6535
6536#include <$ac_header>
6537_ACEOF
6538rm -f conftest.$ac_objext
6539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540  (eval $ac_compile) 2>conftest.er1
6541  ac_status=$?
6542  grep -v '^ *+' conftest.er1 >conftest.err
6543  rm -f conftest.er1
6544  cat conftest.err >&5
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); } &&
6547         { ac_try='test -z "$ac_c_werror_flag"
6548                         || test ! -s conftest.err'
6549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550  (eval $ac_try) 2>&5
6551  ac_status=$?
6552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553  (exit $ac_status); }; } &&
6554         { ac_try='test -s conftest.$ac_objext'
6555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556  (eval $ac_try) 2>&5
6557  ac_status=$?
6558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559  (exit $ac_status); }; }; then
6560  eval "$as_ac_Header=yes"
6561else
6562  echo "$as_me: failed program was:" >&5
6563sed 's/^/| /' conftest.$ac_ext >&5
6564
6565eval "$as_ac_Header=no"
6566fi
6567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6568fi
6569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6571if test `eval echo '${'$as_ac_Header'}'` = yes; then
6572  cat >>confdefs.h <<_ACEOF
6573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6574_ACEOF
6575
6576fi
6577
6578done
6579
6580
6581
6582for ac_header in dlfcn.h
6583do
6584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6585if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586  echo "$as_me:$LINENO: checking for $ac_header" >&5
6587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6588if eval "test \"\${$as_ac_Header+set}\" = set"; then
6589  echo $ECHO_N "(cached) $ECHO_C" >&6
6590fi
6591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593else
6594  # Is the header compilable?
6595echo "$as_me:$LINENO: checking $ac_header usability" >&5
6596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6597cat >conftest.$ac_ext <<_ACEOF
6598/* confdefs.h.  */
6599_ACEOF
6600cat confdefs.h >>conftest.$ac_ext
6601cat >>conftest.$ac_ext <<_ACEOF
6602/* end confdefs.h.  */
6603$ac_includes_default
6604#include <$ac_header>
6605_ACEOF
6606rm -f conftest.$ac_objext
6607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608  (eval $ac_compile) 2>conftest.er1
6609  ac_status=$?
6610  grep -v '^ *+' conftest.er1 >conftest.err
6611  rm -f conftest.er1
6612  cat conftest.err >&5
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); } &&
6615         { ac_try='test -z "$ac_c_werror_flag"
6616                         || test ! -s conftest.err'
6617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618  (eval $ac_try) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; } &&
6622         { ac_try='test -s conftest.$ac_objext'
6623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624  (eval $ac_try) 2>&5
6625  ac_status=$?
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }; }; then
6628  ac_header_compiler=yes
6629else
6630  echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633ac_header_compiler=no
6634fi
6635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6636echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6637echo "${ECHO_T}$ac_header_compiler" >&6
6638
6639# Is the header present?
6640echo "$as_me:$LINENO: checking $ac_header presence" >&5
6641echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6642cat >conftest.$ac_ext <<_ACEOF
6643/* confdefs.h.  */
6644_ACEOF
6645cat confdefs.h >>conftest.$ac_ext
6646cat >>conftest.$ac_ext <<_ACEOF
6647/* end confdefs.h.  */
6648#include <$ac_header>
6649_ACEOF
6650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6651  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6652  ac_status=$?
6653  grep -v '^ *+' conftest.er1 >conftest.err
6654  rm -f conftest.er1
6655  cat conftest.err >&5
6656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657  (exit $ac_status); } >/dev/null; then
6658  if test -s conftest.err; then
6659    ac_cpp_err=$ac_c_preproc_warn_flag
6660    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6661  else
6662    ac_cpp_err=
6663  fi
6664else
6665  ac_cpp_err=yes
6666fi
6667if test -z "$ac_cpp_err"; then
6668  ac_header_preproc=yes
6669else
6670  echo "$as_me: failed program was:" >&5
6671sed 's/^/| /' conftest.$ac_ext >&5
6672
6673  ac_header_preproc=no
6674fi
6675rm -f conftest.err conftest.$ac_ext
6676echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6677echo "${ECHO_T}$ac_header_preproc" >&6
6678
6679# So?  What about this header?
6680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6681  yes:no: )
6682    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6683echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6684    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6685echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6686    ac_header_preproc=yes
6687    ;;
6688  no:yes:* )
6689    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6690echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6691    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6692echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6693    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6694echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6695    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6696echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6697    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6698echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6699    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6700echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6701    (
6702      cat <<\_ASBOX
6703## ----------------------------------- ##
6704## Report this to clp@list.coin-or.org ##
6705## ----------------------------------- ##
6706_ASBOX
6707    ) |
6708      sed "s/^/$as_me: WARNING:     /" >&2
6709    ;;
6710esac
6711echo "$as_me:$LINENO: checking for $ac_header" >&5
6712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6713if eval "test \"\${$as_ac_Header+set}\" = set"; then
6714  echo $ECHO_N "(cached) $ECHO_C" >&6
6715else
6716  eval "$as_ac_Header=\$ac_header_preproc"
6717fi
6718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6720
6721fi
6722if test `eval echo '${'$as_ac_Header'}'` = yes; then
6723  cat >>confdefs.h <<_ACEOF
6724#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6725_ACEOF
6726
6727fi
6728
6729done
6730
6731
6732
6733if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6734    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6735    (test "X$CXX" != "Xg++"))) ; then
6736  ac_ext=cc
6737ac_cpp='$CXXCPP $CPPFLAGS'
6738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6741echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6742echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6743if test -z "$CXXCPP"; then
6744  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6745  echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747      # Double quotes because CXXCPP needs to be expanded
6748    for CXXCPP in "$CXX -E" "/lib/cpp"
6749    do
6750      ac_preproc_ok=false
6751for ac_cxx_preproc_warn_flag in '' yes
6752do
6753  # Use a header file that comes with gcc, so configuring glibc
6754  # with a fresh cross-compiler works.
6755  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6756  # <limits.h> exists even on freestanding compilers.
6757  # On the NeXT, cc -E runs the code through the compiler's parser,
6758  # not just through cpp. "Syntax error" is here to catch this case.
6759  cat >conftest.$ac_ext <<_ACEOF
6760/* confdefs.h.  */
6761_ACEOF
6762cat confdefs.h >>conftest.$ac_ext
6763cat >>conftest.$ac_ext <<_ACEOF
6764/* end confdefs.h.  */
6765#ifdef __STDC__
6766# include <limits.h>
6767#else
6768# include <assert.h>
6769#endif
6770                     Syntax error
6771_ACEOF
6772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6773  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6774  ac_status=$?
6775  grep -v '^ *+' conftest.er1 >conftest.err
6776  rm -f conftest.er1
6777  cat conftest.err >&5
6778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779  (exit $ac_status); } >/dev/null; then
6780  if test -s conftest.err; then
6781    ac_cpp_err=$ac_cxx_preproc_warn_flag
6782    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6783  else
6784    ac_cpp_err=
6785  fi
6786else
6787  ac_cpp_err=yes
6788fi
6789if test -z "$ac_cpp_err"; then
6790  :
6791else
6792  echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795  # Broken: fails on valid input.
6796continue
6797fi
6798rm -f conftest.err conftest.$ac_ext
6799
6800  # OK, works on sane cases.  Now check whether non-existent headers
6801  # can be detected and how.
6802  cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h.  */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h.  */
6808#include <ac_nonexistent.h>
6809_ACEOF
6810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6811  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
6818  if test -s conftest.err; then
6819    ac_cpp_err=$ac_cxx_preproc_warn_flag
6820    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6821  else
6822    ac_cpp_err=
6823  fi
6824else
6825  ac_cpp_err=yes
6826fi
6827if test -z "$ac_cpp_err"; then
6828  # Broken: success on invalid input.
6829continue
6830else
6831  echo "$as_me: failed program was:" >&5
6832sed 's/^/| /' conftest.$ac_ext >&5
6833
6834  # Passes both tests.
6835ac_preproc_ok=:
6836break
6837fi
6838rm -f conftest.err conftest.$ac_ext
6839
6840done
6841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6842rm -f conftest.err conftest.$ac_ext
6843if $ac_preproc_ok; then
6844  break
6845fi
6846
6847    done
6848    ac_cv_prog_CXXCPP=$CXXCPP
6849
6850fi
6851  CXXCPP=$ac_cv_prog_CXXCPP
6852else
6853  ac_cv_prog_CXXCPP=$CXXCPP
6854fi
6855echo "$as_me:$LINENO: result: $CXXCPP" >&5
6856echo "${ECHO_T}$CXXCPP" >&6
6857ac_preproc_ok=false
6858for ac_cxx_preproc_warn_flag in '' yes
6859do
6860  # Use a header file that comes with gcc, so configuring glibc
6861  # with a fresh cross-compiler works.
6862  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6863  # <limits.h> exists even on freestanding compilers.
6864  # On the NeXT, cc -E runs the code through the compiler's parser,
6865  # not just through cpp. "Syntax error" is here to catch this case.
6866  cat >conftest.$ac_ext <<_ACEOF
6867/* confdefs.h.  */
6868_ACEOF
6869cat confdefs.h >>conftest.$ac_ext
6870cat >>conftest.$ac_ext <<_ACEOF
6871/* end confdefs.h.  */
6872#ifdef __STDC__
6873# include <limits.h>
6874#else
6875# include <assert.h>
6876#endif
6877                     Syntax error
6878_ACEOF
6879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6880  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6881  ac_status=$?
6882  grep -v '^ *+' conftest.er1 >conftest.err
6883  rm -f conftest.er1
6884  cat conftest.err >&5
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); } >/dev/null; then
6887  if test -s conftest.err; then
6888    ac_cpp_err=$ac_cxx_preproc_warn_flag
6889    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6890  else
6891    ac_cpp_err=
6892  fi
6893else
6894  ac_cpp_err=yes
6895fi
6896if test -z "$ac_cpp_err"; then
6897  :
6898else
6899  echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902  # Broken: fails on valid input.
6903continue
6904fi
6905rm -f conftest.err conftest.$ac_ext
6906
6907  # OK, works on sane cases.  Now check whether non-existent headers
6908  # can be detected and how.
6909  cat >conftest.$ac_ext <<_ACEOF
6910/* confdefs.h.  */
6911_ACEOF
6912cat confdefs.h >>conftest.$ac_ext
6913cat >>conftest.$ac_ext <<_ACEOF
6914/* end confdefs.h.  */
6915#include <ac_nonexistent.h>
6916_ACEOF
6917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6918  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6919  ac_status=$?
6920  grep -v '^ *+' conftest.er1 >conftest.err
6921  rm -f conftest.er1
6922  cat conftest.err >&5
6923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924  (exit $ac_status); } >/dev/null; then
6925  if test -s conftest.err; then
6926    ac_cpp_err=$ac_cxx_preproc_warn_flag
6927    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6928  else
6929    ac_cpp_err=
6930  fi
6931else
6932  ac_cpp_err=yes
6933fi
6934if test -z "$ac_cpp_err"; then
6935  # Broken: success on invalid input.
6936continue
6937else
6938  echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941  # Passes both tests.
6942ac_preproc_ok=:
6943break
6944fi
6945rm -f conftest.err conftest.$ac_ext
6946
6947done
6948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6949rm -f conftest.err conftest.$ac_ext
6950if $ac_preproc_ok; then
6951  :
6952else
6953  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6954See \`config.log' for more details." >&5
6955echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6956See \`config.log' for more details." >&2;}
6957   { (exit 1); exit 1; }; }
6958fi
6959
6960ac_ext=cc
6961ac_cpp='$CXXCPP $CPPFLAGS'
6962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6965
6966fi
6967
6968ac_ext=f
6969ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6970ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6972if test -n "$ac_tool_prefix"; then
6973  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6974  do
6975    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6977echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6979if test "${ac_cv_prog_F77+set}" = set; then
6980  echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982  if test -n "$F77"; then
6983  ac_cv_prog_F77="$F77" # Let the user override the test.
6984else
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988  IFS=$as_save_IFS
6989  test -z "$as_dir" && as_dir=.
6990  for ac_exec_ext in '' $ac_executable_extensions; do
6991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994    break 2
6995  fi
6996done
6997done
6998
6999fi
7000fi
7001F77=$ac_cv_prog_F77
7002if test -n "$F77"; then
7003  echo "$as_me:$LINENO: result: $F77" >&5
7004echo "${ECHO_T}$F77" >&6
7005else
7006  echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
7008fi
7009
7010    test -n "$F77" && break
7011  done
7012fi
7013if test -z "$F77"; then
7014  ac_ct_F77=$F77
7015  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7016do
7017  # Extract the first word of "$ac_prog", so it can be a program name with args.
7018set dummy $ac_prog; ac_word=$2
7019echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7021if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7022  echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024  if test -n "$ac_ct_F77"; then
7025  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032  for ac_exec_ext in '' $ac_executable_extensions; do
7033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034    ac_cv_prog_ac_ct_F77="$ac_prog"
7035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036    break 2
7037  fi
7038done
7039done
7040
7041fi
7042fi
7043ac_ct_F77=$ac_cv_prog_ac_ct_F77
7044if test -n "$ac_ct_F77"; then
7045  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7046echo "${ECHO_T}$ac_ct_F77" >&6
7047else
7048  echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6
7050fi
7051
7052  test -n "$ac_ct_F77" && break
7053done
7054
7055  F77=$ac_ct_F77
7056fi
7057
7058
7059# Provide some information about the compiler.
7060echo "$as_me:7060:" \
7061     "checking for Fortran 77 compiler version" >&5
7062ac_compiler=`set X $ac_compile; echo $2`
7063{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7064  (eval $ac_compiler --version </dev/null >&5) 2>&5
7065  ac_status=$?
7066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067  (exit $ac_status); }
7068{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7069  (eval $ac_compiler -v </dev/null >&5) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }
7073{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7074  (eval $ac_compiler -V </dev/null >&5) 2>&5
7075  ac_status=$?
7076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077  (exit $ac_status); }
7078rm -f a.out
7079
7080# If we don't use `.F' as extension, the preprocessor is not run on the
7081# input file.  (Note that this only needs to work for GNU compilers.)
7082ac_save_ext=$ac_ext
7083ac_ext=F
7084echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7085echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7086if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7087  echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089  cat >conftest.$ac_ext <<_ACEOF
7090      program main
7091#ifndef __GNUC__
7092       choke me
7093#endif
7094
7095      end
7096_ACEOF
7097rm -f conftest.$ac_objext
7098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099  (eval $ac_compile) 2>conftest.er1
7100  ac_status=$?
7101  grep -v '^ *+' conftest.er1 >conftest.err
7102  rm -f conftest.er1
7103  cat conftest.err >&5
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); } &&
7106         { ac_try='test -z "$ac_f77_werror_flag"
7107                         || test ! -s conftest.err'
7108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109  (eval $ac_try) 2>&5
7110  ac_status=$?
7111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112  (exit $ac_status); }; } &&
7113         { ac_try='test -s conftest.$ac_objext'
7114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115  (eval $ac_try) 2>&5
7116  ac_status=$?
7117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118  (exit $ac_status); }; }; then
7119  ac_compiler_gnu=yes
7120else
7121  echo "$as_me: failed program was:" >&5
7122sed 's/^/| /' conftest.$ac_ext >&5
7123
7124ac_compiler_gnu=no
7125fi
7126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7127ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7128
7129fi
7130echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7131echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7132ac_ext=$ac_save_ext
7133ac_test_FFLAGS=${FFLAGS+set}
7134ac_save_FFLAGS=$FFLAGS
7135FFLAGS=
7136echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7137echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7138if test "${ac_cv_prog_f77_g+set}" = set; then
7139  echo $ECHO_N "(cached) $ECHO_C" >&6
7140else
7141  FFLAGS=-g
7142cat >conftest.$ac_ext <<_ACEOF
7143      program main
7144
7145      end
7146_ACEOF
7147rm -f conftest.$ac_objext
7148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149  (eval $ac_compile) 2>conftest.er1
7150  ac_status=$?
7151  grep -v '^ *+' conftest.er1 >conftest.err
7152  rm -f conftest.er1
7153  cat conftest.err >&5
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); } &&
7156         { ac_try='test -z "$ac_f77_werror_flag"
7157                         || test ! -s conftest.err'
7158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159  (eval $ac_try) 2>&5
7160  ac_status=$?
7161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162  (exit $ac_status); }; } &&
7163         { ac_try='test -s conftest.$ac_objext'
7164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165  (eval $ac_try) 2>&5
7166  ac_status=$?
7167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168  (exit $ac_status); }; }; then
7169  ac_cv_prog_f77_g=yes
7170else
7171  echo "$as_me: failed program was:" >&5
7172sed 's/^/| /' conftest.$ac_ext >&5
7173
7174ac_cv_prog_f77_g=no
7175fi
7176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7177
7178fi
7179echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7180echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7181if test "$ac_test_FFLAGS" = set; then
7182  FFLAGS=$ac_save_FFLAGS
7183elif test $ac_cv_prog_f77_g = yes; then
7184  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7185    FFLAGS="-g -O2"
7186  else
7187    FFLAGS="-g"
7188  fi
7189else
7190  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7191    FFLAGS="-O2"
7192  else
7193    FFLAGS=
7194  fi
7195fi
7196
7197G77=`test $ac_compiler_gnu = yes && echo yes`
7198ac_ext=c
7199ac_cpp='$CPP $CPPFLAGS'
7200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203
7204
7205
7206# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7207
7208# find the maximum length of command line arguments
7209echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7210echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7211if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7212  echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214    i=0
7215  teststring="ABCD"
7216
7217  case $build_os in
7218  msdosdjgpp*)
7219    # On DJGPP, this test can blow up pretty badly due to problems in libc
7220    # (any single argument exceeding 2000 bytes causes a buffer overrun
7221    # during glob expansion).  Even if it were fixed, the result of this
7222    # check would be larger than it should be.
7223    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7224    ;;
7225
7226  gnu*)
7227    # Under GNU Hurd, this test is not required because there is
7228    # no limit to the length of command line arguments.
7229    # Libtool will interpret -1 as no limit whatsoever
7230    lt_cv_sys_max_cmd_len=-1;
7231    ;;
7232
7233  cygwin* | mingw*)
7234    # On Win9x/ME, this test blows up -- it succeeds, but takes
7235    # about 5 minutes as the teststring grows exponentially.
7236    # Worse, since 9x/ME are not pre-emptively multitasking,
7237    # you end up with a "frozen" computer, even though with patience
7238    # the test eventually succeeds (with a max line length of 256k).
7239    # Instead, let's just punt: use the minimum linelength reported by
7240    # all of the supported platforms: 8192 (on NT/2K/XP).
7241    lt_cv_sys_max_cmd_len=8192;
7242    ;;
7243
7244  amigaos*)
7245    # On AmigaOS with pdksh, this test takes hours, literally.
7246    # So we just punt and use a minimum line length of 8192.
7247    lt_cv_sys_max_cmd_len=8192;
7248    ;;
7249
7250  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7251    # This has been around since 386BSD, at least.  Likely further.
7252    if test -x /sbin/sysctl; then
7253      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7254    elif test -x /usr/sbin/sysctl; then
7255      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7256    else
7257      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7258    fi
7259    # And add a safety zone
7260    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7261    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7262    ;;
7263
7264  interix*)
7265    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7266    lt_cv_sys_max_cmd_len=196608
7267    ;;
7268
7269  osf*)
7270    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7271    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7272    # nice to cause kernel panics so lets avoid the loop below.
7273    # First set a reasonable default.
7274    lt_cv_sys_max_cmd_len=16384
7275    #
7276    if test -x /sbin/sysconfig; then
7277      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7278        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7279      esac
7280    fi
7281    ;;
7282  sco3.2v5*)
7283    lt_cv_sys_max_cmd_len=102400
7284    ;;
7285  sysv5* | sco5v6* | sysv4.2uw2*)
7286    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7287    if test -n "$kargmax"; then
7288      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7289    else
7290      lt_cv_sys_max_cmd_len=32768
7291    fi
7292    ;;
7293  *)
7294    # If test is not a shell built-in, we'll probably end up computing a
7295    # maximum length that is only half of the actual maximum length, but
7296    # we can't tell.
7297    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7298    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7299               = "XX$teststring") >/dev/null 2>&1 &&
7300            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7301            lt_cv_sys_max_cmd_len=$new_result &&
7302            test $i != 17 # 1/2 MB should be enough
7303    do
7304      i=`expr $i + 1`
7305      teststring=$teststring$teststring
7306    done
7307    teststring=
7308    # Add a significant safety factor because C++ compilers can tack on massive
7309    # amounts of additional arguments before passing them to the linker.
7310    # It appears as though 1/2 is a usable value.
7311    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7312    ;;
7313  esac
7314
7315fi
7316
7317if test -n $lt_cv_sys_max_cmd_len ; then
7318  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7319echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7320else
7321  echo "$as_me:$LINENO: result: none" >&5
7322echo "${ECHO_T}none" >&6
7323fi
7324
7325
7326
7327
7328# Check for command to grab the raw symbol name followed by C symbol from nm.
7329echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7330echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7331if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7332  echo $ECHO_N "(cached) $ECHO_C" >&6
7333else
7334
7335# These are sane defaults that work on at least a few old systems.
7336# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7337
7338# Character class describing NM global symbol codes.
7339symcode='[BCDEGRST]'
7340
7341# Regexp to match symbols that can be accessed directly from C.
7342sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7343
7344# Transform an extracted symbol line into a proper C declaration
7345lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7346
7347# Transform an extracted symbol line into symbol name and symbol address
7348lt_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'"
7349
7350# Define system-specific variables.
7351case $host_os in
7352aix*)
7353  symcode='[BCDT]'
7354  ;;
7355cygwin* | mingw* | pw32*)
7356  symcode='[ABCDGISTW]'
7357  ;;
7358hpux*) # Its linker distinguishes data from code symbols
7359  if test "$host_cpu" = ia64; then
7360    symcode='[ABCDEGRST]'
7361  fi
7362  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7363  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'"
7364  ;;
7365linux*)
7366  if test "$host_cpu" = ia64; then
7367    symcode='[ABCDGIRSTW]'
7368    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7369    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'"
7370  fi
7371  ;;
7372irix* | nonstopux*)
7373  symcode='[BCDEGRST]'
7374  ;;
7375osf*)
7376  symcode='[BCDEGQRST]'
7377  ;;
7378solaris*)
7379  symcode='[BDRT]'
7380  ;;
7381sco3.2v5*)
7382  symcode='[DT]'
7383  ;;
7384sysv4.2uw2*)
7385  symcode='[DT]'
7386  ;;
7387sysv5* | sco5v6* | unixware* | OpenUNIX*)
7388  symcode='[ABDT]'
7389  ;;
7390sysv4)
7391  symcode='[DFNSTU]'
7392  ;;
7393esac
7394
7395# Handle CRLF in mingw tool chain
7396opt_cr=
7397case $build_os in
7398mingw*)
7399  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7400  ;;
7401esac
7402
7403# If we're using GNU nm, then use its standard symbol codes.
7404case `$NM -V 2>&1` in
7405*GNU* | *'with BFD'*)
7406  symcode='[ABCDGIRSTW]' ;;
7407esac
7408
7409# Try without a prefix undercore, then with it.
7410for ac_symprfx in "" "_"; do
7411
7412  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7413  symxfrm="\\1 $ac_symprfx\\2 \\2"
7414
7415  # Write the raw and C identifiers.
7416  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7417
7418  # Check to see that the pipe works correctly.
7419  pipe_works=no
7420
7421  rm -f conftest*
7422  cat > conftest.$ac_ext <<EOF
7423#ifdef __cplusplus
7424extern "C" {
7425#endif
7426char nm_test_var;
7427void nm_test_func(){}
7428#ifdef __cplusplus
7429}
7430#endif
7431int main(){nm_test_var='a';nm_test_func();return(0);}
7432EOF
7433
7434  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435  (eval $ac_compile) 2>&5
7436  ac_status=$?
7437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438  (exit $ac_status); }; then
7439    # Now try to grab the symbols.
7440    nlist=conftest.nm
7441    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7442  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7443  ac_status=$?
7444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445  (exit $ac_status); } && test -s "$nlist"; then
7446      # Try sorting and uniquifying the output.
7447      if sort "$nlist" | uniq > "$nlist"T; then
7448        mv -f "$nlist"T "$nlist"
7449      else
7450        rm -f "$nlist"T
7451      fi
7452
7453      # Make sure that we snagged all the symbols we need.
7454      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7455        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7456          cat <<EOF > conftest.$ac_ext
7457#ifdef __cplusplus
7458extern "C" {
7459#endif
7460
7461EOF
7462          # Now generate the symbol file.
7463          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7464
7465          cat <<EOF >> conftest.$ac_ext
7466#if defined (__STDC__) && __STDC__
7467# define lt_ptr_t void *
7468#else
7469# define lt_ptr_t char *
7470# define const
7471#endif
7472
7473/* The mapping between symbol names and symbols. */
7474const struct {
7475  const char *name;
7476  lt_ptr_t address;
7477}
7478lt_preloaded_symbols[] =
7479{
7480EOF
7481          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7482          cat <<\EOF >> conftest.$ac_ext
7483  {0, (lt_ptr_t) 0}
7484};
7485
7486#ifdef __cplusplus
7487}
7488#endif
7489EOF
7490          # Now try linking the two files.
7491          mv conftest.$ac_objext conftstm.$ac_objext
7492          lt_save_LIBS="$LIBS"
7493          lt_save_CFLAGS="$CFLAGS"
7494          LIBS="conftstm.$ac_objext"
7495          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7496          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497  (eval $ac_link) 2>&5
7498  ac_status=$?
7499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7501            pipe_works=yes
7502          fi
7503          LIBS="$lt_save_LIBS"
7504          CFLAGS="$lt_save_CFLAGS"
7505        else
7506          echo "cannot find nm_test_func in $nlist" >&5
7507        fi
7508      else
7509        echo "cannot find nm_test_var in $nlist" >&5
7510      fi
7511    else
7512      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7513    fi
7514  else
7515    echo "$progname: failed program was:" >&5
7516    cat conftest.$ac_ext >&5
7517  fi
7518  rm -f conftest* conftst*
7519
7520  # Do not use the global_symbol_pipe unless it works.
7521  if test "$pipe_works" = yes; then
7522    break
7523  else
7524    lt_cv_sys_global_symbol_pipe=
7525  fi
7526done
7527
7528fi
7529
7530if test -z "$lt_cv_sys_global_symbol_pipe"; then
7531  lt_cv_sys_global_symbol_to_cdecl=
7532fi
7533if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7534  echo "$as_me:$LINENO: result: failed" >&5
7535echo "${ECHO_T}failed" >&6
7536else
7537  echo "$as_me:$LINENO: result: ok" >&5
7538echo "${ECHO_T}ok" >&6
7539fi
7540
7541echo "$as_me:$LINENO: checking for objdir" >&5
7542echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7543if test "${lt_cv_objdir+set}" = set; then
7544  echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546  rm -f .libs 2>/dev/null
7547mkdir .libs 2>/dev/null
7548if test -d .libs; then
7549  lt_cv_objdir=.libs
7550else
7551  # MS-DOS does not allow filenames that begin with a dot.
7552  lt_cv_objdir=_libs
7553fi
7554rmdir .libs 2>/dev/null
7555fi
7556echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7557echo "${ECHO_T}$lt_cv_objdir" >&6
7558objdir=$lt_cv_objdir
7559
7560
7561
7562
7563
7564case $host_os in
7565aix3*)
7566  # AIX sometimes has problems with the GCC collect2 program.  For some
7567  # reason, if we set the COLLECT_NAMES environment variable, the problems
7568  # vanish in a puff of smoke.
7569  if test "X${COLLECT_NAMES+set}" != Xset; then
7570    COLLECT_NAMES=
7571    export COLLECT_NAMES
7572  fi
7573  ;;
7574esac
7575
7576# Sed substitution that helps us do robust quoting.  It backslashifies
7577# metacharacters that are still active within double-quoted strings.
7578Xsed='sed -e 1s/^X//'
7579sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7580
7581# Same as above, but do not quote variable references.
7582double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7583
7584# Sed substitution to delay expansion of an escaped shell variable in a
7585# double_quote_subst'ed string.
7586delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7587
7588# Sed substitution to avoid accidental globbing in evaled expressions
7589no_glob_subst='s/\*/\\\*/g'
7590
7591# Constants:
7592rm="rm -f"
7593
7594# Global variables:
7595default_ofile=libtool
7596can_build_shared=yes
7597
7598# All known linkers require a `.a' archive for static linking (except MSVC,
7599# which needs '.lib').
7600libext=a
7601ltmain="$ac_aux_dir/ltmain.sh"
7602ofile="$default_ofile"
7603with_gnu_ld="$lt_cv_prog_gnu_ld"
7604
7605if test -n "$ac_tool_prefix"; then
7606  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7607set dummy ${ac_tool_prefix}ar; ac_word=$2
7608echo "$as_me:$LINENO: checking for $ac_word" >&5
7609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7610if test "${ac_cv_prog_AR+set}" = set; then
7611  echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613  if test -n "$AR"; then
7614  ac_cv_prog_AR="$AR" # Let the user override the test.
7615else
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619  IFS=$as_save_IFS
7620  test -z "$as_dir" && as_dir=.
7621  for ac_exec_ext in '' $ac_executable_extensions; do
7622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623    ac_cv_prog_AR="${ac_tool_prefix}ar"
7624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7625    break 2
7626  fi
7627done
7628done
7629
7630fi
7631fi
7632AR=$ac_cv_prog_AR
7633if test -n "$AR"; then
7634  echo "$as_me:$LINENO: result: $AR" >&5
7635echo "${ECHO_T}$AR" >&6
7636else
7637  echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6
7639fi
7640
7641fi
7642if test -z "$ac_cv_prog_AR"; then
7643  ac_ct_AR=$AR
7644  # Extract the first word of "ar", so it can be a program name with args.
7645set dummy ar; ac_word=$2
7646echo "$as_me:$LINENO: checking for $ac_word" >&5
7647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7648if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7649  echo $ECHO_N "(cached) $ECHO_C" >&6
7650else
7651  if test -n "$ac_ct_AR"; then
7652  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657  IFS=$as_save_IFS
7658  test -z "$as_dir" && as_dir=.
7659  for ac_exec_ext in '' $ac_executable_extensions; do
7660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661    ac_cv_prog_ac_ct_AR="ar"
7662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663    break 2
7664  fi
7665done
7666done
7667
7668  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7669fi
7670fi
7671ac_ct_AR=$ac_cv_prog_ac_ct_AR
7672if test -n "$ac_ct_AR"; then
7673  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7674echo "${ECHO_T}$ac_ct_AR" >&6
7675else
7676  echo "$as_me:$LINENO: result: no" >&5
7677echo "${ECHO_T}no" >&6
7678fi
7679
7680  AR=$ac_ct_AR
7681else
7682  AR="$ac_cv_prog_AR"
7683fi
7684
7685if test -n "$ac_tool_prefix"; then
7686  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7687set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7688echo "$as_me:$LINENO: checking for $ac_word" >&5
7689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7690if test "${ac_cv_prog_RANLIB+set}" = set; then
7691  echo $ECHO_N "(cached) $ECHO_C" >&6
7692else
7693  if test -n "$RANLIB"; then
7694  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699  IFS=$as_save_IFS
7700  test -z "$as_dir" && as_dir=.
7701  for ac_exec_ext in '' $ac_executable_extensions; do
7702  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705    break 2
7706  fi
7707done
7708done
7709
7710fi
7711fi
7712RANLIB=$ac_cv_prog_RANLIB
7713if test -n "$RANLIB"; then
7714  echo "$as_me:$LINENO: result: $RANLIB" >&5
7715echo "${ECHO_T}$RANLIB" >&6
7716else
7717  echo "$as_me:$LINENO: result: no" >&5
7718echo "${ECHO_T}no" >&6
7719fi
7720
7721fi
7722if test -z "$ac_cv_prog_RANLIB"; then
7723  ac_ct_RANLIB=$RANLIB
7724  # Extract the first word of "ranlib", so it can be a program name with args.
7725set dummy ranlib; ac_word=$2
7726echo "$as_me:$LINENO: checking for $ac_word" >&5
7727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7728if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7729  echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731  if test -n "$ac_ct_RANLIB"; then
7732  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7733else
7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737  IFS=$as_save_IFS
7738  test -z "$as_dir" && as_dir=.
7739  for ac_exec_ext in '' $ac_executable_extensions; do
7740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741    ac_cv_prog_ac_ct_RANLIB="ranlib"
7742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743    break 2
7744  fi
7745done
7746done
7747
7748  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7749fi
7750fi
7751ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7752if test -n "$ac_ct_RANLIB"; then
7753  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7754echo "${ECHO_T}$ac_ct_RANLIB" >&6
7755else
7756  echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6
7758fi
7759
7760  RANLIB=$ac_ct_RANLIB
7761else
7762  RANLIB="$ac_cv_prog_RANLIB"
7763fi
7764
7765if test -n "$ac_tool_prefix"; then
7766  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7767set dummy ${ac_tool_prefix}strip; ac_word=$2
7768echo "$as_me:$LINENO: checking for $ac_word" >&5
7769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7770if test "${ac_cv_prog_STRIP+set}" = set; then
7771  echo $ECHO_N "(cached) $ECHO_C" >&6
7772else
7773  if test -n "$STRIP"; then
7774  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7775else
7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779  IFS=$as_save_IFS
7780  test -z "$as_dir" && as_dir=.
7781  for ac_exec_ext in '' $ac_executable_extensions; do
7782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7785    break 2
7786  fi
7787done
7788done
7789
7790fi
7791fi
7792STRIP=$ac_cv_prog_STRIP
7793if test -n "$STRIP"; then
7794  echo "$as_me:$LINENO: result: $STRIP" >&5
7795echo "${ECHO_T}$STRIP" >&6
7796else
7797  echo "$as_me:$LINENO: result: no" >&5
7798echo "${ECHO_T}no" >&6
7799fi
7800
7801fi
7802if test -z "$ac_cv_prog_STRIP"; then
7803  ac_ct_STRIP=$STRIP
7804  # Extract the first word of "strip", so it can be a program name with args.
7805set dummy strip; ac_word=$2
7806echo "$as_me:$LINENO: checking for $ac_word" >&5
7807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7808if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7809  echo $ECHO_N "(cached) $ECHO_C" >&6
7810else
7811  if test -n "$ac_ct_STRIP"; then
7812  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817  IFS=$as_save_IFS
7818  test -z "$as_dir" && as_dir=.
7819  for ac_exec_ext in '' $ac_executable_extensions; do
7820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821    ac_cv_prog_ac_ct_STRIP="strip"
7822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823    break 2
7824  fi
7825done
7826done
7827
7828  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7829fi
7830fi
7831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7832if test -n "$ac_ct_STRIP"; then
7833  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7834echo "${ECHO_T}$ac_ct_STRIP" >&6
7835else
7836  echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6
7838fi
7839
7840  STRIP=$ac_ct_STRIP
7841else
7842  STRIP="$ac_cv_prog_STRIP"
7843fi
7844
7845
7846old_CC="$CC"
7847old_CFLAGS="$CFLAGS"
7848
7849# Set sane defaults for various variables
7850test -z "$AR" && AR=ar
7851test -z "$AR_FLAGS" && AR_FLAGS=cru
7852test -z "$AS" && AS=as
7853test -z "$CC" && CC=cc
7854test -z "$LTCC" && LTCC=$CC
7855test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7856test -z "$DLLTOOL" && DLLTOOL=dlltool
7857test -z "$LD" && LD=ld
7858test -z "$LN_S" && LN_S="ln -s"
7859test -z "$MAGIC_CMD" && MAGIC_CMD=file
7860test -z "$NM" && NM=nm
7861test -z "$SED" && SED=sed
7862test -z "$OBJDUMP" && OBJDUMP=objdump
7863test -z "$RANLIB" && RANLIB=:
7864test -z "$STRIP" && STRIP=:
7865test -z "$ac_objext" && ac_objext=o
7866
7867# Determine commands to create old-style static archives.
7868old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7869old_postinstall_cmds='chmod 644 $oldlib'
7870old_postuninstall_cmds=
7871
7872if test -n "$RANLIB"; then
7873  case $host_os in
7874  openbsd*)
7875    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7876    ;;
7877  *)
7878    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7879    ;;
7880  esac
7881  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7882fi
7883
7884for cc_temp in $compiler""; do
7885  case $cc_temp in
7886    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7887    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7888    \-*) ;;
7889    *) break;;
7890  esac
7891done
7892cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7893
7894
7895# Only perform the check for file, if the check method requires it
7896case $deplibs_check_method in
7897file_magic*)
7898  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7899    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7900echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7901if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7902  echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904  case $MAGIC_CMD in
7905[\\/*] |  ?:[\\/]*)
7906  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7907  ;;
7908*)
7909  lt_save_MAGIC_CMD="$MAGIC_CMD"
7910  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7911  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7912  for ac_dir in $ac_dummy; do
7913    IFS="$lt_save_ifs"
7914    test -z "$ac_dir" && ac_dir=.
7915    if test -f $ac_dir/${ac_tool_prefix}file; then
7916      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7917      if test -n "$file_magic_test_file"; then
7918        case $deplibs_check_method in
7919        "file_magic "*)
7920          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7921          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7922          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7923            $EGREP "$file_magic_regex" > /dev/null; then
7924            :
7925          else
7926            cat <<EOF 1>&2
7927
7928*** Warning: the command libtool uses to detect shared libraries,
7929*** $file_magic_cmd, produces output that libtool cannot recognize.
7930*** The result is that libtool may fail to recognize shared libraries
7931*** as such.  This will affect the creation of libtool libraries that
7932*** depend on shared libraries, but programs linked with such libtool
7933*** libraries will work regardless of this problem.  Nevertheless, you
7934*** may want to report the problem to your system manager and/or to
7935*** bug-libtool@gnu.org
7936
7937EOF
7938          fi ;;
7939        esac
7940      fi
7941      break
7942    fi
7943  done
7944  IFS="$lt_save_ifs"
7945  MAGIC_CMD="$lt_save_MAGIC_CMD"
7946  ;;
7947esac
7948fi
7949
7950MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7951if test -n "$MAGIC_CMD"; then
7952  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7953echo "${ECHO_T}$MAGIC_CMD" >&6
7954else
7955  echo "$as_me:$LINENO: result: no" >&5
7956echo "${ECHO_T}no" >&6
7957fi
7958
7959if test -z "$lt_cv_path_MAGIC_CMD"; then
7960  if test -n "$ac_tool_prefix"; then
7961    echo "$as_me:$LINENO: checking for file" >&5
7962echo $ECHO_N "checking for file... $ECHO_C" >&6
7963if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7964  echo $ECHO_N "(cached) $ECHO_C" >&6
7965else
7966  case $MAGIC_CMD in
7967[\\/*] |  ?:[\\/]*)
7968  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7969  ;;
7970*)
7971  lt_save_MAGIC_CMD="$MAGIC_CMD"
7972  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7973  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7974  for ac_dir in $ac_dummy; do
7975    IFS="$lt_save_ifs"
7976    test -z "$ac_dir" && ac_dir=.
7977    if test -f $ac_dir/file; then
7978      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7979      if test -n "$file_magic_test_file"; then
7980        case $deplibs_check_method in
7981        "file_magic "*)
7982          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7983          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7984          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7985            $EGREP "$file_magic_regex" > /dev/null; then
7986            :
7987          else
7988            cat <<EOF 1>&2
7989
7990*** Warning: the command libtool uses to detect shared libraries,
7991*** $file_magic_cmd, produces output that libtool cannot recognize.
7992*** The result is that libtool may fail to recognize shared libraries
7993*** as such.  This will affect the creation of libtool libraries that
7994*** depend on shared libraries, but programs linked with such libtool
7995*** libraries will work regardless of this problem.  Nevertheless, you
7996*** may want to report the problem to your system manager and/or to
7997*** bug-libtool@gnu.org
7998
7999EOF
8000          fi ;;
8001        esac
8002      fi
8003      break
8004    fi
8005  done
8006  IFS="$lt_save_ifs"
8007  MAGIC_CMD="$lt_save_MAGIC_CMD"
8008  ;;
8009esac
8010fi
8011
8012MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8013if test -n "$MAGIC_CMD"; then
8014  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8015echo "${ECHO_T}$MAGIC_CMD" >&6
8016else
8017  echo "$as_me:$LINENO: result: no" >&5
8018echo "${ECHO_T}no" >&6
8019fi
8020
8021  else
8022    MAGIC_CMD=:
8023  fi
8024fi
8025
8026  fi
8027  ;;
8028esac
8029
8030enable_dlopen=no
8031enable_win32_dll=no
8032
8033# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8034if test "${enable_libtool_lock+set}" = set; then
8035  enableval="$enable_libtool_lock"
8036
8037fi;
8038test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8039
8040
8041# Check whether --with-pic or --without-pic was given.
8042if test "${with_pic+set}" = set; then
8043  withval="$with_pic"
8044  pic_mode="$withval"
8045else
8046  pic_mode=default
8047fi;
8048test -z "$pic_mode" && pic_mode=default
8049
8050# Use C for the default configuration in the libtool script
8051tagname=
8052lt_save_CC="$CC"
8053ac_ext=c
8054ac_cpp='$CPP $CPPFLAGS'
8055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8057ac_compiler_gnu=$ac_cv_c_compiler_gnu
8058
8059
8060# Source file extension for C test sources.
8061ac_ext=c
8062
8063# Object file extension for compiled C test sources.
8064objext=o
8065objext=$objext
8066
8067# Code to be used in simple compile tests
8068lt_simple_compile_test_code="int some_variable = 0;\n"
8069
8070# Code to be used in simple link tests
8071lt_simple_link_test_code='int main(){return(0);}\n'
8072
8073
8074# If no C compiler was specified, use CC.
8075LTCC=${LTCC-"$CC"}
8076
8077# If no C compiler flags were specified, use CFLAGS.
8078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8079
8080# Allow CC to be a program name with arguments.
8081compiler=$CC
8082
8083
8084# save warnings/boilerplate of simple test code
8085ac_outfile=conftest.$ac_objext
8086printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8088_lt_compiler_boilerplate=`cat conftest.err`
8089$rm conftest*
8090
8091ac_outfile=conftest.$ac_objext
8092printf "$lt_simple_link_test_code" >conftest.$ac_ext
8093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8094_lt_linker_boilerplate=`cat conftest.err`
8095$rm conftest*
8096
8097
8098## CAVEAT EMPTOR:
8099## There is no encapsulation within the following macros, do not change
8100## the running order or otherwise move them around unless you know exactly
8101## what you are doing...
8102
8103lt_prog_compiler_no_builtin_flag=
8104
8105if test "$GCC" = yes; then
8106  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8107
8108
8109echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8110echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8111if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8112  echo $ECHO_N "(cached) $ECHO_C" >&6
8113else
8114  lt_cv_prog_compiler_rtti_exceptions=no
8115  ac_outfile=conftest.$ac_objext
8116   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8117   lt_compiler_flag="-fno-rtti -fno-exceptions"
8118   # Insert the option either (1) after the last *FLAGS variable, or
8119   # (2) before a word containing "conftest.", or (3) at the end.
8120   # Note that $ac_compile itself does not contain backslashes and begins
8121   # with a dollar sign (not a hyphen), so the echo should work correctly.
8122   # The option is referenced via a variable to avoid confusing sed.
8123   lt_compile=`echo "$ac_compile" | $SED \
8124   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8125   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8126   -e 's:$: $lt_compiler_flag:'`
8127   (eval echo "\"\$as_me:8127: $lt_compile\"" >&5)
8128   (eval "$lt_compile" 2>conftest.err)
8129   ac_status=$?
8130   cat conftest.err >&5
8131   echo "$as_me:8131: \$? = $ac_status" >&5
8132   if (exit $ac_status) && test -s "$ac_outfile"; then
8133     # The compiler can only warn and ignore the option if not recognized
8134     # So say no if there are warnings other than the usual output.
8135     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8136     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8137     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8138       lt_cv_prog_compiler_rtti_exceptions=yes
8139     fi
8140   fi
8141   $rm conftest*
8142
8143fi
8144echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8145echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8146
8147if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8148    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8149else
8150    :
8151fi
8152
8153fi
8154
8155lt_prog_compiler_wl=
8156lt_prog_compiler_pic=
8157lt_prog_compiler_static=
8158
8159echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8160echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8161
8162  if test "$GCC" = yes; then
8163    lt_prog_compiler_wl='-Wl,'
8164    lt_prog_compiler_static='-static'
8165
8166    case $host_os in
8167      aix*)
8168      # All AIX code is PIC.
8169      if test "$host_cpu" = ia64; then
8170        # AIX 5 now supports IA64 processor
8171        lt_prog_compiler_static='-Bstatic'
8172      fi
8173      ;;
8174
8175    amigaos*)
8176      # FIXME: we need at least 68020 code to build shared libraries, but
8177      # adding the `-m68020' flag to GCC prevents building anything better,
8178      # like `-m68040'.
8179      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8180      ;;
8181
8182    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8183      # PIC is the default for these OSes.
8184      ;;
8185
8186    mingw* | pw32* | os2*)
8187      # This hack is so that the source file can tell whether it is being
8188      # built for inclusion in a dll (and should export symbols for example).
8189      lt_prog_compiler_pic='-DDLL_EXPORT'
8190      ;;
8191
8192    darwin* | rhapsody*)
8193      # PIC is the default on this platform
8194      # Common symbols not allowed in MH_DYLIB files
8195      lt_prog_compiler_pic='-fno-common'
8196      ;;
8197
8198    interix3*)
8199      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8200      # Instead, we relocate shared libraries at runtime.
8201      ;;
8202
8203    msdosdjgpp*)
8204      # Just because we use GCC doesn't mean we suddenly get shared libraries
8205      # on systems that don't support them.
8206      lt_prog_compiler_can_build_shared=no
8207      enable_shared=no
8208      ;;
8209
8210    sysv4*MP*)
8211      if test -d /usr/nec; then
8212        lt_prog_compiler_pic=-Kconform_pic
8213      fi
8214      ;;
8215
8216    hpux*)
8217      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8218      # not for PA HP-UX.
8219      case $host_cpu in
8220      hppa*64*|ia64*)
8221        # +Z the default
8222        ;;
8223      *)
8224        lt_prog_compiler_pic='-fPIC'
8225        ;;
8226      esac
8227      ;;
8228
8229    *)
8230      lt_prog_compiler_pic='-fPIC'
8231      ;;
8232    esac
8233  else
8234    # PORTME Check for flag to pass linker flags through the system compiler.
8235    case $host_os in
8236    aix*)
8237      lt_prog_compiler_wl='-Wl,'
8238      if test "$host_cpu" = ia64; then
8239        # AIX 5 now supports IA64 processor
8240        lt_prog_compiler_static='-Bstatic'
8241      else
8242        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8243      fi
8244      ;;
8245      darwin*)
8246        # PIC is the default on this platform
8247        # Common symbols not allowed in MH_DYLIB files
8248       case $cc_basename in
8249         xlc*)
8250         lt_prog_compiler_pic='-qnocommon'
8251         lt_prog_compiler_wl='-Wl,'
8252         ;;
8253       esac
8254       ;;
8255
8256    mingw* | pw32* | os2*)
8257      # This hack is so that the source file can tell whether it is being
8258      # built for inclusion in a dll (and should export symbols for example).
8259      lt_prog_compiler_pic='-DDLL_EXPORT'
8260      ;;
8261
8262    hpux9* | hpux10* | hpux11*)
8263      lt_prog_compiler_wl='-Wl,'
8264      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8265      # not for PA HP-UX.
8266      case $host_cpu in
8267      hppa*64*|ia64*)
8268        # +Z the default
8269        ;;
8270      *)
8271        lt_prog_compiler_pic='+Z'
8272        ;;
8273      esac
8274      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8275      lt_prog_compiler_static='${wl}-a ${wl}archive'
8276      ;;
8277
8278    irix5* | irix6* | nonstopux*)
8279      lt_prog_compiler_wl='-Wl,'
8280      # PIC (with -KPIC) is the default.
8281      lt_prog_compiler_static='-non_shared'
8282      ;;
8283
8284    newsos6)
8285      lt_prog_compiler_pic='-KPIC'
8286      lt_prog_compiler_static='-Bstatic'
8287      ;;
8288
8289    linux*)
8290      case $cc_basename in
8291      icc* | ecc*)
8292        lt_prog_compiler_wl='-Wl,'
8293        lt_prog_compiler_pic='-KPIC'
8294        lt_prog_compiler_static='-static'
8295        ;;
8296      pgcc* | pgf77* | pgf90* | pgf95*)
8297        # Portland Group compilers (*not* the Pentium gcc compiler,
8298        # which looks to be a dead project)
8299        lt_prog_compiler_wl='-Wl,'
8300        lt_prog_compiler_pic='-fpic'
8301        lt_prog_compiler_static='-Bstatic'
8302        ;;
8303      ccc*)
8304        lt_prog_compiler_wl='-Wl,'
8305        # All Alpha code is PIC.
8306        lt_prog_compiler_static='-non_shared'
8307        ;;
8308      esac
8309      ;;
8310
8311    osf3* | osf4* | osf5*)
8312      lt_prog_compiler_wl='-Wl,'
8313      # All OSF/1 code is PIC.
8314      lt_prog_compiler_static='-non_shared'
8315      ;;
8316
8317    solaris*)
8318      lt_prog_compiler_pic='-KPIC'
8319      lt_prog_compiler_static='-Bstatic'
8320      case $cc_basename in
8321      f77* | f90* | f95*)
8322        lt_prog_compiler_wl='-Qoption ld ';;
8323      *)
8324        lt_prog_compiler_wl='-Wl,';;
8325      esac
8326      ;;
8327
8328    sunos4*)
8329      lt_prog_compiler_wl='-Qoption ld '
8330      lt_prog_compiler_pic='-PIC'
8331      lt_prog_compiler_static='-Bstatic'
8332      ;;
8333
8334    sysv4 | sysv4.2uw2* | sysv4.3*)
8335      lt_prog_compiler_wl='-Wl,'
8336      lt_prog_compiler_pic='-KPIC'
8337      lt_prog_compiler_static='-Bstatic'
8338      ;;
8339
8340    sysv4*MP*)
8341      if test -d /usr/nec ;then
8342        lt_prog_compiler_pic='-Kconform_pic'
8343        lt_prog_compiler_static='-Bstatic'
8344      fi
8345      ;;
8346
8347    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8348      lt_prog_compiler_wl='-Wl,'
8349      lt_prog_compiler_pic='-KPIC'
8350      lt_prog_compiler_static='-Bstatic'
8351      ;;
8352
8353    unicos*)
8354      lt_prog_compiler_wl='-Wl,'
8355      lt_prog_compiler_can_build_shared=no
8356      ;;
8357
8358    uts4*)
8359      lt_prog_compiler_pic='-pic'
8360      lt_prog_compiler_static='-Bstatic'
8361      ;;
8362
8363    *)
8364      lt_prog_compiler_can_build_shared=no
8365      ;;
8366    esac
8367  fi
8368
8369echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8370echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8371
8372#
8373# Check to make sure the PIC flag actually works.
8374#
8375if test -n "$lt_prog_compiler_pic"; then
8376
8377echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8378echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8379if test "${lt_prog_compiler_pic_works+set}" = set; then
8380  echo $ECHO_N "(cached) $ECHO_C" >&6
8381else
8382  lt_prog_compiler_pic_works=no
8383  ac_outfile=conftest.$ac_objext
8384   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8385   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8386   # Insert the option either (1) after the last *FLAGS variable, or
8387   # (2) before a word containing "conftest.", or (3) at the end.
8388   # Note that $ac_compile itself does not contain backslashes and begins
8389   # with a dollar sign (not a hyphen), so the echo should work correctly.
8390   # The option is referenced via a variable to avoid confusing sed.
8391   lt_compile=`echo "$ac_compile" | $SED \
8392   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8393   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8394   -e 's:$: $lt_compiler_flag:'`
8395   (eval echo "\"\$as_me:8395: $lt_compile\"" >&5)
8396   (eval "$lt_compile" 2>conftest.err)
8397   ac_status=$?
8398   cat conftest.err >&5
8399   echo "$as_me:8399: \$? = $ac_status" >&5
8400   if (exit $ac_status) && test -s "$ac_outfile"; then
8401     # The compiler can only warn and ignore the option if not recognized
8402     # So say no if there are warnings other than the usual output.
8403     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8404     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8405     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8406       lt_prog_compiler_pic_works=yes
8407     fi
8408   fi
8409   $rm conftest*
8410
8411fi
8412echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8413echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8414
8415if test x"$lt_prog_compiler_pic_works" = xyes; then
8416    case $lt_prog_compiler_pic in
8417     "" | " "*) ;;
8418     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8419     esac
8420else
8421    lt_prog_compiler_pic=
8422     lt_prog_compiler_can_build_shared=no
8423fi
8424
8425fi
8426case $host_os in
8427  # For platforms which do not support PIC, -DPIC is meaningless:
8428  *djgpp*)
8429    lt_prog_compiler_pic=
8430    ;;
8431  *)
8432    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8433    ;;
8434esac
8435
8436#
8437# Check to make sure the static flag actually works.
8438#
8439wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8440echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8441echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8442if test "${lt_prog_compiler_static_works+set}" = set; then
8443  echo $ECHO_N "(cached) $ECHO_C" >&6
8444else
8445  lt_prog_compiler_static_works=no
8446   save_LDFLAGS="$LDFLAGS"
8447   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8448   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8449   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8450     # The linker can only warn and ignore the option if not recognized
8451     # So say no if there are warnings
8452     if test -s conftest.err; then
8453       # Append any errors to the config.log.
8454       cat conftest.err 1>&5
8455       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8456       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8457       if diff conftest.exp conftest.er2 >/dev/null; then
8458         lt_prog_compiler_static_works=yes
8459       fi
8460     else
8461       lt_prog_compiler_static_works=yes
8462     fi
8463   fi
8464   $rm conftest*
8465   LDFLAGS="$save_LDFLAGS"
8466
8467fi
8468echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8469echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8470
8471if test x"$lt_prog_compiler_static_works" = xyes; then
8472    :
8473else
8474    lt_prog_compiler_static=
8475fi
8476
8477
8478echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8479echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8480if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8481  echo $ECHO_N "(cached) $ECHO_C" >&6
8482else
8483  lt_cv_prog_compiler_c_o=no
8484   $rm -r conftest 2>/dev/null
8485   mkdir conftest
8486   cd conftest
8487   mkdir out
8488   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8489
8490   lt_compiler_flag="-o out/conftest2.$ac_objext"
8491   # Insert the option either (1) after the last *FLAGS variable, or
8492   # (2) before a word containing "conftest.", or (3) at the end.
8493   # Note that $ac_compile itself does not contain backslashes and begins
8494   # with a dollar sign (not a hyphen), so the echo should work correctly.
8495   lt_compile=`echo "$ac_compile" | $SED \
8496   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8498   -e 's:$: $lt_compiler_flag:'`
8499   (eval echo "\"\$as_me:8499: $lt_compile\"" >&5)
8500   (eval "$lt_compile" 2>out/conftest.err)
8501   ac_status=$?
8502   cat out/conftest.err >&5
8503   echo "$as_me:8503: \$? = $ac_status" >&5
8504   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8505   then
8506     # The compiler can only warn and ignore the option if not recognized
8507     # So say no if there are warnings
8508     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8509     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8510     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8511       lt_cv_prog_compiler_c_o=yes
8512     fi
8513   fi
8514   chmod u+w . 2>&5
8515   $rm conftest*
8516   # SGI C++ compiler will create directory out/ii_files/ for
8517   # template instantiation
8518   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8519   $rm out/* && rmdir out
8520   cd ..
8521   rmdir conftest
8522   $rm conftest*
8523
8524fi
8525echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8526echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8527
8528
8529hard_links="nottested"
8530if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8531  # do not overwrite the value of need_locks provided by the user
8532  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8533echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8534  hard_links=yes
8535  $rm conftest*
8536  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8537  touch conftest.a
8538  ln conftest.a conftest.b 2>&5 || hard_links=no
8539  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8540  echo "$as_me:$LINENO: result: $hard_links" >&5
8541echo "${ECHO_T}$hard_links" >&6
8542  if test "$hard_links" = no; then
8543    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8544echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8545    need_locks=warn
8546  fi
8547else
8548  need_locks=no
8549fi
8550
8551echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8552echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8553
8554  runpath_var=
8555  allow_undefined_flag=
8556  enable_shared_with_static_runtimes=no
8557  archive_cmds=
8558  archive_expsym_cmds=
8559  old_archive_From_new_cmds=
8560  old_archive_from_expsyms_cmds=
8561  export_dynamic_flag_spec=
8562  whole_archive_flag_spec=
8563  thread_safe_flag_spec=
8564  hardcode_libdir_flag_spec=
8565  hardcode_libdir_flag_spec_ld=
8566  hardcode_libdir_separator=
8567  hardcode_direct=no
8568  hardcode_minus_L=no
8569  hardcode_shlibpath_var=unsupported
8570  link_all_deplibs=unknown
8571  hardcode_automatic=no
8572  module_cmds=
8573  module_expsym_cmds=
8574  always_export_symbols=no
8575  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8576  # include_expsyms should be a list of space-separated symbols to be *always*
8577  # included in the symbol list
8578  include_expsyms=
8579  # exclude_expsyms can be an extended regexp of symbols to exclude
8580  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8581  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8582  # as well as any symbol that contains `d'.
8583  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8584  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8585  # platforms (ab)use it in PIC code, but their linkers get confused if
8586  # the symbol is explicitly referenced.  Since portable code cannot
8587  # rely on this symbol name, it's probably fine to never include it in
8588  # preloaded symbol tables.
8589  extract_expsyms_cmds=
8590  # Just being paranoid about ensuring that cc_basename is set.
8591  for cc_temp in $compiler""; do
8592  case $cc_temp in
8593    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8594    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8595    \-*) ;;
8596    *) break;;
8597  esac
8598done
8599cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8600
8601  case $host_os in
8602  cygwin* | mingw* | pw32*)
8603    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8604    # When not using gcc, we currently assume that we are using
8605    # Microsoft Visual C++.
8606    if test "$GCC" != yes; then
8607      with_gnu_ld=no
8608    fi
8609    ;;
8610  interix*)
8611    # we just hope/assume this is gcc and not c89 (= MSVC++)
8612    with_gnu_ld=yes
8613    ;;
8614  openbsd*)
8615    with_gnu_ld=no
8616    ;;
8617  esac
8618
8619  ld_shlibs=yes
8620  if test "$with_gnu_ld" = yes; then
8621    # If archive_cmds runs LD, not CC, wlarc should be empty
8622    wlarc='${wl}'
8623
8624    # Set some defaults for GNU ld with shared library support. These
8625    # are reset later if shared libraries are not supported. Putting them
8626    # here allows them to be overridden if necessary.
8627    runpath_var=LD_RUN_PATH
8628    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8629    export_dynamic_flag_spec='${wl}--export-dynamic'
8630    # ancient GNU ld didn't support --whole-archive et. al.
8631    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8632        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8633      else
8634        whole_archive_flag_spec=
8635    fi
8636    supports_anon_versioning=no
8637    case `$LD -v 2>/dev/null` in
8638      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8639      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8640      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8641      *\ 2.11.*) ;; # other 2.11 versions
8642      *) supports_anon_versioning=yes ;;
8643    esac
8644
8645    # See if GNU ld supports shared libraries.
8646    case $host_os in
8647    aix3* | aix4* | aix5*)
8648      # On AIX/PPC, the GNU linker is very broken
8649      if test "$host_cpu" != ia64; then
8650        ld_shlibs=no
8651        cat <<EOF 1>&2
8652
8653*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8654*** to be unable to reliably create shared libraries on AIX.
8655*** Therefore, libtool is disabling shared libraries support.  If you
8656*** really care for shared libraries, you may want to modify your PATH
8657*** so that a non-GNU linker is found, and then restart.
8658
8659EOF
8660      fi
8661      ;;
8662
8663    amigaos*)
8664      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)'
8665      hardcode_libdir_flag_spec='-L$libdir'
8666      hardcode_minus_L=yes
8667
8668      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8669      # that the semantics of dynamic libraries on AmigaOS, at least up
8670      # to version 4, is to share data among multiple programs linked
8671      # with the same dynamic library.  Since this doesn't match the
8672      # behavior of shared libraries on other platforms, we can't use
8673      # them.
8674      ld_shlibs=no
8675      ;;
8676
8677    beos*)
8678      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8679        allow_undefined_flag=unsupported
8680        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8681        # support --undefined.  This deserves some investigation.  FIXME
8682        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683      else
8684        ld_shlibs=no
8685      fi
8686      ;;
8687
8688    cygwin* | mingw* | pw32*)
8689      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8690      # as there is no search path for DLLs.
8691      hardcode_libdir_flag_spec='-L$libdir'
8692      allow_undefined_flag=unsupported
8693      always_export_symbols=no
8694      enable_shared_with_static_runtimes=yes
8695      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8696
8697      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8698        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8699        # If the export-symbols file already is a .def file (1st line
8700        # is EXPORTS), use it as is; otherwise, prepend...
8701        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8702          cp $export_symbols $output_objdir/$soname.def;
8703        else
8704          echo EXPORTS > $output_objdir/$soname.def;
8705          cat $export_symbols >> $output_objdir/$soname.def;
8706        fi~
8707        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8708      else
8709        ld_shlibs=no
8710      fi
8711      ;;
8712
8713    interix3*)
8714      hardcode_direct=no
8715      hardcode_shlibpath_var=no
8716      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8717      export_dynamic_flag_spec='${wl}-E'
8718      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8719      # Instead, shared libraries are loaded at an image base (0x10000000 by
8720      # default) and relocated if they conflict, which is a slow very memory
8721      # consuming and fragmenting process.  To avoid this, we pick a random,
8722      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8723      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8724      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8725      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'
8726      ;;
8727
8728    linux*)
8729      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8730        tmp_addflag=
8731        case $cc_basename,$host_cpu in
8732        pgcc*)                          # Portland Group C compiler
8733          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'
8734          tmp_addflag=' $pic_flag'
8735          ;;
8736        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8737          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'
8738          tmp_addflag=' $pic_flag -Mnomain' ;;
8739        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8740          tmp_addflag=' -i_dynamic' ;;
8741        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8742          tmp_addflag=' -i_dynamic -nofor_main' ;;
8743        ifc* | ifort*)                  # Intel Fortran compiler
8744          tmp_addflag=' -nofor_main' ;;
8745        esac
8746        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747
8748        if test $supports_anon_versioning = yes; then
8749          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8750  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8751  $echo "local: *; };" >> $output_objdir/$libname.ver~
8752          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8753        fi
8754      else
8755        ld_shlibs=no
8756      fi
8757      ;;
8758
8759    netbsd*)
8760      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8761        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8762        wlarc=
8763      else
8764        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8765        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766      fi
8767      ;;
8768
8769    solaris*)
8770      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8771        ld_shlibs=no
8772        cat <<EOF 1>&2
8773
8774*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8775*** create shared libraries on Solaris systems.  Therefore, libtool
8776*** is disabling shared libraries support.  We urge you to upgrade GNU
8777*** binutils to release 2.9.1 or newer.  Another option is to modify
8778*** your PATH or compiler configuration so that the native linker is
8779*** used, and then restart.
8780
8781EOF
8782      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8783        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8785      else
8786        ld_shlibs=no
8787      fi
8788      ;;
8789
8790    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8791      case `$LD -v 2>&1` in
8792        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8793        ld_shlibs=no
8794        cat <<_LT_EOF 1>&2
8795
8796*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8797*** reliably create shared libraries on SCO systems.  Therefore, libtool
8798*** is disabling shared libraries support.  We urge you to upgrade GNU
8799*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8800*** your PATH or compiler configuration so that the native linker is
8801*** used, and then restart.
8802
8803_LT_EOF
8804        ;;
8805        *)
8806          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8807            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8808            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8809            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8810          else
8811            ld_shlibs=no
8812          fi
8813        ;;
8814      esac
8815      ;;
8816
8817    sunos4*)
8818      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8819      wlarc=
8820      hardcode_direct=yes
8821      hardcode_shlibpath_var=no
8822      ;;
8823
8824    *)
8825      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8826        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8828      else
8829        ld_shlibs=no
8830      fi
8831      ;;
8832    esac
8833
8834    if test "$ld_shlibs" = no; then
8835      runpath_var=
8836      hardcode_libdir_flag_spec=
8837      export_dynamic_flag_spec=
8838      whole_archive_flag_spec=
8839    fi
8840  else
8841    # PORTME fill in a description of your system's linker (not GNU ld)
8842    case $host_os in
8843    aix3*)
8844      allow_undefined_flag=unsupported
8845      always_export_symbols=yes
8846      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'
8847      # Note: this linker hardcodes the directories in LIBPATH if there
8848      # are no directories specified by -L.
8849      hardcode_minus_L=yes
8850      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8851        # Neither direct hardcoding nor static linking is supported with a
8852        # broken collect2.
8853        hardcode_direct=unsupported
8854      fi
8855      ;;
8856
8857    aix4* | aix5*)
8858      if test "$host_cpu" = ia64; then
8859        # On IA64, the linker does run time linking by default, so we don't
8860        # have to do anything special.
8861        aix_use_runtimelinking=no
8862        exp_sym_flag='-Bexport'
8863        no_entry_flag=""
8864      else
8865        # If we're using GNU nm, then we don't want the "-C" option.
8866        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8867        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8868          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'
8869        else
8870          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'
8871        fi
8872        aix_use_runtimelinking=no
8873
8874        # Test if we are trying to use run time linking or normal
8875        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8876        # need to do runtime linking.
8877        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8878          for ld_flag in $LDFLAGS; do
8879          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8880            aix_use_runtimelinking=yes
8881            break
8882          fi
8883          done
8884          ;;
8885        esac
8886
8887        exp_sym_flag='-bexport'
8888        no_entry_flag='-bnoentry'
8889      fi
8890
8891      # When large executables or shared objects are built, AIX ld can
8892      # have problems creating the table of contents.  If linking a library
8893      # or program results in "error TOC overflow" add -mminimal-toc to
8894      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8895      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8896
8897      archive_cmds=''
8898      hardcode_direct=yes
8899      hardcode_libdir_separator=':'
8900      link_all_deplibs=yes
8901
8902      if test "$GCC" = yes; then
8903        case $host_os in aix4.[012]|aix4.[012].*)
8904        # We only want to do this on AIX 4.2 and lower, the check
8905        # below for broken collect2 doesn't work under 4.3+
8906          collect2name=`${CC} -print-prog-name=collect2`
8907          if test -f "$collect2name" && \
8908           strings "$collect2name" | grep resolve_lib_name >/dev/null
8909          then
8910          # We have reworked collect2
8911          hardcode_direct=yes
8912          else
8913          # We have old collect2
8914          hardcode_direct=unsupported
8915          # It fails to find uninstalled libraries when the uninstalled
8916          # path is not listed in the libpath.  Setting hardcode_minus_L
8917          # to unsupported forces relinking
8918          hardcode_minus_L=yes
8919          hardcode_libdir_flag_spec='-L$libdir'
8920          hardcode_libdir_separator=
8921          fi
8922          ;;
8923        esac
8924        shared_flag='-shared'
8925        if test "$aix_use_runtimelinking" = yes; then
8926          shared_flag="$shared_flag "'${wl}-G'
8927        fi
8928      else
8929        # not using gcc
8930        if test "$host_cpu" = ia64; then
8931        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8932        # chokes on -Wl,-G. The following line is correct:
8933          shared_flag='-G'
8934        else
8935          if test "$aix_use_runtimelinking" = yes; then
8936            shared_flag='${wl}-G'
8937          else
8938            shared_flag='${wl}-bM:SRE'
8939          fi
8940        fi
8941      fi
8942
8943      # It seems that -bexpall does not export symbols beginning with
8944      # underscore (_), so it is better to generate a list of symbols to export.
8945      always_export_symbols=yes
8946      if test "$aix_use_runtimelinking" = yes; then
8947        # Warning - without using the other runtime loading flags (-brtl),
8948        # -berok will link without error, but may produce a broken library.
8949        allow_undefined_flag='-berok'
8950       # Determine the default libpath from the value encoded in an empty executable.
8951       cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h.  */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h.  */
8957
8958int
8959main ()
8960{
8961
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext conftest$ac_exeext
8967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968  (eval $ac_link) 2>conftest.er1
8969  ac_status=$?
8970  grep -v '^ *+' conftest.er1 >conftest.err
8971  rm -f conftest.er1
8972  cat conftest.err >&5
8973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974  (exit $ac_status); } &&
8975         { ac_try='test -z "$ac_c_werror_flag"
8976                         || test ! -s conftest.err'
8977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978  (eval $ac_try) 2>&5
8979  ac_status=$?
8980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981  (exit $ac_status); }; } &&
8982         { ac_try='test -s conftest$ac_exeext'
8983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984  (eval $ac_try) 2>&5
8985  ac_status=$?
8986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987  (exit $ac_status); }; }; then
8988
8989aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8990}'`
8991# Check for a 64-bit object if we didn't find anything.
8992if 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; }
8993}'`; fi
8994else
8995  echo "$as_me: failed program was:" >&5
8996sed 's/^/| /' conftest.$ac_ext >&5
8997
8998fi
8999rm -f conftest.err conftest.$ac_objext \
9000      conftest$ac_exeext conftest.$ac_ext
9001if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9002
9003       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9004        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"
9005       else
9006        if test "$host_cpu" = ia64; then
9007          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9008          allow_undefined_flag="-z nodefs"
9009          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"
9010        else
9011         # Determine the default libpath from the value encoded in an empty executable.
9012         cat >conftest.$ac_ext <<_ACEOF
9013/* confdefs.h.  */
9014_ACEOF
9015cat confdefs.h >>conftest.$ac_ext
9016cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h.  */
9018
9019int
9020main ()
9021{
9022
9023  ;
9024  return 0;
9025}
9026_ACEOF
9027rm -f conftest.$ac_objext conftest$ac_exeext
9028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029  (eval $ac_link) 2>conftest.er1
9030  ac_status=$?
9031  grep -v '^ *+' conftest.er1 >conftest.err
9032  rm -f conftest.er1
9033  cat conftest.err >&5
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); } &&
9036         { ac_try='test -z "$ac_c_werror_flag"
9037                         || test ! -s conftest.err'
9038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039  (eval $ac_try) 2>&5
9040  ac_status=$?
9041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042  (exit $ac_status); }; } &&
9043         { ac_try='test -s conftest$ac_exeext'
9044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045  (eval $ac_try) 2>&5
9046  ac_status=$?
9047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048  (exit $ac_status); }; }; then
9049
9050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9051}'`
9052# Check for a 64-bit object if we didn't find anything.
9053if 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; }
9054}'`; fi
9055else
9056  echo "$as_me: failed program was:" >&5
9057sed 's/^/| /' conftest.$ac_ext >&5
9058
9059fi
9060rm -f conftest.err conftest.$ac_objext \
9061      conftest$ac_exeext conftest.$ac_ext
9062if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9063
9064         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9065          # Warning - without using the other run time loading flags,
9066          # -berok will link without error, but may produce a broken library.
9067          no_undefined_flag=' ${wl}-bernotok'
9068          allow_undefined_flag=' ${wl}-berok'
9069          # Exported symbols can be pulled into shared objects from archives
9070          whole_archive_flag_spec='$convenience'
9071          archive_cmds_need_lc=yes
9072          # This is similar to how AIX traditionally builds its shared libraries.
9073          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'
9074        fi
9075      fi
9076      ;;
9077
9078    amigaos*)
9079      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)'
9080      hardcode_libdir_flag_spec='-L$libdir'
9081      hardcode_minus_L=yes
9082      # see comment about different semantics on the GNU ld section
9083      ld_shlibs=no
9084      ;;
9085
9086    bsdi[45]*)
9087      export_dynamic_flag_spec=-rdynamic
9088      ;;
9089
9090    cygwin* | mingw* | pw32*)
9091      # When not using gcc, we currently assume that we are using
9092      # Microsoft Visual C++.
9093      # hardcode_libdir_flag_spec is actually meaningless, as there is
9094      # no search path for DLLs.
9095      hardcode_libdir_flag_spec=' '
9096      allow_undefined_flag=unsupported
9097      # Tell ltmain to make .lib files, not .a files.
9098      libext=lib
9099      # Tell ltmain to make .dll files, not .so files.
9100      shrext_cmds=".dll"
9101      # FIXME: Setting linknames here is a bad hack.
9102      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9103      # The linker will automatically build a .lib file if we build a DLL.
9104      old_archive_From_new_cmds='true'
9105      # FIXME: Should let the user specify the lib program.
9106      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9107      fix_srcfile_path='`cygpath -w "$srcfile"`'
9108      enable_shared_with_static_runtimes=yes
9109      ;;
9110
9111    darwin* | rhapsody*)
9112      case $host_os in
9113        rhapsody* | darwin1.[012])
9114         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9115         ;;
9116       *) # Darwin 1.3 on
9117         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9118           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9119         else
9120           case ${MACOSX_DEPLOYMENT_TARGET} in
9121             10.[012])
9122               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9123               ;;
9124             10.*)
9125               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9126               ;;
9127           esac
9128         fi
9129         ;;
9130      esac
9131      archive_cmds_need_lc=no
9132      hardcode_direct=no
9133      hardcode_automatic=yes
9134      hardcode_shlibpath_var=unsupported
9135      whole_archive_flag_spec=''
9136      link_all_deplibs=yes
9137    if test "$GCC" = yes ; then
9138        output_verbose_link_cmd='echo'
9139        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9140      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9141      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9142      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}'
9143      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}'
9144    else
9145      case $cc_basename in
9146        xlc*)
9147         output_verbose_link_cmd='echo'
9148         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9149         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9150          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9151         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}'
9152          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}'
9153          ;;
9154       *)
9155         ld_shlibs=no
9156          ;;
9157      esac
9158    fi
9159      ;;
9160
9161    dgux*)
9162      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9163      hardcode_libdir_flag_spec='-L$libdir'
9164      hardcode_shlibpath_var=no
9165      ;;
9166
9167    freebsd1*)
9168      ld_shlibs=no
9169      ;;
9170
9171    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9172    # support.  Future versions do this automatically, but an explicit c++rt0.o
9173    # does not break anything, and helps significantly (at the cost of a little
9174    # extra space).
9175    freebsd2.2*)
9176      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9177      hardcode_libdir_flag_spec='-R$libdir'
9178      hardcode_direct=yes
9179      hardcode_shlibpath_var=no
9180      ;;
9181
9182    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9183    freebsd2*)
9184      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9185      hardcode_direct=yes
9186      hardcode_minus_L=yes
9187      hardcode_shlibpath_var=no
9188      ;;
9189
9190    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9191    freebsd* | kfreebsd*-gnu | dragonfly*)
9192      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9193      hardcode_libdir_flag_spec='-R$libdir'
9194      hardcode_direct=yes
9195      hardcode_shlibpath_var=no
9196      ;;
9197
9198    hpux9*)
9199      if test "$GCC" = yes; then
9200        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'
9201      else
9202        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'
9203      fi
9204      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9205      hardcode_libdir_separator=:
9206      hardcode_direct=yes
9207
9208      # hardcode_minus_L: Not really in the search PATH,
9209      # but as the default location of the library.
9210      hardcode_minus_L=yes
9211      export_dynamic_flag_spec='${wl}-E'
9212      ;;
9213
9214    hpux10*)
9215      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9216        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9217      else
9218        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9219      fi
9220      if test "$with_gnu_ld" = no; then
9221        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9222        hardcode_libdir_separator=:
9223
9224        hardcode_direct=yes
9225        export_dynamic_flag_spec='${wl}-E'
9226
9227        # hardcode_minus_L: Not really in the search PATH,
9228        # but as the default location of the library.
9229        hardcode_minus_L=yes
9230      fi
9231      ;;
9232
9233    hpux11*)
9234      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9235        case $host_cpu in
9236        hppa*64*)
9237          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9238          ;;
9239        ia64*)
9240          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9241          ;;
9242        *)
9243          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9244          ;;
9245        esac
9246      else
9247        case $host_cpu in
9248        hppa*64*)
9249          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9250          ;;
9251        ia64*)
9252          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9253          ;;
9254        *)
9255          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9256          ;;
9257        esac
9258      fi
9259      if test "$with_gnu_ld" = no; then
9260        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9261        hardcode_libdir_separator=:
9262
9263        case $host_cpu in
9264        hppa*64*|ia64*)
9265          hardcode_libdir_flag_spec_ld='+b $libdir'
9266          hardcode_direct=no
9267          hardcode_shlibpath_var=no
9268          ;;
9269        *)
9270          hardcode_direct=yes
9271          export_dynamic_flag_spec='${wl}-E'
9272
9273          # hardcode_minus_L: Not really in the search PATH,
9274          # but as the default location of the library.
9275          hardcode_minus_L=yes
9276          ;;
9277        esac
9278      fi
9279      ;;
9280
9281    irix5* | irix6* | nonstopux*)
9282      if test "$GCC" = yes; then
9283        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'
9284      else
9285        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'
9286        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9287      fi
9288      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289      hardcode_libdir_separator=:
9290      link_all_deplibs=yes
9291      ;;
9292
9293    netbsd*)
9294      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9295        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9296      else
9297        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9298      fi
9299      hardcode_libdir_flag_spec='-R$libdir'
9300      hardcode_direct=yes
9301      hardcode_shlibpath_var=no
9302      ;;
9303
9304    newsos6)
9305      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306      hardcode_direct=yes
9307      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9308      hardcode_libdir_separator=:
9309      hardcode_shlibpath_var=no
9310      ;;
9311
9312    openbsd*)
9313      hardcode_direct=yes
9314      hardcode_shlibpath_var=no
9315      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9316        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9317        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9318        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9319        export_dynamic_flag_spec='${wl}-E'
9320      else
9321       case $host_os in
9322         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9323           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9324           hardcode_libdir_flag_spec='-R$libdir'
9325           ;;
9326         *)
9327           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9328           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9329           ;;
9330       esac
9331      fi
9332      ;;
9333
9334    os2*)
9335      hardcode_libdir_flag_spec='-L$libdir'
9336      hardcode_minus_L=yes
9337      allow_undefined_flag=unsupported
9338      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'
9339      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9340      ;;
9341
9342    osf3*)
9343      if test "$GCC" = yes; then
9344        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9345        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'
9346      else
9347        allow_undefined_flag=' -expect_unresolved \*'
9348        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'
9349      fi
9350      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9351      hardcode_libdir_separator=:
9352      ;;
9353
9354    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9355      if test "$GCC" = yes; then
9356        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9357        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'
9358        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9359      else
9360        allow_undefined_flag=' -expect_unresolved \*'
9361        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'
9362        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9363        $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'
9364
9365        # Both c and cxx compiler support -rpath directly
9366        hardcode_libdir_flag_spec='-rpath $libdir'
9367      fi
9368      hardcode_libdir_separator=:
9369      ;;
9370
9371    solaris*)
9372      no_undefined_flag=' -z text'
9373      if test "$GCC" = yes; then
9374        wlarc='${wl}'
9375        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9376        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9377          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9378      else
9379        wlarc=''
9380        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9381        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9382        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9383      fi
9384      hardcode_libdir_flag_spec='-R$libdir'
9385      hardcode_shlibpath_var=no
9386      case $host_os in
9387      solaris2.[0-5] | solaris2.[0-5].*) ;;
9388      *)
9389        # The compiler driver will combine linker options so we
9390        # cannot just pass the convience library names through
9391        # without $wl, iff we do not link with $LD.
9392        # Luckily, gcc supports the same syntax we need for Sun Studio.
9393        # Supported since Solaris 2.6 (maybe 2.5.1?)
9394        case $wlarc in
9395        '')
9396          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9397        *)
9398          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' ;;
9399        esac ;;
9400      esac
9401      link_all_deplibs=yes
9402      ;;
9403
9404    sunos4*)
9405      if test "x$host_vendor" = xsequent; then
9406        # Use $CC to link under sequent, because it throws in some extra .o
9407        # files that make .init and .fini sections work.
9408        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9409      else
9410        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9411      fi
9412      hardcode_libdir_flag_spec='-L$libdir'
9413      hardcode_direct=yes
9414      hardcode_minus_L=yes
9415      hardcode_shlibpath_var=no
9416      ;;
9417
9418    sysv4)
9419      case $host_vendor in
9420        sni)
9421          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422          hardcode_direct=yes # is this really true???
9423        ;;
9424        siemens)
9425          ## LD is ld it makes a PLAMLIB
9426          ## CC just makes a GrossModule.
9427          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9428          reload_cmds='$CC -r -o $output$reload_objs'
9429          hardcode_direct=no
9430        ;;
9431        motorola)
9432          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9434        ;;
9435      esac
9436      runpath_var='LD_RUN_PATH'
9437      hardcode_shlibpath_var=no
9438      ;;
9439
9440    sysv4.3*)
9441      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442      hardcode_shlibpath_var=no
9443      export_dynamic_flag_spec='-Bexport'
9444      ;;
9445
9446    sysv4*MP*)
9447      if test -d /usr/nec; then
9448        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449        hardcode_shlibpath_var=no
9450        runpath_var=LD_RUN_PATH
9451        hardcode_runpath_var=yes
9452        ld_shlibs=yes
9453      fi
9454      ;;
9455
9456    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9457      no_undefined_flag='${wl}-z,text'
9458      archive_cmds_need_lc=no
9459      hardcode_shlibpath_var=no
9460      runpath_var='LD_RUN_PATH'
9461
9462      if test "$GCC" = yes; then
9463        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465      else
9466        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468      fi
9469      ;;
9470
9471    sysv5* | sco3.2v5* | sco5v6*)
9472      # Note: We can NOT use -z defs as we might desire, because we do not
9473      # link with -lc, and that would cause any symbols used from libc to
9474      # always be unresolved, which means just about no library would
9475      # ever link correctly.  If we're not using GNU ld we use -z text
9476      # though, which does catch some bad symbols but isn't as heavy-handed
9477      # as -z defs.
9478      no_undefined_flag='${wl}-z,text'
9479      allow_undefined_flag='${wl}-z,nodefs'
9480      archive_cmds_need_lc=no
9481      hardcode_shlibpath_var=no
9482      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9483      hardcode_libdir_separator=':'
9484      link_all_deplibs=yes
9485      export_dynamic_flag_spec='${wl}-Bexport'
9486      runpath_var='LD_RUN_PATH'
9487
9488      if test "$GCC" = yes; then
9489        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9490        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9491      else
9492        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9493        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9494      fi
9495      ;;
9496
9497    uts4*)
9498      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499      hardcode_libdir_flag_spec='-L$libdir'
9500      hardcode_shlibpath_var=no
9501      ;;
9502
9503    *)
9504      ld_shlibs=no
9505      ;;
9506    esac
9507  fi
9508
9509echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9510echo "${ECHO_T}$ld_shlibs" >&6
9511test "$ld_shlibs" = no && can_build_shared=no
9512
9513#
9514# Do we need to explicitly link libc?
9515#
9516case "x$archive_cmds_need_lc" in
9517x|xyes)
9518  # Assume -lc should be added
9519  archive_cmds_need_lc=yes
9520
9521  if test "$enable_shared" = yes && test "$GCC" = yes; then
9522    case $archive_cmds in
9523    *'~'*)
9524      # FIXME: we may have to deal with multi-command sequences.
9525      ;;
9526    '$CC '*)
9527      # Test whether the compiler implicitly links with -lc since on some
9528      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9529      # to ld, don't add -lc before -lgcc.
9530      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9531echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9532      $rm conftest*
9533      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9534
9535      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536  (eval $ac_compile) 2>&5
9537  ac_status=$?
9538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539  (exit $ac_status); } 2>conftest.err; then
9540        soname=conftest
9541        lib=conftest
9542        libobjs=conftest.$ac_objext
9543        deplibs=
9544        wl=$lt_prog_compiler_wl
9545        pic_flag=$lt_prog_compiler_pic
9546        compiler_flags=-v
9547        linker_flags=-v
9548        verstring=
9549        output_objdir=.
9550        libname=conftest
9551        lt_save_allow_undefined_flag=$allow_undefined_flag
9552        allow_undefined_flag=
9553        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9554  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9555  ac_status=$?
9556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557  (exit $ac_status); }
9558        then
9559          archive_cmds_need_lc=no
9560        else
9561          archive_cmds_need_lc=yes
9562        fi
9563        allow_undefined_flag=$lt_save_allow_undefined_flag
9564      else
9565        cat conftest.err 1>&5
9566      fi
9567      $rm conftest*
9568      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9569echo "${ECHO_T}$archive_cmds_need_lc" >&6
9570      ;;
9571    esac
9572  fi
9573  ;;
9574esac
9575
9576echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9577echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9578library_names_spec=
9579libname_spec='lib$name'
9580soname_spec=
9581shrext_cmds=".so"
9582postinstall_cmds=
9583postuninstall_cmds=
9584finish_cmds=
9585finish_eval=
9586shlibpath_var=
9587shlibpath_overrides_runpath=unknown
9588version_type=none
9589dynamic_linker="$host_os ld.so"
9590sys_lib_dlsearch_path_spec="/lib /usr/lib"
9591if test "$GCC" = yes; then
9592  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9593  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9594    # if the path contains ";" then we assume it to be the separator
9595    # otherwise default to the standard path separator (i.e. ":") - it is
9596    # assumed that no part of a normal pathname contains ";" but that should
9597    # okay in the real world where ";" in dirpaths is itself problematic.
9598    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9599  else
9600    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9601  fi
9602else
9603  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9604fi
9605need_lib_prefix=unknown
9606hardcode_into_libs=no
9607
9608# when you set need_version to no, make sure it does not cause -set_version
9609# flags to be left without arguments
9610need_version=unknown
9611
9612case $host_os in
9613aix3*)
9614  version_type=linux
9615  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9616  shlibpath_var=LIBPATH
9617
9618  # AIX 3 has no versioning support, so we append a major version to the name.
9619  soname_spec='${libname}${release}${shared_ext}$major'
9620  ;;
9621
9622aix4* | aix5*)
9623  version_type=linux
9624  need_lib_prefix=no
9625  need_version=no
9626  hardcode_into_libs=yes
9627  if test "$host_cpu" = ia64; then
9628    # AIX 5 supports IA64
9629    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9630    shlibpath_var=LD_LIBRARY_PATH
9631  else
9632    # With GCC up to 2.95.x, collect2 would create an import file
9633    # for dependence libraries.  The import file would start with
9634    # the line `#! .'.  This would cause the generated library to
9635    # depend on `.', always an invalid library.  This was fixed in
9636    # development snapshots of GCC prior to 3.0.
9637    case $host_os in
9638      aix4 | aix4.[01] | aix4.[01].*)
9639      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9640           echo ' yes '
9641           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9642        :
9643      else
9644        can_build_shared=no
9645      fi
9646      ;;
9647    esac
9648    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9649    # soname into executable. Probably we can add versioning support to
9650    # collect2, so additional links can be useful in future.
9651    if test "$aix_use_runtimelinking" = yes; then
9652      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9653      # instead of lib<name>.a to let people know that these are not
9654      # typical AIX shared libraries.
9655      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656    else
9657      # We preserve .a as extension for shared libraries through AIX4.2
9658      # and later when we are not doing run time linking.
9659      library_names_spec='${libname}${release}.a $libname.a'
9660      soname_spec='${libname}${release}${shared_ext}$major'
9661    fi
9662    shlibpath_var=LIBPATH
9663  fi
9664  ;;
9665
9666amigaos*)
9667  library_names_spec='$libname.ixlibrary $libname.a'
9668  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9669  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'
9670  ;;
9671
9672beos*)
9673  library_names_spec='${libname}${shared_ext}'
9674  dynamic_linker="$host_os ld.so"
9675  shlibpath_var=LIBRARY_PATH
9676  ;;
9677
9678bsdi[45]*)
9679  version_type=linux
9680  need_version=no
9681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682  soname_spec='${libname}${release}${shared_ext}$major'
9683  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9684  shlibpath_var=LD_LIBRARY_PATH
9685  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9686  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9687  # the default ld.so.conf also contains /usr/contrib/lib and
9688  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9689  # libtool to hard-code these into programs
9690  ;;
9691
9692cygwin* | mingw* | pw32*)
9693  version_type=windows
9694  shrext_cmds=".dll"
9695  need_version=no
9696  need_lib_prefix=no
9697
9698  case $GCC,$host_os in
9699  yes,cygwin* | yes,mingw* | yes,pw32*)
9700    library_names_spec='$libname.dll.a'
9701    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9702    postinstall_cmds='base_file=`basename \${file}`~
9703      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9704      dldir=$destdir/`dirname \$dlpath`~
9705      test -d \$dldir || mkdir -p \$dldir~
9706      $install_prog $dir/$dlname \$dldir/$dlname~
9707      chmod a+x \$dldir/$dlname'
9708    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9709      dlpath=$dir/\$dldll~
9710       $rm \$dlpath'
9711    shlibpath_overrides_runpath=yes
9712
9713    case $host_os in
9714    cygwin*)
9715      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9716      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9717      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9718      ;;
9719    mingw*)
9720      # MinGW DLLs use traditional 'lib' prefix
9721      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9722      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9723      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9724        # It is most probably a Windows format PATH printed by
9725        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9726        # path with ; separators, and with drive letters. We can handle the
9727        # drive letters (cygwin fileutils understands them), so leave them,
9728        # especially as we might pass files found there to a mingw objdump,
9729        # which wouldn't understand a cygwinified path. Ahh.
9730        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9731      else
9732        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9733      fi
9734      ;;
9735    pw32*)
9736      # pw32 DLLs use 'pw' prefix rather than 'lib'
9737      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9738      ;;
9739    esac
9740    ;;
9741
9742  *)
9743    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9744    ;;
9745  esac
9746  dynamic_linker='Win32 ld.exe'
9747  # FIXME: first we should search . and the directory the executable is in
9748  shlibpath_var=PATH
9749  ;;
9750
9751darwin* | rhapsody*)
9752  dynamic_linker="$host_os dyld"
9753  version_type=darwin
9754  need_lib_prefix=no
9755  need_version=no
9756  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9757  soname_spec='${libname}${release}${major}$shared_ext'
9758  shlibpath_overrides_runpath=yes
9759  shlibpath_var=DYLD_LIBRARY_PATH
9760  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9761  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9762  if test "$GCC" = yes; then
9763    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"`
9764  else
9765    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9766  fi
9767  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9768  ;;
9769
9770dgux*)
9771  version_type=linux
9772  need_lib_prefix=no
9773  need_version=no
9774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9775  soname_spec='${libname}${release}${shared_ext}$major'
9776  shlibpath_var=LD_LIBRARY_PATH
9777  ;;
9778
9779freebsd1*)
9780  dynamic_linker=no
9781  ;;
9782
9783kfreebsd*-gnu)
9784  version_type=linux
9785  need_lib_prefix=no
9786  need_version=no
9787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9788  soname_spec='${libname}${release}${shared_ext}$major'
9789  shlibpath_var=LD_LIBRARY_PATH
9790  shlibpath_overrides_runpath=no
9791  hardcode_into_libs=yes
9792  dynamic_linker='GNU ld.so'
9793  ;;
9794
9795freebsd* | dragonfly*)
9796  # DragonFly does not have aout.  When/if they implement a new
9797  # versioning mechanism, adjust this.
9798  if test -x /usr/bin/objformat; then
9799    objformat=`/usr/bin/objformat`
9800  else
9801    case $host_os in
9802    freebsd[123]*) objformat=aout ;;
9803    *) objformat=elf ;;
9804    esac
9805  fi
9806  version_type=freebsd-$objformat
9807  case $version_type in
9808    freebsd-elf*)
9809      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9810      need_version=no
9811      need_lib_prefix=no
9812      ;;
9813    freebsd-*)
9814      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9815      need_version=yes
9816      ;;
9817  esac
9818  shlibpath_var=LD_LIBRARY_PATH
9819  case $host_os in
9820  freebsd2*)
9821    shlibpath_overrides_runpath=yes
9822    ;;
9823  freebsd3.[01]* | freebsdelf3.[01]*)
9824    shlibpath_overrides_runpath=yes
9825    hardcode_into_libs=yes
9826    ;;
9827  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9828  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9829    shlibpath_overrides_runpath=no
9830    hardcode_into_libs=yes
9831    ;;
9832  freebsd*) # from 4.6 on
9833    shlibpath_overrides_runpath=yes
9834    hardcode_into_libs=yes
9835    ;;
9836  esac
9837  ;;
9838
9839gnu*)
9840  version_type=linux
9841  need_lib_prefix=no
9842  need_version=no
9843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9844  soname_spec='${libname}${release}${shared_ext}$major'
9845  shlibpath_var=LD_LIBRARY_PATH
9846  hardcode_into_libs=yes
9847  ;;
9848
9849hpux9* | hpux10* | hpux11*)
9850  # Give a soname corresponding to the major version so that dld.sl refuses to
9851  # link against other versions.
9852  version_type=sunos
9853  need_lib_prefix=no
9854  need_version=no
9855  case $host_cpu in
9856  ia64*)
9857    shrext_cmds='.so'
9858    hardcode_into_libs=yes
9859    dynamic_linker="$host_os dld.so"
9860    shlibpath_var=LD_LIBRARY_PATH
9861    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9862    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863    soname_spec='${libname}${release}${shared_ext}$major'
9864    if test "X$HPUX_IA64_MODE" = X32; then
9865      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9866    else
9867      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9868    fi
9869    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9870    ;;
9871   hppa*64*)
9872     shrext_cmds='.sl'
9873     hardcode_into_libs=yes
9874     dynamic_linker="$host_os dld.sl"
9875     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9876     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878     soname_spec='${libname}${release}${shared_ext}$major'
9879     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9880     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9881     ;;
9882   *)
9883    shrext_cmds='.sl'
9884    dynamic_linker="$host_os dld.sl"
9885    shlibpath_var=SHLIB_PATH
9886    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9887    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888    soname_spec='${libname}${release}${shared_ext}$major'
9889    ;;
9890  esac
9891  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9892  postinstall_cmds='chmod 555 $lib'
9893  ;;
9894
9895interix3*)
9896  version_type=linux
9897  need_lib_prefix=no
9898  need_version=no
9899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9900  soname_spec='${libname}${release}${shared_ext}$major'
9901  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9902  shlibpath_var=LD_LIBRARY_PATH
9903  shlibpath_overrides_runpath=no
9904  hardcode_into_libs=yes
9905  ;;
9906
9907irix5* | irix6* | nonstopux*)
9908  case $host_os in
9909    nonstopux*) version_type=nonstopux ;;
9910    *)
9911        if test "$lt_cv_prog_gnu_ld" = yes; then
9912                version_type=linux
9913        else
9914                version_type=irix
9915        fi ;;
9916  esac
9917  need_lib_prefix=no
9918  need_version=no
9919  soname_spec='${libname}${release}${shared_ext}$major'
9920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9921  case $host_os in
9922  irix5* | nonstopux*)
9923    libsuff= shlibsuff=
9924    ;;
9925  *)
9926    case $LD in # libtool.m4 will add one of these switches to LD
9927    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9928      libsuff= shlibsuff= libmagic=32-bit;;
9929    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9930      libsuff=32 shlibsuff=N32 libmagic=N32;;
9931    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9932      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9933    *) libsuff= shlibsuff= libmagic=never-match;;
9934    esac
9935    ;;
9936  esac
9937  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9938  shlibpath_overrides_runpath=no
9939  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9940  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9941  hardcode_into_libs=yes
9942  ;;
9943
9944# No shared lib support for Linux oldld, aout, or coff.
9945linux*oldld* | linux*aout* | linux*coff*)
9946  dynamic_linker=no
9947  ;;
9948
9949# This must be Linux ELF.
9950linux*)
9951  version_type=linux
9952  need_lib_prefix=no
9953  need_version=no
9954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955  soname_spec='${libname}${release}${shared_ext}$major'
9956  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9957  shlibpath_var=LD_LIBRARY_PATH
9958  shlibpath_overrides_runpath=no
9959  # This implies no fast_install, which is unacceptable.
9960  # Some rework will be needed to allow for fast_install
9961  # before this can be enabled.
9962  hardcode_into_libs=yes
9963
9964  # Append ld.so.conf contents to the search path
9965  if test -f /etc/ld.so.conf; then
9966    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' ' '`
9967    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9968  fi
9969
9970  # We used to test for /lib/ld.so.1 and disable shared libraries on
9971  # powerpc, because MkLinux only supported shared libraries with the
9972  # GNU dynamic linker.  Since this was broken with cross compilers,
9973  # most powerpc-linux boxes support dynamic linking these days and
9974  # people can always --disable-shared, the test was removed, and we
9975  # assume the GNU/Linux dynamic linker is in use.
9976  dynamic_linker='GNU/Linux ld.so'
9977  ;;
9978
9979knetbsd*-gnu)
9980  version_type=linux
9981  need_lib_prefix=no
9982  need_version=no
9983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9984  soname_spec='${libname}${release}${shared_ext}$major'
9985  shlibpath_var=LD_LIBRARY_PATH
9986  shlibpath_overrides_runpath=no
9987  hardcode_into_libs=yes
9988  dynamic_linker='GNU ld.so'
9989  ;;
9990
9991netbsd*)
9992  version_type=sunos
9993  need_lib_prefix=no
9994  need_version=no
9995  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9996    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9997    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9998    dynamic_linker='NetBSD (a.out) ld.so'
9999  else
10000    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10001    soname_spec='${libname}${release}${shared_ext}$major'
10002    dynamic_linker='NetBSD ld.elf_so'
10003  fi
10004  shlibpath_var=LD_LIBRARY_PATH
10005  shlibpath_overrides_runpath=yes
10006  hardcode_into_libs=yes
10007  ;;
10008
10009newsos6)
10010  version_type=linux
10011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012  shlibpath_var=LD_LIBRARY_PATH
10013  shlibpath_overrides_runpath=yes
10014  ;;
10015
10016nto-qnx*)
10017  version_type=linux
10018  need_lib_prefix=no
10019  need_version=no
10020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021  soname_spec='${libname}${release}${shared_ext}$major'
10022  shlibpath_var=LD_LIBRARY_PATH
10023  shlibpath_overrides_runpath=yes
10024  ;;
10025
10026openbsd*)
10027  version_type=sunos
10028  sys_lib_dlsearch_path_spec="/usr/lib"
10029  need_lib_prefix=no
10030  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10031  case $host_os in
10032    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10033    *)                         need_version=no  ;;
10034  esac
10035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10036  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10037  shlibpath_var=LD_LIBRARY_PATH
10038  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10039    case $host_os in
10040      openbsd2.[89] | openbsd2.[89].*)
10041        shlibpath_overrides_runpath=no
10042        ;;
10043      *)
10044        shlibpath_overrides_runpath=yes
10045        ;;
10046      esac
10047  else
10048    shlibpath_overrides_runpath=yes
10049  fi
10050  ;;
10051
10052os2*)
10053  libname_spec='$name'
10054  shrext_cmds=".dll"
10055  need_lib_prefix=no
10056  library_names_spec='$libname${shared_ext} $libname.a'
10057  dynamic_linker='OS/2 ld.exe'
10058  shlibpath_var=LIBPATH
10059  ;;
10060
10061osf3* | osf4* | osf5*)
10062  version_type=osf
10063  need_lib_prefix=no
10064  need_version=no
10065  soname_spec='${libname}${release}${shared_ext}$major'
10066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067  shlibpath_var=LD_LIBRARY_PATH
10068  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10069  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10070  ;;
10071
10072solaris*)
10073  version_type=linux
10074  need_lib_prefix=no
10075  need_version=no
10076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077  soname_spec='${libname}${release}${shared_ext}$major'
10078  shlibpath_var=LD_LIBRARY_PATH
10079  shlibpath_overrides_runpath=yes
10080  hardcode_into_libs=yes
10081  # ldd complains unless libraries are executable
10082  postinstall_cmds='chmod +x $lib'
10083  ;;
10084
10085sunos4*)
10086  version_type=sunos
10087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10088  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10089  shlibpath_var=LD_LIBRARY_PATH
10090  shlibpath_overrides_runpath=yes
10091  if test "$with_gnu_ld" = yes; then
10092    need_lib_prefix=no
10093  fi
10094  need_version=yes
10095  ;;
10096
10097sysv4 | sysv4.3*)
10098  version_type=linux
10099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100  soname_spec='${libname}${release}${shared_ext}$major'
10101  shlibpath_var=LD_LIBRARY_PATH
10102  case $host_vendor in
10103    sni)
10104      shlibpath_overrides_runpath=no
10105      need_lib_prefix=no
10106      export_dynamic_flag_spec='${wl}-Blargedynsym'
10107      runpath_var=LD_RUN_PATH
10108      ;;
10109    siemens)
10110      need_lib_prefix=no
10111      ;;
10112    motorola)
10113      need_lib_prefix=no
10114      need_version=no
10115      shlibpath_overrides_runpath=no
10116      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10117      ;;
10118  esac
10119  ;;
10120
10121sysv4*MP*)
10122  if test -d /usr/nec ;then
10123    version_type=linux
10124    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10125    soname_spec='$libname${shared_ext}.$major'
10126    shlibpath_var=LD_LIBRARY_PATH
10127  fi
10128  ;;
10129
10130sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10131  version_type=freebsd-elf
10132  need_lib_prefix=no
10133  need_version=no
10134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10135  soname_spec='${libname}${release}${shared_ext}$major'
10136  shlibpath_var=LD_LIBRARY_PATH
10137  hardcode_into_libs=yes
10138  if test "$with_gnu_ld" = yes; then
10139    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10140    shlibpath_overrides_runpath=no
10141  else
10142    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10143    shlibpath_overrides_runpath=yes
10144    case $host_os in
10145      sco3.2v5*)
10146        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10147        ;;
10148    esac
10149  fi
10150  sys_lib_dlsearch_path_spec='/usr/lib'
10151  ;;
10152
10153uts4*)
10154  version_type=linux
10155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156  soname_spec='${libname}${release}${shared_ext}$major'
10157  shlibpath_var=LD_LIBRARY_PATH
10158  ;;
10159
10160*)
10161  dynamic_linker=no
10162  ;;
10163esac
10164echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10165echo "${ECHO_T}$dynamic_linker" >&6
10166test "$dynamic_linker" = no && can_build_shared=no
10167
10168variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10169if test "$GCC" = yes; then
10170  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10171fi
10172
10173echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10174echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10175hardcode_action=
10176if test -n "$hardcode_libdir_flag_spec" || \
10177   test -n "$runpath_var" || \
10178   test "X$hardcode_automatic" = "Xyes" ; then
10179
10180  # We can hardcode non-existant directories.
10181  if test "$hardcode_direct" != no &&
10182     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10183     # have to relink, otherwise we might link with an installed library
10184     # when we should be linking with a yet-to-be-installed one
10185     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10186     test "$hardcode_minus_L" != no; then
10187    # Linking always hardcodes the temporary library directory.
10188    hardcode_action=relink
10189  else
10190    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10191    hardcode_action=immediate
10192  fi
10193else
10194  # We cannot hardcode anything, or else we can only hardcode existing
10195  # directories.
10196  hardcode_action=unsupported
10197fi
10198echo "$as_me:$LINENO: result: $hardcode_action" >&5
10199echo "${ECHO_T}$hardcode_action" >&6
10200
10201if test "$hardcode_action" = relink; then
10202  # Fast installation is not supported
10203  enable_fast_install=no
10204elif test "$shlibpath_overrides_runpath" = yes ||
10205     test "$enable_shared" = no; then
10206  # Fast installation is not necessary
10207  enable_fast_install=needless
10208fi
10209
10210striplib=
10211old_striplib=
10212echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10213echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10214if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10215  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10216  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10217  echo "$as_me:$LINENO: result: yes" >&5
10218echo "${ECHO_T}yes" >&6
10219else
10220# FIXME - insert some real tests, host_os isn't really good enough
10221  case $host_os in
10222   darwin*)
10223       if test -n "$STRIP" ; then
10224         striplib="$STRIP -x"
10225         echo "$as_me:$LINENO: result: yes" >&5
10226echo "${ECHO_T}yes" >&6
10227       else
10228  echo "$as_me:$LINENO: result: no" >&5
10229echo "${ECHO_T}no" >&6
10230fi
10231       ;;
10232   *)
10233  echo "$as_me:$LINENO: result: no" >&5
10234echo "${ECHO_T}no" >&6
10235    ;;
10236  esac
10237fi
10238
10239if test "x$enable_dlopen" != xyes; then
10240  enable_dlopen=unknown
10241  enable_dlopen_self=unknown
10242  enable_dlopen_self_static=unknown
10243else
10244  lt_cv_dlopen=no
10245  lt_cv_dlopen_libs=
10246
10247  case $host_os in
10248  beos*)
10249    lt_cv_dlopen="load_add_on"
10250    lt_cv_dlopen_libs=
10251    lt_cv_dlopen_self=yes
10252    ;;
10253
10254  mingw* | pw32*)
10255    lt_cv_dlopen="LoadLibrary"
10256    lt_cv_dlopen_libs=
10257   ;;
10258
10259  cygwin*)
10260    lt_cv_dlopen="dlopen"
10261    lt_cv_dlopen_libs=
10262   ;;
10263
10264  darwin*)
10265  # if libdl is installed we need to link against it
10266    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10267echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10268if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10269  echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271  ac_check_lib_save_LIBS=$LIBS
10272LIBS="-ldl  $LIBS"
10273cat >conftest.$ac_ext <<_ACEOF
10274/* confdefs.h.  */
10275_ACEOF
10276cat confdefs.h >>conftest.$ac_ext
10277cat >>conftest.$ac_ext <<_ACEOF
10278/* end confdefs.h.  */
10279
10280/* Override any gcc2 internal prototype to avoid an error.  */
10281#ifdef __cplusplus
10282extern "C"
10283#endif
10284/* We use char because int might match the return type of a gcc2
10285   builtin and then its argument prototype would still apply.  */
10286char dlopen ();
10287int
10288main ()
10289{
10290dlopen ();
10291  ;
10292  return 0;
10293}
10294_ACEOF
10295rm -f conftest.$ac_objext conftest$ac_exeext
10296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297  (eval $ac_link) 2>conftest.er1
10298  ac_status=$?
10299  grep -v '^ *+' conftest.er1 >conftest.err
10300  rm -f conftest.er1
10301  cat conftest.err >&5
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); } &&
10304         { ac_try='test -z "$ac_c_werror_flag"
10305                         || test ! -s conftest.err'
10306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307  (eval $ac_try) 2>&5
10308  ac_status=$?
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); }; } &&
10311         { ac_try='test -s conftest$ac_exeext'
10312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313  (eval $ac_try) 2>&5
10314  ac_status=$?
10315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316  (exit $ac_status); }; }; then
10317  ac_cv_lib_dl_dlopen=yes
10318else
10319  echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322ac_cv_lib_dl_dlopen=no
10323fi
10324rm -f conftest.err conftest.$ac_objext \
10325      conftest$ac_exeext conftest.$ac_ext
10326LIBS=$ac_check_lib_save_LIBS
10327fi
10328echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10329echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10330if test $ac_cv_lib_dl_dlopen = yes; then
10331  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10332else
10333
10334    lt_cv_dlopen="dyld"
10335    lt_cv_dlopen_libs=
10336    lt_cv_dlopen_self=yes
10337
10338fi
10339
10340   ;;
10341
10342  *)
10343    echo "$as_me:$LINENO: checking for shl_load" >&5
10344echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10345if test "${ac_cv_func_shl_load+set}" = set; then
10346  echo $ECHO_N "(cached) $ECHO_C" >&6
10347else
10348  cat >conftest.$ac_ext <<_ACEOF
10349/* confdefs.h.  */
10350_ACEOF
10351cat confdefs.h >>conftest.$ac_ext
10352cat >>conftest.$ac_ext <<_ACEOF
10353/* end confdefs.h.  */
10354/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10356#define shl_load innocuous_shl_load
10357
10358/* System header to define __stub macros and hopefully few prototypes,
10359    which can conflict with char shl_load (); below.
10360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10361    <limits.h> exists even on freestanding compilers.  */
10362
10363#ifdef __STDC__
10364# include <limits.h>
10365#else
10366# include <assert.h>
10367#endif
10368
10369#undef shl_load
10370
10371/* Override any gcc2 internal prototype to avoid an error.  */
10372#ifdef __cplusplus
10373extern "C"
10374{
10375#endif
10376/* We use char because int might match the return type of a gcc2
10377   builtin and then its argument prototype would still apply.  */
10378char shl_load ();
10379/* The GNU C library defines this for functions which it implements
10380    to always fail with ENOSYS.  Some functions are actually named
10381    something starting with __ and the normal name is an alias.  */
10382#if defined (__stub_shl_load) || defined (__stub___shl_load)
10383choke me
10384#else
10385char (*f) () = shl_load;
10386#endif
10387#ifdef __cplusplus
10388}
10389#endif
10390
10391int
10392main ()
10393{
10394return f != shl_load;
10395  ;
10396  return 0;
10397}
10398_ACEOF
10399rm -f conftest.$ac_objext conftest$ac_exeext
10400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401  (eval $ac_link) 2>conftest.er1
10402  ac_status=$?
10403  grep -v '^ *+' conftest.er1 >conftest.err
10404  rm -f conftest.er1
10405  cat conftest.err >&5
10406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407  (exit $ac_status); } &&
10408         { ac_try='test -z "$ac_c_werror_flag"
10409                         || test ! -s conftest.err'
10410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411  (eval $ac_try) 2>&5
10412  ac_status=$?
10413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414  (exit $ac_status); }; } &&
10415         { ac_try='test -s conftest$ac_exeext'
10416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417  (eval $ac_try) 2>&5
10418  ac_status=$?
10419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420  (exit $ac_status); }; }; then
10421  ac_cv_func_shl_load=yes
10422else
10423  echo "$as_me: failed program was:" >&5
10424sed 's/^/| /' conftest.$ac_ext >&5
10425
10426ac_cv_func_shl_load=no
10427fi
10428rm -f conftest.err conftest.$ac_objext \
10429      conftest$ac_exeext conftest.$ac_ext
10430fi
10431echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10432echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10433if test $ac_cv_func_shl_load = yes; then
10434  lt_cv_dlopen="shl_load"
10435else
10436  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10437echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10438if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10439  echo $ECHO_N "(cached) $ECHO_C" >&6
10440else
10441  ac_check_lib_save_LIBS=$LIBS
10442LIBS="-ldld  $LIBS"
10443cat >conftest.$ac_ext <<_ACEOF
10444/* confdefs.h.  */
10445_ACEOF
10446cat confdefs.h >>conftest.$ac_ext
10447cat >>conftest.$ac_ext <<_ACEOF
10448/* end confdefs.h.  */
10449
10450/* Override any gcc2 internal prototype to avoid an error.  */
10451#ifdef __cplusplus
10452extern "C"
10453#endif
10454/* We use char because int might match the return type of a gcc2
10455   builtin and then its argument prototype would still apply.  */
10456char shl_load ();
10457int
10458main ()
10459{
10460shl_load ();
10461  ;
10462  return 0;
10463}
10464_ACEOF
10465rm -f conftest.$ac_objext conftest$ac_exeext
10466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467  (eval $ac_link) 2>conftest.er1
10468  ac_status=$?
10469  grep -v '^ *+' conftest.er1 >conftest.err
10470  rm -f conftest.er1
10471  cat conftest.err >&5
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); } &&
10474         { ac_try='test -z "$ac_c_werror_flag"
10475                         || test ! -s conftest.err'
10476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477  (eval $ac_try) 2>&5
10478  ac_status=$?
10479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480  (exit $ac_status); }; } &&
10481         { ac_try='test -s conftest$ac_exeext'
10482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483  (eval $ac_try) 2>&5
10484  ac_status=$?
10485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486  (exit $ac_status); }; }; then
10487  ac_cv_lib_dld_shl_load=yes
10488else
10489  echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492ac_cv_lib_dld_shl_load=no
10493fi
10494rm -f conftest.err conftest.$ac_objext \
10495      conftest$ac_exeext conftest.$ac_ext
10496LIBS=$ac_check_lib_save_LIBS
10497fi
10498echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10499echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10500if test $ac_cv_lib_dld_shl_load = yes; then
10501  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10502else
10503  echo "$as_me:$LINENO: checking for dlopen" >&5
10504echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10505if test "${ac_cv_func_dlopen+set}" = set; then
10506  echo $ECHO_N "(cached) $ECHO_C" >&6
10507else
10508  cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h.  */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h.  */
10514/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10515   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10516#define dlopen innocuous_dlopen
10517
10518/* System header to define __stub macros and hopefully few prototypes,
10519    which can conflict with char dlopen (); below.
10520    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10521    <limits.h> exists even on freestanding compilers.  */
10522
10523#ifdef __STDC__
10524# include <limits.h>
10525#else
10526# include <assert.h>
10527#endif
10528
10529#undef dlopen
10530
10531/* Override any gcc2 internal prototype to avoid an error.  */
10532#ifdef __cplusplus
10533extern "C"
10534{
10535#endif
10536/* We use char because int might match the return type of a gcc2
10537   builtin and then its argument prototype would still apply.  */
10538char dlopen ();
10539/* The GNU C library defines this for functions which it implements
10540    to always fail with ENOSYS.  Some functions are actually named
10541    something starting with __ and the normal name is an alias.  */
10542#if defined (__stub_dlopen) || defined (__stub___dlopen)
10543choke me
10544#else
10545char (*f) () = dlopen;
10546#endif
10547#ifdef __cplusplus
10548}
10549#endif
10550
10551int
10552main ()
10553{
10554return f != dlopen;
10555  ;
10556  return 0;
10557}
10558_ACEOF
10559rm -f conftest.$ac_objext conftest$ac_exeext
10560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561  (eval $ac_link) 2>conftest.er1
10562  ac_status=$?
10563  grep -v '^ *+' conftest.er1 >conftest.err
10564  rm -f conftest.er1
10565  cat conftest.err >&5
10566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); } &&
10568         { ac_try='test -z "$ac_c_werror_flag"
10569                         || test ! -s conftest.err'
10570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571  (eval $ac_try) 2>&5
10572  ac_status=$?
10573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574  (exit $ac_status); }; } &&
10575         { ac_try='test -s conftest$ac_exeext'
10576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577  (eval $ac_try) 2>&5
10578  ac_status=$?
10579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580  (exit $ac_status); }; }; then
10581  ac_cv_func_dlopen=yes
10582else
10583  echo "$as_me: failed program was:" >&5
10584sed 's/^/| /' conftest.$ac_ext >&5
10585
10586ac_cv_func_dlopen=no
10587fi
10588rm -f conftest.err conftest.$ac_objext \
10589      conftest$ac_exeext conftest.$ac_ext
10590fi
10591echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10592echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10593if test $ac_cv_func_dlopen = yes; then
10594  lt_cv_dlopen="dlopen"
10595else
10596  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10597echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10598if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10599  echo $ECHO_N "(cached) $ECHO_C" >&6
10600else
10601  ac_check_lib_save_LIBS=$LIBS
10602LIBS="-ldl  $LIBS"
10603cat >conftest.$ac_ext <<_ACEOF
10604/* confdefs.h.  */
10605_ACEOF
10606cat confdefs.h >>conftest.$ac_ext
10607cat >>conftest.$ac_ext <<_ACEOF
10608/* end confdefs.h.  */
10609
10610/* Override any gcc2 internal prototype to avoid an error.  */
10611#ifdef __cplusplus
10612extern "C"
10613#endif
10614/* We use char because int might match the return type of a gcc2
10615   builtin and then its argument prototype would still apply.  */
10616char dlopen ();
10617int
10618main ()
10619{
10620dlopen ();
10621  ;
10622  return 0;
10623}
10624_ACEOF
10625rm -f conftest.$ac_objext conftest$ac_exeext
10626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627  (eval $ac_link) 2>conftest.er1
10628  ac_status=$?
10629  grep -v '^ *+' conftest.er1 >conftest.err
10630  rm -f conftest.er1
10631  cat conftest.err >&5
10632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); } &&
10634         { ac_try='test -z "$ac_c_werror_flag"
10635                         || test ! -s conftest.err'
10636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637  (eval $ac_try) 2>&5
10638  ac_status=$?
10639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640  (exit $ac_status); }; } &&
10641         { ac_try='test -s conftest$ac_exeext'
10642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643  (eval $ac_try) 2>&5
10644  ac_status=$?
10645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); }; }; then
10647  ac_cv_lib_dl_dlopen=yes
10648else
10649  echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652ac_cv_lib_dl_dlopen=no
10653fi
10654rm -f conftest.err conftest.$ac_objext \
10655      conftest$ac_exeext conftest.$ac_ext
10656LIBS=$ac_check_lib_save_LIBS
10657fi
10658echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10659echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10660if test $ac_cv_lib_dl_dlopen = yes; then
10661  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10662else
10663  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10664echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10665if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10666  echo $ECHO_N "(cached) $ECHO_C" >&6
10667else
10668  ac_check_lib_save_LIBS=$LIBS
10669LIBS="-lsvld  $LIBS"
10670cat >conftest.$ac_ext <<_ACEOF
10671/* confdefs.h.  */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h.  */
10676
10677/* Override any gcc2 internal prototype to avoid an error.  */
10678#ifdef __cplusplus
10679extern "C"
10680#endif
10681/* We use char because int might match the return type of a gcc2
10682   builtin and then its argument prototype would still apply.  */
10683char dlopen ();
10684int
10685main ()
10686{
10687dlopen ();
10688  ;
10689  return 0;
10690}
10691_ACEOF
10692rm -f conftest.$ac_objext conftest$ac_exeext
10693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694  (eval $ac_link) 2>conftest.er1
10695  ac_status=$?
10696  grep -v '^ *+' conftest.er1 >conftest.err
10697  rm -f conftest.er1
10698  cat conftest.err >&5
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); } &&
10701         { ac_try='test -z "$ac_c_werror_flag"
10702                         || test ! -s conftest.err'
10703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704  (eval $ac_try) 2>&5
10705  ac_status=$?
10706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707  (exit $ac_status); }; } &&
10708         { ac_try='test -s conftest$ac_exeext'
10709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710  (eval $ac_try) 2>&5
10711  ac_status=$?
10712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713  (exit $ac_status); }; }; then
10714  ac_cv_lib_svld_dlopen=yes
10715else
10716  echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719ac_cv_lib_svld_dlopen=no
10720fi
10721rm -f conftest.err conftest.$ac_objext \
10722      conftest$ac_exeext conftest.$ac_ext
10723LIBS=$ac_check_lib_save_LIBS
10724fi
10725echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10726echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6