source: stable/1.15/Clp/configure @ 1969

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

temporarily committing release candidate

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