source: stable/1.15/Clp/configure @ 2000

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

restoring Clp/stable/1.15

  • Property svn:executable set to *
File size: 1.0 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.15.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.15'
433PACKAGE_STRING='Clp 1.15'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE COIN_HAS_ABC_TRUE COIN_HAS_ABC_FALSE AMDINCDIR AMDLIB COIN_HAS_AMD_TRUE COIN_HAS_AMD_FALSE CHOLMODINCDIR CHOLMODLIB COIN_HAS_CHOLMOD_TRUE COIN_HAS_CHOLMOD_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS MPIF77 FLIBS BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_WSMP_TRUE COIN_HAS_WSMP_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1001ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1002ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1003ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1004ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1005ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1006ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1007ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1008ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1009ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1010ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1011ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016
1017#
1018# Report the --help message.
1019#
1020if test "$ac_init_help" = "long"; then
1021  # Omit some internal or obsolete options to make the list less imposing.
1022  # This message is too long to be a string in the A/UX 3.1 sh.
1023  cat <<_ACEOF
1024\`configure' configures Clp 1.15 to adapt to many kinds of systems.
1025
1026Usage: $0 [OPTION]... [VAR=VALUE]...
1027
1028To assign environment variables (e.g., CC, CFLAGS...), specify them as
1029VAR=VALUE.  See below for descriptions of some of the useful variables.
1030
1031Defaults for the options are specified in brackets.
1032
1033Configuration:
1034  -h, --help              display this help and exit
1035      --help=short        display options specific to this package
1036      --help=recursive    display the short help of all the included packages
1037  -V, --version           display version information and exit
1038  -q, --quiet, --silent   do not print \`checking...' messages
1039      --cache-file=FILE   cache test results in FILE [disabled]
1040  -C, --config-cache      alias for \`--cache-file=config.cache'
1041  -n, --no-create         do not create output files
1042      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1043
1044_ACEOF
1045
1046  cat <<_ACEOF
1047Installation directories:
1048  --prefix=PREFIX         install architecture-independent files in PREFIX
1049                          [$ac_default_prefix]
1050  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1051                          [PREFIX]
1052
1053By default, \`make install' will install all the files in
1054\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1055an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1056for instance \`--prefix=\$HOME'.
1057
1058For better control, use the options below.
1059
1060Fine tuning of the installation directories:
1061  --bindir=DIR           user executables [EPREFIX/bin]
1062  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1063  --libexecdir=DIR       program executables [EPREFIX/libexec]
1064  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1065  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1066  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1067  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1068  --libdir=DIR           object code libraries [EPREFIX/lib]
1069  --includedir=DIR       C header files [PREFIX/include]
1070  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1071  --infodir=DIR          info documentation [PREFIX/info]
1072  --mandir=DIR           man documentation [PREFIX/man]
1073_ACEOF
1074
1075  cat <<\_ACEOF
1076
1077Program names:
1078  --program-prefix=PREFIX            prepend PREFIX to installed program names
1079  --program-suffix=SUFFIX            append SUFFIX to installed program names
1080  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1081
1082System types:
1083  --build=BUILD     configure for building on BUILD [guessed]
1084  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1085_ACEOF
1086fi
1087
1088if test -n "$ac_init_help"; then
1089  case $ac_init_help in
1090     short | recursive ) echo "Configuration of Clp 1.15:";;
1091   esac
1092  cat <<\_ACEOF
1093
1094Optional Features:
1095  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1096  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1097  --enable-debug          compile all projects with debug options tests
1098                          (implies --disable-shared)
1099  --enable-debug-clp compile project Clp with debug compiler flags
1100
1101  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1102  --enable-static[=PKGS]
1103                          build static libraries [default=no]
1104  --disable-dependency-tracking  speeds up one-time build
1105  --enable-dependency-tracking   do not reject slow dependency extractors
1106  --enable-maintainer-mode  enable make rules and dependencies not useful
1107                          (and sometimes confusing) to the casual installer
1108  --enable-shared[=PKGS]
1109                          build shared libraries [default=yes]
1110  --enable-fast-install[=PKGS]
1111                          optimize for fast installation [default=yes]
1112  --disable-libtool-lock  avoid locking (might break parallel builds)
1113  --disable-pkg-config    disable use of pkg-config (if available)
1114  --disable-interpackage-dependencies
1115                          disables deduction of Makefile dependencies from
1116                          package linker flags
1117  --enable-aboca          enables build of Aboca solver (set to 1,2,3,4)
1118  --disable-amd-libcheck skip the link check at configuration time
1119  --disable-cholmod-libcheck
1120                          skip the link check at configuration time
1121  --enable-gnu-packages   compile with GNU packages (disabled by default)
1122
1123Optional Packages:
1124  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1125  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1126  --with-clp-verbosity specify the debug verbosity level for project Clp
1127  --with-clp-checklevel specify the sanity check level for project Clp
1128  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1129  --with-pic              try to use only PIC/non-PIC objects [default=use
1130                          both]
1131  --with-tags[=TAGS]
1132                          include additional configurations [automatic]
1133  --with-coin-instdir     prefix of installation directory for precompiled
1134                          COIN packages
1135
1136  --with-coinutils-lib linker flags for using package CoinUtils
1137  --with-coinutils-incdir directory with header files for using package
1138                          CoinUtils
1139  --with-coinutils-datadir
1140                          directory with data files for using package
1141                          CoinUtils
1142  --with-osi-lib linker flags for using package Osi
1143  --with-osi-incdir directory with header files for using package Osi
1144  --with-osi-datadir directory with data files for using package Osi
1145  --with-ositests-lib linker flags for using package OsiTests
1146  --with-ositests-incdir directory with header files for using package
1147                          OsiTests
1148  --with-ositests-datadir directory with data files for using package OsiTests
1149  --with-sample-lib linker flags for using package Sample
1150  --with-sample-incdir directory with header files for using package Sample
1151  --with-sample-datadir directory with data files for using package Sample
1152  --with-netlib-lib linker flags for using package Netlib
1153  --with-netlib-incdir directory with header files for using package Netlib
1154  --with-netlib-datadir directory with data files for using package Netlib
1155  --with-amd-incdir specify the header file directory for library AMD
1156  --with-amd-lib specify the flags used to link with the library AMD
1157  --with-cholmod-incdir specify the header file directory for library CHOLMOD
1158  --with-cholmod-lib specify the flags used to link with the library CHOLMOD
1159  --with-glpk-lib linker flags for using package Glpk
1160  --with-glpk-incdir directory with header files for using package Glpk
1161  --with-glpk-datadir directory with data files for using package Glpk
1162  --with-mumps-lib linker flags for using package Mumps
1163  --with-mumps-incdir directory with header files for using package Mumps
1164  --with-mumps-datadir directory with data files for using package Mumps
1165  --with-wsmp             specify WSMP library
1166  --with-blas             specify BLAS library (or BUILD to enforce use of
1167                          ThirdParty/Blas)
1168  --with-blas-lib linker flags for using package Blas
1169  --with-blas-incdir directory with header files for using package Blas
1170  --with-blas-datadir directory with data files for using package Blas
1171  --with-dot              use dot (from graphviz) when creating documentation
1172                          with doxygen if available; --without-dot to disable
1173
1174Some influential environment variables:
1175  CDEFS       Additional -D flags to be used when compiling C code.
1176  ADD_CFLAGS  Additional C compiler options
1177  DBG_CFLAGS  Debug C compiler options
1178  OPT_CFLAGS  Optimize C compiler options
1179  CC          C compiler command
1180  CFLAGS      C compiler flags
1181  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1182              nonstandard directory <lib dir>
1183  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1184              headers in a nonstandard directory <include dir>
1185  MPICC       C MPI Compiler
1186  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1187  ADD_CXXFLAGS
1188              Additional C++ compiler options
1189  DBG_CXXFLAGS
1190              Debug C++ compiler options
1191  OPT_CXXFLAGS
1192              Optimize C++ compiler options
1193  CXX         C++ compiler command
1194  CXXFLAGS    C++ compiler flags
1195  MPICXX      C++ MPI Compiler
1196  CPP         C preprocessor
1197  CXXCPP      C++ preprocessor
1198  F77         Fortran 77 compiler command
1199  FFLAGS      Fortran 77 compiler flags
1200  PKG_CONFIG  path to pkg-config utility
1201  ADD_FFLAGS  Additional Fortran compiler options
1202  DBG_FFLAGS  Debug Fortran compiler options
1203  OPT_FFLAGS  Optimize Fortran compiler options
1204  MPIF77      Fortran MPI Compiler
1205
1206Use these variables to override the choices made by `configure' or to help
1207it to find libraries and programs with nonstandard names/locations.
1208
1209Report bugs to <clp@list.coin-or.org>.
1210_ACEOF
1211fi
1212
1213if test "$ac_init_help" = "recursive"; then
1214  # If there are subdirs, report their specific --help.
1215  ac_popdir=`pwd`
1216  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1217    test -d $ac_dir || continue
1218    ac_builddir=.
1219
1220if test "$ac_dir" != .; then
1221  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1222  # A "../" for each directory in $ac_dir_suffix.
1223  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1224else
1225  ac_dir_suffix= ac_top_builddir=
1226fi
1227
1228case $srcdir in
1229  .)  # No --srcdir option.  We are building in place.
1230    ac_srcdir=.
1231    if test -z "$ac_top_builddir"; then
1232       ac_top_srcdir=.
1233    else
1234       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1235    fi ;;
1236  [\\/]* | ?:[\\/]* )  # Absolute path.
1237    ac_srcdir=$srcdir$ac_dir_suffix;
1238    ac_top_srcdir=$srcdir ;;
1239  *) # Relative path.
1240    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1241    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1242esac
1243
1244# Do not use `cd foo && pwd` to compute absolute paths, because
1245# the directories may not exist.
1246case `pwd` in
1247.) ac_abs_builddir="$ac_dir";;
1248*)
1249  case "$ac_dir" in
1250  .) ac_abs_builddir=`pwd`;;
1251  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1252  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1253  esac;;
1254esac
1255case $ac_abs_builddir in
1256.) ac_abs_top_builddir=${ac_top_builddir}.;;
1257*)
1258  case ${ac_top_builddir}. in
1259  .) ac_abs_top_builddir=$ac_abs_builddir;;
1260  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1261  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1262  esac;;
1263esac
1264case $ac_abs_builddir in
1265.) ac_abs_srcdir=$ac_srcdir;;
1266*)
1267  case $ac_srcdir in
1268  .) ac_abs_srcdir=$ac_abs_builddir;;
1269  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1270  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1271  esac;;
1272esac
1273case $ac_abs_builddir in
1274.) ac_abs_top_srcdir=$ac_top_srcdir;;
1275*)
1276  case $ac_top_srcdir in
1277  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1278  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1279  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1280  esac;;
1281esac
1282
1283    cd $ac_dir
1284    # Check for guested configure; otherwise get Cygnus style configure.
1285    if test -f $ac_srcdir/configure.gnu; then
1286      echo
1287      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1288    elif test -f $ac_srcdir/configure; then
1289      echo
1290      $SHELL $ac_srcdir/configure  --help=recursive
1291    elif test -f $ac_srcdir/configure.ac ||
1292           test -f $ac_srcdir/configure.in; then
1293      echo
1294      $ac_configure --help
1295    else
1296      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1297    fi
1298    cd $ac_popdir
1299  done
1300fi
1301
1302test -n "$ac_init_help" && exit 0
1303if $ac_init_version; then
1304  cat <<\_ACEOF
1305Clp configure 1.15
1306generated by GNU Autoconf 2.59
1307
1308Copyright (C) 2003 Free Software Foundation, Inc.
1309This configure script is free software; the Free Software Foundation
1310gives unlimited permission to copy, distribute and modify it.
1311
1312
1313Copyright 2006 International Business Machines and others.
1314All Rights Reserved.
1315This file is part of the open source package Coin which is distributed
1316under the Eclipse Public License.
1317_ACEOF
1318  exit 0
1319fi
1320exec 5>config.log
1321cat >&5 <<_ACEOF
1322This file contains any messages produced by compilers while
1323running configure, to aid debugging if configure makes a mistake.
1324
1325It was created by Clp $as_me 1.15, which was
1326generated by GNU Autoconf 2.59.  Invocation command line was
1327
1328  $ $0 $@
1329
1330_ACEOF
1331{
1332cat <<_ASUNAME
1333## --------- ##
1334## Platform. ##
1335## --------- ##
1336
1337hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1338uname -m = `(uname -m) 2>/dev/null || echo unknown`
1339uname -r = `(uname -r) 2>/dev/null || echo unknown`
1340uname -s = `(uname -s) 2>/dev/null || echo unknown`
1341uname -v = `(uname -v) 2>/dev/null || echo unknown`
1342
1343/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1344/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1345
1346/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1347/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1348/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1349hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1350/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1351/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1352/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1353
1354_ASUNAME
1355
1356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1357for as_dir in $PATH
1358do
1359  IFS=$as_save_IFS
1360  test -z "$as_dir" && as_dir=.
1361  echo "PATH: $as_dir"
1362done
1363
1364} >&5
1365
1366cat >&5 <<_ACEOF
1367
1368
1369## ----------- ##
1370## Core tests. ##
1371## ----------- ##
1372
1373_ACEOF
1374
1375
1376# Keep a trace of the command line.
1377# Strip out --no-create and --no-recursion so they do not pile up.
1378# Strip out --silent because we don't want to record it for future runs.
1379# Also quote any args containing shell meta-characters.
1380# Make two passes to allow for proper duplicate-argument suppression.
1381ac_configure_args=
1382ac_configure_args0=
1383ac_configure_args1=
1384ac_sep=
1385ac_must_keep_next=false
1386for ac_pass in 1 2
1387do
1388  for ac_arg
1389  do
1390    case $ac_arg in
1391    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1392    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1393    | -silent | --silent | --silen | --sile | --sil)
1394      continue ;;
1395    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1396      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1397    esac
1398    case $ac_pass in
1399    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1400    2)
1401      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1402      if test $ac_must_keep_next = true; then
1403        ac_must_keep_next=false # Got value, back to normal.
1404      else
1405        case $ac_arg in
1406          *=* | --config-cache | -C | -disable-* | --disable-* \
1407          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1408          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1409          | -with-* | --with-* | -without-* | --without-* | --x)
1410            case "$ac_configure_args0 " in
1411              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1412            esac
1413            ;;
1414          -* ) ac_must_keep_next=true ;;
1415        esac
1416      fi
1417      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1418      # Get rid of the leading space.
1419      ac_sep=" "
1420      ;;
1421    esac
1422  done
1423done
1424$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1425$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1426
1427# When interrupted or exit'd, cleanup temporary files, and complete
1428# config.log.  We remove comments because anyway the quotes in there
1429# would cause problems or look ugly.
1430# WARNING: Be sure not to use single quotes in there, as some shells,
1431# such as our DU 5.0 friend, will then `close' the trap.
1432trap 'exit_status=$?
1433  # Save into config.log some information that might help in debugging.
1434  {
1435    echo
1436
1437    cat <<\_ASBOX
1438## ---------------- ##
1439## Cache variables. ##
1440## ---------------- ##
1441_ASBOX
1442    echo
1443    # The following way of writing the cache mishandles newlines in values,
1444{
1445  (set) 2>&1 |
1446    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1447    *ac_space=\ *)
1448      sed -n \
1449        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1450          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1451      ;;
1452    *)
1453      sed -n \
1454        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1455      ;;
1456    esac;
1457}
1458    echo
1459
1460    cat <<\_ASBOX
1461## ----------------- ##
1462## Output variables. ##
1463## ----------------- ##
1464_ASBOX
1465    echo
1466    for ac_var in $ac_subst_vars
1467    do
1468      eval ac_val=$`echo $ac_var`
1469      echo "$ac_var='"'"'$ac_val'"'"'"
1470    done | sort
1471    echo
1472
1473    if test -n "$ac_subst_files"; then
1474      cat <<\_ASBOX
1475## ------------- ##
1476## Output files. ##
1477## ------------- ##
1478_ASBOX
1479      echo
1480      for ac_var in $ac_subst_files
1481      do
1482        eval ac_val=$`echo $ac_var`
1483        echo "$ac_var='"'"'$ac_val'"'"'"
1484      done | sort
1485      echo
1486    fi
1487
1488    if test -s confdefs.h; then
1489      cat <<\_ASBOX
1490## ----------- ##
1491## confdefs.h. ##
1492## ----------- ##
1493_ASBOX
1494      echo
1495      sed "/^$/d" confdefs.h | sort
1496      echo
1497    fi
1498    test "$ac_signal" != 0 &&
1499      echo "$as_me: caught signal $ac_signal"
1500    echo "$as_me: exit $exit_status"
1501  } >&5
1502  rm -f core *.core &&
1503  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1504    exit $exit_status
1505     ' 0
1506for ac_signal in 1 2 13 15; do
1507  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1508done
1509ac_signal=0
1510
1511# confdefs.h avoids OS command line length limits that DEFS can exceed.
1512rm -rf conftest* confdefs.h
1513# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1514echo >confdefs.h
1515
1516# Predefined preprocessor variables.
1517
1518cat >>confdefs.h <<_ACEOF
1519#define PACKAGE_NAME "$PACKAGE_NAME"
1520_ACEOF
1521
1522
1523cat >>confdefs.h <<_ACEOF
1524#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1525_ACEOF
1526
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_VERSION "$PACKAGE_VERSION"
1530_ACEOF
1531
1532
1533cat >>confdefs.h <<_ACEOF
1534#define PACKAGE_STRING "$PACKAGE_STRING"
1535_ACEOF
1536
1537
1538cat >>confdefs.h <<_ACEOF
1539#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1540_ACEOF
1541
1542
1543# Let the site file select an alternate cache file if it wants to.
1544# Prefer explicitly selected file to automatically selected ones.
1545if test -z "$CONFIG_SITE"; then
1546  if test "x$prefix" != xNONE; then
1547    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1548  else
1549    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1550  fi
1551fi
1552for ac_site_file in $CONFIG_SITE; do
1553  if test -r "$ac_site_file"; then
1554    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1555echo "$as_me: loading site script $ac_site_file" >&6;}
1556    sed 's/^/| /' "$ac_site_file" >&5
1557    . "$ac_site_file"
1558  fi
1559done
1560
1561if test -r "$cache_file"; then
1562  # Some versions of bash will fail to source /dev/null (special
1563  # files actually), so we avoid doing that.
1564  if test -f "$cache_file"; then
1565    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1566echo "$as_me: loading cache $cache_file" >&6;}
1567    case $cache_file in
1568      [\\/]* | ?:[\\/]* ) . $cache_file;;
1569      *)                      . ./$cache_file;;
1570    esac
1571  fi
1572else
1573  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1574echo "$as_me: creating cache $cache_file" >&6;}
1575  >$cache_file
1576fi
1577
1578# Check that the precious variables saved in the cache have kept the same
1579# value.
1580ac_cache_corrupted=false
1581for ac_var in `(set) 2>&1 |
1582               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1583  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1584  eval ac_new_set=\$ac_env_${ac_var}_set
1585  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1586  eval ac_new_val="\$ac_env_${ac_var}_value"
1587  case $ac_old_set,$ac_new_set in
1588    set,)
1589      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1590echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1591      ac_cache_corrupted=: ;;
1592    ,set)
1593      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1594echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1595      ac_cache_corrupted=: ;;
1596    ,);;
1597    *)
1598      if test "x$ac_old_val" != "x$ac_new_val"; then
1599        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1600echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1601        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1602echo "$as_me:   former value:  $ac_old_val" >&2;}
1603        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1604echo "$as_me:   current value: $ac_new_val" >&2;}
1605        ac_cache_corrupted=:
1606      fi;;
1607  esac
1608  # Pass precious variables to config.status.
1609  if test "$ac_new_set" = set; then
1610    case $ac_new_val in
1611    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1612      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1613    *) ac_arg=$ac_var=$ac_new_val ;;
1614    esac
1615    case " $ac_configure_args " in
1616      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1617      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1618    esac
1619  fi
1620done
1621if $ac_cache_corrupted; then
1622  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1623echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1624  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1625echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1626   { (exit 1); exit 1; }; }
1627fi
1628
1629ac_ext=c
1630ac_cpp='$CPP $CPPFLAGS'
1631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664# List one file in the package so that the configure script can test
1665# whether the package is actually there
1666
1667
1668# Where should everything be installed by default?  Here, we want it
1669# to be installed directly in 'bin', 'lib', 'include' subdirectories
1670# of the directory where configure is run.  The default would be
1671# /usr/local.
1672
1673
1674#############################################################################
1675#                         Standard build tool stuff                         #
1676#############################################################################
1677
1678# Get the system type
1679ac_aux_dir=
1680for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1681  if test -f $ac_dir/install-sh; then
1682    ac_aux_dir=$ac_dir
1683    ac_install_sh="$ac_aux_dir/install-sh -c"
1684    break
1685  elif test -f $ac_dir/install.sh; then
1686    ac_aux_dir=$ac_dir
1687    ac_install_sh="$ac_aux_dir/install.sh -c"
1688    break
1689  elif test -f $ac_dir/shtool; then
1690    ac_aux_dir=$ac_dir
1691    ac_install_sh="$ac_aux_dir/shtool install -c"
1692    break
1693  fi
1694done
1695if test -z "$ac_aux_dir"; then
1696  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1697echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1698   { (exit 1); exit 1; }; }
1699fi
1700ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1701ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1702ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1703
1704# Make sure we can run config.sub.
1705$ac_config_sub sun4 >/dev/null 2>&1 ||
1706  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1707echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1708   { (exit 1); exit 1; }; }
1709
1710echo "$as_me:$LINENO: checking build system type" >&5
1711echo $ECHO_N "checking build system type... $ECHO_C" >&6
1712if test "${ac_cv_build+set}" = set; then
1713  echo $ECHO_N "(cached) $ECHO_C" >&6
1714else
1715  ac_cv_build_alias=$build_alias
1716test -z "$ac_cv_build_alias" &&
1717  ac_cv_build_alias=`$ac_config_guess`
1718test -z "$ac_cv_build_alias" &&
1719  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1720echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1721   { (exit 1); exit 1; }; }
1722ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1723  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1724echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1725   { (exit 1); exit 1; }; }
1726
1727fi
1728echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1729echo "${ECHO_T}$ac_cv_build" >&6
1730build=$ac_cv_build
1731build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1732build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1733build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1734
1735
1736
1737# If this project depends on external projects, the Externals file in
1738# the source root directory contains definition of where to find those
1739# externals.  The following macro ensures that those externals are
1740# retrieved by svn if they are not there yet.
1741
1742# As backup, we make sure we don't loose an FLIBS if it has been set
1743# by the user
1744save_FLIBS="$FLIBS"
1745
1746# A useful makefile conditional that is always false
1747
1748
1749if false; then
1750  ALWAYS_FALSE_TRUE=
1751  ALWAYS_FALSE_FALSE='#'
1752else
1753  ALWAYS_FALSE_TRUE='#'
1754  ALWAYS_FALSE_FALSE=
1755fi
1756
1757
1758# We set the following variable so that we know later in AC_COIN_FINALIZE
1759# that we are in a project main directory
1760coin_projectdir=yes
1761
1762# Set the project's version numbers
1763
1764
1765cat >>confdefs.h <<_ACEOF
1766#define CLP_VERSION "$PACKAGE_VERSION"
1767_ACEOF
1768
1769
1770  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1771  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1772  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1773  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1774  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1775  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1776
1777cat >>confdefs.h <<_ACEOF
1778#define CLP_VERSION_MAJOR $coin_majorver
1779_ACEOF
1780
1781
1782cat >>confdefs.h <<_ACEOF
1783#define CLP_VERSION_MINOR $coin_minorver
1784_ACEOF
1785
1786
1787cat >>confdefs.h <<_ACEOF
1788#define CLP_VERSION_RELEASE $coin_releasever
1789_ACEOF
1790
1791
1792  # We use the following variable to have a string with the upper case
1793  # version of the project name
1794  COIN_PRJCT=CLP
1795
1796  # Set the project's SVN revision number. The complicated sed expression
1797  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1798  # as a single number.
1799  # Extract the first word of "svnversion", so it can be a program name with args.
1800set dummy svnversion; ac_word=$2
1801echo "$as_me:$LINENO: checking for $ac_word" >&5
1802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803if test "${ac_cv_prog_have_svnversion+set}" = set; then
1804  echo $ECHO_N "(cached) $ECHO_C" >&6
1805else
1806  if test -n "$have_svnversion"; then
1807  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1808else
1809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810for as_dir in $PATH
1811do
1812  IFS=$as_save_IFS
1813  test -z "$as_dir" && as_dir=.
1814  for ac_exec_ext in '' $ac_executable_extensions; do
1815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816    ac_cv_prog_have_svnversion="yes"
1817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818    break 2
1819  fi
1820done
1821done
1822
1823  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1824fi
1825fi
1826have_svnversion=$ac_cv_prog_have_svnversion
1827if test -n "$have_svnversion"; then
1828  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1829echo "${ECHO_T}$have_svnversion" >&6
1830else
1831  echo "$as_me:$LINENO: result: no" >&5
1832echo "${ECHO_T}no" >&6
1833fi
1834
1835  if test "x$have_svnversion" = xyes; then
1836
1837    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1838    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1839      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1840
1841cat >>confdefs.h <<_ACEOF
1842#define CLP_SVN_REV $CLP_SVN_REV
1843_ACEOF
1844
1845    fi
1846  fi
1847
1848
1849
1850# Capture libtool library version, if given.
1851
1852
1853
1854
1855# Check if user wants to produce debugging code
1856
1857echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1858echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1859
1860# Check whether --enable-debug or --disable-debug was given.
1861if test "${enable_debug+set}" = set; then
1862  enableval="$enable_debug"
1863  case "${enableval}" in
1864   yes) coin_debug_compile=true
1865        if test "${enable_shared+set}" = set; then :; else
1866          enable_shared=no
1867        fi
1868        ;;
1869   no)  coin_debug_compile=false
1870        ;;
1871   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1872echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1873   { (exit 1); exit 1; }; }
1874        ;;
1875esac
1876else
1877  coin_debug_compile=false
1878fi;
1879
1880# Check whether --enable-debug-clp or --disable-debug-clp was given.
1881if test "${enable_debug_clp+set}" = set; then
1882  enableval="$enable_debug_clp"
1883  case "${enableval}" in
1884    yes) coin_debug_compile=true
1885         ;;
1886    no)  coin_debug_compile=false
1887         ;;
1888    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1889echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1890   { (exit 1); exit 1; }; }
1891         ;;
1892 esac
1893else
1894  :
1895fi;
1896
1897 # m4_ifvaln([Clp],
1898
1899if test $coin_debug_compile = true; then
1900  echo "$as_me:$LINENO: result: yes" >&5
1901echo "${ECHO_T}yes" >&6
1902else
1903  echo "$as_me:$LINENO: result: no" >&5
1904echo "${ECHO_T}no" >&6
1905fi
1906
1907
1908# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1909if test "${with_clp_verbosity+set}" = set; then
1910  withval="$with_clp_verbosity"
1911  if test "$withval" = yes; then
1912                withval=1
1913              fi
1914              coin_clp_verbosity=$withval
1915else
1916  coin_clp_verbosity=0
1917fi;
1918
1919cat >>confdefs.h <<_ACEOF
1920#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1921_ACEOF
1922
1923
1924
1925# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1926if test "${with_clp_checklevel+set}" = set; then
1927  withval="$with_clp_checklevel"
1928  if test "$withval" = yes; then
1929                withval=1
1930              fi
1931              coin_clp_checklevel=$withval
1932else
1933  coin_clp_checklevel=0
1934fi;
1935
1936cat >>confdefs.h <<_ACEOF
1937#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1938_ACEOF
1939
1940
1941 # m4_ifvaln([Clp],
1942
1943
1944
1945# Get the name of the C++ compiler and appropriate compiler options
1946
1947
1948  # for backward compatibility
1949  # Check whether --enable-doscompile or --disable-doscompile was given.
1950if test "${enable_doscompile+set}" = set; then
1951  enableval="$enable_doscompile"
1952  enable_doscompile=$enableval
1953else
1954  enable_doscompile=no
1955fi;
1956
1957  # Check whether --enable-msvc or --disable-msvc was given.
1958if test "${enable_msvc+set}" = set; then
1959  enableval="$enable_msvc"
1960  enable_msvc=$enableval
1961else
1962  enable_msvc=no
1963     if test "$enable_doscompile" = msvc ; then
1964       enable_msvc=yes
1965     elif test "$enable_doscompile" != no ; then
1966       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1967echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1968   { (exit 1); exit 1; }; }
1969     fi
1970
1971fi;
1972
1973  if test "$enable_msvc" = MD; then
1974    enable_shared=yes
1975    enable_msvc=yes
1976  fi
1977
1978  if test "$enable_msvc" = yes; then
1979    case $build in
1980      *-cygwin* | *-mingw*) ;;
1981      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1982echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1983   { (exit 1); exit 1; }; } ;;
1984    esac
1985  fi
1986
1987
1988 case $build in
1989  *-mingw*)
1990    if test "${LD+set}" = set; then :; else
1991      LD=link
1992    fi
1993    ;;
1994 esac
1995 if test $enable_msvc = yes ; then
1996   if test "x${LD+set}" = xset; then :; else
1997     LD=link
1998   fi
1999 fi
2000
2001
2002
2003
2004ac_ext=c
2005ac_cpp='$CPP $CPPFLAGS'
2006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009
2010
2011# For consistency, we set the C compiler to the same value of the C++
2012# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2013if test x"$CXX" != x; then
2014  case "$CXX" in
2015    clang* ) ;;
2016    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2017      if test x"$CC" = x; then
2018        CC="$CXX"
2019        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2020echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2021      fi
2022      ;;
2023  esac
2024fi
2025
2026
2027
2028
2029
2030
2031coin_has_cc=yes
2032
2033save_cflags="$CFLAGS"
2034
2035# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2036# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2037# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2038# compiler. In this case, put cc after gcc.
2039
2040case $build in
2041  *-cygwin* | *-mingw*)
2042             if test "$enable_msvc" = yes ; then
2043               comps="icl cl gcc"
2044             else
2045               comps="gcc icl cl"
2046             fi ;;
2047  *-*-solaris*)
2048             # Extract the first word of "cc", so it can be a program name with args.
2049set dummy cc; ac_word=$2
2050echo "$as_me:$LINENO: checking for $ac_word" >&5
2051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2053  echo $ECHO_N "(cached) $ECHO_C" >&6
2054else
2055  if test -n "$sol_cc_compiler"; then
2056  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2057else
2058  ac_prog_rejected=no
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062  IFS=$as_save_IFS
2063  test -z "$as_dir" && as_dir=.
2064  for ac_exec_ext in '' $ac_executable_extensions; do
2065  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2067       ac_prog_rejected=yes
2068       continue
2069     fi
2070    ac_cv_prog_sol_cc_compiler="cc"
2071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072    break 2
2073  fi
2074done
2075done
2076
2077if test $ac_prog_rejected = yes; then
2078  # We found a bogon in the path, so make sure we never use it.
2079  set dummy $ac_cv_prog_sol_cc_compiler
2080  shift
2081  if test $# != 0; then
2082    # We chose a different compiler from the bogus one.
2083    # However, it has the same basename, so the bogon will be chosen
2084    # first if we set sol_cc_compiler to just the basename; use the full file name.
2085    shift
2086    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2087  fi
2088fi
2089fi
2090fi
2091sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2092if test -n "$sol_cc_compiler"; then
2093  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2094echo "${ECHO_T}$sol_cc_compiler" >&6
2095else
2096  echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6
2098fi
2099
2100             if test "$sol_cc_compiler" = "cc" ; then
2101               comps="cc xlc gcc pgcc icc"
2102             else
2103               comps="xlc gcc pgcc icc cc"
2104             fi
2105             ;;
2106  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2107  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2108  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2109esac
2110
2111# We delete the cached value, since the test might not have been
2112# performed with our choice of compilers earlier
2113$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2114# AC_MSG_NOTICE([C compiler candidates: $comps])
2115ac_ext=c
2116ac_cpp='$CPP $CPPFLAGS'
2117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120if test -n "$ac_tool_prefix"; then
2121  for ac_prog in $comps
2122  do
2123    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2125echo "$as_me:$LINENO: checking for $ac_word" >&5
2126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127if test "${ac_cv_prog_CC+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  if test -n "$CC"; then
2131  ac_cv_prog_CC="$CC" # Let the user override the test.
2132else
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136  IFS=$as_save_IFS
2137  test -z "$as_dir" && as_dir=.
2138  for ac_exec_ext in '' $ac_executable_extensions; do
2139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142    break 2
2143  fi
2144done
2145done
2146
2147fi
2148fi
2149CC=$ac_cv_prog_CC
2150if test -n "$CC"; then
2151  echo "$as_me:$LINENO: result: $CC" >&5
2152echo "${ECHO_T}$CC" >&6
2153else
2154  echo "$as_me:$LINENO: result: no" >&5
2155echo "${ECHO_T}no" >&6
2156fi
2157
2158    test -n "$CC" && break
2159  done
2160fi
2161if test -z "$CC"; then
2162  ac_ct_CC=$CC
2163  for ac_prog in $comps
2164do
2165  # Extract the first word of "$ac_prog", so it can be a program name with args.
2166set dummy $ac_prog; ac_word=$2
2167echo "$as_me:$LINENO: checking for $ac_word" >&5
2168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2169if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2170  echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
2172  if test -n "$ac_ct_CC"; then
2173  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2174else
2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2177do
2178  IFS=$as_save_IFS
2179  test -z "$as_dir" && as_dir=.
2180  for ac_exec_ext in '' $ac_executable_extensions; do
2181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2182    ac_cv_prog_ac_ct_CC="$ac_prog"
2183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184    break 2
2185  fi
2186done
2187done
2188
2189fi
2190fi
2191ac_ct_CC=$ac_cv_prog_ac_ct_CC
2192if test -n "$ac_ct_CC"; then
2193  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2194echo "${ECHO_T}$ac_ct_CC" >&6
2195else
2196  echo "$as_me:$LINENO: result: no" >&5
2197echo "${ECHO_T}no" >&6
2198fi
2199
2200  test -n "$ac_ct_CC" && break
2201done
2202
2203  CC=$ac_ct_CC
2204fi
2205
2206
2207test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: no acceptable C compiler found in \$PATH
2210See \`config.log' for more details." >&2;}
2211   { (exit 1); exit 1; }; }
2212
2213# Provide some information about the compiler.
2214echo "$as_me:$LINENO:" \
2215     "checking for C compiler version" >&5
2216ac_compiler=`set X $ac_compile; echo $2`
2217{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2218  (eval $ac_compiler --version </dev/null >&5) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }
2222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2223  (eval $ac_compiler -v </dev/null >&5) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }
2227{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2228  (eval $ac_compiler -V </dev/null >&5) 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }
2232
2233cat >conftest.$ac_ext <<_ACEOF
2234/* confdefs.h.  */
2235_ACEOF
2236cat confdefs.h >>conftest.$ac_ext
2237cat >>conftest.$ac_ext <<_ACEOF
2238/* end confdefs.h.  */
2239
2240int
2241main ()
2242{
2243
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248ac_clean_files_save=$ac_clean_files
2249ac_clean_files="$ac_clean_files a.out a.exe b.out"
2250# Try to create an executable without -o first, disregard a.out.
2251# It will help us diagnose broken compilers, and finding out an intuition
2252# of exeext.
2253echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2254echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2255ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2256if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2257  (eval $ac_link_default) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; then
2261  # Find the output, starting from the most likely.  This scheme is
2262# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2263# resort.
2264
2265# Be careful to initialize this variable, since it used to be cached.
2266# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2267ac_cv_exeext=
2268# b.out is created by i960 compilers.
2269for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2270do
2271  test -f "$ac_file" || continue
2272  case $ac_file in
2273    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2274        ;;
2275    conftest.$ac_ext )
2276        # This is the source file.
2277        ;;
2278    [ab].out )
2279        # We found the default executable, but exeext='' is most
2280        # certainly right.
2281        break;;
2282    *.* )
2283        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284        # FIXME: I believe we export ac_cv_exeext for Libtool,
2285        # but it would be cool to find out if it's true.  Does anybody
2286        # maintain Libtool? --akim.
2287        export ac_cv_exeext
2288        break;;
2289    * )
2290        break;;
2291  esac
2292done
2293else
2294  echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298See \`config.log' for more details." >&5
2299echo "$as_me: error: C compiler cannot create executables
2300See \`config.log' for more details." >&2;}
2301   { (exit 77); exit 77; }; }
2302fi
2303
2304ac_exeext=$ac_cv_exeext
2305echo "$as_me:$LINENO: result: $ac_file" >&5
2306echo "${ECHO_T}$ac_file" >&6
2307
2308# Check the compiler produces executables we can run.  If not, either
2309# the compiler is broken, or we cross compile.
2310echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2312# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313# If not cross compiling, check that we can run a simple program.
2314if test "$cross_compiling" != yes; then
2315  if { ac_try='./$ac_file'
2316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317  (eval $ac_try) 2>&5
2318  ac_status=$?
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); }; }; then
2321    cross_compiling=no
2322  else
2323    if test "$cross_compiling" = maybe; then
2324        cross_compiling=yes
2325    else
2326        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2327If you meant to cross compile, use \`--host'.
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot run C compiled programs.
2330If you meant to cross compile, use \`--host'.
2331See \`config.log' for more details." >&2;}
2332   { (exit 1); exit 1; }; }
2333    fi
2334  fi
2335fi
2336echo "$as_me:$LINENO: result: yes" >&5
2337echo "${ECHO_T}yes" >&6
2338
2339rm -f a.out a.exe conftest$ac_cv_exeext b.out
2340ac_clean_files=$ac_clean_files_save
2341# Check the compiler produces executables we can run.  If not, either
2342# the compiler is broken, or we cross compile.
2343echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2344echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2345echo "$as_me:$LINENO: result: $cross_compiling" >&5
2346echo "${ECHO_T}$cross_compiling" >&6
2347
2348echo "$as_me:$LINENO: checking for suffix of executables" >&5
2349echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2351  (eval $ac_link) 2>&5
2352  ac_status=$?
2353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354  (exit $ac_status); }; then
2355  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2356# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2357# work properly (i.e., refer to `conftest.exe'), while it won't with
2358# `rm'.
2359for ac_file in conftest.exe conftest conftest.*; do
2360  test -f "$ac_file" || continue
2361  case $ac_file in
2362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2363    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2364          export ac_cv_exeext
2365          break;;
2366    * ) break;;
2367  esac
2368done
2369else
2370  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2371See \`config.log' for more details." >&5
2372echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2373See \`config.log' for more details." >&2;}
2374   { (exit 1); exit 1; }; }
2375fi
2376
2377rm -f conftest$ac_cv_exeext
2378echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2379echo "${ECHO_T}$ac_cv_exeext" >&6
2380
2381rm -f conftest.$ac_ext
2382EXEEXT=$ac_cv_exeext
2383ac_exeext=$EXEEXT
2384echo "$as_me:$LINENO: checking for suffix of object files" >&5
2385echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2386if test "${ac_cv_objext+set}" = set; then
2387  echo $ECHO_N "(cached) $ECHO_C" >&6
2388else
2389  cat >conftest.$ac_ext <<_ACEOF
2390/* confdefs.h.  */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h.  */
2395
2396int
2397main ()
2398{
2399
2400  ;
2401  return 0;
2402}
2403_ACEOF
2404rm -f conftest.o conftest.obj
2405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406  (eval $ac_compile) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; then
2410  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2411  case $ac_file in
2412    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2413    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2414       break;;
2415  esac
2416done
2417else
2418  echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2422See \`config.log' for more details." >&5
2423echo "$as_me: error: cannot compute suffix of object files: cannot compile
2424See \`config.log' for more details." >&2;}
2425   { (exit 1); exit 1; }; }
2426fi
2427
2428rm -f conftest.$ac_cv_objext conftest.$ac_ext
2429fi
2430echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2431echo "${ECHO_T}$ac_cv_objext" >&6
2432OBJEXT=$ac_cv_objext
2433ac_objext=$OBJEXT
2434echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2435echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2436if test "${ac_cv_c_compiler_gnu+set}" = set; then
2437  echo $ECHO_N "(cached) $ECHO_C" >&6
2438else
2439  cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h.  */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h.  */
2445
2446int
2447main ()
2448{
2449#ifndef __GNUC__
2450       choke me
2451#endif
2452
2453  ;
2454  return 0;
2455}
2456_ACEOF
2457rm -f conftest.$ac_objext
2458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459  (eval $ac_compile) 2>conftest.er1
2460  ac_status=$?
2461  grep -v '^ *+' conftest.er1 >conftest.err
2462  rm -f conftest.er1
2463  cat conftest.err >&5
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); } &&
2466         { ac_try='test -z "$ac_c_werror_flag"
2467                         || test ! -s conftest.err'
2468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469  (eval $ac_try) 2>&5
2470  ac_status=$?
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); }; } &&
2473         { ac_try='test -s conftest.$ac_objext'
2474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475  (eval $ac_try) 2>&5
2476  ac_status=$?
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); }; }; then
2479  ac_compiler_gnu=yes
2480else
2481  echo "$as_me: failed program was:" >&5
2482sed 's/^/| /' conftest.$ac_ext >&5
2483
2484ac_compiler_gnu=no
2485fi
2486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487ac_cv_c_compiler_gnu=$ac_compiler_gnu
2488
2489fi
2490echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2491echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2492GCC=`test $ac_compiler_gnu = yes && echo yes`
2493ac_test_CFLAGS=${CFLAGS+set}
2494ac_save_CFLAGS=$CFLAGS
2495CFLAGS="-g"
2496echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2497echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2498if test "${ac_cv_prog_cc_g+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h.  */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h.  */
2507
2508int
2509main ()
2510{
2511
2512  ;
2513  return 0;
2514}
2515_ACEOF
2516rm -f conftest.$ac_objext
2517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518  (eval $ac_compile) 2>conftest.er1
2519  ac_status=$?
2520  grep -v '^ *+' conftest.er1 >conftest.err
2521  rm -f conftest.er1
2522  cat conftest.err >&5
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); } &&
2525         { ac_try='test -z "$ac_c_werror_flag"
2526                         || test ! -s conftest.err'
2527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528  (eval $ac_try) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; } &&
2532         { ac_try='test -s conftest.$ac_objext'
2533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534  (eval $ac_try) 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }; }; then
2538  ac_cv_prog_cc_g=yes
2539else
2540  echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543ac_cv_prog_cc_g=no
2544fi
2545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546fi
2547echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2548echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2549if test "$ac_test_CFLAGS" = set; then
2550  CFLAGS=$ac_save_CFLAGS
2551elif test $ac_cv_prog_cc_g = yes; then
2552  if test "$GCC" = yes; then
2553    CFLAGS="-g -O2"
2554  else
2555    CFLAGS="-g"
2556  fi
2557else
2558  if test "$GCC" = yes; then
2559    CFLAGS="-O2"
2560  else
2561    CFLAGS=
2562  fi
2563fi
2564echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2565echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2566if test "${ac_cv_prog_cc_stdc+set}" = set; then
2567  echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
2569  ac_cv_prog_cc_stdc=no
2570ac_save_CC=$CC
2571cat >conftest.$ac_ext <<_ACEOF
2572/* confdefs.h.  */
2573_ACEOF
2574cat confdefs.h >>conftest.$ac_ext
2575cat >>conftest.$ac_ext <<_ACEOF
2576/* end confdefs.h.  */
2577#include <stdarg.h>
2578#include <stdio.h>
2579#include <sys/types.h>
2580#include <sys/stat.h>
2581/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2582struct buf { int x; };
2583FILE * (*rcsopen) (struct buf *, struct stat *, int);
2584static char *e (p, i)
2585     char **p;
2586     int i;
2587{
2588  return p[i];
2589}
2590static char *f (char * (*g) (char **, int), char **p, ...)
2591{
2592  char *s;
2593  va_list v;
2594  va_start (v,p);
2595  s = g (p, va_arg (v,int));
2596  va_end (v);
2597  return s;
2598}
2599
2600/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2601   function prototypes and stuff, but not '\xHH' hex character constants.
2602   These don't provoke an error unfortunately, instead are silently treated
2603   as 'x'.  The following induces an error, until -std1 is added to get
2604   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2605   array size at least.  It's necessary to write '\x00'==0 to get something
2606   that's true only with -std1.  */
2607int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2608
2609int test (int i, double x);
2610struct s1 {int (*f) (int a);};
2611struct s2 {int (*f) (double a);};
2612int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2613int argc;
2614char **argv;
2615int
2616main ()
2617{
2618return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2619  ;
2620  return 0;
2621}
2622_ACEOF
2623# Don't try gcc -ansi; that turns off useful extensions and
2624# breaks some systems' header files.
2625# AIX                   -qlanglvl=ansi
2626# Ultrix and OSF/1      -std1
2627# HP-UX 10.20 and later -Ae
2628# HP-UX older versions  -Aa -D_HPUX_SOURCE
2629# SVR4                  -Xc -D__EXTENSIONS__
2630for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2631do
2632  CC="$ac_save_CC $ac_arg"
2633  rm -f conftest.$ac_objext
2634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635  (eval $ac_compile) 2>conftest.er1
2636  ac_status=$?
2637  grep -v '^ *+' conftest.er1 >conftest.err
2638  rm -f conftest.er1
2639  cat conftest.err >&5
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); } &&
2642         { ac_try='test -z "$ac_c_werror_flag"
2643                         || test ! -s conftest.err'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; } &&
2649         { ac_try='test -s conftest.$ac_objext'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; }; then
2655  ac_cv_prog_cc_stdc=$ac_arg
2656break
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.err conftest.$ac_objext
2663done
2664rm -f conftest.$ac_ext conftest.$ac_objext
2665CC=$ac_save_CC
2666
2667fi
2668
2669case "x$ac_cv_prog_cc_stdc" in
2670  x|xno)
2671    echo "$as_me:$LINENO: result: none needed" >&5
2672echo "${ECHO_T}none needed" >&6 ;;
2673  *)
2674    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2675echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2676    CC="$CC $ac_cv_prog_cc_stdc" ;;
2677esac
2678
2679# Some people use a C++ compiler to compile C.  Since we use `exit',
2680# in C++ we need to declare it.  In case someone uses the same compiler
2681# for both compiling C and C++ we need to have the C++ compiler decide
2682# the declaration of exit, since it's the most demanding environment.
2683cat >conftest.$ac_ext <<_ACEOF
2684#ifndef __cplusplus
2685  choke me
2686#endif
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690  (eval $ac_compile) 2>conftest.er1
2691  ac_status=$?
2692  grep -v '^ *+' conftest.er1 >conftest.err
2693  rm -f conftest.er1
2694  cat conftest.err >&5
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); } &&
2697         { ac_try='test -z "$ac_c_werror_flag"
2698                         || test ! -s conftest.err'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; } &&
2704         { ac_try='test -s conftest.$ac_objext'
2705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706  (eval $ac_try) 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }; }; then
2710  for ac_declaration in \
2711   '' \
2712   'extern "C" void std::exit (int) throw (); using std::exit;' \
2713   'extern "C" void std::exit (int); using std::exit;' \
2714   'extern "C" void exit (int) throw ();' \
2715   'extern "C" void exit (int);' \
2716   'void exit (int);'
2717do
2718  cat >conftest.$ac_ext <<_ACEOF
2719/* confdefs.h.  */
2720_ACEOF
2721cat confdefs.h >>conftest.$ac_ext
2722cat >>conftest.$ac_ext <<_ACEOF
2723/* end confdefs.h.  */
2724$ac_declaration
2725#include <stdlib.h>
2726int
2727main ()
2728{
2729exit (42);
2730  ;
2731  return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736  (eval $ac_compile) 2>conftest.er1
2737  ac_status=$?
2738  grep -v '^ *+' conftest.er1 >conftest.err
2739  rm -f conftest.er1
2740  cat conftest.err >&5
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); } &&
2743         { ac_try='test -z "$ac_c_werror_flag"
2744                         || test ! -s conftest.err'
2745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746  (eval $ac_try) 2>&5
2747  ac_status=$?
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); }; } &&
2750         { ac_try='test -s conftest.$ac_objext'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; }; then
2756  :
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761continue
2762fi
2763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764  cat >conftest.$ac_ext <<_ACEOF
2765/* confdefs.h.  */
2766_ACEOF
2767cat confdefs.h >>conftest.$ac_ext
2768cat >>conftest.$ac_ext <<_ACEOF
2769/* end confdefs.h.  */
2770$ac_declaration
2771int
2772main ()
2773{
2774exit (42);
2775  ;
2776  return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781  (eval $ac_compile) 2>conftest.er1
2782  ac_status=$?
2783  grep -v '^ *+' conftest.er1 >conftest.err
2784  rm -f conftest.er1
2785  cat conftest.err >&5
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); } &&
2788         { ac_try='test -z "$ac_c_werror_flag"
2789                         || test ! -s conftest.err'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; } &&
2795         { ac_try='test -s conftest.$ac_objext'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; }; then
2801  break
2802else
2803  echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
2806fi
2807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808done
2809rm -f conftest*
2810if test -n "$ac_declaration"; then
2811  echo '#ifdef __cplusplus' >>confdefs.h
2812  echo $ac_declaration      >>confdefs.h
2813  echo '#endif'             >>confdefs.h
2814fi
2815
2816else
2817  echo "$as_me: failed program was:" >&5
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
2820fi
2821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2822ac_ext=c
2823ac_cpp='$CPP $CPPFLAGS'
2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827
2828if test -z "$CC" ; then
2829  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2830echo "$as_me: error: Failed to find a C compiler!" >&2;}
2831   { (exit 1); exit 1; }; }
2832fi
2833# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2834case "$CC" in
2835  clang* ) ;;
2836  cl* | */cl* | CL* | */CL* )
2837    if test "$ac_cv_prog_cc_g" = yes ; then
2838      ac_cv_prog_cc_g=no
2839      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2840echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2841    fi ;;
2842  * )
2843    if test x"$CYGPATH_W" = x ; then
2844      CYGPATH_W=echo
2845    fi
2846    ;;
2847esac
2848CFLAGS="$save_cflags"
2849
2850# add automake conditional so we can recognize cl compiler in makefile
2851coin_cc_is_cl=false
2852case "$CC" in
2853  clang* ) ;;
2854  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2855    coin_cc_is_cl=true
2856    ;;
2857esac
2858
2859
2860if test $coin_cc_is_cl = true; then
2861  COIN_CC_IS_CL_TRUE=
2862  COIN_CC_IS_CL_FALSE='#'
2863else
2864  COIN_CC_IS_CL_TRUE='#'
2865  COIN_CC_IS_CL_FALSE=
2866fi
2867
2868
2869# Check if a project specific CFLAGS variable has been set
2870if test x$COIN_PRJCT != x; then
2871  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2872  if test x$coin_tmp = xset; then
2873    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2874  fi
2875fi
2876
2877if test x"$CFLAGS" = x; then
2878
2879  coin_add_cflags=
2880  coin_opt_cflags=
2881  coin_dbg_cflags=
2882  coin_warn_cflags=
2883
2884  if test "$GCC" = "yes"; then
2885    case "$CC" in
2886      icc* | */icc*)
2887        ;;
2888      *)
2889        coin_opt_cflags="-O3"
2890        coin_add_cflags="-pipe"
2891        coin_dbg_cflags="-g -O0"
2892        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2893        case $build in
2894          *-darwin*)
2895            ;;
2896          *)
2897            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2898            ;;
2899        esac
2900    esac
2901  fi
2902  if test -z "$coin_opt_cflags"; then
2903    case $build in
2904      *-cygwin* | *-mingw*)
2905        case "$CC" in
2906          clang* ) ;;
2907          cl* | */cl* | CL* | */CL*)
2908            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2909              coin_opt_cflags='-MD -O2'
2910              coin_dbg_cflags='-MDd'
2911            else
2912              coin_opt_cflags='-MT -O2'
2913              coin_dbg_cflags='-MTd'
2914            fi
2915            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2916            ;;
2917          icl* | */icl* | ICL* | */ICL*)
2918            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2919              coin_opt_cflags='-MD -Ox'
2920              coin_dbg_cflags='-MDd -debug'
2921            else
2922              coin_opt_cflags='-MT -Ox'
2923              coin_dbg_cflags='-MTd -debug'
2924            fi
2925            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2926            ;;
2927        esac
2928        ;;
2929      *-linux-*)
2930        case "$CC" in
2931          icc* | */icc*)
2932            coin_opt_cflags="-O3 -ip -mp1"
2933            coin_add_cflags=""
2934            coin_dbg_cflags="-g"
2935            # Check if -i_dynamic is necessary (for new glibc library)
2936            CFLAGS=
2937            cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h.  */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h.  */
2943
2944int
2945main ()
2946{
2947int i=0; i++;
2948  ;
2949  return 0;
2950}
2951_ACEOF
2952rm -f conftest.$ac_objext conftest$ac_exeext
2953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2954  (eval $ac_link) 2>conftest.er1
2955  ac_status=$?
2956  grep -v '^ *+' conftest.er1 >conftest.err
2957  rm -f conftest.er1
2958  cat conftest.err >&5
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); } &&
2961         { ac_try='test -z "$ac_c_werror_flag"
2962                         || test ! -s conftest.err'
2963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964  (eval $ac_try) 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); }; } &&
2968         { ac_try='test -s conftest$ac_exeext'
2969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970  (eval $ac_try) 2>&5
2971  ac_status=$?
2972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973  (exit $ac_status); }; }; then
2974  :
2975else
2976  echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979coin_add_cflags="-i_dynamic $coin_add_cflags"
2980fi
2981rm -f conftest.err conftest.$ac_objext \
2982      conftest$ac_exeext conftest.$ac_ext
2983            ;;
2984          pgcc* | */pgcc*)
2985            coin_opt_cflags="-fast"
2986            coin_add_cflags="-Kieee -pc 64"
2987            coin_dbg_cflags="-g"
2988            ;;
2989        esac
2990        ;;
2991      *-ibm-*)
2992        case "$CC" in
2993          xlc* | */xlc* | mpxlc* | */mpxlc*)
2994            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2995            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2996            coin_dbg_cflags="-g"
2997          ;;
2998        esac
2999        ;;
3000      *-hp-*)
3001        coin_opt_cflags="-O"
3002        coin_add_cflags="-Ae"
3003        coin_dbg_cflags="-g"
3004        ;;
3005      *-*-solaris*)
3006        coin_opt_cflags="-xO4"
3007        coin_dbg_cflags="-g"
3008        ;;
3009      *-sgi-*)
3010        coin_opt_cflags="-O -OPT:Olimit=0"
3011        coin_dbg_cflags="-g"
3012        ;;
3013    esac
3014  fi
3015
3016  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3017    coin_dbg_cflags="-g"
3018  fi
3019
3020  if test -z "$coin_opt_cflags"; then
3021    # Try if -O option works if nothing else is set
3022    CFLAGS="-O"
3023    cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h.  */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h.  */
3029
3030int
3031main ()
3032{
3033int i=0; i++;
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext conftest$ac_exeext
3039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3040  (eval $ac_link) 2>conftest.er1
3041  ac_status=$?
3042  grep -v '^ *+' conftest.er1 >conftest.err
3043  rm -f conftest.er1
3044  cat conftest.err >&5
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } &&
3047         { ac_try='test -z "$ac_c_werror_flag"
3048                         || test ! -s conftest.err'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; } &&
3054         { ac_try='test -s conftest$ac_exeext'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; }; then
3060  coin_opt_cflags="-O"
3061else
3062  echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065fi
3066rm -f conftest.err conftest.$ac_objext \
3067      conftest$ac_exeext conftest.$ac_ext
3068  fi
3069
3070  # if PM doesn't want the warning messages, take them out
3071  if test x"$coin_skip_warn_cflags" = xyes; then
3072    coin_warn_cflags=
3073  fi
3074
3075  if test x${DBG_CFLAGS+set} != xset; then
3076    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3077  fi
3078  if test x${OPT_CFLAGS+set} != xset; then
3079    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3080  fi
3081
3082  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3083  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3084
3085  if test "$coin_debug_compile" = "true"; then
3086    CFLAGS="$DBG_CFLAGS"
3087  else
3088    CFLAGS="$OPT_CFLAGS"
3089  fi
3090else
3091  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3092  if test x${DBG_CFLAGS+set} != xset; then
3093    DBG_CFLAGS="$CFLAGS"
3094  fi
3095  if test x${OPT_CFLAGS+set} != xset; then
3096    OPT_CFLAGS="$CFLAGS"
3097  fi
3098fi
3099
3100# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3101if test x$COIN_PRJCT != x; then
3102  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3103fi
3104
3105# Try if CFLAGS works
3106save_CFLAGS="$CFLAGS"
3107cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h.  */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h.  */
3113
3114int
3115main ()
3116{
3117int i=0; i++;
3118  ;
3119  return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext conftest$ac_exeext
3123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3124  (eval $ac_link) 2>conftest.er1
3125  ac_status=$?
3126  grep -v '^ *+' conftest.er1 >conftest.err
3127  rm -f conftest.er1
3128  cat conftest.err >&5
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); } &&
3131         { ac_try='test -z "$ac_c_werror_flag"
3132                         || test ! -s conftest.err'
3133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134  (eval $ac_try) 2>&5
3135  ac_status=$?
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); }; } &&
3138         { ac_try='test -s conftest$ac_exeext'
3139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140  (eval $ac_try) 2>&5
3141  ac_status=$?
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); }; }; then
3144  :
3145else
3146  echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149CFLAGS=
3150fi
3151rm -f conftest.err conftest.$ac_objext \
3152      conftest$ac_exeext conftest.$ac_ext
3153if test -z "$CFLAGS"; then
3154  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3155echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3156  CFLAGS='-O'
3157  cat >conftest.$ac_ext <<_ACEOF
3158/* confdefs.h.  */
3159_ACEOF
3160cat confdefs.h >>conftest.$ac_ext
3161cat >>conftest.$ac_ext <<_ACEOF
3162/* end confdefs.h.  */
3163
3164int
3165main ()
3166{
3167int i=0; i++;
3168  ;
3169  return 0;
3170}
3171_ACEOF
3172rm -f conftest.$ac_objext conftest$ac_exeext
3173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174  (eval $ac_link) 2>conftest.er1
3175  ac_status=$?
3176  grep -v '^ *+' conftest.er1 >conftest.err
3177  rm -f conftest.er1
3178  cat conftest.err >&5
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); } &&
3181         { ac_try='test -z "$ac_c_werror_flag"
3182                         || test ! -s conftest.err'
3183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184  (eval $ac_try) 2>&5
3185  ac_status=$?
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }; } &&
3188         { ac_try='test -s conftest$ac_exeext'
3189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190  (eval $ac_try) 2>&5
3191  ac_status=$?
3192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193  (exit $ac_status); }; }; then
3194  :
3195else
3196  echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199CFLAGS=
3200fi
3201rm -f conftest.err conftest.$ac_objext \
3202      conftest$ac_exeext conftest.$ac_ext
3203  if test -z "$CFLAGS"; then
3204    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3205echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3206  fi
3207fi
3208
3209{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3210echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3211
3212
3213if test x"$MPICC" = x; then :; else
3214  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3215echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3216  CC="$MPICC"
3217fi
3218
3219# Correct the LD variable if we are using the MS or Intel-windows compiler
3220case "$CC" in
3221  clang* ) ;;
3222  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3223
3224 case $build in
3225  *-mingw*)
3226    if test "${LD+set}" = set; then :; else
3227      LD=link
3228    fi
3229    ;;
3230 esac
3231 if test $enable_msvc = yes ; then
3232   if test "x${LD+set}" = xset; then :; else
3233     LD=link
3234   fi
3235 fi
3236
3237    ;;
3238esac
3239
3240ac_ext=c
3241ac_cpp='$CPP $CPPFLAGS'
3242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245
3246
3247
3248 #Let's try if that overcomes configuration problem with VC++ 6.0
3249
3250ac_ext=cc
3251ac_cpp='$CXXCPP $CPPFLAGS'
3252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3255
3256
3257
3258
3259
3260
3261
3262coin_has_cxx=yes
3263
3264save_cxxflags="$CXXFLAGS"
3265# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3266case $build in
3267  *-cygwin* | *-mingw*)
3268      if test "$enable_msvc" = yes ; then
3269         comps="icl cl g++"
3270      else
3271         comps="g++ icl cl"
3272      fi ;;
3273  *-*-solaris*)
3274             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3275  *-darwin*) comps="g++ c++ CC" ;;
3276  *-linux-gnu*)
3277             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3278          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3279esac
3280
3281# We delete the cached value, since the test might not have been
3282# performed with our choice of compilers earlier
3283$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3284# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3285ac_ext=cc
3286ac_cpp='$CXXCPP $CPPFLAGS'
3287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3290if test -n "$ac_tool_prefix"; then
3291  for ac_prog in $CCC $comps
3292  do
3293    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3294set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3295echo "$as_me:$LINENO: checking for $ac_word" >&5
3296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297if test "${ac_cv_prog_CXX+set}" = set; then
3298  echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300  if test -n "$CXX"; then
3301  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308  for ac_exec_ext in '' $ac_executable_extensions; do
3309  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312    break 2
3313  fi
3314done
3315done
3316
3317fi
3318fi
3319CXX=$ac_cv_prog_CXX
3320if test -n "$CXX"; then
3321  echo "$as_me:$LINENO: result: $CXX" >&5
3322echo "${ECHO_T}$CXX" >&6
3323else
3324  echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326fi
3327
3328    test -n "$CXX" && break
3329  done
3330fi
3331if test -z "$CXX"; then
3332  ac_ct_CXX=$CXX
3333  for ac_prog in $CCC $comps
3334do
3335  # Extract the first word of "$ac_prog", so it can be a program name with args.
3336set dummy $ac_prog; ac_word=$2
3337echo "$as_me:$LINENO: checking for $ac_word" >&5
3338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3340  echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342  if test -n "$ac_ct_CXX"; then
3343  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3344else
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348  IFS=$as_save_IFS
3349  test -z "$as_dir" && as_dir=.
3350  for ac_exec_ext in '' $ac_executable_extensions; do
3351  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352    ac_cv_prog_ac_ct_CXX="$ac_prog"
3353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354    break 2
3355  fi
3356done
3357done
3358
3359fi
3360fi
3361ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3362if test -n "$ac_ct_CXX"; then
3363  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3364echo "${ECHO_T}$ac_ct_CXX" >&6
3365else
3366  echo "$as_me:$LINENO: result: no" >&5
3367echo "${ECHO_T}no" >&6
3368fi
3369
3370  test -n "$ac_ct_CXX" && break
3371done
3372test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3373
3374  CXX=$ac_ct_CXX
3375fi
3376
3377
3378# Provide some information about the compiler.
3379echo "$as_me:$LINENO:" \
3380     "checking for C++ compiler version" >&5
3381ac_compiler=`set X $ac_compile; echo $2`
3382{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3383  (eval $ac_compiler --version </dev/null >&5) 2>&5
3384  ac_status=$?
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); }
3387{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3388  (eval $ac_compiler -v </dev/null >&5) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }
3392{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3393  (eval $ac_compiler -V </dev/null >&5) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }
3397
3398echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3399echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3400if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3401  echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403  cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h.  */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h.  */
3409
3410int
3411main ()
3412{
3413#ifndef __GNUC__
3414       choke me
3415#endif
3416
3417  ;
3418  return 0;
3419}
3420_ACEOF
3421rm -f conftest.$ac_objext
3422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423  (eval $ac_compile) 2>conftest.er1
3424  ac_status=$?
3425  grep -v '^ *+' conftest.er1 >conftest.err
3426  rm -f conftest.er1
3427  cat conftest.err >&5
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); } &&
3430         { ac_try='test -z "$ac_cxx_werror_flag"
3431                         || test ! -s conftest.err'
3432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433  (eval $ac_try) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }; } &&
3437         { ac_try='test -s conftest.$ac_objext'
3438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439  (eval $ac_try) 2>&5
3440  ac_status=$?
3441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); }; }; then
3443  ac_compiler_gnu=yes
3444else
3445  echo "$as_me: failed program was:" >&5
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
3448ac_compiler_gnu=no
3449fi
3450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3452
3453fi
3454echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3455echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3456GXX=`test $ac_compiler_gnu = yes && echo yes`
3457ac_test_CXXFLAGS=${CXXFLAGS+set}
3458ac_save_CXXFLAGS=$CXXFLAGS
3459CXXFLAGS="-g"
3460echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3461echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3462if test "${ac_cv_prog_cxx_g+set}" = set; then
3463  echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465  cat >conftest.$ac_ext <<_ACEOF
3466/* confdefs.h.  */
3467_ACEOF
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h.  */
3471
3472int
3473main ()
3474{
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480rm -f conftest.$ac_objext
3481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482  (eval $ac_compile) 2>conftest.er1
3483  ac_status=$?
3484  grep -v '^ *+' conftest.er1 >conftest.err
3485  rm -f conftest.er1
3486  cat conftest.err >&5
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); } &&
3489         { ac_try='test -z "$ac_cxx_werror_flag"
3490                         || test ! -s conftest.err'
3491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492  (eval $ac_try) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; } &&
3496         { ac_try='test -s conftest.$ac_objext'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; }; then
3502  ac_cv_prog_cxx_g=yes
3503else
3504  echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507ac_cv_prog_cxx_g=no
3508fi
3509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510fi
3511echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3512echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3513if test "$ac_test_CXXFLAGS" = set; then
3514  CXXFLAGS=$ac_save_CXXFLAGS
3515elif test $ac_cv_prog_cxx_g = yes; then
3516  if test "$GXX" = yes; then
3517    CXXFLAGS="-g -O2"
3518  else
3519    CXXFLAGS="-g"
3520  fi
3521else
3522  if test "$GXX" = yes; then
3523    CXXFLAGS="-O2"
3524  else
3525    CXXFLAGS=
3526  fi
3527fi
3528for ac_declaration in \
3529   '' \
3530   'extern "C" void std::exit (int) throw (); using std::exit;' \
3531   'extern "C" void std::exit (int); using std::exit;' \
3532   'extern "C" void exit (int) throw ();' \
3533   'extern "C" void exit (int);' \
3534   'void exit (int);'
3535do
3536  cat >conftest.$ac_ext <<_ACEOF
3537/* confdefs.h.  */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h.  */
3542$ac_declaration
3543#include <stdlib.h>
3544int
3545main ()
3546{
3547exit (42);
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552rm -f conftest.$ac_objext
3553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3554  (eval $ac_compile) 2>conftest.er1
3555  ac_status=$?
3556  grep -v '^ *+' conftest.er1 >conftest.err
3557  rm -f conftest.er1
3558  cat conftest.err >&5
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); } &&
3561         { ac_try='test -z "$ac_cxx_werror_flag"
3562                         || test ! -s conftest.err'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; } &&
3568         { ac_try='test -s conftest.$ac_objext'
3569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570  (eval $ac_try) 2>&5
3571  ac_status=$?
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); }; }; then
3574  :
3575else
3576  echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579continue
3580fi
3581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3582  cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588$ac_declaration
3589int
3590main ()
3591{
3592exit (42);
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597rm -f conftest.$ac_objext
3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599  (eval $ac_compile) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606         { ac_try='test -z "$ac_cxx_werror_flag"
3607                         || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613         { ac_try='test -s conftest.$ac_objext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  break
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624fi
3625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3626done
3627rm -f conftest*
3628if test -n "$ac_declaration"; then
3629  echo '#ifdef __cplusplus' >>confdefs.h
3630  echo $ac_declaration      >>confdefs.h
3631  echo '#endif'             >>confdefs.h
3632fi
3633
3634ac_ext=cc
3635ac_cpp='$CXXCPP $CPPFLAGS'
3636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3639
3640
3641#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3642#thus, we test here whether $CXX is actually working
3643ac_ext=cc
3644ac_cpp='$CXXCPP $CPPFLAGS'
3645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3648
3649echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3650echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3651cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657
3658int
3659main ()
3660{
3661int i=0;
3662  ;
3663  return 0;
3664}
3665_ACEOF
3666rm -f conftest.$ac_objext
3667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668  (eval $ac_compile) 2>conftest.er1
3669  ac_status=$?
3670  grep -v '^ *+' conftest.er1 >conftest.err
3671  rm -f conftest.er1
3672  cat conftest.err >&5
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); } &&
3675         { ac_try='test -z "$ac_cxx_werror_flag"
3676                         || test ! -s conftest.err'
3677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678  (eval $ac_try) 2>&5
3679  ac_status=$?
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); }; } &&
3682         { ac_try='test -s conftest.$ac_objext'
3683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684  (eval $ac_try) 2>&5
3685  ac_status=$?
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); }; }; then
3688  echo "$as_me:$LINENO: result: yes" >&5
3689echo "${ECHO_T}yes" >&6
3690else
3691  echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
3696   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3697echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3698   { (exit 1); exit 1; }; }
3699
3700fi
3701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702ac_ext=cc
3703ac_cpp='$CXXCPP $CPPFLAGS'
3704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3707
3708
3709coin_cxx_is_cl=false
3710# It seems that we need to cleanup something here for the Windows
3711case "$CXX" in
3712  clang* ) ;;
3713  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3714    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3715    mv confdefs.hh confdefs.h
3716    coin_cxx_is_cl=true
3717    ;;
3718esac
3719
3720# add automake conditional so we can recognize cl compiler in makefile
3721
3722
3723if test $coin_cxx_is_cl = true; then
3724  COIN_CXX_IS_CL_TRUE=
3725  COIN_CXX_IS_CL_FALSE='#'
3726else
3727  COIN_CXX_IS_CL_TRUE='#'
3728  COIN_CXX_IS_CL_FALSE=
3729fi
3730
3731
3732# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3733case "$CXX" in
3734  clang* ) ;;
3735  cl* | */cl* | CL* | */CL* )
3736    if test "$ac_cv_prog_cxx_g" = yes ; then
3737      ac_cv_prog_cxx_g=no
3738      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3739echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3740    fi ;;
3741  * )
3742    if test x"$CYGPATH_W" = x ; then
3743      CYGPATH_W=echo
3744    fi
3745    ;;
3746esac
3747CXXFLAGS="$save_cxxflags"
3748
3749# Check if a project specific CXXFLAGS variable has been set
3750if test x$COIN_PRJCT != x; then
3751  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3752  if test x$coin_tmp = xset; then
3753    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3754  fi
3755fi
3756
3757if test x"$CXXFLAGS" = x; then
3758
3759# ToDo decide whether we want -DNDEBUG for optimization
3760  coin_add_cxxflags=
3761  coin_opt_cxxflags=
3762  coin_dbg_cxxflags=
3763  coin_warn_cxxflags=
3764
3765  if test "$GXX" = "yes"; then
3766    case "$CXX" in
3767      icpc* | */icpc*)
3768        ;;
3769      *)
3770# ToDo decide about unroll-loops
3771        coin_opt_cxxflags="-O3"
3772        coin_add_cxxflags="-pipe"
3773        coin_dbg_cxxflags="-g -O0"
3774        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3775        case $build in
3776          *-darwin*)
3777            ;;
3778          *)
3779            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3780            ;;
3781        esac
3782    esac
3783  fi
3784
3785# Note that we do not need to cover GCC in the following tests.
3786
3787  if test -z "$coin_opt_cxxflags"; then
3788    case $build in
3789      *-cygwin* | *-mingw*)
3790        case "$CXX" in
3791          clang* ) ;;
3792          cl* | */cl* | CL* | */CL*)
3793            # The MT and MTd options are mutually exclusive
3794            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3795               coin_opt_cxxflags='-MD -O2'
3796               coin_dbg_cxxflags='-MDd'
3797            else
3798               coin_opt_cxxflags='-MT -O2'
3799               coin_dbg_cxxflags='-MTd'
3800            fi
3801            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3802            ;;
3803          icl* | */icl* | ICL* | */ICL*)
3804          # The MT and MTd options are mutually exclusive
3805            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3806              coin_opt_cxxflags='-MD -Ox'
3807              coin_dbg_cxxflags='-MDd -debug'
3808            else
3809              coin_opt_cxxflags='-MT -Ox'
3810              coin_dbg_cxxflags='-MTd -debug'
3811            fi
3812            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3813            ;;
3814        esac
3815        ;;
3816      *-linux-*)
3817        case "$CXX" in
3818          icpc* | */icpc*)
3819            coin_opt_cxxflags="-O3 -ip -mp1"
3820            coin_add_cxxflags=""
3821            coin_dbg_cxxflags="-g"
3822            # Check if -i_dynamic is necessary (for new glibc library)
3823            CXXFLAGS=
3824            cat >conftest.$ac_ext <<_ACEOF
3825/* confdefs.h.  */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h.  */
3830
3831int
3832main ()
3833{
3834int i=0; i++;
3835  ;
3836  return 0;
3837}
3838_ACEOF
3839rm -f conftest.$ac_objext conftest$ac_exeext
3840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841  (eval $ac_link) 2>conftest.er1
3842  ac_status=$?
3843  grep -v '^ *+' conftest.er1 >conftest.err
3844  rm -f conftest.er1
3845  cat conftest.err >&5
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } &&
3848         { ac_try='test -z "$ac_cxx_werror_flag"
3849                         || test ! -s conftest.err'
3850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851  (eval $ac_try) 2>&5
3852  ac_status=$?
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); }; } &&
3855         { ac_try='test -s conftest$ac_exeext'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  :
3862else
3863  echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
3866coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3867fi
3868rm -f conftest.err conftest.$ac_objext \
3869      conftest$ac_exeext conftest.$ac_ext
3870            ;;
3871          pgCC* | */pgCC*)
3872            coin_opt_cxxflags="-fast"
3873            coin_add_cxxflags="-Kieee -pc 64"
3874            coin_dbg_cxxflags="-g"
3875            ;;
3876        esac
3877        ;;
3878      *-ibm-*)
3879        case "$CXX" in
3880          xlC* | */xlC* | mpxlC* | */mpxlC*)
3881            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3882            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3883            coin_dbg_cxxflags="-g"
3884            ;;
3885        esac
3886        ;;
3887      *-hp-*)
3888        case "$CXX" in
3889          aCC* | */aCC* )
3890            coin_opt_cxxflags="-O"
3891            coin_add_cxxflags="-AA"
3892            coin_dbg_cxxflags="-g"
3893            ;;
3894        esac
3895        ;;
3896      *-*-solaris*)
3897          coin_opt_cxxflags="-O4"
3898          coin_dbg_cxxflags="-g"
3899        ;;
3900    esac
3901  fi
3902
3903# Generic flag settings. If these don't work, add a case above.
3904
3905  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3906    coin_dbg_cxxflags="-g"
3907  fi
3908
3909  if test -z "$coin_opt_cxxflags"; then
3910    # Try if -O option works if nothing else is set
3911    CXXFLAGS=-O
3912    cat >conftest.$ac_ext <<_ACEOF
3913/* confdefs.h.  */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
3917/* end confdefs.h.  */
3918
3919int
3920main ()
3921{
3922int i=0; i++;
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927rm -f conftest.$ac_objext conftest$ac_exeext
3928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929  (eval $ac_link) 2>conftest.er1
3930  ac_status=$?
3931  grep -v '^ *+' conftest.er1 >conftest.err
3932  rm -f conftest.er1
3933  cat conftest.err >&5
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); } &&
3936         { ac_try='test -z "$ac_cxx_werror_flag"
3937                         || test ! -s conftest.err'
3938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939  (eval $ac_try) 2>&5
3940  ac_status=$?
3941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942  (exit $ac_status); }; } &&
3943         { ac_try='test -s conftest$ac_exeext'
3944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945  (eval $ac_try) 2>&5
3946  ac_status=$?
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); }; }; then
3949  coin_opt_cxxflags="-O"
3950else
3951  echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954fi
3955rm -f conftest.err conftest.$ac_objext \
3956      conftest$ac_exeext conftest.$ac_ext
3957  fi
3958
3959  # if PM doesn't want the warning messages, take them out
3960  if test x"$coin_skip_warn_cxxflags" = xyes; then
3961    coin_warn_cxxflags=
3962  fi
3963
3964# Do final setup of flags based on values determined above.
3965
3966  if test x${DBG_CXXFLAGS+set} != xset; then
3967    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3968  fi
3969  if test x${OPT_CXXFLAGS+set} != xset; then
3970    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3971  fi
3972
3973  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3974  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3975
3976  if test "$coin_debug_compile" = "true"; then
3977    CXXFLAGS="$DBG_CXXFLAGS"
3978  else
3979    CXXFLAGS="$OPT_CXXFLAGS"
3980  fi
3981
3982# Handle the case where CXXFLAGS was set externally.
3983else
3984  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3985  if test x${DBG_CXXFLAGS+set} != xset; then
3986    DBG_CXXFLAGS="$CXXFLAGS"
3987  fi
3988  if test x${OPT_CXXFLAGS+set} != xset; then
3989    OPT_CXXFLAGS="$CXXFLAGS"
3990  fi
3991fi
3992
3993# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3994if test x$COIN_PRJCT != x; then
3995  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3996fi
3997
3998# Try if CXXFLAGS works
3999save_CXXFLAGS="$CXXFLAGS"
4000cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h.  */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h.  */
4006
4007int
4008main ()
4009{
4010int i=0; i++;
4011  ;
4012  return 0;
4013}
4014_ACEOF
4015rm -f conftest.$ac_objext conftest$ac_exeext
4016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017  (eval $ac_link) 2>conftest.er1
4018  ac_status=$?
4019  grep -v '^ *+' conftest.er1 >conftest.err
4020  rm -f conftest.er1
4021  cat conftest.err >&5
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); } &&
4024         { ac_try='test -z "$ac_cxx_werror_flag"
4025                         || test ! -s conftest.err'
4026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027  (eval $ac_try) 2>&5
4028  ac_status=$?
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); }; } &&
4031         { ac_try='test -s conftest$ac_exeext'
4032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033  (eval $ac_try) 2>&5
4034  ac_status=$?
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); }; }; then
4037  :
4038else
4039  echo "$as_me: failed program was:" >&5
4040sed 's/^/| /' conftest.$ac_ext >&5
4041
4042CXXFLAGS=
4043fi
4044rm -f conftest.err conftest.$ac_objext \
4045      conftest$ac_exeext conftest.$ac_ext
4046if test -z "$CXXFLAGS"; then
4047  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
4048echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
4049  CXXFLAGS='-O'
4050  cat >conftest.$ac_ext <<_ACEOF
4051/* confdefs.h.  */
4052_ACEOF
4053cat confdefs.h >>conftest.$ac_ext
4054cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h.  */
4056
4057int
4058main ()
4059{
4060int i=0; i++;
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065rm -f conftest.$ac_objext conftest$ac_exeext
4066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067  (eval $ac_link) 2>conftest.er1
4068  ac_status=$?
4069  grep -v '^ *+' conftest.er1 >conftest.err
4070  rm -f conftest.er1
4071  cat conftest.err >&5
4072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073  (exit $ac_status); } &&
4074         { ac_try='test -z "$ac_cxx_werror_flag"
4075                         || test ! -s conftest.err'
4076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077  (eval $ac_try) 2>&5
4078  ac_status=$?
4079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080  (exit $ac_status); }; } &&
4081         { ac_try='test -s conftest$ac_exeext'
4082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083  (eval $ac_try) 2>&5
4084  ac_status=$?
4085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086  (exit $ac_status); }; }; then
4087  :
4088else
4089  echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092CXXFLAGS=
4093fi
4094rm -f conftest.err conftest.$ac_objext \
4095      conftest$ac_exeext conftest.$ac_ext
4096  if test -z "$CXXFLAGS"; then
4097    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
4098echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
4099  fi
4100fi
4101
4102{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4103echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4104
4105
4106if test x"$MPICXX" = x; then :; else
4107  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4108echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4109  CXX="$MPICXX"
4110fi
4111
4112# correct the LD variable in a mingw build with MS or intel compiler
4113case "$CXX" in
4114  clang* ) ;;
4115  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4116
4117 case $build in
4118  *-mingw*)
4119    if test "${LD+set}" = set; then :; else
4120      LD=link
4121    fi
4122    ;;
4123 esac
4124 if test $enable_msvc = yes ; then
4125   if test "x${LD+set}" = xset; then :; else
4126     LD=link
4127   fi
4128 fi
4129
4130    ;;
4131esac
4132
4133ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139
4140
4141# Initialize automake and libtool
4142{
4143
4144
4145
4146# START
4147
4148coin_disable_shared=no
4149# Test if force_shared has been set
4150if test "x" = xforce_shared; then
4151  if test x$enable_shared = xno; then
4152    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4153echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4154   { (exit 1); exit 1; }; }
4155  fi
4156  enable_shared=yes;
4157else
4158  # On Cygwin and AIX, building DLLs doesn't work
4159  case $build in
4160    *-cygwin* | *-mingw*)
4161      coin_disable_shared=yes
4162      if test x"$enable_shared" = xyes; then
4163        case "$CXX" in
4164          clang* )
4165            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4166echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4167            ;;
4168          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4169            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4170echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4171            ;;
4172          *)
4173            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4174echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4175            ;;
4176        esac
4177      fi
4178    ;;
4179    *-aix*)
4180      coin_disable_shared=yes
4181      platform=AIX
4182      if test x"$enable_shared" = xyes; then
4183        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4184echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4185      fi
4186    ;;
4187  esac
4188fi
4189if test x"$coin_disable_shared" = xyes; then
4190  if test x"$enable_shared" = xyes; then
4191    :
4192  else
4193    # we don't disable shared, because it was not selected anyway
4194    coin_disable_shared=no
4195  fi
4196  enable_shared=no
4197fi
4198# By default, we only want the shared objects to be compiled
4199# Check whether --enable-static or --disable-static was given.
4200if test "${enable_static+set}" = set; then
4201  enableval="$enable_static"
4202  p=${PACKAGE-default}
4203    case $enableval in
4204    yes) enable_static=yes ;;
4205    no) enable_static=no ;;
4206    *)
4207     enable_static=no
4208      # Look at the argument we got.  We use all the common list separators.
4209      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4210      for pkg in $enableval; do
4211        IFS="$lt_save_ifs"
4212        if test "X$pkg" = "X$p"; then
4213          enable_static=yes
4214        fi
4215      done
4216      IFS="$lt_save_ifs"
4217      ;;
4218    esac
4219else
4220  enable_static=no
4221fi;
4222
4223
4224
4225
4226# Initialize automake
4227echo "$as_me:$LINENO: checking for egrep" >&5
4228echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4229if test "${ac_cv_prog_egrep+set}" = set; then
4230  echo $ECHO_N "(cached) $ECHO_C" >&6
4231else
4232  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4233    then ac_cv_prog_egrep='grep -E'
4234    else ac_cv_prog_egrep='egrep'
4235    fi
4236fi
4237echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4238echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4239 EGREP=$ac_cv_prog_egrep
4240
4241
4242echo "$as_me:$LINENO: checking whether ln -s works" >&5
4243echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4244LN_S=$as_ln_s
4245if test "$LN_S" = "ln -s"; then
4246  echo "$as_me:$LINENO: result: yes" >&5
4247echo "${ECHO_T}yes" >&6
4248else
4249  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4250echo "${ECHO_T}no, using $LN_S" >&6
4251fi
4252
4253am__api_version="1.9"
4254# Find a good install program.  We prefer a C program (faster),
4255# so one script is as good as another.  But avoid the broken or
4256# incompatible versions:
4257# SysV /etc/install, /usr/sbin/install
4258# SunOS /usr/etc/install
4259# IRIX /sbin/install
4260# AIX /bin/install
4261# AmigaOS /C/install, which installs bootblocks on floppy discs
4262# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4263# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4264# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4265# OS/2's system install, which has a completely different semantic
4266# ./install, which can be erroneously created by make from ./install.sh.
4267echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4268echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4269if test -z "$INSTALL"; then
4270if test "${ac_cv_path_install+set}" = set; then
4271  echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278  # Account for people who put trailing slashes in PATH elements.
4279case $as_dir/ in
4280  ./ | .// | /cC/* | \
4281  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4282  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4283  /usr/ucb/* ) ;;
4284  *)
4285    # OSF1 and SCO ODT 3.0 have their own names for install.
4286    # Don't use installbsd from OSF since it installs stuff as root
4287    # by default.
4288    for ac_prog in ginstall scoinst install; do
4289      for ac_exec_ext in '' $ac_executable_extensions; do
4290        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4291          if test $ac_prog = install &&
4292            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4293            # AIX install.  It has an incompatible calling convention.
4294            :
4295          elif test $ac_prog = install &&
4296            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4297            # program-specific install script used by HP pwplus--don't use.
4298            :
4299          else
4300            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4301            break 3
4302          fi
4303        fi
4304      done
4305    done
4306    ;;
4307esac
4308done
4309
4310
4311fi
4312  if test "${ac_cv_path_install+set}" = set; then
4313    INSTALL=$ac_cv_path_install
4314  else
4315    # As a last resort, use the slow shell script.  We don't cache a
4316    # path for INSTALL within a source directory, because that will
4317    # break other packages using the cache if that directory is
4318    # removed, or if the path is relative.
4319    INSTALL=$ac_install_sh
4320  fi
4321fi
4322echo "$as_me:$LINENO: result: $INSTALL" >&5
4323echo "${ECHO_T}$INSTALL" >&6
4324
4325# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4326# It thinks the first close brace ends the variable substitution.
4327test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4328
4329test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4330
4331test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4332
4333echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4334echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4335# Just in case
4336sleep 1
4337echo timestamp > conftest.file
4338# Do `set' in a subshell so we don't clobber the current shell's
4339# arguments.  Must try -L first in case configure is actually a
4340# symlink; some systems play weird games with the mod time of symlinks
4341# (eg FreeBSD returns the mod time of the symlink's containing
4342# directory).
4343if (
4344   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4345   if test "$*" = "X"; then
4346      # -L didn't work.
4347      set X `ls -t $srcdir/configure conftest.file`
4348   fi
4349   rm -f conftest.file
4350   if test "$*" != "X $srcdir/configure conftest.file" \
4351      && test "$*" != "X conftest.file $srcdir/configure"; then
4352
4353      # If neither matched, then we have a broken ls.  This can happen
4354      # if, for instance, CONFIG_SHELL is bash and it inherits a
4355      # broken ls alias from the environment.  This has actually
4356      # happened.  Such a system could not be considered "sane".
4357      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4358alias in your environment" >&5
4359echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4360alias in your environment" >&2;}
4361   { (exit 1); exit 1; }; }
4362   fi
4363
4364   test "$2" = conftest.file
4365   )
4366then
4367   # Ok.
4368   :
4369else
4370   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4371Check your system clock" >&5
4372echo "$as_me: error: newly created file is older than distributed files!
4373Check your system clock" >&2;}
4374   { (exit 1); exit 1; }; }
4375fi
4376echo "$as_me:$LINENO: result: yes" >&5
4377echo "${ECHO_T}yes" >&6
4378test "$program_prefix" != NONE &&
4379  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4380# Use a double $ so make ignores it.
4381test "$program_suffix" != NONE &&
4382  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4383# Double any \ or $.  echo might interpret backslashes.
4384# By default was `s,x,x', remove it if useless.
4385cat <<\_ACEOF >conftest.sed
4386s/[\\$]/&&/g;s/;s,x,x,$//
4387_ACEOF
4388program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4389rm conftest.sed
4390
4391# expand $ac_aux_dir to an absolute path
4392am_aux_dir=`cd $ac_aux_dir && pwd`
4393
4394test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4395# Use eval to expand $SHELL
4396if eval "$MISSING --run true"; then
4397  am_missing_run="$MISSING --run "
4398else
4399  am_missing_run=
4400  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4401echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4402fi
4403
4404if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4405  # We used to keeping the `.' as first argument, in order to
4406  # allow $(mkdir_p) to be used without argument.  As in
4407  #   $(mkdir_p) $(somedir)
4408  # where $(somedir) is conditionally defined.  However this is wrong
4409  # for two reasons:
4410  #  1. if the package is installed by a user who cannot write `.'
4411  #     make install will fail,
4412  #  2. the above comment should most certainly read
4413  #     $(mkdir_p) $(DESTDIR)$(somedir)
4414  #     so it does not work when $(somedir) is undefined and
4415  #     $(DESTDIR) is not.
4416  #  To support the latter case, we have to write
4417  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4418  #  so the `.' trick is pointless.
4419  mkdir_p='mkdir -p --'
4420else
4421  # On NextStep and OpenStep, the `mkdir' command does not
4422  # recognize any option.  It will interpret all options as
4423  # directories to create, and then abort because `.' already
4424  # exists.
4425  for d in ./-p ./--version;
4426  do
4427    test -d $d && rmdir $d
4428  done
4429  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4430  if test -f "$ac_aux_dir/mkinstalldirs"; then
4431    mkdir_p='$(mkinstalldirs)'
4432  else
4433    mkdir_p='$(install_sh) -d'
4434  fi
4435fi
4436
4437for ac_prog in gawk mawk nawk awk
4438do
4439  # Extract the first word of "$ac_prog", so it can be a program name with args.
4440set dummy $ac_prog; ac_word=$2
4441echo "$as_me:$LINENO: checking for $ac_word" >&5
4442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443if test "${ac_cv_prog_AWK+set}" = set; then
4444  echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446  if test -n "$AWK"; then
4447  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4448else
4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452  IFS=$as_save_IFS
4453  test -z "$as_dir" && as_dir=.
4454  for ac_exec_ext in '' $ac_executable_extensions; do
4455  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456    ac_cv_prog_AWK="$ac_prog"
4457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458    break 2
4459  fi
4460done
4461done
4462
4463fi
4464fi
4465AWK=$ac_cv_prog_AWK
4466if test -n "$AWK"; then
4467  echo "$as_me:$LINENO: result: $AWK" >&5
4468echo "${ECHO_T}$AWK" >&6
4469else
4470  echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
4472fi
4473
4474  test -n "$AWK" && break
4475done
4476
4477echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4478echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4479set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4480if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4481  echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483  cat >conftest.make <<\_ACEOF
4484all:
4485        @echo 'ac_maketemp="$(MAKE)"'
4486_ACEOF
4487# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4488eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4489if test -n "$ac_maketemp"; then
4490  eval ac_cv_prog_make_${ac_make}_set=yes
4491else
4492  eval ac_cv_prog_make_${ac_make}_set=no
4493fi
4494rm -f conftest.make
4495fi
4496if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4497  echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
4499  SET_MAKE=
4500else
4501  echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6
4503  SET_MAKE="MAKE=${MAKE-make}"
4504fi
4505
4506rm -rf .tst 2>/dev/null
4507mkdir .tst 2>/dev/null
4508if test -d .tst; then
4509  am__leading_dot=.
4510else
4511  am__leading_dot=_
4512fi
4513rmdir .tst 2>/dev/null
4514
4515DEPDIR="${am__leading_dot}deps"
4516
4517          ac_config_commands="$ac_config_commands depfiles"
4518
4519
4520am_make=${MAKE-make}
4521cat > confinc << 'END'
4522am__doit:
4523        @echo done
4524.PHONY: am__doit
4525END
4526# If we don't find an include directive, just comment out the code.
4527echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4528echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4529am__include="#"
4530am__quote=
4531_am_result=none
4532# First try GNU make style include.
4533echo "include confinc" > confmf
4534# We grep out `Entering directory' and `Leaving directory'
4535# messages which can occur if `w' ends up in MAKEFLAGS.
4536# In particular we don't look at `^make:' because GNU make might
4537# be invoked under some other name (usually "gmake"), in which
4538# case it prints its new name instead of `make'.
4539if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4540   am__include=include
4541   am__quote=
4542   _am_result=GNU
4543fi
4544# Now try BSD make style include.
4545if test "$am__include" = "#"; then
4546   echo '.include "confinc"' > confmf
4547   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4548      am__include=.include
4549      am__quote="\""
4550      _am_result=BSD
4551   fi
4552fi
4553
4554
4555echo "$as_me:$LINENO: result: $_am_result" >&5
4556echo "${ECHO_T}$_am_result" >&6
4557rm -f confinc confmf
4558
4559# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4560if test "${enable_dependency_tracking+set}" = set; then
4561  enableval="$enable_dependency_tracking"
4562
4563fi;
4564if test "x$enable_dependency_tracking" != xno; then
4565  am_depcomp="$ac_aux_dir/depcomp"
4566  AMDEPBACKSLASH='\'
4567fi
4568
4569
4570if test "x$enable_dependency_tracking" != xno; then
4571  AMDEP_TRUE=
4572  AMDEP_FALSE='#'
4573else
4574  AMDEP_TRUE='#'
4575  AMDEP_FALSE=
4576fi
4577
4578
4579
4580
4581
4582
4583# AC_MSG_NOTICE([Beginning automake initialisation.])
4584# Stuff for automake
4585# test to see if srcdir already configured
4586if test "`cd $srcdir && pwd`" != "`pwd`" &&
4587   test -f $srcdir/config.status; then
4588  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4589echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4590   { (exit 1); exit 1; }; }
4591fi
4592
4593# test whether we have cygpath
4594if test -z "$CYGPATH_W"; then
4595  if (cygpath --version) >/dev/null 2>/dev/null; then
4596    CYGPATH_W='cygpath -w'
4597  else
4598    CYGPATH_W=echo
4599  fi
4600fi
4601
4602
4603# Define the identity of the package.
4604 PACKAGE='clp'
4605 VERSION='1.15'
4606
4607
4608cat >>confdefs.h <<_ACEOF
4609#define PACKAGE "$PACKAGE"
4610_ACEOF
4611
4612
4613cat >>confdefs.h <<_ACEOF
4614#define VERSION "$VERSION"
4615_ACEOF
4616
4617# Some tools Automake needs.
4618
4619ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4620
4621
4622AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4623
4624
4625AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4626
4627
4628AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4629
4630
4631MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4632
4633install_sh=${install_sh-"$am_aux_dir/install-sh"}
4634
4635# Installed binaries are usually stripped using `strip' when the user
4636# run `make install-strip'.  However `strip' might not be the right
4637# tool to use in cross-compilation environments, therefore Automake
4638# will honor the `STRIP' environment variable to overrule this program.
4639if test "$cross_compiling" != no; then
4640  if test -n "$ac_tool_prefix"; then
4641  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4642set dummy ${ac_tool_prefix}strip; ac_word=$2
4643echo "$as_me:$LINENO: checking for $ac_word" >&5
4644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4645if test "${ac_cv_prog_STRIP+set}" = set; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648  if test -n "$STRIP"; then
4649  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656  for ac_exec_ext in '' $ac_executable_extensions; do
4657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660    break 2
4661  fi
4662done
4663done
4664
4665fi
4666fi
4667STRIP=$ac_cv_prog_STRIP
4668if test -n "$STRIP"; then
4669  echo "$as_me:$LINENO: result: $STRIP" >&5
4670echo "${ECHO_T}$STRIP" >&6
4671else
4672  echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6
4674fi
4675
4676fi
4677if test -z "$ac_cv_prog_STRIP"; then
4678  ac_ct_STRIP=$STRIP
4679  # Extract the first word of "strip", so it can be a program name with args.
4680set dummy strip; ac_word=$2
4681echo "$as_me:$LINENO: checking for $ac_word" >&5
4682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4683if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4684  echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686  if test -n "$ac_ct_STRIP"; then
4687  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692  IFS=$as_save_IFS
4693  test -z "$as_dir" && as_dir=.
4694  for ac_exec_ext in '' $ac_executable_extensions; do
4695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696    ac_cv_prog_ac_ct_STRIP="strip"
4697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698    break 2
4699  fi
4700done
4701done
4702
4703  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4704fi
4705fi
4706ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4707if test -n "$ac_ct_STRIP"; then
4708  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4709echo "${ECHO_T}$ac_ct_STRIP" >&6
4710else
4711  echo "$as_me:$LINENO: result: no" >&5
4712echo "${ECHO_T}no" >&6
4713fi
4714
4715  STRIP=$ac_ct_STRIP
4716else
4717  STRIP="$ac_cv_prog_STRIP"
4718fi
4719
4720fi
4721INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4722
4723# We need awk for the "check" target.  The system "awk" is bad on
4724# some platforms.
4725# Always define AMTAR for backward compatibility.
4726
4727AMTAR=${AMTAR-"${am_missing_run}tar"}
4728
4729am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4730
4731
4732
4733
4734depcc="$CC"   am_compiler_list=
4735
4736echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4737echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4738if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4739  echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4742  # We make a subdir and do the tests there.  Otherwise we can end up
4743  # making bogus files that we don't know about and never remove.  For
4744  # instance it was reported that on HP-UX the gcc test will end up
4745  # making a dummy file named `D' -- because `-MD' means `put the output
4746  # in D'.
4747  mkdir conftest.dir
4748  # Copy depcomp to subdir because otherwise we won't find it if we're
4749  # using a relative directory.
4750  cp "$am_depcomp" conftest.dir
4751  cd conftest.dir
4752  # We will build objects and dependencies in a subdirectory because
4753  # it helps to detect inapplicable dependency modes.  For instance
4754  # both Tru64's cc and ICC support -MD to output dependencies as a
4755  # side effect of compilation, but ICC will put the dependencies in
4756  # the current directory while Tru64 will put them in the object
4757  # directory.
4758  mkdir sub
4759
4760  am_cv_CC_dependencies_compiler_type=none
4761  if test "$am_compiler_list" = ""; then
4762     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4763  fi
4764  for depmode in $am_compiler_list; do
4765    # Setup a source with many dependencies, because some compilers
4766    # like to wrap large dependency lists on column 80 (with \), and
4767    # we should not choose a depcomp mode which is confused by this.
4768    #
4769    # We need to recreate these files for each test, as the compiler may
4770    # overwrite some of them when testing with obscure command lines.
4771    # This happens at least with the AIX C compiler.
4772    : > sub/conftest.c
4773    for i in 1 2 3 4 5 6; do
4774      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4775      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4776      # Solaris 8's {/usr,}/bin/sh.
4777      touch sub/conftst$i.h
4778    done
4779    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4780
4781    case $depmode in
4782    nosideeffect)
4783      # after this tag, mechanisms are not by side-effect, so they'll
4784      # only be used when explicitly requested
4785      if test "x$enable_dependency_tracking" = xyes; then
4786        continue
4787      else
4788        break
4789      fi
4790      ;;
4791    none) break ;;
4792    esac
4793    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4794    # mode.  It turns out that the SunPro C++ compiler does not properly
4795    # handle `-M -o', and we need to detect this.
4796    if depmode=$depmode \
4797       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4798       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4799       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4800         >/dev/null 2>conftest.err &&
4801       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4802       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4803       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4804      # icc doesn't choke on unknown options, it will just issue warnings
4805      # or remarks (even with -Werror).  So we grep stderr for any message
4806      # that says an option was ignored or not supported.
4807      # When given -MP, icc 7.0 and 7.1 complain thusly:
4808      #   icc: Command line warning: ignoring option '-M'; no argument required
4809      # The diagnosis changed in icc 8.0:
4810      #   icc: Command line remark: option '-MP' not supported
4811      if (grep 'ignoring option' conftest.err ||
4812          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4813        am_cv_CC_dependencies_compiler_type=$depmode
4814        break
4815      fi
4816    fi
4817  done
4818
4819  cd ..
4820  rm -rf conftest.dir
4821else
4822  am_cv_CC_dependencies_compiler_type=none
4823fi
4824
4825fi
4826echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4827echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4828CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4829
4830
4831
4832if
4833  test "x$enable_dependency_tracking" != xno \
4834  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4835  am__fastdepCC_TRUE=
4836  am__fastdepCC_FALSE='#'
4837else
4838  am__fastdepCC_TRUE='#'
4839  am__fastdepCC_FALSE=
4840fi
4841
4842
4843depcc="$CXX"  am_compiler_list=
4844
4845echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4846echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4847if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4848  echo $ECHO_N "(cached) $ECHO_C" >&6
4849else
4850  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4851  # We make a subdir and do the tests there.  Otherwise we can end up
4852  # making bogus files that we don't know about and never remove.  For
4853  # instance it was reported that on HP-UX the gcc test will end up
4854  # making a dummy file named `D' -- because `-MD' means `put the output
4855  # in D'.
4856  mkdir conftest.dir
4857  # Copy depcomp to subdir because otherwise we won't find it if we're
4858  # using a relative directory.
4859  cp "$am_depcomp" conftest.dir
4860  cd conftest.dir
4861  # We will build objects and dependencies in a subdirectory because
4862  # it helps to detect inapplicable dependency modes.  For instance
4863  # both Tru64's cc and ICC support -MD to output dependencies as a
4864  # side effect of compilation, but ICC will put the dependencies in
4865  # the current directory while Tru64 will put them in the object
4866  # directory.
4867  mkdir sub
4868
4869  am_cv_CXX_dependencies_compiler_type=none
4870  if test "$am_compiler_list" = ""; then
4871     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4872  fi
4873  for depmode in $am_compiler_list; do
4874    # Setup a source with many dependencies, because some compilers
4875    # like to wrap large dependency lists on column 80 (with \), and
4876    # we should not choose a depcomp mode which is confused by this.
4877    #
4878    # We need to recreate these files for each test, as the compiler may
4879    # overwrite some of them when testing with obscure command lines.
4880    # This happens at least with the AIX C compiler.
4881    : > sub/conftest.c
4882    for i in 1 2 3 4 5 6; do
4883      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4884      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4885      # Solaris 8's {/usr,}/bin/sh.
4886      touch sub/conftst$i.h
4887    done
4888    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889
4890    case $depmode in
4891    nosideeffect)
4892      # after this tag, mechanisms are not by side-effect, so they'll
4893      # only be used when explicitly requested
4894      if test "x$enable_dependency_tracking" = xyes; then
4895        continue
4896      else
4897        break
4898      fi
4899      ;;
4900    none) break ;;
4901    esac
4902    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4903    # mode.  It turns out that the SunPro C++ compiler does not properly
4904    # handle `-M -o', and we need to detect this.
4905    if depmode=$depmode \
4906       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4907       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4908       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4909         >/dev/null 2>conftest.err &&
4910       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4911       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4912       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4913      # icc doesn't choke on unknown options, it will just issue warnings
4914      # or remarks (even with -Werror).  So we grep stderr for any message
4915      # that says an option was ignored or not supported.
4916      # When given -MP, icc 7.0 and 7.1 complain thusly:
4917      #   icc: Command line warning: ignoring option '-M'; no argument required
4918      # The diagnosis changed in icc 8.0:
4919      #   icc: Command line remark: option '-MP' not supported
4920      if (grep 'ignoring option' conftest.err ||
4921          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4922        am_cv_CXX_dependencies_compiler_type=$depmode
4923        break
4924      fi
4925    fi
4926  done
4927
4928  cd ..
4929  rm -rf conftest.dir
4930else
4931  am_cv_CXX_dependencies_compiler_type=none
4932fi
4933
4934fi
4935echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4936echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4937CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4938
4939
4940
4941if
4942  test "x$enable_dependency_tracking" != xno \
4943  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4944  am__fastdepCXX_TRUE=
4945  am__fastdepCXX_FALSE='#'
4946else
4947  am__fastdepCXX_TRUE='#'
4948  am__fastdepCXX_FALSE=
4949fi
4950
4951
4952
4953echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4954echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4955    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4956if test "${enable_maintainer_mode+set}" = set; then
4957  enableval="$enable_maintainer_mode"
4958  USE_MAINTAINER_MODE=$enableval
4959else
4960  USE_MAINTAINER_MODE=no
4961fi;
4962  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4963echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4964
4965
4966if test $USE_MAINTAINER_MODE = yes; then
4967  MAINTAINER_MODE_TRUE=
4968  MAINTAINER_MODE_FALSE='#'
4969else
4970  MAINTAINER_MODE_TRUE='#'
4971  MAINTAINER_MODE_FALSE=
4972fi
4973
4974  MAINT=$MAINTAINER_MODE_TRUE
4975
4976
4977
4978coin_have_externals=no
4979if test "$enable_maintainer_mode" = yes; then
4980
4981  # If maintainer mode is chosen, we make sure that the correct versions
4982  # of the tools are used, and that we know where libtool.m4 is (to
4983  # recreate acinclude.m4)
4984
4985
4986  LIBTOOLM4=
4987  # Normally, $HOME
4988  AUTOTOOLS_DFLT=$HOME
4989
4990  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4991echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4992if test "${ac_cv_use_correct_autotools+set}" = set; then
4993  echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995  ac_cv_use_correct_autotools=check
4996fi
4997echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4998echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4999
5000  if test $ac_cv_use_correct_autotools = check; then
5001    ac_cv_use_correct_autotools=yes
5002    # Check if we have autoconf
5003    # Extract the first word of "autoconf", so it can be a program name with args.
5004set dummy autoconf; ac_word=$2
5005echo "$as_me:$LINENO: checking for $ac_word" >&5
5006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007if test "${ac_cv_prog_have_autoconf+set}" = set; then
5008  echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010  if test -n "$have_autoconf"; then
5011  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016  IFS=$as_save_IFS
5017  test -z "$as_dir" && as_dir=.
5018  for ac_exec_ext in '' $ac_executable_extensions; do
5019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020    ac_cv_prog_have_autoconf="yes"
5021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022    break 2
5023  fi
5024done
5025done
5026
5027  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5028fi
5029fi
5030have_autoconf=$ac_cv_prog_have_autoconf
5031if test -n "$have_autoconf"; then
5032  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5033echo "${ECHO_T}$have_autoconf" >&6
5034else
5035  echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
5037fi
5038
5039    if test $have_autoconf = no; then
5040      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5041echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5042   { (exit 1); exit 1; }; }
5043    fi
5044
5045    # Check whether autoconf is the correct version
5046    correct_version='2.59'
5047    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5048    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5049echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5050    autoconf --version > confauto.out 2>&1
5051    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5052      echo "$as_me:$LINENO: result: yes" >&5
5053echo "${ECHO_T}yes" >&6
5054    else
5055      rm -f confauto.out
5056      echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6
5058      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5059echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5060   { (exit 1); exit 1; }; }
5061    fi
5062    rm -f confauto.out
5063
5064    # Check if the executable autoconf is picked up from the correct location
5065    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5066echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5067    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5068    autoconf_dir=`cd $autoconf_dir; pwd`
5069    if test x$AUTOTOOLS_DIR = x; then
5070      want_dir=$AUTOTOOLS_DFLT/bin
5071    else
5072      want_dir=$AUTOTOOLS_DIR/bin
5073    fi
5074    if test $autoconf_dir = `cd $want_dir; pwd`; then
5075      echo "$as_me:$LINENO: result: yes" >&5
5076echo "${ECHO_T}yes" >&6
5077    else
5078      rm -f confauto.out
5079      echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6
5081      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5082echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5083   { (exit 1); exit 1; }; }
5084    fi
5085
5086    # Check if we have automake
5087    # Extract the first word of "automake", so it can be a program name with args.
5088set dummy automake; ac_word=$2
5089echo "$as_me:$LINENO: checking for $ac_word" >&5
5090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091if test "${ac_cv_prog_have_automake+set}" = set; then
5092  echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094  if test -n "$have_automake"; then
5095  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100  IFS=$as_save_IFS
5101  test -z "$as_dir" && as_dir=.
5102  for ac_exec_ext in '' $ac_executable_extensions; do
5103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104    ac_cv_prog_have_automake="yes"
5105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106    break 2
5107  fi
5108done
5109done
5110
5111  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5112fi
5113fi
5114have_automake=$ac_cv_prog_have_automake
5115if test -n "$have_automake"; then
5116  echo "$as_me:$LINENO: result: $have_automake" >&5
5117echo "${ECHO_T}$have_automake" >&6
5118else
5119  echo "$as_me:$LINENO: result: no" >&5
5120echo "${ECHO_T}no" >&6
5121fi
5122
5123    if test $have_automake = no; then
5124      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5125echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5126   { (exit 1); exit 1; }; }
5127    fi
5128
5129    # Check whether automake is the correct version
5130    correct_version='1.9.6'
5131    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5132    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5133echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5134    automake --version > confauto.out 2>&1
5135    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5136      echo "$as_me:$LINENO: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
5138    else
5139      rm -f confauto.out
5140      echo "$as_me:$LINENO: result: no" >&5
5141echo "${ECHO_T}no" >&6
5142      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5143echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5144   { (exit 1); exit 1; }; }
5145    fi
5146    rm -f confauto.out
5147
5148    # Check if the executable automake is picked up from the correct location
5149    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5150echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5151    automake_dir=`which automake | sed -e 's=/automake=='`
5152    automake_dir=`cd $automake_dir; pwd`
5153    if test x$AUTOTOOLS_DIR = x; then
5154      want_dir=$AUTOTOOLS_DFLT/bin
5155    else
5156      want_dir=$AUTOTOOLS_DIR/bin
5157    fi
5158    if test $automake_dir = `cd $want_dir; pwd`; then
5159      echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161    else
5162      rm -f confauto.out
5163      echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5166echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5167   { (exit 1); exit 1; }; }
5168    fi
5169
5170    # Check if this is the correct version of libtool (with escaped dots)
5171    if test x$AUTOTOOLS_DIR = x; then
5172      want_dir=$AUTOTOOLS_DFLT/share
5173    else
5174      want_dir=$AUTOTOOLS_DIR/share
5175    fi
5176    correct_version='1.5.22'
5177    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5178    if test -r $want_dir/libtool/ltmain.sh; then
5179  have_ltmain=yes
5180  :
5181else
5182  have_ltmain=no
5183  :
5184fi
5185
5186    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5187echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5188    if test $have_ltmain = yes; then
5189    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5190        echo "$as_me:$LINENO: result: yes" >&5
5191echo "${ECHO_T}yes" >&6
5192      else
5193        echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6
5195        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5196echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5197   { (exit 1); exit 1; }; }
5198      fi
5199    else
5200      echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5203echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5204   { (exit 1); exit 1; }; }
5205    fi
5206  fi
5207
5208  # Check if we can find the libtool file
5209  if test x$AUTOTOOLS_DIR = x; then
5210    want_dir=$AUTOTOOLS_DFLT/share
5211  else
5212    want_dir=$AUTOTOOLS_DIR/share
5213  fi
5214  if test -r $want_dir/aclocal/libtool.m4; then
5215  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5216  :
5217else
5218  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5219echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5220   { (exit 1); exit 1; }; }
5221  :
5222fi
5223
5224
5225  # Check if we have an Dependencies file
5226  if test -r $srcdir/Dependencies; then
5227    coin_have_externals=yes
5228  fi
5229  # Check if subversion is installed and understands https
5230  # Extract the first word of "svn", so it can be a program name with args.
5231set dummy svn; ac_word=$2
5232echo "$as_me:$LINENO: checking for $ac_word" >&5
5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234if test "${ac_cv_prog_have_svn+set}" = set; then
5235  echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237  if test -n "$have_svn"; then
5238  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243  IFS=$as_save_IFS
5244  test -z "$as_dir" && as_dir=.
5245  for ac_exec_ext in '' $ac_executable_extensions; do
5246  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247    ac_cv_prog_have_svn="yes"
5248    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249    break 2
5250  fi
5251done
5252done
5253
5254  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5255fi
5256fi
5257have_svn=$ac_cv_prog_have_svn
5258if test -n "$have_svn"; then
5259  echo "$as_me:$LINENO: result: $have_svn" >&5
5260echo "${ECHO_T}$have_svn" >&6
5261else
5262  echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264fi
5265
5266  if test x$have_svn = xyes; then
5267    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5268echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5269if test "${ac_cv_svn_understands_https+set}" = set; then
5270  echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272  svn --version > confauto.out 2>&1
5273                    if $EGREP https confauto.out >/dev/null 2>&1; then
5274                      ac_cv_svn_understands_https=yes
5275                    else
5276                      ac_cv_svn_understands_https=no
5277                      have_svn=no
5278                      ac_cv_prog_have_svn=no
5279                    fi
5280                    rm -f confauto.out
5281fi
5282echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5283echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5284  fi
5285
5286  # Find the location of the BuildTools directory
5287  BUILDTOOLSDIR=
5288  if test -r $srcdir/BuildTools/coin.m4; then
5289    BUILDTOOLSDIR=$srcdir/BuildTools
5290  else
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        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5298echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5299   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5300      fi
5301    fi
5302  fi
5303
5304
5305  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5306  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5307    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5308  fi
5309
5310  # The following variable is set to the name of the directory where
5311  # the autotool scripts are located
5312
5313  AUX_DIR=$ac_aux_dir
5314fi
5315
5316# helpful variable for the base directory of this package
5317abs_source_dir=`cd $srcdir; pwd`
5318
5319
5320# Stuff for example Makefiles
5321if test x$prefix = xNONE; then
5322  full_prefix=$ac_default_prefix
5323else
5324  full_prefix=$prefix
5325fi
5326full_prefix=`cd $full_prefix ; pwd`
5327
5328abs_lib_dir=$full_prefix/lib
5329
5330abs_include_dir=$full_prefix/include
5331
5332abs_bin_dir=$full_prefix/bin
5333
5334
5335
5336if test $coin_have_externals = yes && test x$have_svn = xyes; then
5337  HAVE_EXTERNALS_TRUE=
5338  HAVE_EXTERNALS_FALSE='#'
5339else
5340  HAVE_EXTERNALS_TRUE='#'
5341  HAVE_EXTERNALS_FALSE=
5342fi
5343
5344
5345# AC_MSG_NOTICE([End automake initialisation.])
5346
5347
5348
5349LIBTOOL=
5350if test -f ../libtool; then
5351  coin_config_dir=..
5352  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5353fi
5354if test "x$LIBTOOL" = x; then
5355  if test -f ../../libtool; then
5356    coin_config_dir=../..
5357    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5358  fi
5359fi
5360
5361if test "x$LIBTOOL" = x; then
5362# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5363  # Stuff for libtool
5364  # Check whether --enable-shared or --disable-shared was given.
5365if test "${enable_shared+set}" = set; then
5366  enableval="$enable_shared"
5367  p=${PACKAGE-default}
5368    case $enableval in
5369    yes) enable_shared=yes ;;
5370    no) enable_shared=no ;;
5371    *)
5372      enable_shared=no
5373      # Look at the argument we got.  We use all the common list separators.
5374      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5375      for pkg in $enableval; do
5376        IFS="$lt_save_ifs"
5377        if test "X$pkg" = "X$p"; then
5378          enable_shared=yes
5379        fi
5380      done
5381      IFS="$lt_save_ifs"
5382      ;;
5383    esac
5384else
5385  enable_shared=yes
5386fi;
5387
5388# Check whether --enable-fast-install or --disable-fast-install was given.
5389if test "${enable_fast_install+set}" = set; then
5390  enableval="$enable_fast_install"
5391  p=${PACKAGE-default}
5392    case $enableval in
5393    yes) enable_fast_install=yes ;;
5394    no) enable_fast_install=no ;;
5395    *)
5396      enable_fast_install=no
5397      # Look at the argument we got.  We use all the common list separators.
5398      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5399      for pkg in $enableval; do
5400        IFS="$lt_save_ifs"
5401        if test "X$pkg" = "X$p"; then
5402          enable_fast_install=yes
5403        fi
5404      done
5405      IFS="$lt_save_ifs"
5406      ;;
5407    esac
5408else
5409  enable_fast_install=yes
5410fi;
5411
5412echo "$as_me:$LINENO: checking host system type" >&5
5413echo $ECHO_N "checking host system type... $ECHO_C" >&6
5414if test "${ac_cv_host+set}" = set; then
5415  echo $ECHO_N "(cached) $ECHO_C" >&6
5416else
5417  ac_cv_host_alias=$host_alias
5418test -z "$ac_cv_host_alias" &&
5419  ac_cv_host_alias=$ac_cv_build_alias
5420ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5421  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5422echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5423   { (exit 1); exit 1; }; }
5424
5425fi
5426echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5427echo "${ECHO_T}$ac_cv_host" >&6
5428host=$ac_cv_host
5429host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5430host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5431host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5432
5433
5434echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5435echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5436if test "${lt_cv_path_SED+set}" = set; then
5437  echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439  # Loop through the user's path and test for sed and gsed.
5440# Then use that list of sed's as ones to test for truncation.
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444  IFS=$as_save_IFS
5445  test -z "$as_dir" && as_dir=.
5446  for lt_ac_prog in sed gsed; do
5447    for ac_exec_ext in '' $ac_executable_extensions; do
5448      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5449        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5450      fi
5451    done
5452  done
5453done
5454lt_ac_max=0
5455lt_ac_count=0
5456# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5457# along with /bin/sed that truncates output.
5458for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5459  test ! -f $lt_ac_sed && continue
5460  cat /dev/null > conftest.in
5461  lt_ac_count=0
5462  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5463  # Check for GNU sed and select it if it is found.
5464  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5465    lt_cv_path_SED=$lt_ac_sed
5466    break
5467  fi
5468  while true; do
5469    cat conftest.in conftest.in >conftest.tmp
5470    mv conftest.tmp conftest.in
5471    cp conftest.in conftest.nl
5472    echo >>conftest.nl
5473    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5474    cmp -s conftest.out conftest.nl || break
5475    # 10000 chars as input seems more than enough
5476    test $lt_ac_count -gt 10 && break
5477    lt_ac_count=`expr $lt_ac_count + 1`
5478    if test $lt_ac_count -gt $lt_ac_max; then
5479      lt_ac_max=$lt_ac_count
5480      lt_cv_path_SED=$lt_ac_sed
5481    fi
5482  done
5483done
5484
5485fi
5486
5487SED=$lt_cv_path_SED
5488echo "$as_me:$LINENO: result: $SED" >&5
5489echo "${ECHO_T}$SED" >&6
5490
5491
5492# Check whether --with-gnu-ld or --without-gnu-ld was given.
5493if test "${with_gnu_ld+set}" = set; then
5494  withval="$with_gnu_ld"
5495  test "$withval" = no || with_gnu_ld=yes
5496else
5497  with_gnu_ld=no
5498fi;
5499ac_prog=ld
5500if test "$GCC" = yes; then
5501  # Check if gcc -print-prog-name=ld gives a path.
5502  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5503echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5504  case $host in
5505  *-*-mingw*)
5506    # gcc leaves a trailing carriage return which upsets mingw
5507    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5508  *)
5509    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5510  esac
5511  case $ac_prog in
5512    # Accept absolute paths.
5513    [\\/]* | ?:[\\/]*)
5514      re_direlt='/[^/][^/]*/\.\./'
5515      # Canonicalize the pathname of ld
5516      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5517      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5518        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5519      done
5520      test -z "$LD" && LD="$ac_prog"
5521      ;;
5522  "")
5523    # If it fails, then pretend we aren't using GCC.
5524    ac_prog=ld
5525    ;;
5526  *)
5527    # If it is relative, then search for the first ld in PATH.
5528    with_gnu_ld=unknown
5529    ;;
5530  esac
5531elif test "$with_gnu_ld" = yes; then
5532  echo "$as_me:$LINENO: checking for GNU ld" >&5
5533echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5534else
5535  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5536echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5537fi
5538if test "${lt_cv_path_LD+set}" = set; then
5539  echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541  if test -z "$LD"; then
5542  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5543  for ac_dir in $PATH; do
5544    IFS="$lt_save_ifs"
5545    test -z "$ac_dir" && ac_dir=.
5546    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5547      lt_cv_path_LD="$ac_dir/$ac_prog"
5548      # Check to see if the program is GNU ld.  I'd rather use --version,
5549      # but apparently some variants of GNU ld only accept -v.
5550      # Break only if it was the GNU/non-GNU ld that we prefer.
5551      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5552      *GNU* | *'with BFD'*)
5553        test "$with_gnu_ld" != no && break
5554        ;;
5555      *)
5556        test "$with_gnu_ld" != yes && break
5557        ;;
5558      esac
5559    fi
5560  done
5561  IFS="$lt_save_ifs"
5562else
5563  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5564fi
5565fi
5566
5567LD="$lt_cv_path_LD"
5568if test -n "$LD"; then
5569  echo "$as_me:$LINENO: result: $LD" >&5
5570echo "${ECHO_T}$LD" >&6
5571else
5572  echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574fi
5575test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5576echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5577   { (exit 1); exit 1; }; }
5578echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5579echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5580if test "${lt_cv_prog_gnu_ld+set}" = set; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5584case `$LD -v 2>&1 </dev/null` in
5585*GNU* | *'with BFD'*)
5586  lt_cv_prog_gnu_ld=yes
5587  ;;
5588*)
5589  lt_cv_prog_gnu_ld=no
5590  ;;
5591esac
5592fi
5593echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5594echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5595with_gnu_ld=$lt_cv_prog_gnu_ld
5596
5597
5598echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5599echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5600if test "${lt_cv_ld_reload_flag+set}" = set; then
5601  echo $ECHO_N "(cached) $ECHO_C" >&6
5602else
5603  lt_cv_ld_reload_flag='-r'
5604fi
5605echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5606echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5607reload_flag=$lt_cv_ld_reload_flag
5608case $reload_flag in
5609"" | " "*) ;;
5610*) reload_flag=" $reload_flag" ;;
5611esac
5612reload_cmds='$LD$reload_flag -o $output$reload_objs'
5613case $host_os in
5614  darwin*)
5615    if test "$GCC" = yes; then
5616      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5617    else
5618      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5619    fi
5620    ;;
5621esac
5622
5623echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5624echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5625if test "${lt_cv_path_NM+set}" = set; then
5626  echo $ECHO_N "(cached) $ECHO_C" >&6
5627else
5628  if test -n "$NM"; then
5629  # Let the user override the test.
5630  lt_cv_path_NM="$NM"
5631else
5632  lt_nm_to_check="${ac_tool_prefix}nm"
5633  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5634    lt_nm_to_check="$lt_nm_to_check nm"
5635  fi
5636  for lt_tmp_nm in $lt_nm_to_check; do
5637    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5638    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5639      IFS="$lt_save_ifs"
5640      test -z "$ac_dir" && ac_dir=.
5641      tmp_nm="$ac_dir/$lt_tmp_nm"
5642      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5643        # Check to see if the nm accepts a BSD-compat flag.
5644        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5645        #   nm: unknown option "B" ignored
5646        # Tru64's nm complains that /dev/null is an invalid object file
5647        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5648        */dev/null* | *'Invalid file or object type'*)
5649          lt_cv_path_NM="$tmp_nm -B"
5650          break
5651          ;;
5652        *)
5653          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5654          */dev/null*)
5655            lt_cv_path_NM="$tmp_nm -p"
5656            break
5657            ;;
5658          *)
5659            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5660            continue # so that we can try to find one that supports BSD flags
5661            ;;
5662          esac
5663          ;;
5664        esac
5665      fi
5666    done
5667    IFS="$lt_save_ifs"
5668  done
5669  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5670fi
5671fi
5672echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5673echo "${ECHO_T}$lt_cv_path_NM" >&6
5674NM="$lt_cv_path_NM"
5675
5676echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5677echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5678if test "${lt_cv_deplibs_check_method+set}" = set; then
5679  echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681  lt_cv_file_magic_cmd='$MAGIC_CMD'
5682lt_cv_file_magic_test_file=
5683lt_cv_deplibs_check_method='unknown'
5684# Need to set the preceding variable on all platforms that support
5685# interlibrary dependencies.
5686# 'none' -- dependencies not supported.
5687# `unknown' -- same as none, but documents that we really don't know.
5688# 'pass_all' -- all dependencies passed with no checks.
5689# 'test_compile' -- check by making test program.
5690# 'file_magic [[regex]]' -- check by looking for files in library path
5691# which responds to the $file_magic_cmd with a given extended regex.
5692# If you have `file' or equivalent on your system and you're not sure
5693# whether `pass_all' will *always* work, you probably want this one.
5694
5695case $host_os in
5696aix4* | aix5*)
5697  lt_cv_deplibs_check_method=pass_all
5698  ;;
5699
5700beos*)
5701  lt_cv_deplibs_check_method=pass_all
5702  ;;
5703
5704bsdi[45]*)
5705  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5706  lt_cv_file_magic_cmd='/usr/bin/file -L'
5707  lt_cv_file_magic_test_file=/shlib/libc.so
5708  ;;
5709
5710cygwin*)
5711  # func_win32_libid is a shell function defined in ltmain.sh
5712  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5713  lt_cv_file_magic_cmd='func_win32_libid'
5714  ;;
5715
5716mingw* | pw32*)
5717  # Base MSYS/MinGW do not provide the 'file' command needed by
5718  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5719  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5720  lt_cv_file_magic_cmd='$OBJDUMP -f'
5721  ;;
5722
5723darwin* | rhapsody*)
5724  lt_cv_deplibs_check_method=pass_all
5725  ;;
5726
5727freebsd* | kfreebsd*-gnu | dragonfly*)
5728  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5729    case $host_cpu in
5730    i*86 )
5731      # Not sure whether the presence of OpenBSD here was a mistake.
5732      # Let's accept both of them until this is cleared up.
5733      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5734      lt_cv_file_magic_cmd=/usr/bin/file
5735      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5736      ;;
5737    esac
5738  else
5739    lt_cv_deplibs_check_method=pass_all
5740  fi
5741  ;;
5742
5743gnu*)
5744  lt_cv_deplibs_check_method=pass_all
5745  ;;
5746
5747hpux10.20* | hpux11*)
5748  lt_cv_file_magic_cmd=/usr/bin/file
5749  case $host_cpu in
5750  ia64*)
5751    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5752    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5753    ;;
5754  hppa*64*)
5755    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]'
5756    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5757    ;;
5758  *)
5759    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5760    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5761    ;;
5762  esac
5763  ;;
5764
5765interix3*)
5766  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5767  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5768  ;;
5769
5770irix5* | irix6* | nonstopux*)
5771  case $LD in
5772  *-32|*"-32 ") libmagic=32-bit;;
5773  *-n32|*"-n32 ") libmagic=N32;;
5774  *-64|*"-64 ") libmagic=64-bit;;
5775  *) libmagic=never-match;;
5776  esac
5777  lt_cv_deplibs_check_method=pass_all
5778  ;;
5779
5780# This must be Linux ELF.
5781linux*)
5782  lt_cv_deplibs_check_method=pass_all
5783  ;;
5784
5785netbsd*)
5786  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5787    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5788  else
5789    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5790  fi
5791  ;;
5792
5793newos6*)
5794  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5795  lt_cv_file_magic_cmd=/usr/bin/file
5796  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5797  ;;
5798
5799nto-qnx*)
5800  lt_cv_deplibs_check_method=unknown
5801  ;;
5802
5803openbsd*)
5804  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5805    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5806  else
5807    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5808  fi
5809  ;;
5810
5811osf3* | osf4* | osf5*)
5812  lt_cv_deplibs_check_method=pass_all
5813  ;;
5814
5815solaris*)
5816  lt_cv_deplibs_check_method=pass_all
5817  ;;
5818
5819sysv4 | sysv4.3*)
5820  case $host_vendor in
5821  motorola)
5822    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]'
5823    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5824    ;;
5825  ncr)
5826    lt_cv_deplibs_check_method=pass_all
5827    ;;
5828  sequent)
5829    lt_cv_file_magic_cmd='/bin/file'
5830    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5831    ;;
5832  sni)
5833    lt_cv_file_magic_cmd='/bin/file'
5834    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5835    lt_cv_file_magic_test_file=/lib/libc.so
5836    ;;
5837  siemens)
5838    lt_cv_deplibs_check_method=pass_all
5839    ;;
5840  pc)
5841    lt_cv_deplibs_check_method=pass_all
5842    ;;
5843  esac
5844  ;;
5845
5846sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5847  lt_cv_deplibs_check_method=pass_all
5848  ;;
5849esac
5850
5851fi
5852echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5853echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5854file_magic_cmd=$lt_cv_file_magic_cmd
5855deplibs_check_method=$lt_cv_deplibs_check_method
5856test -z "$deplibs_check_method" && deplibs_check_method=unknown
5857
5858
5859
5860
5861# If no C compiler was specified, use CC.
5862LTCC=${LTCC-"$CC"}
5863
5864# If no C compiler flags were specified, use CFLAGS.
5865LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5866
5867# Allow CC to be a program name with arguments.
5868compiler=$CC
5869
5870# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5871if test "${enable_libtool_lock+set}" = set; then
5872  enableval="$enable_libtool_lock"
5873
5874fi;
5875test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5876
5877# Some flags need to be propagated to the compiler or linker for good
5878# libtool support.
5879case $host in
5880ia64-*-hpux*)
5881  # Find out which ABI we are using.
5882  echo 'int i;' > conftest.$ac_ext
5883  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884  (eval $ac_compile) 2>&5
5885  ac_status=$?
5886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887  (exit $ac_status); }; then
5888    case `/usr/bin/file conftest.$ac_objext` in
5889    *ELF-32*)
5890      HPUX_IA64_MODE="32"
5891      ;;
5892    *ELF-64*)
5893      HPUX_IA64_MODE="64"
5894      ;;
5895    esac
5896  fi
5897  rm -rf conftest*
5898  ;;
5899*-*-irix6*)
5900  # Find out which ABI we are using.
5901  echo '#line 5901 "configure"' > conftest.$ac_ext
5902  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903  (eval $ac_compile) 2>&5
5904  ac_status=$?
5905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906  (exit $ac_status); }; then
5907   if test "$lt_cv_prog_gnu_ld" = yes; then
5908    case `/usr/bin/file conftest.$ac_objext` in
5909    *32-bit*)
5910      LD="${LD-ld} -melf32bsmip"
5911      ;;
5912    *N32*)
5913      LD="${LD-ld} -melf32bmipn32"
5914      ;;
5915    *64-bit*)
5916      LD="${LD-ld} -melf64bmip"
5917      ;;
5918    esac
5919   else
5920    case `/usr/bin/file conftest.$ac_objext` in
5921    *32-bit*)
5922      LD="${LD-ld} -32"
5923      ;;
5924    *N32*)
5925      LD="${LD-ld} -n32"
5926      ;;
5927    *64-bit*)
5928      LD="${LD-ld} -64"
5929      ;;
5930    esac
5931   fi
5932  fi
5933  rm -rf conftest*
5934  ;;
5935
5936x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5937  # Find out which ABI we are using.
5938  echo 'int i;' > conftest.$ac_ext
5939  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940  (eval $ac_compile) 2>&5
5941  ac_status=$?
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); }; then
5944    case `/usr/bin/file conftest.o` in
5945    *32-bit*)
5946      case $host in
5947        x86_64-*linux*)
5948          LD="${LD-ld} -m elf_i386"
5949          ;;
5950        ppc64-*linux*|powerpc64-*linux*)
5951          LD="${LD-ld} -m elf32ppclinux"
5952          ;;
5953        s390x-*linux*)
5954          LD="${LD-ld} -m elf_s390"
5955          ;;
5956        sparc64-*linux*)
5957          LD="${LD-ld} -m elf32_sparc"
5958          ;;
5959      esac
5960      ;;
5961    *64-bit*)
5962      case $host in
5963        x86_64-*linux*)
5964          LD="${LD-ld} -m elf_x86_64"
5965          ;;
5966        ppc*-*linux*|powerpc*-*linux*)
5967          LD="${LD-ld} -m elf64ppc"
5968          ;;
5969        s390*-*linux*)
5970          LD="${LD-ld} -m elf64_s390"
5971          ;;
5972        sparc*-*linux*)
5973          LD="${LD-ld} -m elf64_sparc"
5974          ;;
5975      esac
5976      ;;
5977    esac
5978  fi
5979  rm -rf conftest*
5980  ;;
5981
5982*-*-sco3.2v5*)
5983  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5984  SAVE_CFLAGS="$CFLAGS"
5985  CFLAGS="$CFLAGS -belf"
5986  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5987echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5988if test "${lt_cv_cc_needs_belf+set}" = set; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991  ac_ext=c
5992ac_cpp='$CPP $CPPFLAGS'
5993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995ac_compiler_gnu=$ac_cv_c_compiler_gnu
5996
5997     cat >conftest.$ac_ext <<_ACEOF
5998/* confdefs.h.  */
5999_ACEOF
6000cat confdefs.h >>conftest.$ac_ext
6001cat >>conftest.$ac_ext <<_ACEOF
6002/* end confdefs.h.  */
6003
6004int
6005main ()
6006{
6007
6008  ;
6009  return 0;
6010}
6011_ACEOF
6012rm -f conftest.$ac_objext conftest$ac_exeext
6013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014  (eval $ac_link) 2>conftest.er1
6015  ac_status=$?
6016  grep -v '^ *+' conftest.er1 >conftest.err
6017  rm -f conftest.er1
6018  cat conftest.err >&5
6019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020  (exit $ac_status); } &&
6021         { ac_try='test -z "$ac_c_werror_flag"
6022                         || test ! -s conftest.err'
6023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024  (eval $ac_try) 2>&5
6025  ac_status=$?
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); }; } &&
6028         { ac_try='test -s conftest$ac_exeext'
6029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030  (eval $ac_try) 2>&5
6031  ac_status=$?
6032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033  (exit $ac_status); }; }; then
6034  lt_cv_cc_needs_belf=yes
6035else
6036  echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
6039lt_cv_cc_needs_belf=no
6040fi
6041rm -f conftest.err conftest.$ac_objext \
6042      conftest$ac_exeext conftest.$ac_ext
6043     ac_ext=c
6044ac_cpp='$CPP $CPPFLAGS'
6045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048
6049fi
6050echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6051echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6052  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6053    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6054    CFLAGS="$SAVE_CFLAGS"
6055  fi
6056  ;;
6057sparc*-*solaris*)
6058  # Find out which ABI we are using.
6059  echo 'int i;' > conftest.$ac_ext
6060  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061  (eval $ac_compile) 2>&5
6062  ac_status=$?
6063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); }; then
6065    case `/usr/bin/file conftest.o` in
6066    *64-bit*)
6067      case $lt_cv_prog_gnu_ld in
6068      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6069      *)    LD="${LD-ld} -64" ;;
6070      esac
6071      ;;
6072    esac
6073  fi
6074  rm -rf conftest*
6075  ;;
6076
6077
6078esac
6079
6080need_locks="$enable_libtool_lock"
6081
6082
6083ac_ext=c
6084ac_cpp='$CPP $CPPFLAGS'
6085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6089echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6090# On Suns, sometimes $CPP names a directory.
6091if test -n "$CPP" && test -d "$CPP"; then
6092  CPP=
6093fi
6094if test -z "$CPP"; then
6095  if test "${ac_cv_prog_CPP+set}" = set; then
6096  echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098      # Double quotes because CPP needs to be expanded
6099    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6100    do
6101      ac_preproc_ok=false
6102for ac_c_preproc_warn_flag in '' yes
6103do
6104  # Use a header file that comes with gcc, so configuring glibc
6105  # with a fresh cross-compiler works.
6106  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107  # <limits.h> exists even on freestanding compilers.
6108  # On the NeXT, cc -E runs the code through the compiler's parser,
6109  # not just through cpp. "Syntax error" is here to catch this case.
6110  cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h.  */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h.  */
6116#ifdef __STDC__
6117# include <limits.h>
6118#else
6119# include <assert.h>
6120#endif
6121                     Syntax error
6122_ACEOF
6123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6124  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6125  ac_status=$?
6126  grep -v '^ *+' conftest.er1 >conftest.err
6127  rm -f conftest.er1
6128  cat conftest.err >&5
6129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130  (exit $ac_status); } >/dev/null; then
6131  if test -s conftest.err; then
6132    ac_cpp_err=$ac_c_preproc_warn_flag
6133    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6134  else
6135    ac_cpp_err=
6136  fi
6137else
6138  ac_cpp_err=yes
6139fi
6140if test -z "$ac_cpp_err"; then
6141  :
6142else
6143  echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146  # Broken: fails on valid input.
6147continue
6148fi
6149rm -f conftest.err conftest.$ac_ext
6150
6151  # OK, works on sane cases.  Now check whether non-existent headers
6152  # can be detected and how.
6153  cat >conftest.$ac_ext <<_ACEOF
6154/* confdefs.h.  */
6155_ACEOF
6156cat confdefs.h >>conftest.$ac_ext
6157cat >>conftest.$ac_ext <<_ACEOF
6158/* end confdefs.h.  */
6159#include <ac_nonexistent.h>
6160_ACEOF
6161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6162  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6163  ac_status=$?
6164  grep -v '^ *+' conftest.er1 >conftest.err
6165  rm -f conftest.er1
6166  cat conftest.err >&5
6167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168  (exit $ac_status); } >/dev/null; then
6169  if test -s conftest.err; then
6170    ac_cpp_err=$ac_c_preproc_warn_flag
6171    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6172  else
6173    ac_cpp_err=
6174  fi
6175else
6176  ac_cpp_err=yes
6177fi
6178if test -z "$ac_cpp_err"; then
6179  # Broken: success on invalid input.
6180continue
6181else
6182  echo "$as_me: failed program was:" >&5
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
6185  # Passes both tests.
6186ac_preproc_ok=:
6187break
6188fi
6189rm -f conftest.err conftest.$ac_ext
6190
6191done
6192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193rm -f conftest.err conftest.$ac_ext
6194if $ac_preproc_ok; then
6195  break
6196fi
6197
6198    done
6199    ac_cv_prog_CPP=$CPP
6200
6201fi
6202  CPP=$ac_cv_prog_CPP
6203else
6204  ac_cv_prog_CPP=$CPP
6205fi
6206echo "$as_me:$LINENO: result: $CPP" >&5
6207echo "${ECHO_T}$CPP" >&6
6208ac_preproc_ok=false
6209for ac_c_preproc_warn_flag in '' yes
6210do
6211  # Use a header file that comes with gcc, so configuring glibc
6212  # with a fresh cross-compiler works.
6213  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214  # <limits.h> exists even on freestanding compilers.
6215  # On the NeXT, cc -E runs the code through the compiler's parser,
6216  # not just through cpp. "Syntax error" is here to catch this case.
6217  cat >conftest.$ac_ext <<_ACEOF
6218/* confdefs.h.  */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h.  */
6223#ifdef __STDC__
6224# include <limits.h>
6225#else
6226# include <assert.h>
6227#endif
6228                     Syntax error
6229_ACEOF
6230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6232  ac_status=$?
6233  grep -v '^ *+' conftest.er1 >conftest.err
6234  rm -f conftest.er1
6235  cat conftest.err >&5
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); } >/dev/null; then
6238  if test -s conftest.err; then
6239    ac_cpp_err=$ac_c_preproc_warn_flag
6240    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6241  else
6242    ac_cpp_err=
6243  fi
6244else
6245  ac_cpp_err=yes
6246fi
6247if test -z "$ac_cpp_err"; then
6248  :
6249else
6250  echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253  # Broken: fails on valid input.
6254continue
6255fi
6256rm -f conftest.err conftest.$ac_ext
6257
6258  # OK, works on sane cases.  Now check whether non-existent headers
6259  # can be detected and how.
6260  cat >conftest.$ac_ext <<_ACEOF
6261/* confdefs.h.  */
6262_ACEOF
6263cat confdefs.h >>conftest.$ac_ext
6264cat >>conftest.$ac_ext <<_ACEOF
6265/* end confdefs.h.  */
6266#include <ac_nonexistent.h>
6267_ACEOF
6268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6269  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6270  ac_status=$?
6271  grep -v '^ *+' conftest.er1 >conftest.err
6272  rm -f conftest.er1
6273  cat conftest.err >&5
6274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275  (exit $ac_status); } >/dev/null; then
6276  if test -s conftest.err; then
6277    ac_cpp_err=$ac_c_preproc_warn_flag
6278    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6279  else
6280    ac_cpp_err=
6281  fi
6282else
6283  ac_cpp_err=yes
6284fi
6285if test -z "$ac_cpp_err"; then
6286  # Broken: success on invalid input.
6287continue
6288else
6289  echo "$as_me: failed program was:" >&5
6290sed 's/^/| /' conftest.$ac_ext >&5
6291
6292  # Passes both tests.
6293ac_preproc_ok=:
6294break
6295fi
6296rm -f conftest.err conftest.$ac_ext
6297
6298done
6299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6300rm -f conftest.err conftest.$ac_ext
6301if $ac_preproc_ok; then
6302  :
6303else
6304  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6305See \`config.log' for more details." >&5
6306echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6307See \`config.log' for more details." >&2;}
6308   { (exit 1); exit 1; }; }
6309fi
6310
6311ac_ext=c
6312ac_cpp='$CPP $CPPFLAGS'
6313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316
6317
6318echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6319echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6320if test "${ac_cv_header_stdc+set}" = set; then
6321  echo $ECHO_N "(cached) $ECHO_C" >&6
6322else
6323  cat >conftest.$ac_ext <<_ACEOF
6324/* confdefs.h.  */
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h.  */
6329#include <stdlib.h>
6330#include <stdarg.h>
6331#include <string.h>
6332#include <float.h>
6333
6334int
6335main ()
6336{
6337
6338  ;
6339  return 0;
6340}
6341_ACEOF
6342rm -f conftest.$ac_objext
6343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344  (eval $ac_compile) 2>conftest.er1
6345  ac_status=$?
6346  grep -v '^ *+' conftest.er1 >conftest.err
6347  rm -f conftest.er1
6348  cat conftest.err >&5
6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350  (exit $ac_status); } &&
6351         { ac_try='test -z "$ac_c_werror_flag"
6352                         || test ! -s conftest.err'
6353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354  (eval $ac_try) 2>&5
6355  ac_status=$?
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); }; } &&
6358         { ac_try='test -s conftest.$ac_objext'
6359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360  (eval $ac_try) 2>&5
6361  ac_status=$?
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); }; }; then
6364  ac_cv_header_stdc=yes
6365else
6366  echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369ac_cv_header_stdc=no
6370fi
6371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372
6373if test $ac_cv_header_stdc = yes; then
6374  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6375  cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h.  */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h.  */
6381#include <string.h>
6382
6383_ACEOF
6384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385  $EGREP "memchr" >/dev/null 2>&1; then
6386  :
6387else
6388  ac_cv_header_stdc=no
6389fi
6390rm -f conftest*
6391
6392fi
6393
6394if test $ac_cv_header_stdc = yes; then
6395  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6396  cat >conftest.$ac_ext <<_ACEOF
6397/* confdefs.h.  */
6398_ACEOF
6399cat confdefs.h >>conftest.$ac_ext
6400cat >>conftest.$ac_ext <<_ACEOF
6401/* end confdefs.h.  */
6402#include <stdlib.h>
6403
6404_ACEOF
6405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406  $EGREP "free" >/dev/null 2>&1; then
6407  :
6408else
6409  ac_cv_header_stdc=no
6410fi
6411rm -f conftest*
6412
6413fi
6414
6415if test $ac_cv_header_stdc = yes; then
6416  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6417  if test "$cross_compiling" = yes; then
6418  :
6419else
6420  cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h.  */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h.  */
6426#include <ctype.h>
6427#if ((' ' & 0x0FF) == 0x020)
6428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6430#else
6431# define ISLOWER(c) \
6432                   (('a' <= (c) && (c) <= 'i') \
6433                     || ('j' <= (c) && (c) <= 'r') \
6434                     || ('s' <= (c) && (c) <= 'z'))
6435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6436#endif
6437
6438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6439int
6440main ()
6441{
6442  int i;
6443  for (i = 0; i < 256; i++)
6444    if (XOR (islower (i), ISLOWER (i))
6445        || toupper (i) != TOUPPER (i))
6446      exit(2);
6447  exit (0);
6448}
6449_ACEOF
6450rm -f conftest$ac_exeext
6451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452  (eval $ac_link) 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457  (eval $ac_try) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); }; }; then
6461  :
6462else
6463  echo "$as_me: program exited with status $ac_status" >&5
6464echo "$as_me: failed program was:" >&5
6465sed 's/^/| /' conftest.$ac_ext >&5
6466
6467( exit $ac_status )
6468ac_cv_header_stdc=no
6469fi
6470rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6471fi
6472fi
6473fi
6474echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6475echo "${ECHO_T}$ac_cv_header_stdc" >&6
6476if test $ac_cv_header_stdc = yes; then
6477
6478cat >>confdefs.h <<\_ACEOF
6479#define STDC_HEADERS 1
6480_ACEOF
6481
6482fi
6483
6484# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6495                  inttypes.h stdint.h unistd.h
6496do
6497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6498echo "$as_me:$LINENO: checking for $ac_header" >&5
6499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6500if eval "test \"\${$as_ac_Header+set}\" = set"; then
6501  echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
6503  cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h.  */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h.  */
6509$ac_includes_default
6510
6511#include <$ac_header>
6512_ACEOF
6513rm -f conftest.$ac_objext
6514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515  (eval $ac_compile) 2>conftest.er1
6516  ac_status=$?
6517  grep -v '^ *+' conftest.er1 >conftest.err
6518  rm -f conftest.er1
6519  cat conftest.err >&5
6520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521  (exit $ac_status); } &&
6522         { ac_try='test -z "$ac_c_werror_flag"
6523                         || test ! -s conftest.err'
6524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525  (eval $ac_try) 2>&5
6526  ac_status=$?
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); }; } &&
6529         { ac_try='test -s conftest.$ac_objext'
6530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531  (eval $ac_try) 2>&5
6532  ac_status=$?
6533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); }; }; then
6535  eval "$as_ac_Header=yes"
6536else
6537  echo "$as_me: failed program was:" >&5
6538sed 's/^/| /' conftest.$ac_ext >&5
6539
6540eval "$as_ac_Header=no"
6541fi
6542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543fi
6544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546if test `eval echo '${'$as_ac_Header'}'` = yes; then
6547  cat >>confdefs.h <<_ACEOF
6548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6549_ACEOF
6550
6551fi
6552
6553done
6554
6555
6556
6557for ac_header in dlfcn.h
6558do
6559as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6560if eval "test \"\${$as_ac_Header+set}\" = set"; then
6561  echo "$as_me:$LINENO: checking for $ac_header" >&5
6562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564  echo $ECHO_N "(cached) $ECHO_C" >&6
6565fi
6566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6568else
6569  # Is the header compilable?
6570echo "$as_me:$LINENO: checking $ac_header usability" >&5
6571echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6572cat >conftest.$ac_ext <<_ACEOF
6573/* confdefs.h.  */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h.  */
6578$ac_includes_default
6579#include <$ac_header>
6580_ACEOF
6581rm -f conftest.$ac_objext
6582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583  (eval $ac_compile) 2>conftest.er1
6584  ac_status=$?
6585  grep -v '^ *+' conftest.er1 >conftest.err
6586  rm -f conftest.er1
6587  cat conftest.err >&5
6588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589  (exit $ac_status); } &&
6590         { ac_try='test -z "$ac_c_werror_flag"
6591                         || test ! -s conftest.err'
6592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593  (eval $ac_try) 2>&5
6594  ac_status=$?
6595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596  (exit $ac_status); }; } &&
6597         { ac_try='test -s conftest.$ac_objext'
6598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599  (eval $ac_try) 2>&5
6600  ac_status=$?
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); }; }; then
6603  ac_header_compiler=yes
6604else
6605  echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608ac_header_compiler=no
6609fi
6610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6611echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6612echo "${ECHO_T}$ac_header_compiler" >&6
6613
6614# Is the header present?
6615echo "$as_me:$LINENO: checking $ac_header presence" >&5
6616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6617cat >conftest.$ac_ext <<_ACEOF
6618/* confdefs.h.  */
6619_ACEOF
6620cat confdefs.h >>conftest.$ac_ext
6621cat >>conftest.$ac_ext <<_ACEOF
6622/* end confdefs.h.  */
6623#include <$ac_header>
6624_ACEOF
6625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6626  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6627  ac_status=$?
6628  grep -v '^ *+' conftest.er1 >conftest.err
6629  rm -f conftest.er1
6630  cat conftest.err >&5
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); } >/dev/null; then
6633  if test -s conftest.err; then
6634    ac_cpp_err=$ac_c_preproc_warn_flag
6635    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6636  else
6637    ac_cpp_err=
6638  fi
6639else
6640  ac_cpp_err=yes
6641fi
6642if test -z "$ac_cpp_err"; then
6643  ac_header_preproc=yes
6644else
6645  echo "$as_me: failed program was:" >&5
6646sed 's/^/| /' conftest.$ac_ext >&5
6647
6648  ac_header_preproc=no
6649fi
6650rm -f conftest.err conftest.$ac_ext
6651echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6652echo "${ECHO_T}$ac_header_preproc" >&6
6653
6654# So?  What about this header?
6655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6656  yes:no: )
6657    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6659    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6661    ac_header_preproc=yes
6662    ;;
6663  no:yes:* )
6664    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6666    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6667echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6668    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6670    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6671echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6672    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6674    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6676    (
6677      cat <<\_ASBOX
6678## ----------------------------------- ##
6679## Report this to clp@list.coin-or.org ##
6680## ----------------------------------- ##
6681_ASBOX
6682    ) |
6683      sed "s/^/$as_me: WARNING:     /" >&2
6684    ;;
6685esac
6686echo "$as_me:$LINENO: checking for $ac_header" >&5
6687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6688if eval "test \"\${$as_ac_Header+set}\" = set"; then
6689  echo $ECHO_N "(cached) $ECHO_C" >&6
6690else
6691  eval "$as_ac_Header=\$ac_header_preproc"
6692fi
6693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6695
6696fi
6697if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698  cat >>confdefs.h <<_ACEOF
6699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6700_ACEOF
6701
6702fi
6703
6704done
6705
6706
6707
6708if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6709    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6710    (test "X$CXX" != "Xg++"))) ; then
6711  ac_ext=cc
6712ac_cpp='$CXXCPP $CPPFLAGS'
6713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6716echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6717echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6718if test -z "$CXXCPP"; then
6719  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6720  echo $ECHO_N "(cached) $ECHO_C" >&6
6721else
6722      # Double quotes because CXXCPP needs to be expanded
6723    for CXXCPP in "$CXX -E" "/lib/cpp"
6724    do
6725      ac_preproc_ok=false
6726for ac_cxx_preproc_warn_flag in '' yes
6727do
6728  # Use a header file that comes with gcc, so configuring glibc
6729  # with a fresh cross-compiler works.
6730  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731  # <limits.h> exists even on freestanding compilers.
6732  # On the NeXT, cc -E runs the code through the compiler's parser,
6733  # not just through cpp. "Syntax error" is here to catch this case.
6734  cat >conftest.$ac_ext <<_ACEOF
6735/* confdefs.h.  */
6736_ACEOF
6737cat confdefs.h >>conftest.$ac_ext
6738cat >>conftest.$ac_ext <<_ACEOF
6739/* end confdefs.h.  */
6740#ifdef __STDC__
6741# include <limits.h>
6742#else
6743# include <assert.h>
6744#endif
6745                     Syntax error
6746_ACEOF
6747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6748  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6749  ac_status=$?
6750  grep -v '^ *+' conftest.er1 >conftest.err
6751  rm -f conftest.er1
6752  cat conftest.err >&5
6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754  (exit $ac_status); } >/dev/null; then
6755  if test -s conftest.err; then
6756    ac_cpp_err=$ac_cxx_preproc_warn_flag
6757    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6758  else
6759    ac_cpp_err=
6760  fi
6761else
6762  ac_cpp_err=yes
6763fi
6764if test -z "$ac_cpp_err"; then
6765  :
6766else
6767  echo "$as_me: failed program was:" >&5
6768sed 's/^/| /' conftest.$ac_ext >&5
6769
6770  # Broken: fails on valid input.
6771continue
6772fi
6773rm -f conftest.err conftest.$ac_ext
6774
6775  # OK, works on sane cases.  Now check whether non-existent headers
6776  # can be detected and how.
6777  cat >conftest.$ac_ext <<_ACEOF
6778/* confdefs.h.  */
6779_ACEOF
6780cat confdefs.h >>conftest.$ac_ext
6781cat >>conftest.$ac_ext <<_ACEOF
6782/* end confdefs.h.  */
6783#include <ac_nonexistent.h>
6784_ACEOF
6785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6786  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6787  ac_status=$?
6788  grep -v '^ *+' conftest.er1 >conftest.err
6789  rm -f conftest.er1
6790  cat conftest.err >&5
6791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792  (exit $ac_status); } >/dev/null; then
6793  if test -s conftest.err; then
6794    ac_cpp_err=$ac_cxx_preproc_warn_flag
6795    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6796  else
6797    ac_cpp_err=
6798  fi
6799else
6800  ac_cpp_err=yes
6801fi
6802if test -z "$ac_cpp_err"; then
6803  # Broken: success on invalid input.
6804continue
6805else
6806  echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809  # Passes both tests.
6810ac_preproc_ok=:
6811break
6812fi
6813rm -f conftest.err conftest.$ac_ext
6814
6815done
6816# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6817rm -f conftest.err conftest.$ac_ext
6818if $ac_preproc_ok; then
6819  break
6820fi
6821
6822    done
6823    ac_cv_prog_CXXCPP=$CXXCPP
6824
6825fi
6826  CXXCPP=$ac_cv_prog_CXXCPP
6827else
6828  ac_cv_prog_CXXCPP=$CXXCPP
6829fi
6830echo "$as_me:$LINENO: result: $CXXCPP" >&5
6831echo "${ECHO_T}$CXXCPP" >&6
6832ac_preproc_ok=false
6833for ac_cxx_preproc_warn_flag in '' yes
6834do
6835  # Use a header file that comes with gcc, so configuring glibc
6836  # with a fresh cross-compiler works.
6837  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6838  # <limits.h> exists even on freestanding compilers.
6839  # On the NeXT, cc -E runs the code through the compiler's parser,
6840  # not just through cpp. "Syntax error" is here to catch this case.
6841  cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h.  */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h.  */
6847#ifdef __STDC__
6848# include <limits.h>
6849#else
6850# include <assert.h>
6851#endif
6852                     Syntax error
6853_ACEOF
6854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6855  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6856  ac_status=$?
6857  grep -v '^ *+' conftest.er1 >conftest.err
6858  rm -f conftest.er1
6859  cat conftest.err >&5
6860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861  (exit $ac_status); } >/dev/null; then
6862  if test -s conftest.err; then
6863    ac_cpp_err=$ac_cxx_preproc_warn_flag
6864    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6865  else
6866    ac_cpp_err=
6867  fi
6868else
6869  ac_cpp_err=yes
6870fi
6871if test -z "$ac_cpp_err"; then
6872  :
6873else
6874  echo "$as_me: failed program was:" >&5
6875sed 's/^/| /' conftest.$ac_ext >&5
6876
6877  # Broken: fails on valid input.
6878continue
6879fi
6880rm -f conftest.err conftest.$ac_ext
6881
6882  # OK, works on sane cases.  Now check whether non-existent headers
6883  # can be detected and how.
6884  cat >conftest.$ac_ext <<_ACEOF
6885/* confdefs.h.  */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h.  */
6890#include <ac_nonexistent.h>
6891_ACEOF
6892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6893  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6894  ac_status=$?
6895  grep -v '^ *+' conftest.er1 >conftest.err
6896  rm -f conftest.er1
6897  cat conftest.err >&5
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); } >/dev/null; then
6900  if test -s conftest.err; then
6901    ac_cpp_err=$ac_cxx_preproc_warn_flag
6902    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6903  else
6904    ac_cpp_err=
6905  fi
6906else
6907  ac_cpp_err=yes
6908fi
6909if test -z "$ac_cpp_err"; then
6910  # Broken: success on invalid input.
6911continue
6912else
6913  echo "$as_me: failed program was:" >&5
6914sed 's/^/| /' conftest.$ac_ext >&5
6915
6916  # Passes both tests.
6917ac_preproc_ok=:
6918break
6919fi
6920rm -f conftest.err conftest.$ac_ext
6921
6922done
6923# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6924rm -f conftest.err conftest.$ac_ext
6925if $ac_preproc_ok; then
6926  :
6927else
6928  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6929See \`config.log' for more details." >&5
6930echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6931See \`config.log' for more details." >&2;}
6932   { (exit 1); exit 1; }; }
6933fi
6934
6935ac_ext=cc
6936ac_cpp='$CXXCPP $CPPFLAGS'
6937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6940
6941fi
6942
6943ac_ext=f
6944ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6945ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6947if test -n "$ac_tool_prefix"; then
6948  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6949  do
6950    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6951set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6952echo "$as_me:$LINENO: checking for $ac_word" >&5
6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6954if test "${ac_cv_prog_F77+set}" = set; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  if test -n "$F77"; then
6958  ac_cv_prog_F77="$F77" # Let the user override the test.
6959else
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963  IFS=$as_save_IFS
6964  test -z "$as_dir" && as_dir=.
6965  for ac_exec_ext in '' $ac_executable_extensions; do
6966  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969    break 2
6970  fi
6971done
6972done
6973
6974fi
6975fi
6976F77=$ac_cv_prog_F77
6977if test -n "$F77"; then
6978  echo "$as_me:$LINENO: result: $F77" >&5
6979echo "${ECHO_T}$F77" >&6
6980else
6981  echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6
6983fi
6984
6985    test -n "$F77" && break
6986  done
6987fi
6988if test -z "$F77"; then
6989  ac_ct_F77=$F77
6990  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6991do
6992  # Extract the first word of "$ac_prog", so it can be a program name with args.
6993set dummy $ac_prog; ac_word=$2
6994echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6996if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999  if test -n "$ac_ct_F77"; then
7000  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007  for ac_exec_ext in '' $ac_executable_extensions; do
7008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009    ac_cv_prog_ac_ct_F77="$ac_prog"
7010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014done
7015
7016fi
7017fi
7018ac_ct_F77=$ac_cv_prog_ac_ct_F77
7019if test -n "$ac_ct_F77"; then
7020  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7021echo "${ECHO_T}$ac_ct_F77" >&6
7022else
7023  echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6
7025fi
7026
7027  test -n "$ac_ct_F77" && break
7028done
7029
7030  F77=$ac_ct_F77
7031fi
7032
7033
7034# Provide some information about the compiler.
7035echo "$as_me:7035:" \
7036     "checking for Fortran 77 compiler version" >&5
7037ac_compiler=`set X $ac_compile; echo $2`
7038{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7039  (eval $ac_compiler --version </dev/null >&5) 2>&5
7040  ac_status=$?
7041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042  (exit $ac_status); }
7043{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7044  (eval $ac_compiler -v </dev/null >&5) 2>&5
7045  ac_status=$?
7046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047  (exit $ac_status); }
7048{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7049  (eval $ac_compiler -V </dev/null >&5) 2>&5
7050  ac_status=$?
7051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052  (exit $ac_status); }
7053rm -f a.out
7054
7055# If we don't use `.F' as extension, the preprocessor is not run on the
7056# input file.  (Note that this only needs to work for GNU compilers.)
7057ac_save_ext=$ac_ext
7058ac_ext=F
7059echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7060echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7061if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7062  echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064  cat >conftest.$ac_ext <<_ACEOF
7065      program main
7066#ifndef __GNUC__
7067       choke me
7068#endif
7069
7070      end
7071_ACEOF
7072rm -f conftest.$ac_objext
7073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074  (eval $ac_compile) 2>conftest.er1
7075  ac_status=$?
7076  grep -v '^ *+' conftest.er1 >conftest.err
7077  rm -f conftest.er1
7078  cat conftest.err >&5
7079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080  (exit $ac_status); } &&
7081         { ac_try='test -z "$ac_f77_werror_flag"
7082                         || test ! -s conftest.err'
7083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084  (eval $ac_try) 2>&5
7085  ac_status=$?
7086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087  (exit $ac_status); }; } &&
7088         { ac_try='test -s conftest.$ac_objext'
7089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090  (eval $ac_try) 2>&5
7091  ac_status=$?
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); }; }; then
7094  ac_compiler_gnu=yes
7095else
7096  echo "$as_me: failed program was:" >&5
7097sed 's/^/| /' conftest.$ac_ext >&5
7098
7099ac_compiler_gnu=no
7100fi
7101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7102ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7103
7104fi
7105echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7106echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7107ac_ext=$ac_save_ext
7108ac_test_FFLAGS=${FFLAGS+set}
7109ac_save_FFLAGS=$FFLAGS
7110FFLAGS=
7111echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7112echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7113if test "${ac_cv_prog_f77_g+set}" = set; then
7114  echo $ECHO_N "(cached) $ECHO_C" >&6
7115else
7116  FFLAGS=-g
7117cat >conftest.$ac_ext <<_ACEOF
7118      program main
7119
7120      end
7121_ACEOF
7122rm -f conftest.$ac_objext
7123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7124  (eval $ac_compile) 2>conftest.er1
7125  ac_status=$?
7126  grep -v '^ *+' conftest.er1 >conftest.err
7127  rm -f conftest.er1
7128  cat conftest.err >&5
7129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130  (exit $ac_status); } &&
7131         { ac_try='test -z "$ac_f77_werror_flag"
7132                         || test ! -s conftest.err'
7133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134  (eval $ac_try) 2>&5
7135  ac_status=$?
7136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137  (exit $ac_status); }; } &&
7138         { ac_try='test -s conftest.$ac_objext'
7139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140  (eval $ac_try) 2>&5
7141  ac_status=$?
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); }; }; then
7144  ac_cv_prog_f77_g=yes
7145else
7146  echo "$as_me: failed program was:" >&5
7147sed 's/^/| /' conftest.$ac_ext >&5
7148
7149ac_cv_prog_f77_g=no
7150fi
7151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7152
7153fi
7154echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7155echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7156if test "$ac_test_FFLAGS" = set; then
7157  FFLAGS=$ac_save_FFLAGS
7158elif test $ac_cv_prog_f77_g = yes; then
7159  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7160    FFLAGS="-g -O2"
7161  else
7162    FFLAGS="-g"
7163  fi
7164else
7165  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7166    FFLAGS="-O2"
7167  else
7168    FFLAGS=
7169  fi
7170fi
7171
7172G77=`test $ac_compiler_gnu = yes && echo yes`
7173ac_ext=c
7174ac_cpp='$CPP $CPPFLAGS'
7175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177ac_compiler_gnu=$ac_cv_c_compiler_gnu
7178
7179
7180
7181# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7182
7183# find the maximum length of command line arguments
7184echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7185echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7186if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7187  echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189    i=0
7190  teststring="ABCD"
7191
7192  case $build_os in
7193  msdosdjgpp*)
7194    # On DJGPP, this test can blow up pretty badly due to problems in libc
7195    # (any single argument exceeding 2000 bytes causes a buffer overrun
7196    # during glob expansion).  Even if it were fixed, the result of this
7197    # check would be larger than it should be.
7198    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7199    ;;
7200
7201  gnu*)
7202    # Under GNU Hurd, this test is not required because there is
7203    # no limit to the length of command line arguments.
7204    # Libtool will interpret -1 as no limit whatsoever
7205    lt_cv_sys_max_cmd_len=-1;
7206    ;;
7207
7208  cygwin* | mingw*)
7209    # On Win9x/ME, this test blows up -- it succeeds, but takes
7210    # about 5 minutes as the teststring grows exponentially.
7211    # Worse, since 9x/ME are not pre-emptively multitasking,
7212    # you end up with a "frozen" computer, even though with patience
7213    # the test eventually succeeds (with a max line length of 256k).
7214    # Instead, let's just punt: use the minimum linelength reported by
7215    # all of the supported platforms: 8192 (on NT/2K/XP).
7216    lt_cv_sys_max_cmd_len=8192;
7217    ;;
7218
7219  amigaos*)
7220    # On AmigaOS with pdksh, this test takes hours, literally.
7221    # So we just punt and use a minimum line length of 8192.
7222    lt_cv_sys_max_cmd_len=8192;
7223    ;;
7224
7225  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7226    # This has been around since 386BSD, at least.  Likely further.
7227    if test -x /sbin/sysctl; then
7228      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7229    elif test -x /usr/sbin/sysctl; then
7230      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7231    else
7232      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7233    fi
7234    # And add a safety zone
7235    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7236    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7237    ;;
7238
7239  interix*)
7240    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7241    lt_cv_sys_max_cmd_len=196608
7242    ;;
7243
7244  osf*)
7245    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7246    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7247    # nice to cause kernel panics so lets avoid the loop below.
7248    # First set a reasonable default.
7249    lt_cv_sys_max_cmd_len=16384
7250    #
7251    if test -x /sbin/sysconfig; then
7252      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7253        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7254      esac
7255    fi
7256    ;;
7257  sco3.2v5*)
7258    lt_cv_sys_max_cmd_len=102400
7259    ;;
7260  sysv5* | sco5v6* | sysv4.2uw2*)
7261    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7262    if test -n "$kargmax"; then
7263      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7264    else
7265      lt_cv_sys_max_cmd_len=32768
7266    fi
7267    ;;
7268  *)
7269    # If test is not a shell built-in, we'll probably end up computing a
7270    # maximum length that is only half of the actual maximum length, but
7271    # we can't tell.
7272    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7273    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7274               = "XX$teststring") >/dev/null 2>&1 &&
7275            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7276            lt_cv_sys_max_cmd_len=$new_result &&
7277            test $i != 17 # 1/2 MB should be enough
7278    do
7279      i=`expr $i + 1`
7280      teststring=$teststring$teststring
7281    done
7282    teststring=
7283    # Add a significant safety factor because C++ compilers can tack on massive
7284    # amounts of additional arguments before passing them to the linker.
7285    # It appears as though 1/2 is a usable value.
7286    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7287    ;;
7288  esac
7289
7290fi
7291
7292if test -n $lt_cv_sys_max_cmd_len ; then
7293  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7294echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7295else
7296  echo "$as_me:$LINENO: result: none" >&5
7297echo "${ECHO_T}none" >&6
7298fi
7299
7300
7301
7302
7303# Check for command to grab the raw symbol name followed by C symbol from nm.
7304echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7305echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7306if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7307  echo $ECHO_N "(cached) $ECHO_C" >&6
7308else
7309
7310# These are sane defaults that work on at least a few old systems.
7311# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7312
7313# Character class describing NM global symbol codes.
7314symcode='[BCDEGRST]'
7315
7316# Regexp to match symbols that can be accessed directly from C.
7317sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7318
7319# Transform an extracted symbol line into a proper C declaration
7320lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7321
7322# Transform an extracted symbol line into symbol name and symbol address
7323lt_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'"
7324
7325# Define system-specific variables.
7326case $host_os in
7327aix*)
7328  symcode='[BCDT]'
7329  ;;
7330cygwin* | mingw* | pw32*)
7331  symcode='[ABCDGISTW]'
7332  ;;
7333hpux*) # Its linker distinguishes data from code symbols
7334  if test "$host_cpu" = ia64; then
7335    symcode='[ABCDEGRST]'
7336  fi
7337  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7338  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'"
7339  ;;
7340linux*)
7341  if test "$host_cpu" = ia64; then
7342    symcode='[ABCDGIRSTW]'
7343    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7344    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'"
7345  fi
7346  ;;
7347irix* | nonstopux*)
7348  symcode='[BCDEGRST]'
7349  ;;
7350osf*)
7351  symcode='[BCDEGQRST]'
7352  ;;
7353solaris*)
7354  symcode='[BDRT]'
7355  ;;
7356sco3.2v5*)
7357  symcode='[DT]'
7358  ;;
7359sysv4.2uw2*)
7360  symcode='[DT]'
7361  ;;
7362sysv5* | sco5v6* | unixware* | OpenUNIX*)
7363  symcode='[ABDT]'
7364  ;;
7365sysv4)
7366  symcode='[DFNSTU]'
7367  ;;
7368esac
7369
7370# Handle CRLF in mingw tool chain
7371opt_cr=
7372case $build_os in
7373mingw*)
7374  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7375  ;;
7376esac
7377
7378# If we're using GNU nm, then use its standard symbol codes.
7379case `$NM -V 2>&1` in
7380*GNU* | *'with BFD'*)
7381  symcode='[ABCDGIRSTW]' ;;
7382esac
7383
7384# Try without a prefix undercore, then with it.
7385for ac_symprfx in "" "_"; do
7386
7387  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7388  symxfrm="\\1 $ac_symprfx\\2 \\2"
7389
7390  # Write the raw and C identifiers.
7391  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7392
7393  # Check to see that the pipe works correctly.
7394  pipe_works=no
7395
7396  rm -f conftest*
7397  cat > conftest.$ac_ext <<EOF
7398#ifdef __cplusplus
7399extern "C" {
7400#endif
7401char nm_test_var;
7402void nm_test_func(){}
7403#ifdef __cplusplus
7404}
7405#endif
7406int main(){nm_test_var='a';nm_test_func();return(0);}
7407EOF
7408
7409  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410  (eval $ac_compile) 2>&5
7411  ac_status=$?
7412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413  (exit $ac_status); }; then
7414    # Now try to grab the symbols.
7415    nlist=conftest.nm
7416    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7417  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7418  ac_status=$?
7419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420  (exit $ac_status); } && test -s "$nlist"; then
7421      # Try sorting and uniquifying the output.
7422      if sort "$nlist" | uniq > "$nlist"T; then
7423        mv -f "$nlist"T "$nlist"
7424      else
7425        rm -f "$nlist"T
7426      fi
7427
7428      # Make sure that we snagged all the symbols we need.
7429      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7430        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7431          cat <<EOF > conftest.$ac_ext
7432#ifdef __cplusplus
7433extern "C" {
7434#endif
7435
7436EOF
7437          # Now generate the symbol file.
7438          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7439
7440          cat <<EOF >> conftest.$ac_ext
7441#if defined (__STDC__) && __STDC__
7442# define lt_ptr_t void *
7443#else
7444# define lt_ptr_t char *
7445# define const
7446#endif
7447
7448/* The mapping between symbol names and symbols. */
7449const struct {
7450  const char *name;
7451  lt_ptr_t address;
7452}
7453lt_preloaded_symbols[] =
7454{
7455EOF
7456          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7457          cat <<\EOF >> conftest.$ac_ext
7458  {0, (lt_ptr_t) 0}
7459};
7460
7461#ifdef __cplusplus
7462}
7463#endif
7464EOF
7465          # Now try linking the two files.
7466          mv conftest.$ac_objext conftstm.$ac_objext
7467          lt_save_LIBS="$LIBS"
7468          lt_save_CFLAGS="$CFLAGS"
7469          LIBS="conftstm.$ac_objext"
7470          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7471          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472  (eval $ac_link) 2>&5
7473  ac_status=$?
7474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7476            pipe_works=yes
7477          fi
7478          LIBS="$lt_save_LIBS"
7479          CFLAGS="$lt_save_CFLAGS"
7480        else
7481          echo "cannot find nm_test_func in $nlist" >&5
7482        fi
7483      else
7484        echo "cannot find nm_test_var in $nlist" >&5
7485      fi
7486    else
7487      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7488    fi
7489  else
7490    echo "$progname: failed program was:" >&5
7491    cat conftest.$ac_ext >&5
7492  fi
7493  rm -f conftest* conftst*
7494
7495  # Do not use the global_symbol_pipe unless it works.
7496  if test "$pipe_works" = yes; then
7497    break
7498  else
7499    lt_cv_sys_global_symbol_pipe=
7500  fi
7501done
7502
7503fi
7504
7505if test -z "$lt_cv_sys_global_symbol_pipe"; then
7506  lt_cv_sys_global_symbol_to_cdecl=
7507fi
7508if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7509  echo "$as_me:$LINENO: result: failed" >&5
7510echo "${ECHO_T}failed" >&6
7511else
7512  echo "$as_me:$LINENO: result: ok" >&5
7513echo "${ECHO_T}ok" >&6
7514fi
7515
7516echo "$as_me:$LINENO: checking for objdir" >&5
7517echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7518if test "${lt_cv_objdir+set}" = set; then
7519  echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521  rm -f .libs 2>/dev/null
7522mkdir .libs 2>/dev/null
7523if test -d .libs; then
7524  lt_cv_objdir=.libs
7525else
7526  # MS-DOS does not allow filenames that begin with a dot.
7527  lt_cv_objdir=_libs
7528fi
7529rmdir .libs 2>/dev/null
7530fi
7531echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7532echo "${ECHO_T}$lt_cv_objdir" >&6
7533objdir=$lt_cv_objdir
7534
7535
7536
7537
7538
7539case $host_os in
7540aix3*)
7541  # AIX sometimes has problems with the GCC collect2 program.  For some
7542  # reason, if we set the COLLECT_NAMES environment variable, the problems
7543  # vanish in a puff of smoke.
7544  if test "X${COLLECT_NAMES+set}" != Xset; then
7545    COLLECT_NAMES=
7546    export COLLECT_NAMES
7547  fi
7548  ;;
7549esac
7550
7551# Sed substitution that helps us do robust quoting.  It backslashifies
7552# metacharacters that are still active within double-quoted strings.
7553Xsed='sed -e 1s/^X//'
7554sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7555
7556# Same as above, but do not quote variable references.
7557double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7558
7559# Sed substitution to delay expansion of an escaped shell variable in a
7560# double_quote_subst'ed string.
7561delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7562
7563# Sed substitution to avoid accidental globbing in evaled expressions
7564no_glob_subst='s/\*/\\\*/g'
7565
7566# Constants:
7567rm="rm -f"
7568
7569# Global variables:
7570default_ofile=libtool
7571can_build_shared=yes
7572
7573# All known linkers require a `.a' archive for static linking (except MSVC,
7574# which needs '.lib').
7575libext=a
7576ltmain="$ac_aux_dir/ltmain.sh"
7577ofile="$default_ofile"
7578with_gnu_ld="$lt_cv_prog_gnu_ld"
7579
7580if test -n "$ac_tool_prefix"; then
7581  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7582set dummy ${ac_tool_prefix}ar; ac_word=$2
7583echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7585if test "${ac_cv_prog_AR+set}" = set; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588  if test -n "$AR"; then
7589  ac_cv_prog_AR="$AR" # Let the user override the test.
7590else
7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
7594  IFS=$as_save_IFS
7595  test -z "$as_dir" && as_dir=.
7596  for ac_exec_ext in '' $ac_executable_extensions; do
7597  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598    ac_cv_prog_AR="${ac_tool_prefix}ar"
7599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600    break 2
7601  fi
7602done
7603done
7604
7605fi
7606fi
7607AR=$ac_cv_prog_AR
7608if test -n "$AR"; then
7609  echo "$as_me:$LINENO: result: $AR" >&5
7610echo "${ECHO_T}$AR" >&6
7611else
7612  echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6
7614fi
7615
7616fi
7617if test -z "$ac_cv_prog_AR"; then
7618  ac_ct_AR=$AR
7619  # Extract the first word of "ar", so it can be a program name with args.
7620set dummy ar; ac_word=$2
7621echo "$as_me:$LINENO: checking for $ac_word" >&5
7622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7623if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7624  echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626  if test -n "$ac_ct_AR"; then
7627  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7628else
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632  IFS=$as_save_IFS
7633  test -z "$as_dir" && as_dir=.
7634  for ac_exec_ext in '' $ac_executable_extensions; do
7635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636    ac_cv_prog_ac_ct_AR="ar"
7637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638    break 2
7639  fi
7640done
7641done
7642
7643  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7644fi
7645fi
7646ac_ct_AR=$ac_cv_prog_ac_ct_AR
7647if test -n "$ac_ct_AR"; then
7648  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7649echo "${ECHO_T}$ac_ct_AR" >&6
7650else
7651  echo "$as_me:$LINENO: result: no" >&5
7652echo "${ECHO_T}no" >&6
7653fi
7654
7655  AR=$ac_ct_AR
7656else
7657  AR="$ac_cv_prog_AR"
7658fi
7659
7660if test -n "$ac_tool_prefix"; then
7661  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7662set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7663echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7665if test "${ac_cv_prog_RANLIB+set}" = set; then
7666  echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668  if test -n "$RANLIB"; then
7669  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7670else
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674  IFS=$as_save_IFS
7675  test -z "$as_dir" && as_dir=.
7676  for ac_exec_ext in '' $ac_executable_extensions; do
7677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680    break 2
7681  fi
7682done
7683done
7684
7685fi
7686fi
7687RANLIB=$ac_cv_prog_RANLIB
7688if test -n "$RANLIB"; then
7689  echo "$as_me:$LINENO: result: $RANLIB" >&5
7690echo "${ECHO_T}$RANLIB" >&6
7691else
7692  echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6
7694fi
7695
7696fi
7697if test -z "$ac_cv_prog_RANLIB"; then
7698  ac_ct_RANLIB=$RANLIB
7699  # Extract the first word of "ranlib", so it can be a program name with args.
7700set dummy ranlib; ac_word=$2
7701echo "$as_me:$LINENO: checking for $ac_word" >&5
7702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7703if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7704  echo $ECHO_N "(cached) $ECHO_C" >&6
7705else
7706  if test -n "$ac_ct_RANLIB"; then
7707  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7708else
7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712  IFS=$as_save_IFS
7713  test -z "$as_dir" && as_dir=.
7714  for ac_exec_ext in '' $ac_executable_extensions; do
7715  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716    ac_cv_prog_ac_ct_RANLIB="ranlib"
7717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718    break 2
7719  fi
7720done
7721done
7722
7723  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7724fi
7725fi
7726ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7727if test -n "$ac_ct_RANLIB"; then
7728  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7729echo "${ECHO_T}$ac_ct_RANLIB" >&6
7730else
7731  echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
7733fi
7734
7735  RANLIB=$ac_ct_RANLIB
7736else
7737  RANLIB="$ac_cv_prog_RANLIB"
7738fi
7739
7740if test -n "$ac_tool_prefix"; then
7741  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7742set dummy ${ac_tool_prefix}strip; ac_word=$2
7743echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7745if test "${ac_cv_prog_STRIP+set}" = set; then
7746  echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748  if test -n "$STRIP"; then
7749  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754  IFS=$as_save_IFS
7755  test -z "$as_dir" && as_dir=.
7756  for ac_exec_ext in '' $ac_executable_extensions; do
7757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760    break 2
7761  fi
7762done
7763done
7764
7765fi
7766fi
7767STRIP=$ac_cv_prog_STRIP
7768if test -n "$STRIP"; then
7769  echo "$as_me:$LINENO: result: $STRIP" >&5
7770echo "${ECHO_T}$STRIP" >&6
7771else
7772  echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6
7774fi
7775
7776fi
7777if test -z "$ac_cv_prog_STRIP"; then
7778  ac_ct_STRIP=$STRIP
7779  # Extract the first word of "strip", so it can be a program name with args.
7780set dummy strip; ac_word=$2
7781echo "$as_me:$LINENO: checking for $ac_word" >&5
7782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7783if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7784  echo $ECHO_N "(cached) $ECHO_C" >&6
7785else
7786  if test -n "$ac_ct_STRIP"; then
7787  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792  IFS=$as_save_IFS
7793  test -z "$as_dir" && as_dir=.
7794  for ac_exec_ext in '' $ac_executable_extensions; do
7795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796    ac_cv_prog_ac_ct_STRIP="strip"
7797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7798    break 2
7799  fi
7800done
7801done
7802
7803  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7804fi
7805fi
7806ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7807if test -n "$ac_ct_STRIP"; then
7808  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7809echo "${ECHO_T}$ac_ct_STRIP" >&6
7810else
7811  echo "$as_me:$LINENO: result: no" >&5
7812echo "${ECHO_T}no" >&6
7813fi
7814
7815  STRIP=$ac_ct_STRIP
7816else
7817  STRIP="$ac_cv_prog_STRIP"
7818fi
7819
7820
7821old_CC="$CC"
7822old_CFLAGS="$CFLAGS"
7823
7824# Set sane defaults for various variables
7825test -z "$AR" && AR=ar
7826test -z "$AR_FLAGS" && AR_FLAGS=cru
7827test -z "$AS" && AS=as
7828test -z "$CC" && CC=cc
7829test -z "$LTCC" && LTCC=$CC
7830test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7831test -z "$DLLTOOL" && DLLTOOL=dlltool
7832test -z "$LD" && LD=ld
7833test -z "$LN_S" && LN_S="ln -s"
7834test -z "$MAGIC_CMD" && MAGIC_CMD=file
7835test -z "$NM" && NM=nm
7836test -z "$SED" && SED=sed
7837test -z "$OBJDUMP" && OBJDUMP=objdump
7838test -z "$RANLIB" && RANLIB=:
7839test -z "$STRIP" && STRIP=:
7840test -z "$ac_objext" && ac_objext=o
7841
7842# Determine commands to create old-style static archives.
7843old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7844old_postinstall_cmds='chmod 644 $oldlib'
7845old_postuninstall_cmds=
7846
7847if test -n "$RANLIB"; then
7848  case $host_os in
7849  openbsd*)
7850    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7851    ;;
7852  *)
7853    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7854    ;;
7855  esac
7856  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7857fi
7858
7859for cc_temp in $compiler""; do
7860  case $cc_temp in
7861    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7862    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7863    \-*) ;;
7864    *) break;;
7865  esac
7866done
7867cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7868
7869
7870# Only perform the check for file, if the check method requires it
7871case $deplibs_check_method in
7872file_magic*)
7873  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7874    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7875echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7876if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7877  echo $ECHO_N "(cached) $ECHO_C" >&6
7878else
7879  case $MAGIC_CMD in
7880[\\/*] |  ?:[\\/]*)
7881  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7882  ;;
7883*)
7884  lt_save_MAGIC_CMD="$MAGIC_CMD"
7885  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7886  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7887  for ac_dir in $ac_dummy; do
7888    IFS="$lt_save_ifs"
7889    test -z "$ac_dir" && ac_dir=.
7890    if test -f $ac_dir/${ac_tool_prefix}file; then
7891      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7892      if test -n "$file_magic_test_file"; then
7893        case $deplibs_check_method in
7894        "file_magic "*)
7895          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7896          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7897          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7898            $EGREP "$file_magic_regex" > /dev/null; then
7899            :
7900          else
7901            cat <<EOF 1>&2
7902
7903*** Warning: the command libtool uses to detect shared libraries,
7904*** $file_magic_cmd, produces output that libtool cannot recognize.
7905*** The result is that libtool may fail to recognize shared libraries
7906*** as such.  This will affect the creation of libtool libraries that
7907*** depend on shared libraries, but programs linked with such libtool
7908*** libraries will work regardless of this problem.  Nevertheless, you
7909*** may want to report the problem to your system manager and/or to
7910*** bug-libtool@gnu.org
7911
7912EOF
7913          fi ;;
7914        esac
7915      fi
7916      break
7917    fi
7918  done
7919  IFS="$lt_save_ifs"
7920  MAGIC_CMD="$lt_save_MAGIC_CMD"
7921  ;;
7922esac
7923fi
7924
7925MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7926if test -n "$MAGIC_CMD"; then
7927  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7928echo "${ECHO_T}$MAGIC_CMD" >&6
7929else
7930  echo "$as_me:$LINENO: result: no" >&5
7931echo "${ECHO_T}no" >&6
7932fi
7933
7934if test -z "$lt_cv_path_MAGIC_CMD"; then
7935  if test -n "$ac_tool_prefix"; then
7936    echo "$as_me:$LINENO: checking for file" >&5
7937echo $ECHO_N "checking for file... $ECHO_C" >&6
7938if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7939  echo $ECHO_N "(cached) $ECHO_C" >&6
7940else
7941  case $MAGIC_CMD in
7942[\\/*] |  ?:[\\/]*)
7943  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7944  ;;
7945*)
7946  lt_save_MAGIC_CMD="$MAGIC_CMD"
7947  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7948  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7949  for ac_dir in $ac_dummy; do
7950    IFS="$lt_save_ifs"
7951    test -z "$ac_dir" && ac_dir=.
7952    if test -f $ac_dir/file; then
7953      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7954      if test -n "$file_magic_test_file"; then
7955        case $deplibs_check_method in
7956        "file_magic "*)
7957          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7958          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7959          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7960            $EGREP "$file_magic_regex" > /dev/null; then
7961            :
7962          else
7963            cat <<EOF 1>&2
7964
7965*** Warning: the command libtool uses to detect shared libraries,
7966*** $file_magic_cmd, produces output that libtool cannot recognize.
7967*** The result is that libtool may fail to recognize shared libraries
7968*** as such.  This will affect the creation of libtool libraries that
7969*** depend on shared libraries, but programs linked with such libtool
7970*** libraries will work regardless of this problem.  Nevertheless, you
7971*** may want to report the problem to your system manager and/or to
7972*** bug-libtool@gnu.org
7973
7974EOF
7975          fi ;;
7976        esac
7977      fi
7978      break
7979    fi
7980  done
7981  IFS="$lt_save_ifs"
7982  MAGIC_CMD="$lt_save_MAGIC_CMD"
7983  ;;
7984esac
7985fi
7986
7987MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7988if test -n "$MAGIC_CMD"; then
7989  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7990echo "${ECHO_T}$MAGIC_CMD" >&6
7991else
7992  echo "$as_me:$LINENO: result: no" >&5
7993echo "${ECHO_T}no" >&6
7994fi
7995
7996  else
7997    MAGIC_CMD=:
7998  fi
7999fi
8000
8001  fi
8002  ;;
8003esac
8004
8005enable_dlopen=no
8006enable_win32_dll=no
8007
8008# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8009if test "${enable_libtool_lock+set}" = set; then
8010  enableval="$enable_libtool_lock"
8011
8012fi;
8013test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8014
8015
8016# Check whether --with-pic or --without-pic was given.
8017if test "${with_pic+set}" = set; then
8018  withval="$with_pic"
8019  pic_mode="$withval"
8020else
8021  pic_mode=default
8022fi;
8023test -z "$pic_mode" && pic_mode=default
8024
8025# Use C for the default configuration in the libtool script
8026tagname=
8027lt_save_CC="$CC"
8028ac_ext=c
8029ac_cpp='$CPP $CPPFLAGS'
8030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034
8035# Source file extension for C test sources.
8036ac_ext=c
8037
8038# Object file extension for compiled C test sources.
8039objext=o
8040objext=$objext
8041
8042# Code to be used in simple compile tests
8043lt_simple_compile_test_code="int some_variable = 0;\n"
8044
8045# Code to be used in simple link tests
8046lt_simple_link_test_code='int main(){return(0);}\n'
8047
8048
8049# If no C compiler was specified, use CC.
8050LTCC=${LTCC-"$CC"}
8051
8052# If no C compiler flags were specified, use CFLAGS.
8053LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8054
8055# Allow CC to be a program name with arguments.
8056compiler=$CC
8057
8058
8059# save warnings/boilerplate of simple test code
8060ac_outfile=conftest.$ac_objext
8061printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8062eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8063_lt_compiler_boilerplate=`cat conftest.err`
8064$rm conftest*
8065
8066ac_outfile=conftest.$ac_objext
8067printf "$lt_simple_link_test_code" >conftest.$ac_ext
8068eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069_lt_linker_boilerplate=`cat conftest.err`
8070$rm conftest*
8071
8072
8073## CAVEAT EMPTOR:
8074## There is no encapsulation within the following macros, do not change
8075## the running order or otherwise move them around unless you know exactly
8076## what you are doing...
8077
8078lt_prog_compiler_no_builtin_flag=
8079
8080if test "$GCC" = yes; then
8081  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8082
8083
8084echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8085echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8086if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8087  echo $ECHO_N "(cached) $ECHO_C" >&6
8088else
8089  lt_cv_prog_compiler_rtti_exceptions=no
8090  ac_outfile=conftest.$ac_objext
8091   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8092   lt_compiler_flag="-fno-rtti -fno-exceptions"
8093   # Insert the option either (1) after the last *FLAGS variable, or
8094   # (2) before a word containing "conftest.", or (3) at the end.
8095   # Note that $ac_compile itself does not contain backslashes and begins
8096   # with a dollar sign (not a hyphen), so the echo should work correctly.
8097   # The option is referenced via a variable to avoid confusing sed.
8098   lt_compile=`echo "$ac_compile" | $SED \
8099   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8100   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8101   -e 's:$: $lt_compiler_flag:'`
8102   (eval echo "\"\$as_me:8102: $lt_compile\"" >&5)
8103   (eval "$lt_compile" 2>conftest.err)
8104   ac_status=$?
8105   cat conftest.err >&5
8106   echo "$as_me:8106: \$? = $ac_status" >&5
8107   if (exit $ac_status) && test -s "$ac_outfile"; then
8108     # The compiler can only warn and ignore the option if not recognized
8109     # So say no if there are warnings other than the usual output.
8110     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8111     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8112     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8113       lt_cv_prog_compiler_rtti_exceptions=yes
8114     fi
8115   fi
8116   $rm conftest*
8117
8118fi
8119echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8120echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8121
8122if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8123    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8124else
8125    :
8126fi
8127
8128fi
8129
8130lt_prog_compiler_wl=
8131lt_prog_compiler_pic=
8132lt_prog_compiler_static=
8133
8134echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8135echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8136
8137  if test "$GCC" = yes; then
8138    lt_prog_compiler_wl='-Wl,'
8139    lt_prog_compiler_static='-static'
8140
8141    case $host_os in
8142      aix*)
8143      # All AIX code is PIC.
8144      if test "$host_cpu" = ia64; then
8145        # AIX 5 now supports IA64 processor
8146        lt_prog_compiler_static='-Bstatic'
8147      fi
8148      ;;
8149
8150    amigaos*)
8151      # FIXME: we need at least 68020 code to build shared libraries, but
8152      # adding the `-m68020' flag to GCC prevents building anything better,
8153      # like `-m68040'.
8154      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8155      ;;
8156
8157    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8158      # PIC is the default for these OSes.
8159      ;;
8160
8161    mingw* | pw32* | os2*)
8162      # This hack is so that the source file can tell whether it is being
8163      # built for inclusion in a dll (and should export symbols for example).
8164      lt_prog_compiler_pic='-DDLL_EXPORT'
8165      ;;
8166
8167    darwin* | rhapsody*)
8168      # PIC is the default on this platform
8169      # Common symbols not allowed in MH_DYLIB files
8170      lt_prog_compiler_pic='-fno-common'
8171      ;;
8172
8173    interix3*)
8174      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8175      # Instead, we relocate shared libraries at runtime.
8176      ;;
8177
8178    msdosdjgpp*)
8179      # Just because we use GCC doesn't mean we suddenly get shared libraries
8180      # on systems that don't support them.
8181      lt_prog_compiler_can_build_shared=no
8182      enable_shared=no
8183      ;;
8184
8185    sysv4*MP*)
8186      if test -d /usr/nec; then
8187        lt_prog_compiler_pic=-Kconform_pic
8188      fi
8189      ;;
8190
8191    hpux*)
8192      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8193      # not for PA HP-UX.
8194      case $host_cpu in
8195      hppa*64*|ia64*)
8196        # +Z the default
8197        ;;
8198      *)
8199        lt_prog_compiler_pic='-fPIC'
8200        ;;
8201      esac
8202      ;;
8203
8204    *)
8205      lt_prog_compiler_pic='-fPIC'
8206      ;;
8207    esac
8208  else
8209    # PORTME Check for flag to pass linker flags through the system compiler.
8210    case $host_os in
8211    aix*)
8212      lt_prog_compiler_wl='-Wl,'
8213      if test "$host_cpu" = ia64; then
8214        # AIX 5 now supports IA64 processor
8215        lt_prog_compiler_static='-Bstatic'
8216      else
8217        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8218      fi
8219      ;;
8220      darwin*)
8221        # PIC is the default on this platform
8222        # Common symbols not allowed in MH_DYLIB files
8223       case $cc_basename in
8224         xlc*)
8225         lt_prog_compiler_pic='-qnocommon'
8226         lt_prog_compiler_wl='-Wl,'
8227         ;;
8228       esac
8229       ;;
8230
8231    mingw* | pw32* | os2*)
8232      # This hack is so that the source file can tell whether it is being
8233      # built for inclusion in a dll (and should export symbols for example).
8234      lt_prog_compiler_pic='-DDLL_EXPORT'
8235      ;;
8236
8237    hpux9* | hpux10* | hpux11*)
8238      lt_prog_compiler_wl='-Wl,'
8239      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8240      # not for PA HP-UX.
8241      case $host_cpu in
8242      hppa*64*|ia64*)
8243        # +Z the default
8244        ;;
8245      *)
8246        lt_prog_compiler_pic='+Z'
8247        ;;
8248      esac
8249      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8250      lt_prog_compiler_static='${wl}-a ${wl}archive'
8251      ;;
8252
8253    irix5* | irix6* | nonstopux*)
8254      lt_prog_compiler_wl='-Wl,'
8255      # PIC (with -KPIC) is the default.
8256      lt_prog_compiler_static='-non_shared'
8257      ;;
8258
8259    newsos6)
8260      lt_prog_compiler_pic='-KPIC'
8261      lt_prog_compiler_static='-Bstatic'
8262      ;;
8263
8264    linux*)
8265      case $cc_basename in
8266      icc* | ecc*)
8267        lt_prog_compiler_wl='-Wl,'
8268        lt_prog_compiler_pic='-KPIC'
8269        lt_prog_compiler_static='-static'
8270        ;;
8271      pgcc* | pgf77* | pgf90* | pgf95*)
8272        # Portland Group compilers (*not* the Pentium gcc compiler,
8273        # which looks to be a dead project)
8274        lt_prog_compiler_wl='-Wl,'
8275        lt_prog_compiler_pic='-fpic'
8276        lt_prog_compiler_static='-Bstatic'
8277        ;;
8278      ccc*)
8279        lt_prog_compiler_wl='-Wl,'
8280        # All Alpha code is PIC.
8281        lt_prog_compiler_static='-non_shared'
8282        ;;
8283      esac
8284      ;;
8285
8286    osf3* | osf4* | osf5*)
8287      lt_prog_compiler_wl='-Wl,'
8288      # All OSF/1 code is PIC.
8289      lt_prog_compiler_static='-non_shared'
8290      ;;
8291
8292    solaris*)
8293      lt_prog_compiler_pic='-KPIC'
8294      lt_prog_compiler_static='-Bstatic'
8295      case $cc_basename in
8296      f77* | f90* | f95*)
8297        lt_prog_compiler_wl='-Qoption ld ';;
8298      *)
8299        lt_prog_compiler_wl='-Wl,';;
8300      esac
8301      ;;
8302
8303    sunos4*)
8304      lt_prog_compiler_wl='-Qoption ld '
8305      lt_prog_compiler_pic='-PIC'
8306      lt_prog_compiler_static='-Bstatic'
8307      ;;
8308
8309    sysv4 | sysv4.2uw2* | sysv4.3*)
8310      lt_prog_compiler_wl='-Wl,'
8311      lt_prog_compiler_pic='-KPIC'
8312      lt_prog_compiler_static='-Bstatic'
8313      ;;
8314
8315    sysv4*MP*)
8316      if test -d /usr/nec ;then
8317        lt_prog_compiler_pic='-Kconform_pic'
8318        lt_prog_compiler_static='-Bstatic'
8319      fi
8320      ;;
8321
8322    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8323      lt_prog_compiler_wl='-Wl,'
8324      lt_prog_compiler_pic='-KPIC'
8325      lt_prog_compiler_static='-Bstatic'
8326      ;;
8327
8328    unicos*)
8329      lt_prog_compiler_wl='-Wl,'
8330      lt_prog_compiler_can_build_shared=no
8331      ;;
8332
8333    uts4*)
8334      lt_prog_compiler_pic='-pic'
8335      lt_prog_compiler_static='-Bstatic'
8336      ;;
8337
8338    *)
8339      lt_prog_compiler_can_build_shared=no
8340      ;;
8341    esac
8342  fi
8343
8344echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8345echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8346
8347#
8348# Check to make sure the PIC flag actually works.
8349#
8350if test -n "$lt_prog_compiler_pic"; then
8351
8352echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8353echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8354if test "${lt_prog_compiler_pic_works+set}" = set; then
8355  echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357  lt_prog_compiler_pic_works=no
8358  ac_outfile=conftest.$ac_objext
8359   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8360   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8361   # Insert the option either (1) after the last *FLAGS variable, or
8362   # (2) before a word containing "conftest.", or (3) at the end.
8363   # Note that $ac_compile itself does not contain backslashes and begins
8364   # with a dollar sign (not a hyphen), so the echo should work correctly.
8365   # The option is referenced via a variable to avoid confusing sed.
8366   lt_compile=`echo "$ac_compile" | $SED \
8367   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8368   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8369   -e 's:$: $lt_compiler_flag:'`
8370   (eval echo "\"\$as_me:8370: $lt_compile\"" >&5)
8371   (eval "$lt_compile" 2>conftest.err)
8372   ac_status=$?
8373   cat conftest.err >&5
8374   echo "$as_me:8374: \$? = $ac_status" >&5
8375   if (exit $ac_status) && test -s "$ac_outfile"; then
8376     # The compiler can only warn and ignore the option if not recognized
8377     # So say no if there are warnings other than the usual output.
8378     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8379     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8380     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8381       lt_prog_compiler_pic_works=yes
8382     fi
8383   fi
8384   $rm conftest*
8385
8386fi
8387echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8388echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8389
8390if test x"$lt_prog_compiler_pic_works" = xyes; then
8391    case $lt_prog_compiler_pic in
8392     "" | " "*) ;;
8393     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8394     esac
8395else
8396    lt_prog_compiler_pic=
8397     lt_prog_compiler_can_build_shared=no
8398fi
8399
8400fi
8401case $host_os in
8402  # For platforms which do not support PIC, -DPIC is meaningless:
8403  *djgpp*)
8404    lt_prog_compiler_pic=
8405    ;;
8406  *)
8407    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8408    ;;
8409esac
8410
8411#
8412# Check to make sure the static flag actually works.
8413#
8414wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8415echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8416echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8417if test "${lt_prog_compiler_static_works+set}" = set; then
8418  echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420  lt_prog_compiler_static_works=no
8421   save_LDFLAGS="$LDFLAGS"
8422   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8423   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8424   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8425     # The linker can only warn and ignore the option if not recognized
8426     # So say no if there are warnings
8427     if test -s conftest.err; then
8428       # Append any errors to the config.log.
8429       cat conftest.err 1>&5
8430       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8431       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8432       if diff conftest.exp conftest.er2 >/dev/null; then
8433         lt_prog_compiler_static_works=yes
8434       fi
8435     else
8436       lt_prog_compiler_static_works=yes
8437     fi
8438   fi
8439   $rm conftest*
8440   LDFLAGS="$save_LDFLAGS"
8441
8442fi
8443echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8444echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8445
8446if test x"$lt_prog_compiler_static_works" = xyes; then
8447    :
8448else
8449    lt_prog_compiler_static=
8450fi
8451
8452
8453echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8454echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8455if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8456  echo $ECHO_N "(cached) $ECHO_C" >&6
8457else
8458  lt_cv_prog_compiler_c_o=no
8459   $rm -r conftest 2>/dev/null
8460   mkdir conftest
8461   cd conftest
8462   mkdir out
8463   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8464
8465   lt_compiler_flag="-o out/conftest2.$ac_objext"
8466   # Insert the option either (1) after the last *FLAGS variable, or
8467   # (2) before a word containing "conftest.", or (3) at the end.
8468   # Note that $ac_compile itself does not contain backslashes and begins
8469   # with a dollar sign (not a hyphen), so the echo should work correctly.
8470   lt_compile=`echo "$ac_compile" | $SED \
8471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473   -e 's:$: $lt_compiler_flag:'`
8474   (eval echo "\"\$as_me:8474: $lt_compile\"" >&5)
8475   (eval "$lt_compile" 2>out/conftest.err)
8476   ac_status=$?
8477   cat out/conftest.err >&5
8478   echo "$as_me:8478: \$? = $ac_status" >&5
8479   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8480   then
8481     # The compiler can only warn and ignore the option if not recognized
8482     # So say no if there are warnings
8483     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8484     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8485     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8486       lt_cv_prog_compiler_c_o=yes
8487     fi
8488   fi
8489   chmod u+w . 2>&5
8490   $rm conftest*
8491   # SGI C++ compiler will create directory out/ii_files/ for
8492   # template instantiation
8493   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8494   $rm out/* && rmdir out
8495   cd ..
8496   rmdir conftest
8497   $rm conftest*
8498
8499fi
8500echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8501echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8502
8503
8504hard_links="nottested"
8505if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8506  # do not overwrite the value of need_locks provided by the user
8507  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8508echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8509  hard_links=yes
8510  $rm conftest*
8511  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8512  touch conftest.a
8513  ln conftest.a conftest.b 2>&5 || hard_links=no
8514  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8515  echo "$as_me:$LINENO: result: $hard_links" >&5
8516echo "${ECHO_T}$hard_links" >&6
8517  if test "$hard_links" = no; then
8518    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8519echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8520    need_locks=warn
8521  fi
8522else
8523  need_locks=no
8524fi
8525
8526echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8527echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8528
8529  runpath_var=
8530  allow_undefined_flag=
8531  enable_shared_with_static_runtimes=no
8532  archive_cmds=
8533  archive_expsym_cmds=
8534  old_archive_From_new_cmds=
8535  old_archive_from_expsyms_cmds=
8536  export_dynamic_flag_spec=
8537  whole_archive_flag_spec=
8538  thread_safe_flag_spec=
8539  hardcode_libdir_flag_spec=
8540  hardcode_libdir_flag_spec_ld=
8541  hardcode_libdir_separator=
8542  hardcode_direct=no
8543  hardcode_minus_L=no
8544  hardcode_shlibpath_var=unsupported
8545  link_all_deplibs=unknown
8546  hardcode_automatic=no
8547  module_cmds=
8548  module_expsym_cmds=
8549  always_export_symbols=no
8550  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8551  # include_expsyms should be a list of space-separated symbols to be *always*
8552  # included in the symbol list
8553  include_expsyms=
8554  # exclude_expsyms can be an extended regexp of symbols to exclude
8555  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8556  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8557  # as well as any symbol that contains `d'.
8558  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8559  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8560  # platforms (ab)use it in PIC code, but their linkers get confused if
8561  # the symbol is explicitly referenced.  Since portable code cannot
8562  # rely on this symbol name, it's probably fine to never include it in
8563  # preloaded symbol tables.
8564  extract_expsyms_cmds=
8565  # Just being paranoid about ensuring that cc_basename is set.
8566  for cc_temp in $compiler""; do
8567  case $cc_temp in
8568    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8569    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8570    \-*) ;;
8571    *) break;;
8572  esac
8573done
8574cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8575
8576  case $host_os in
8577  cygwin* | mingw* | pw32*)
8578    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8579    # When not using gcc, we currently assume that we are using
8580    # Microsoft Visual C++.
8581    if test "$GCC" != yes; then
8582      with_gnu_ld=no
8583    fi
8584    ;;
8585  interix*)
8586    # we just hope/assume this is gcc and not c89 (= MSVC++)
8587    with_gnu_ld=yes
8588    ;;
8589  openbsd*)
8590    with_gnu_ld=no
8591    ;;
8592  esac
8593
8594  ld_shlibs=yes
8595  if test "$with_gnu_ld" = yes; then
8596    # If archive_cmds runs LD, not CC, wlarc should be empty
8597    wlarc='${wl}'
8598
8599    # Set some defaults for GNU ld with shared library support. These
8600    # are reset later if shared libraries are not supported. Putting them
8601    # here allows them to be overridden if necessary.
8602    runpath_var=LD_RUN_PATH
8603    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8604    export_dynamic_flag_spec='${wl}--export-dynamic'
8605    # ancient GNU ld didn't support --whole-archive et. al.
8606    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8607        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8608      else
8609        whole_archive_flag_spec=
8610    fi
8611    supports_anon_versioning=no
8612    case `$LD -v 2>/dev/null` in
8613      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8614      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8615      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8616      *\ 2.11.*) ;; # other 2.11 versions
8617      *) supports_anon_versioning=yes ;;
8618    esac
8619
8620    # See if GNU ld supports shared libraries.
8621    case $host_os in
8622    aix3* | aix4* | aix5*)
8623      # On AIX/PPC, the GNU linker is very broken
8624      if test "$host_cpu" != ia64; then
8625        ld_shlibs=no
8626        cat <<EOF 1>&2
8627
8628*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8629*** to be unable to reliably create shared libraries on AIX.
8630*** Therefore, libtool is disabling shared libraries support.  If you
8631*** really care for shared libraries, you may want to modify your PATH
8632*** so that a non-GNU linker is found, and then restart.
8633
8634EOF
8635      fi
8636      ;;
8637
8638    amigaos*)
8639      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)'
8640      hardcode_libdir_flag_spec='-L$libdir'
8641      hardcode_minus_L=yes
8642
8643      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8644      # that the semantics of dynamic libraries on AmigaOS, at least up
8645      # to version 4, is to share data among multiple programs linked
8646      # with the same dynamic library.  Since this doesn't match the
8647      # behavior of shared libraries on other platforms, we can't use
8648      # them.
8649      ld_shlibs=no
8650      ;;
8651
8652    beos*)
8653      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8654        allow_undefined_flag=unsupported
8655        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8656        # support --undefined.  This deserves some investigation.  FIXME
8657        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658      else
8659        ld_shlibs=no
8660      fi
8661      ;;
8662
8663    cygwin* | mingw* | pw32*)
8664      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8665      # as there is no search path for DLLs.
8666      hardcode_libdir_flag_spec='-L$libdir'
8667      allow_undefined_flag=unsupported
8668      always_export_symbols=no
8669      enable_shared_with_static_runtimes=yes
8670      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8671
8672      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8673        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8674        # If the export-symbols file already is a .def file (1st line
8675        # is EXPORTS), use it as is; otherwise, prepend...
8676        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8677          cp $export_symbols $output_objdir/$soname.def;
8678        else
8679          echo EXPORTS > $output_objdir/$soname.def;
8680          cat $export_symbols >> $output_objdir/$soname.def;
8681        fi~
8682        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8683      else
8684        ld_shlibs=no
8685      fi
8686      ;;
8687
8688    interix3*)
8689      hardcode_direct=no
8690      hardcode_shlibpath_var=no
8691      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8692      export_dynamic_flag_spec='${wl}-E'
8693      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8694      # Instead, shared libraries are loaded at an image base (0x10000000 by
8695      # default) and relocated if they conflict, which is a slow very memory
8696      # consuming and fragmenting process.  To avoid this, we pick a random,
8697      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8698      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8699      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8700      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'
8701      ;;
8702
8703    linux*)
8704      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8705        tmp_addflag=
8706        case $cc_basename,$host_cpu in
8707        pgcc*)                          # Portland Group C compiler
8708          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'
8709          tmp_addflag=' $pic_flag'
8710          ;;
8711        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8712          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'
8713          tmp_addflag=' $pic_flag -Mnomain' ;;
8714        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8715          tmp_addflag=' -i_dynamic' ;;
8716        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8717          tmp_addflag=' -i_dynamic -nofor_main' ;;
8718        ifc* | ifort*)                  # Intel Fortran compiler
8719          tmp_addflag=' -nofor_main' ;;
8720        esac
8721        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722
8723        if test $supports_anon_versioning = yes; then
8724          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8725  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8726  $echo "local: *; };" >> $output_objdir/$libname.ver~
8727          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8728        fi
8729      else
8730        ld_shlibs=no
8731      fi
8732      ;;
8733
8734    netbsd*)
8735      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8736        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8737        wlarc=
8738      else
8739        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8741      fi
8742      ;;
8743
8744    solaris*)
8745      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8746        ld_shlibs=no
8747        cat <<EOF 1>&2
8748
8749*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8750*** create shared libraries on Solaris systems.  Therefore, libtool
8751*** is disabling shared libraries support.  We urge you to upgrade GNU
8752*** binutils to release 2.9.1 or newer.  Another option is to modify
8753*** your PATH or compiler configuration so that the native linker is
8754*** used, and then restart.
8755
8756EOF
8757      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8758        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760      else
8761        ld_shlibs=no
8762      fi
8763      ;;
8764
8765    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8766      case `$LD -v 2>&1` in
8767        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8768        ld_shlibs=no
8769        cat <<_LT_EOF 1>&2
8770
8771*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8772*** reliably create shared libraries on SCO systems.  Therefore, libtool
8773*** is disabling shared libraries support.  We urge you to upgrade GNU
8774*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8775*** your PATH or compiler configuration so that the native linker is
8776*** used, and then restart.
8777
8778_LT_EOF
8779        ;;
8780        *)
8781          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8782            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8783            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8784            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8785          else
8786            ld_shlibs=no
8787          fi
8788        ;;
8789      esac
8790      ;;
8791
8792    sunos4*)
8793      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8794      wlarc=
8795      hardcode_direct=yes
8796      hardcode_shlibpath_var=no
8797      ;;
8798
8799    *)
8800      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8801        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8802        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8803      else
8804        ld_shlibs=no
8805      fi
8806      ;;
8807    esac
8808
8809    if test "$ld_shlibs" = no; then
8810      runpath_var=
8811      hardcode_libdir_flag_spec=
8812      export_dynamic_flag_spec=
8813      whole_archive_flag_spec=
8814    fi
8815  else
8816    # PORTME fill in a description of your system's linker (not GNU ld)
8817    case $host_os in
8818    aix3*)
8819      allow_undefined_flag=unsupported
8820      always_export_symbols=yes
8821      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'
8822      # Note: this linker hardcodes the directories in LIBPATH if there
8823      # are no directories specified by -L.
8824      hardcode_minus_L=yes
8825      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8826        # Neither direct hardcoding nor static linking is supported with a
8827        # broken collect2.
8828        hardcode_direct=unsupported
8829      fi
8830      ;;
8831
8832    aix4* | aix5*)
8833      if test "$host_cpu" = ia64; then
8834        # On IA64, the linker does run time linking by default, so we don't
8835        # have to do anything special.
8836        aix_use_runtimelinking=no
8837        exp_sym_flag='-Bexport'
8838        no_entry_flag=""
8839      else
8840        # If we're using GNU nm, then we don't want the "-C" option.
8841        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8842        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8843          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'
8844        else
8845          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'
8846        fi
8847        aix_use_runtimelinking=no
8848
8849        # Test if we are trying to use run time linking or normal
8850        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8851        # need to do runtime linking.
8852        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8853          for ld_flag in $LDFLAGS; do
8854          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8855            aix_use_runtimelinking=yes
8856            break
8857          fi
8858          done
8859          ;;
8860        esac
8861
8862        exp_sym_flag='-bexport'
8863        no_entry_flag='-bnoentry'
8864      fi
8865
8866      # When large executables or shared objects are built, AIX ld can
8867      # have problems creating the table of contents.  If linking a library
8868      # or program results in "error TOC overflow" add -mminimal-toc to
8869      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8870      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8871
8872      archive_cmds=''
8873      hardcode_direct=yes
8874      hardcode_libdir_separator=':'
8875      link_all_deplibs=yes
8876
8877      if test "$GCC" = yes; then
8878        case $host_os in aix4.[012]|aix4.[012].*)
8879        # We only want to do this on AIX 4.2 and lower, the check
8880        # below for broken collect2 doesn't work under 4.3+
8881          collect2name=`${CC} -print-prog-name=collect2`
8882          if test -f "$collect2name" && \
8883           strings "$collect2name" | grep resolve_lib_name >/dev/null
8884          then
8885          # We have reworked collect2
8886          hardcode_direct=yes
8887          else
8888          # We have old collect2
8889          hardcode_direct=unsupported
8890          # It fails to find uninstalled libraries when the uninstalled
8891          # path is not listed in the libpath.  Setting hardcode_minus_L
8892          # to unsupported forces relinking
8893          hardcode_minus_L=yes
8894          hardcode_libdir_flag_spec='-L$libdir'
8895          hardcode_libdir_separator=
8896          fi
8897          ;;
8898        esac
8899        shared_flag='-shared'
8900        if test "$aix_use_runtimelinking" = yes; then
8901          shared_flag="$shared_flag "'${wl}-G'
8902        fi
8903      else
8904        # not using gcc
8905        if test "$host_cpu" = ia64; then
8906        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8907        # chokes on -Wl,-G. The following line is correct:
8908          shared_flag='-G'
8909        else
8910          if test "$aix_use_runtimelinking" = yes; then
8911            shared_flag='${wl}-G'
8912          else
8913            shared_flag='${wl}-bM:SRE'
8914          fi
8915        fi
8916      fi
8917
8918      # It seems that -bexpall does not export symbols beginning with
8919      # underscore (_), so it is better to generate a list of symbols to export.
8920      always_export_symbols=yes
8921      if test "$aix_use_runtimelinking" = yes; then
8922        # Warning - without using the other runtime loading flags (-brtl),
8923        # -berok will link without error, but may produce a broken library.
8924        allow_undefined_flag='-berok'
8925       # Determine the default libpath from the value encoded in an empty executable.
8926       cat >conftest.$ac_ext <<_ACEOF
8927/* confdefs.h.  */
8928_ACEOF
8929cat confdefs.h >>conftest.$ac_ext
8930cat >>conftest.$ac_ext <<_ACEOF
8931/* end confdefs.h.  */
8932
8933int
8934main ()
8935{
8936
8937  ;
8938  return 0;
8939}
8940_ACEOF
8941rm -f conftest.$ac_objext conftest$ac_exeext
8942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943  (eval $ac_link) 2>conftest.er1
8944  ac_status=$?
8945  grep -v '^ *+' conftest.er1 >conftest.err
8946  rm -f conftest.er1
8947  cat conftest.err >&5
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); } &&
8950         { ac_try='test -z "$ac_c_werror_flag"
8951                         || test ! -s conftest.err'
8952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953  (eval $ac_try) 2>&5
8954  ac_status=$?
8955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956  (exit $ac_status); }; } &&
8957         { ac_try='test -s conftest$ac_exeext'
8958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959  (eval $ac_try) 2>&5
8960  ac_status=$?
8961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962  (exit $ac_status); }; }; then
8963
8964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8965}'`
8966# Check for a 64-bit object if we didn't find anything.
8967if 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; }
8968}'`; fi
8969else
8970  echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973fi
8974rm -f conftest.err conftest.$ac_objext \
8975      conftest$ac_exeext conftest.$ac_ext
8976if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8977
8978       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8979        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"
8980       else
8981        if test "$host_cpu" = ia64; then
8982          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8983          allow_undefined_flag="-z nodefs"
8984          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"
8985        else
8986         # Determine the default libpath from the value encoded in an empty executable.
8987         cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h.  */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h.  */
8993
8994int
8995main ()
8996{
8997
8998  ;
8999  return 0;
9000}
9001_ACEOF
9002rm -f conftest.$ac_objext conftest$ac_exeext
9003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004  (eval $ac_link) 2>conftest.er1
9005  ac_status=$?
9006  grep -v '^ *+' conftest.er1 >conftest.err
9007  rm -f conftest.er1
9008  cat conftest.err >&5
9009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); } &&
9011         { ac_try='test -z "$ac_c_werror_flag"
9012                         || test ! -s conftest.err'
9013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014  (eval $ac_try) 2>&5
9015  ac_status=$?
9016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017  (exit $ac_status); }; } &&
9018         { ac_try='test -s conftest$ac_exeext'
9019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020  (eval $ac_try) 2>&5
9021  ac_status=$?
9022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023  (exit $ac_status); }; }; then
9024
9025aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9026}'`
9027# Check for a 64-bit object if we didn't find anything.
9028if 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; }
9029}'`; fi
9030else
9031  echo "$as_me: failed program was:" >&5
9032sed 's/^/| /' conftest.$ac_ext >&5
9033
9034fi
9035rm -f conftest.err conftest.$ac_objext \
9036      conftest$ac_exeext conftest.$ac_ext
9037if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9038
9039         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9040          # Warning - without using the other run time loading flags,
9041          # -berok will link without error, but may produce a broken library.
9042          no_undefined_flag=' ${wl}-bernotok'
9043          allow_undefined_flag=' ${wl}-berok'
9044          # Exported symbols can be pulled into shared objects from archives
9045          whole_archive_flag_spec='$convenience'
9046          archive_cmds_need_lc=yes
9047          # This is similar to how AIX traditionally builds its shared libraries.
9048          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'
9049        fi
9050      fi
9051      ;;
9052
9053    amigaos*)
9054      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)'
9055      hardcode_libdir_flag_spec='-L$libdir'
9056      hardcode_minus_L=yes
9057      # see comment about different semantics on the GNU ld section
9058      ld_shlibs=no
9059      ;;
9060
9061    bsdi[45]*)
9062      export_dynamic_flag_spec=-rdynamic
9063      ;;
9064
9065    cygwin* | mingw* | pw32*)
9066      # When not using gcc, we currently assume that we are using
9067      # Microsoft Visual C++.
9068      # hardcode_libdir_flag_spec is actually meaningless, as there is
9069      # no search path for DLLs.
9070      hardcode_libdir_flag_spec=' '
9071      allow_undefined_flag=unsupported
9072      # Tell ltmain to make .lib files, not .a files.
9073      libext=lib
9074      # Tell ltmain to make .dll files, not .so files.
9075      shrext_cmds=".dll"
9076      # FIXME: Setting linknames here is a bad hack.
9077      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9078      # The linker will automatically build a .lib file if we build a DLL.
9079      old_archive_From_new_cmds='true'
9080      # FIXME: Should let the user specify the lib program.
9081      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9082      fix_srcfile_path='`cygpath -w "$srcfile"`'
9083      enable_shared_with_static_runtimes=yes
9084      ;;
9085
9086    darwin* | rhapsody*)
9087      case $host_os in
9088        rhapsody* | darwin1.[012])
9089         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9090         ;;
9091       *) # Darwin 1.3 on
9092         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9093           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9094         else
9095           case ${MACOSX_DEPLOYMENT_TARGET} in
9096             10.[012])
9097               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9098               ;;
9099             10.*)
9100               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9101               ;;
9102           esac
9103         fi
9104         ;;
9105      esac
9106      archive_cmds_need_lc=no
9107      hardcode_direct=no
9108      hardcode_automatic=yes
9109      hardcode_shlibpath_var=unsupported
9110      whole_archive_flag_spec=''
9111      link_all_deplibs=yes
9112    if test "$GCC" = yes ; then
9113        output_verbose_link_cmd='echo'
9114        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9115      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9116      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9117      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}'
9118      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}'
9119    else
9120      case $cc_basename in
9121        xlc*)
9122         output_verbose_link_cmd='echo'
9123         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9124         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9125          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9126         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}'
9127          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}'
9128          ;;
9129       *)
9130         ld_shlibs=no
9131          ;;
9132      esac
9133    fi
9134      ;;
9135
9136    dgux*)
9137      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138      hardcode_libdir_flag_spec='-L$libdir'
9139      hardcode_shlibpath_var=no
9140      ;;
9141
9142    freebsd1*)
9143      ld_shlibs=no
9144      ;;
9145
9146    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9147    # support.  Future versions do this automatically, but an explicit c++rt0.o
9148    # does not break anything, and helps significantly (at the cost of a little
9149    # extra space).
9150    freebsd2.2*)
9151      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9152      hardcode_libdir_flag_spec='-R$libdir'
9153      hardcode_direct=yes
9154      hardcode_shlibpath_var=no
9155      ;;
9156
9157    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9158    freebsd2*)
9159      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9160      hardcode_direct=yes
9161      hardcode_minus_L=yes
9162      hardcode_shlibpath_var=no
9163      ;;
9164
9165    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9166    freebsd* | kfreebsd*-gnu | dragonfly*)
9167      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9168      hardcode_libdir_flag_spec='-R$libdir'
9169      hardcode_direct=yes
9170      hardcode_shlibpath_var=no
9171      ;;
9172
9173    hpux9*)
9174      if test "$GCC" = yes; then
9175        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'
9176      else
9177        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'
9178      fi
9179      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9180      hardcode_libdir_separator=:
9181      hardcode_direct=yes
9182
9183      # hardcode_minus_L: Not really in the search PATH,
9184      # but as the default location of the library.
9185      hardcode_minus_L=yes
9186      export_dynamic_flag_spec='${wl}-E'
9187      ;;
9188
9189    hpux10*)
9190      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9191        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9192      else
9193        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9194      fi
9195      if test "$with_gnu_ld" = no; then
9196        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9197        hardcode_libdir_separator=:
9198
9199        hardcode_direct=yes
9200        export_dynamic_flag_spec='${wl}-E'
9201
9202        # hardcode_minus_L: Not really in the search PATH,
9203        # but as the default location of the library.
9204        hardcode_minus_L=yes
9205      fi
9206      ;;
9207
9208    hpux11*)
9209      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9210        case $host_cpu in
9211        hppa*64*)
9212          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9213          ;;
9214        ia64*)
9215          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9216          ;;
9217        *)
9218          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9219          ;;
9220        esac
9221      else
9222        case $host_cpu in
9223        hppa*64*)
9224          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9225          ;;
9226        ia64*)
9227          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9228          ;;
9229        *)
9230          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9231          ;;
9232        esac
9233      fi
9234      if test "$with_gnu_ld" = no; then
9235        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9236        hardcode_libdir_separator=:
9237
9238        case $host_cpu in
9239        hppa*64*|ia64*)
9240          hardcode_libdir_flag_spec_ld='+b $libdir'
9241          hardcode_direct=no
9242          hardcode_shlibpath_var=no
9243          ;;
9244        *)
9245          hardcode_direct=yes
9246          export_dynamic_flag_spec='${wl}-E'
9247
9248          # hardcode_minus_L: Not really in the search PATH,
9249          # but as the default location of the library.
9250          hardcode_minus_L=yes
9251          ;;
9252        esac
9253      fi
9254      ;;
9255
9256    irix5* | irix6* | nonstopux*)
9257      if test "$GCC" = yes; then
9258        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'
9259      else
9260        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'
9261        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9262      fi
9263      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264      hardcode_libdir_separator=:
9265      link_all_deplibs=yes
9266      ;;
9267
9268    netbsd*)
9269      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9270        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9271      else
9272        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9273      fi
9274      hardcode_libdir_flag_spec='-R$libdir'
9275      hardcode_direct=yes
9276      hardcode_shlibpath_var=no
9277      ;;
9278
9279    newsos6)
9280      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9281      hardcode_direct=yes
9282      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9283      hardcode_libdir_separator=:
9284      hardcode_shlibpath_var=no
9285      ;;
9286
9287    openbsd*)
9288      hardcode_direct=yes
9289      hardcode_shlibpath_var=no
9290      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9291        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9292        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9293        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9294        export_dynamic_flag_spec='${wl}-E'
9295      else
9296       case $host_os in
9297         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9298           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9299           hardcode_libdir_flag_spec='-R$libdir'
9300           ;;
9301         *)
9302           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9304           ;;
9305       esac
9306      fi
9307      ;;
9308
9309    os2*)
9310      hardcode_libdir_flag_spec='-L$libdir'
9311      hardcode_minus_L=yes
9312      allow_undefined_flag=unsupported
9313      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'
9314      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9315      ;;
9316
9317    osf3*)
9318      if test "$GCC" = yes; then
9319        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9320        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'
9321      else
9322        allow_undefined_flag=' -expect_unresolved \*'
9323        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'
9324      fi
9325      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9326      hardcode_libdir_separator=:
9327      ;;
9328
9329    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9330      if test "$GCC" = yes; then
9331        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9332        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'
9333        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9334      else
9335        allow_undefined_flag=' -expect_unresolved \*'
9336        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'
9337        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9338        $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'
9339
9340        # Both c and cxx compiler support -rpath directly
9341        hardcode_libdir_flag_spec='-rpath $libdir'
9342      fi
9343      hardcode_libdir_separator=:
9344      ;;
9345
9346    solaris*)
9347      no_undefined_flag=' -z text'
9348      if test "$GCC" = yes; then
9349        wlarc='${wl}'
9350        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9351        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9352          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9353      else
9354        wlarc=''
9355        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9356        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9357        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9358      fi
9359      hardcode_libdir_flag_spec='-R$libdir'
9360      hardcode_shlibpath_var=no
9361      case $host_os in
9362      solaris2.[0-5] | solaris2.[0-5].*) ;;
9363      *)
9364        # The compiler driver will combine linker options so we
9365        # cannot just pass the convience library names through
9366        # without $wl, iff we do not link with $LD.
9367        # Luckily, gcc supports the same syntax we need for Sun Studio.
9368        # Supported since Solaris 2.6 (maybe 2.5.1?)
9369        case $wlarc in
9370        '')
9371          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9372        *)
9373          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' ;;
9374        esac ;;
9375      esac
9376      link_all_deplibs=yes
9377      ;;
9378
9379    sunos4*)
9380      if test "x$host_vendor" = xsequent; then
9381        # Use $CC to link under sequent, because it throws in some extra .o
9382        # files that make .init and .fini sections work.
9383        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384      else
9385        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9386      fi
9387      hardcode_libdir_flag_spec='-L$libdir'
9388      hardcode_direct=yes
9389      hardcode_minus_L=yes
9390      hardcode_shlibpath_var=no
9391      ;;
9392
9393    sysv4)
9394      case $host_vendor in
9395        sni)
9396          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397          hardcode_direct=yes # is this really true???
9398        ;;
9399        siemens)
9400          ## LD is ld it makes a PLAMLIB
9401          ## CC just makes a GrossModule.
9402          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9403          reload_cmds='$CC -r -o $output$reload_objs'
9404          hardcode_direct=no
9405        ;;
9406        motorola)
9407          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9409        ;;
9410      esac
9411      runpath_var='LD_RUN_PATH'
9412      hardcode_shlibpath_var=no
9413      ;;
9414
9415    sysv4.3*)
9416      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417      hardcode_shlibpath_var=no
9418      export_dynamic_flag_spec='-Bexport'
9419      ;;
9420
9421    sysv4*MP*)
9422      if test -d /usr/nec; then
9423        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424        hardcode_shlibpath_var=no
9425        runpath_var=LD_RUN_PATH
9426        hardcode_runpath_var=yes
9427        ld_shlibs=yes
9428      fi
9429      ;;
9430
9431    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9432      no_undefined_flag='${wl}-z,text'
9433      archive_cmds_need_lc=no
9434      hardcode_shlibpath_var=no
9435      runpath_var='LD_RUN_PATH'
9436
9437      if test "$GCC" = yes; then
9438        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440      else
9441        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443      fi
9444      ;;
9445
9446    sysv5* | sco3.2v5* | sco5v6*)
9447      # Note: We can NOT use -z defs as we might desire, because we do not
9448      # link with -lc, and that would cause any symbols used from libc to
9449      # always be unresolved, which means just about no library would
9450      # ever link correctly.  If we're not using GNU ld we use -z text
9451      # though, which does catch some bad symbols but isn't as heavy-handed
9452      # as -z defs.
9453      no_undefined_flag='${wl}-z,text'
9454      allow_undefined_flag='${wl}-z,nodefs'
9455      archive_cmds_need_lc=no
9456      hardcode_shlibpath_var=no
9457      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9458      hardcode_libdir_separator=':'
9459      link_all_deplibs=yes
9460      export_dynamic_flag_spec='${wl}-Bexport'
9461      runpath_var='LD_RUN_PATH'
9462
9463      if test "$GCC" = yes; then
9464        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9465        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9466      else
9467        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9468        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9469      fi
9470      ;;
9471
9472    uts4*)
9473      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474      hardcode_libdir_flag_spec='-L$libdir'
9475      hardcode_shlibpath_var=no
9476      ;;
9477
9478    *)
9479      ld_shlibs=no
9480      ;;
9481    esac
9482  fi
9483
9484echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9485echo "${ECHO_T}$ld_shlibs" >&6
9486test "$ld_shlibs" = no && can_build_shared=no
9487
9488#
9489# Do we need to explicitly link libc?
9490#
9491case "x$archive_cmds_need_lc" in
9492x|xyes)
9493  # Assume -lc should be added
9494  archive_cmds_need_lc=yes
9495
9496  if test "$enable_shared" = yes && test "$GCC" = yes; then
9497    case $archive_cmds in
9498    *'~'*)
9499      # FIXME: we may have to deal with multi-command sequences.
9500      ;;
9501    '$CC '*)
9502      # Test whether the compiler implicitly links with -lc since on some
9503      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9504      # to ld, don't add -lc before -lgcc.
9505      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9506echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9507      $rm conftest*
9508      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9509
9510      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511  (eval $ac_compile) 2>&5
9512  ac_status=$?
9513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514  (exit $ac_status); } 2>conftest.err; then
9515        soname=conftest
9516        lib=conftest
9517        libobjs=conftest.$ac_objext
9518        deplibs=
9519        wl=$lt_prog_compiler_wl
9520        pic_flag=$lt_prog_compiler_pic
9521        compiler_flags=-v
9522        linker_flags=-v
9523        verstring=
9524        output_objdir=.
9525        libname=conftest
9526        lt_save_allow_undefined_flag=$allow_undefined_flag
9527        allow_undefined_flag=
9528        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9529  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9530  ac_status=$?
9531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532  (exit $ac_status); }
9533        then
9534          archive_cmds_need_lc=no
9535        else
9536          archive_cmds_need_lc=yes
9537        fi
9538        allow_undefined_flag=$lt_save_allow_undefined_flag
9539      else
9540        cat conftest.err 1>&5
9541      fi
9542      $rm conftest*
9543      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9544echo "${ECHO_T}$archive_cmds_need_lc" >&6
9545      ;;
9546    esac
9547  fi
9548  ;;
9549esac
9550
9551echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9552echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9553library_names_spec=
9554libname_spec='lib$name'
9555soname_spec=
9556shrext_cmds=".so"
9557postinstall_cmds=
9558postuninstall_cmds=
9559finish_cmds=
9560finish_eval=
9561shlibpath_var=
9562shlibpath_overrides_runpath=unknown
9563version_type=none
9564dynamic_linker="$host_os ld.so"
9565sys_lib_dlsearch_path_spec="/lib /usr/lib"
9566if test "$GCC" = yes; then
9567  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9568  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9569    # if the path contains ";" then we assume it to be the separator
9570    # otherwise default to the standard path separator (i.e. ":") - it is
9571    # assumed that no part of a normal pathname contains ";" but that should
9572    # okay in the real world where ";" in dirpaths is itself problematic.
9573    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9574  else
9575    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9576  fi
9577else
9578  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9579fi
9580need_lib_prefix=unknown
9581hardcode_into_libs=no
9582
9583# when you set need_version to no, make sure it does not cause -set_version
9584# flags to be left without arguments
9585need_version=unknown
9586
9587case $host_os in
9588aix3*)
9589  version_type=linux
9590  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9591  shlibpath_var=LIBPATH
9592
9593  # AIX 3 has no versioning support, so we append a major version to the name.
9594  soname_spec='${libname}${release}${shared_ext}$major'
9595  ;;
9596
9597aix4* | aix5*)
9598  version_type=linux
9599  need_lib_prefix=no
9600  need_version=no
9601  hardcode_into_libs=yes
9602  if test "$host_cpu" = ia64; then
9603    # AIX 5 supports IA64
9604    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9605    shlibpath_var=LD_LIBRARY_PATH
9606  else
9607    # With GCC up to 2.95.x, collect2 would create an import file
9608    # for dependence libraries.  The import file would start with
9609    # the line `#! .'.  This would cause the generated library to
9610    # depend on `.', always an invalid library.  This was fixed in
9611    # development snapshots of GCC prior to 3.0.
9612    case $host_os in
9613      aix4 | aix4.[01] | aix4.[01].*)
9614      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9615           echo ' yes '
9616           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9617        :
9618      else
9619        can_build_shared=no
9620      fi
9621      ;;
9622    esac
9623    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9624    # soname into executable. Probably we can add versioning support to
9625    # collect2, so additional links can be useful in future.
9626    if test "$aix_use_runtimelinking" = yes; then
9627      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9628      # instead of lib<name>.a to let people know that these are not
9629      # typical AIX shared libraries.
9630      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631    else
9632      # We preserve .a as extension for shared libraries through AIX4.2
9633      # and later when we are not doing run time linking.
9634      library_names_spec='${libname}${release}.a $libname.a'
9635      soname_spec='${libname}${release}${shared_ext}$major'
9636    fi
9637    shlibpath_var=LIBPATH
9638  fi
9639  ;;
9640
9641amigaos*)
9642  library_names_spec='$libname.ixlibrary $libname.a'
9643  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9644  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'
9645  ;;
9646
9647beos*)
9648  library_names_spec='${libname}${shared_ext}'
9649  dynamic_linker="$host_os ld.so"
9650  shlibpath_var=LIBRARY_PATH
9651  ;;
9652
9653bsdi[45]*)
9654  version_type=linux
9655  need_version=no
9656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657  soname_spec='${libname}${release}${shared_ext}$major'
9658  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9659  shlibpath_var=LD_LIBRARY_PATH
9660  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9661  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9662  # the default ld.so.conf also contains /usr/contrib/lib and
9663  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9664  # libtool to hard-code these into programs
9665  ;;
9666
9667cygwin* | mingw* | pw32*)
9668  version_type=windows
9669  shrext_cmds=".dll"
9670  need_version=no
9671  need_lib_prefix=no
9672
9673  case $GCC,$host_os in
9674  yes,cygwin* | yes,mingw* | yes,pw32*)
9675    library_names_spec='$libname.dll.a'
9676    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9677    postinstall_cmds='base_file=`basename \${file}`~
9678      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9679      dldir=$destdir/`dirname \$dlpath`~
9680      test -d \$dldir || mkdir -p \$dldir~
9681      $install_prog $dir/$dlname \$dldir/$dlname~
9682      chmod a+x \$dldir/$dlname'
9683    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9684      dlpath=$dir/\$dldll~
9685       $rm \$dlpath'
9686    shlibpath_overrides_runpath=yes
9687
9688    case $host_os in
9689    cygwin*)
9690      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9691      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9692      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9693      ;;
9694    mingw*)
9695      # MinGW DLLs use traditional 'lib' prefix
9696      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9697      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9698      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9699        # It is most probably a Windows format PATH printed by
9700        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9701        # path with ; separators, and with drive letters. We can handle the
9702        # drive letters (cygwin fileutils understands them), so leave them,
9703        # especially as we might pass files found there to a mingw objdump,
9704        # which wouldn't understand a cygwinified path. Ahh.
9705        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9706      else
9707        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9708      fi
9709      ;;
9710    pw32*)
9711      # pw32 DLLs use 'pw' prefix rather than 'lib'
9712      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9713      ;;
9714    esac
9715    ;;
9716
9717  *)
9718    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9719    ;;
9720  esac
9721  dynamic_linker='Win32 ld.exe'
9722  # FIXME: first we should search . and the directory the executable is in
9723  shlibpath_var=PATH
9724  ;;
9725
9726darwin* | rhapsody*)
9727  dynamic_linker="$host_os dyld"
9728  version_type=darwin
9729  need_lib_prefix=no
9730  need_version=no
9731  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9732  soname_spec='${libname}${release}${major}$shared_ext'
9733  shlibpath_overrides_runpath=yes
9734  shlibpath_var=DYLD_LIBRARY_PATH
9735  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9736  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9737  if test "$GCC" = yes; then
9738    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"`
9739  else
9740    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9741  fi
9742  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9743  ;;
9744
9745dgux*)
9746  version_type=linux
9747  need_lib_prefix=no
9748  need_version=no
9749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9750  soname_spec='${libname}${release}${shared_ext}$major'
9751  shlibpath_var=LD_LIBRARY_PATH
9752  ;;
9753
9754freebsd1*)
9755  dynamic_linker=no
9756  ;;
9757
9758kfreebsd*-gnu)
9759  version_type=linux
9760  need_lib_prefix=no
9761  need_version=no
9762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9763  soname_spec='${libname}${release}${shared_ext}$major'
9764  shlibpath_var=LD_LIBRARY_PATH
9765  shlibpath_overrides_runpath=no
9766  hardcode_into_libs=yes
9767  dynamic_linker='GNU ld.so'
9768  ;;
9769
9770freebsd* | dragonfly*)
9771  # DragonFly does not have aout.  When/if they implement a new
9772  # versioning mechanism, adjust this.
9773  if test -x /usr/bin/objformat; then
9774    objformat=`/usr/bin/objformat`
9775  else
9776    case $host_os in
9777    freebsd[123]*) objformat=aout ;;
9778    *) objformat=elf ;;
9779    esac
9780  fi
9781  version_type=freebsd-$objformat
9782  case $version_type in
9783    freebsd-elf*)
9784      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9785      need_version=no
9786      need_lib_prefix=no
9787      ;;
9788    freebsd-*)
9789      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9790      need_version=yes
9791      ;;
9792  esac
9793  shlibpath_var=LD_LIBRARY_PATH
9794  case $host_os in
9795  freebsd2*)
9796    shlibpath_overrides_runpath=yes
9797    ;;
9798  freebsd3.[01]* | freebsdelf3.[01]*)
9799    shlibpath_overrides_runpath=yes
9800    hardcode_into_libs=yes
9801    ;;
9802  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9803  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9804    shlibpath_overrides_runpath=no
9805    hardcode_into_libs=yes
9806    ;;
9807  freebsd*) # from 4.6 on
9808    shlibpath_overrides_runpath=yes
9809    hardcode_into_libs=yes
9810    ;;
9811  esac
9812  ;;
9813
9814gnu*)
9815  version_type=linux
9816  need_lib_prefix=no
9817  need_version=no
9818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9819  soname_spec='${libname}${release}${shared_ext}$major'
9820  shlibpath_var=LD_LIBRARY_PATH
9821  hardcode_into_libs=yes
9822  ;;
9823
9824hpux9* | hpux10* | hpux11*)
9825  # Give a soname corresponding to the major version so that dld.sl refuses to
9826  # link against other versions.
9827  version_type=sunos
9828  need_lib_prefix=no
9829  need_version=no
9830  case $host_cpu in
9831  ia64*)
9832    shrext_cmds='.so'
9833    hardcode_into_libs=yes
9834    dynamic_linker="$host_os dld.so"
9835    shlibpath_var=LD_LIBRARY_PATH
9836    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9837    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838    soname_spec='${libname}${release}${shared_ext}$major'
9839    if test "X$HPUX_IA64_MODE" = X32; then
9840      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9841    else
9842      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9843    fi
9844    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9845    ;;
9846   hppa*64*)
9847     shrext_cmds='.sl'
9848     hardcode_into_libs=yes
9849     dynamic_linker="$host_os dld.sl"
9850     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9851     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853     soname_spec='${libname}${release}${shared_ext}$major'
9854     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9856     ;;
9857   *)
9858    shrext_cmds='.sl'
9859    dynamic_linker="$host_os dld.sl"
9860    shlibpath_var=SHLIB_PATH
9861    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9862    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863    soname_spec='${libname}${release}${shared_ext}$major'
9864    ;;
9865  esac
9866  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9867  postinstall_cmds='chmod 555 $lib'
9868  ;;
9869
9870interix3*)
9871  version_type=linux
9872  need_lib_prefix=no
9873  need_version=no
9874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9875  soname_spec='${libname}${release}${shared_ext}$major'
9876  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9877  shlibpath_var=LD_LIBRARY_PATH
9878  shlibpath_overrides_runpath=no
9879  hardcode_into_libs=yes
9880  ;;
9881
9882irix5* | irix6* | nonstopux*)
9883  case $host_os in
9884    nonstopux*) version_type=nonstopux ;;
9885    *)
9886        if test "$lt_cv_prog_gnu_ld" = yes; then
9887                version_type=linux
9888        else
9889                version_type=irix
9890        fi ;;
9891  esac
9892  need_lib_prefix=no
9893  need_version=no
9894  soname_spec='${libname}${release}${shared_ext}$major'
9895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9896  case $host_os in
9897  irix5* | nonstopux*)
9898    libsuff= shlibsuff=
9899    ;;
9900  *)
9901    case $LD in # libtool.m4 will add one of these switches to LD
9902    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9903      libsuff= shlibsuff= libmagic=32-bit;;
9904    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9905      libsuff=32 shlibsuff=N32 libmagic=N32;;
9906    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9907      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9908    *) libsuff= shlibsuff= libmagic=never-match;;
9909    esac
9910    ;;
9911  esac
9912  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9913  shlibpath_overrides_runpath=no
9914  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9915  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9916  hardcode_into_libs=yes
9917  ;;
9918
9919# No shared lib support for Linux oldld, aout, or coff.
9920linux*oldld* | linux*aout* | linux*coff*)
9921  dynamic_linker=no
9922  ;;
9923
9924# This must be Linux ELF.
9925linux*)
9926  version_type=linux
9927  need_lib_prefix=no
9928  need_version=no
9929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930  soname_spec='${libname}${release}${shared_ext}$major'
9931  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9932  shlibpath_var=LD_LIBRARY_PATH
9933  shlibpath_overrides_runpath=no
9934  # This implies no fast_install, which is unacceptable.
9935  # Some rework will be needed to allow for fast_install
9936  # before this can be enabled.
9937  hardcode_into_libs=yes
9938
9939  # Append ld.so.conf contents to the search path
9940  if test -f /etc/ld.so.conf; then
9941    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' ' '`
9942    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9943  fi
9944
9945  # We used to test for /lib/ld.so.1 and disable shared libraries on
9946  # powerpc, because MkLinux only supported shared libraries with the
9947  # GNU dynamic linker.  Since this was broken with cross compilers,
9948  # most powerpc-linux boxes support dynamic linking these days and
9949  # people can always --disable-shared, the test was removed, and we
9950  # assume the GNU/Linux dynamic linker is in use.
9951  dynamic_linker='GNU/Linux ld.so'
9952  ;;
9953
9954knetbsd*-gnu)
9955  version_type=linux
9956  need_lib_prefix=no
9957  need_version=no
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9959  soname_spec='${libname}${release}${shared_ext}$major'
9960  shlibpath_var=LD_LIBRARY_PATH
9961  shlibpath_overrides_runpath=no
9962  hardcode_into_libs=yes
9963  dynamic_linker='GNU ld.so'
9964  ;;
9965
9966netbsd*)
9967  version_type=sunos
9968  need_lib_prefix=no
9969  need_version=no
9970  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9971    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9972    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9973    dynamic_linker='NetBSD (a.out) ld.so'
9974  else
9975    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9976    soname_spec='${libname}${release}${shared_ext}$major'
9977    dynamic_linker='NetBSD ld.elf_so'
9978  fi
9979  shlibpath_var=LD_LIBRARY_PATH
9980  shlibpath_overrides_runpath=yes
9981  hardcode_into_libs=yes
9982  ;;
9983
9984newsos6)
9985  version_type=linux
9986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987  shlibpath_var=LD_LIBRARY_PATH
9988  shlibpath_overrides_runpath=yes
9989  ;;
9990
9991nto-qnx*)
9992  version_type=linux
9993  need_lib_prefix=no
9994  need_version=no
9995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996  soname_spec='${libname}${release}${shared_ext}$major'
9997  shlibpath_var=LD_LIBRARY_PATH
9998  shlibpath_overrides_runpath=yes
9999  ;;
10000
10001openbsd*)
10002  version_type=sunos
10003  sys_lib_dlsearch_path_spec="/usr/lib"
10004  need_lib_prefix=no
10005  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10006  case $host_os in
10007    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10008    *)                         need_version=no  ;;
10009  esac
10010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10011  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10012  shlibpath_var=LD_LIBRARY_PATH
10013  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10014    case $host_os in
10015      openbsd2.[89] | openbsd2.[89].*)
10016        shlibpath_overrides_runpath=no
10017        ;;
10018      *)
10019        shlibpath_overrides_runpath=yes
10020        ;;
10021      esac
10022  else
10023    shlibpath_overrides_runpath=yes
10024  fi
10025  ;;
10026
10027os2*)
10028  libname_spec='$name'
10029  shrext_cmds=".dll"
10030  need_lib_prefix=no
10031  library_names_spec='$libname${shared_ext} $libname.a'
10032  dynamic_linker='OS/2 ld.exe'
10033  shlibpath_var=LIBPATH
10034  ;;
10035
10036osf3* | osf4* | osf5*)
10037  version_type=osf
10038  need_lib_prefix=no
10039  need_version=no
10040  soname_spec='${libname}${release}${shared_ext}$major'
10041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042  shlibpath_var=LD_LIBRARY_PATH
10043  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10044  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10045  ;;
10046
10047solaris*)
10048  version_type=linux
10049  need_lib_prefix=no
10050  need_version=no
10051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052  soname_spec='${libname}${release}${shared_ext}$major'
10053  shlibpath_var=LD_LIBRARY_PATH
10054  shlibpath_overrides_runpath=yes
10055  hardcode_into_libs=yes
10056  # ldd complains unless libraries are executable
10057  postinstall_cmds='chmod +x $lib'
10058  ;;
10059
10060sunos4*)
10061  version_type=sunos
10062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10063  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10064  shlibpath_var=LD_LIBRARY_PATH
10065  shlibpath_overrides_runpath=yes
10066  if test "$with_gnu_ld" = yes; then
10067    need_lib_prefix=no
10068  fi
10069  need_version=yes
10070  ;;
10071
10072sysv4 | sysv4.3*)
10073  version_type=linux
10074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075  soname_spec='${libname}${release}${shared_ext}$major'
10076  shlibpath_var=LD_LIBRARY_PATH
10077  case $host_vendor in
10078    sni)
10079      shlibpath_overrides_runpath=no
10080      need_lib_prefix=no
10081      export_dynamic_flag_spec='${wl}-Blargedynsym'
10082      runpath_var=LD_RUN_PATH
10083      ;;
10084    siemens)
10085      need_lib_prefix=no
10086      ;;
10087    motorola)
10088      need_lib_prefix=no
10089      need_version=no
10090      shlibpath_overrides_runpath=no
10091      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10092      ;;
10093  esac
10094  ;;
10095
10096sysv4*MP*)
10097  if test -d /usr/nec ;then
10098    version_type=linux
10099    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10100    soname_spec='$libname${shared_ext}.$major'
10101    shlibpath_var=LD_LIBRARY_PATH
10102  fi
10103  ;;
10104
10105sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10106  version_type=freebsd-elf
10107  need_lib_prefix=no
10108  need_version=no
10109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10110  soname_spec='${libname}${release}${shared_ext}$major'
10111  shlibpath_var=LD_LIBRARY_PATH
10112  hardcode_into_libs=yes
10113  if test "$with_gnu_ld" = yes; then
10114    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10115    shlibpath_overrides_runpath=no
10116  else
10117    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10118    shlibpath_overrides_runpath=yes
10119    case $host_os in
10120      sco3.2v5*)
10121        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10122        ;;
10123    esac
10124  fi
10125  sys_lib_dlsearch_path_spec='/usr/lib'
10126  ;;
10127
10128uts4*)
10129  version_type=linux
10130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131  soname_spec='${libname}${release}${shared_ext}$major'
10132  shlibpath_var=LD_LIBRARY_PATH
10133  ;;
10134
10135*)
10136  dynamic_linker=no
10137  ;;
10138esac
10139echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10140echo "${ECHO_T}$dynamic_linker" >&6
10141test "$dynamic_linker" = no && can_build_shared=no
10142
10143variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10144if test "$GCC" = yes; then
10145  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10146fi
10147
10148echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10149echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10150hardcode_action=
10151if test -n "$hardcode_libdir_flag_spec" || \
10152   test -n "$runpath_var" || \
10153   test "X$hardcode_automatic" = "Xyes" ; then
10154
10155  # We can hardcode non-existant directories.
10156  if test "$hardcode_direct" != no &&
10157     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10158     # have to relink, otherwise we might link with an installed library
10159     # when we should be linking with a yet-to-be-installed one
10160     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10161     test "$hardcode_minus_L" != no; then
10162    # Linking always hardcodes the temporary library directory.
10163    hardcode_action=relink
10164  else
10165    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10166    hardcode_action=immediate
10167  fi
10168else
10169  # We cannot hardcode anything, or else we can only hardcode existing
10170  # directories.
10171  hardcode_action=unsupported
10172fi
10173echo "$as_me:$LINENO: result: $hardcode_action" >&5
10174echo "${ECHO_T}$hardcode_action" >&6
10175
10176if test "$hardcode_action" = relink; then
10177  # Fast installation is not supported
10178  enable_fast_install=no
10179elif test "$shlibpath_overrides_runpath" = yes ||
10180     test "$enable_shared" = no; then
10181  # Fast installation is not necessary
10182  enable_fast_install=needless
10183fi
10184
10185striplib=
10186old_striplib=
10187echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10188echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10189if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10190  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10191  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10192  echo "$as_me:$LINENO: result: yes" >&5
10193echo "${ECHO_T}yes" >&6
10194else
10195# FIXME - insert some real tests, host_os isn't really good enough
10196  case $host_os in
10197   darwin*)
10198       if test -n "$STRIP" ; then
10199         striplib="$STRIP -x"
10200         echo "$as_me:$LINENO: result: yes" >&5
10201echo "${ECHO_T}yes" >&6
10202       else
10203  echo "$as_me:$LINENO: result: no" >&5
10204echo "${ECHO_T}no" >&6
10205fi
10206       ;;
10207   *)
10208  echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210    ;;
10211  esac
10212fi
10213
10214if test "x$enable_dlopen" != xyes; then
10215  enable_dlopen=unknown
10216  enable_dlopen_self=unknown
10217  enable_dlopen_self_static=unknown
10218else
10219  lt_cv_dlopen=no
10220  lt_cv_dlopen_libs=
10221
10222  case $host_os in
10223  beos*)
10224    lt_cv_dlopen="load_add_on"
10225    lt_cv_dlopen_libs=
10226    lt_cv_dlopen_self=yes
10227    ;;
10228
10229  mingw* | pw32*)
10230    lt_cv_dlopen="LoadLibrary"
10231    lt_cv_dlopen_libs=
10232   ;;
10233
10234  cygwin*)
10235    lt_cv_dlopen="dlopen"
10236    lt_cv_dlopen_libs=
10237   ;;
10238
10239  darwin*)
10240  # if libdl is installed we need to link against it
10241    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10242echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10243if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10244  echo $ECHO_N "(cached) $ECHO_C" >&6
10245else
10246  ac_check_lib_save_LIBS=$LIBS
10247LIBS="-ldl  $LIBS"
10248cat >conftest.$ac_ext <<_ACEOF
10249/* confdefs.h.  */
10250_ACEOF
10251cat confdefs.h >>conftest.$ac_ext
10252cat >>conftest.$ac_ext <<_ACEOF
10253/* end confdefs.h.  */
10254
10255/* Override any gcc2 internal prototype to avoid an error.  */
10256#ifdef __cplusplus
10257extern "C"
10258#endif
10259/* We use char because int might match the return type of a gcc2
10260   builtin and then its argument prototype would still apply.  */
10261char dlopen ();
10262int
10263main ()
10264{
10265dlopen ();
10266  ;
10267  return 0;
10268}
10269_ACEOF
10270rm -f conftest.$ac_objext conftest$ac_exeext
10271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272  (eval $ac_link) 2>conftest.er1
10273  ac_status=$?
10274  grep -v '^ *+' conftest.er1 >conftest.err
10275  rm -f conftest.er1
10276  cat conftest.err >&5
10277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278  (exit $ac_status); } &&
10279         { ac_try='test -z "$ac_c_werror_flag"
10280                         || test ! -s conftest.err'
10281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282  (eval $ac_try) 2>&5
10283  ac_status=$?
10284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285  (exit $ac_status); }; } &&
10286         { ac_try='test -s conftest$ac_exeext'
10287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288  (eval $ac_try) 2>&5
10289  ac_status=$?
10290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); }; }; then
10292  ac_cv_lib_dl_dlopen=yes
10293else
10294  echo "$as_me: failed program was:" >&5
10295sed 's/^/| /' conftest.$ac_ext >&5
10296
10297ac_cv_lib_dl_dlopen=no
10298fi
10299rm -f conftest.err conftest.$ac_objext \
10300      conftest$ac_exeext conftest.$ac_ext
10301LIBS=$ac_check_lib_save_LIBS
10302fi
10303echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10304echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10305if test $ac_cv_lib_dl_dlopen = yes; then
10306  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10307else
10308
10309    lt_cv_dlopen="dyld"
10310    lt_cv_dlopen_libs=
10311    lt_cv_dlopen_self=yes
10312
10313fi
10314
10315   ;;
10316
10317  *)
10318    echo "$as_me:$LINENO: checking for shl_load" >&5
10319echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10320if test "${ac_cv_func_shl_load+set}" = set; then
10321  echo $ECHO_N "(cached) $ECHO_C" >&6
10322else
10323  cat >conftest.$ac_ext <<_ACEOF
10324/* confdefs.h.  */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h.  */
10329/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10330   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10331#define shl_load innocuous_shl_load
10332
10333/* System header to define __stub macros and hopefully few prototypes,
10334    which can conflict with char shl_load (); below.
10335    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336    <limits.h> exists even on freestanding compilers.  */
10337
10338#ifdef __STDC__
10339# include <limits.h>
10340#else
10341# include <assert.h>
10342#endif
10343
10344#undef shl_load
10345
10346/* Override any gcc2 internal prototype to avoid an error.  */
10347#ifdef __cplusplus
10348extern "C"
10349{
10350#endif
10351/* We use char because int might match the return type of a gcc2
10352   builtin and then its argument prototype would still apply.  */
10353char shl_load ();
10354/* The GNU C library defines this for functions which it implements
10355    to always fail with ENOSYS.  Some functions are actually named
10356    something starting with __ and the normal name is an alias.  */
10357#if defined (__stub_shl_load) || defined (__stub___shl_load)
10358choke me
10359#else
10360char (*f) () = shl_load;
10361#endif
10362#ifdef __cplusplus
10363}
10364#endif
10365
10366int
10367main ()
10368{
10369return f != shl_load;
10370  ;
10371  return 0;
10372}
10373_ACEOF
10374rm -f conftest.$ac_objext conftest$ac_exeext
10375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376  (eval $ac_link) 2>conftest.er1
10377  ac_status=$?
10378  grep -v '^ *+' conftest.er1 >conftest.err
10379  rm -f conftest.er1
10380  cat conftest.err >&5
10381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382  (exit $ac_status); } &&
10383         { ac_try='test -z "$ac_c_werror_flag"
10384                         || test ! -s conftest.err'
10385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386  (eval $ac_try) 2>&5
10387  ac_status=$?
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); }; } &&
10390         { ac_try='test -s conftest$ac_exeext'
10391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392  (eval $ac_try) 2>&5
10393  ac_status=$?
10394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395  (exit $ac_status); }; }; then
10396  ac_cv_func_shl_load=yes
10397else
10398  echo "$as_me: failed program was:" >&5
10399sed 's/^/| /' conftest.$ac_ext >&5
10400
10401ac_cv_func_shl_load=no
10402fi
10403rm -f conftest.err conftest.$ac_objext \
10404      conftest$ac_exeext conftest.$ac_ext
10405fi
10406echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10407echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10408if test $ac_cv_func_shl_load = yes; then
10409  lt_cv_dlopen="shl_load"
10410else
10411  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10412echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10413if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10414  echo $ECHO_N "(cached) $ECHO_C" >&6
10415else
10416  ac_check_lib_save_LIBS=$LIBS
10417LIBS="-ldld  $LIBS"
10418cat >conftest.$ac_ext <<_ACEOF
10419/* confdefs.h.  */
10420_ACEOF
10421cat confdefs.h >>conftest.$ac_ext
10422cat >>conftest.$ac_ext <<_ACEOF
10423/* end confdefs.h.  */
10424
10425/* Override any gcc2 internal prototype to avoid an error.  */
10426#ifdef __cplusplus
10427extern "C"
10428#endif
10429/* We use char because int might match the return type of a gcc2
10430   builtin and then its argument prototype would still apply.  */
10431char shl_load ();
10432int
10433main ()
10434{
10435shl_load ();
10436  ;
10437  return 0;
10438}
10439_ACEOF
10440rm -f conftest.$ac_objext conftest$ac_exeext
10441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442  (eval $ac_link) 2>conftest.er1
10443  ac_status=$?
10444  grep -v '^ *+' conftest.er1 >conftest.err
10445  rm -f conftest.er1
10446  cat conftest.err >&5
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); } &&
10449         { ac_try='test -z "$ac_c_werror_flag"
10450                         || test ! -s conftest.err'
10451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452  (eval $ac_try) 2>&5
10453  ac_status=$?
10454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455  (exit $ac_status); }; } &&
10456         { ac_try='test -s conftest$ac_exeext'
10457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458  (eval $ac_try) 2>&5
10459  ac_status=$?
10460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461  (exit $ac_status); }; }; then
10462  ac_cv_lib_dld_shl_load=yes
10463else
10464  echo "$as_me: failed program was:" >&5
10465sed 's/^/| /' conftest.$ac_ext >&5
10466
10467ac_cv_lib_dld_shl_load=no
10468fi
10469rm -f conftest.err conftest.$ac_objext \
10470      conftest$ac_exeext conftest.$ac_ext
10471LIBS=$ac_check_lib_save_LIBS
10472fi
10473echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10474echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10475if test $ac_cv_lib_dld_shl_load = yes; then
10476  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10477else
10478  echo "$as_me:$LINENO: checking for dlopen" >&5
10479echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10480if test "${ac_cv_func_dlopen+set}" = set; then
10481  echo $ECHO_N "(cached) $ECHO_C" >&6
10482else
10483  cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h.  */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h.  */
10489/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10490   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10491#define dlopen innocuous_dlopen
10492
10493/* System header to define __stub macros and hopefully few prototypes,
10494    which can conflict with char dlopen (); below.
10495    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10496    <limits.h> exists even on freestanding compilers.  */
10497
10498#ifdef __STDC__
10499# include <limits.h>
10500#else
10501# include <assert.h>
10502#endif
10503
10504#undef dlopen
10505
10506/* Override any gcc2 internal prototype to avoid an error.  */
10507#ifdef __cplusplus
10508extern "C"
10509{
10510#endif
10511/* We use char because int might match the return type of a gcc2
10512   builtin and then its argument prototype would still apply.  */
10513char dlopen ();
10514/* The GNU C library defines this for functions which it implements
10515    to always fail with ENOSYS.  Some functions are actually named
10516    something starting with __ and the normal name is an alias.  */
10517#if defined (__stub_dlopen) || defined (__stub___dlopen)
10518choke me
10519#else
10520char (*f) () = dlopen;
10521#endif
10522#ifdef __cplusplus
10523}
10524#endif
10525
10526int
10527main ()
10528{
10529return f != dlopen;
10530  ;
10531  return 0;
10532}
10533_ACEOF
10534rm -f conftest.$ac_objext conftest$ac_exeext
10535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536  (eval $ac_link) 2>conftest.er1
10537  ac_status=$?
10538  grep -v '^ *+' conftest.er1 >conftest.err
10539  rm -f conftest.er1
10540  cat conftest.err >&5
10541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542  (exit $ac_status); } &&
10543         { ac_try='test -z "$ac_c_werror_flag"
10544                         || test ! -s conftest.err'
10545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546  (eval $ac_try) 2>&5
10547  ac_status=$?
10548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549  (exit $ac_status); }; } &&
10550         { ac_try='test -s conftest$ac_exeext'
10551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552  (eval $ac_try) 2>&5
10553  ac_status=$?
10554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555  (exit $ac_status); }; }; then
10556  ac_cv_func_dlopen=yes
10557else
10558  echo "$as_me: failed program was:" >&5
10559sed 's/^/| /' conftest.$ac_ext >&5
10560
10561ac_cv_func_dlopen=no
10562fi
10563rm -f conftest.err conftest.$ac_objext \
10564      conftest$ac_exeext conftest.$ac_ext
10565fi
10566echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10567echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10568if test $ac_cv_func_dlopen = yes; then
10569  lt_cv_dlopen="dlopen"
10570else
10571  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10572echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10573if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10574  echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576  ac_check_lib_save_LIBS=$LIBS
10577LIBS="-ldl  $LIBS"
10578cat >conftest.$ac_ext <<_ACEOF
10579/* confdefs.h.  */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h.  */
10584
10585/* Override any gcc2 internal prototype to avoid an error.  */
10586#ifdef __cplusplus
10587extern "C"
10588#endif
10589/* We use char because int might match the return type of a gcc2
10590   builtin and then its argument prototype would still apply.  */
10591char dlopen ();
10592int
10593main ()
10594{
10595dlopen ();
10596  ;
10597  return 0;
10598}
10599_ACEOF
10600rm -f conftest.$ac_objext conftest$ac_exeext
10601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602  (eval $ac_link) 2>conftest.er1
10603  ac_status=$?
10604  grep -v '^ *+' conftest.er1 >conftest.err
10605  rm -f conftest.er1
10606  cat conftest.err >&5
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); } &&
10609         { ac_try='test -z "$ac_c_werror_flag"
10610                         || test ! -s conftest.err'
10611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612  (eval $ac_try) 2>&5
10613  ac_status=$?
10614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615  (exit $ac_status); }; } &&
10616         { ac_try='test -s conftest$ac_exeext'
10617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618  (eval $ac_try) 2>&5
10619  ac_status=$?
10620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621  (exit $ac_status); }; }; then
10622  ac_cv_lib_dl_dlopen=yes
10623else
10624  echo "$as_me: failed program was:" >&5
10625sed 's/^/| /' conftest.$ac_ext >&5
10626
10627ac_cv_lib_dl_dlopen=no
10628fi
10629rm -f conftest.err conftest.$ac_objext \
10630      conftest$ac_exeext conftest.$ac_ext
10631LIBS=$ac_check_lib_save_LIBS
10632fi
10633echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10634echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10635if test $ac_cv_lib_dl_dlopen = yes; then
10636  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10637else
10638  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10639echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10640if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10641  echo $ECHO_N "(cached) $ECHO_C" >&6
10642else
10643  ac_check_lib_save_LIBS=$LIBS
10644LIBS="-lsvld  $LIBS"
10645cat >conftest.$ac_ext <<_ACEOF
10646/* confdefs.h.  */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h.  */
10651
10652/* Override any gcc2 internal prototype to avoid an error.  */
10653#ifdef __cplusplus
10654extern "C"
10655#endif
10656/* We use char because int might match the return type of a gcc2
10657   builtin and then its argument prototype would still apply.  */
10658char dlopen ();
10659int
10660main ()
10661{
10662dlopen ();
10663  ;
10664  return 0;
10665}
10666_ACEOF
10667rm -f conftest.$ac_objext conftest$ac_exeext
10668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669  (eval $ac_link) 2>conftest.er1
10670  ac_status=$?
10671  grep -v '^ *+' conftest.er1 >conftest.err
10672  rm -f conftest.er1
10673  cat conftest.err >&5
10674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675  (exit $ac_status); } &&
10676         { ac_try='test -z "$ac_c_werror_flag"
10677                         || test ! -s conftest.err'
10678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679  (eval $ac_try) 2>&5
10680  ac_status=$?
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); }; } &&
10683         { ac_try='test -s conftest$ac_exeext'
10684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685  (eval $ac_try) 2>&5
10686  ac_status=$?
10687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688  (exit $ac_status); }; }; then
10689  ac_cv_lib_svld_dlopen=yes
10690else
10691  echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
10694ac_cv_lib_svld_dlopen=no
10695fi
10696rm -f conftest.err conftest.$ac_objext \
10697      conftest$ac_exeext conftest.$ac_ext
10698LIBS=$ac_check_lib_save_LIBS
10699fi
10700echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10701echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10702if test $ac_cv_lib_svld_dlopen = yes; then
10703  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10704else
10705  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10706echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10707if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10708  echo $ECHO_N "(cached) $ECHO_C" >&6
10709else
10710  ac_check_lib_save_LIBS=$LIBS
10711LIBS="-ldld  $LIBS"
10712cat >conftest.$ac_ext <<_ACEOF
10713/* confdefs.h.  */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
10717/* end confdefs.h.  */
10718
10719/* Override any gcc2 internal prototype to avoid an error.  */
10720#ifdef __cplusplus
10721extern "C"
10722#endif
10723/* We use char because int might match the return type of a gcc2
10724