source: stable/1.14/Clp/configure @ 1813

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