source: trunk/Clp/configure @ 1996

Last change on this file since 1996 was 1996, checked in by stefan, 6 years ago

conditional addition of dependent libraries into project libs via LIBADD

  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp trunk.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Clp trunk'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS 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 ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1001ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1002ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1003ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1004ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1005ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1006ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1007ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1008ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1009ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1010ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1011ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016
1017#
1018# Report the --help message.
1019#
1020if test "$ac_init_help" = "long"; then
1021  # Omit some internal or obsolete options to make the list less imposing.
1022  # This message is too long to be a string in the A/UX 3.1 sh.
1023  cat <<_ACEOF
1024\`configure' configures Clp trunk to adapt to many kinds of systems.
1025
1026Usage: $0 [OPTION]... [VAR=VALUE]...
1027
1028To assign environment variables (e.g., CC, CFLAGS...), specify them as
1029VAR=VALUE.  See below for descriptions of some of the useful variables.
1030
1031Defaults for the options are specified in brackets.
1032
1033Configuration:
1034  -h, --help              display this help and exit
1035      --help=short        display options specific to this package
1036      --help=recursive    display the short help of all the included packages
1037  -V, --version           display version information and exit
1038  -q, --quiet, --silent   do not print \`checking...' messages
1039      --cache-file=FILE   cache test results in FILE [disabled]
1040  -C, --config-cache      alias for \`--cache-file=config.cache'
1041  -n, --no-create         do not create output files
1042      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1043
1044_ACEOF
1045
1046  cat <<_ACEOF
1047Installation directories:
1048  --prefix=PREFIX         install architecture-independent files in PREFIX
1049                          [$ac_default_prefix]
1050  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1051                          [PREFIX]
1052
1053By default, \`make install' will install all the files in
1054\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1055an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1056for instance \`--prefix=\$HOME'.
1057
1058For better control, use the options below.
1059
1060Fine tuning of the installation directories:
1061  --bindir=DIR           user executables [EPREFIX/bin]
1062  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1063  --libexecdir=DIR       program executables [EPREFIX/libexec]
1064  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1065  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1066  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1067  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1068  --libdir=DIR           object code libraries [EPREFIX/lib]
1069  --includedir=DIR       C header files [PREFIX/include]
1070  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1071  --infodir=DIR          info documentation [PREFIX/info]
1072  --mandir=DIR           man documentation [PREFIX/man]
1073_ACEOF
1074
1075  cat <<\_ACEOF
1076
1077Program names:
1078  --program-prefix=PREFIX            prepend PREFIX to installed program names
1079  --program-suffix=SUFFIX            append SUFFIX to installed program names
1080  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1081
1082System types:
1083  --build=BUILD     configure for building on BUILD [guessed]
1084  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1085_ACEOF
1086fi
1087
1088if test -n "$ac_init_help"; then
1089  case $ac_init_help in
1090     short | recursive ) echo "Configuration of Clp trunk:";;
1091   esac
1092  cat <<\_ACEOF
1093
1094Optional Features:
1095  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1096  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1097  --enable-debug          compile all projects with debug options tests
1098                          (implies --disable-shared)
1099  --enable-debug-clp compile project Clp with debug compiler flags
1100
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-asl-lib linker flags for using package ASL
1172  --with-asl-incdir directory with header files for using package ASL
1173  --with-asl-datadir directory with data files for using package ASL
1174  --with-dot              use dot (from graphviz) when creating documentation
1175                          with doxygen if available; --without-dot to disable
1176
1177Some influential environment variables:
1178  CDEFS       Additional -D flags to be used when compiling C code.
1179  ADD_CFLAGS  Additional C compiler options
1180  DBG_CFLAGS  Debug C compiler options
1181  OPT_CFLAGS  Optimize C compiler options
1182  CC          C compiler command
1183  CFLAGS      C compiler flags
1184  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1185              nonstandard directory <lib dir>
1186  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1187              headers in a nonstandard directory <include dir>
1188  MPICC       C MPI Compiler
1189  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1190  ADD_CXXFLAGS
1191              Additional C++ compiler options
1192  DBG_CXXFLAGS
1193              Debug C++ compiler options
1194  OPT_CXXFLAGS
1195              Optimize C++ compiler options
1196  CXX         C++ compiler command
1197  CXXFLAGS    C++ compiler flags
1198  MPICXX      C++ MPI Compiler
1199  CPP         C preprocessor
1200  CXXCPP      C++ preprocessor
1201  F77         Fortran 77 compiler command
1202  FFLAGS      Fortran 77 compiler flags
1203  PKG_CONFIG  path to pkg-config utility
1204  ADD_FFLAGS  Additional Fortran compiler options
1205  DBG_FFLAGS  Debug Fortran compiler options
1206  OPT_FFLAGS  Optimize Fortran compiler options
1207  MPIF77      Fortran MPI Compiler
1208
1209Use these variables to override the choices made by `configure' or to help
1210it to find libraries and programs with nonstandard names/locations.
1211
1212Report bugs to <clp@list.coin-or.org>.
1213_ACEOF
1214fi
1215
1216if test "$ac_init_help" = "recursive"; then
1217  # If there are subdirs, report their specific --help.
1218  ac_popdir=`pwd`
1219  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1220    test -d $ac_dir || continue
1221    ac_builddir=.
1222
1223if test "$ac_dir" != .; then
1224  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1225  # A "../" for each directory in $ac_dir_suffix.
1226  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1227else
1228  ac_dir_suffix= ac_top_builddir=
1229fi
1230
1231case $srcdir in
1232  .)  # No --srcdir option.  We are building in place.
1233    ac_srcdir=.
1234    if test -z "$ac_top_builddir"; then
1235       ac_top_srcdir=.
1236    else
1237       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1238    fi ;;
1239  [\\/]* | ?:[\\/]* )  # Absolute path.
1240    ac_srcdir=$srcdir$ac_dir_suffix;
1241    ac_top_srcdir=$srcdir ;;
1242  *) # Relative path.
1243    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1244    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1245esac
1246
1247# Do not use `cd foo && pwd` to compute absolute paths, because
1248# the directories may not exist.
1249case `pwd` in
1250.) ac_abs_builddir="$ac_dir";;
1251*)
1252  case "$ac_dir" in
1253  .) ac_abs_builddir=`pwd`;;
1254  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1255  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1256  esac;;
1257esac
1258case $ac_abs_builddir in
1259.) ac_abs_top_builddir=${ac_top_builddir}.;;
1260*)
1261  case ${ac_top_builddir}. in
1262  .) ac_abs_top_builddir=$ac_abs_builddir;;
1263  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1264  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1265  esac;;
1266esac
1267case $ac_abs_builddir in
1268.) ac_abs_srcdir=$ac_srcdir;;
1269*)
1270  case $ac_srcdir in
1271  .) ac_abs_srcdir=$ac_abs_builddir;;
1272  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1273  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1274  esac;;
1275esac
1276case $ac_abs_builddir in
1277.) ac_abs_top_srcdir=$ac_top_srcdir;;
1278*)
1279  case $ac_top_srcdir in
1280  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1281  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1282  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1283  esac;;
1284esac
1285
1286    cd $ac_dir
1287    # Check for guested configure; otherwise get Cygnus style configure.
1288    if test -f $ac_srcdir/configure.gnu; then
1289      echo
1290      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1291    elif test -f $ac_srcdir/configure; then
1292      echo
1293      $SHELL $ac_srcdir/configure  --help=recursive
1294    elif test -f $ac_srcdir/configure.ac ||
1295           test -f $ac_srcdir/configure.in; then
1296      echo
1297      $ac_configure --help
1298    else
1299      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1300    fi
1301    cd $ac_popdir
1302  done
1303fi
1304
1305test -n "$ac_init_help" && exit 0
1306if $ac_init_version; then
1307  cat <<\_ACEOF
1308Clp configure trunk
1309generated by GNU Autoconf 2.59
1310
1311Copyright (C) 2003 Free Software Foundation, Inc.
1312This configure script is free software; the Free Software Foundation
1313gives unlimited permission to copy, distribute and modify it.
1314
1315
1316Copyright 2006 International Business Machines and others.
1317All Rights Reserved.
1318This file is part of the open source package Coin which is distributed
1319under the Eclipse Public License.
1320_ACEOF
1321  exit 0
1322fi
1323exec 5>config.log
1324cat >&5 <<_ACEOF
1325This file contains any messages produced by compilers while
1326running configure, to aid debugging if configure makes a mistake.
1327
1328It was created by Clp $as_me trunk, which was
1329generated by GNU Autoconf 2.59.  Invocation command line was
1330
1331  $ $0 $@
1332
1333_ACEOF
1334{
1335cat <<_ASUNAME
1336## --------- ##
1337## Platform. ##
1338## --------- ##
1339
1340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1341uname -m = `(uname -m) 2>/dev/null || echo unknown`
1342uname -r = `(uname -r) 2>/dev/null || echo unknown`
1343uname -s = `(uname -s) 2>/dev/null || echo unknown`
1344uname -v = `(uname -v) 2>/dev/null || echo unknown`
1345
1346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1347/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1348
1349/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1350/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1352hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1353/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1354/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1355/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1356
1357_ASUNAME
1358
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  echo "PATH: $as_dir"
1365done
1366
1367} >&5
1368
1369cat >&5 <<_ACEOF
1370
1371
1372## ----------- ##
1373## Core tests. ##
1374## ----------- ##
1375
1376_ACEOF
1377
1378
1379# Keep a trace of the command line.
1380# Strip out --no-create and --no-recursion so they do not pile up.
1381# Strip out --silent because we don't want to record it for future runs.
1382# Also quote any args containing shell meta-characters.
1383# Make two passes to allow for proper duplicate-argument suppression.
1384ac_configure_args=
1385ac_configure_args0=
1386ac_configure_args1=
1387ac_sep=
1388ac_must_keep_next=false
1389for ac_pass in 1 2
1390do
1391  for ac_arg
1392  do
1393    case $ac_arg in
1394    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1395    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396    | -silent | --silent | --silen | --sile | --sil)
1397      continue ;;
1398    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1400    esac
1401    case $ac_pass in
1402    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1403    2)
1404      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1405      if test $ac_must_keep_next = true; then
1406        ac_must_keep_next=false # Got value, back to normal.
1407      else
1408        case $ac_arg in
1409          *=* | --config-cache | -C | -disable-* | --disable-* \
1410          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1411          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1412          | -with-* | --with-* | -without-* | --without-* | --x)
1413            case "$ac_configure_args0 " in
1414              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1415            esac
1416            ;;
1417          -* ) ac_must_keep_next=true ;;
1418        esac
1419      fi
1420      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1421      # Get rid of the leading space.
1422      ac_sep=" "
1423      ;;
1424    esac
1425  done
1426done
1427$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1428$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429
1430# When interrupted or exit'd, cleanup temporary files, and complete
1431# config.log.  We remove comments because anyway the quotes in there
1432# would cause problems or look ugly.
1433# WARNING: Be sure not to use single quotes in there, as some shells,
1434# such as our DU 5.0 friend, will then `close' the trap.
1435trap 'exit_status=$?
1436  # Save into config.log some information that might help in debugging.
1437  {
1438    echo
1439
1440    cat <<\_ASBOX
1441## ---------------- ##
1442## Cache variables. ##
1443## ---------------- ##
1444_ASBOX
1445    echo
1446    # The following way of writing the cache mishandles newlines in values,
1447{
1448  (set) 2>&1 |
1449    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1450    *ac_space=\ *)
1451      sed -n \
1452        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1453          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1454      ;;
1455    *)
1456      sed -n \
1457        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1458      ;;
1459    esac;
1460}
1461    echo
1462
1463    cat <<\_ASBOX
1464## ----------------- ##
1465## Output variables. ##
1466## ----------------- ##
1467_ASBOX
1468    echo
1469    for ac_var in $ac_subst_vars
1470    do
1471      eval ac_val=$`echo $ac_var`
1472      echo "$ac_var='"'"'$ac_val'"'"'"
1473    done | sort
1474    echo
1475
1476    if test -n "$ac_subst_files"; then
1477      cat <<\_ASBOX
1478## ------------- ##
1479## Output files. ##
1480## ------------- ##
1481_ASBOX
1482      echo
1483      for ac_var in $ac_subst_files
1484      do
1485        eval ac_val=$`echo $ac_var`
1486        echo "$ac_var='"'"'$ac_val'"'"'"
1487      done | sort
1488      echo
1489    fi
1490
1491    if test -s confdefs.h; then
1492      cat <<\_ASBOX
1493## ----------- ##
1494## confdefs.h. ##
1495## ----------- ##
1496_ASBOX
1497      echo
1498      sed "/^$/d" confdefs.h | sort
1499      echo
1500    fi
1501    test "$ac_signal" != 0 &&
1502      echo "$as_me: caught signal $ac_signal"
1503    echo "$as_me: exit $exit_status"
1504  } >&5
1505  rm -f core *.core &&
1506  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1507    exit $exit_status
1508     ' 0
1509for ac_signal in 1 2 13 15; do
1510  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1511done
1512ac_signal=0
1513
1514# confdefs.h avoids OS command line length limits that DEFS can exceed.
1515rm -rf conftest* confdefs.h
1516# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1517echo >confdefs.h
1518
1519# Predefined preprocessor variables.
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_NAME "$PACKAGE_NAME"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_VERSION "$PACKAGE_VERSION"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_STRING "$PACKAGE_STRING"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1543_ACEOF
1544
1545
1546# Let the site file select an alternate cache file if it wants to.
1547# Prefer explicitly selected file to automatically selected ones.
1548if test -z "$CONFIG_SITE"; then
1549  if test "x$prefix" != xNONE; then
1550    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1551  else
1552    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1553  fi
1554fi
1555for ac_site_file in $CONFIG_SITE; do
1556  if test -r "$ac_site_file"; then
1557    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1558echo "$as_me: loading site script $ac_site_file" >&6;}
1559    sed 's/^/| /' "$ac_site_file" >&5
1560    . "$ac_site_file"
1561  fi
1562done
1563
1564if test -r "$cache_file"; then
1565  # Some versions of bash will fail to source /dev/null (special
1566  # files actually), so we avoid doing that.
1567  if test -f "$cache_file"; then
1568    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1569echo "$as_me: loading cache $cache_file" >&6;}
1570    case $cache_file in
1571      [\\/]* | ?:[\\/]* ) . $cache_file;;
1572      *)                      . ./$cache_file;;
1573    esac
1574  fi
1575else
1576  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1577echo "$as_me: creating cache $cache_file" >&6;}
1578  >$cache_file
1579fi
1580
1581# Check that the precious variables saved in the cache have kept the same
1582# value.
1583ac_cache_corrupted=false
1584for ac_var in `(set) 2>&1 |
1585               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1587  eval ac_new_set=\$ac_env_${ac_var}_set
1588  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1589  eval ac_new_val="\$ac_env_${ac_var}_value"
1590  case $ac_old_set,$ac_new_set in
1591    set,)
1592      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1593echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1594      ac_cache_corrupted=: ;;
1595    ,set)
1596      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1597echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1598      ac_cache_corrupted=: ;;
1599    ,);;
1600    *)
1601      if test "x$ac_old_val" != "x$ac_new_val"; then
1602        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1603echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1604        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1605echo "$as_me:   former value:  $ac_old_val" >&2;}
1606        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1607echo "$as_me:   current value: $ac_new_val" >&2;}
1608        ac_cache_corrupted=:
1609      fi;;
1610  esac
1611  # Pass precious variables to config.status.
1612  if test "$ac_new_set" = set; then
1613    case $ac_new_val in
1614    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1615      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1616    *) ac_arg=$ac_var=$ac_new_val ;;
1617    esac
1618    case " $ac_configure_args " in
1619      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1620      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1621    esac
1622  fi
1623done
1624if $ac_cache_corrupted; then
1625  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1626echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1627  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1628echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1629   { (exit 1); exit 1; }; }
1630fi
1631
1632ac_ext=c
1633ac_cpp='$CPP $CPPFLAGS'
1634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1665
1666
1667# List one file in the package so that the configure script can test
1668# whether the package is actually there
1669
1670
1671# Where should everything be installed by default?  Here, we want it
1672# to be installed directly in 'bin', 'lib', 'include' subdirectories
1673# of the directory where configure is run.  The default would be
1674# /usr/local.
1675
1676
1677#############################################################################
1678#                         Standard build tool stuff                         #
1679#############################################################################
1680
1681# Get the system type
1682ac_aux_dir=
1683for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1684  if test -f $ac_dir/install-sh; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/install-sh -c"
1687    break
1688  elif test -f $ac_dir/install.sh; then
1689    ac_aux_dir=$ac_dir
1690    ac_install_sh="$ac_aux_dir/install.sh -c"
1691    break
1692  elif test -f $ac_dir/shtool; then
1693    ac_aux_dir=$ac_dir
1694    ac_install_sh="$ac_aux_dir/shtool install -c"
1695    break
1696  fi
1697done
1698if test -z "$ac_aux_dir"; then
1699  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1700echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1701   { (exit 1); exit 1; }; }
1702fi
1703ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1704ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1705ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1706
1707# Make sure we can run config.sub.
1708$ac_config_sub sun4 >/dev/null 2>&1 ||
1709  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1710echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1711   { (exit 1); exit 1; }; }
1712
1713echo "$as_me:$LINENO: checking build system type" >&5
1714echo $ECHO_N "checking build system type... $ECHO_C" >&6
1715if test "${ac_cv_build+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  ac_cv_build_alias=$build_alias
1719test -z "$ac_cv_build_alias" &&
1720  ac_cv_build_alias=`$ac_config_guess`
1721test -z "$ac_cv_build_alias" &&
1722  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1723echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1724   { (exit 1); exit 1; }; }
1725ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1726  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1727echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730fi
1731echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1732echo "${ECHO_T}$ac_cv_build" >&6
1733build=$ac_cv_build
1734build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
1738
1739
1740# If this project depends on external projects, the Externals file in
1741# the source root directory contains definition of where to find those
1742# externals.  The following macro ensures that those externals are
1743# retrieved by svn if they are not there yet.
1744
1745# As backup, we make sure we don't loose an FLIBS if it has been set
1746# by the user
1747save_FLIBS="$FLIBS"
1748
1749# A useful makefile conditional that is always false
1750
1751
1752if false; then
1753  ALWAYS_FALSE_TRUE=
1754  ALWAYS_FALSE_FALSE='#'
1755else
1756  ALWAYS_FALSE_TRUE='#'
1757  ALWAYS_FALSE_FALSE=
1758fi
1759
1760
1761# We set the following variable so that we know later in AC_COIN_FINALIZE
1762# that we are in a project main directory
1763coin_projectdir=yes
1764
1765# Set the project's version numbers
1766
1767
1768cat >>confdefs.h <<_ACEOF
1769#define CLP_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
1772
1773  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1774  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1775  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1776  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1777  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1778  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1779
1780cat >>confdefs.h <<_ACEOF
1781#define CLP_VERSION_MAJOR $coin_majorver
1782_ACEOF
1783
1784
1785cat >>confdefs.h <<_ACEOF
1786#define CLP_VERSION_MINOR $coin_minorver
1787_ACEOF
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define CLP_VERSION_RELEASE $coin_releasever
1792_ACEOF
1793
1794
1795  # We use the following variable to have a string with the upper case
1796  # version of the project name
1797  COIN_PRJCT=CLP
1798
1799  # Set the project's SVN revision number. The complicated sed expression
1800  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1801  # as a single number.
1802  # Extract the first word of "svnversion", so it can be a program name with args.
1803set dummy svnversion; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_have_svnversion+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  if test -n "$have_svnversion"; then
1810  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815  IFS=$as_save_IFS
1816  test -z "$as_dir" && as_dir=.
1817  for ac_exec_ext in '' $ac_executable_extensions; do
1818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819    ac_cv_prog_have_svnversion="yes"
1820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821    break 2
1822  fi
1823done
1824done
1825
1826  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1827fi
1828fi
1829have_svnversion=$ac_cv_prog_have_svnversion
1830if test -n "$have_svnversion"; then
1831  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1832echo "${ECHO_T}$have_svnversion" >&6
1833else
1834  echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838  if test "x$have_svnversion" = xyes; then
1839
1840    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1841    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1842      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1843
1844cat >>confdefs.h <<_ACEOF
1845#define CLP_SVN_REV $CLP_SVN_REV
1846_ACEOF
1847
1848    fi
1849  fi
1850
1851
1852
1853# Capture libtool library version, if given.
1854
1855
1856
1857
1858# Check if user wants to produce debugging code
1859
1860echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1861echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1862
1863# Check whether --enable-debug or --disable-debug was given.
1864if test "${enable_debug+set}" = set; then
1865  enableval="$enable_debug"
1866  case "${enableval}" in
1867   yes) coin_debug_compile=true
1868        if test "${enable_shared+set}" = set; then :; else
1869          enable_shared=no
1870        fi
1871        ;;
1872   no)  coin_debug_compile=false
1873        ;;
1874   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1875echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1876   { (exit 1); exit 1; }; }
1877        ;;
1878esac
1879else
1880  coin_debug_compile=false
1881fi;
1882
1883# Check whether --enable-debug-clp or --disable-debug-clp was given.
1884if test "${enable_debug_clp+set}" = set; then
1885  enableval="$enable_debug_clp"
1886  case "${enableval}" in
1887    yes) coin_debug_compile=true
1888         ;;
1889    no)  coin_debug_compile=false
1890         ;;
1891    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1892echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1893   { (exit 1); exit 1; }; }
1894         ;;
1895 esac
1896else
1897  :
1898fi;
1899
1900 # m4_ifvaln([Clp],
1901
1902if test $coin_debug_compile = true; then
1903  echo "$as_me:$LINENO: result: yes" >&5
1904echo "${ECHO_T}yes" >&6
1905else
1906  echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6
1908fi
1909
1910
1911# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1912if test "${with_clp_verbosity+set}" = set; then
1913  withval="$with_clp_verbosity"
1914  if test "$withval" = yes; then
1915                withval=1
1916              fi
1917              coin_clp_verbosity=$withval
1918else
1919  coin_clp_verbosity=0
1920fi;
1921
1922cat >>confdefs.h <<_ACEOF
1923#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1924_ACEOF
1925
1926
1927
1928# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1929if test "${with_clp_checklevel+set}" = set; then
1930  withval="$with_clp_checklevel"
1931  if test "$withval" = yes; then
1932                withval=1
1933              fi
1934              coin_clp_checklevel=$withval
1935else
1936  coin_clp_checklevel=0
1937fi;
1938
1939cat >>confdefs.h <<_ACEOF
1940#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1941_ACEOF
1942
1943
1944 # m4_ifvaln([Clp],
1945
1946
1947
1948# Get the name of the C++ compiler and appropriate compiler options
1949
1950
1951  # for backward compatibility
1952  # Check whether --enable-doscompile or --disable-doscompile was given.
1953if test "${enable_doscompile+set}" = set; then
1954  enableval="$enable_doscompile"
1955  enable_doscompile=$enableval
1956else
1957  enable_doscompile=no
1958fi;
1959
1960  # Check whether --enable-msvc or --disable-msvc was given.
1961if test "${enable_msvc+set}" = set; then
1962  enableval="$enable_msvc"
1963  enable_msvc=$enableval
1964else
1965  enable_msvc=no
1966     if test "$enable_doscompile" = msvc ; then
1967       enable_msvc=yes
1968     elif test "$enable_doscompile" != no ; then
1969       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1970echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1971   { (exit 1); exit 1; }; }
1972     fi
1973
1974fi;
1975
1976  if test "$enable_msvc" = MD; then
1977    enable_shared=yes
1978    enable_msvc=yes
1979  fi
1980
1981  if test "$enable_msvc" = yes; then
1982    case $build in
1983      *-cygwin* | *-mingw*) ;;
1984      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1985echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1986   { (exit 1); exit 1; }; } ;;
1987    esac
1988  fi
1989
1990
1991 case $build in
1992  *-mingw*)
1993    if test "${LD+set}" = set; then :; else
1994      LD=link
1995    fi
1996    ;;
1997 esac
1998 if test $enable_msvc = yes ; then
1999   if test "x${LD+set}" = xset; then :; else
2000     LD=link
2001   fi
2002 fi
2003
2004
2005
2006
2007ac_ext=c
2008ac_cpp='$CPP $CPPFLAGS'
2009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014# For consistency, we set the C compiler to the same value of the C++
2015# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2016if test x"$CXX" != x; then
2017  case "$CXX" in
2018    clang* ) ;;
2019    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2020      if test x"$CC" = x; then
2021        CC="$CXX"
2022        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2023echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2024      fi
2025      ;;
2026  esac
2027fi
2028
2029
2030
2031
2032
2033
2034coin_has_cc=yes
2035
2036save_cflags="$CFLAGS"
2037
2038# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2039# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2040# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2041# compiler. In this case, put cc after gcc.
2042
2043case $build in
2044  *-cygwin* | *-mingw*)
2045             if test "$enable_msvc" = yes ; then
2046               comps="icl cl gcc"
2047             else
2048               comps="gcc icl cl"
2049             fi ;;
2050  *-*-solaris*)
2051             # Extract the first word of "cc", so it can be a program name with args.
2052set dummy cc; ac_word=$2
2053echo "$as_me:$LINENO: checking for $ac_word" >&5
2054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2056  echo $ECHO_N "(cached) $ECHO_C" >&6
2057else
2058  if test -n "$sol_cc_compiler"; then
2059  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2060else
2061  ac_prog_rejected=no
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065  IFS=$as_save_IFS
2066  test -z "$as_dir" && as_dir=.
2067  for ac_exec_ext in '' $ac_executable_extensions; do
2068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070       ac_prog_rejected=yes
2071       continue
2072     fi
2073    ac_cv_prog_sol_cc_compiler="cc"
2074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075    break 2
2076  fi
2077done
2078done
2079
2080if test $ac_prog_rejected = yes; then
2081  # We found a bogon in the path, so make sure we never use it.
2082  set dummy $ac_cv_prog_sol_cc_compiler
2083  shift
2084  if test $# != 0; then
2085    # We chose a different compiler from the bogus one.
2086    # However, it has the same basename, so the bogon will be chosen
2087    # first if we set sol_cc_compiler to just the basename; use the full file name.
2088    shift
2089    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2090  fi
2091fi
2092fi
2093fi
2094sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2095if test -n "$sol_cc_compiler"; then
2096  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2097echo "${ECHO_T}$sol_cc_compiler" >&6
2098else
2099  echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
2103             if test "$sol_cc_compiler" = "cc" ; then
2104               comps="cc xlc gcc pgcc icc"
2105             else
2106               comps="xlc gcc pgcc icc cc"
2107             fi
2108             ;;
2109  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2110  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2111  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2112esac
2113
2114# We delete the cached value, since the test might not have been
2115# performed with our choice of compilers earlier
2116$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2117# AC_MSG_NOTICE([C compiler candidates: $comps])
2118ac_ext=c
2119ac_cpp='$CPP $CPPFLAGS'
2120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123if test -n "$ac_tool_prefix"; then
2124  for ac_prog in $comps
2125  do
2126    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2127set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2128echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_CC+set}" = set; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  if test -n "$CC"; then
2134  ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139  IFS=$as_save_IFS
2140  test -z "$as_dir" && as_dir=.
2141  for ac_exec_ext in '' $ac_executable_extensions; do
2142  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145    break 2
2146  fi
2147done
2148done
2149
2150fi
2151fi
2152CC=$ac_cv_prog_CC
2153if test -n "$CC"; then
2154  echo "$as_me:$LINENO: result: $CC" >&5
2155echo "${ECHO_T}$CC" >&6
2156else
2157  echo "$as_me:$LINENO: result: no" >&5
2158echo "${ECHO_T}no" >&6
2159fi
2160
2161    test -n "$CC" && break
2162  done
2163fi
2164if test -z "$CC"; then
2165  ac_ct_CC=$CC
2166  for ac_prog in $comps
2167do
2168  # Extract the first word of "$ac_prog", so it can be a program name with args.
2169set dummy $ac_prog; ac_word=$2
2170echo "$as_me:$LINENO: checking for $ac_word" >&5
2171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173  echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
2175  if test -n "$ac_ct_CC"; then
2176  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177else
2178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181  IFS=$as_save_IFS
2182  test -z "$as_dir" && as_dir=.
2183  for ac_exec_ext in '' $ac_executable_extensions; do
2184  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185    ac_cv_prog_ac_ct_CC="$ac_prog"
2186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187    break 2
2188  fi
2189done
2190done
2191
2192fi
2193fi
2194ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195if test -n "$ac_ct_CC"; then
2196  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197echo "${ECHO_T}$ac_ct_CC" >&6
2198else
2199  echo "$as_me:$LINENO: result: no" >&5
2200echo "${ECHO_T}no" >&6
2201fi
2202
2203  test -n "$ac_ct_CC" && break
2204done
2205
2206  CC=$ac_ct_CC
2207fi
2208
2209
2210test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2211See \`config.log' for more details." >&5
2212echo "$as_me: error: no acceptable C compiler found in \$PATH
2213See \`config.log' for more details." >&2;}
2214   { (exit 1); exit 1; }; }
2215
2216# Provide some information about the compiler.
2217echo "$as_me:$LINENO:" \
2218     "checking for C compiler version" >&5
2219ac_compiler=`set X $ac_compile; echo $2`
2220{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2221  (eval $ac_compiler --version </dev/null >&5) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }
2225{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2226  (eval $ac_compiler -v </dev/null >&5) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }
2230{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2231  (eval $ac_compiler -V </dev/null >&5) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }
2235
2236cat >conftest.$ac_ext <<_ACEOF
2237/* confdefs.h.  */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h.  */
2242
2243int
2244main ()
2245{
2246
2247  ;
2248  return 0;
2249}
2250_ACEOF
2251ac_clean_files_save=$ac_clean_files
2252ac_clean_files="$ac_clean_files a.out a.exe b.out"
2253# Try to create an executable without -o first, disregard a.out.
2254# It will help us diagnose broken compilers, and finding out an intuition
2255# of exeext.
2256echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2257echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2258ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2259if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2260  (eval $ac_link_default) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; then
2264  # Find the output, starting from the most likely.  This scheme is
2265# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2266# resort.
2267
2268# Be careful to initialize this variable, since it used to be cached.
2269# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2270ac_cv_exeext=
2271# b.out is created by i960 compilers.
2272for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2273do
2274  test -f "$ac_file" || continue
2275  case $ac_file in
2276    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2277        ;;
2278    conftest.$ac_ext )
2279        # This is the source file.
2280        ;;
2281    [ab].out )
2282        # We found the default executable, but exeext='' is most
2283        # certainly right.
2284        break;;
2285    *.* )
2286        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287        # FIXME: I believe we export ac_cv_exeext for Libtool,
2288        # but it would be cool to find out if it's true.  Does anybody
2289        # maintain Libtool? --akim.
2290        export ac_cv_exeext
2291        break;;
2292    * )
2293        break;;
2294  esac
2295done
2296else
2297  echo "$as_me: failed program was:" >&5
2298sed 's/^/| /' conftest.$ac_ext >&5
2299
2300{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2301See \`config.log' for more details." >&5
2302echo "$as_me: error: C compiler cannot create executables
2303See \`config.log' for more details." >&2;}
2304   { (exit 77); exit 77; }; }
2305fi
2306
2307ac_exeext=$ac_cv_exeext
2308echo "$as_me:$LINENO: result: $ac_file" >&5
2309echo "${ECHO_T}$ac_file" >&6
2310
2311# Check the compiler produces executables we can run.  If not, either
2312# the compiler is broken, or we cross compile.
2313echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2314echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2315# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2316# If not cross compiling, check that we can run a simple program.
2317if test "$cross_compiling" != yes; then
2318  if { ac_try='./$ac_file'
2319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320  (eval $ac_try) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; }; then
2324    cross_compiling=no
2325  else
2326    if test "$cross_compiling" = maybe; then
2327        cross_compiling=yes
2328    else
2329        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2330If you meant to cross compile, use \`--host'.
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: cannot run C compiled programs.
2333If you meant to cross compile, use \`--host'.
2334See \`config.log' for more details." >&2;}
2335   { (exit 1); exit 1; }; }
2336    fi
2337  fi
2338fi
2339echo "$as_me:$LINENO: result: yes" >&5
2340echo "${ECHO_T}yes" >&6
2341
2342rm -f a.out a.exe conftest$ac_cv_exeext b.out
2343ac_clean_files=$ac_clean_files_save
2344# Check the compiler produces executables we can run.  If not, either
2345# the compiler is broken, or we cross compile.
2346echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2347echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2348echo "$as_me:$LINENO: result: $cross_compiling" >&5
2349echo "${ECHO_T}$cross_compiling" >&6
2350
2351echo "$as_me:$LINENO: checking for suffix of executables" >&5
2352echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2354  (eval $ac_link) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }; then
2358  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2359# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2360# work properly (i.e., refer to `conftest.exe'), while it won't with
2361# `rm'.
2362for ac_file in conftest.exe conftest conftest.*; do
2363  test -f "$ac_file" || continue
2364  case $ac_file in
2365    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2366    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2367          export ac_cv_exeext
2368          break;;
2369    * ) break;;
2370  esac
2371done
2372else
2373  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2374See \`config.log' for more details." >&5
2375echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2376See \`config.log' for more details." >&2;}
2377   { (exit 1); exit 1; }; }
2378fi
2379
2380rm -f conftest$ac_cv_exeext
2381echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2382echo "${ECHO_T}$ac_cv_exeext" >&6
2383
2384rm -f conftest.$ac_ext
2385EXEEXT=$ac_cv_exeext
2386ac_exeext=$EXEEXT
2387echo "$as_me:$LINENO: checking for suffix of object files" >&5
2388echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2389if test "${ac_cv_objext+set}" = set; then
2390  echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392  cat >conftest.$ac_ext <<_ACEOF
2393/* confdefs.h.  */
2394_ACEOF
2395cat confdefs.h >>conftest.$ac_ext
2396cat >>conftest.$ac_ext <<_ACEOF
2397/* end confdefs.h.  */
2398
2399int
2400main ()
2401{
2402
2403  ;
2404  return 0;
2405}
2406_ACEOF
2407rm -f conftest.o conftest.obj
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409  (eval $ac_compile) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; then
2413  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2414  case $ac_file in
2415    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2416    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2417       break;;
2418  esac
2419done
2420else
2421  echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2425See \`config.log' for more details." >&5
2426echo "$as_me: error: cannot compute suffix of object files: cannot compile
2427See \`config.log' for more details." >&2;}
2428   { (exit 1); exit 1; }; }
2429fi
2430
2431rm -f conftest.$ac_cv_objext conftest.$ac_ext
2432fi
2433echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2434echo "${ECHO_T}$ac_cv_objext" >&6
2435OBJEXT=$ac_cv_objext
2436ac_objext=$OBJEXT
2437echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2438echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2439if test "${ac_cv_c_compiler_gnu+set}" = set; then
2440  echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442  cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h.  */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h.  */
2448
2449int
2450main ()
2451{
2452#ifndef __GNUC__
2453       choke me
2454#endif
2455
2456  ;
2457  return 0;
2458}
2459_ACEOF
2460rm -f conftest.$ac_objext
2461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462  (eval $ac_compile) 2>conftest.er1
2463  ac_status=$?
2464  grep -v '^ *+' conftest.er1 >conftest.err
2465  rm -f conftest.er1
2466  cat conftest.err >&5
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); } &&
2469         { ac_try='test -z "$ac_c_werror_flag"
2470                         || test ! -s conftest.err'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; } &&
2476         { ac_try='test -s conftest.$ac_objext'
2477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478  (eval $ac_try) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; }; then
2482  ac_compiler_gnu=yes
2483else
2484  echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487ac_compiler_gnu=no
2488fi
2489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490ac_cv_c_compiler_gnu=$ac_compiler_gnu
2491
2492fi
2493echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2494echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2495GCC=`test $ac_compiler_gnu = yes && echo yes`
2496ac_test_CFLAGS=${CFLAGS+set}
2497ac_save_CFLAGS=$CFLAGS
2498CFLAGS="-g"
2499echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2500echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2501if test "${ac_cv_prog_cc_g+set}" = set; then
2502  echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504  cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h.  */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h.  */
2510
2511int
2512main ()
2513{
2514
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>conftest.er1
2522  ac_status=$?
2523  grep -v '^ *+' conftest.er1 >conftest.err
2524  rm -f conftest.er1
2525  cat conftest.err >&5
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); } &&
2528         { ac_try='test -z "$ac_c_werror_flag"
2529                         || test ! -s conftest.err'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535         { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  ac_cv_prog_cc_g=yes
2542else
2543  echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546ac_cv_prog_cc_g=no
2547fi
2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549fi
2550echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2551echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2552if test "$ac_test_CFLAGS" = set; then
2553  CFLAGS=$ac_save_CFLAGS
2554elif test $ac_cv_prog_cc_g = yes; then
2555  if test "$GCC" = yes; then
2556    CFLAGS="-g -O2"
2557  else
2558    CFLAGS="-g"
2559  fi
2560else
2561  if test "$GCC" = yes; then
2562    CFLAGS="-O2"
2563  else
2564    CFLAGS=
2565  fi
2566fi
2567echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2568echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2569if test "${ac_cv_prog_cc_stdc+set}" = set; then
2570  echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572  ac_cv_prog_cc_stdc=no
2573ac_save_CC=$CC
2574cat >conftest.$ac_ext <<_ACEOF
2575/* confdefs.h.  */
2576_ACEOF
2577cat confdefs.h >>conftest.$ac_ext
2578cat >>conftest.$ac_ext <<_ACEOF
2579/* end confdefs.h.  */
2580#include <stdarg.h>
2581#include <stdio.h>
2582#include <sys/types.h>
2583#include <sys/stat.h>
2584/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2585struct buf { int x; };
2586FILE * (*rcsopen) (struct buf *, struct stat *, int);
2587static char *e (p, i)
2588     char **p;
2589     int i;
2590{
2591  return p[i];
2592}
2593static char *f (char * (*g) (char **, int), char **p, ...)
2594{
2595  char *s;
2596  va_list v;
2597  va_start (v,p);
2598  s = g (p, va_arg (v,int));
2599  va_end (v);
2600  return s;
2601}
2602
2603/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2604   function prototypes and stuff, but not '\xHH' hex character constants.
2605   These don't provoke an error unfortunately, instead are silently treated
2606   as 'x'.  The following induces an error, until -std1 is added to get
2607   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2608   array size at least.  It's necessary to write '\x00'==0 to get something
2609   that's true only with -std1.  */
2610int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2611
2612int test (int i, double x);
2613struct s1 {int (*f) (int a);};
2614struct s2 {int (*f) (double a);};
2615int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2616int argc;
2617char **argv;
2618int
2619main ()
2620{
2621return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2622  ;
2623  return 0;
2624}
2625_ACEOF
2626# Don't try gcc -ansi; that turns off useful extensions and
2627# breaks some systems' header files.
2628# AIX                   -qlanglvl=ansi
2629# Ultrix and OSF/1      -std1
2630# HP-UX 10.20 and later -Ae
2631# HP-UX older versions  -Aa -D_HPUX_SOURCE
2632# SVR4                  -Xc -D__EXTENSIONS__
2633for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2634do
2635  CC="$ac_save_CC $ac_arg"
2636  rm -f conftest.$ac_objext
2637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638  (eval $ac_compile) 2>conftest.er1
2639  ac_status=$?
2640  grep -v '^ *+' conftest.er1 >conftest.err
2641  rm -f conftest.er1
2642  cat conftest.err >&5
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); } &&
2645         { ac_try='test -z "$ac_c_werror_flag"
2646                         || test ! -s conftest.err'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; } &&
2652         { ac_try='test -s conftest.$ac_objext'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; }; then
2658  ac_cv_prog_cc_stdc=$ac_arg
2659break
2660else
2661  echo "$as_me: failed program was:" >&5
2662sed 's/^/| /' conftest.$ac_ext >&5
2663
2664fi
2665rm -f conftest.err conftest.$ac_objext
2666done
2667rm -f conftest.$ac_ext conftest.$ac_objext
2668CC=$ac_save_CC
2669
2670fi
2671
2672case "x$ac_cv_prog_cc_stdc" in
2673  x|xno)
2674    echo "$as_me:$LINENO: result: none needed" >&5
2675echo "${ECHO_T}none needed" >&6 ;;
2676  *)
2677    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2678echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2679    CC="$CC $ac_cv_prog_cc_stdc" ;;
2680esac
2681
2682# Some people use a C++ compiler to compile C.  Since we use `exit',
2683# in C++ we need to declare it.  In case someone uses the same compiler
2684# for both compiling C and C++ we need to have the C++ compiler decide
2685# the declaration of exit, since it's the most demanding environment.
2686cat >conftest.$ac_ext <<_ACEOF
2687#ifndef __cplusplus
2688  choke me
2689#endif
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>conftest.er1
2694  ac_status=$?
2695  grep -v '^ *+' conftest.er1 >conftest.err
2696  rm -f conftest.er1
2697  cat conftest.err >&5
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); } &&
2700         { ac_try='test -z "$ac_c_werror_flag"
2701                         || test ! -s conftest.err'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; } &&
2707         { ac_try='test -s conftest.$ac_objext'
2708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709  (eval $ac_try) 2>&5
2710  ac_status=$?
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); }; }; then
2713  for ac_declaration in \
2714   '' \
2715   'extern "C" void std::exit (int) throw (); using std::exit;' \
2716   'extern "C" void std::exit (int); using std::exit;' \
2717   'extern "C" void exit (int) throw ();' \
2718   'extern "C" void exit (int);' \
2719   'void exit (int);'
2720do
2721  cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h.  */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h.  */
2727$ac_declaration
2728#include <stdlib.h>
2729int
2730main ()
2731{
2732exit (42);
2733  ;
2734  return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739  (eval $ac_compile) 2>conftest.er1
2740  ac_status=$?
2741  grep -v '^ *+' conftest.er1 >conftest.err
2742  rm -f conftest.er1
2743  cat conftest.err >&5
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); } &&
2746         { ac_try='test -z "$ac_c_werror_flag"
2747                         || test ! -s conftest.err'
2748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); }; } &&
2753         { ac_try='test -s conftest.$ac_objext'
2754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755  (eval $ac_try) 2>&5
2756  ac_status=$?
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); }; }; then
2759  :
2760else
2761  echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764continue
2765fi
2766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767  cat >conftest.$ac_ext <<_ACEOF
2768/* confdefs.h.  */
2769_ACEOF
2770cat confdefs.h >>conftest.$ac_ext
2771cat >>conftest.$ac_ext <<_ACEOF
2772/* end confdefs.h.  */
2773$ac_declaration
2774int
2775main ()
2776{
2777exit (42);
2778  ;
2779  return 0;
2780}
2781_ACEOF
2782rm -f conftest.$ac_objext
2783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784  (eval $ac_compile) 2>conftest.er1
2785  ac_status=$?
2786  grep -v '^ *+' conftest.er1 >conftest.err
2787  rm -f conftest.er1
2788  cat conftest.err >&5
2789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790  (exit $ac_status); } &&
2791         { ac_try='test -z "$ac_c_werror_flag"
2792                         || test ! -s conftest.err'
2793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794  (eval $ac_try) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }; } &&
2798         { ac_try='test -s conftest.$ac_objext'
2799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800  (eval $ac_try) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804  break
2805else
2806  echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809fi
2810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811done
2812rm -f conftest*
2813if test -n "$ac_declaration"; then
2814  echo '#ifdef __cplusplus' >>confdefs.h
2815  echo $ac_declaration      >>confdefs.h
2816  echo '#endif'             >>confdefs.h
2817fi
2818
2819else
2820  echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823fi
2824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2825ac_ext=c
2826ac_cpp='$CPP $CPPFLAGS'
2827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830
2831if test -z "$CC" ; then
2832  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2833echo "$as_me: error: Failed to find a C compiler!" >&2;}
2834   { (exit 1); exit 1; }; }
2835fi
2836# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2837case "$CC" in
2838  clang* ) ;;
2839  cl* | */cl* | CL* | */CL* )
2840    if test "$ac_cv_prog_cc_g" = yes ; then
2841      ac_cv_prog_cc_g=no
2842      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2843echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2844    fi ;;
2845  * )
2846    if test x"$CYGPATH_W" = x ; then
2847      CYGPATH_W=echo
2848    fi
2849    ;;
2850esac
2851CFLAGS="$save_cflags"
2852
2853# add automake conditional so we can recognize cl compiler in makefile
2854coin_cc_is_cl=false
2855case "$CC" in
2856  clang* ) ;;
2857  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2858    coin_cc_is_cl=true
2859    ;;
2860esac
2861
2862
2863if test $coin_cc_is_cl = true; then
2864  COIN_CC_IS_CL_TRUE=
2865  COIN_CC_IS_CL_FALSE='#'
2866else
2867  COIN_CC_IS_CL_TRUE='#'
2868  COIN_CC_IS_CL_FALSE=
2869fi
2870
2871
2872# Check if a project specific CFLAGS variable has been set
2873if test x$COIN_PRJCT != x; then
2874  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2875  if test x$coin_tmp = xset; then
2876    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2877  fi
2878fi
2879
2880if test x"$CFLAGS" = x; then
2881
2882  coin_add_cflags=
2883  coin_opt_cflags=
2884  coin_dbg_cflags=
2885  coin_warn_cflags=
2886
2887  if test "$GCC" = "yes"; then
2888    case "$CC" in
2889      icc* | */icc*)
2890        ;;
2891      *)
2892        coin_opt_cflags="-O3"
2893        coin_add_cflags="-pipe"
2894        coin_dbg_cflags="-g -O0"
2895        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2896        case $build in
2897          *-darwin*)
2898            ;;
2899          *)
2900            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2901            ;;
2902        esac
2903    esac
2904  fi
2905  if test -z "$coin_opt_cflags"; then
2906    case $build in
2907      *-cygwin* | *-mingw*)
2908        case "$CC" in
2909          clang* ) ;;
2910          cl* | */cl* | CL* | */CL*)
2911            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2912              coin_opt_cflags='-MD -O2'
2913              coin_dbg_cflags='-MDd'
2914            else
2915              coin_opt_cflags='-MT -O2'
2916              coin_dbg_cflags='-MTd'
2917            fi
2918            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2919            ;;
2920          icl* | */icl* | ICL* | */ICL*)
2921            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2922              coin_opt_cflags='-MD -Ox'
2923              coin_dbg_cflags='-MDd -debug'
2924            else
2925              coin_opt_cflags='-MT -Ox'
2926              coin_dbg_cflags='-MTd -debug'
2927            fi
2928            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2929            ;;
2930        esac
2931        ;;
2932      *-linux-*)
2933        case "$CC" in
2934          icc* | */icc*)
2935            coin_opt_cflags="-O3 -ip -mp1"
2936            coin_add_cflags=""
2937            coin_dbg_cflags="-g"
2938            # Check if -i_dynamic is necessary (for new glibc library)
2939            CFLAGS=
2940            cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h.  */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h.  */
2946
2947int
2948main ()
2949{
2950int i=0; i++;
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext conftest$ac_exeext
2956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2957  (eval $ac_link) 2>conftest.er1
2958  ac_status=$?
2959  grep -v '^ *+' conftest.er1 >conftest.err
2960  rm -f conftest.er1
2961  cat conftest.err >&5
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); } &&
2964         { ac_try='test -z "$ac_c_werror_flag"
2965                         || test ! -s conftest.err'
2966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967  (eval $ac_try) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }; } &&
2971         { ac_try='test -s conftest$ac_exeext'
2972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973  (eval $ac_try) 2>&5
2974  ac_status=$?
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); }; }; then
2977  :
2978else
2979  echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982coin_add_cflags="-i_dynamic $coin_add_cflags"
2983fi
2984rm -f conftest.err conftest.$ac_objext \
2985      conftest$ac_exeext conftest.$ac_ext
2986            ;;
2987          pgcc* | */pgcc*)
2988            coin_opt_cflags="-fast"
2989            coin_add_cflags="-Kieee -pc 64"
2990            coin_dbg_cflags="-g"
2991            ;;
2992        esac
2993        ;;
2994      *-ibm-*)
2995        case "$CC" in
2996          xlc* | */xlc* | mpxlc* | */mpxlc*)
2997            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2998            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2999            coin_dbg_cflags="-g"
3000          ;;
3001        esac
3002        ;;
3003      *-hp-*)
3004        coin_opt_cflags="-O"
3005        coin_add_cflags="-Ae"
3006        coin_dbg_cflags="-g"
3007        ;;
3008      *-*-solaris*)
3009        coin_opt_cflags="-xO4"
3010        coin_dbg_cflags="-g"
3011        ;;
3012      *-sgi-*)
3013        coin_opt_cflags="-O -OPT:Olimit=0"
3014        coin_dbg_cflags="-g"
3015        ;;
3016    esac
3017  fi
3018
3019  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3020    coin_dbg_cflags="-g"
3021  fi
3022
3023  if test -z "$coin_opt_cflags"; then
3024    # Try if -O option works if nothing else is set
3025    CFLAGS="-O"
3026    cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h.  */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036int i=0; i++;
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext conftest$ac_exeext
3042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3043  (eval $ac_link) 2>conftest.er1
3044  ac_status=$?
3045  grep -v '^ *+' conftest.er1 >conftest.err
3046  rm -f conftest.er1
3047  cat conftest.err >&5
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); } &&
3050         { ac_try='test -z "$ac_c_werror_flag"
3051                         || test ! -s conftest.err'
3052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053  (eval $ac_try) 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; } &&
3057         { ac_try='test -s conftest$ac_exeext'
3058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059  (eval $ac_try) 2>&5
3060  ac_status=$?
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); }; }; then
3063  coin_opt_cflags="-O"
3064else
3065  echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068fi
3069rm -f conftest.err conftest.$ac_objext \
3070      conftest$ac_exeext conftest.$ac_ext
3071  fi
3072
3073  # if PM doesn't want the warning messages, take them out
3074  if test x"$coin_skip_warn_cflags" = xyes; then
3075    coin_warn_cflags=
3076  fi
3077
3078  if test x${DBG_CFLAGS+set} != xset; then
3079    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3080  fi
3081  if test x${OPT_CFLAGS+set} != xset; then
3082    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3083  fi
3084
3085  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3086  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3087
3088  if test "$coin_debug_compile" = "true"; then
3089    CFLAGS="$DBG_CFLAGS"
3090  else
3091    CFLAGS="$OPT_CFLAGS"
3092  fi
3093else
3094  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3095  if test x${DBG_CFLAGS+set} != xset; then
3096    DBG_CFLAGS="$CFLAGS"
3097  fi
3098  if test x${OPT_CFLAGS+set} != xset; then
3099    OPT_CFLAGS="$CFLAGS"
3100  fi
3101fi
3102
3103# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3104if test x$COIN_PRJCT != x; then
3105  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3106fi
3107
3108# Try if CFLAGS works
3109save_CFLAGS="$CFLAGS"
3110cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h.  */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h.  */
3116
3117int
3118main ()
3119{
3120int i=0; i++;
3121  ;
3122  return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext conftest$ac_exeext
3126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3127  (eval $ac_link) 2>conftest.er1
3128  ac_status=$?
3129  grep -v '^ *+' conftest.er1 >conftest.err
3130  rm -f conftest.er1
3131  cat conftest.err >&5
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); } &&
3134         { ac_try='test -z "$ac_c_werror_flag"
3135                         || test ! -s conftest.err'
3136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137  (eval $ac_try) 2>&5
3138  ac_status=$?
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }; } &&
3141         { ac_try='test -s conftest$ac_exeext'
3142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143  (eval $ac_try) 2>&5
3144  ac_status=$?
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }; }; then
3147  :
3148else
3149  echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152CFLAGS=
3153fi
3154rm -f conftest.err conftest.$ac_objext \
3155      conftest$ac_exeext conftest.$ac_ext
3156if test -z "$CFLAGS"; then
3157  { 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
3158echo "$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;}
3159  CFLAGS='-O'
3160  cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h.  */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h.  */
3166
3167int
3168main ()
3169{
3170int i=0; i++;
3171  ;
3172  return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext conftest$ac_exeext
3176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3177  (eval $ac_link) 2>conftest.er1
3178  ac_status=$?
3179  grep -v '^ *+' conftest.er1 >conftest.err
3180  rm -f conftest.er1
3181  cat conftest.err >&5
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); } &&
3184         { ac_try='test -z "$ac_c_werror_flag"
3185                         || test ! -s conftest.err'
3186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187  (eval $ac_try) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; } &&
3191         { ac_try='test -s conftest$ac_exeext'
3192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193  (eval $ac_try) 2>&5
3194  ac_status=$?
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }; }; then
3197  :
3198else
3199  echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202CFLAGS=
3203fi
3204rm -f conftest.err conftest.$ac_objext \
3205      conftest$ac_exeext conftest.$ac_ext
3206  if test -z "$CFLAGS"; then
3207    { 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
3208echo "$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;}
3209  fi
3210fi
3211
3212{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3213echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3214
3215
3216if test x"$MPICC" = x; then :; else
3217  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3218echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3219  CC="$MPICC"
3220fi
3221
3222# Correct the LD variable if we are using the MS or Intel-windows compiler
3223case "$CC" in
3224  clang* ) ;;
3225  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3226
3227 case $build in
3228  *-mingw*)
3229    if test "${LD+set}" = set; then :; else
3230      LD=link
3231    fi
3232    ;;
3233 esac
3234 if test $enable_msvc = yes ; then
3235   if test "x${LD+set}" = xset; then :; else
3236     LD=link
3237   fi
3238 fi
3239
3240    ;;
3241esac
3242
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249
3250
3251 #Let's try if that overcomes configuration problem with VC++ 6.0
3252
3253ac_ext=cc
3254ac_cpp='$CXXCPP $CPPFLAGS'
3255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3258
3259
3260
3261
3262
3263
3264
3265coin_has_cxx=yes
3266
3267save_cxxflags="$CXXFLAGS"
3268# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3269case $build in
3270  *-cygwin* | *-mingw*)
3271      if test "$enable_msvc" = yes ; then
3272         comps="icl cl g++"
3273      else
3274         comps="g++ icl cl"
3275      fi ;;
3276  *-*-solaris*)
3277             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3278  *-darwin*) comps="g++ c++ CC" ;;
3279  *-linux-gnu*)
3280             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3281          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3282esac
3283
3284# We delete the cached value, since the test might not have been
3285# performed with our choice of compilers earlier
3286$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3287# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3288ac_ext=cc
3289ac_cpp='$CXXCPP $CPPFLAGS'
3290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3293if test -n "$ac_tool_prefix"; then
3294  for ac_prog in $CCC $comps
3295  do
3296    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3298echo "$as_me:$LINENO: checking for $ac_word" >&5
3299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300if test "${ac_cv_prog_CXX+set}" = set; then
3301  echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303  if test -n "$CXX"; then
3304  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3305else
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309  IFS=$as_save_IFS
3310  test -z "$as_dir" && as_dir=.
3311  for ac_exec_ext in '' $ac_executable_extensions; do
3312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315    break 2
3316  fi
3317done
3318done
3319
3320fi
3321fi
3322CXX=$ac_cv_prog_CXX
3323if test -n "$CXX"; then
3324  echo "$as_me:$LINENO: result: $CXX" >&5
3325echo "${ECHO_T}$CXX" >&6
3326else
3327  echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329fi
3330
3331    test -n "$CXX" && break
3332  done
3333fi
3334if test -z "$CXX"; then
3335  ac_ct_CXX=$CXX
3336  for ac_prog in $CCC $comps
3337do
3338  # Extract the first word of "$ac_prog", so it can be a program name with args.
3339set dummy $ac_prog; ac_word=$2
3340echo "$as_me:$LINENO: checking for $ac_word" >&5
3341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3343  echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345  if test -n "$ac_ct_CXX"; then
3346  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353  for ac_exec_ext in '' $ac_executable_extensions; do
3354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355    ac_cv_prog_ac_ct_CXX="$ac_prog"
3356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360done
3361
3362fi
3363fi
3364ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3365if test -n "$ac_ct_CXX"; then
3366  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3367echo "${ECHO_T}$ac_ct_CXX" >&6
3368else
3369  echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
3371fi
3372
3373  test -n "$ac_ct_CXX" && break
3374done
3375test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3376
3377  CXX=$ac_ct_CXX
3378fi
3379
3380
3381# Provide some information about the compiler.
3382echo "$as_me:$LINENO:" \
3383     "checking for C++ compiler version" >&5
3384ac_compiler=`set X $ac_compile; echo $2`
3385{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3386  (eval $ac_compiler --version </dev/null >&5) 2>&5
3387  ac_status=$?
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); }
3390{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3391  (eval $ac_compiler -v </dev/null >&5) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }
3395{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3396  (eval $ac_compiler -V </dev/null >&5) 2>&5
3397  ac_status=$?
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); }
3400
3401echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3402echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3403if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3404  echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406  cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h.  */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h.  */
3412
3413int
3414main ()
3415{
3416#ifndef __GNUC__
3417       choke me
3418#endif
3419
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426  (eval $ac_compile) 2>conftest.er1
3427  ac_status=$?
3428  grep -v '^ *+' conftest.er1 >conftest.err
3429  rm -f conftest.er1
3430  cat conftest.err >&5
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); } &&
3433         { ac_try='test -z "$ac_cxx_werror_flag"
3434                         || test ! -s conftest.err'
3435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436  (eval $ac_try) 2>&5
3437  ac_status=$?
3438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439  (exit $ac_status); }; } &&
3440         { ac_try='test -s conftest.$ac_objext'
3441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442  (eval $ac_try) 2>&5
3443  ac_status=$?
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); }; }; then
3446  ac_compiler_gnu=yes
3447else
3448  echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451ac_compiler_gnu=no
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3455
3456fi
3457echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3458echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3459GXX=`test $ac_compiler_gnu = yes && echo yes`
3460ac_test_CXXFLAGS=${CXXFLAGS+set}
3461ac_save_CXXFLAGS=$CXXFLAGS
3462CXXFLAGS="-g"
3463echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3464echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3465if test "${ac_cv_prog_cxx_g+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468  cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h.  */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h.  */
3474
3475int
3476main ()
3477{
3478
3479  ;
3480  return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext
3484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485  (eval $ac_compile) 2>conftest.er1
3486  ac_status=$?
3487  grep -v '^ *+' conftest.er1 >conftest.err
3488  rm -f conftest.er1
3489  cat conftest.err >&5
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); } &&
3492         { ac_try='test -z "$ac_cxx_werror_flag"
3493                         || test ! -s conftest.err'
3494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495  (eval $ac_try) 2>&5
3496  ac_status=$?
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); }; } &&
3499         { ac_try='test -s conftest.$ac_objext'
3500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501  (eval $ac_try) 2>&5
3502  ac_status=$?
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); }; }; then
3505  ac_cv_prog_cxx_g=yes
3506else
3507  echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510ac_cv_prog_cxx_g=no
3511fi
3512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513fi
3514echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3515echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3516if test "$ac_test_CXXFLAGS" = set; then
3517  CXXFLAGS=$ac_save_CXXFLAGS
3518elif test $ac_cv_prog_cxx_g = yes; then
3519  if test "$GXX" = yes; then
3520    CXXFLAGS="-g -O2"
3521  else
3522    CXXFLAGS="-g"
3523  fi
3524else
3525  if test "$GXX" = yes; then
3526    CXXFLAGS="-O2"
3527  else
3528    CXXFLAGS=
3529  fi
3530fi
3531for ac_declaration in \
3532   '' \
3533   'extern "C" void std::exit (int) throw (); using std::exit;' \
3534   'extern "C" void std::exit (int); using std::exit;' \
3535   'extern "C" void exit (int) throw ();' \
3536   'extern "C" void exit (int);' \
3537   'void exit (int);'
3538do
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545$ac_declaration
3546#include <stdlib.h>
3547int
3548main ()
3549{
3550exit (42);
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555rm -f conftest.$ac_objext
3556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557  (eval $ac_compile) 2>conftest.er1
3558  ac_status=$?
3559  grep -v '^ *+' conftest.er1 >conftest.err
3560  rm -f conftest.er1
3561  cat conftest.err >&5
3562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563  (exit $ac_status); } &&
3564         { ac_try='test -z "$ac_cxx_werror_flag"
3565                         || test ! -s conftest.err'
3566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567  (eval $ac_try) 2>&5
3568  ac_status=$?
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); }; } &&
3571         { ac_try='test -s conftest.$ac_objext'
3572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573  (eval $ac_try) 2>&5
3574  ac_status=$?
3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); }; }; then
3577  :
3578else
3579  echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
3582continue
3583fi
3584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3585  cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h.  */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h.  */
3591$ac_declaration
3592int
3593main ()
3594{
3595exit (42);
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext
3601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602  (eval $ac_compile) 2>conftest.er1
3603  ac_status=$?
3604  grep -v '^ *+' conftest.er1 >conftest.err
3605  rm -f conftest.er1
3606  cat conftest.err >&5
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); } &&
3609         { ac_try='test -z "$ac_cxx_werror_flag"
3610                         || test ! -s conftest.err'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; } &&
3616         { ac_try='test -s conftest.$ac_objext'
3617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618  (eval $ac_try) 2>&5
3619  ac_status=$?
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); }; }; then
3622  break
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627fi
3628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629done
3630rm -f conftest*
3631if test -n "$ac_declaration"; then
3632  echo '#ifdef __cplusplus' >>confdefs.h
3633  echo $ac_declaration      >>confdefs.h
3634  echo '#endif'             >>confdefs.h
3635fi
3636
3637ac_ext=cc
3638ac_cpp='$CXXCPP $CPPFLAGS'
3639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3642
3643
3644#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3645#thus, we test here whether $CXX is actually working
3646ac_ext=cc
3647ac_cpp='$CXXCPP $CPPFLAGS'
3648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3651
3652echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3653echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3654cat >conftest.$ac_ext <<_ACEOF
3655/* confdefs.h.  */
3656_ACEOF
3657cat confdefs.h >>conftest.$ac_ext
3658cat >>conftest.$ac_ext <<_ACEOF
3659/* end confdefs.h.  */
3660
3661int
3662main ()
3663{
3664int i=0;
3665  ;
3666  return 0;
3667}
3668_ACEOF
3669rm -f conftest.$ac_objext
3670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671  (eval $ac_compile) 2>conftest.er1
3672  ac_status=$?
3673  grep -v '^ *+' conftest.er1 >conftest.err
3674  rm -f conftest.er1
3675  cat conftest.err >&5
3676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); } &&
3678         { ac_try='test -z "$ac_cxx_werror_flag"
3679                         || test ! -s conftest.err'
3680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681  (eval $ac_try) 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); }; } &&
3685         { ac_try='test -s conftest.$ac_objext'
3686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687  (eval $ac_try) 2>&5
3688  ac_status=$?
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); }; }; then
3691  echo "$as_me:$LINENO: result: yes" >&5
3692echo "${ECHO_T}yes" >&6
3693else
3694  echo "$as_me: failed program was:" >&5
3695sed 's/^/| /' conftest.$ac_ext >&5
3696
3697echo "$as_me:$LINENO: result: no" >&5
3698echo "${ECHO_T}no" >&6
3699   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3700echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3701   { (exit 1); exit 1; }; }
3702
3703fi
3704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705ac_ext=cc
3706ac_cpp='$CXXCPP $CPPFLAGS'
3707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3710
3711
3712coin_cxx_is_cl=false
3713# It seems that we need to cleanup something here for the Windows
3714case "$CXX" in
3715  clang* ) ;;
3716  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3717    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3718    mv confdefs.hh confdefs.h
3719    coin_cxx_is_cl=true
3720    ;;
3721esac
3722
3723# add automake conditional so we can recognize cl compiler in makefile
3724
3725
3726if test $coin_cxx_is_cl = true; then
3727  COIN_CXX_IS_CL_TRUE=
3728  COIN_CXX_IS_CL_FALSE='#'
3729else
3730  COIN_CXX_IS_CL_TRUE='#'
3731  COIN_CXX_IS_CL_FALSE=
3732fi
3733
3734
3735# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3736case "$CXX" in
3737  clang* ) ;;
3738  cl* | */cl* | CL* | */CL* )
3739    if test "$ac_cv_prog_cxx_g" = yes ; then
3740      ac_cv_prog_cxx_g=no
3741      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3742echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3743    fi ;;
3744  * )
3745    if test x"$CYGPATH_W" = x ; then
3746      CYGPATH_W=echo
3747    fi
3748    ;;
3749esac
3750CXXFLAGS="$save_cxxflags"
3751
3752# Check if a project specific CXXFLAGS variable has been set
3753if test x$COIN_PRJCT != x; then
3754  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3755  if test x$coin_tmp = xset; then
3756    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3757  fi
3758fi
3759
3760if test x"$CXXFLAGS" = x; then
3761
3762# ToDo decide whether we want -DNDEBUG for optimization
3763  coin_add_cxxflags=
3764  coin_opt_cxxflags=
3765  coin_dbg_cxxflags=
3766  coin_warn_cxxflags=
3767
3768  if test "$GXX" = "yes"; then
3769    case "$CXX" in
3770      icpc* | */icpc*)
3771        ;;
3772      *)
3773# ToDo decide about unroll-loops
3774        coin_opt_cxxflags="-O3"
3775        coin_add_cxxflags="-pipe"
3776        coin_dbg_cxxflags="-g -O0"
3777        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3778        case $build in
3779          *-darwin*)
3780            ;;
3781          *)
3782            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3783            ;;
3784        esac
3785    esac
3786  fi
3787
3788# Note that we do not need to cover GCC in the following tests.
3789
3790  if test -z "$coin_opt_cxxflags"; then
3791    case $build in
3792      *-cygwin* | *-mingw*)
3793        case "$CXX" in
3794          clang* ) ;;
3795          cl* | */cl* | CL* | */CL*)
3796            # The MT and MTd options are mutually exclusive
3797            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3798               coin_opt_cxxflags='-MD -O2'
3799               coin_dbg_cxxflags='-MDd'
3800            else
3801               coin_opt_cxxflags='-MT -O2'
3802               coin_dbg_cxxflags='-MTd'
3803            fi
3804            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3805            ;;
3806          icl* | */icl* | ICL* | */ICL*)
3807          # The MT and MTd options are mutually exclusive
3808            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3809              coin_opt_cxxflags='-MD -Ox'
3810              coin_dbg_cxxflags='-MDd -debug'
3811            else
3812              coin_opt_cxxflags='-MT -Ox'
3813              coin_dbg_cxxflags='-MTd -debug'
3814            fi
3815            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3816            ;;
3817        esac
3818        ;;
3819      *-linux-*)
3820        case "$CXX" in
3821          icpc* | */icpc*)
3822            coin_opt_cxxflags="-O3 -ip -mp1"
3823            coin_add_cxxflags=""
3824            coin_dbg_cxxflags="-g"
3825            # Check if -i_dynamic is necessary (for new glibc library)
3826            CXXFLAGS=
3827            cat >conftest.$ac_ext <<_ACEOF
3828/* confdefs.h.  */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h.  */
3833
3834int
3835main ()
3836{
3837int i=0; i++;
3838  ;
3839  return 0;
3840}
3841_ACEOF
3842rm -f conftest.$ac_objext conftest$ac_exeext
3843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844  (eval $ac_link) 2>conftest.er1
3845  ac_status=$?
3846  grep -v '^ *+' conftest.er1 >conftest.err
3847  rm -f conftest.er1
3848  cat conftest.err >&5
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); } &&
3851         { ac_try='test -z "$ac_cxx_werror_flag"
3852                         || test ! -s conftest.err'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; } &&
3858         { ac_try='test -s conftest$ac_exeext'
3859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860  (eval $ac_try) 2>&5
3861  ac_status=$?
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); }; }; then
3864  :
3865else
3866  echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3870fi
3871rm -f conftest.err conftest.$ac_objext \
3872      conftest$ac_exeext conftest.$ac_ext
3873            ;;
3874          pgCC* | */pgCC*)
3875            coin_opt_cxxflags="-fast"
3876            coin_add_cxxflags="-Kieee -pc 64"
3877            coin_dbg_cxxflags="-g"
3878            ;;
3879        esac
3880        ;;
3881      *-ibm-*)
3882        case "$CXX" in
3883          xlC* | */xlC* | mpxlC* | */mpxlC*)
3884            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3885            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3886            coin_dbg_cxxflags="-g"
3887            ;;
3888        esac
3889        ;;
3890      *-hp-*)
3891        case "$CXX" in
3892          aCC* | */aCC* )
3893            coin_opt_cxxflags="-O"
3894            coin_add_cxxflags="-AA"
3895            coin_dbg_cxxflags="-g"
3896            ;;
3897        esac
3898        ;;
3899      *-*-solaris*)
3900          coin_opt_cxxflags="-O4"
3901          coin_dbg_cxxflags="-g"
3902        ;;
3903    esac
3904  fi
3905
3906# Generic flag settings. If these don't work, add a case above.
3907
3908  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3909    coin_dbg_cxxflags="-g"
3910  fi
3911
3912  if test -z "$coin_opt_cxxflags"; then
3913    # Try if -O option works if nothing else is set
3914    CXXFLAGS=-O
3915    cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h.  */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h.  */
3921
3922int
3923main ()
3924{
3925int i=0; i++;
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930rm -f conftest.$ac_objext conftest$ac_exeext
3931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932  (eval $ac_link) 2>conftest.er1
3933  ac_status=$?
3934  grep -v '^ *+' conftest.er1 >conftest.err
3935  rm -f conftest.er1
3936  cat conftest.err >&5
3937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938  (exit $ac_status); } &&
3939         { ac_try='test -z "$ac_cxx_werror_flag"
3940                         || test ! -s conftest.err'
3941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942  (eval $ac_try) 2>&5
3943  ac_status=$?
3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); }; } &&
3946         { ac_try='test -s conftest$ac_exeext'
3947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948  (eval $ac_try) 2>&5
3949  ac_status=$?
3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951  (exit $ac_status); }; }; then
3952  coin_opt_cxxflags="-O"
3953else
3954  echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957fi
3958rm -f conftest.err conftest.$ac_objext \
3959      conftest$ac_exeext conftest.$ac_ext
3960  fi
3961
3962  # if PM doesn't want the warning messages, take them out
3963  if test x"$coin_skip_warn_cxxflags" = xyes; then
3964    coin_warn_cxxflags=
3965  fi
3966
3967# Do final setup of flags based on values determined above.
3968
3969  if test x${DBG_CXXFLAGS+set} != xset; then
3970    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3971  fi
3972  if test x${OPT_CXXFLAGS+set} != xset; then
3973    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3974  fi
3975
3976  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3977  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3978
3979  if test "$coin_debug_compile" = "true"; then
3980    CXXFLAGS="$DBG_CXXFLAGS"
3981  else
3982    CXXFLAGS="$OPT_CXXFLAGS"
3983  fi
3984
3985# Handle the case where CXXFLAGS was set externally.
3986else
3987  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3988  if test x${DBG_CXXFLAGS+set} != xset; then
3989    DBG_CXXFLAGS="$CXXFLAGS"
3990  fi
3991  if test x${OPT_CXXFLAGS+set} != xset; then
3992    OPT_CXXFLAGS="$CXXFLAGS"
3993  fi
3994fi
3995
3996# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3997if test x$COIN_PRJCT != x; then
3998  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3999fi
4000
4001# Try if CXXFLAGS works
4002save_CXXFLAGS="$CXXFLAGS"
4003cat >conftest.$ac_ext <<_ACEOF
4004/* confdefs.h.  */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h.  */
4009
4010int
4011main ()
4012{
4013int i=0; i++;
4014  ;
4015  return 0;
4016}
4017_ACEOF
4018rm -f conftest.$ac_objext conftest$ac_exeext
4019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4020  (eval $ac_link) 2>conftest.er1
4021  ac_status=$?
4022  grep -v '^ *+' conftest.er1 >conftest.err
4023  rm -f conftest.er1
4024  cat conftest.err >&5
4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026  (exit $ac_status); } &&
4027         { ac_try='test -z "$ac_cxx_werror_flag"
4028                         || test ! -s conftest.err'
4029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030  (eval $ac_try) 2>&5
4031  ac_status=$?
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); }; } &&
4034         { ac_try='test -s conftest$ac_exeext'
4035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036  (eval $ac_try) 2>&5
4037  ac_status=$?
4038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039  (exit $ac_status); }; }; then
4040  :
4041else
4042  echo "$as_me: failed program was:" >&5
4043sed 's/^/| /' conftest.$ac_ext >&5
4044
4045CXXFLAGS=
4046fi
4047rm -f conftest.err conftest.$ac_objext \
4048      conftest$ac_exeext conftest.$ac_ext
4049if test -z "$CXXFLAGS"; then
4050  { 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
4051echo "$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;}
4052  CXXFLAGS='-O'
4053  cat >conftest.$ac_ext <<_ACEOF
4054/* confdefs.h.  */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h.  */
4059
4060int
4061main ()
4062{
4063int i=0; i++;
4064  ;
4065  return 0;
4066}
4067_ACEOF
4068rm -f conftest.$ac_objext conftest$ac_exeext
4069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070  (eval $ac_link) 2>conftest.er1
4071  ac_status=$?
4072  grep -v '^ *+' conftest.er1 >conftest.err
4073  rm -f conftest.er1
4074  cat conftest.err >&5
4075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076  (exit $ac_status); } &&
4077         { ac_try='test -z "$ac_cxx_werror_flag"
4078                         || test ! -s conftest.err'
4079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080  (eval $ac_try) 2>&5
4081  ac_status=$?
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); }; } &&
4084         { ac_try='test -s conftest$ac_exeext'
4085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086  (eval $ac_try) 2>&5
4087  ac_status=$?
4088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089  (exit $ac_status); }; }; then
4090  :
4091else
4092  echo "$as_me: failed program was:" >&5
4093sed 's/^/| /' conftest.$ac_ext >&5
4094
4095CXXFLAGS=
4096fi
4097rm -f conftest.err conftest.$ac_objext \
4098      conftest$ac_exeext conftest.$ac_ext
4099  if test -z "$CXXFLAGS"; then
4100    { 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
4101echo "$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;}
4102  fi
4103fi
4104
4105{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4106echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4107
4108
4109if test x"$MPICXX" = x; then :; else
4110  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4111echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4112  CXX="$MPICXX"
4113fi
4114
4115# correct the LD variable in a mingw build with MS or intel compiler
4116case "$CXX" in
4117  clang* ) ;;
4118  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4119
4120 case $build in
4121  *-mingw*)
4122    if test "${LD+set}" = set; then :; else
4123      LD=link
4124    fi
4125    ;;
4126 esac
4127 if test $enable_msvc = yes ; then
4128   if test "x${LD+set}" = xset; then :; else
4129     LD=link
4130   fi
4131 fi
4132
4133    ;;
4134esac
4135
4136ac_ext=c
4137ac_cpp='$CPP $CPPFLAGS'
4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
4142
4143
4144# Initialize automake and libtool
4145{
4146
4147
4148
4149# START
4150
4151coin_disable_shared=no
4152# Test if force_shared has been set
4153if test "x" = xforce_shared; then
4154  if test x$enable_shared = xno; then
4155    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4156echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4157   { (exit 1); exit 1; }; }
4158  fi
4159  enable_shared=yes;
4160else
4161  # On Cygwin and AIX, building DLLs doesn't work
4162  case $build in
4163    *-cygwin* | *-mingw*)
4164      coin_disable_shared=yes
4165      if test x"$enable_shared" = xyes; then
4166        case "$CXX" in
4167          clang* )
4168            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4169echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4170            ;;
4171          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4172            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4173echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4174            ;;
4175          *)
4176            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4177echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4178            ;;
4179        esac
4180      fi
4181    ;;
4182    *-aix*)
4183      coin_disable_shared=yes
4184      platform=AIX
4185      if test x"$enable_shared" = xyes; then
4186        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4187echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4188      fi
4189    ;;
4190  esac
4191fi
4192if test x"$coin_disable_shared" = xyes; then
4193  if test x"$enable_shared" = xyes; then
4194    :
4195  else
4196    # we don't disable shared, because it was not selected anyway
4197    coin_disable_shared=no
4198  fi
4199  enable_shared=no
4200fi
4201# By default, we only want the shared objects to be compiled
4202# Check whether --enable-static or --disable-static was given.
4203if test "${enable_static+set}" = set; then
4204  enableval="$enable_static"
4205  p=${PACKAGE-default}
4206    case $enableval in
4207    yes) enable_static=yes ;;
4208    no) enable_static=no ;;
4209    *)
4210     enable_static=no
4211      # Look at the argument we got.  We use all the common list separators.
4212      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4213      for pkg in $enableval; do
4214        IFS="$lt_save_ifs"
4215        if test "X$pkg" = "X$p"; then
4216          enable_static=yes
4217        fi
4218      done
4219      IFS="$lt_save_ifs"
4220      ;;
4221    esac
4222else
4223  enable_static=no
4224fi;
4225
4226
4227
4228
4229# Initialize automake
4230echo "$as_me:$LINENO: checking for egrep" >&5
4231echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4232if test "${ac_cv_prog_egrep+set}" = set; then
4233  echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4236    then ac_cv_prog_egrep='grep -E'
4237    else ac_cv_prog_egrep='egrep'
4238    fi
4239fi
4240echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4241echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4242 EGREP=$ac_cv_prog_egrep
4243
4244
4245echo "$as_me:$LINENO: checking whether ln -s works" >&5
4246echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4247LN_S=$as_ln_s
4248if test "$LN_S" = "ln -s"; then
4249  echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
4251else
4252  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4253echo "${ECHO_T}no, using $LN_S" >&6
4254fi
4255
4256am__api_version="1.9"
4257# Find a good install program.  We prefer a C program (faster),
4258# so one script is as good as another.  But avoid the broken or
4259# incompatible versions:
4260# SysV /etc/install, /usr/sbin/install
4261# SunOS /usr/etc/install
4262# IRIX /sbin/install
4263# AIX /bin/install
4264# AmigaOS /C/install, which installs bootblocks on floppy discs
4265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4266# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4268# OS/2's system install, which has a completely different semantic
4269# ./install, which can be erroneously created by make from ./install.sh.
4270echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4271echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4272if test -z "$INSTALL"; then
4273if test "${ac_cv_path_install+set}" = set; then
4274  echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279  IFS=$as_save_IFS
4280  test -z "$as_dir" && as_dir=.
4281  # Account for people who put trailing slashes in PATH elements.
4282case $as_dir/ in
4283  ./ | .// | /cC/* | \
4284  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4285  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4286  /usr/ucb/* ) ;;
4287  *)
4288    # OSF1 and SCO ODT 3.0 have their own names for install.
4289    # Don't use installbsd from OSF since it installs stuff as root
4290    # by default.
4291    for ac_prog in ginstall scoinst install; do
4292      for ac_exec_ext in '' $ac_executable_extensions; do
4293        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4294          if test $ac_prog = install &&
4295            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4296            # AIX install.  It has an incompatible calling convention.
4297            :
4298          elif test $ac_prog = install &&
4299            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4300            # program-specific install script used by HP pwplus--don't use.
4301            :
4302          else
4303            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4304            break 3
4305          fi
4306        fi
4307      done
4308    done
4309    ;;
4310esac
4311done
4312
4313
4314fi
4315  if test "${ac_cv_path_install+set}" = set; then
4316    INSTALL=$ac_cv_path_install
4317  else
4318    # As a last resort, use the slow shell script.  We don't cache a
4319    # path for INSTALL within a source directory, because that will
4320    # break other packages using the cache if that directory is
4321    # removed, or if the path is relative.
4322    INSTALL=$ac_install_sh
4323  fi
4324fi
4325echo "$as_me:$LINENO: result: $INSTALL" >&5
4326echo "${ECHO_T}$INSTALL" >&6
4327
4328# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4329# It thinks the first close brace ends the variable substitution.
4330test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4331
4332test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4333
4334test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4335
4336echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4337echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4338# Just in case
4339sleep 1
4340echo timestamp > conftest.file
4341# Do `set' in a subshell so we don't clobber the current shell's
4342# arguments.  Must try -L first in case configure is actually a
4343# symlink; some systems play weird games with the mod time of symlinks
4344# (eg FreeBSD returns the mod time of the symlink's containing
4345# directory).
4346if (
4347   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4348   if test "$*" = "X"; then
4349      # -L didn't work.
4350      set X `ls -t $srcdir/configure conftest.file`
4351   fi
4352   rm -f conftest.file
4353   if test "$*" != "X $srcdir/configure conftest.file" \
4354      && test "$*" != "X conftest.file $srcdir/configure"; then
4355
4356      # If neither matched, then we have a broken ls.  This can happen
4357      # if, for instance, CONFIG_SHELL is bash and it inherits a
4358      # broken ls alias from the environment.  This has actually
4359      # happened.  Such a system could not be considered "sane".
4360      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4361alias in your environment" >&5
4362echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4363alias in your environment" >&2;}
4364   { (exit 1); exit 1; }; }
4365   fi
4366
4367   test "$2" = conftest.file
4368   )
4369then
4370   # Ok.
4371   :
4372else
4373   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4374Check your system clock" >&5
4375echo "$as_me: error: newly created file is older than distributed files!
4376Check your system clock" >&2;}
4377   { (exit 1); exit 1; }; }
4378fi
4379echo "$as_me:$LINENO: result: yes" >&5
4380echo "${ECHO_T}yes" >&6
4381test "$program_prefix" != NONE &&
4382  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4383# Use a double $ so make ignores it.
4384test "$program_suffix" != NONE &&
4385  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4386# Double any \ or $.  echo might interpret backslashes.
4387# By default was `s,x,x', remove it if useless.
4388cat <<\_ACEOF >conftest.sed
4389s/[\\$]/&&/g;s/;s,x,x,$//
4390_ACEOF
4391program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4392rm conftest.sed
4393
4394# expand $ac_aux_dir to an absolute path
4395am_aux_dir=`cd $ac_aux_dir && pwd`
4396
4397test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4398# Use eval to expand $SHELL
4399if eval "$MISSING --run true"; then
4400  am_missing_run="$MISSING --run "
4401else
4402  am_missing_run=
4403  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4404echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4405fi
4406
4407if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4408  # We used to keeping the `.' as first argument, in order to
4409  # allow $(mkdir_p) to be used without argument.  As in
4410  #   $(mkdir_p) $(somedir)
4411  # where $(somedir) is conditionally defined.  However this is wrong
4412  # for two reasons:
4413  #  1. if the package is installed by a user who cannot write `.'
4414  #     make install will fail,
4415  #  2. the above comment should most certainly read
4416  #     $(mkdir_p) $(DESTDIR)$(somedir)
4417  #     so it does not work when $(somedir) is undefined and
4418  #     $(DESTDIR) is not.
4419  #  To support the latter case, we have to write
4420  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4421  #  so the `.' trick is pointless.
4422  mkdir_p='mkdir -p --'
4423else
4424  # On NextStep and OpenStep, the `mkdir' command does not
4425  # recognize any option.  It will interpret all options as
4426  # directories to create, and then abort because `.' already
4427  # exists.
4428  for d in ./-p ./--version;
4429  do
4430    test -d $d && rmdir $d
4431  done
4432  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4433  if test -f "$ac_aux_dir/mkinstalldirs"; then
4434    mkdir_p='$(mkinstalldirs)'
4435  else
4436    mkdir_p='$(install_sh) -d'
4437  fi
4438fi
4439
4440for ac_prog in gawk mawk nawk awk
4441do
4442  # Extract the first word of "$ac_prog", so it can be a program name with args.
4443set dummy $ac_prog; ac_word=$2
4444echo "$as_me:$LINENO: checking for $ac_word" >&5
4445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4446if test "${ac_cv_prog_AWK+set}" = set; then
4447  echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449  if test -n "$AWK"; then
4450  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455  IFS=$as_save_IFS
4456  test -z "$as_dir" && as_dir=.
4457  for ac_exec_ext in '' $ac_executable_extensions; do
4458  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459    ac_cv_prog_AWK="$ac_prog"
4460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461    break 2
4462  fi
4463done
4464done
4465
4466fi
4467fi
4468AWK=$ac_cv_prog_AWK
4469if test -n "$AWK"; then
4470  echo "$as_me:$LINENO: result: $AWK" >&5
4471echo "${ECHO_T}$AWK" >&6
4472else
4473  echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
4475fi
4476
4477  test -n "$AWK" && break
4478done
4479
4480echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4481echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4482set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4483if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4484  echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486  cat >conftest.make <<\_ACEOF
4487all:
4488        @echo 'ac_maketemp="$(MAKE)"'
4489_ACEOF
4490# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4491eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4492if test -n "$ac_maketemp"; then
4493  eval ac_cv_prog_make_${ac_make}_set=yes
4494else
4495  eval ac_cv_prog_make_${ac_make}_set=no
4496fi
4497rm -f conftest.make
4498fi
4499if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4500  echo "$as_me:$LINENO: result: yes" >&5
4501echo "${ECHO_T}yes" >&6
4502  SET_MAKE=
4503else
4504  echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6
4506  SET_MAKE="MAKE=${MAKE-make}"
4507fi
4508
4509rm -rf .tst 2>/dev/null
4510mkdir .tst 2>/dev/null
4511if test -d .tst; then
4512  am__leading_dot=.
4513else
4514  am__leading_dot=_
4515fi
4516rmdir .tst 2>/dev/null
4517
4518DEPDIR="${am__leading_dot}deps"
4519
4520          ac_config_commands="$ac_config_commands depfiles"
4521
4522
4523am_make=${MAKE-make}
4524cat > confinc << 'END'
4525am__doit:
4526        @echo done
4527.PHONY: am__doit
4528END
4529# If we don't find an include directive, just comment out the code.
4530echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4531echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4532am__include="#"
4533am__quote=
4534_am_result=none
4535# First try GNU make style include.
4536echo "include confinc" > confmf
4537# We grep out `Entering directory' and `Leaving directory'
4538# messages which can occur if `w' ends up in MAKEFLAGS.
4539# In particular we don't look at `^make:' because GNU make might
4540# be invoked under some other name (usually "gmake"), in which
4541# case it prints its new name instead of `make'.
4542if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4543   am__include=include
4544   am__quote=
4545   _am_result=GNU
4546fi
4547# Now try BSD make style include.
4548if test "$am__include" = "#"; then
4549   echo '.include "confinc"' > confmf
4550   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4551      am__include=.include
4552      am__quote="\""
4553      _am_result=BSD
4554   fi
4555fi
4556
4557
4558echo "$as_me:$LINENO: result: $_am_result" >&5
4559echo "${ECHO_T}$_am_result" >&6
4560rm -f confinc confmf
4561
4562# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4563if test "${enable_dependency_tracking+set}" = set; then
4564  enableval="$enable_dependency_tracking"
4565
4566fi;
4567if test "x$enable_dependency_tracking" != xno; then
4568  am_depcomp="$ac_aux_dir/depcomp"
4569  AMDEPBACKSLASH='\'
4570fi
4571
4572
4573if test "x$enable_dependency_tracking" != xno; then
4574  AMDEP_TRUE=
4575  AMDEP_FALSE='#'
4576else
4577  AMDEP_TRUE='#'
4578  AMDEP_FALSE=
4579fi
4580
4581
4582
4583
4584
4585
4586# AC_MSG_NOTICE([Beginning automake initialisation.])
4587# Stuff for automake
4588# test to see if srcdir already configured
4589if test "`cd $srcdir && pwd`" != "`pwd`" &&
4590   test -f $srcdir/config.status; then
4591  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4592echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4593   { (exit 1); exit 1; }; }
4594fi
4595
4596# test whether we have cygpath
4597if test -z "$CYGPATH_W"; then
4598  if (cygpath --version) >/dev/null 2>/dev/null; then
4599    CYGPATH_W='cygpath -w'
4600  else
4601    CYGPATH_W=echo
4602  fi
4603fi
4604
4605
4606# Define the identity of the package.
4607 PACKAGE='clp'
4608 VERSION='trunk'
4609
4610
4611cat >>confdefs.h <<_ACEOF
4612#define PACKAGE "$PACKAGE"
4613_ACEOF
4614
4615
4616cat >>confdefs.h <<_ACEOF
4617#define VERSION "$VERSION"
4618_ACEOF
4619
4620# Some tools Automake needs.
4621
4622ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4623
4624
4625AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4626
4627
4628AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4629
4630
4631AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4632
4633
4634MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4635
4636install_sh=${install_sh-"$am_aux_dir/install-sh"}
4637
4638# Installed binaries are usually stripped using `strip' when the user
4639# run `make install-strip'.  However `strip' might not be the right
4640# tool to use in cross-compilation environments, therefore Automake
4641# will honor the `STRIP' environment variable to overrule this program.
4642if test "$cross_compiling" != no; then
4643  if test -n "$ac_tool_prefix"; then
4644  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4645set dummy ${ac_tool_prefix}strip; ac_word=$2
4646echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4648if test "${ac_cv_prog_STRIP+set}" = set; then
4649  echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651  if test -n "$STRIP"; then
4652  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657  IFS=$as_save_IFS
4658  test -z "$as_dir" && as_dir=.
4659  for ac_exec_ext in '' $ac_executable_extensions; do
4660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663    break 2
4664  fi
4665done
4666done
4667
4668fi
4669fi
4670STRIP=$ac_cv_prog_STRIP
4671if test -n "$STRIP"; then
4672  echo "$as_me:$LINENO: result: $STRIP" >&5
4673echo "${ECHO_T}$STRIP" >&6
4674else
4675  echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6
4677fi
4678
4679fi
4680if test -z "$ac_cv_prog_STRIP"; then
4681  ac_ct_STRIP=$STRIP
4682  # Extract the first word of "strip", so it can be a program name with args.
4683set dummy strip; ac_word=$2
4684echo "$as_me:$LINENO: checking for $ac_word" >&5
4685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4687  echo $ECHO_N "(cached) $ECHO_C" >&6
4688else
4689  if test -n "$ac_ct_STRIP"; then
4690  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697  for ac_exec_ext in '' $ac_executable_extensions; do
4698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699    ac_cv_prog_ac_ct_STRIP="strip"
4700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701    break 2
4702  fi
4703done
4704done
4705
4706  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4707fi
4708fi
4709ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4710if test -n "$ac_ct_STRIP"; then
4711  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4712echo "${ECHO_T}$ac_ct_STRIP" >&6
4713else
4714  echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6
4716fi
4717
4718  STRIP=$ac_ct_STRIP
4719else
4720  STRIP="$ac_cv_prog_STRIP"
4721fi
4722
4723fi
4724INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4725
4726# We need awk for the "check" target.  The system "awk" is bad on
4727# some platforms.
4728# Always define AMTAR for backward compatibility.
4729
4730AMTAR=${AMTAR-"${am_missing_run}tar"}
4731
4732am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4733
4734
4735
4736
4737depcc="$CC"   am_compiler_list=
4738
4739echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4740echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4741if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4742  echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4745  # We make a subdir and do the tests there.  Otherwise we can end up
4746  # making bogus files that we don't know about and never remove.  For
4747  # instance it was reported that on HP-UX the gcc test will end up
4748  # making a dummy file named `D' -- because `-MD' means `put the output
4749  # in D'.
4750  mkdir conftest.dir
4751  # Copy depcomp to subdir because otherwise we won't find it if we're
4752  # using a relative directory.
4753  cp "$am_depcomp" conftest.dir
4754  cd conftest.dir
4755  # We will build objects and dependencies in a subdirectory because
4756  # it helps to detect inapplicable dependency modes.  For instance
4757  # both Tru64's cc and ICC support -MD to output dependencies as a
4758  # side effect of compilation, but ICC will put the dependencies in
4759  # the current directory while Tru64 will put them in the object
4760  # directory.
4761  mkdir sub
4762
4763  am_cv_CC_dependencies_compiler_type=none
4764  if test "$am_compiler_list" = ""; then
4765     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4766  fi
4767  for depmode in $am_compiler_list; do
4768    # Setup a source with many dependencies, because some compilers
4769    # like to wrap large dependency lists on column 80 (with \), and
4770    # we should not choose a depcomp mode which is confused by this.
4771    #
4772    # We need to recreate these files for each test, as the compiler may
4773    # overwrite some of them when testing with obscure command lines.
4774    # This happens at least with the AIX C compiler.
4775    : > sub/conftest.c
4776    for i in 1 2 3 4 5 6; do
4777      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4778      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4779      # Solaris 8's {/usr,}/bin/sh.
4780      touch sub/conftst$i.h
4781    done
4782    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4783
4784    case $depmode in
4785    nosideeffect)
4786      # after this tag, mechanisms are not by side-effect, so they'll
4787      # only be used when explicitly requested
4788      if test "x$enable_dependency_tracking" = xyes; then
4789        continue
4790      else
4791        break
4792      fi
4793      ;;
4794    none) break ;;
4795    esac
4796    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4797    # mode.  It turns out that the SunPro C++ compiler does not properly
4798    # handle `-M -o', and we need to detect this.
4799    if depmode=$depmode \
4800       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4801       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4802       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4803         >/dev/null 2>conftest.err &&
4804       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4805       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4806       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4807      # icc doesn't choke on unknown options, it will just issue warnings
4808      # or remarks (even with -Werror).  So we grep stderr for any message
4809      # that says an option was ignored or not supported.
4810      # When given -MP, icc 7.0 and 7.1 complain thusly:
4811      #   icc: Command line warning: ignoring option '-M'; no argument required
4812      # The diagnosis changed in icc 8.0:
4813      #   icc: Command line remark: option '-MP' not supported
4814      if (grep 'ignoring option' conftest.err ||
4815          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4816        am_cv_CC_dependencies_compiler_type=$depmode
4817        break
4818      fi
4819    fi
4820  done
4821
4822  cd ..
4823  rm -rf conftest.dir
4824else
4825  am_cv_CC_dependencies_compiler_type=none
4826fi
4827
4828fi
4829echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4830echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4831CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4832
4833
4834
4835if
4836  test "x$enable_dependency_tracking" != xno \
4837  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4838  am__fastdepCC_TRUE=
4839  am__fastdepCC_FALSE='#'
4840else
4841  am__fastdepCC_TRUE='#'
4842  am__fastdepCC_FALSE=
4843fi
4844
4845
4846depcc="$CXX"  am_compiler_list=
4847
4848echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4849echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4850if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4851  echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4854  # We make a subdir and do the tests there.  Otherwise we can end up
4855  # making bogus files that we don't know about and never remove.  For
4856  # instance it was reported that on HP-UX the gcc test will end up
4857  # making a dummy file named `D' -- because `-MD' means `put the output
4858  # in D'.
4859  mkdir conftest.dir
4860  # Copy depcomp to subdir because otherwise we won't find it if we're
4861  # using a relative directory.
4862  cp "$am_depcomp" conftest.dir
4863  cd conftest.dir
4864  # We will build objects and dependencies in a subdirectory because
4865  # it helps to detect inapplicable dependency modes.  For instance
4866  # both Tru64's cc and ICC support -MD to output dependencies as a
4867  # side effect of compilation, but ICC will put the dependencies in
4868  # the current directory while Tru64 will put them in the object
4869  # directory.
4870  mkdir sub
4871
4872  am_cv_CXX_dependencies_compiler_type=none
4873  if test "$am_compiler_list" = ""; then
4874     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4875  fi
4876  for depmode in $am_compiler_list; do
4877    # Setup a source with many dependencies, because some compilers
4878    # like to wrap large dependency lists on column 80 (with \), and
4879    # we should not choose a depcomp mode which is confused by this.
4880    #
4881    # We need to recreate these files for each test, as the compiler may
4882    # overwrite some of them when testing with obscure command lines.
4883    # This happens at least with the AIX C compiler.
4884    : > sub/conftest.c
4885    for i in 1 2 3 4 5 6; do
4886      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4887      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4888      # Solaris 8's {/usr,}/bin/sh.
4889      touch sub/conftst$i.h
4890    done
4891    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4892
4893    case $depmode in
4894    nosideeffect)
4895      # after this tag, mechanisms are not by side-effect, so they'll
4896      # only be used when explicitly requested
4897      if test "x$enable_dependency_tracking" = xyes; then
4898        continue
4899      else
4900        break
4901      fi
4902      ;;
4903    none) break ;;
4904    esac
4905    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4906    # mode.  It turns out that the SunPro C++ compiler does not properly
4907    # handle `-M -o', and we need to detect this.
4908    if depmode=$depmode \
4909       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4910       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4911       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4912         >/dev/null 2>conftest.err &&
4913       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4914       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4915       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4916      # icc doesn't choke on unknown options, it will just issue warnings
4917      # or remarks (even with -Werror).  So we grep stderr for any message
4918      # that says an option was ignored or not supported.
4919      # When given -MP, icc 7.0 and 7.1 complain thusly:
4920      #   icc: Command line warning: ignoring option '-M'; no argument required
4921      # The diagnosis changed in icc 8.0:
4922      #   icc: Command line remark: option '-MP' not supported
4923      if (grep 'ignoring option' conftest.err ||
4924          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4925        am_cv_CXX_dependencies_compiler_type=$depmode
4926        break
4927      fi
4928    fi
4929  done
4930
4931  cd ..
4932  rm -rf conftest.dir
4933else
4934  am_cv_CXX_dependencies_compiler_type=none
4935fi
4936
4937fi
4938echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4939echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4940CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4941
4942
4943
4944if
4945  test "x$enable_dependency_tracking" != xno \
4946  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4947  am__fastdepCXX_TRUE=
4948  am__fastdepCXX_FALSE='#'
4949else
4950  am__fastdepCXX_TRUE='#'
4951  am__fastdepCXX_FALSE=
4952fi
4953
4954
4955
4956echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4957echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4958    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4959if test "${enable_maintainer_mode+set}" = set; then
4960  enableval="$enable_maintainer_mode"
4961  USE_MAINTAINER_MODE=$enableval
4962else
4963  USE_MAINTAINER_MODE=no
4964fi;
4965  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4966echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4967
4968
4969if test $USE_MAINTAINER_MODE = yes; then
4970  MAINTAINER_MODE_TRUE=
4971  MAINTAINER_MODE_FALSE='#'
4972else
4973  MAINTAINER_MODE_TRUE='#'
4974  MAINTAINER_MODE_FALSE=
4975fi
4976
4977  MAINT=$MAINTAINER_MODE_TRUE
4978
4979
4980
4981coin_have_externals=no
4982if test "$enable_maintainer_mode" = yes; then
4983
4984  # If maintainer mode is chosen, we make sure that the correct versions
4985  # of the tools are used, and that we know where libtool.m4 is (to
4986  # recreate acinclude.m4)
4987
4988
4989  LIBTOOLM4=
4990  # Normally, $HOME
4991  AUTOTOOLS_DFLT=$HOME
4992
4993  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4994echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4995if test "${ac_cv_use_correct_autotools+set}" = set; then
4996  echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998  ac_cv_use_correct_autotools=check
4999fi
5000echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5001echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5002
5003  if test $ac_cv_use_correct_autotools = check; then
5004    ac_cv_use_correct_autotools=yes
5005    # Check if we have autoconf
5006    # Extract the first word of "autoconf", so it can be a program name with args.
5007set dummy autoconf; ac_word=$2
5008echo "$as_me:$LINENO: checking for $ac_word" >&5
5009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5010if test "${ac_cv_prog_have_autoconf+set}" = set; then
5011  echo $ECHO_N "(cached) $ECHO_C" >&6
5012else
5013  if test -n "$have_autoconf"; then
5014  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019  IFS=$as_save_IFS
5020  test -z "$as_dir" && as_dir=.
5021  for ac_exec_ext in '' $ac_executable_extensions; do
5022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023    ac_cv_prog_have_autoconf="yes"
5024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025    break 2
5026  fi
5027done
5028done
5029
5030  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5031fi
5032fi
5033have_autoconf=$ac_cv_prog_have_autoconf
5034if test -n "$have_autoconf"; then
5035  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5036echo "${ECHO_T}$have_autoconf" >&6
5037else
5038  echo "$as_me:$LINENO: result: no" >&5
5039echo "${ECHO_T}no" >&6
5040fi
5041
5042    if test $have_autoconf = no; then
5043      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5044echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5045   { (exit 1); exit 1; }; }
5046    fi
5047
5048    # Check whether autoconf is the correct version
5049    correct_version='2.59'
5050    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5051    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5052echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5053    autoconf --version > confauto.out 2>&1
5054    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5055      echo "$as_me:$LINENO: result: yes" >&5
5056echo "${ECHO_T}yes" >&6
5057    else
5058      rm -f confauto.out
5059      echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5062echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5063   { (exit 1); exit 1; }; }
5064    fi
5065    rm -f confauto.out
5066
5067    # Check if the executable autoconf is picked up from the correct location
5068    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5069echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5070    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5071    autoconf_dir=`cd $autoconf_dir; pwd`
5072    if test x$AUTOTOOLS_DIR = x; then
5073      want_dir=$AUTOTOOLS_DFLT/bin
5074    else
5075      want_dir=$AUTOTOOLS_DIR/bin
5076    fi
5077    if test $autoconf_dir = `cd $want_dir; pwd`; then
5078      echo "$as_me:$LINENO: result: yes" >&5
5079echo "${ECHO_T}yes" >&6
5080    else
5081      rm -f confauto.out
5082      echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5085echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5086   { (exit 1); exit 1; }; }
5087    fi
5088
5089    # Check if we have automake
5090    # Extract the first word of "automake", so it can be a program name with args.
5091set dummy automake; ac_word=$2
5092echo "$as_me:$LINENO: checking for $ac_word" >&5
5093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5094if test "${ac_cv_prog_have_automake+set}" = set; then
5095  echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097  if test -n "$have_automake"; then
5098  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5099else
5100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103  IFS=$as_save_IFS
5104  test -z "$as_dir" && as_dir=.
5105  for ac_exec_ext in '' $ac_executable_extensions; do
5106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107    ac_cv_prog_have_automake="yes"
5108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109    break 2
5110  fi
5111done
5112done
5113
5114  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5115fi
5116fi
5117have_automake=$ac_cv_prog_have_automake
5118if test -n "$have_automake"; then
5119  echo "$as_me:$LINENO: result: $have_automake" >&5
5120echo "${ECHO_T}$have_automake" >&6
5121else
5122  echo "$as_me:$LINENO: result: no" >&5
5123echo "${ECHO_T}no" >&6
5124fi
5125
5126    if test $have_automake = no; then
5127      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5128echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5129   { (exit 1); exit 1; }; }
5130    fi
5131
5132    # Check whether automake is the correct version
5133    correct_version='1.9.6'
5134    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5135    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5136echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5137    automake --version > confauto.out 2>&1
5138    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5139      echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141    else
5142      rm -f confauto.out
5143      echo "$as_me:$LINENO: result: no" >&5
5144echo "${ECHO_T}no" >&6
5145      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5146echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5147   { (exit 1); exit 1; }; }
5148    fi
5149    rm -f confauto.out
5150
5151    # Check if the executable automake is picked up from the correct location
5152    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5153echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5154    automake_dir=`which automake | sed -e 's=/automake=='`
5155    automake_dir=`cd $automake_dir; pwd`
5156    if test x$AUTOTOOLS_DIR = x; then
5157      want_dir=$AUTOTOOLS_DFLT/bin
5158    else
5159      want_dir=$AUTOTOOLS_DIR/bin
5160    fi
5161    if test $automake_dir = `cd $want_dir; pwd`; then
5162      echo "$as_me:$LINENO: result: yes" >&5
5163echo "${ECHO_T}yes" >&6
5164    else
5165      rm -f confauto.out
5166      echo "$as_me:$LINENO: result: no" >&5
5167echo "${ECHO_T}no" >&6
5168      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5169echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5170   { (exit 1); exit 1; }; }
5171    fi
5172
5173    # Check if this is the correct version of libtool (with escaped dots)
5174    if test x$AUTOTOOLS_DIR = x; then
5175      want_dir=$AUTOTOOLS_DFLT/share
5176    else
5177      want_dir=$AUTOTOOLS_DIR/share
5178    fi
5179    correct_version='1.5.22'
5180    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5181    if test -r $want_dir/libtool/ltmain.sh; then
5182  have_ltmain=yes
5183  :
5184else
5185  have_ltmain=no
5186  :
5187fi
5188
5189    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5190echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5191    if test $have_ltmain = yes; then
5192    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5193        echo "$as_me:$LINENO: result: yes" >&5
5194echo "${ECHO_T}yes" >&6
5195      else
5196        echo "$as_me:$LINENO: result: no" >&5
5197echo "${ECHO_T}no" >&6
5198        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5199echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5200   { (exit 1); exit 1; }; }
5201      fi
5202    else
5203      echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5206echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5207   { (exit 1); exit 1; }; }
5208    fi
5209  fi
5210
5211  # Check if we can find the libtool file
5212  if test x$AUTOTOOLS_DIR = x; then
5213    want_dir=$AUTOTOOLS_DFLT/share
5214  else
5215    want_dir=$AUTOTOOLS_DIR/share
5216  fi
5217  if test -r $want_dir/aclocal/libtool.m4; then
5218  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5219  :
5220else
5221  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5222echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5223   { (exit 1); exit 1; }; }
5224  :
5225fi
5226
5227
5228  # Check if we have an Dependencies file
5229  if test -r $srcdir/Dependencies; then
5230    coin_have_externals=yes
5231  fi
5232  # Check if subversion is installed and understands https
5233  # Extract the first word of "svn", so it can be a program name with args.
5234set dummy svn; ac_word=$2
5235echo "$as_me:$LINENO: checking for $ac_word" >&5
5236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237if test "${ac_cv_prog_have_svn+set}" = set; then
5238  echo $ECHO_N "(cached) $ECHO_C" >&6
5239else
5240  if test -n "$have_svn"; then
5241  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5242else
5243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246  IFS=$as_save_IFS
5247  test -z "$as_dir" && as_dir=.
5248  for ac_exec_ext in '' $ac_executable_extensions; do
5249  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250    ac_cv_prog_have_svn="yes"
5251    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252    break 2
5253  fi
5254done
5255done
5256
5257  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5258fi
5259fi
5260have_svn=$ac_cv_prog_have_svn
5261if test -n "$have_svn"; then
5262  echo "$as_me:$LINENO: result: $have_svn" >&5
5263echo "${ECHO_T}$have_svn" >&6
5264else
5265  echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267fi
5268
5269  if test x$have_svn = xyes; then
5270    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5271echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5272if test "${ac_cv_svn_understands_https+set}" = set; then
5273  echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275  svn --version > confauto.out 2>&1
5276                    if $EGREP https confauto.out >/dev/null 2>&1; then
5277                      ac_cv_svn_understands_https=yes
5278                    else
5279                      ac_cv_svn_understands_https=no
5280                      have_svn=no
5281                      ac_cv_prog_have_svn=no
5282                    fi
5283                    rm -f confauto.out
5284fi
5285echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5286echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5287  fi
5288
5289  # Find the location of the BuildTools directory
5290  BUILDTOOLSDIR=
5291  if test -r $srcdir/BuildTools/coin.m4; then
5292    BUILDTOOLSDIR=$srcdir/BuildTools
5293  else
5294    if test -r $srcdir/../BuildTools/coin.m4; then
5295      BUILDTOOLSDIR=$srcdir/../BuildTools
5296    else
5297      if test -r $srcdir/../../BuildTools/coin.m4; then
5298        BUILDTOOLSDIR=$srcdir/../../BuildTools
5299      else
5300        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5301echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5302   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5303      fi
5304    fi
5305  fi
5306
5307
5308  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5309  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5310    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5311  fi
5312
5313  # The following variable is set to the name of the directory where
5314  # the autotool scripts are located
5315
5316  AUX_DIR=$ac_aux_dir
5317fi
5318
5319# helpful variable for the base directory of this package
5320abs_source_dir=`cd $srcdir; pwd`
5321
5322
5323# Stuff for example Makefiles
5324if test x$prefix = xNONE; then
5325  full_prefix=$ac_default_prefix
5326else
5327  full_prefix=$prefix
5328fi
5329full_prefix=`cd $full_prefix ; pwd`
5330
5331abs_lib_dir=$full_prefix/lib
5332
5333abs_include_dir=$full_prefix/include
5334
5335abs_bin_dir=$full_prefix/bin
5336
5337
5338
5339if test $coin_have_externals = yes && test x$have_svn = xyes; then
5340  HAVE_EXTERNALS_TRUE=
5341  HAVE_EXTERNALS_FALSE='#'
5342else
5343  HAVE_EXTERNALS_TRUE='#'
5344  HAVE_EXTERNALS_FALSE=
5345fi
5346
5347
5348# AC_MSG_NOTICE([End automake initialisation.])
5349
5350
5351
5352LIBTOOL=
5353if test -f ../libtool; then
5354  coin_config_dir=..
5355  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5356fi
5357if test "x$LIBTOOL" = x; then
5358  if test -f ../../libtool; then
5359    coin_config_dir=../..
5360    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5361  fi
5362fi
5363
5364if test "x$LIBTOOL" = x; then
5365# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5366  # Stuff for libtool
5367  # Check whether --enable-shared or --disable-shared was given.
5368if test "${enable_shared+set}" = set; then
5369  enableval="$enable_shared"
5370  p=${PACKAGE-default}
5371    case $enableval in
5372    yes) enable_shared=yes ;;
5373    no) enable_shared=no ;;
5374    *)
5375      enable_shared=no
5376      # Look at the argument we got.  We use all the common list separators.
5377      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5378      for pkg in $enableval; do
5379        IFS="$lt_save_ifs"
5380        if test "X$pkg" = "X$p"; then
5381          enable_shared=yes
5382        fi
5383      done
5384      IFS="$lt_save_ifs"
5385      ;;
5386    esac
5387else
5388  enable_shared=yes
5389fi;
5390
5391# Check whether --enable-fast-install or --disable-fast-install was given.
5392if test "${enable_fast_install+set}" = set; then
5393  enableval="$enable_fast_install"
5394  p=${PACKAGE-default}
5395    case $enableval in
5396    yes) enable_fast_install=yes ;;
5397    no) enable_fast_install=no ;;
5398    *)
5399      enable_fast_install=no
5400      # Look at the argument we got.  We use all the common list separators.
5401      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5402      for pkg in $enableval; do
5403        IFS="$lt_save_ifs"
5404        if test "X$pkg" = "X$p"; then
5405          enable_fast_install=yes
5406        fi
5407      done
5408      IFS="$lt_save_ifs"
5409      ;;
5410    esac
5411else
5412  enable_fast_install=yes
5413fi;
5414
5415echo "$as_me:$LINENO: checking host system type" >&5
5416echo $ECHO_N "checking host system type... $ECHO_C" >&6
5417if test "${ac_cv_host+set}" = set; then
5418  echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420  ac_cv_host_alias=$host_alias
5421test -z "$ac_cv_host_alias" &&
5422  ac_cv_host_alias=$ac_cv_build_alias
5423ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5424  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5425echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5426   { (exit 1); exit 1; }; }
5427
5428fi
5429echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5430echo "${ECHO_T}$ac_cv_host" >&6
5431host=$ac_cv_host
5432host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5433host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5434host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5435
5436
5437echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5438echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5439if test "${lt_cv_path_SED+set}" = set; then
5440  echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442  # Loop through the user's path and test for sed and gsed.
5443# Then use that list of sed's as ones to test for truncation.
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447  IFS=$as_save_IFS
5448  test -z "$as_dir" && as_dir=.
5449  for lt_ac_prog in sed gsed; do
5450    for ac_exec_ext in '' $ac_executable_extensions; do
5451      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5452        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5453      fi
5454    done
5455  done
5456done
5457lt_ac_max=0
5458lt_ac_count=0
5459# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5460# along with /bin/sed that truncates output.
5461for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5462  test ! -f $lt_ac_sed && continue
5463  cat /dev/null > conftest.in
5464  lt_ac_count=0
5465  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5466  # Check for GNU sed and select it if it is found.
5467  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5468    lt_cv_path_SED=$lt_ac_sed
5469    break
5470  fi
5471  while true; do
5472    cat conftest.in conftest.in >conftest.tmp
5473    mv conftest.tmp conftest.in
5474    cp conftest.in conftest.nl
5475    echo >>conftest.nl
5476    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5477    cmp -s conftest.out conftest.nl || break
5478    # 10000 chars as input seems more than enough
5479    test $lt_ac_count -gt 10 && break
5480    lt_ac_count=`expr $lt_ac_count + 1`
5481    if test $lt_ac_count -gt $lt_ac_max; then
5482      lt_ac_max=$lt_ac_count
5483      lt_cv_path_SED=$lt_ac_sed
5484    fi
5485  done
5486done
5487
5488fi
5489
5490SED=$lt_cv_path_SED
5491echo "$as_me:$LINENO: result: $SED" >&5
5492echo "${ECHO_T}$SED" >&6
5493
5494
5495# Check whether --with-gnu-ld or --without-gnu-ld was given.
5496if test "${with_gnu_ld+set}" = set; then
5497  withval="$with_gnu_ld"
5498  test "$withval" = no || with_gnu_ld=yes
5499else
5500  with_gnu_ld=no
5501fi;
5502ac_prog=ld
5503if test "$GCC" = yes; then
5504  # Check if gcc -print-prog-name=ld gives a path.
5505  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5506echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5507  case $host in
5508  *-*-mingw*)
5509    # gcc leaves a trailing carriage return which upsets mingw
5510    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5511  *)
5512    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5513  esac
5514  case $ac_prog in
5515    # Accept absolute paths.
5516    [\\/]* | ?:[\\/]*)
5517      re_direlt='/[^/][^/]*/\.\./'
5518      # Canonicalize the pathname of ld
5519      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5520      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5521        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5522      done
5523      test -z "$LD" && LD="$ac_prog"
5524      ;;
5525  "")
5526    # If it fails, then pretend we aren't using GCC.
5527    ac_prog=ld
5528    ;;
5529  *)
5530    # If it is relative, then search for the first ld in PATH.
5531    with_gnu_ld=unknown
5532    ;;
5533  esac
5534elif test "$with_gnu_ld" = yes; then
5535  echo "$as_me:$LINENO: checking for GNU ld" >&5
5536echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5537else
5538  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5539echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5540fi
5541if test "${lt_cv_path_LD+set}" = set; then
5542  echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544  if test -z "$LD"; then
5545  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5546  for ac_dir in $PATH; do
5547    IFS="$lt_save_ifs"
5548    test -z "$ac_dir" && ac_dir=.
5549    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5550      lt_cv_path_LD="$ac_dir/$ac_prog"
5551      # Check to see if the program is GNU ld.  I'd rather use --version,
5552      # but apparently some variants of GNU ld only accept -v.
5553      # Break only if it was the GNU/non-GNU ld that we prefer.
5554      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5555      *GNU* | *'with BFD'*)
5556        test "$with_gnu_ld" != no && break
5557        ;;
5558      *)
5559        test "$with_gnu_ld" != yes && break
5560        ;;
5561      esac
5562    fi
5563  done
5564  IFS="$lt_save_ifs"
5565else
5566  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5567fi
5568fi
5569
5570LD="$lt_cv_path_LD"
5571if test -n "$LD"; then
5572  echo "$as_me:$LINENO: result: $LD" >&5
5573echo "${ECHO_T}$LD" >&6
5574else
5575  echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577fi
5578test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5579echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5580   { (exit 1); exit 1; }; }
5581echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5582echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5583if test "${lt_cv_prog_gnu_ld+set}" = set; then
5584  echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5587case `$LD -v 2>&1 </dev/null` in
5588*GNU* | *'with BFD'*)
5589  lt_cv_prog_gnu_ld=yes
5590  ;;
5591*)
5592  lt_cv_prog_gnu_ld=no
5593  ;;
5594esac
5595fi
5596echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5597echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5598with_gnu_ld=$lt_cv_prog_gnu_ld
5599
5600
5601echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5602echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5603if test "${lt_cv_ld_reload_flag+set}" = set; then
5604  echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606  lt_cv_ld_reload_flag='-r'
5607fi
5608echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5609echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5610reload_flag=$lt_cv_ld_reload_flag
5611case $reload_flag in
5612"" | " "*) ;;
5613*) reload_flag=" $reload_flag" ;;
5614esac
5615reload_cmds='$LD$reload_flag -o $output$reload_objs'
5616case $host_os in
5617  darwin*)
5618    if test "$GCC" = yes; then
5619      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5620    else
5621      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5622    fi
5623    ;;
5624esac
5625
5626echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5627echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5628if test "${lt_cv_path_NM+set}" = set; then
5629  echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631  if test -n "$NM"; then
5632  # Let the user override the test.
5633  lt_cv_path_NM="$NM"
5634else
5635  lt_nm_to_check="${ac_tool_prefix}nm"
5636  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5637    lt_nm_to_check="$lt_nm_to_check nm"
5638  fi
5639  for lt_tmp_nm in $lt_nm_to_check; do
5640    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5641    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5642      IFS="$lt_save_ifs"
5643      test -z "$ac_dir" && ac_dir=.
5644      tmp_nm="$ac_dir/$lt_tmp_nm"
5645      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5646        # Check to see if the nm accepts a BSD-compat flag.
5647        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5648        #   nm: unknown option "B" ignored
5649        # Tru64's nm complains that /dev/null is an invalid object file
5650        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5651        */dev/null* | *'Invalid file or object type'*)
5652          lt_cv_path_NM="$tmp_nm -B"
5653          break
5654          ;;
5655        *)
5656          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5657          */dev/null*)
5658            lt_cv_path_NM="$tmp_nm -p"
5659            break
5660            ;;
5661          *)
5662            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5663            continue # so that we can try to find one that supports BSD flags
5664            ;;
5665          esac
5666          ;;
5667        esac
5668      fi
5669    done
5670    IFS="$lt_save_ifs"
5671  done
5672  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5673fi
5674fi
5675echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5676echo "${ECHO_T}$lt_cv_path_NM" >&6
5677NM="$lt_cv_path_NM"
5678
5679echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5680echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5681if test "${lt_cv_deplibs_check_method+set}" = set; then
5682  echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684  lt_cv_file_magic_cmd='$MAGIC_CMD'
5685lt_cv_file_magic_test_file=
5686lt_cv_deplibs_check_method='unknown'
5687# Need to set the preceding variable on all platforms that support
5688# interlibrary dependencies.
5689# 'none' -- dependencies not supported.
5690# `unknown' -- same as none, but documents that we really don't know.
5691# 'pass_all' -- all dependencies passed with no checks.
5692# 'test_compile' -- check by making test program.
5693# 'file_magic [[regex]]' -- check by looking for files in library path
5694# which responds to the $file_magic_cmd with a given extended regex.
5695# If you have `file' or equivalent on your system and you're not sure
5696# whether `pass_all' will *always* work, you probably want this one.
5697
5698case $host_os in
5699aix4* | aix5*)
5700  lt_cv_deplibs_check_method=pass_all
5701  ;;
5702
5703beos*)
5704  lt_cv_deplibs_check_method=pass_all
5705  ;;
5706
5707bsdi[45]*)
5708  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5709  lt_cv_file_magic_cmd='/usr/bin/file -L'
5710  lt_cv_file_magic_test_file=/shlib/libc.so
5711  ;;
5712
5713cygwin*)
5714  # func_win32_libid is a shell function defined in ltmain.sh
5715  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5716  lt_cv_file_magic_cmd='func_win32_libid'
5717  ;;
5718
5719mingw* | pw32*)
5720  # Base MSYS/MinGW do not provide the 'file' command needed by
5721  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5722  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5723  lt_cv_file_magic_cmd='$OBJDUMP -f'
5724  ;;
5725
5726darwin* | rhapsody*)
5727  lt_cv_deplibs_check_method=pass_all
5728  ;;
5729
5730freebsd* | kfreebsd*-gnu | dragonfly*)
5731  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5732    case $host_cpu in
5733    i*86 )
5734      # Not sure whether the presence of OpenBSD here was a mistake.
5735      # Let's accept both of them until this is cleared up.
5736      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5737      lt_cv_file_magic_cmd=/usr/bin/file
5738      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5739      ;;
5740    esac
5741  else
5742    lt_cv_deplibs_check_method=pass_all
5743  fi
5744  ;;
5745
5746gnu*)
5747  lt_cv_deplibs_check_method=pass_all
5748  ;;
5749
5750hpux10.20* | hpux11*)
5751  lt_cv_file_magic_cmd=/usr/bin/file
5752  case $host_cpu in
5753  ia64*)
5754    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5755    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5756    ;;
5757  hppa*64*)
5758    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]'
5759    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5760    ;;
5761  *)
5762    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5763    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5764    ;;
5765  esac
5766  ;;
5767
5768interix3*)
5769  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5770  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5771  ;;
5772
5773irix5* | irix6* | nonstopux*)
5774  case $LD in
5775  *-32|*"-32 ") libmagic=32-bit;;
5776  *-n32|*"-n32 ") libmagic=N32;;
5777  *-64|*"-64 ") libmagic=64-bit;;
5778  *) libmagic=never-match;;
5779  esac
5780  lt_cv_deplibs_check_method=pass_all
5781  ;;
5782
5783# This must be Linux ELF.
5784linux*)
5785  lt_cv_deplibs_check_method=pass_all
5786  ;;
5787
5788netbsd*)
5789  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5790    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5791  else
5792    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5793  fi
5794  ;;
5795
5796newos6*)
5797  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5798  lt_cv_file_magic_cmd=/usr/bin/file
5799  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5800  ;;
5801
5802nto-qnx*)
5803  lt_cv_deplibs_check_method=unknown
5804  ;;
5805
5806openbsd*)
5807  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5808    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5809  else
5810    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5811  fi
5812  ;;
5813
5814osf3* | osf4* | osf5*)
5815  lt_cv_deplibs_check_method=pass_all
5816  ;;
5817
5818solaris*)
5819  lt_cv_deplibs_check_method=pass_all
5820  ;;
5821
5822sysv4 | sysv4.3*)
5823  case $host_vendor in
5824  motorola)
5825    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]'
5826    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5827    ;;
5828  ncr)
5829    lt_cv_deplibs_check_method=pass_all
5830    ;;
5831  sequent)
5832    lt_cv_file_magic_cmd='/bin/file'
5833    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5834    ;;
5835  sni)
5836    lt_cv_file_magic_cmd='/bin/file'
5837    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5838    lt_cv_file_magic_test_file=/lib/libc.so
5839    ;;
5840  siemens)
5841    lt_cv_deplibs_check_method=pass_all
5842    ;;
5843  pc)
5844    lt_cv_deplibs_check_method=pass_all
5845    ;;
5846  esac
5847  ;;
5848
5849sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5850  lt_cv_deplibs_check_method=pass_all
5851  ;;
5852esac
5853
5854fi
5855echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5856echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5857file_magic_cmd=$lt_cv_file_magic_cmd
5858deplibs_check_method=$lt_cv_deplibs_check_method
5859test -z "$deplibs_check_method" && deplibs_check_method=unknown
5860
5861
5862
5863
5864# If no C compiler was specified, use CC.
5865LTCC=${LTCC-"$CC"}
5866
5867# If no C compiler flags were specified, use CFLAGS.
5868LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5869
5870# Allow CC to be a program name with arguments.
5871compiler=$CC
5872
5873# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5874if test "${enable_libtool_lock+set}" = set; then
5875  enableval="$enable_libtool_lock"
5876
5877fi;
5878test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5879
5880# Some flags need to be propagated to the compiler or linker for good
5881# libtool support.
5882case $host in
5883ia64-*-hpux*)
5884  # Find out which ABI we are using.
5885  echo 'int i;' > conftest.$ac_ext
5886  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887  (eval $ac_compile) 2>&5
5888  ac_status=$?
5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); }; then
5891    case `/usr/bin/file conftest.$ac_objext` in
5892    *ELF-32*)
5893      HPUX_IA64_MODE="32"
5894      ;;
5895    *ELF-64*)
5896      HPUX_IA64_MODE="64"
5897      ;;
5898    esac
5899  fi
5900  rm -rf conftest*
5901  ;;
5902*-*-irix6*)
5903  # Find out which ABI we are using.
5904  echo '#line 5904 "configure"' > conftest.$ac_ext
5905  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5906  (eval $ac_compile) 2>&5
5907  ac_status=$?
5908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909  (exit $ac_status); }; then
5910   if test "$lt_cv_prog_gnu_ld" = yes; then
5911    case `/usr/bin/file conftest.$ac_objext` in
5912    *32-bit*)
5913      LD="${LD-ld} -melf32bsmip"
5914      ;;
5915    *N32*)
5916      LD="${LD-ld} -melf32bmipn32"
5917      ;;
5918    *64-bit*)
5919      LD="${LD-ld} -melf64bmip"
5920      ;;
5921    esac
5922   else
5923    case `/usr/bin/file conftest.$ac_objext` in
5924    *32-bit*)
5925      LD="${LD-ld} -32"
5926      ;;
5927    *N32*)
5928      LD="${LD-ld} -n32"
5929      ;;
5930    *64-bit*)
5931      LD="${LD-ld} -64"
5932      ;;
5933    esac
5934   fi
5935  fi
5936  rm -rf conftest*
5937  ;;
5938
5939x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5940  # Find out which ABI we are using.
5941  echo 'int i;' > conftest.$ac_ext
5942  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943  (eval $ac_compile) 2>&5
5944  ac_status=$?
5945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946  (exit $ac_status); }; then
5947    case `/usr/bin/file conftest.o` in
5948    *32-bit*)
5949      case $host in
5950        x86_64-*linux*)
5951          LD="${LD-ld} -m elf_i386"
5952          ;;
5953        ppc64-*linux*|powerpc64-*linux*)
5954          LD="${LD-ld} -m elf32ppclinux"
5955          ;;
5956        s390x-*linux*)
5957          LD="${LD-ld} -m elf_s390"
5958          ;;
5959        sparc64-*linux*)
5960          LD="${LD-ld} -m elf32_sparc"
5961          ;;
5962      esac
5963      ;;
5964    *64-bit*)
5965      case $host in
5966        x86_64-*linux*)
5967          LD="${LD-ld} -m elf_x86_64"
5968          ;;
5969        ppc*-*linux*|powerpc*-*linux*)
5970          LD="${LD-ld} -m elf64ppc"
5971          ;;
5972        s390*-*linux*)
5973          LD="${LD-ld} -m elf64_s390"
5974          ;;
5975        sparc*-*linux*)
5976          LD="${LD-ld} -m elf64_sparc"
5977          ;;
5978      esac
5979      ;;
5980    esac
5981  fi
5982  rm -rf conftest*
5983  ;;
5984
5985*-*-sco3.2v5*)
5986  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5987  SAVE_CFLAGS="$CFLAGS"
5988  CFLAGS="$CFLAGS -belf"
5989  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5990echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5991if test "${lt_cv_cc_needs_belf+set}" = set; then
5992  echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994  ac_ext=c
5995ac_cpp='$CPP $CPPFLAGS'
5996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5998ac_compiler_gnu=$ac_cv_c_compiler_gnu
5999
6000     cat >conftest.$ac_ext <<_ACEOF
6001/* confdefs.h.  */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h.  */
6006
6007int
6008main ()
6009{
6010
6011  ;
6012  return 0;
6013}
6014_ACEOF
6015rm -f conftest.$ac_objext conftest$ac_exeext
6016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017  (eval $ac_link) 2>conftest.er1
6018  ac_status=$?
6019  grep -v '^ *+' conftest.er1 >conftest.err
6020  rm -f conftest.er1
6021  cat conftest.err >&5
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); } &&
6024         { ac_try='test -z "$ac_c_werror_flag"
6025                         || test ! -s conftest.err'
6026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027  (eval $ac_try) 2>&5
6028  ac_status=$?
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); }; } &&
6031         { ac_try='test -s conftest$ac_exeext'
6032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033  (eval $ac_try) 2>&5
6034  ac_status=$?
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); }; }; then
6037  lt_cv_cc_needs_belf=yes
6038else
6039  echo "$as_me: failed program was:" >&5
6040sed 's/^/| /' conftest.$ac_ext >&5
6041
6042lt_cv_cc_needs_belf=no
6043fi
6044rm -f conftest.err conftest.$ac_objext \
6045      conftest$ac_exeext conftest.$ac_ext
6046     ac_ext=c
6047ac_cpp='$CPP $CPPFLAGS'
6048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051
6052fi
6053echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6054echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6055  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6056    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6057    CFLAGS="$SAVE_CFLAGS"
6058  fi
6059  ;;
6060sparc*-*solaris*)
6061  # Find out which ABI we are using.
6062  echo 'int i;' > conftest.$ac_ext
6063  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064  (eval $ac_compile) 2>&5
6065  ac_status=$?
6066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067  (exit $ac_status); }; then
6068    case `/usr/bin/file conftest.o` in
6069    *64-bit*)
6070      case $lt_cv_prog_gnu_ld in
6071      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6072      *)    LD="${LD-ld} -64" ;;
6073      esac
6074      ;;
6075    esac
6076  fi
6077  rm -rf conftest*
6078  ;;
6079
6080
6081esac
6082
6083need_locks="$enable_libtool_lock"
6084
6085
6086ac_ext=c
6087ac_cpp='$CPP $CPPFLAGS'
6088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6092echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6093# On Suns, sometimes $CPP names a directory.
6094if test -n "$CPP" && test -d "$CPP"; then
6095  CPP=
6096fi
6097if test -z "$CPP"; then
6098  if test "${ac_cv_prog_CPP+set}" = set; then
6099  echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101      # Double quotes because CPP needs to be expanded
6102    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6103    do
6104      ac_preproc_ok=false
6105for ac_c_preproc_warn_flag in '' yes
6106do
6107  # Use a header file that comes with gcc, so configuring glibc
6108  # with a fresh cross-compiler works.
6109  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6110  # <limits.h> exists even on freestanding compilers.
6111  # On the NeXT, cc -E runs the code through the compiler's parser,
6112  # not just through cpp. "Syntax error" is here to catch this case.
6113  cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h.  */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h.  */
6119#ifdef __STDC__
6120# include <limits.h>
6121#else
6122# include <assert.h>
6123#endif
6124                     Syntax error
6125_ACEOF
6126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6127  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6128  ac_status=$?
6129  grep -v '^ *+' conftest.er1 >conftest.err
6130  rm -f conftest.er1
6131  cat conftest.err >&5
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); } >/dev/null; then
6134  if test -s conftest.err; then
6135    ac_cpp_err=$ac_c_preproc_warn_flag
6136    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6137  else
6138    ac_cpp_err=
6139  fi
6140else
6141  ac_cpp_err=yes
6142fi
6143if test -z "$ac_cpp_err"; then
6144  :
6145else
6146  echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149  # Broken: fails on valid input.
6150continue
6151fi
6152rm -f conftest.err conftest.$ac_ext
6153
6154  # OK, works on sane cases.  Now check whether non-existent headers
6155  # can be detected and how.
6156  cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h.  */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h.  */
6162#include <ac_nonexistent.h>
6163_ACEOF
6164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6165  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6166  ac_status=$?
6167  grep -v '^ *+' conftest.er1 >conftest.err
6168  rm -f conftest.er1
6169  cat conftest.err >&5
6170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171  (exit $ac_status); } >/dev/null; then
6172  if test -s conftest.err; then
6173    ac_cpp_err=$ac_c_preproc_warn_flag
6174    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6175  else
6176    ac_cpp_err=
6177  fi
6178else
6179  ac_cpp_err=yes
6180fi
6181if test -z "$ac_cpp_err"; then
6182  # Broken: success on invalid input.
6183continue
6184else
6185  echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188  # Passes both tests.
6189ac_preproc_ok=:
6190break
6191fi
6192rm -f conftest.err conftest.$ac_ext
6193
6194done
6195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6196rm -f conftest.err conftest.$ac_ext
6197if $ac_preproc_ok; then
6198  break
6199fi
6200
6201    done
6202    ac_cv_prog_CPP=$CPP
6203
6204fi
6205  CPP=$ac_cv_prog_CPP
6206else
6207  ac_cv_prog_CPP=$CPP
6208fi
6209echo "$as_me:$LINENO: result: $CPP" >&5
6210echo "${ECHO_T}$CPP" >&6
6211ac_preproc_ok=false
6212for ac_c_preproc_warn_flag in '' yes
6213do
6214  # Use a header file that comes with gcc, so configuring glibc
6215  # with a fresh cross-compiler works.
6216  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6217  # <limits.h> exists even on freestanding compilers.
6218  # On the NeXT, cc -E runs the code through the compiler's parser,
6219  # not just through cpp. "Syntax error" is here to catch this case.
6220  cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h.  */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h.  */
6226#ifdef __STDC__
6227# include <limits.h>
6228#else
6229# include <assert.h>
6230#endif
6231                     Syntax error
6232_ACEOF
6233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6234  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6235  ac_status=$?
6236  grep -v '^ *+' conftest.er1 >conftest.err
6237  rm -f conftest.er1
6238  cat conftest.err >&5
6239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240  (exit $ac_status); } >/dev/null; then
6241  if test -s conftest.err; then
6242    ac_cpp_err=$ac_c_preproc_warn_flag
6243    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6244  else
6245    ac_cpp_err=
6246  fi
6247else
6248  ac_cpp_err=yes
6249fi
6250if test -z "$ac_cpp_err"; then
6251  :
6252else
6253  echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256  # Broken: fails on valid input.
6257continue
6258fi
6259rm -f conftest.err conftest.$ac_ext
6260
6261  # OK, works on sane cases.  Now check whether non-existent headers
6262  # can be detected and how.
6263  cat >conftest.$ac_ext <<_ACEOF
6264/* confdefs.h.  */
6265_ACEOF
6266cat confdefs.h >>conftest.$ac_ext
6267cat >>conftest.$ac_ext <<_ACEOF
6268/* end confdefs.h.  */
6269#include <ac_nonexistent.h>
6270_ACEOF
6271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6272  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6273  ac_status=$?
6274  grep -v '^ *+' conftest.er1 >conftest.err
6275  rm -f conftest.er1
6276  cat conftest.err >&5
6277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278  (exit $ac_status); } >/dev/null; then
6279  if test -s conftest.err; then
6280    ac_cpp_err=$ac_c_preproc_warn_flag
6281    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6282  else
6283    ac_cpp_err=
6284  fi
6285else
6286  ac_cpp_err=yes
6287fi
6288if test -z "$ac_cpp_err"; then
6289  # Broken: success on invalid input.
6290continue
6291else
6292  echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295  # Passes both tests.
6296ac_preproc_ok=:
6297break
6298fi
6299rm -f conftest.err conftest.$ac_ext
6300
6301done
6302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6303rm -f conftest.err conftest.$ac_ext
6304if $ac_preproc_ok; then
6305  :
6306else
6307  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6308See \`config.log' for more details." >&5
6309echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6310See \`config.log' for more details." >&2;}
6311   { (exit 1); exit 1; }; }
6312fi
6313
6314ac_ext=c
6315ac_cpp='$CPP $CPPFLAGS'
6316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318ac_compiler_gnu=$ac_cv_c_compiler_gnu
6319
6320
6321echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6322echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6323if test "${ac_cv_header_stdc+set}" = set; then
6324  echo $ECHO_N "(cached) $ECHO_C" >&6
6325else
6326  cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h.  */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h.  */
6332#include <stdlib.h>
6333#include <stdarg.h>
6334#include <string.h>
6335#include <float.h>
6336
6337int
6338main ()
6339{
6340
6341  ;
6342  return 0;
6343}
6344_ACEOF
6345rm -f conftest.$ac_objext
6346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347  (eval $ac_compile) 2>conftest.er1
6348  ac_status=$?
6349  grep -v '^ *+' conftest.er1 >conftest.err
6350  rm -f conftest.er1
6351  cat conftest.err >&5
6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353  (exit $ac_status); } &&
6354         { ac_try='test -z "$ac_c_werror_flag"
6355                         || test ! -s conftest.err'
6356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357  (eval $ac_try) 2>&5
6358  ac_status=$?
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); }; } &&
6361         { ac_try='test -s conftest.$ac_objext'
6362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363  (eval $ac_try) 2>&5
6364  ac_status=$?
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); }; }; then
6367  ac_cv_header_stdc=yes
6368else
6369  echo "$as_me: failed program was:" >&5
6370sed 's/^/| /' conftest.$ac_ext >&5
6371
6372ac_cv_header_stdc=no
6373fi
6374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375
6376if test $ac_cv_header_stdc = yes; then
6377  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6378  cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h.  */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
6383/* end confdefs.h.  */
6384#include <string.h>
6385
6386_ACEOF
6387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388  $EGREP "memchr" >/dev/null 2>&1; then
6389  :
6390else
6391  ac_cv_header_stdc=no
6392fi
6393rm -f conftest*
6394
6395fi
6396
6397if test $ac_cv_header_stdc = yes; then
6398  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6399  cat >conftest.$ac_ext <<_ACEOF
6400/* confdefs.h.  */
6401_ACEOF
6402cat confdefs.h >>conftest.$ac_ext
6403cat >>conftest.$ac_ext <<_ACEOF
6404/* end confdefs.h.  */
6405#include <stdlib.h>
6406
6407_ACEOF
6408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6409  $EGREP "free" >/dev/null 2>&1; then
6410  :
6411else
6412  ac_cv_header_stdc=no
6413fi
6414rm -f conftest*
6415
6416fi
6417
6418if test $ac_cv_header_stdc = yes; then
6419  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6420  if test "$cross_compiling" = yes; then
6421  :
6422else
6423  cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h.  */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h.  */
6429#include <ctype.h>
6430#if ((' ' & 0x0FF) == 0x020)
6431# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6432# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6433#else
6434# define ISLOWER(c) \
6435                   (('a' <= (c) && (c) <= 'i') \
6436                     || ('j' <= (c) && (c) <= 'r') \
6437                     || ('s' <= (c) && (c) <= 'z'))
6438# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6439#endif
6440
6441#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6442int
6443main ()
6444{
6445  int i;
6446  for (i = 0; i < 256; i++)
6447    if (XOR (islower (i), ISLOWER (i))
6448        || toupper (i) != TOUPPER (i))
6449      exit(2);
6450  exit (0);
6451}
6452_ACEOF
6453rm -f conftest$ac_exeext
6454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455  (eval $ac_link) 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460  (eval $ac_try) 2>&5
6461  ac_status=$?
6462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463  (exit $ac_status); }; }; then
6464  :
6465else
6466  echo "$as_me: program exited with status $ac_status" >&5
6467echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470( exit $ac_status )
6471ac_cv_header_stdc=no
6472fi
6473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6474fi
6475fi
6476fi
6477echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6478echo "${ECHO_T}$ac_cv_header_stdc" >&6
6479if test $ac_cv_header_stdc = yes; then
6480
6481cat >>confdefs.h <<\_ACEOF
6482#define STDC_HEADERS 1
6483_ACEOF
6484
6485fi
6486
6487# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6498                  inttypes.h stdint.h unistd.h
6499do
6500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501echo "$as_me:$LINENO: checking for $ac_header" >&5
6502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6503if eval "test \"\${$as_ac_Header+set}\" = set"; then
6504  echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506  cat >conftest.$ac_ext <<_ACEOF
6507/* confdefs.h.  */
6508_ACEOF
6509cat confdefs.h >>conftest.$ac_ext
6510cat >>conftest.$ac_ext <<_ACEOF
6511/* end confdefs.h.  */
6512$ac_includes_default
6513
6514#include <$ac_header>
6515_ACEOF
6516rm -f conftest.$ac_objext
6517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6518  (eval $ac_compile) 2>conftest.er1
6519  ac_status=$?
6520  grep -v '^ *+' conftest.er1 >conftest.err
6521  rm -f conftest.er1
6522  cat conftest.err >&5
6523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); } &&
6525         { ac_try='test -z "$ac_c_werror_flag"
6526                         || test ! -s conftest.err'
6527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528  (eval $ac_try) 2>&5
6529  ac_status=$?
6530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531  (exit $ac_status); }; } &&
6532         { ac_try='test -s conftest.$ac_objext'
6533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534  (eval $ac_try) 2>&5
6535  ac_status=$?
6536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537  (exit $ac_status); }; }; then
6538  eval "$as_ac_Header=yes"
6539else
6540  echo "$as_me: failed program was:" >&5
6541sed 's/^/| /' conftest.$ac_ext >&5
6542
6543eval "$as_ac_Header=no"
6544fi
6545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6546fi
6547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6549if test `eval echo '${'$as_ac_Header'}'` = yes; then
6550  cat >>confdefs.h <<_ACEOF
6551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6552_ACEOF
6553
6554fi
6555
6556done
6557
6558
6559
6560for ac_header in dlfcn.h
6561do
6562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564  echo "$as_me:$LINENO: checking for $ac_header" >&5
6565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6566if eval "test \"\${$as_ac_Header+set}\" = set"; then
6567  echo $ECHO_N "(cached) $ECHO_C" >&6
6568fi
6569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6571else
6572  # Is the header compilable?
6573echo "$as_me:$LINENO: checking $ac_header usability" >&5
6574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6575cat >conftest.$ac_ext <<_ACEOF
6576/* confdefs.h.  */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
6580/* end confdefs.h.  */
6581$ac_includes_default
6582#include <$ac_header>
6583_ACEOF
6584rm -f conftest.$ac_objext
6585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586  (eval $ac_compile) 2>conftest.er1
6587  ac_status=$?
6588  grep -v '^ *+' conftest.er1 >conftest.err
6589  rm -f conftest.er1
6590  cat conftest.err >&5
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); } &&
6593         { ac_try='test -z "$ac_c_werror_flag"
6594                         || test ! -s conftest.err'
6595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596  (eval $ac_try) 2>&5
6597  ac_status=$?
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); }; } &&
6600         { ac_try='test -s conftest.$ac_objext'
6601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602  (eval $ac_try) 2>&5
6603  ac_status=$?
6604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); }; }; then
6606  ac_header_compiler=yes
6607else
6608  echo "$as_me: failed program was:" >&5
6609sed 's/^/| /' conftest.$ac_ext >&5
6610
6611ac_header_compiler=no
6612fi
6613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6615echo "${ECHO_T}$ac_header_compiler" >&6
6616
6617# Is the header present?
6618echo "$as_me:$LINENO: checking $ac_header presence" >&5
6619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6620cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h.  */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h.  */
6626#include <$ac_header>
6627_ACEOF
6628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6629  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6630  ac_status=$?
6631  grep -v '^ *+' conftest.er1 >conftest.err
6632  rm -f conftest.er1
6633  cat conftest.err >&5
6634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635  (exit $ac_status); } >/dev/null; then
6636  if test -s conftest.err; then
6637    ac_cpp_err=$ac_c_preproc_warn_flag
6638    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6639  else
6640    ac_cpp_err=
6641  fi
6642else
6643  ac_cpp_err=yes
6644fi
6645if test -z "$ac_cpp_err"; then
6646  ac_header_preproc=yes
6647else
6648  echo "$as_me: failed program was:" >&5
6649sed 's/^/| /' conftest.$ac_ext >&5
6650
6651  ac_header_preproc=no
6652fi
6653rm -f conftest.err conftest.$ac_ext
6654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6655echo "${ECHO_T}$ac_header_preproc" >&6
6656
6657# So?  What about this header?
6658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6659  yes:no: )
6660    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6662    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6664    ac_header_preproc=yes
6665    ;;
6666  no:yes:* )
6667    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6669    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6670echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6671    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6673    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6674echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6675    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6677    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6679    (
6680      cat <<\_ASBOX
6681## ----------------------------------- ##
6682## Report this to clp@list.coin-or.org ##
6683## ----------------------------------- ##
6684_ASBOX
6685    ) |
6686      sed "s/^/$as_me: WARNING:     /" >&2
6687    ;;
6688esac
6689echo "$as_me:$LINENO: checking for $ac_header" >&5
6690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6691if eval "test \"\${$as_ac_Header+set}\" = set"; then
6692  echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694  eval "$as_ac_Header=\$ac_header_preproc"
6695fi
6696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6698
6699fi
6700if test `eval echo '${'$as_ac_Header'}'` = yes; then
6701  cat >>confdefs.h <<_ACEOF
6702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6703_ACEOF
6704
6705fi
6706
6707done
6708
6709
6710
6711if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6712    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6713    (test "X$CXX" != "Xg++"))) ; then
6714  ac_ext=cc
6715ac_cpp='$CXXCPP $CPPFLAGS'
6716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6719echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6720echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6721if test -z "$CXXCPP"; then
6722  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6723  echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725      # Double quotes because CXXCPP needs to be expanded
6726    for CXXCPP in "$CXX -E" "/lib/cpp"
6727    do
6728      ac_preproc_ok=false
6729for ac_cxx_preproc_warn_flag in '' yes
6730do
6731  # Use a header file that comes with gcc, so configuring glibc
6732  # with a fresh cross-compiler works.
6733  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6734  # <limits.h> exists even on freestanding compilers.
6735  # On the NeXT, cc -E runs the code through the compiler's parser,
6736  # not just through cpp. "Syntax error" is here to catch this case.
6737  cat >conftest.$ac_ext <<_ACEOF
6738/* confdefs.h.  */
6739_ACEOF
6740cat confdefs.h >>conftest.$ac_ext
6741cat >>conftest.$ac_ext <<_ACEOF
6742/* end confdefs.h.  */
6743#ifdef __STDC__
6744# include <limits.h>
6745#else
6746# include <assert.h>
6747#endif
6748                     Syntax error
6749_ACEOF
6750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6751  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6752  ac_status=$?
6753  grep -v '^ *+' conftest.er1 >conftest.err
6754  rm -f conftest.er1
6755  cat conftest.err >&5
6756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757  (exit $ac_status); } >/dev/null; then
6758  if test -s conftest.err; then
6759    ac_cpp_err=$ac_cxx_preproc_warn_flag
6760    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6761  else
6762    ac_cpp_err=
6763  fi
6764else
6765  ac_cpp_err=yes
6766fi
6767if test -z "$ac_cpp_err"; then
6768  :
6769else
6770  echo "$as_me: failed program was:" >&5
6771sed 's/^/| /' conftest.$ac_ext >&5
6772
6773  # Broken: fails on valid input.
6774continue
6775fi
6776rm -f conftest.err conftest.$ac_ext
6777
6778  # OK, works on sane cases.  Now check whether non-existent headers
6779  # can be detected and how.
6780  cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h.  */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h.  */
6786#include <ac_nonexistent.h>
6787_ACEOF
6788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6789  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6790  ac_status=$?
6791  grep -v '^ *+' conftest.er1 >conftest.err
6792  rm -f conftest.er1
6793  cat conftest.err >&5
6794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795  (exit $ac_status); } >/dev/null; then
6796  if test -s conftest.err; then
6797    ac_cpp_err=$ac_cxx_preproc_warn_flag
6798    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6799  else
6800    ac_cpp_err=
6801  fi
6802else
6803  ac_cpp_err=yes
6804fi
6805if test -z "$ac_cpp_err"; then
6806  # Broken: success on invalid input.
6807continue
6808else
6809  echo "$as_me: failed program was:" >&5
6810sed 's/^/| /' conftest.$ac_ext >&5
6811
6812  # Passes both tests.
6813ac_preproc_ok=:
6814break
6815fi
6816rm -f conftest.err conftest.$ac_ext
6817
6818done
6819# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6820rm -f conftest.err conftest.$ac_ext
6821if $ac_preproc_ok; then
6822  break
6823fi
6824
6825    done
6826    ac_cv_prog_CXXCPP=$CXXCPP
6827
6828fi
6829  CXXCPP=$ac_cv_prog_CXXCPP
6830else
6831  ac_cv_prog_CXXCPP=$CXXCPP
6832fi
6833echo "$as_me:$LINENO: result: $CXXCPP" >&5
6834echo "${ECHO_T}$CXXCPP" >&6
6835ac_preproc_ok=false
6836for ac_cxx_preproc_warn_flag in '' yes
6837do
6838  # Use a header file that comes with gcc, so configuring glibc
6839  # with a fresh cross-compiler works.
6840  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6841  # <limits.h> exists even on freestanding compilers.
6842  # On the NeXT, cc -E runs the code through the compiler's parser,
6843  # not just through cpp. "Syntax error" is here to catch this case.
6844  cat >conftest.$ac_ext <<_ACEOF
6845/* confdefs.h.  */
6846_ACEOF
6847cat confdefs.h >>conftest.$ac_ext
6848cat >>conftest.$ac_ext <<_ACEOF
6849/* end confdefs.h.  */
6850#ifdef __STDC__
6851# include <limits.h>
6852#else
6853# include <assert.h>
6854#endif
6855                     Syntax error
6856_ACEOF
6857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6858  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6859  ac_status=$?
6860  grep -v '^ *+' conftest.er1 >conftest.err
6861  rm -f conftest.er1
6862  cat conftest.err >&5
6863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864  (exit $ac_status); } >/dev/null; then
6865  if test -s conftest.err; then
6866    ac_cpp_err=$ac_cxx_preproc_warn_flag
6867    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6868  else
6869    ac_cpp_err=
6870  fi
6871else
6872  ac_cpp_err=yes
6873fi
6874if test -z "$ac_cpp_err"; then
6875  :
6876else
6877  echo "$as_me: failed program was:" >&5
6878sed 's/^/| /' conftest.$ac_ext >&5
6879
6880  # Broken: fails on valid input.
6881continue
6882fi
6883rm -f conftest.err conftest.$ac_ext
6884
6885  # OK, works on sane cases.  Now check whether non-existent headers
6886  # can be detected and how.
6887  cat >conftest.$ac_ext <<_ACEOF
6888/* confdefs.h.  */
6889_ACEOF
6890cat confdefs.h >>conftest.$ac_ext
6891cat >>conftest.$ac_ext <<_ACEOF
6892/* end confdefs.h.  */
6893#include <ac_nonexistent.h>
6894_ACEOF
6895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6896  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6897  ac_status=$?
6898  grep -v '^ *+' conftest.er1 >conftest.err
6899  rm -f conftest.er1
6900  cat conftest.err >&5
6901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902  (exit $ac_status); } >/dev/null; then
6903  if test -s conftest.err; then
6904    ac_cpp_err=$ac_cxx_preproc_warn_flag
6905    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6906  else
6907    ac_cpp_err=
6908  fi
6909else
6910  ac_cpp_err=yes
6911fi
6912if test -z "$ac_cpp_err"; then
6913  # Broken: success on invalid input.
6914continue
6915else
6916  echo "$as_me: failed program was:" >&5
6917sed 's/^/| /' conftest.$ac_ext >&5
6918
6919  # Passes both tests.
6920ac_preproc_ok=:
6921break
6922fi
6923rm -f conftest.err conftest.$ac_ext
6924
6925done
6926# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6927rm -f conftest.err conftest.$ac_ext
6928if $ac_preproc_ok; then
6929  :
6930else
6931  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6932See \`config.log' for more details." >&5
6933echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6934See \`config.log' for more details." >&2;}
6935   { (exit 1); exit 1; }; }
6936fi
6937
6938ac_ext=cc
6939ac_cpp='$CXXCPP $CPPFLAGS'
6940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6943
6944fi
6945
6946ac_ext=f
6947ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6948ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6950if test -n "$ac_tool_prefix"; then
6951  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6952  do
6953    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6954set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6955echo "$as_me:$LINENO: checking for $ac_word" >&5
6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6957if test "${ac_cv_prog_F77+set}" = set; then
6958  echo $ECHO_N "(cached) $ECHO_C" >&6
6959else
6960  if test -n "$F77"; then
6961  ac_cv_prog_F77="$F77" # Let the user override the test.
6962else
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966  IFS=$as_save_IFS
6967  test -z "$as_dir" && as_dir=.
6968  for ac_exec_ext in '' $ac_executable_extensions; do
6969  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972    break 2
6973  fi
6974done
6975done
6976
6977fi
6978fi
6979F77=$ac_cv_prog_F77
6980if test -n "$F77"; then
6981  echo "$as_me:$LINENO: result: $F77" >&5
6982echo "${ECHO_T}$F77" >&6
6983else
6984  echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6
6986fi
6987
6988    test -n "$F77" && break
6989  done
6990fi
6991if test -z "$F77"; then
6992  ac_ct_F77=$F77
6993  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6994do
6995  # Extract the first word of "$ac_prog", so it can be a program name with args.
6996set dummy $ac_prog; ac_word=$2
6997echo "$as_me:$LINENO: checking for $ac_word" >&5
6998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6999if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7000  echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002  if test -n "$ac_ct_F77"; then
7003  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7004else
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008  IFS=$as_save_IFS
7009  test -z "$as_dir" && as_dir=.
7010  for ac_exec_ext in '' $ac_executable_extensions; do
7011  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012    ac_cv_prog_ac_ct_F77="$ac_prog"
7013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014    break 2
7015  fi
7016done
7017done
7018
7019fi
7020fi
7021ac_ct_F77=$ac_cv_prog_ac_ct_F77
7022if test -n "$ac_ct_F77"; then
7023  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7024echo "${ECHO_T}$ac_ct_F77" >&6
7025else
7026  echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6
7028fi
7029
7030  test -n "$ac_ct_F77" && break
7031done
7032
7033  F77=$ac_ct_F77
7034fi
7035
7036
7037# Provide some information about the compiler.
7038echo "$as_me:7038:" \
7039     "checking for Fortran 77 compiler version" >&5
7040ac_compiler=`set X $ac_compile; echo $2`
7041{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7042  (eval $ac_compiler --version </dev/null >&5) 2>&5
7043  ac_status=$?
7044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045  (exit $ac_status); }
7046{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7047  (eval $ac_compiler -v </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); }
7056rm -f a.out
7057
7058# If we don't use `.F' as extension, the preprocessor is not run on the
7059# input file.  (Note that this only needs to work for GNU compilers.)
7060ac_save_ext=$ac_ext
7061ac_ext=F
7062echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7063echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7064if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7065  echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067  cat >conftest.$ac_ext <<_ACEOF
7068      program main
7069#ifndef __GNUC__
7070       choke me
7071#endif
7072
7073      end
7074_ACEOF
7075rm -f conftest.$ac_objext
7076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077  (eval $ac_compile) 2>conftest.er1
7078  ac_status=$?
7079  grep -v '^ *+' conftest.er1 >conftest.err
7080  rm -f conftest.er1
7081  cat conftest.err >&5
7082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083  (exit $ac_status); } &&
7084         { ac_try='test -z "$ac_f77_werror_flag"
7085                         || test ! -s conftest.err'
7086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087  (eval $ac_try) 2>&5
7088  ac_status=$?
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); }; } &&
7091         { ac_try='test -s conftest.$ac_objext'
7092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093  (eval $ac_try) 2>&5
7094  ac_status=$?
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); }; }; then
7097  ac_compiler_gnu=yes
7098else
7099  echo "$as_me: failed program was:" >&5
7100sed 's/^/| /' conftest.$ac_ext >&5
7101
7102ac_compiler_gnu=no
7103fi
7104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7106
7107fi
7108echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7109echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7110ac_ext=$ac_save_ext
7111ac_test_FFLAGS=${FFLAGS+set}
7112ac_save_FFLAGS=$FFLAGS
7113FFLAGS=
7114echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7115echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7116if test "${ac_cv_prog_f77_g+set}" = set; then
7117  echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119  FFLAGS=-g
7120cat >conftest.$ac_ext <<_ACEOF
7121      program main
7122
7123      end
7124_ACEOF
7125rm -f conftest.$ac_objext
7126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127  (eval $ac_compile) 2>conftest.er1
7128  ac_status=$?
7129  grep -v '^ *+' conftest.er1 >conftest.err
7130  rm -f conftest.er1
7131  cat conftest.err >&5
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); } &&
7134         { ac_try='test -z "$ac_f77_werror_flag"
7135                         || test ! -s conftest.err'
7136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137  (eval $ac_try) 2>&5
7138  ac_status=$?
7139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140  (exit $ac_status); }; } &&
7141         { ac_try='test -s conftest.$ac_objext'
7142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143  (eval $ac_try) 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); }; }; then
7147  ac_cv_prog_f77_g=yes
7148else
7149  echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152ac_cv_prog_f77_g=no
7153fi
7154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155
7156fi
7157echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7158echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7159if test "$ac_test_FFLAGS" = set; then
7160  FFLAGS=$ac_save_FFLAGS
7161elif test $ac_cv_prog_f77_g = yes; then
7162  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7163    FFLAGS="-g -O2"
7164  else
7165    FFLAGS="-g"
7166  fi
7167else
7168  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7169    FFLAGS="-O2"
7170  else
7171    FFLAGS=
7172  fi
7173fi
7174
7175G77=`test $ac_compiler_gnu = yes && echo yes`
7176ac_ext=c
7177ac_cpp='$CPP $CPPFLAGS'
7178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7180ac_compiler_gnu=$ac_cv_c_compiler_gnu
7181
7182
7183
7184# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7185
7186# find the maximum length of command line arguments
7187echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7188echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7189if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7190  echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192    i=0
7193  teststring="ABCD"
7194
7195  case $build_os in
7196  msdosdjgpp*)
7197    # On DJGPP, this test can blow up pretty badly due to problems in libc
7198    # (any single argument exceeding 2000 bytes causes a buffer overrun
7199    # during glob expansion).  Even if it were fixed, the result of this
7200    # check would be larger than it should be.
7201    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7202    ;;
7203
7204  gnu*)
7205    # Under GNU Hurd, this test is not required because there is
7206    # no limit to the length of command line arguments.
7207    # Libtool will interpret -1 as no limit whatsoever
7208    lt_cv_sys_max_cmd_len=-1;
7209    ;;
7210
7211  cygwin* | mingw*)
7212    # On Win9x/ME, this test blows up -- it succeeds, but takes
7213    # about 5 minutes as the teststring grows exponentially.
7214    # Worse, since 9x/ME are not pre-emptively multitasking,
7215    # you end up with a "frozen" computer, even though with patience
7216    # the test eventually succeeds (with a max line length of 256k).
7217    # Instead, let's just punt: use the minimum linelength reported by
7218    # all of the supported platforms: 8192 (on NT/2K/XP).
7219    lt_cv_sys_max_cmd_len=8192;
7220    ;;
7221
7222  amigaos*)
7223    # On AmigaOS with pdksh, this test takes hours, literally.
7224    # So we just punt and use a minimum line length of 8192.
7225    lt_cv_sys_max_cmd_len=8192;
7226    ;;
7227
7228  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7229    # This has been around since 386BSD, at least.  Likely further.
7230    if test -x /sbin/sysctl; then
7231      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7232    elif test -x /usr/sbin/sysctl; then
7233      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7234    else
7235      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7236    fi
7237    # And add a safety zone
7238    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7239    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7240    ;;
7241
7242  interix*)
7243    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7244    lt_cv_sys_max_cmd_len=196608
7245    ;;
7246
7247  osf*)
7248    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7249    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7250    # nice to cause kernel panics so lets avoid the loop below.
7251    # First set a reasonable default.
7252    lt_cv_sys_max_cmd_len=16384
7253    #
7254    if test -x /sbin/sysconfig; then
7255      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7256        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7257      esac
7258    fi
7259    ;;
7260  sco3.2v5*)
7261    lt_cv_sys_max_cmd_len=102400
7262    ;;
7263  sysv5* | sco5v6* | sysv4.2uw2*)
7264    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7265    if test -n "$kargmax"; then
7266      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7267    else
7268      lt_cv_sys_max_cmd_len=32768
7269    fi
7270    ;;
7271  *)
7272    # If test is not a shell built-in, we'll probably end up computing a
7273    # maximum length that is only half of the actual maximum length, but
7274    # we can't tell.
7275    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7276    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7277               = "XX$teststring") >/dev/null 2>&1 &&
7278            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7279            lt_cv_sys_max_cmd_len=$new_result &&
7280            test $i != 17 # 1/2 MB should be enough
7281    do
7282      i=`expr $i + 1`
7283      teststring=$teststring$teststring
7284    done
7285    teststring=
7286    # Add a significant safety factor because C++ compilers can tack on massive
7287    # amounts of additional arguments before passing them to the linker.
7288    # It appears as though 1/2 is a usable value.
7289    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7290    ;;
7291  esac
7292
7293fi
7294
7295if test -n $lt_cv_sys_max_cmd_len ; then
7296  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7297echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7298else
7299  echo "$as_me:$LINENO: result: none" >&5
7300echo "${ECHO_T}none" >&6
7301fi
7302
7303
7304
7305
7306# Check for command to grab the raw symbol name followed by C symbol from nm.
7307echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7308echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7309if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7310  echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312
7313# These are sane defaults that work on at least a few old systems.
7314# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7315
7316# Character class describing NM global symbol codes.
7317symcode='[BCDEGRST]'
7318
7319# Regexp to match symbols that can be accessed directly from C.
7320sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7321
7322# Transform an extracted symbol line into a proper C declaration
7323lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7324
7325# Transform an extracted symbol line into symbol name and symbol address
7326lt_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'"
7327
7328# Define system-specific variables.
7329case $host_os in
7330aix*)
7331  symcode='[BCDT]'
7332  ;;
7333cygwin* | mingw* | pw32*)
7334  symcode='[ABCDGISTW]'
7335  ;;
7336hpux*) # Its linker distinguishes data from code symbols
7337  if test "$host_cpu" = ia64; then
7338    symcode='[ABCDEGRST]'
7339  fi
7340  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7341  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'"
7342  ;;
7343linux*)
7344  if test "$host_cpu" = ia64; then
7345    symcode='[ABCDGIRSTW]'
7346    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7347    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'"
7348  fi
7349  ;;
7350irix* | nonstopux*)
7351  symcode='[BCDEGRST]'
7352  ;;
7353osf*)
7354  symcode='[BCDEGQRST]'
7355  ;;
7356solaris*)
7357  symcode='[BDRT]'
7358  ;;
7359sco3.2v5*)
7360  symcode='[DT]'
7361  ;;
7362sysv4.2uw2*)
7363  symcode='[DT]'
7364  ;;
7365sysv5* | sco5v6* | unixware* | OpenUNIX*)
7366  symcode='[ABDT]'
7367  ;;
7368sysv4)
7369  symcode='[DFNSTU]'
7370  ;;
7371esac
7372
7373# Handle CRLF in mingw tool chain
7374opt_cr=
7375case $build_os in
7376mingw*)
7377  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7378  ;;
7379esac
7380
7381# If we're using GNU nm, then use its standard symbol codes.
7382case `$NM -V 2>&1` in
7383*GNU* | *'with BFD'*)
7384  symcode='[ABCDGIRSTW]' ;;
7385esac
7386
7387# Try without a prefix undercore, then with it.
7388for ac_symprfx in "" "_"; do
7389
7390  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7391  symxfrm="\\1 $ac_symprfx\\2 \\2"
7392
7393  # Write the raw and C identifiers.
7394  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7395
7396  # Check to see that the pipe works correctly.
7397  pipe_works=no
7398
7399  rm -f conftest*
7400  cat > conftest.$ac_ext <<EOF
7401#ifdef __cplusplus
7402extern "C" {
7403#endif
7404char nm_test_var;
7405void nm_test_func(){}
7406#ifdef __cplusplus
7407}
7408#endif
7409int main(){nm_test_var='a';nm_test_func();return(0);}
7410EOF
7411
7412  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7413  (eval $ac_compile) 2>&5
7414  ac_status=$?
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); }; then
7417    # Now try to grab the symbols.
7418    nlist=conftest.nm
7419    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7420  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7421  ac_status=$?
7422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423  (exit $ac_status); } && test -s "$nlist"; then
7424      # Try sorting and uniquifying the output.
7425      if sort "$nlist" | uniq > "$nlist"T; then
7426        mv -f "$nlist"T "$nlist"
7427      else
7428        rm -f "$nlist"T
7429      fi
7430
7431      # Make sure that we snagged all the symbols we need.
7432      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7433        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7434          cat <<EOF > conftest.$ac_ext
7435#ifdef __cplusplus
7436extern "C" {
7437#endif
7438
7439EOF
7440          # Now generate the symbol file.
7441          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7442
7443          cat <<EOF >> conftest.$ac_ext
7444#if defined (__STDC__) && __STDC__
7445# define lt_ptr_t void *
7446#else
7447# define lt_ptr_t char *
7448# define const
7449#endif
7450
7451/* The mapping between symbol names and symbols. */
7452const struct {
7453  const char *name;
7454  lt_ptr_t address;
7455}
7456lt_preloaded_symbols[] =
7457{
7458EOF
7459          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7460          cat <<\EOF >> conftest.$ac_ext
7461  {0, (lt_ptr_t) 0}
7462};
7463
7464#ifdef __cplusplus
7465}
7466#endif
7467EOF
7468          # Now try linking the two files.
7469          mv conftest.$ac_objext conftstm.$ac_objext
7470          lt_save_LIBS="$LIBS"
7471          lt_save_CFLAGS="$CFLAGS"
7472          LIBS="conftstm.$ac_objext"
7473          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7474          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7475  (eval $ac_link) 2>&5
7476  ac_status=$?
7477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7479            pipe_works=yes
7480          fi
7481          LIBS="$lt_save_LIBS"
7482          CFLAGS="$lt_save_CFLAGS"
7483        else
7484          echo "cannot find nm_test_func in $nlist" >&5
7485        fi
7486      else
7487        echo "cannot find nm_test_var in $nlist" >&5
7488      fi
7489    else
7490      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7491    fi
7492  else
7493    echo "$progname: failed program was:" >&5
7494    cat conftest.$ac_ext >&5
7495  fi
7496  rm -f conftest* conftst*
7497
7498  # Do not use the global_symbol_pipe unless it works.
7499  if test "$pipe_works" = yes; then
7500    break
7501  else
7502    lt_cv_sys_global_symbol_pipe=
7503  fi
7504done
7505
7506fi
7507
7508if test -z "$lt_cv_sys_global_symbol_pipe"; then
7509  lt_cv_sys_global_symbol_to_cdecl=
7510fi
7511if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7512  echo "$as_me:$LINENO: result: failed" >&5
7513echo "${ECHO_T}failed" >&6
7514else
7515  echo "$as_me:$LINENO: result: ok" >&5
7516echo "${ECHO_T}ok" >&6
7517fi
7518
7519echo "$as_me:$LINENO: checking for objdir" >&5
7520echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7521if test "${lt_cv_objdir+set}" = set; then
7522  echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524  rm -f .libs 2>/dev/null
7525mkdir .libs 2>/dev/null
7526if test -d .libs; then
7527  lt_cv_objdir=.libs
7528else
7529  # MS-DOS does not allow filenames that begin with a dot.
7530  lt_cv_objdir=_libs
7531fi
7532rmdir .libs 2>/dev/null
7533fi
7534echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7535echo "${ECHO_T}$lt_cv_objdir" >&6
7536objdir=$lt_cv_objdir
7537
7538
7539
7540
7541
7542case $host_os in
7543aix3*)
7544  # AIX sometimes has problems with the GCC collect2 program.  For some
7545  # reason, if we set the COLLECT_NAMES environment variable, the problems
7546  # vanish in a puff of smoke.
7547  if test "X${COLLECT_NAMES+set}" != Xset; then
7548    COLLECT_NAMES=
7549    export COLLECT_NAMES
7550  fi
7551  ;;
7552esac
7553
7554# Sed substitution that helps us do robust quoting.  It backslashifies
7555# metacharacters that are still active within double-quoted strings.
7556Xsed='sed -e 1s/^X//'
7557sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7558
7559# Same as above, but do not quote variable references.
7560double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7561
7562# Sed substitution to delay expansion of an escaped shell variable in a
7563# double_quote_subst'ed string.
7564delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7565
7566# Sed substitution to avoid accidental globbing in evaled expressions
7567no_glob_subst='s/\*/\\\*/g'
7568
7569# Constants:
7570rm="rm -f"
7571
7572# Global variables:
7573default_ofile=libtool
7574can_build_shared=yes
7575
7576# All known linkers require a `.a' archive for static linking (except MSVC,
7577# which needs '.lib').
7578libext=a
7579ltmain="$ac_aux_dir/ltmain.sh"
7580ofile="$default_ofile"
7581with_gnu_ld="$lt_cv_prog_gnu_ld"
7582
7583if test -n "$ac_tool_prefix"; then
7584  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7585set dummy ${ac_tool_prefix}ar; ac_word=$2
7586echo "$as_me:$LINENO: checking for $ac_word" >&5
7587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7588if test "${ac_cv_prog_AR+set}" = set; then
7589  echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591  if test -n "$AR"; then
7592  ac_cv_prog_AR="$AR" # Let the user override the test.
7593else
7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597  IFS=$as_save_IFS
7598  test -z "$as_dir" && as_dir=.
7599  for ac_exec_ext in '' $ac_executable_extensions; do
7600  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601    ac_cv_prog_AR="${ac_tool_prefix}ar"
7602    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603    break 2
7604  fi
7605done
7606done
7607
7608fi
7609fi
7610AR=$ac_cv_prog_AR
7611if test -n "$AR"; then
7612  echo "$as_me:$LINENO: result: $AR" >&5
7613echo "${ECHO_T}$AR" >&6
7614else
7615  echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6
7617fi
7618
7619fi
7620if test -z "$ac_cv_prog_AR"; then
7621  ac_ct_AR=$AR
7622  # Extract the first word of "ar", so it can be a program name with args.
7623set dummy ar; ac_word=$2
7624echo "$as_me:$LINENO: checking for $ac_word" >&5
7625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7626if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7627  echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629  if test -n "$ac_ct_AR"; then
7630  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7631else
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635  IFS=$as_save_IFS
7636  test -z "$as_dir" && as_dir=.
7637  for ac_exec_ext in '' $ac_executable_extensions; do
7638  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639    ac_cv_prog_ac_ct_AR="ar"
7640    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641    break 2
7642  fi
7643done
7644done
7645
7646  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7647fi
7648fi
7649ac_ct_AR=$ac_cv_prog_ac_ct_AR
7650if test -n "$ac_ct_AR"; then
7651  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7652echo "${ECHO_T}$ac_ct_AR" >&6
7653else
7654  echo "$as_me:$LINENO: result: no" >&5
7655echo "${ECHO_T}no" >&6
7656fi
7657
7658  AR=$ac_ct_AR
7659else
7660  AR="$ac_cv_prog_AR"
7661fi
7662
7663if test -n "$ac_tool_prefix"; then
7664  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7665set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7666echo "$as_me:$LINENO: checking for $ac_word" >&5
7667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7668if test "${ac_cv_prog_RANLIB+set}" = set; then
7669  echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671  if test -n "$RANLIB"; then
7672  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7673else
7674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677  IFS=$as_save_IFS
7678  test -z "$as_dir" && as_dir=.
7679  for ac_exec_ext in '' $ac_executable_extensions; do
7680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683    break 2
7684  fi
7685done
7686done
7687
7688fi
7689fi
7690RANLIB=$ac_cv_prog_RANLIB
7691if test -n "$RANLIB"; then
7692  echo "$as_me:$LINENO: result: $RANLIB" >&5
7693echo "${ECHO_T}$RANLIB" >&6
7694else
7695  echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6
7697fi
7698
7699fi
7700if test -z "$ac_cv_prog_RANLIB"; then
7701  ac_ct_RANLIB=$RANLIB
7702  # Extract the first word of "ranlib", so it can be a program name with args.
7703set dummy ranlib; ac_word=$2
7704echo "$as_me:$LINENO: checking for $ac_word" >&5
7705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7706if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7707  echo $ECHO_N "(cached) $ECHO_C" >&6
7708else
7709  if test -n "$ac_ct_RANLIB"; then
7710  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7711else
7712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715  IFS=$as_save_IFS
7716  test -z "$as_dir" && as_dir=.
7717  for ac_exec_ext in '' $ac_executable_extensions; do
7718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719    ac_cv_prog_ac_ct_RANLIB="ranlib"
7720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721    break 2
7722  fi
7723done
7724done
7725
7726  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7727fi
7728fi
7729ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7730if test -n "$ac_ct_RANLIB"; then
7731  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7732echo "${ECHO_T}$ac_ct_RANLIB" >&6
7733else
7734  echo "$as_me:$LINENO: result: no" >&5
7735echo "${ECHO_T}no" >&6
7736fi
7737
7738  RANLIB=$ac_ct_RANLIB
7739else
7740  RANLIB="$ac_cv_prog_RANLIB"
7741fi
7742
7743if test -n "$ac_tool_prefix"; then
7744  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7745set dummy ${ac_tool_prefix}strip; ac_word=$2
7746echo "$as_me:$LINENO: checking for $ac_word" >&5
7747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7748if test "${ac_cv_prog_STRIP+set}" = set; then
7749  echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751  if test -n "$STRIP"; then
7752  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7753else
7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757  IFS=$as_save_IFS
7758  test -z "$as_dir" && as_dir=.
7759  for ac_exec_ext in '' $ac_executable_extensions; do
7760  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763    break 2
7764  fi
7765done
7766done
7767
7768fi
7769fi
7770STRIP=$ac_cv_prog_STRIP
7771if test -n "$STRIP"; then
7772  echo "$as_me:$LINENO: result: $STRIP" >&5
7773echo "${ECHO_T}$STRIP" >&6
7774else
7775  echo "$as_me:$LINENO: result: no" >&5
7776echo "${ECHO_T}no" >&6
7777fi
7778
7779fi
7780if test -z "$ac_cv_prog_STRIP"; then
7781  ac_ct_STRIP=$STRIP
7782  # Extract the first word of "strip", so it can be a program name with args.
7783set dummy strip; ac_word=$2
7784echo "$as_me:$LINENO: checking for $ac_word" >&5
7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7786if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7787  echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789  if test -n "$ac_ct_STRIP"; then
7790  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795  IFS=$as_save_IFS
7796  test -z "$as_dir" && as_dir=.
7797  for ac_exec_ext in '' $ac_executable_extensions; do
7798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799    ac_cv_prog_ac_ct_STRIP="strip"
7800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801    break 2
7802  fi
7803done
7804done
7805
7806  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7807fi
7808fi
7809ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7810if test -n "$ac_ct_STRIP"; then
7811  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7812echo "${ECHO_T}$ac_ct_STRIP" >&6
7813else
7814  echo "$as_me:$LINENO: result: no" >&5
7815echo "${ECHO_T}no" >&6
7816fi
7817
7818  STRIP=$ac_ct_STRIP
7819else
7820  STRIP="$ac_cv_prog_STRIP"
7821fi
7822
7823
7824old_CC="$CC"
7825old_CFLAGS="$CFLAGS"
7826
7827# Set sane defaults for various variables
7828test -z "$AR" && AR=ar
7829test -z "$AR_FLAGS" && AR_FLAGS=cru
7830test -z "$AS" && AS=as
7831test -z "$CC" && CC=cc
7832test -z "$LTCC" && LTCC=$CC
7833test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7834test -z "$DLLTOOL" && DLLTOOL=dlltool
7835test -z "$LD" && LD=ld
7836test -z "$LN_S" && LN_S="ln -s"
7837test -z "$MAGIC_CMD" && MAGIC_CMD=file
7838test -z "$NM" && NM=nm
7839test -z "$SED" && SED=sed
7840test -z "$OBJDUMP" && OBJDUMP=objdump
7841test -z "$RANLIB" && RANLIB=:
7842test -z "$STRIP" && STRIP=:
7843test -z "$ac_objext" && ac_objext=o
7844
7845# Determine commands to create old-style static archives.
7846old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7847old_postinstall_cmds='chmod 644 $oldlib'
7848old_postuninstall_cmds=
7849
7850if test -n "$RANLIB"; then
7851  case $host_os in
7852  openbsd*)
7853    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7854    ;;
7855  *)
7856    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7857    ;;
7858  esac
7859  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7860fi
7861
7862for cc_temp in $compiler""; do
7863  case $cc_temp in
7864    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7865    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7866    \-*) ;;
7867    *) break;;
7868  esac
7869done
7870cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7871
7872
7873# Only perform the check for file, if the check method requires it
7874case $deplibs_check_method in
7875file_magic*)
7876  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7877    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7878echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7879if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7880  echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882  case $MAGIC_CMD in
7883[\\/*] |  ?:[\\/]*)
7884  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7885  ;;
7886*)
7887  lt_save_MAGIC_CMD="$MAGIC_CMD"
7888  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7889  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7890  for ac_dir in $ac_dummy; do
7891    IFS="$lt_save_ifs"
7892    test -z "$ac_dir" && ac_dir=.
7893    if test -f $ac_dir/${ac_tool_prefix}file; then
7894      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7895      if test -n "$file_magic_test_file"; then
7896        case $deplibs_check_method in
7897        "file_magic "*)
7898          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7899          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7901            $EGREP "$file_magic_regex" > /dev/null; then
7902            :
7903          else
7904            cat <<EOF 1>&2
7905
7906*** Warning: the command libtool uses to detect shared libraries,
7907*** $file_magic_cmd, produces output that libtool cannot recognize.
7908*** The result is that libtool may fail to recognize shared libraries
7909*** as such.  This will affect the creation of libtool libraries that
7910*** depend on shared libraries, but programs linked with such libtool
7911*** libraries will work regardless of this problem.  Nevertheless, you
7912*** may want to report the problem to your system manager and/or to
7913*** bug-libtool@gnu.org
7914
7915EOF
7916          fi ;;
7917        esac
7918      fi
7919      break
7920    fi
7921  done
7922  IFS="$lt_save_ifs"
7923  MAGIC_CMD="$lt_save_MAGIC_CMD"
7924  ;;
7925esac
7926fi
7927
7928MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7929if test -n "$MAGIC_CMD"; then
7930  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7931echo "${ECHO_T}$MAGIC_CMD" >&6
7932else
7933  echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6
7935fi
7936
7937if test -z "$lt_cv_path_MAGIC_CMD"; then
7938  if test -n "$ac_tool_prefix"; then
7939    echo "$as_me:$LINENO: checking for file" >&5
7940echo $ECHO_N "checking for file... $ECHO_C" >&6
7941if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7942  echo $ECHO_N "(cached) $ECHO_C" >&6
7943else
7944  case $MAGIC_CMD in
7945[\\/*] |  ?:[\\/]*)
7946  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7947  ;;
7948*)
7949  lt_save_MAGIC_CMD="$MAGIC_CMD"
7950  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7951  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7952  for ac_dir in $ac_dummy; do
7953    IFS="$lt_save_ifs"
7954    test -z "$ac_dir" && ac_dir=.
7955    if test -f $ac_dir/file; then
7956      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7957      if test -n "$file_magic_test_file"; then
7958        case $deplibs_check_method in
7959        "file_magic "*)
7960          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7961          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7962          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7963            $EGREP "$file_magic_regex" > /dev/null; then
7964            :
7965          else
7966            cat <<EOF 1>&2
7967
7968*** Warning: the command libtool uses to detect shared libraries,
7969*** $file_magic_cmd, produces output that libtool cannot recognize.
7970*** The result is that libtool may fail to recognize shared libraries
7971*** as such.  This will affect the creation of libtool libraries that
7972*** depend on shared libraries, but programs linked with such libtool
7973*** libraries will work regardless of this problem.  Nevertheless, you
7974*** may want to report the problem to your system manager and/or to
7975*** bug-libtool@gnu.org
7976
7977EOF
7978          fi ;;
7979        esac
7980      fi
7981      break
7982    fi
7983  done
7984  IFS="$lt_save_ifs"
7985  MAGIC_CMD="$lt_save_MAGIC_CMD"
7986  ;;
7987esac
7988fi
7989
7990MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7991if test -n "$MAGIC_CMD"; then
7992  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7993echo "${ECHO_T}$MAGIC_CMD" >&6
7994else
7995  echo "$as_me:$LINENO: result: no" >&5
7996echo "${ECHO_T}no" >&6
7997fi
7998
7999  else
8000    MAGIC_CMD=:
8001  fi
8002fi
8003
8004  fi
8005  ;;
8006esac
8007
8008enable_dlopen=no
8009enable_win32_dll=no
8010
8011# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8012if test "${enable_libtool_lock+set}" = set; then
8013  enableval="$enable_libtool_lock"
8014
8015fi;
8016test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8017
8018
8019# Check whether --with-pic or --without-pic was given.
8020if test "${with_pic+set}" = set; then
8021  withval="$with_pic"
8022  pic_mode="$withval"
8023else
8024  pic_mode=default
8025fi;
8026test -z "$pic_mode" && pic_mode=default
8027
8028# Use C for the default configuration in the libtool script
8029tagname=
8030lt_save_CC="$CC"
8031ac_ext=c
8032ac_cpp='$CPP $CPPFLAGS'
8033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036
8037
8038# Source file extension for C test sources.
8039ac_ext=c
8040
8041# Object file extension for compiled C test sources.
8042objext=o
8043objext=$objext
8044
8045# Code to be used in simple compile tests
8046lt_simple_compile_test_code="int some_variable = 0;\n"
8047
8048# Code to be used in simple link tests
8049lt_simple_link_test_code='int main(){return(0);}\n'
8050
8051
8052# If no C compiler was specified, use CC.
8053LTCC=${LTCC-"$CC"}
8054
8055# If no C compiler flags were specified, use CFLAGS.
8056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8057
8058# Allow CC to be a program name with arguments.
8059compiler=$CC
8060
8061
8062# save warnings/boilerplate of simple test code
8063ac_outfile=conftest.$ac_objext
8064printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8065eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8066_lt_compiler_boilerplate=`cat conftest.err`
8067$rm conftest*
8068
8069ac_outfile=conftest.$ac_objext
8070printf "$lt_simple_link_test_code" >conftest.$ac_ext
8071eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8072_lt_linker_boilerplate=`cat conftest.err`
8073$rm conftest*
8074
8075
8076## CAVEAT EMPTOR:
8077## There is no encapsulation within the following macros, do not change
8078## the running order or otherwise move them around unless you know exactly
8079## what you are doing...
8080
8081lt_prog_compiler_no_builtin_flag=
8082
8083if test "$GCC" = yes; then
8084  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8085
8086
8087echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8088echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8089if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8090  echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092  lt_cv_prog_compiler_rtti_exceptions=no
8093  ac_outfile=conftest.$ac_objext
8094   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8095   lt_compiler_flag="-fno-rtti -fno-exceptions"
8096   # Insert the option either (1) after the last *FLAGS variable, or
8097   # (2) before a word containing "conftest.", or (3) at the end.
8098   # Note that $ac_compile itself does not contain backslashes and begins
8099   # with a dollar sign (not a hyphen), so the echo should work correctly.
8100   # The option is referenced via a variable to avoid confusing sed.
8101   lt_compile=`echo "$ac_compile" | $SED \
8102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8104   -e 's:$: $lt_compiler_flag:'`
8105   (eval echo "\"\$as_me:8105: $lt_compile\"" >&5)
8106   (eval "$lt_compile" 2>conftest.err)
8107   ac_status=$?
8108   cat conftest.err >&5
8109   echo "$as_me:8109: \$? = $ac_status" >&5
8110   if (exit $ac_status) && test -s "$ac_outfile"; then
8111     # The compiler can only warn and ignore the option if not recognized
8112     # So say no if there are warnings other than the usual output.
8113     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8114     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8116       lt_cv_prog_compiler_rtti_exceptions=yes
8117     fi
8118   fi
8119   $rm conftest*
8120
8121fi
8122echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8123echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8124
8125if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8126    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8127else
8128    :
8129fi
8130
8131fi
8132
8133lt_prog_compiler_wl=
8134lt_prog_compiler_pic=
8135lt_prog_compiler_static=
8136
8137echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8138echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8139
8140  if test "$GCC" = yes; then
8141    lt_prog_compiler_wl='-Wl,'
8142    lt_prog_compiler_static='-static'
8143
8144    case $host_os in
8145      aix*)
8146      # All AIX code is PIC.
8147      if test "$host_cpu" = ia64; then
8148        # AIX 5 now supports IA64 processor
8149        lt_prog_compiler_static='-Bstatic'
8150      fi
8151      ;;
8152
8153    amigaos*)
8154      # FIXME: we need at least 68020 code to build shared libraries, but
8155      # adding the `-m68020' flag to GCC prevents building anything better,
8156      # like `-m68040'.
8157      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8158      ;;
8159
8160    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8161      # PIC is the default for these OSes.
8162      ;;
8163
8164    mingw* | pw32* | os2*)
8165      # This hack is so that the source file can tell whether it is being
8166      # built for inclusion in a dll (and should export symbols for example).
8167      lt_prog_compiler_pic='-DDLL_EXPORT'
8168      ;;
8169
8170    darwin* | rhapsody*)
8171      # PIC is the default on this platform
8172      # Common symbols not allowed in MH_DYLIB files
8173      lt_prog_compiler_pic='-fno-common'
8174      ;;
8175
8176    interix3*)
8177      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8178      # Instead, we relocate shared libraries at runtime.
8179      ;;
8180
8181    msdosdjgpp*)
8182      # Just because we use GCC doesn't mean we suddenly get shared libraries
8183      # on systems that don't support them.
8184      lt_prog_compiler_can_build_shared=no
8185      enable_shared=no
8186      ;;
8187
8188    sysv4*MP*)
8189      if test -d /usr/nec; then
8190        lt_prog_compiler_pic=-Kconform_pic
8191      fi
8192      ;;
8193
8194    hpux*)
8195      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8196      # not for PA HP-UX.
8197      case $host_cpu in
8198      hppa*64*|ia64*)
8199        # +Z the default
8200        ;;
8201      *)
8202        lt_prog_compiler_pic='-fPIC'
8203        ;;
8204      esac
8205      ;;
8206
8207    *)
8208      lt_prog_compiler_pic='-fPIC'
8209      ;;
8210    esac
8211  else
8212    # PORTME Check for flag to pass linker flags through the system compiler.
8213    case $host_os in
8214    aix*)
8215      lt_prog_compiler_wl='-Wl,'
8216      if test "$host_cpu" = ia64; then
8217        # AIX 5 now supports IA64 processor
8218        lt_prog_compiler_static='-Bstatic'
8219      else
8220        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8221      fi
8222      ;;
8223      darwin*)
8224        # PIC is the default on this platform
8225        # Common symbols not allowed in MH_DYLIB files
8226       case $cc_basename in
8227         xlc*)
8228         lt_prog_compiler_pic='-qnocommon'
8229         lt_prog_compiler_wl='-Wl,'
8230         ;;
8231       esac
8232       ;;
8233
8234    mingw* | pw32* | os2*)
8235      # This hack is so that the source file can tell whether it is being
8236      # built for inclusion in a dll (and should export symbols for example).
8237      lt_prog_compiler_pic='-DDLL_EXPORT'
8238      ;;
8239
8240    hpux9* | hpux10* | hpux11*)
8241      lt_prog_compiler_wl='-Wl,'
8242      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8243      # not for PA HP-UX.
8244      case $host_cpu in
8245      hppa*64*|ia64*)
8246        # +Z the default
8247        ;;
8248      *)
8249        lt_prog_compiler_pic='+Z'
8250        ;;
8251      esac
8252      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8253      lt_prog_compiler_static='${wl}-a ${wl}archive'
8254      ;;
8255
8256    irix5* | irix6* | nonstopux*)
8257      lt_prog_compiler_wl='-Wl,'
8258      # PIC (with -KPIC) is the default.
8259      lt_prog_compiler_static='-non_shared'
8260      ;;
8261
8262    newsos6)
8263      lt_prog_compiler_pic='-KPIC'
8264      lt_prog_compiler_static='-Bstatic'
8265      ;;
8266
8267    linux*)
8268      case $cc_basename in
8269      icc* | ecc*)
8270        lt_prog_compiler_wl='-Wl,'
8271        lt_prog_compiler_pic='-KPIC'
8272        lt_prog_compiler_static='-static'
8273        ;;
8274      pgcc* | pgf77* | pgf90* | pgf95*)
8275        # Portland Group compilers (*not* the Pentium gcc compiler,
8276        # which looks to be a dead project)
8277        lt_prog_compiler_wl='-Wl,'
8278        lt_prog_compiler_pic='-fpic'
8279        lt_prog_compiler_static='-Bstatic'
8280        ;;
8281      ccc*)
8282        lt_prog_compiler_wl='-Wl,'
8283        # All Alpha code is PIC.
8284        lt_prog_compiler_static='-non_shared'
8285        ;;
8286      esac
8287      ;;
8288
8289    osf3* | osf4* | osf5*)
8290      lt_prog_compiler_wl='-Wl,'
8291      # All OSF/1 code is PIC.
8292      lt_prog_compiler_static='-non_shared'
8293      ;;
8294
8295    solaris*)
8296      lt_prog_compiler_pic='-KPIC'
8297      lt_prog_compiler_static='-Bstatic'
8298      case $cc_basename in
8299      f77* | f90* | f95*)
8300        lt_prog_compiler_wl='-Qoption ld ';;
8301      *)
8302        lt_prog_compiler_wl='-Wl,';;
8303      esac
8304      ;;
8305
8306    sunos4*)
8307      lt_prog_compiler_wl='-Qoption ld '
8308      lt_prog_compiler_pic='-PIC'
8309      lt_prog_compiler_static='-Bstatic'
8310      ;;
8311
8312    sysv4 | sysv4.2uw2* | sysv4.3*)
8313      lt_prog_compiler_wl='-Wl,'
8314      lt_prog_compiler_pic='-KPIC'
8315      lt_prog_compiler_static='-Bstatic'
8316      ;;
8317
8318    sysv4*MP*)
8319      if test -d /usr/nec ;then
8320        lt_prog_compiler_pic='-Kconform_pic'
8321        lt_prog_compiler_static='-Bstatic'
8322      fi
8323      ;;
8324
8325    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8326      lt_prog_compiler_wl='-Wl,'
8327      lt_prog_compiler_pic='-KPIC'
8328      lt_prog_compiler_static='-Bstatic'
8329      ;;
8330
8331    unicos*)
8332      lt_prog_compiler_wl='-Wl,'
8333      lt_prog_compiler_can_build_shared=no
8334      ;;
8335
8336    uts4*)
8337      lt_prog_compiler_pic='-pic'
8338      lt_prog_compiler_static='-Bstatic'
8339      ;;
8340
8341    *)
8342      lt_prog_compiler_can_build_shared=no
8343      ;;
8344    esac
8345  fi
8346
8347echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8348echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8349
8350#
8351# Check to make sure the PIC flag actually works.
8352#
8353if test -n "$lt_prog_compiler_pic"; then
8354
8355echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8356echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8357if test "${lt_prog_compiler_pic_works+set}" = set; then
8358  echo $ECHO_N "(cached) $ECHO_C" >&6
8359else
8360  lt_prog_compiler_pic_works=no
8361  ac_outfile=conftest.$ac_objext
8362   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8363   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8364   # Insert the option either (1) after the last *FLAGS variable, or
8365   # (2) before a word containing "conftest.", or (3) at the end.
8366   # Note that $ac_compile itself does not contain backslashes and begins
8367   # with a dollar sign (not a hyphen), so the echo should work correctly.
8368   # The option is referenced via a variable to avoid confusing sed.
8369   lt_compile=`echo "$ac_compile" | $SED \
8370   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8371   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8372   -e 's:$: $lt_compiler_flag:'`
8373   (eval echo "\"\$as_me:8373: $lt_compile\"" >&5)
8374   (eval "$lt_compile" 2>conftest.err)
8375   ac_status=$?
8376   cat conftest.err >&5
8377   echo "$as_me:8377: \$? = $ac_status" >&5
8378   if (exit $ac_status) && test -s "$ac_outfile"; then
8379     # The compiler can only warn and ignore the option if not recognized
8380     # So say no if there are warnings other than the usual output.
8381     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8382     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8383     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8384       lt_prog_compiler_pic_works=yes
8385     fi
8386   fi
8387   $rm conftest*
8388
8389fi
8390echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8391echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8392
8393if test x"$lt_prog_compiler_pic_works" = xyes; then
8394    case $lt_prog_compiler_pic in
8395     "" | " "*) ;;
8396     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8397     esac
8398else
8399    lt_prog_compiler_pic=
8400     lt_prog_compiler_can_build_shared=no
8401fi
8402
8403fi
8404case $host_os in
8405  # For platforms which do not support PIC, -DPIC is meaningless:
8406  *djgpp*)
8407    lt_prog_compiler_pic=
8408    ;;
8409  *)
8410    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8411    ;;
8412esac
8413
8414#
8415# Check to make sure the static flag actually works.
8416#
8417wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8418echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8419echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8420if test "${lt_prog_compiler_static_works+set}" = set; then
8421  echo $ECHO_N "(cached) $ECHO_C" >&6
8422else
8423  lt_prog_compiler_static_works=no
8424   save_LDFLAGS="$LDFLAGS"
8425   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8426   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8427   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8428     # The linker can only warn and ignore the option if not recognized
8429     # So say no if there are warnings
8430     if test -s conftest.err; then
8431       # Append any errors to the config.log.
8432       cat conftest.err 1>&5
8433       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8434       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8435       if diff conftest.exp conftest.er2 >/dev/null; then
8436         lt_prog_compiler_static_works=yes
8437       fi
8438     else
8439       lt_prog_compiler_static_works=yes
8440     fi
8441   fi
8442   $rm conftest*
8443   LDFLAGS="$save_LDFLAGS"
8444
8445fi
8446echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8447echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8448
8449if test x"$lt_prog_compiler_static_works" = xyes; then
8450    :
8451else
8452    lt_prog_compiler_static=
8453fi
8454
8455
8456echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8457echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8458if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8459  echo $ECHO_N "(cached) $ECHO_C" >&6
8460else
8461  lt_cv_prog_compiler_c_o=no
8462   $rm -r conftest 2>/dev/null
8463   mkdir conftest
8464   cd conftest
8465   mkdir out
8466   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8467
8468   lt_compiler_flag="-o out/conftest2.$ac_objext"
8469   # Insert the option either (1) after the last *FLAGS variable, or
8470   # (2) before a word containing "conftest.", or (3) at the end.
8471   # Note that $ac_compile itself does not contain backslashes and begins
8472   # with a dollar sign (not a hyphen), so the echo should work correctly.
8473   lt_compile=`echo "$ac_compile" | $SED \
8474   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8475   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8476   -e 's:$: $lt_compiler_flag:'`
8477   (eval echo "\"\$as_me:8477: $lt_compile\"" >&5)
8478   (eval "$lt_compile" 2>out/conftest.err)
8479   ac_status=$?
8480   cat out/conftest.err >&5
8481   echo "$as_me:8481: \$? = $ac_status" >&5
8482   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8483   then
8484     # The compiler can only warn and ignore the option if not recognized
8485     # So say no if there are warnings
8486     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8487     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8488     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8489       lt_cv_prog_compiler_c_o=yes
8490     fi
8491   fi
8492   chmod u+w . 2>&5
8493   $rm conftest*
8494   # SGI C++ compiler will create directory out/ii_files/ for
8495   # template instantiation
8496   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8497   $rm out/* && rmdir out
8498   cd ..
8499   rmdir conftest
8500   $rm conftest*
8501
8502fi
8503echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8504echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8505
8506
8507hard_links="nottested"
8508if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8509  # do not overwrite the value of need_locks provided by the user
8510  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8511echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8512  hard_links=yes
8513  $rm conftest*
8514  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8515  touch conftest.a
8516  ln conftest.a conftest.b 2>&5 || hard_links=no
8517  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8518  echo "$as_me:$LINENO: result: $hard_links" >&5
8519echo "${ECHO_T}$hard_links" >&6
8520  if test "$hard_links" = no; then
8521    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8522echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8523    need_locks=warn
8524  fi
8525else
8526  need_locks=no
8527fi
8528
8529echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8530echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8531
8532  runpath_var=
8533  allow_undefined_flag=
8534  enable_shared_with_static_runtimes=no
8535  archive_cmds=
8536  archive_expsym_cmds=
8537  old_archive_From_new_cmds=
8538  old_archive_from_expsyms_cmds=
8539  export_dynamic_flag_spec=
8540  whole_archive_flag_spec=
8541  thread_safe_flag_spec=
8542  hardcode_libdir_flag_spec=
8543  hardcode_libdir_flag_spec_ld=
8544  hardcode_libdir_separator=
8545  hardcode_direct=no
8546  hardcode_minus_L=no
8547  hardcode_shlibpath_var=unsupported
8548  link_all_deplibs=unknown
8549  hardcode_automatic=no
8550  module_cmds=
8551  module_expsym_cmds=
8552  always_export_symbols=no
8553  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8554  # include_expsyms should be a list of space-separated symbols to be *always*
8555  # included in the symbol list
8556  include_expsyms=
8557  # exclude_expsyms can be an extended regexp of symbols to exclude
8558  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8559  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8560  # as well as any symbol that contains `d'.
8561  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8562  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8563  # platforms (ab)use it in PIC code, but their linkers get confused if
8564  # the symbol is explicitly referenced.  Since portable code cannot
8565  # rely on this symbol name, it's probably fine to never include it in
8566  # preloaded symbol tables.
8567  extract_expsyms_cmds=
8568  # Just being paranoid about ensuring that cc_basename is set.
8569  for cc_temp in $compiler""; do
8570  case $cc_temp in
8571    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8572    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8573    \-*) ;;
8574    *) break;;
8575  esac
8576done
8577cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8578
8579  case $host_os in
8580  cygwin* | mingw* | pw32*)
8581    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8582    # When not using gcc, we currently assume that we are using
8583    # Microsoft Visual C++.
8584    if test "$GCC" != yes; then
8585      with_gnu_ld=no
8586    fi
8587    ;;
8588  interix*)
8589    # we just hope/assume this is gcc and not c89 (= MSVC++)
8590    with_gnu_ld=yes
8591    ;;
8592  openbsd*)
8593    with_gnu_ld=no
8594    ;;
8595  esac
8596
8597  ld_shlibs=yes
8598  if test "$with_gnu_ld" = yes; then
8599    # If archive_cmds runs LD, not CC, wlarc should be empty
8600    wlarc='${wl}'
8601
8602    # Set some defaults for GNU ld with shared library support. These
8603    # are reset later if shared libraries are not supported. Putting them
8604    # here allows them to be overridden if necessary.
8605    runpath_var=LD_RUN_PATH
8606    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8607    export_dynamic_flag_spec='${wl}--export-dynamic'
8608    # ancient GNU ld didn't support --whole-archive et. al.
8609    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8610        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8611      else
8612        whole_archive_flag_spec=
8613    fi
8614    supports_anon_versioning=no
8615    case `$LD -v 2>/dev/null` in
8616      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8617      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8618      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8619      *\ 2.11.*) ;; # other 2.11 versions
8620      *) supports_anon_versioning=yes ;;
8621    esac
8622
8623    # See if GNU ld supports shared libraries.
8624    case $host_os in
8625    aix3* | aix4* | aix5*)
8626      # On AIX/PPC, the GNU linker is very broken
8627      if test "$host_cpu" != ia64; then
8628        ld_shlibs=no
8629        cat <<EOF 1>&2
8630
8631*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8632*** to be unable to reliably create shared libraries on AIX.
8633*** Therefore, libtool is disabling shared libraries support.  If you
8634*** really care for shared libraries, you may want to modify your PATH
8635*** so that a non-GNU linker is found, and then restart.
8636
8637EOF
8638      fi
8639      ;;
8640
8641    amigaos*)
8642      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)'
8643      hardcode_libdir_flag_spec='-L$libdir'
8644      hardcode_minus_L=yes
8645
8646      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8647      # that the semantics of dynamic libraries on AmigaOS, at least up
8648      # to version 4, is to share data among multiple programs linked
8649      # with the same dynamic library.  Since this doesn't match the
8650      # behavior of shared libraries on other platforms, we can't use
8651      # them.
8652      ld_shlibs=no
8653      ;;
8654
8655    beos*)
8656      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8657        allow_undefined_flag=unsupported
8658        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8659        # support --undefined.  This deserves some investigation.  FIXME
8660        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661      else
8662        ld_shlibs=no
8663      fi
8664      ;;
8665
8666    cygwin* | mingw* | pw32*)
8667      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8668      # as there is no search path for DLLs.
8669      hardcode_libdir_flag_spec='-L$libdir'
8670      allow_undefined_flag=unsupported
8671      always_export_symbols=no
8672      enable_shared_with_static_runtimes=yes
8673      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8674
8675      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8676        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8677        # If the export-symbols file already is a .def file (1st line
8678        # is EXPORTS), use it as is; otherwise, prepend...
8679        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8680          cp $export_symbols $output_objdir/$soname.def;
8681        else
8682          echo EXPORTS > $output_objdir/$soname.def;
8683          cat $export_symbols >> $output_objdir/$soname.def;
8684        fi~
8685        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8686      else
8687        ld_shlibs=no
8688      fi
8689      ;;
8690
8691    interix3*)
8692      hardcode_direct=no
8693      hardcode_shlibpath_var=no
8694      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8695      export_dynamic_flag_spec='${wl}-E'
8696      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8697      # Instead, shared libraries are loaded at an image base (0x10000000 by
8698      # default) and relocated if they conflict, which is a slow very memory
8699      # consuming and fragmenting process.  To avoid this, we pick a random,
8700      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8701      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8702      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8703      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'
8704      ;;
8705
8706    linux*)
8707      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8708        tmp_addflag=
8709        case $cc_basename,$host_cpu in
8710        pgcc*)                          # Portland Group C compiler
8711          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'
8712          tmp_addflag=' $pic_flag'
8713          ;;
8714        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8715          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'
8716          tmp_addflag=' $pic_flag -Mnomain' ;;
8717        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8718          tmp_addflag=' -i_dynamic' ;;
8719        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8720          tmp_addflag=' -i_dynamic -nofor_main' ;;
8721        ifc* | ifort*)                  # Intel Fortran compiler
8722          tmp_addflag=' -nofor_main' ;;
8723        esac
8724        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725
8726        if test $supports_anon_versioning = yes; then
8727          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8728  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8729  $echo "local: *; };" >> $output_objdir/$libname.ver~
8730          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8731        fi
8732      else
8733        ld_shlibs=no
8734      fi
8735      ;;
8736
8737    netbsd*)
8738      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8739        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8740        wlarc=
8741      else
8742        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744      fi
8745      ;;
8746
8747    solaris*)
8748      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8749        ld_shlibs=no
8750        cat <<EOF 1>&2
8751
8752*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8753*** create shared libraries on Solaris systems.  Therefore, libtool
8754*** is disabling shared libraries support.  We urge you to upgrade GNU
8755*** binutils to release 2.9.1 or newer.  Another option is to modify
8756*** your PATH or compiler configuration so that the native linker is
8757*** used, and then restart.
8758
8759EOF
8760      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8761        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8763      else
8764        ld_shlibs=no
8765      fi
8766      ;;
8767
8768    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8769      case `$LD -v 2>&1` in
8770        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8771        ld_shlibs=no
8772        cat <<_LT_EOF 1>&2
8773
8774*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8775*** reliably create shared libraries on SCO systems.  Therefore, libtool
8776*** is disabling shared libraries support.  We urge you to upgrade GNU
8777*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8778*** your PATH or compiler configuration so that the native linker is
8779*** used, and then restart.
8780
8781_LT_EOF
8782        ;;
8783        *)
8784          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8785            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8786            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8787            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8788          else
8789            ld_shlibs=no
8790          fi
8791        ;;
8792      esac
8793      ;;
8794
8795    sunos4*)
8796      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8797      wlarc=
8798      hardcode_direct=yes
8799      hardcode_shlibpath_var=no
8800      ;;
8801
8802    *)
8803      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8804        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8806      else
8807        ld_shlibs=no
8808      fi
8809      ;;
8810    esac
8811
8812    if test "$ld_shlibs" = no; then
8813      runpath_var=
8814      hardcode_libdir_flag_spec=
8815      export_dynamic_flag_spec=
8816      whole_archive_flag_spec=
8817    fi
8818  else
8819    # PORTME fill in a description of your system's linker (not GNU ld)
8820    case $host_os in
8821    aix3*)
8822      allow_undefined_flag=unsupported
8823      always_export_symbols=yes
8824      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'
8825      # Note: this linker hardcodes the directories in LIBPATH if there
8826      # are no directories specified by -L.
8827      hardcode_minus_L=yes
8828      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8829        # Neither direct hardcoding nor static linking is supported with a
8830        # broken collect2.
8831        hardcode_direct=unsupported
8832      fi
8833      ;;
8834
8835    aix4* | aix5*)
8836      if test "$host_cpu" = ia64; then
8837        # On IA64, the linker does run time linking by default, so we don't
8838        # have to do anything special.
8839        aix_use_runtimelinking=no
8840        exp_sym_flag='-Bexport'
8841        no_entry_flag=""
8842      else
8843        # If we're using GNU nm, then we don't want the "-C" option.
8844        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8845        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8846          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'
8847        else
8848          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'
8849        fi
8850        aix_use_runtimelinking=no
8851
8852        # Test if we are trying to use run time linking or normal
8853        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8854        # need to do runtime linking.
8855        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8856          for ld_flag in $LDFLAGS; do
8857          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8858            aix_use_runtimelinking=yes
8859            break
8860          fi
8861          done
8862          ;;
8863        esac
8864
8865        exp_sym_flag='-bexport'
8866        no_entry_flag='-bnoentry'
8867      fi
8868
8869      # When large executables or shared objects are built, AIX ld can
8870      # have problems creating the table of contents.  If linking a library
8871      # or program results in "error TOC overflow" add -mminimal-toc to
8872      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8873      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8874
8875      archive_cmds=''
8876      hardcode_direct=yes
8877      hardcode_libdir_separator=':'
8878      link_all_deplibs=yes
8879
8880      if test "$GCC" = yes; then
8881        case $host_os in aix4.[012]|aix4.[012].*)
8882        # We only want to do this on AIX 4.2 and lower, the check
8883        # below for broken collect2 doesn't work under 4.3+
8884          collect2name=`${CC} -print-prog-name=collect2`
8885          if test -f "$collect2name" && \
8886           strings "$collect2name" | grep resolve_lib_name >/dev/null
8887          then
8888          # We have reworked collect2
8889          hardcode_direct=yes
8890          else
8891          # We have old collect2
8892          hardcode_direct=unsupported
8893          # It fails to find uninstalled libraries when the uninstalled
8894          # path is not listed in the libpath.  Setting hardcode_minus_L
8895          # to unsupported forces relinking
8896          hardcode_minus_L=yes
8897          hardcode_libdir_flag_spec='-L$libdir'
8898          hardcode_libdir_separator=
8899          fi
8900          ;;
8901        esac
8902        shared_flag='-shared'
8903        if test "$aix_use_runtimelinking" = yes; then
8904          shared_flag="$shared_flag "'${wl}-G'
8905        fi
8906      else
8907        # not using gcc
8908        if test "$host_cpu" = ia64; then
8909        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8910        # chokes on -Wl,-G. The following line is correct:
8911          shared_flag='-G'
8912        else
8913          if test "$aix_use_runtimelinking" = yes; then
8914            shared_flag='${wl}-G'
8915          else
8916            shared_flag='${wl}-bM:SRE'
8917          fi
8918        fi
8919      fi
8920
8921      # It seems that -bexpall does not export symbols beginning with
8922      # underscore (_), so it is better to generate a list of symbols to export.
8923      always_export_symbols=yes
8924      if test "$aix_use_runtimelinking" = yes; then
8925        # Warning - without using the other runtime loading flags (-brtl),
8926        # -berok will link without error, but may produce a broken library.
8927        allow_undefined_flag='-berok'
8928       # Determine the default libpath from the value encoded in an empty executable.
8929       cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h.  */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h.  */
8935
8936int
8937main ()
8938{
8939
8940  ;
8941  return 0;
8942}
8943_ACEOF
8944rm -f conftest.$ac_objext conftest$ac_exeext
8945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946  (eval $ac_link) 2>conftest.er1
8947  ac_status=$?
8948  grep -v '^ *+' conftest.er1 >conftest.err
8949  rm -f conftest.er1
8950  cat conftest.err >&5
8951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952  (exit $ac_status); } &&
8953         { ac_try='test -z "$ac_c_werror_flag"
8954                         || test ! -s conftest.err'
8955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956  (eval $ac_try) 2>&5
8957  ac_status=$?
8958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959  (exit $ac_status); }; } &&
8960         { ac_try='test -s conftest$ac_exeext'
8961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962  (eval $ac_try) 2>&5
8963  ac_status=$?
8964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965  (exit $ac_status); }; }; then
8966
8967aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8968}'`
8969# Check for a 64-bit object if we didn't find anything.
8970if 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; }
8971}'`; fi
8972else
8973  echo "$as_me: failed program was:" >&5
8974sed 's/^/| /' conftest.$ac_ext >&5
8975
8976fi
8977rm -f conftest.err conftest.$ac_objext \
8978      conftest$ac_exeext conftest.$ac_ext
8979if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8980
8981       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8982        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"
8983       else
8984        if test "$host_cpu" = ia64; then
8985          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8986          allow_undefined_flag="-z nodefs"
8987          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"
8988        else
8989         # Determine the default libpath from the value encoded in an empty executable.
8990         cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h.  */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h.  */
8996
8997int
8998main ()
8999{
9000
9001  ;
9002  return 0;
9003}
9004_ACEOF
9005rm -f conftest.$ac_objext conftest$ac_exeext
9006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007  (eval $ac_link) 2>conftest.er1
9008  ac_status=$?
9009  grep -v '^ *+' conftest.er1 >conftest.err
9010  rm -f conftest.er1
9011  cat conftest.err >&5
9012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013  (exit $ac_status); } &&
9014         { ac_try='test -z "$ac_c_werror_flag"
9015                         || test ! -s conftest.err'
9016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017  (eval $ac_try) 2>&5
9018  ac_status=$?
9019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020  (exit $ac_status); }; } &&
9021         { ac_try='test -s conftest$ac_exeext'
9022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023  (eval $ac_try) 2>&5
9024  ac_status=$?
9025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026  (exit $ac_status); }; }; then
9027
9028aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9029}'`
9030# Check for a 64-bit object if we didn't find anything.
9031if 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; }
9032}'`; fi
9033else
9034  echo "$as_me: failed program was:" >&5
9035sed 's/^/| /' conftest.$ac_ext >&5
9036
9037fi
9038rm -f conftest.err conftest.$ac_objext \
9039      conftest$ac_exeext conftest.$ac_ext
9040if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9041
9042         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9043          # Warning - without using the other run time loading flags,
9044          # -berok will link without error, but may produce a broken library.
9045          no_undefined_flag=' ${wl}-bernotok'
9046          allow_undefined_flag=' ${wl}-berok'
9047          # Exported symbols can be pulled into shared objects from archives
9048          whole_archive_flag_spec='$convenience'
9049          archive_cmds_need_lc=yes
9050          # This is similar to how AIX traditionally builds its shared libraries.
9051          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'
9052        fi
9053      fi
9054      ;;
9055
9056    amigaos*)
9057      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)'
9058      hardcode_libdir_flag_spec='-L$libdir'
9059      hardcode_minus_L=yes
9060      # see comment about different semantics on the GNU ld section
9061      ld_shlibs=no
9062      ;;
9063
9064    bsdi[45]*)
9065      export_dynamic_flag_spec=-rdynamic
9066      ;;
9067
9068    cygwin* | mingw* | pw32*)
9069      # When not using gcc, we currently assume that we are using
9070      # Microsoft Visual C++.
9071      # hardcode_libdir_flag_spec is actually meaningless, as there is
9072      # no search path for DLLs.
9073      hardcode_libdir_flag_spec=' '
9074      allow_undefined_flag=unsupported
9075      # Tell ltmain to make .lib files, not .a files.
9076      libext=lib
9077      # Tell ltmain to make .dll files, not .so files.
9078      shrext_cmds=".dll"
9079      # FIXME: Setting linknames here is a bad hack.
9080      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9081      # The linker will automatically build a .lib file if we build a DLL.
9082      old_archive_From_new_cmds='true'
9083      # FIXME: Should let the user specify the lib program.
9084      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9085      fix_srcfile_path='`cygpath -w "$srcfile"`'
9086      enable_shared_with_static_runtimes=yes
9087      ;;
9088
9089    darwin* | rhapsody*)
9090      case $host_os in
9091        rhapsody* | darwin1.[012])
9092         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9093         ;;
9094       *) # Darwin 1.3 on
9095         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9096           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9097         else
9098           case ${MACOSX_DEPLOYMENT_TARGET} in
9099             10.[012])
9100               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9101               ;;
9102             10.*)
9103               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9104               ;;
9105           esac
9106         fi
9107         ;;
9108      esac
9109      archive_cmds_need_lc=no
9110      hardcode_direct=no
9111      hardcode_automatic=yes
9112      hardcode_shlibpath_var=unsupported
9113      whole_archive_flag_spec=''
9114      link_all_deplibs=yes
9115    if test "$GCC" = yes ; then
9116        output_verbose_link_cmd='echo'
9117        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9118      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9119      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9120      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}'
9121      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}'
9122    else
9123      case $cc_basename in
9124        xlc*)
9125         output_verbose_link_cmd='echo'
9126         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9127         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9128          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9129         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}'
9130          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}'
9131          ;;
9132       *)
9133         ld_shlibs=no
9134          ;;
9135      esac
9136    fi
9137      ;;
9138
9139    dgux*)
9140      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9141      hardcode_libdir_flag_spec='-L$libdir'
9142      hardcode_shlibpath_var=no
9143      ;;
9144
9145    freebsd1*)
9146      ld_shlibs=no
9147      ;;
9148
9149    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9150    # support.  Future versions do this automatically, but an explicit c++rt0.o
9151    # does not break anything, and helps significantly (at the cost of a little
9152    # extra space).
9153    freebsd2.2*)
9154      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9155      hardcode_libdir_flag_spec='-R$libdir'
9156      hardcode_direct=yes
9157      hardcode_shlibpath_var=no
9158      ;;
9159
9160    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9161    freebsd2*)
9162      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9163      hardcode_direct=yes
9164      hardcode_minus_L=yes
9165      hardcode_shlibpath_var=no
9166      ;;
9167
9168    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9169    freebsd* | kfreebsd*-gnu | dragonfly*)
9170      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9171      hardcode_libdir_flag_spec='-R$libdir'
9172      hardcode_direct=yes
9173      hardcode_shlibpath_var=no
9174      ;;
9175
9176    hpux9*)
9177      if test "$GCC" = yes; then
9178        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'
9179      else
9180        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'
9181      fi
9182      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9183      hardcode_libdir_separator=:
9184      hardcode_direct=yes
9185
9186      # hardcode_minus_L: Not really in the search PATH,
9187      # but as the default location of the library.
9188      hardcode_minus_L=yes
9189      export_dynamic_flag_spec='${wl}-E'
9190      ;;
9191
9192    hpux10*)
9193      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9194        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9195      else
9196        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9197      fi
9198      if test "$with_gnu_ld" = no; then
9199        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9200        hardcode_libdir_separator=:
9201
9202        hardcode_direct=yes
9203        export_dynamic_flag_spec='${wl}-E'
9204
9205        # hardcode_minus_L: Not really in the search PATH,
9206        # but as the default location of the library.
9207        hardcode_minus_L=yes
9208      fi
9209      ;;
9210
9211    hpux11*)
9212      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9213        case $host_cpu in
9214        hppa*64*)
9215          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9216          ;;
9217        ia64*)
9218          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9219          ;;
9220        *)
9221          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9222          ;;
9223        esac
9224      else
9225        case $host_cpu in
9226        hppa*64*)
9227          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9228          ;;
9229        ia64*)
9230          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9231          ;;
9232        *)
9233          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9234          ;;
9235        esac
9236      fi
9237      if test "$with_gnu_ld" = no; then
9238        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9239        hardcode_libdir_separator=:
9240
9241        case $host_cpu in
9242        hppa*64*|ia64*)
9243          hardcode_libdir_flag_spec_ld='+b $libdir'
9244          hardcode_direct=no
9245          hardcode_shlibpath_var=no
9246          ;;
9247        *)
9248          hardcode_direct=yes
9249          export_dynamic_flag_spec='${wl}-E'
9250
9251          # hardcode_minus_L: Not really in the search PATH,
9252          # but as the default location of the library.
9253          hardcode_minus_L=yes
9254          ;;
9255        esac
9256      fi
9257      ;;
9258
9259    irix5* | irix6* | nonstopux*)
9260      if test "$GCC" = yes; then
9261        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'
9262      else
9263        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'
9264        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9265      fi
9266      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9267      hardcode_libdir_separator=:
9268      link_all_deplibs=yes
9269      ;;
9270
9271    netbsd*)
9272      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9273        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9274      else
9275        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9276      fi
9277      hardcode_libdir_flag_spec='-R$libdir'
9278      hardcode_direct=yes
9279      hardcode_shlibpath_var=no
9280      ;;
9281
9282    newsos6)
9283      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284      hardcode_direct=yes
9285      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286      hardcode_libdir_separator=:
9287      hardcode_shlibpath_var=no
9288      ;;
9289
9290    openbsd*)
9291      hardcode_direct=yes
9292      hardcode_shlibpath_var=no
9293      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9294        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9295        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9296        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9297        export_dynamic_flag_spec='${wl}-E'
9298      else
9299       case $host_os in
9300         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9301           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9302           hardcode_libdir_flag_spec='-R$libdir'
9303           ;;
9304         *)
9305           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9306           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9307           ;;
9308       esac
9309      fi
9310      ;;
9311
9312    os2*)
9313      hardcode_libdir_flag_spec='-L$libdir'
9314      hardcode_minus_L=yes
9315      allow_undefined_flag=unsupported
9316      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'
9317      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9318      ;;
9319
9320    osf3*)
9321      if test "$GCC" = yes; then
9322        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9323        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'
9324      else
9325        allow_undefined_flag=' -expect_unresolved \*'
9326        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'
9327      fi
9328      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9329      hardcode_libdir_separator=:
9330      ;;
9331
9332    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9333      if test "$GCC" = yes; then
9334        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9335        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'
9336        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9337      else
9338        allow_undefined_flag=' -expect_unresolved \*'
9339        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'
9340        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9341        $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'
9342
9343        # Both c and cxx compiler support -rpath directly
9344        hardcode_libdir_flag_spec='-rpath $libdir'
9345      fi
9346      hardcode_libdir_separator=:
9347      ;;
9348
9349    solaris*)
9350      no_undefined_flag=' -z text'
9351      if test "$GCC" = yes; then
9352        wlarc='${wl}'
9353        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9354        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9355          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9356      else
9357        wlarc=''
9358        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9360        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9361      fi
9362      hardcode_libdir_flag_spec='-R$libdir'
9363      hardcode_shlibpath_var=no
9364      case $host_os in
9365      solaris2.[0-5] | solaris2.[0-5].*) ;;
9366      *)
9367        # The compiler driver will combine linker options so we
9368        # cannot just pass the convience library names through
9369        # without $wl, iff we do not link with $LD.
9370        # Luckily, gcc supports the same syntax we need for Sun Studio.
9371        # Supported since Solaris 2.6 (maybe 2.5.1?)
9372        case $wlarc in
9373        '')
9374          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9375        *)
9376          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' ;;
9377        esac ;;
9378      esac
9379      link_all_deplibs=yes
9380      ;;
9381
9382    sunos4*)
9383      if test "x$host_vendor" = xsequent; then
9384        # Use $CC to link under sequent, because it throws in some extra .o
9385        # files that make .init and .fini sections work.
9386        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9387      else
9388        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9389      fi
9390      hardcode_libdir_flag_spec='-L$libdir'
9391      hardcode_direct=yes
9392      hardcode_minus_L=yes
9393      hardcode_shlibpath_var=no
9394      ;;
9395
9396    sysv4)
9397      case $host_vendor in
9398        sni)
9399          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9400          hardcode_direct=yes # is this really true???
9401        ;;
9402        siemens)
9403          ## LD is ld it makes a PLAMLIB
9404          ## CC just makes a GrossModule.
9405          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9406          reload_cmds='$CC -r -o $output$reload_objs'
9407          hardcode_direct=no
9408        ;;
9409        motorola)
9410          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9412        ;;
9413      esac
9414      runpath_var='LD_RUN_PATH'
9415      hardcode_shlibpath_var=no
9416      ;;
9417
9418    sysv4.3*)
9419      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9420      hardcode_shlibpath_var=no
9421      export_dynamic_flag_spec='-Bexport'
9422      ;;
9423
9424    sysv4*MP*)
9425      if test -d /usr/nec; then
9426        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427        hardcode_shlibpath_var=no
9428        runpath_var=LD_RUN_PATH
9429        hardcode_runpath_var=yes
9430        ld_shlibs=yes
9431      fi
9432      ;;
9433
9434    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9435      no_undefined_flag='${wl}-z,text'
9436      archive_cmds_need_lc=no
9437      hardcode_shlibpath_var=no
9438      runpath_var='LD_RUN_PATH'
9439
9440      if test "$GCC" = yes; then
9441        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443      else
9444        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9446      fi
9447      ;;
9448
9449    sysv5* | sco3.2v5* | sco5v6*)
9450      # Note: We can NOT use -z defs as we might desire, because we do not
9451      # link with -lc, and that would cause any symbols used from libc to
9452      # always be unresolved, which means just about no library would
9453      # ever link correctly.  If we're not using GNU ld we use -z text
9454      # though, which does catch some bad symbols but isn't as heavy-handed
9455      # as -z defs.
9456      no_undefined_flag='${wl}-z,text'
9457      allow_undefined_flag='${wl}-z,nodefs'
9458      archive_cmds_need_lc=no
9459      hardcode_shlibpath_var=no
9460      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9461      hardcode_libdir_separator=':'
9462      link_all_deplibs=yes
9463      export_dynamic_flag_spec='${wl}-Bexport'
9464      runpath_var='LD_RUN_PATH'
9465
9466      if test "$GCC" = yes; then
9467        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9468        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9469      else
9470        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9471        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9472      fi
9473      ;;
9474
9475    uts4*)
9476      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9477      hardcode_libdir_flag_spec='-L$libdir'
9478      hardcode_shlibpath_var=no
9479      ;;
9480
9481    *)
9482      ld_shlibs=no
9483      ;;
9484    esac
9485  fi
9486
9487echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9488echo "${ECHO_T}$ld_shlibs" >&6
9489test "$ld_shlibs" = no && can_build_shared=no
9490
9491#
9492# Do we need to explicitly link libc?
9493#
9494case "x$archive_cmds_need_lc" in
9495x|xyes)
9496  # Assume -lc should be added
9497  archive_cmds_need_lc=yes
9498
9499  if test "$enable_shared" = yes && test "$GCC" = yes; then
9500    case $archive_cmds in
9501    *'~'*)
9502      # FIXME: we may have to deal with multi-command sequences.
9503      ;;
9504    '$CC '*)
9505      # Test whether the compiler implicitly links with -lc since on some
9506      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9507      # to ld, don't add -lc before -lgcc.
9508      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9509echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9510      $rm conftest*
9511      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9512
9513      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9514  (eval $ac_compile) 2>&5
9515  ac_status=$?
9516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517  (exit $ac_status); } 2>conftest.err; then
9518        soname=conftest
9519        lib=conftest
9520        libobjs=conftest.$ac_objext
9521        deplibs=
9522        wl=$lt_prog_compiler_wl
9523        pic_flag=$lt_prog_compiler_pic
9524        compiler_flags=-v
9525        linker_flags=-v
9526        verstring=
9527        output_objdir=.
9528        libname=conftest
9529        lt_save_allow_undefined_flag=$allow_undefined_flag
9530        allow_undefined_flag=
9531        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9532  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9533  ac_status=$?
9534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535  (exit $ac_status); }
9536        then
9537          archive_cmds_need_lc=no
9538        else
9539          archive_cmds_need_lc=yes
9540        fi
9541        allow_undefined_flag=$lt_save_allow_undefined_flag
9542      else
9543        cat conftest.err 1>&5
9544      fi
9545      $rm conftest*
9546      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9547echo "${ECHO_T}$archive_cmds_need_lc" >&6
9548      ;;
9549    esac
9550  fi
9551  ;;
9552esac
9553
9554echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9555echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9556library_names_spec=
9557libname_spec='lib$name'
9558soname_spec=
9559shrext_cmds=".so"
9560postinstall_cmds=
9561postuninstall_cmds=
9562finish_cmds=
9563finish_eval=
9564shlibpath_var=
9565shlibpath_overrides_runpath=unknown
9566version_type=none
9567dynamic_linker="$host_os ld.so"
9568sys_lib_dlsearch_path_spec="/lib /usr/lib"
9569if test "$GCC" = yes; then
9570  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9571  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9572    # if the path contains ";" then we assume it to be the separator
9573    # otherwise default to the standard path separator (i.e. ":") - it is
9574    # assumed that no part of a normal pathname contains ";" but that should
9575    # okay in the real world where ";" in dirpaths is itself problematic.
9576    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9577  else
9578    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9579  fi
9580else
9581  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9582fi
9583need_lib_prefix=unknown
9584hardcode_into_libs=no
9585
9586# when you set need_version to no, make sure it does not cause -set_version
9587# flags to be left without arguments
9588need_version=unknown
9589
9590case $host_os in
9591aix3*)
9592  version_type=linux
9593  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9594  shlibpath_var=LIBPATH
9595
9596  # AIX 3 has no versioning support, so we append a major version to the name.
9597  soname_spec='${libname}${release}${shared_ext}$major'
9598  ;;
9599
9600aix4* | aix5*)
9601  version_type=linux
9602  need_lib_prefix=no
9603  need_version=no
9604  hardcode_into_libs=yes
9605  if test "$host_cpu" = ia64; then
9606    # AIX 5 supports IA64
9607    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9608    shlibpath_var=LD_LIBRARY_PATH
9609  else
9610    # With GCC up to 2.95.x, collect2 would create an import file
9611    # for dependence libraries.  The import file would start with
9612    # the line `#! .'.  This would cause the generated library to
9613    # depend on `.', always an invalid library.  This was fixed in
9614    # development snapshots of GCC prior to 3.0.
9615    case $host_os in
9616      aix4 | aix4.[01] | aix4.[01].*)
9617      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9618           echo ' yes '
9619           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9620        :
9621      else
9622        can_build_shared=no
9623      fi
9624      ;;
9625    esac
9626    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9627    # soname into executable. Probably we can add versioning support to
9628    # collect2, so additional links can be useful in future.
9629    if test "$aix_use_runtimelinking" = yes; then
9630      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9631      # instead of lib<name>.a to let people know that these are not
9632      # typical AIX shared libraries.
9633      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634    else
9635      # We preserve .a as extension for shared libraries through AIX4.2
9636      # and later when we are not doing run time linking.
9637      library_names_spec='${libname}${release}.a $libname.a'
9638      soname_spec='${libname}${release}${shared_ext}$major'
9639    fi
9640    shlibpath_var=LIBPATH
9641  fi
9642  ;;
9643
9644amigaos*)
9645  library_names_spec='$libname.ixlibrary $libname.a'
9646  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9647  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'
9648  ;;
9649
9650beos*)
9651  library_names_spec='${libname}${shared_ext}'
9652  dynamic_linker="$host_os ld.so"
9653  shlibpath_var=LIBRARY_PATH
9654  ;;
9655
9656bsdi[45]*)
9657  version_type=linux
9658  need_version=no
9659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660  soname_spec='${libname}${release}${shared_ext}$major'
9661  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9662  shlibpath_var=LD_LIBRARY_PATH
9663  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9664  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9665  # the default ld.so.conf also contains /usr/contrib/lib and
9666  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9667  # libtool to hard-code these into programs
9668  ;;
9669
9670cygwin* | mingw* | pw32*)
9671  version_type=windows
9672  shrext_cmds=".dll"
9673  need_version=no
9674  need_lib_prefix=no
9675
9676  case $GCC,$host_os in
9677  yes,cygwin* | yes,mingw* | yes,pw32*)
9678    library_names_spec='$libname.dll.a'
9679    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9680    postinstall_cmds='base_file=`basename \${file}`~
9681      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9682      dldir=$destdir/`dirname \$dlpath`~
9683      test -d \$dldir || mkdir -p \$dldir~
9684      $install_prog $dir/$dlname \$dldir/$dlname~
9685      chmod a+x \$dldir/$dlname'
9686    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9687      dlpath=$dir/\$dldll~
9688       $rm \$dlpath'
9689    shlibpath_overrides_runpath=yes
9690
9691    case $host_os in
9692    cygwin*)
9693      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9694      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9695      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9696      ;;
9697    mingw*)
9698      # MinGW DLLs use traditional 'lib' prefix
9699      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9700      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9701      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9702        # It is most probably a Windows format PATH printed by
9703        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9704        # path with ; separators, and with drive letters. We can handle the
9705        # drive letters (cygwin fileutils understands them), so leave them,
9706        # especially as we might pass files found there to a mingw objdump,
9707        # which wouldn't understand a cygwinified path. Ahh.
9708        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9709      else
9710        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9711      fi
9712      ;;
9713    pw32*)
9714      # pw32 DLLs use 'pw' prefix rather than 'lib'
9715      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9716      ;;
9717    esac
9718    ;;
9719
9720  *)
9721    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9722    ;;
9723  esac
9724  dynamic_linker='Win32 ld.exe'
9725  # FIXME: first we should search . and the directory the executable is in
9726  shlibpath_var=PATH
9727  ;;
9728
9729darwin* | rhapsody*)
9730  dynamic_linker="$host_os dyld"
9731  version_type=darwin
9732  need_lib_prefix=no
9733  need_version=no
9734  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9735  soname_spec='${libname}${release}${major}$shared_ext'
9736  shlibpath_overrides_runpath=yes
9737  shlibpath_var=DYLD_LIBRARY_PATH
9738  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9739  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9740  if test "$GCC" = yes; then
9741    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"`
9742  else
9743    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9744  fi
9745  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9746  ;;
9747
9748dgux*)
9749  version_type=linux
9750  need_lib_prefix=no
9751  need_version=no
9752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9753  soname_spec='${libname}${release}${shared_ext}$major'
9754  shlibpath_var=LD_LIBRARY_PATH
9755  ;;
9756
9757freebsd1*)
9758  dynamic_linker=no
9759  ;;
9760
9761kfreebsd*-gnu)
9762  version_type=linux
9763  need_lib_prefix=no
9764  need_version=no
9765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9766  soname_spec='${libname}${release}${shared_ext}$major'
9767  shlibpath_var=LD_LIBRARY_PATH
9768  shlibpath_overrides_runpath=no
9769  hardcode_into_libs=yes
9770  dynamic_linker='GNU ld.so'
9771  ;;
9772
9773freebsd* | dragonfly*)
9774  # DragonFly does not have aout.  When/if they implement a new
9775  # versioning mechanism, adjust this.
9776  if test -x /usr/bin/objformat; then
9777    objformat=`/usr/bin/objformat`
9778  else
9779    case $host_os in
9780    freebsd[123]*) objformat=aout ;;
9781    *) objformat=elf ;;
9782    esac
9783  fi
9784  version_type=freebsd-$objformat
9785  case $version_type in
9786    freebsd-elf*)
9787      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9788      need_version=no
9789      need_lib_prefix=no
9790      ;;
9791    freebsd-*)
9792      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9793      need_version=yes
9794      ;;
9795  esac
9796  shlibpath_var=LD_LIBRARY_PATH
9797  case $host_os in
9798  freebsd2*)
9799    shlibpath_overrides_runpath=yes
9800    ;;
9801  freebsd3.[01]* | freebsdelf3.[01]*)
9802    shlibpath_overrides_runpath=yes
9803    hardcode_into_libs=yes
9804    ;;
9805  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9806  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9807    shlibpath_overrides_runpath=no
9808    hardcode_into_libs=yes
9809    ;;
9810  freebsd*) # from 4.6 on
9811    shlibpath_overrides_runpath=yes
9812    hardcode_into_libs=yes
9813    ;;
9814  esac
9815  ;;
9816
9817gnu*)
9818  version_type=linux
9819  need_lib_prefix=no
9820  need_version=no
9821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9822  soname_spec='${libname}${release}${shared_ext}$major'
9823  shlibpath_var=LD_LIBRARY_PATH
9824  hardcode_into_libs=yes
9825  ;;
9826
9827hpux9* | hpux10* | hpux11*)
9828  # Give a soname corresponding to the major version so that dld.sl refuses to
9829  # link against other versions.
9830  version_type=sunos
9831  need_lib_prefix=no
9832  need_version=no
9833  case $host_cpu in
9834  ia64*)
9835    shrext_cmds='.so'
9836    hardcode_into_libs=yes
9837    dynamic_linker="$host_os dld.so"
9838    shlibpath_var=LD_LIBRARY_PATH
9839    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9840    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841    soname_spec='${libname}${release}${shared_ext}$major'
9842    if test "X$HPUX_IA64_MODE" = X32; then
9843      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9844    else
9845      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9846    fi
9847    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9848    ;;
9849   hppa*64*)
9850     shrext_cmds='.sl'
9851     hardcode_into_libs=yes
9852     dynamic_linker="$host_os dld.sl"
9853     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9854     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856     soname_spec='${libname}${release}${shared_ext}$major'
9857     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9858     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9859     ;;
9860   *)
9861    shrext_cmds='.sl'
9862    dynamic_linker="$host_os dld.sl"
9863    shlibpath_var=SHLIB_PATH
9864    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866    soname_spec='${libname}${release}${shared_ext}$major'
9867    ;;
9868  esac
9869  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9870  postinstall_cmds='chmod 555 $lib'
9871  ;;
9872
9873interix3*)
9874  version_type=linux
9875  need_lib_prefix=no
9876  need_version=no
9877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9878  soname_spec='${libname}${release}${shared_ext}$major'
9879  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9880  shlibpath_var=LD_LIBRARY_PATH
9881  shlibpath_overrides_runpath=no
9882  hardcode_into_libs=yes
9883  ;;
9884
9885irix5* | irix6* | nonstopux*)
9886  case $host_os in
9887    nonstopux*) version_type=nonstopux ;;
9888    *)
9889        if test "$lt_cv_prog_gnu_ld" = yes; then
9890                version_type=linux
9891        else
9892                version_type=irix
9893        fi ;;
9894  esac
9895  need_lib_prefix=no
9896  need_version=no
9897  soname_spec='${libname}${release}${shared_ext}$major'
9898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9899  case $host_os in
9900  irix5* | nonstopux*)
9901    libsuff= shlibsuff=
9902    ;;
9903  *)
9904    case $LD in # libtool.m4 will add one of these switches to LD
9905    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9906      libsuff= shlibsuff= libmagic=32-bit;;
9907    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9908      libsuff=32 shlibsuff=N32 libmagic=N32;;
9909    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9910      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9911    *) libsuff= shlibsuff= libmagic=never-match;;
9912    esac
9913    ;;
9914  esac
9915  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9916  shlibpath_overrides_runpath=no
9917  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9918  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9919  hardcode_into_libs=yes
9920  ;;
9921
9922# No shared lib support for Linux oldld, aout, or coff.
9923linux*oldld* | linux*aout* | linux*coff*)
9924  dynamic_linker=no
9925  ;;
9926
9927# This must be Linux ELF.
9928linux*)
9929  version_type=linux
9930  need_lib_prefix=no
9931  need_version=no
9932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933  soname_spec='${libname}${release}${shared_ext}$major'
9934  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9935  shlibpath_var=LD_LIBRARY_PATH
9936  shlibpath_overrides_runpath=no
9937  # This implies no fast_install, which is unacceptable.
9938  # Some rework will be needed to allow for fast_install
9939  # before this can be enabled.
9940  hardcode_into_libs=yes
9941
9942  # Append ld.so.conf contents to the search path
9943  if test -f /etc/ld.so.conf; then
9944    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' ' '`
9945    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9946  fi
9947
9948  # We used to test for /lib/ld.so.1 and disable shared libraries on
9949  # powerpc, because MkLinux only supported shared libraries with the
9950  # GNU dynamic linker.  Since this was broken with cross compilers,
9951  # most powerpc-linux boxes support dynamic linking these days and
9952  # people can always --disable-shared, the test was removed, and we
9953  # assume the GNU/Linux dynamic linker is in use.
9954  dynamic_linker='GNU/Linux ld.so'
9955  ;;
9956
9957knetbsd*-gnu)
9958  version_type=linux
9959  need_lib_prefix=no
9960  need_version=no
9961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9962  soname_spec='${libname}${release}${shared_ext}$major'
9963  shlibpath_var=LD_LIBRARY_PATH
9964  shlibpath_overrides_runpath=no
9965  hardcode_into_libs=yes
9966  dynamic_linker='GNU ld.so'
9967  ;;
9968
9969netbsd*)
9970  version_type=sunos
9971  need_lib_prefix=no
9972  need_version=no
9973  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9974    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9975    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9976    dynamic_linker='NetBSD (a.out) ld.so'
9977  else
9978    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9979    soname_spec='${libname}${release}${shared_ext}$major'
9980    dynamic_linker='NetBSD ld.elf_so'
9981  fi
9982  shlibpath_var=LD_LIBRARY_PATH
9983  shlibpath_overrides_runpath=yes
9984  hardcode_into_libs=yes
9985  ;;
9986
9987newsos6)
9988  version_type=linux
9989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990  shlibpath_var=LD_LIBRARY_PATH
9991  shlibpath_overrides_runpath=yes
9992  ;;
9993
9994nto-qnx*)
9995  version_type=linux
9996  need_lib_prefix=no
9997  need_version=no
9998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999  soname_spec='${libname}${release}${shared_ext}$major'
10000  shlibpath_var=LD_LIBRARY_PATH
10001  shlibpath_overrides_runpath=yes
10002  ;;
10003
10004openbsd*)
10005  version_type=sunos
10006  sys_lib_dlsearch_path_spec="/usr/lib"
10007  need_lib_prefix=no
10008  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10009  case $host_os in
10010    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10011    *)                         need_version=no  ;;
10012  esac
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10014  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10015  shlibpath_var=LD_LIBRARY_PATH
10016  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10017    case $host_os in
10018      openbsd2.[89] | openbsd2.[89].*)
10019        shlibpath_overrides_runpath=no
10020        ;;
10021      *)
10022        shlibpath_overrides_runpath=yes
10023        ;;
10024      esac
10025  else
10026    shlibpath_overrides_runpath=yes
10027  fi
10028  ;;
10029
10030os2*)
10031  libname_spec='$name'
10032  shrext_cmds=".dll"
10033  need_lib_prefix=no
10034  library_names_spec='$libname${shared_ext} $libname.a'
10035  dynamic_linker='OS/2 ld.exe'
10036  shlibpath_var=LIBPATH
10037  ;;
10038
10039osf3* | osf4* | osf5*)
10040  version_type=osf
10041  need_lib_prefix=no
10042  need_version=no
10043  soname_spec='${libname}${release}${shared_ext}$major'
10044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045  shlibpath_var=LD_LIBRARY_PATH
10046  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10047  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10048  ;;
10049
10050solaris*)
10051  version_type=linux
10052  need_lib_prefix=no
10053  need_version=no
10054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055  soname_spec='${libname}${release}${shared_ext}$major'
10056  shlibpath_var=LD_LIBRARY_PATH
10057  shlibpath_overrides_runpath=yes
10058  hardcode_into_libs=yes
10059  # ldd complains unless libraries are executable
10060  postinstall_cmds='chmod +x $lib'
10061  ;;
10062
10063sunos4*)
10064  version_type=sunos
10065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10066  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10067  shlibpath_var=LD_LIBRARY_PATH
10068  shlibpath_overrides_runpath=yes
10069  if test "$with_gnu_ld" = yes; then
10070    need_lib_prefix=no
10071  fi
10072  need_version=yes
10073  ;;
10074
10075sysv4 | sysv4.3*)
10076  version_type=linux
10077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10078  soname_spec='${libname}${release}${shared_ext}$major'
10079  shlibpath_var=LD_LIBRARY_PATH
10080  case $host_vendor in
10081    sni)
10082      shlibpath_overrides_runpath=no
10083      need_lib_prefix=no
10084      export_dynamic_flag_spec='${wl}-Blargedynsym'
10085      runpath_var=LD_RUN_PATH
10086      ;;
10087    siemens)
10088      need_lib_prefix=no
10089      ;;
10090    motorola)
10091      need_lib_prefix=no
10092      need_version=no
10093      shlibpath_overrides_runpath=no
10094      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10095      ;;
10096  esac
10097  ;;
10098
10099sysv4*MP*)
10100  if test -d /usr/nec ;then
10101    version_type=linux
10102    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10103    soname_spec='$libname${shared_ext}.$major'
10104    shlibpath_var=LD_LIBRARY_PATH
10105  fi
10106  ;;
10107
10108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10109  version_type=freebsd-elf
10110  need_lib_prefix=no
10111  need_version=no
10112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10113  soname_spec='${libname}${release}${shared_ext}$major'
10114  shlibpath_var=LD_LIBRARY_PATH
10115  hardcode_into_libs=yes
10116  if test "$with_gnu_ld" = yes; then
10117    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10118    shlibpath_overrides_runpath=no
10119  else
10120    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10121    shlibpath_overrides_runpath=yes
10122    case $host_os in
10123      sco3.2v5*)
10124        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10125        ;;
10126    esac
10127  fi
10128  sys_lib_dlsearch_path_spec='/usr/lib'
10129  ;;
10130
10131uts4*)
10132  version_type=linux
10133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134  soname_spec='${libname}${release}${shared_ext}$major'
10135  shlibpath_var=LD_LIBRARY_PATH
10136  ;;
10137
10138*)
10139  dynamic_linker=no
10140  ;;
10141esac
10142echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10143echo "${ECHO_T}$dynamic_linker" >&6
10144test "$dynamic_linker" = no && can_build_shared=no
10145
10146variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10147if test "$GCC" = yes; then
10148  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10149fi
10150
10151echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10152echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10153hardcode_action=
10154if test -n "$hardcode_libdir_flag_spec" || \
10155   test -n "$runpath_var" || \
10156   test "X$hardcode_automatic" = "Xyes" ; then
10157
10158  # We can hardcode non-existant directories.
10159  if test "$hardcode_direct" != no &&
10160     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10161     # have to relink, otherwise we might link with an installed library
10162     # when we should be linking with a yet-to-be-installed one
10163     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10164     test "$hardcode_minus_L" != no; then
10165    # Linking always hardcodes the temporary library directory.
10166    hardcode_action=relink
10167  else
10168    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10169    hardcode_action=immediate
10170  fi
10171else
10172  # We cannot hardcode anything, or else we can only hardcode existing
10173  # directories.
10174  hardcode_action=unsupported
10175fi
10176echo "$as_me:$LINENO: result: $hardcode_action" >&5
10177echo "${ECHO_T}$hardcode_action" >&6
10178
10179if test "$hardcode_action" = relink; then
10180  # Fast installation is not supported
10181  enable_fast_install=no
10182elif test "$shlibpath_overrides_runpath" = yes ||
10183     test "$enable_shared" = no; then
10184  # Fast installation is not necessary
10185  enable_fast_install=needless
10186fi
10187
10188striplib=
10189old_striplib=
10190echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10191echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10192if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10193  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10194  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10195  echo "$as_me:$LINENO: result: yes" >&5
10196echo "${ECHO_T}yes" >&6
10197else
10198# FIXME - insert some real tests, host_os isn't really good enough
10199  case $host_os in
10200   darwin*)
10201       if test -n "$STRIP" ; then
10202         striplib="$STRIP -x"
10203         echo "$as_me:$LINENO: result: yes" >&5
10204echo "${ECHO_T}yes" >&6
10205       else
10206  echo "$as_me:$LINENO: result: no" >&5
10207echo "${ECHO_T}no" >&6
10208fi
10209       ;;
10210   *)
10211  echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
10213    ;;
10214  esac
10215fi
10216
10217if test "x$enable_dlopen" != xyes; then
10218  enable_dlopen=unknown
10219  enable_dlopen_self=unknown
10220  enable_dlopen_self_static=unknown
10221else
10222  lt_cv_dlopen=no
10223  lt_cv_dlopen_libs=
10224
10225  case $host_os in
10226  beos*)
10227    lt_cv_dlopen="load_add_on"
10228    lt_cv_dlopen_libs=
10229    lt_cv_dlopen_self=yes
10230    ;;
10231
10232  mingw* | pw32*)
10233    lt_cv_dlopen="LoadLibrary"
10234    lt_cv_dlopen_libs=
10235   ;;
10236
10237  cygwin*)
10238    lt_cv_dlopen="dlopen"
10239    lt_cv_dlopen_libs=
10240   ;;
10241
10242  darwin*)
10243  # if libdl is installed we need to link against it
10244    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10245echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10246if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10247  echo $ECHO_N "(cached) $ECHO_C" >&6
10248else
10249  ac_check_lib_save_LIBS=$LIBS
10250LIBS="-ldl  $LIBS"
10251cat >conftest.$ac_ext <<_ACEOF
10252/* confdefs.h.  */
10253_ACEOF
10254cat confdefs.h >>conftest.$ac_ext
10255cat >>conftest.$ac_ext <<_ACEOF
10256/* end confdefs.h.  */
10257
10258/* Override any gcc2 internal prototype to avoid an error.  */
10259#ifdef __cplusplus
10260extern "C"
10261#endif
10262/* We use char because int might match the return type of a gcc2
10263   builtin and then its argument prototype would still apply.  */
10264char dlopen ();
10265int
10266main ()
10267{
10268dlopen ();
10269  ;
10270  return 0;
10271}
10272_ACEOF
10273rm -f conftest.$ac_objext conftest$ac_exeext
10274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275  (eval $ac_link) 2>conftest.er1
10276  ac_status=$?
10277  grep -v '^ *+' conftest.er1 >conftest.err
10278  rm -f conftest.er1
10279  cat conftest.err >&5
10280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281  (exit $ac_status); } &&
10282         { ac_try='test -z "$ac_c_werror_flag"
10283                         || test ! -s conftest.err'
10284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285  (eval $ac_try) 2>&5
10286  ac_status=$?
10287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288  (exit $ac_status); }; } &&
10289         { ac_try='test -s conftest$ac_exeext'
10290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291  (eval $ac_try) 2>&5
10292  ac_status=$?
10293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294  (exit $ac_status); }; }; then
10295  ac_cv_lib_dl_dlopen=yes
10296else
10297  echo "$as_me: failed program was:" >&5
10298sed 's/^/| /' conftest.$ac_ext >&5
10299
10300ac_cv_lib_dl_dlopen=no
10301fi
10302rm -f conftest.err conftest.$ac_objext \
10303      conftest$ac_exeext conftest.$ac_ext
10304LIBS=$ac_check_lib_save_LIBS
10305fi
10306echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10307echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10308if test $ac_cv_lib_dl_dlopen = yes; then
10309  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10310else
10311
10312    lt_cv_dlopen="dyld"
10313    lt_cv_dlopen_libs=
10314    lt_cv_dlopen_self=yes
10315
10316fi
10317
10318   ;;
10319
10320  *)
10321    echo "$as_me:$LINENO: checking for shl_load" >&5
10322echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10323if test "${ac_cv_func_shl_load+set}" = set; then
10324  echo $ECHO_N "(cached) $ECHO_C" >&6
10325else
10326  cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h.  */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h.  */
10332/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10333   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10334#define shl_load innocuous_shl_load
10335
10336/* System header to define __stub macros and hopefully few prototypes,
10337    which can conflict with char shl_load (); below.
10338    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339    <limits.h> exists even on freestanding compilers.  */
10340
10341#ifdef __STDC__
10342# include <limits.h>
10343#else
10344# include <assert.h>
10345#endif
10346
10347#undef shl_load
10348
10349/* Override any gcc2 internal prototype to avoid an error.  */
10350#ifdef __cplusplus
10351extern "C"
10352{
10353#endif
10354/* We use char because int might match the return type of a gcc2
10355   builtin and then its argument prototype would still apply.  */
10356char shl_load ();
10357/* The GNU C library defines this for functions which it implements
10358    to always fail with ENOSYS.  Some functions are actually named
10359    something starting with __ and the normal name is an alias.  */
10360#if defined (__stub_shl_load) || defined (__stub___shl_load)
10361choke me
10362#else
10363char (*f) () = shl_load;
10364#endif
10365#ifdef __cplusplus
10366}
10367#endif
10368
10369int
10370main ()
10371{
10372return f != shl_load;
10373  ;
10374  return 0;
10375}
10376_ACEOF
10377rm -f conftest.$ac_objext conftest$ac_exeext
10378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379  (eval $ac_link) 2>conftest.er1
10380  ac_status=$?
10381  grep -v '^ *+' conftest.er1 >conftest.err
10382  rm -f conftest.er1
10383  cat conftest.err >&5
10384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385  (exit $ac_status); } &&
10386         { ac_try='test -z "$ac_c_werror_flag"
10387                         || test ! -s conftest.err'
10388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389  (eval $ac_try) 2>&5
10390  ac_status=$?
10391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392  (exit $ac_status); }; } &&
10393         { ac_try='test -s conftest$ac_exeext'
10394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395  (eval $ac_try) 2>&5
10396  ac_status=$?
10397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398  (exit $ac_status); }; }; then
10399  ac_cv_func_shl_load=yes
10400else
10401  echo "$as_me: failed program was:" >&5
10402sed 's/^/| /' conftest.$ac_ext >&5
10403
10404ac_cv_func_shl_load=no
10405fi
10406rm -f conftest.err conftest.$ac_objext \
10407      conftest$ac_exeext conftest.$ac_ext
10408fi
10409echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10410echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10411if test $ac_cv_func_shl_load = yes; then
10412  lt_cv_dlopen="shl_load"
10413else
10414  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10415echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10416if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10417  echo $ECHO_N "(cached) $ECHO_C" >&6
10418else
10419  ac_check_lib_save_LIBS=$LIBS
10420LIBS="-ldld  $LIBS"
10421cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h.  */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h.  */
10427
10428/* Override any gcc2 internal prototype to avoid an error.  */
10429#ifdef __cplusplus
10430extern "C"
10431#endif
10432/* We use char because int might match the return type of a gcc2
10433   builtin and then its argument prototype would still apply.  */
10434char shl_load ();
10435int
10436main ()
10437{
10438shl_load ();
10439  ;
10440  return 0;
10441}
10442_ACEOF
10443rm -f conftest.$ac_objext conftest$ac_exeext
10444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10445  (eval $ac_link) 2>conftest.er1
10446  ac_status=$?
10447  grep -v '^ *+' conftest.er1 >conftest.err
10448  rm -f conftest.er1
10449  cat conftest.err >&5
10450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451  (exit $ac_status); } &&
10452         { ac_try='test -z "$ac_c_werror_flag"
10453                         || test ! -s conftest.err'
10454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455  (eval $ac_try) 2>&5
10456  ac_status=$?
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); }; } &&
10459         { ac_try='test -s conftest$ac_exeext'
10460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461  (eval $ac_try) 2>&5
10462  ac_status=$?
10463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464  (exit $ac_status); }; }; then
10465  ac_cv_lib_dld_shl_load=yes
10466else
10467  echo "$as_me: failed program was:" >&5
10468sed 's/^/| /' conftest.$ac_ext >&5
10469
10470ac_cv_lib_dld_shl_load=no
10471fi
10472rm -f conftest.err conftest.$ac_objext \
10473      conftest$ac_exeext conftest.$ac_ext
10474LIBS=$ac_check_lib_save_LIBS
10475fi
10476echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10477echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10478if test $ac_cv_lib_dld_shl_load = yes; then
10479  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10480else
10481  echo "$as_me:$LINENO: checking for dlopen" >&5
10482echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10483if test "${ac_cv_func_dlopen+set}" = set; then
10484  echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486  cat >conftest.$ac_ext <<_ACEOF
10487/* confdefs.h.  */
10488_ACEOF
10489cat confdefs.h >>conftest.$ac_ext
10490cat >>conftest.$ac_ext <<_ACEOF
10491/* end confdefs.h.  */
10492/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10493   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10494#define dlopen innocuous_dlopen
10495
10496/* System header to define __stub macros and hopefully few prototypes,
10497    which can conflict with char dlopen (); below.
10498    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10499    <limits.h> exists even on freestanding compilers.  */
10500
10501#ifdef __STDC__
10502# include <limits.h>
10503#else
10504# include <assert.h>
10505#endif
10506
10507#undef dlopen
10508
10509/* Override any gcc2 internal prototype to avoid an error.  */
10510#ifdef __cplusplus
10511extern "C"
10512{
10513#endif
10514/* We use char because int might match the return type of a gcc2
10515   builtin and then its argument prototype would still apply.  */
10516char dlopen ();
10517/* The GNU C library defines this for functions which it implements
10518    to always fail with ENOSYS.  Some functions are actually named
10519    something starting with __ and the normal name is an alias.  */
10520#if defined (__stub_dlopen) || defined (__stub___dlopen)
10521choke me
10522#else
10523char (*f) () = dlopen;
10524#endif
10525#ifdef __cplusplus
10526}
10527#endif
10528
10529int
10530main ()
10531{
10532return f != dlopen;
10533  ;
10534  return 0;
10535}
10536_ACEOF
10537rm -f conftest.$ac_objext conftest$ac_exeext
10538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539  (eval $ac_link) 2>conftest.er1
10540  ac_status=$?
10541  grep -v '^ *+' conftest.er1 >conftest.err
10542  rm -f conftest.er1
10543  cat conftest.err >&5
10544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545  (exit $ac_status); } &&
10546         { ac_try='test -z "$ac_c_werror_flag"
10547                         || test ! -s conftest.err'
10548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549  (eval $ac_try) 2>&5
10550  ac_status=$?
10551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552  (exit $ac_status); }; } &&
10553         { ac_try='test -s conftest$ac_exeext'
10554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555  (eval $ac_try) 2>&5
10556  ac_status=$?
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); }; }; then
10559  ac_cv_func_dlopen=yes
10560else
10561  echo "$as_me: failed program was:" >&5
10562sed 's/^/| /' conftest.$ac_ext >&5
10563
10564ac_cv_func_dlopen=no
10565fi
10566rm -f conftest.err conftest.$ac_objext \
10567      conftest$ac_exeext conftest.$ac_ext
10568fi
10569echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10570echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10571if test $ac_cv_func_dlopen = yes; then
10572  lt_cv_dlopen="dlopen"
10573else
10574  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10575echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10576if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10577  echo $ECHO_N "(cached) $ECHO_C" >&6
10578else
10579  ac_check_lib_save_LIBS=$LIBS
10580LIBS="-ldl  $LIBS"
10581cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h.  */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h.  */
10587
10588/* Override any gcc2 internal prototype to avoid an error.  */
10589#ifdef __cplusplus
10590extern "C"
10591#endif
10592/* We use char because int might match the return type of a gcc2
10593   builtin and then its argument prototype would still apply.  */
10594char dlopen ();
10595int
10596main ()
10597{
10598dlopen ();
10599  ;
10600  return 0;
10601}
10602_ACEOF
10603rm -f conftest.$ac_objext conftest$ac_exeext
10604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605  (eval $ac_link) 2>conftest.er1
10606  ac_status=$?
10607  grep -v '^ *+' conftest.er1 >conftest.err
10608  rm -f conftest.er1
10609  cat conftest.err >&5
10610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611  (exit $ac_status); } &&
10612         { ac_try='test -z "$ac_c_werror_flag"
10613                         || test ! -s conftest.err'
10614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615  (eval $ac_try) 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); }; } &&
10619         { ac_try='test -s conftest$ac_exeext'
10620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621  (eval $ac_try) 2>&5
10622  ac_status=$?
10623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624  (exit $ac_status); }; }; then
10625  ac_cv_lib_dl_dlopen=yes
10626else
10627  echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630ac_cv_lib_dl_dlopen=no
10631fi
10632rm -f conftest.err conftest.$ac_objext \
10633      conftest$ac_exeext conftest.$ac_ext
10634LIBS=$ac_check_lib_save_LIBS
10635fi
10636echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10637echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10638if test $ac_cv_lib_dl_dlopen = yes; then
10639  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10640else
10641  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10642echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10643if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10644  echo $ECHO_N "(cached) $ECHO_C" >&6
10645else
10646  ac_check_lib_save_LIBS=$LIBS
10647LIBS="-lsvld  $LIBS"
10648cat >conftest.$ac_ext <<_ACEOF
10649/* confdefs.h.  */
10650_ACEOF
10651cat confdefs.h >>conftest.$ac_ext
10652cat >>conftest.$ac_ext <<_ACEOF
10653/* end confdefs.h.  */
10654
10655/* Override any gcc2 internal prototype to avoid an error.  */
10656#ifdef __cplusplus
10657extern "C"
10658#endif
10659/* We use char because int might match the return type of a gcc2
10660   builtin and then its argument prototype would still apply.  */
10661char dlopen ();
10662int
10663main ()
10664{
10665dlopen ();
10666  ;
10667  return 0;
10668}
10669_ACEOF
10670rm -f conftest.$ac_objext conftest$ac_exeext
10671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672  (eval $ac_link) 2>conftest.er1
10673  ac_status=$?
10674  grep -v '^ *+' conftest.er1 >conftest.err
10675  rm -f conftest.er1
10676  cat conftest.err >&5
10677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678  (exit $ac_status); } &&
10679         { ac_try='test -z "$ac_c_werror_flag"
10680                         || test ! -s conftest.err'
10681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682  (eval $ac_try) 2>&5
10683  ac_status=$?
10684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685  (exit $ac_status); }; } &&
10686         { ac_try='test -s conftest$ac_exeext'
10687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688  (eval $ac_try) 2>&5
10689  ac_status=$?
10690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691  (exit $ac_status); }; }; then
10692  ac_cv_lib_svld_dlopen=yes
10693else
10694  echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697ac_cv_lib_svld_dlopen=no
10698fi
10699rm -f conftest.err conftest.$ac_objext \
10700      conftest$ac_exeext conftest.$ac_ext
10701LIBS=$ac_check_lib_save_LIBS
10702fi
10703echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10704echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10705if test $ac_cv_lib_svld_dlopen = yes; then
10706  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10707else
10708  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10709echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10710if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10711  echo $ECHO_N "(cached) $ECHO_C" >&6
10712else
10713  ac_check_lib_save_LIBS=$LIBS
10714LIBS="-ldld  $LIBS"
10715cat >conftest.$ac_ext <<_ACEOF
10716/* confdefs.h.  */
10717_ACEOF
10718cat confdefs.h >>conftest.$ac_ext
10719cat >>conftest.$ac_ext <