source: stable/1.15/Clp/configure @ 1981

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

temporarily committing release candidate

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