source: stable/1.15/Clp/configure @ 1971

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

restoring Clp/stable/1.15

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