source: stable/1.15/Clp/configure @ 2014

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

restoring Clp/stable/1.15

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