source: stable/1.15/Clp/configure @ 1944

Last change on this file since 1944 was 1944, checked in by stefan, 7 years ago

restoring Clp/stable/1.15

  • Property svn:executable set to *
File size: 1.0 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.15.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.15'
433PACKAGE_STRING='Clp 1.15'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_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 COIN_HAS_ABC_TRUE COIN_HAS_ABC_FALSE AMDINCDIR AMDLIB COIN_HAS_AMD_TRUE COIN_HAS_AMD_FALSE CHOLMODINCDIR CHOLMODLIB COIN_HAS_CHOLMOD_TRUE COIN_HAS_CHOLMOD_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS MPIF77 FLIBS BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_WSMP_TRUE COIN_HAS_WSMP_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1001ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1002ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1003ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1004ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1005ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1006ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1007ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1008ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1009ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1010ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1011ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016
1017#
1018# Report the --help message.
1019#
1020if test "$ac_init_help" = "long"; then
1021  # Omit some internal or obsolete options to make the list less imposing.
1022  # This message is too long to be a string in the A/UX 3.1 sh.
1023  cat <<_ACEOF
1024\`configure' configures Clp 1.15 to adapt to many kinds of systems.
1025
1026Usage: $0 [OPTION]... [VAR=VALUE]...
1027
1028To assign environment variables (e.g., CC, CFLAGS...), specify them as
1029VAR=VALUE.  See below for descriptions of some of the useful variables.
1030
1031Defaults for the options are specified in brackets.
1032
1033Configuration:
1034  -h, --help              display this help and exit
1035      --help=short        display options specific to this package
1036      --help=recursive    display the short help of all the included packages
1037  -V, --version           display version information and exit
1038  -q, --quiet, --silent   do not print \`checking...' messages
1039      --cache-file=FILE   cache test results in FILE [disabled]
1040  -C, --config-cache      alias for \`--cache-file=config.cache'
1041  -n, --no-create         do not create output files
1042      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1043
1044_ACEOF
1045
1046  cat <<_ACEOF
1047Installation directories:
1048  --prefix=PREFIX         install architecture-independent files in PREFIX
1049                          [$ac_default_prefix]
1050  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1051                          [PREFIX]
1052
1053By default, \`make install' will install all the files in
1054\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1055an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1056for instance \`--prefix=\$HOME'.
1057
1058For better control, use the options below.
1059
1060Fine tuning of the installation directories:
1061  --bindir=DIR           user executables [EPREFIX/bin]
1062  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1063  --libexecdir=DIR       program executables [EPREFIX/libexec]
1064  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1065  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1066  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1067  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1068  --libdir=DIR           object code libraries [EPREFIX/lib]
1069  --includedir=DIR       C header files [PREFIX/include]
1070  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1071  --infodir=DIR          info documentation [PREFIX/info]
1072  --mandir=DIR           man documentation [PREFIX/man]
1073_ACEOF
1074
1075  cat <<\_ACEOF
1076
1077Program names:
1078  --program-prefix=PREFIX            prepend PREFIX to installed program names
1079  --program-suffix=SUFFIX            append SUFFIX to installed program names
1080  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1081
1082System types:
1083  --build=BUILD     configure for building on BUILD [guessed]
1084  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1085_ACEOF
1086fi
1087
1088if test -n "$ac_init_help"; then
1089  case $ac_init_help in
1090     short | recursive ) echo "Configuration of Clp 1.15:";;
1091   esac
1092  cat <<\_ACEOF
1093
1094Optional Features:
1095  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1096  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1097  --enable-debug          compile all projects with debug options tests
1098                          (implies --disable-shared)
1099  --enable-debug-clp compile project Clp with debug compiler flags
1100  --enable-doscompile     Under Cygwin, compile so that executables run under
1101                          DOS. Set to mingw to use gcc/g++/ld with
1102                          -mno-cygwin. Set to msvc to use cl/link (or
1103                          icl/link). Default when mentioned: mingw. Default
1104                          when not mentioned: disabled.
1105  --enable-static[=PKGS]
1106                          build static libraries [default=no]
1107  --disable-dependency-tracking  speeds up one-time build
1108  --enable-dependency-tracking   do not reject slow dependency extractors
1109  --enable-maintainer-mode  enable make rules and dependencies not useful
1110                          (and sometimes confusing) to the casual installer
1111  --enable-shared[=PKGS]
1112                          build shared libraries [default=yes]
1113  --enable-fast-install[=PKGS]
1114                          optimize for fast installation [default=yes]
1115  --disable-libtool-lock  avoid locking (might break parallel builds)
1116  --disable-pkg-config    disable use of pkg-config (if available)
1117  --disable-interpackage-dependencies
1118                          disables deduction of Makefile dependencies from
1119                          package linker flags
1120  --enable-aboca          enables build of Aboca solver (set to 1,2,3,4)
1121  --disable-amd-libcheck skip the link check at configuration time
1122  --disable-cholmod-libcheck
1123                          skip the link check at configuration time
1124  --enable-gnu-packages   compile with GNU packages (disabled by default)
1125
1126Optional Packages:
1127  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1128  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1129  --with-clp-verbosity specify the debug verbosity level for project Clp
1130  --with-clp-checklevel specify the sanity check level for project Clp
1131  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1132  --with-pic              try to use only PIC/non-PIC objects [default=use
1133                          both]
1134  --with-tags[=TAGS]
1135                          include additional configurations [automatic]
1136  --with-coin-instdir     prefix of installation directory for precompiled
1137                          COIN packages
1138
1139  --with-coinutils-lib linker flags for using package CoinUtils
1140  --with-coinutils-incdir directory with header files for using package
1141                          CoinUtils
1142  --with-coinutils-datadir
1143                          directory with data files for using package
1144                          CoinUtils
1145  --with-osi-lib linker flags for using package Osi
1146  --with-osi-incdir directory with header files for using package Osi
1147  --with-osi-datadir directory with data files for using package Osi
1148  --with-ositests-lib linker flags for using package OsiTests
1149  --with-ositests-incdir directory with header files for using package
1150                          OsiTests
1151  --with-ositests-datadir directory with data files for using package OsiTests
1152  --with-sample-lib linker flags for using package Sample
1153  --with-sample-incdir directory with header files for using package Sample
1154  --with-sample-datadir directory with data files for using package Sample
1155  --with-netlib-lib linker flags for using package Netlib
1156  --with-netlib-incdir directory with header files for using package Netlib
1157  --with-netlib-datadir directory with data files for using package Netlib
1158  --with-amd-incdir specify the header file directory for library AMD
1159  --with-amd-lib specify the flags used to link with the library AMD
1160  --with-cholmod-incdir specify the header file directory for library CHOLMOD
1161  --with-cholmod-lib specify the flags used to link with the library CHOLMOD
1162  --with-glpk-lib linker flags for using package Glpk
1163  --with-glpk-incdir directory with header files for using package Glpk
1164  --with-glpk-datadir directory with data files for using package Glpk
1165  --with-mumps-lib linker flags for using package Mumps
1166  --with-mumps-incdir directory with header files for using package Mumps
1167  --with-mumps-datadir directory with data files for using package Mumps
1168  --with-wsmp             specify WSMP library
1169  --with-blas             specify BLAS library (or BUILD to enforce use of
1170                          ThirdParty/Blas)
1171  --with-blas-lib linker flags for using package Blas
1172  --with-blas-incdir directory with header files for using package Blas
1173  --with-blas-datadir directory with data files for using package Blas
1174  --with-dot              use dot (from graphviz) when creating documentation
1175                          with doxygen if available; --without-dot to disable
1176
1177Some influential environment variables:
1178  CDEFS       Additional -D flags to be used when compiling C code.
1179  ADD_CFLAGS  Additional C compiler options
1180  DBG_CFLAGS  Debug C compiler options
1181  OPT_CFLAGS  Optimize C compiler options
1182  CC          C compiler command
1183  CFLAGS      C compiler flags
1184  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1185              nonstandard directory <lib dir>
1186  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1187              headers in a nonstandard directory <include dir>
1188  MPICC       C MPI Compiler
1189  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1190  ADD_CXXFLAGS
1191              Additional C++ compiler options
1192  DBG_CXXFLAGS
1193              Debug C++ compiler options
1194  OPT_CXXFLAGS
1195              Optimize C++ compiler options
1196  CXX         C++ compiler command
1197  CXXFLAGS    C++ compiler flags
1198  MPICXX      C++ MPI Compiler
1199  CPP         C preprocessor
1200  CXXCPP      C++ preprocessor
1201  F77         Fortran 77 compiler command
1202  FFLAGS      Fortran 77 compiler flags
1203  PKG_CONFIG  path to pkg-config utility
1204  ADD_FFLAGS  Additional Fortran compiler options
1205  DBG_FFLAGS  Debug Fortran compiler options
1206  OPT_FFLAGS  Optimize Fortran compiler options
1207  MPIF77      Fortran MPI Compiler
1208
1209Use these variables to override the choices made by `configure' or to help
1210it to find libraries and programs with nonstandard names/locations.
1211
1212Report bugs to <clp@list.coin-or.org>.
1213_ACEOF
1214fi
1215
1216if test "$ac_init_help" = "recursive"; then
1217  # If there are subdirs, report their specific --help.
1218  ac_popdir=`pwd`
1219  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1220    test -d $ac_dir || continue
1221    ac_builddir=.
1222
1223if test "$ac_dir" != .; then
1224  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1225  # A "../" for each directory in $ac_dir_suffix.
1226  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1227else
1228  ac_dir_suffix= ac_top_builddir=
1229fi
1230
1231case $srcdir in
1232  .)  # No --srcdir option.  We are building in place.
1233    ac_srcdir=.
1234    if test -z "$ac_top_builddir"; then
1235       ac_top_srcdir=.
1236    else
1237       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1238    fi ;;
1239  [\\/]* | ?:[\\/]* )  # Absolute path.
1240    ac_srcdir=$srcdir$ac_dir_suffix;
1241    ac_top_srcdir=$srcdir ;;
1242  *) # Relative path.
1243    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1244    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1245esac
1246
1247# Do not use `cd foo && pwd` to compute absolute paths, because
1248# the directories may not exist.
1249case `pwd` in
1250.) ac_abs_builddir="$ac_dir";;
1251*)
1252  case "$ac_dir" in
1253  .) ac_abs_builddir=`pwd`;;
1254  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1255  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1256  esac;;
1257esac
1258case $ac_abs_builddir in
1259.) ac_abs_top_builddir=${ac_top_builddir}.;;
1260*)
1261  case ${ac_top_builddir}. in
1262  .) ac_abs_top_builddir=$ac_abs_builddir;;
1263  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1264  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1265  esac;;
1266esac
1267case $ac_abs_builddir in
1268.) ac_abs_srcdir=$ac_srcdir;;
1269*)
1270  case $ac_srcdir in
1271  .) ac_abs_srcdir=$ac_abs_builddir;;
1272  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1273  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1274  esac;;
1275esac
1276case $ac_abs_builddir in
1277.) ac_abs_top_srcdir=$ac_top_srcdir;;
1278*)
1279  case $ac_top_srcdir in
1280  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1281  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1282  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1283  esac;;
1284esac
1285
1286    cd $ac_dir
1287    # Check for guested configure; otherwise get Cygnus style configure.
1288    if test -f $ac_srcdir/configure.gnu; then
1289      echo
1290      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1291    elif test -f $ac_srcdir/configure; then
1292      echo
1293      $SHELL $ac_srcdir/configure  --help=recursive
1294    elif test -f $ac_srcdir/configure.ac ||
1295           test -f $ac_srcdir/configure.in; then
1296      echo
1297      $ac_configure --help
1298    else
1299      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1300    fi
1301    cd $ac_popdir
1302  done
1303fi
1304
1305test -n "$ac_init_help" && exit 0
1306if $ac_init_version; then
1307  cat <<\_ACEOF
1308Clp configure 1.15
1309generated by GNU Autoconf 2.59
1310
1311Copyright (C) 2003 Free Software Foundation, Inc.
1312This configure script is free software; the Free Software Foundation
1313gives unlimited permission to copy, distribute and modify it.
1314
1315
1316Copyright 2006 International Business Machines and others.
1317All Rights Reserved.
1318This file is part of the open source package Coin which is distributed
1319under the Eclipse Public License.
1320_ACEOF
1321  exit 0
1322fi
1323exec 5>config.log
1324cat >&5 <<_ACEOF
1325This file contains any messages produced by compilers while
1326running configure, to aid debugging if configure makes a mistake.
1327
1328It was created by Clp $as_me 1.15, which was
1329generated by GNU Autoconf 2.59.  Invocation command line was
1330
1331  $ $0 $@
1332
1333_ACEOF
1334{
1335cat <<_ASUNAME
1336## --------- ##
1337## Platform. ##
1338## --------- ##
1339
1340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1341uname -m = `(uname -m) 2>/dev/null || echo unknown`
1342uname -r = `(uname -r) 2>/dev/null || echo unknown`
1343uname -s = `(uname -s) 2>/dev/null || echo unknown`
1344uname -v = `(uname -v) 2>/dev/null || echo unknown`
1345
1346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1347/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1348
1349/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1350/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1352hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1353/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1354/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1355/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1356
1357_ASUNAME
1358
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  echo "PATH: $as_dir"
1365done
1366
1367} >&5
1368
1369cat >&5 <<_ACEOF
1370
1371
1372## ----------- ##
1373## Core tests. ##
1374## ----------- ##
1375
1376_ACEOF
1377
1378
1379# Keep a trace of the command line.
1380# Strip out --no-create and --no-recursion so they do not pile up.
1381# Strip out --silent because we don't want to record it for future runs.
1382# Also quote any args containing shell meta-characters.
1383# Make two passes to allow for proper duplicate-argument suppression.
1384ac_configure_args=
1385ac_configure_args0=
1386ac_configure_args1=
1387ac_sep=
1388ac_must_keep_next=false
1389for ac_pass in 1 2
1390do
1391  for ac_arg
1392  do
1393    case $ac_arg in
1394    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1395    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396    | -silent | --silent | --silen | --sile | --sil)
1397      continue ;;
1398    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1400    esac
1401    case $ac_pass in
1402    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1403    2)
1404      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1405      if test $ac_must_keep_next = true; then
1406        ac_must_keep_next=false # Got value, back to normal.
1407      else
1408        case $ac_arg in
1409          *=* | --config-cache | -C | -disable-* | --disable-* \
1410          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1411          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1412          | -with-* | --with-* | -without-* | --without-* | --x)
1413            case "$ac_configure_args0 " in
1414              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1415            esac
1416            ;;
1417          -* ) ac_must_keep_next=true ;;
1418        esac
1419      fi
1420      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1421      # Get rid of the leading space.
1422      ac_sep=" "
1423      ;;
1424    esac
1425  done
1426done
1427$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1428$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429
1430# When interrupted or exit'd, cleanup temporary files, and complete
1431# config.log.  We remove comments because anyway the quotes in there
1432# would cause problems or look ugly.
1433# WARNING: Be sure not to use single quotes in there, as some shells,
1434# such as our DU 5.0 friend, will then `close' the trap.
1435trap 'exit_status=$?
1436  # Save into config.log some information that might help in debugging.
1437  {
1438    echo
1439
1440    cat <<\_ASBOX
1441## ---------------- ##
1442## Cache variables. ##
1443## ---------------- ##
1444_ASBOX
1445    echo
1446    # The following way of writing the cache mishandles newlines in values,
1447{
1448  (set) 2>&1 |
1449    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1450    *ac_space=\ *)
1451      sed -n \
1452        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1453          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1454      ;;
1455    *)
1456      sed -n \
1457        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1458      ;;
1459    esac;
1460}
1461    echo
1462
1463    cat <<\_ASBOX
1464## ----------------- ##
1465## Output variables. ##
1466## ----------------- ##
1467_ASBOX
1468    echo
1469    for ac_var in $ac_subst_vars
1470    do
1471      eval ac_val=$`echo $ac_var`
1472      echo "$ac_var='"'"'$ac_val'"'"'"
1473    done | sort
1474    echo
1475
1476    if test -n "$ac_subst_files"; then
1477      cat <<\_ASBOX
1478## ------------- ##
1479## Output files. ##
1480## ------------- ##
1481_ASBOX
1482      echo
1483      for ac_var in $ac_subst_files
1484      do
1485        eval ac_val=$`echo $ac_var`
1486        echo "$ac_var='"'"'$ac_val'"'"'"
1487      done | sort
1488      echo
1489    fi
1490
1491    if test -s confdefs.h; then
1492      cat <<\_ASBOX
1493## ----------- ##
1494## confdefs.h. ##
1495## ----------- ##
1496_ASBOX
1497      echo
1498      sed "/^$/d" confdefs.h | sort
1499      echo
1500    fi
1501    test "$ac_signal" != 0 &&
1502      echo "$as_me: caught signal $ac_signal"
1503    echo "$as_me: exit $exit_status"
1504  } >&5
1505  rm -f core *.core &&
1506  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1507    exit $exit_status
1508     ' 0
1509for ac_signal in 1 2 13 15; do
1510  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1511done
1512ac_signal=0
1513
1514# confdefs.h avoids OS command line length limits that DEFS can exceed.
1515rm -rf conftest* confdefs.h
1516# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1517echo >confdefs.h
1518
1519# Predefined preprocessor variables.
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_NAME "$PACKAGE_NAME"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_VERSION "$PACKAGE_VERSION"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_STRING "$PACKAGE_STRING"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1543_ACEOF
1544
1545
1546# Let the site file select an alternate cache file if it wants to.
1547# Prefer explicitly selected file to automatically selected ones.
1548if test -z "$CONFIG_SITE"; then
1549  if test "x$prefix" != xNONE; then
1550    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1551  else
1552    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1553  fi
1554fi
1555for ac_site_file in $CONFIG_SITE; do
1556  if test -r "$ac_site_file"; then
1557    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1558echo "$as_me: loading site script $ac_site_file" >&6;}
1559    sed 's/^/| /' "$ac_site_file" >&5
1560    . "$ac_site_file"
1561  fi
1562done
1563
1564if test -r "$cache_file"; then
1565  # Some versions of bash will fail to source /dev/null (special
1566  # files actually), so we avoid doing that.
1567  if test -f "$cache_file"; then
1568    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1569echo "$as_me: loading cache $cache_file" >&6;}
1570    case $cache_file in
1571      [\\/]* | ?:[\\/]* ) . $cache_file;;
1572      *)                      . ./$cache_file;;
1573    esac
1574  fi
1575else
1576  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1577echo "$as_me: creating cache $cache_file" >&6;}
1578  >$cache_file
1579fi
1580
1581# Check that the precious variables saved in the cache have kept the same
1582# value.
1583ac_cache_corrupted=false
1584for ac_var in `(set) 2>&1 |
1585               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1587  eval ac_new_set=\$ac_env_${ac_var}_set
1588  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1589  eval ac_new_val="\$ac_env_${ac_var}_value"
1590  case $ac_old_set,$ac_new_set in
1591    set,)
1592      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1593echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1594      ac_cache_corrupted=: ;;
1595    ,set)
1596      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1597echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1598      ac_cache_corrupted=: ;;
1599    ,);;
1600    *)
1601      if test "x$ac_old_val" != "x$ac_new_val"; then
1602        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1603echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1604        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1605echo "$as_me:   former value:  $ac_old_val" >&2;}
1606        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1607echo "$as_me:   current value: $ac_new_val" >&2;}
1608        ac_cache_corrupted=:
1609      fi;;
1610  esac
1611  # Pass precious variables to config.status.
1612  if test "$ac_new_set" = set; then
1613    case $ac_new_val in
1614    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1615      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1616    *) ac_arg=$ac_var=$ac_new_val ;;
1617    esac
1618    case " $ac_configure_args " in
1619      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1620      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1621    esac
1622  fi
1623done
1624if $ac_cache_corrupted; then
1625  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1626echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1627  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1628echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1629   { (exit 1); exit 1; }; }
1630fi
1631
1632ac_ext=c
1633ac_cpp='$CPP $CPPFLAGS'
1634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636ac_compiler_gnu=$ac_cv_c_compiler_gnu
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667# List one file in the package so that the configure script can test
1668# whether the package is actually there
1669
1670
1671# Where should everything be installed by default?  Here, we want it
1672# to be installed directly in 'bin', 'lib', 'include' subdirectories
1673# of the directory where configure is run.  The default would be
1674# /usr/local.
1675
1676
1677#############################################################################
1678#                         Standard build tool stuff                         #
1679#############################################################################
1680
1681# Get the system type
1682ac_aux_dir=
1683for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1684  if test -f $ac_dir/install-sh; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/install-sh -c"
1687    break
1688  elif test -f $ac_dir/install.sh; then
1689    ac_aux_dir=$ac_dir
1690    ac_install_sh="$ac_aux_dir/install.sh -c"
1691    break
1692  elif test -f $ac_dir/shtool; then
1693    ac_aux_dir=$ac_dir
1694    ac_install_sh="$ac_aux_dir/shtool install -c"
1695    break
1696  fi
1697done
1698if test -z "$ac_aux_dir"; then
1699  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1700echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1701   { (exit 1); exit 1; }; }
1702fi
1703ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1704ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1705ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1706
1707# Make sure we can run config.sub.
1708$ac_config_sub sun4 >/dev/null 2>&1 ||
1709  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1710echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1711   { (exit 1); exit 1; }; }
1712
1713echo "$as_me:$LINENO: checking build system type" >&5
1714echo $ECHO_N "checking build system type... $ECHO_C" >&6
1715if test "${ac_cv_build+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  ac_cv_build_alias=$build_alias
1719test -z "$ac_cv_build_alias" &&
1720  ac_cv_build_alias=`$ac_config_guess`
1721test -z "$ac_cv_build_alias" &&
1722  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1723echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1724   { (exit 1); exit 1; }; }
1725ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1726  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1727echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730fi
1731echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1732echo "${ECHO_T}$ac_cv_build" >&6
1733build=$ac_cv_build
1734build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
1738
1739
1740# If this project depends on external projects, the Externals file in
1741# the source root directory contains definition of where to find those
1742# externals.  The following macro ensures that those externals are
1743# retrieved by svn if they are not there yet.
1744
1745# As backup, we make sure we don't loose an FLIBS if it has been set
1746# by the user
1747save_FLIBS="$FLIBS"
1748
1749# A useful makefile conditional that is always false
1750
1751
1752if false; then
1753  ALWAYS_FALSE_TRUE=
1754  ALWAYS_FALSE_FALSE='#'
1755else
1756  ALWAYS_FALSE_TRUE='#'
1757  ALWAYS_FALSE_FALSE=
1758fi
1759
1760
1761# We set the following variable so that we know later in AC_COIN_FINALIZE
1762# that we are in a project main directory
1763coin_projectdir=yes
1764
1765# Set the project's version numbers
1766
1767
1768cat >>confdefs.h <<_ACEOF
1769#define CLP_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
1772
1773  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1774  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1775  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1776  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1777  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1778  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1779
1780cat >>confdefs.h <<_ACEOF
1781#define CLP_VERSION_MAJOR $coin_majorver
1782_ACEOF
1783
1784
1785cat >>confdefs.h <<_ACEOF
1786#define CLP_VERSION_MINOR $coin_minorver
1787_ACEOF
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define CLP_VERSION_RELEASE $coin_releasever
1792_ACEOF
1793
1794
1795  # We use the following variable to have a string with the upper case
1796  # version of the project name
1797  COIN_PRJCT=CLP
1798
1799  # Set the project's SVN revision number. The complicated sed expression
1800  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1801  # as a single number.
1802  # Extract the first word of "svnversion", so it can be a program name with args.
1803set dummy svnversion; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_have_svnversion+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  if test -n "$have_svnversion"; then
1810  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815  IFS=$as_save_IFS
1816  test -z "$as_dir" && as_dir=.
1817  for ac_exec_ext in '' $ac_executable_extensions; do
1818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819    ac_cv_prog_have_svnversion="yes"
1820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821    break 2
1822  fi
1823done
1824done
1825
1826  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1827fi
1828fi
1829have_svnversion=$ac_cv_prog_have_svnversion
1830if test -n "$have_svnversion"; then
1831  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1832echo "${ECHO_T}$have_svnversion" >&6
1833else
1834  echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838  if test "x$have_svnversion" = xyes; then
1839
1840    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1841    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1842      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1843
1844cat >>confdefs.h <<_ACEOF
1845#define CLP_SVN_REV $CLP_SVN_REV
1846_ACEOF
1847
1848    fi
1849  fi
1850
1851
1852
1853# Capture libtool library version, if given.
1854
1855
1856
1857
1858# Check if user wants to produce debugging code
1859
1860echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1861echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1862
1863# Check whether --enable-debug or --disable-debug was given.
1864if test "${enable_debug+set}" = set; then
1865  enableval="$enable_debug"
1866  case "${enableval}" in
1867   yes) coin_debug_compile=true
1868        if test "${enable_shared+set}" = set; then :; else
1869          enable_shared=no
1870        fi
1871        ;;
1872   no)  coin_debug_compile=false
1873        ;;
1874   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1875echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1876   { (exit 1); exit 1; }; }
1877        ;;
1878esac
1879else
1880  coin_debug_compile=false
1881fi;
1882
1883# Check whether --enable-debug-clp or --disable-debug-clp was given.
1884if test "${enable_debug_clp+set}" = set; then
1885  enableval="$enable_debug_clp"
1886  case "${enableval}" in
1887    yes) coin_debug_compile=true
1888         ;;
1889    no)  coin_debug_compile=false
1890         ;;
1891    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1892echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1893   { (exit 1); exit 1; }; }
1894         ;;
1895 esac
1896else
1897  :
1898fi;
1899
1900 # m4_ifvaln([Clp],
1901
1902if test $coin_debug_compile = true; then
1903  echo "$as_me:$LINENO: result: yes" >&5
1904echo "${ECHO_T}yes" >&6
1905else
1906  echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6
1908fi
1909
1910
1911# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1912if test "${with_clp_verbosity+set}" = set; then
1913  withval="$with_clp_verbosity"
1914  if test "$withval" = yes; then
1915                withval=1
1916              fi
1917              coin_clp_verbosity=$withval
1918else
1919  coin_clp_verbosity=0
1920fi;
1921
1922cat >>confdefs.h <<_ACEOF
1923#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1924_ACEOF
1925
1926
1927
1928# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1929if test "${with_clp_checklevel+set}" = set; then
1930  withval="$with_clp_checklevel"
1931  if test "$withval" = yes; then
1932                withval=1
1933              fi
1934              coin_clp_checklevel=$withval
1935else
1936  coin_clp_checklevel=0
1937fi;
1938
1939cat >>confdefs.h <<_ACEOF
1940#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1941_ACEOF
1942
1943
1944 # m4_ifvaln([Clp],
1945
1946
1947
1948# Get the name of the C++ compiler and appropriate compiler options
1949case $build in
1950  *-mingw*)
1951    if test "${LD+set}" = set; then :; else
1952      LD=link
1953    fi
1954    ;;
1955 esac
1956 case $enable_doscompile in
1957   msvc)
1958     if test "x${LD+set}" = xset; then :; else
1959       LD=link
1960     fi
1961     ;;
1962 esac
1963
1964
1965 # Check whether --enable-doscompile or --disable-doscompile was given.
1966if test "${enable_doscompile+set}" = set; then
1967  enableval="$enable_doscompile"
1968  if test "$enable_doscompile" != no; then
1969     case $build in
1970       *-cygwin* | *-mingw*) ;;
1971       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1972echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1973   { (exit 1); exit 1; }; } ;;
1974     esac
1975   fi
1976else
1977  enable_doscompile=no
1978fi;
1979 case "$enable_doscompile" in
1980   mingw)
1981     case $build in
1982       *-mingw*) enable_doscompile=no ;;
1983     esac
1984     ;;
1985   msvc|no) ;;
1986   yes) enable_doscompile=mingw ;;
1987   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1988                    Try configure --help=recursive." >&5
1989echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1990                    Try configure --help=recursive." >&2;}
1991   { (exit 1); exit 1; }; }
1992      ;;
1993  esac
1994  if test "$enable_doscompile" != no ; then
1995    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1996echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1997  fi
1998
1999
2000
2001
2002ac_ext=c
2003ac_cpp='$CPP $CPPFLAGS'
2004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009# For consistency, we set the C compiler to the same value of the C++
2010# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2011if test x"$CXX" != x; then
2012  case "$CXX" in
2013    clang* ) ;;
2014    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2015      if test x"$CC" = x; then
2016        CC="$CXX"
2017        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2018echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2019      fi
2020      ;;
2021  esac
2022fi
2023
2024
2025
2026
2027
2028
2029coin_has_cc=yes
2030
2031save_cflags="$CFLAGS"
2032
2033# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2034# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2035# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2036# compiler. In this case, put cc after gcc.
2037
2038case $build in
2039  *-cygwin* | *-mingw*)
2040             if test "$enable_doscompile" = msvc ; then
2041               comps="icl cl"
2042             else
2043               comps="gcc cl"
2044             fi ;;
2045  *-*-solaris*)
2046             # Extract the first word of "cc", so it can be a program name with args.
2047set dummy cc; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$sol_cc_compiler"; then
2054  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2055else
2056  ac_prog_rejected=no
2057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058for as_dir in $PATH
2059do
2060  IFS=$as_save_IFS
2061  test -z "$as_dir" && as_dir=.
2062  for ac_exec_ext in '' $ac_executable_extensions; do
2063  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2065       ac_prog_rejected=yes
2066       continue
2067     fi
2068    ac_cv_prog_sol_cc_compiler="cc"
2069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070    break 2
2071  fi
2072done
2073done
2074
2075if test $ac_prog_rejected = yes; then
2076  # We found a bogon in the path, so make sure we never use it.
2077  set dummy $ac_cv_prog_sol_cc_compiler
2078  shift
2079  if test $# != 0; then
2080    # We chose a different compiler from the bogus one.
2081    # However, it has the same basename, so the bogon will be chosen
2082    # first if we set sol_cc_compiler to just the basename; use the full file name.
2083    shift
2084    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2085  fi
2086fi
2087fi
2088fi
2089sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2090if test -n "$sol_cc_compiler"; then
2091  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2092echo "${ECHO_T}$sol_cc_compiler" >&6
2093else
2094  echo "$as_me:$LINENO: result: no" >&5
2095echo "${ECHO_T}no" >&6
2096fi
2097
2098             if test "$sol_cc_compiler" = "cc" ; then
2099               comps="cc xlc gcc pgcc icc"
2100             else
2101               comps="xlc gcc pgcc icc cc"
2102             fi
2103             ;;
2104  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2105  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2106  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2107esac
2108
2109# We delete the cached value, since the test might not have been
2110# performed with our choice of compilers earlier
2111$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2112# AC_MSG_NOTICE([C compiler candidates: $comps])
2113ac_ext=c
2114ac_cpp='$CPP $CPPFLAGS'
2115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118if test -n "$ac_tool_prefix"; then
2119  for ac_prog in $comps
2120  do
2121    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2122set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2123echo "$as_me:$LINENO: checking for $ac_word" >&5
2124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125if test "${ac_cv_prog_CC+set}" = set; then
2126  echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128  if test -n "$CC"; then
2129  ac_cv_prog_CC="$CC" # Let the user override the test.
2130else
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134  IFS=$as_save_IFS
2135  test -z "$as_dir" && as_dir=.
2136  for ac_exec_ext in '' $ac_executable_extensions; do
2137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140    break 2
2141  fi
2142done
2143done
2144
2145fi
2146fi
2147CC=$ac_cv_prog_CC
2148if test -n "$CC"; then
2149  echo "$as_me:$LINENO: result: $CC" >&5
2150echo "${ECHO_T}$CC" >&6
2151else
2152  echo "$as_me:$LINENO: result: no" >&5
2153echo "${ECHO_T}no" >&6
2154fi
2155
2156    test -n "$CC" && break
2157  done
2158fi
2159if test -z "$CC"; then
2160  ac_ct_CC=$CC
2161  for ac_prog in $comps
2162do
2163  # Extract the first word of "$ac_prog", so it can be a program name with args.
2164set dummy $ac_prog; ac_word=$2
2165echo "$as_me:$LINENO: checking for $ac_word" >&5
2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2168  echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170  if test -n "$ac_ct_CC"; then
2171  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172else
2173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174for as_dir in $PATH
2175do
2176  IFS=$as_save_IFS
2177  test -z "$as_dir" && as_dir=.
2178  for ac_exec_ext in '' $ac_executable_extensions; do
2179  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180    ac_cv_prog_ac_ct_CC="$ac_prog"
2181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182    break 2
2183  fi
2184done
2185done
2186
2187fi
2188fi
2189ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190if test -n "$ac_ct_CC"; then
2191  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192echo "${ECHO_T}$ac_ct_CC" >&6
2193else
2194  echo "$as_me:$LINENO: result: no" >&5
2195echo "${ECHO_T}no" >&6
2196fi
2197
2198  test -n "$ac_ct_CC" && break
2199done
2200
2201  CC=$ac_ct_CC
2202fi
2203
2204
2205test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2206See \`config.log' for more details." >&5
2207echo "$as_me: error: no acceptable C compiler found in \$PATH
2208See \`config.log' for more details." >&2;}
2209   { (exit 1); exit 1; }; }
2210
2211# Provide some information about the compiler.
2212echo "$as_me:$LINENO:" \
2213     "checking for C compiler version" >&5
2214ac_compiler=`set X $ac_compile; echo $2`
2215{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2216  (eval $ac_compiler --version </dev/null >&5) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }
2220{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2221  (eval $ac_compiler -v </dev/null >&5) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }
2225{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2226  (eval $ac_compiler -V </dev/null >&5) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }
2230
2231cat >conftest.$ac_ext <<_ACEOF
2232/* confdefs.h.  */
2233_ACEOF
2234cat confdefs.h >>conftest.$ac_ext
2235cat >>conftest.$ac_ext <<_ACEOF
2236/* end confdefs.h.  */
2237
2238int
2239main ()
2240{
2241
2242  ;
2243  return 0;
2244}
2245_ACEOF
2246ac_clean_files_save=$ac_clean_files
2247ac_clean_files="$ac_clean_files a.out a.exe b.out"
2248# Try to create an executable without -o first, disregard a.out.
2249# It will help us diagnose broken compilers, and finding out an intuition
2250# of exeext.
2251echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2252echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2253ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2254if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2255  (eval $ac_link_default) 2>&5
2256  ac_status=$?
2257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258  (exit $ac_status); }; then
2259  # Find the output, starting from the most likely.  This scheme is
2260# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2261# resort.
2262
2263# Be careful to initialize this variable, since it used to be cached.
2264# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2265ac_cv_exeext=
2266# b.out is created by i960 compilers.
2267for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2268do
2269  test -f "$ac_file" || continue
2270  case $ac_file in
2271    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2272        ;;
2273    conftest.$ac_ext )
2274        # This is the source file.
2275        ;;
2276    [ab].out )
2277        # We found the default executable, but exeext='' is most
2278        # certainly right.
2279        break;;
2280    *.* )
2281        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282        # FIXME: I believe we export ac_cv_exeext for Libtool,
2283        # but it would be cool to find out if it's true.  Does anybody
2284        # maintain Libtool? --akim.
2285        export ac_cv_exeext
2286        break;;
2287    * )
2288        break;;
2289  esac
2290done
2291else
2292  echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2296See \`config.log' for more details." >&5
2297echo "$as_me: error: C compiler cannot create executables
2298See \`config.log' for more details." >&2;}
2299   { (exit 77); exit 77; }; }
2300fi
2301
2302ac_exeext=$ac_cv_exeext
2303echo "$as_me:$LINENO: result: $ac_file" >&5
2304echo "${ECHO_T}$ac_file" >&6
2305
2306# Check the compiler produces executables we can run.  If not, either
2307# the compiler is broken, or we cross compile.
2308echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2309echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2310# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2311# If not cross compiling, check that we can run a simple program.
2312if test "$cross_compiling" != yes; then
2313  if { ac_try='./$ac_file'
2314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315  (eval $ac_try) 2>&5
2316  ac_status=$?
2317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318  (exit $ac_status); }; }; then
2319    cross_compiling=no
2320  else
2321    if test "$cross_compiling" = maybe; then
2322        cross_compiling=yes
2323    else
2324        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2325If you meant to cross compile, use \`--host'.
2326See \`config.log' for more details." >&5
2327echo "$as_me: error: cannot run C compiled programs.
2328If you meant to cross compile, use \`--host'.
2329See \`config.log' for more details." >&2;}
2330   { (exit 1); exit 1; }; }
2331    fi
2332  fi
2333fi
2334echo "$as_me:$LINENO: result: yes" >&5
2335echo "${ECHO_T}yes" >&6
2336
2337rm -f a.out a.exe conftest$ac_cv_exeext b.out
2338ac_clean_files=$ac_clean_files_save
2339# Check the compiler produces executables we can run.  If not, either
2340# the compiler is broken, or we cross compile.
2341echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2342echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2343echo "$as_me:$LINENO: result: $cross_compiling" >&5
2344echo "${ECHO_T}$cross_compiling" >&6
2345
2346echo "$as_me:$LINENO: checking for suffix of executables" >&5
2347echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2349  (eval $ac_link) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; then
2353  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2354# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2355# work properly (i.e., refer to `conftest.exe'), while it won't with
2356# `rm'.
2357for ac_file in conftest.exe conftest conftest.*; do
2358  test -f "$ac_file" || continue
2359  case $ac_file in
2360    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2361    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362          export ac_cv_exeext
2363          break;;
2364    * ) break;;
2365  esac
2366done
2367else
2368  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2369See \`config.log' for more details." >&5
2370echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2371See \`config.log' for more details." >&2;}
2372   { (exit 1); exit 1; }; }
2373fi
2374
2375rm -f conftest$ac_cv_exeext
2376echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2377echo "${ECHO_T}$ac_cv_exeext" >&6
2378
2379rm -f conftest.$ac_ext
2380EXEEXT=$ac_cv_exeext
2381ac_exeext=$EXEEXT
2382echo "$as_me:$LINENO: checking for suffix of object files" >&5
2383echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2384if test "${ac_cv_objext+set}" = set; then
2385  echo $ECHO_N "(cached) $ECHO_C" >&6
2386else
2387  cat >conftest.$ac_ext <<_ACEOF
2388/* confdefs.h.  */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h.  */
2393
2394int
2395main ()
2396{
2397
2398  ;
2399  return 0;
2400}
2401_ACEOF
2402rm -f conftest.o conftest.obj
2403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404  (eval $ac_compile) 2>&5
2405  ac_status=$?
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); }; then
2408  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2409  case $ac_file in
2410    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2411    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2412       break;;
2413  esac
2414done
2415else
2416  echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
2419{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2420See \`config.log' for more details." >&5
2421echo "$as_me: error: cannot compute suffix of object files: cannot compile
2422See \`config.log' for more details." >&2;}
2423   { (exit 1); exit 1; }; }
2424fi
2425
2426rm -f conftest.$ac_cv_objext conftest.$ac_ext
2427fi
2428echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2429echo "${ECHO_T}$ac_cv_objext" >&6
2430OBJEXT=$ac_cv_objext
2431ac_objext=$OBJEXT
2432echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2433echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2434if test "${ac_cv_c_compiler_gnu+set}" = set; then
2435  echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437  cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h.  */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h.  */
2443
2444int
2445main ()
2446{
2447#ifndef __GNUC__
2448       choke me
2449#endif
2450
2451  ;
2452  return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457  (eval $ac_compile) 2>conftest.er1
2458  ac_status=$?
2459  grep -v '^ *+' conftest.er1 >conftest.err
2460  rm -f conftest.er1
2461  cat conftest.err >&5
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); } &&
2464         { ac_try='test -z "$ac_c_werror_flag"
2465                         || test ! -s conftest.err'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; } &&
2471         { ac_try='test -s conftest.$ac_objext'
2472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473  (eval $ac_try) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }; }; then
2477  ac_compiler_gnu=yes
2478else
2479  echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482ac_compiler_gnu=no
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485ac_cv_c_compiler_gnu=$ac_compiler_gnu
2486
2487fi
2488echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2489echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2490GCC=`test $ac_compiler_gnu = yes && echo yes`
2491ac_test_CFLAGS=${CFLAGS+set}
2492ac_save_CFLAGS=$CFLAGS
2493CFLAGS="-g"
2494echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2495echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2496if test "${ac_cv_prog_cc_g+set}" = set; then
2497  echo $ECHO_N "(cached) $ECHO_C" >&6
2498else
2499  cat >conftest.$ac_ext <<_ACEOF
2500/* confdefs.h.  */
2501_ACEOF
2502cat confdefs.h >>conftest.$ac_ext
2503cat >>conftest.$ac_ext <<_ACEOF
2504/* end confdefs.h.  */
2505
2506int
2507main ()
2508{
2509
2510  ;
2511  return 0;
2512}
2513_ACEOF
2514rm -f conftest.$ac_objext
2515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516  (eval $ac_compile) 2>conftest.er1
2517  ac_status=$?
2518  grep -v '^ *+' conftest.er1 >conftest.err
2519  rm -f conftest.er1
2520  cat conftest.err >&5
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); } &&
2523         { ac_try='test -z "$ac_c_werror_flag"
2524                         || test ! -s conftest.err'
2525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526  (eval $ac_try) 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; } &&
2530         { ac_try='test -s conftest.$ac_objext'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; }; then
2536  ac_cv_prog_cc_g=yes
2537else
2538  echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541ac_cv_prog_cc_g=no
2542fi
2543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544fi
2545echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2546echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2547if test "$ac_test_CFLAGS" = set; then
2548  CFLAGS=$ac_save_CFLAGS
2549elif test $ac_cv_prog_cc_g = yes; then
2550  if test "$GCC" = yes; then
2551    CFLAGS="-g -O2"
2552  else
2553    CFLAGS="-g"
2554  fi
2555else
2556  if test "$GCC" = yes; then
2557    CFLAGS="-O2"
2558  else
2559    CFLAGS=
2560  fi
2561fi
2562echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2563echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2564if test "${ac_cv_prog_cc_stdc+set}" = set; then
2565  echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567  ac_cv_prog_cc_stdc=no
2568ac_save_CC=$CC
2569cat >conftest.$ac_ext <<_ACEOF
2570/* confdefs.h.  */
2571_ACEOF
2572cat confdefs.h >>conftest.$ac_ext
2573cat >>conftest.$ac_ext <<_ACEOF
2574/* end confdefs.h.  */
2575#include <stdarg.h>
2576#include <stdio.h>
2577#include <sys/types.h>
2578#include <sys/stat.h>
2579/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2580struct buf { int x; };
2581FILE * (*rcsopen) (struct buf *, struct stat *, int);
2582static char *e (p, i)
2583     char **p;
2584     int i;
2585{
2586  return p[i];
2587}
2588static char *f (char * (*g) (char **, int), char **p, ...)
2589{
2590  char *s;
2591  va_list v;
2592  va_start (v,p);
2593  s = g (p, va_arg (v,int));
2594  va_end (v);
2595  return s;
2596}
2597
2598/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2599   function prototypes and stuff, but not '\xHH' hex character constants.
2600   These don't provoke an error unfortunately, instead are silently treated
2601   as 'x'.  The following induces an error, until -std1 is added to get
2602   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2603   array size at least.  It's necessary to write '\x00'==0 to get something
2604   that's true only with -std1.  */
2605int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2606
2607int test (int i, double x);
2608struct s1 {int (*f) (int a);};
2609struct s2 {int (*f) (double a);};
2610int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2611int argc;
2612char **argv;
2613int
2614main ()
2615{
2616return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2617  ;
2618  return 0;
2619}
2620_ACEOF
2621# Don't try gcc -ansi; that turns off useful extensions and
2622# breaks some systems' header files.
2623# AIX                   -qlanglvl=ansi
2624# Ultrix and OSF/1      -std1
2625# HP-UX 10.20 and later -Ae
2626# HP-UX older versions  -Aa -D_HPUX_SOURCE
2627# SVR4                  -Xc -D__EXTENSIONS__
2628for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2629do
2630  CC="$ac_save_CC $ac_arg"
2631  rm -f conftest.$ac_objext
2632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633  (eval $ac_compile) 2>conftest.er1
2634  ac_status=$?
2635  grep -v '^ *+' conftest.er1 >conftest.err
2636  rm -f conftest.er1
2637  cat conftest.err >&5
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); } &&
2640         { ac_try='test -z "$ac_c_werror_flag"
2641                         || test ! -s conftest.err'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; } &&
2647         { ac_try='test -s conftest.$ac_objext'
2648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649  (eval $ac_try) 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; }; then
2653  ac_cv_prog_cc_stdc=$ac_arg
2654break
2655else
2656  echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659fi
2660rm -f conftest.err conftest.$ac_objext
2661done
2662rm -f conftest.$ac_ext conftest.$ac_objext
2663CC=$ac_save_CC
2664
2665fi
2666
2667case "x$ac_cv_prog_cc_stdc" in
2668  x|xno)
2669    echo "$as_me:$LINENO: result: none needed" >&5
2670echo "${ECHO_T}none needed" >&6 ;;
2671  *)
2672    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2673echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2674    CC="$CC $ac_cv_prog_cc_stdc" ;;
2675esac
2676
2677# Some people use a C++ compiler to compile C.  Since we use `exit',
2678# in C++ we need to declare it.  In case someone uses the same compiler
2679# for both compiling C and C++ we need to have the C++ compiler decide
2680# the declaration of exit, since it's the most demanding environment.
2681cat >conftest.$ac_ext <<_ACEOF
2682#ifndef __cplusplus
2683  choke me
2684#endif
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688  (eval $ac_compile) 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695         { ac_try='test -z "$ac_c_werror_flag"
2696                         || test ! -s conftest.err'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; } &&
2702         { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  for ac_declaration in \
2709   '' \
2710   'extern "C" void std::exit (int) throw (); using std::exit;' \
2711   'extern "C" void std::exit (int); using std::exit;' \
2712   'extern "C" void exit (int) throw ();' \
2713   'extern "C" void exit (int);' \
2714   'void exit (int);'
2715do
2716  cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h.  */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h.  */
2722$ac_declaration
2723#include <stdlib.h>
2724int
2725main ()
2726{
2727exit (42);
2728  ;
2729  return 0;
2730}
2731_ACEOF
2732rm -f conftest.$ac_objext
2733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734  (eval $ac_compile) 2>conftest.er1
2735  ac_status=$?
2736  grep -v '^ *+' conftest.er1 >conftest.err
2737  rm -f conftest.er1
2738  cat conftest.err >&5
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); } &&
2741         { ac_try='test -z "$ac_c_werror_flag"
2742                         || test ! -s conftest.err'
2743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744  (eval $ac_try) 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }; } &&
2748         { ac_try='test -s conftest.$ac_objext'
2749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750  (eval $ac_try) 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; }; then
2754  :
2755else
2756  echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759continue
2760fi
2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762  cat >conftest.$ac_ext <<_ACEOF
2763/* confdefs.h.  */
2764_ACEOF
2765cat confdefs.h >>conftest.$ac_ext
2766cat >>conftest.$ac_ext <<_ACEOF
2767/* end confdefs.h.  */
2768$ac_declaration
2769int
2770main ()
2771{
2772exit (42);
2773  ;
2774  return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779  (eval $ac_compile) 2>conftest.er1
2780  ac_status=$?
2781  grep -v '^ *+' conftest.er1 >conftest.err
2782  rm -f conftest.er1
2783  cat conftest.err >&5
2784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785  (exit $ac_status); } &&
2786         { ac_try='test -z "$ac_c_werror_flag"
2787                         || test ! -s conftest.err'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; } &&
2793         { ac_try='test -s conftest.$ac_objext'
2794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795  (eval $ac_try) 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }; }; then
2799  break
2800else
2801  echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
2803
2804fi
2805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806done
2807rm -f conftest*
2808if test -n "$ac_declaration"; then
2809  echo '#ifdef __cplusplus' >>confdefs.h
2810  echo $ac_declaration      >>confdefs.h
2811  echo '#endif'             >>confdefs.h
2812fi
2813
2814else
2815  echo "$as_me: failed program was:" >&5
2816sed 's/^/| /' conftest.$ac_ext >&5
2817
2818fi
2819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820ac_ext=c
2821ac_cpp='$CPP $CPPFLAGS'
2822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826if test -z "$CC" ; then
2827  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2828echo "$as_me: error: Failed to find a C compiler!" >&2;}
2829   { (exit 1); exit 1; }; }
2830fi
2831# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2832case "$CC" in
2833  clang* ) ;;
2834  cl* | */cl* | CL* | */CL* )
2835    if test "$ac_cv_prog_cc_g" = yes ; then
2836      ac_cv_prog_cc_g=no
2837      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2838echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2839    fi ;;
2840esac
2841CFLAGS="$save_cflags"
2842
2843# add automake conditional so we can recognize cl compiler in makefile
2844coin_cc_is_cl=false
2845case "$CC" in
2846  clang* ) ;;
2847  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2848    coin_cc_is_cl=true
2849    ;;
2850esac
2851
2852
2853if test $coin_cc_is_cl = true; then
2854  COIN_CC_IS_CL_TRUE=
2855  COIN_CC_IS_CL_FALSE='#'
2856else
2857  COIN_CC_IS_CL_TRUE='#'
2858  COIN_CC_IS_CL_FALSE=
2859fi
2860
2861
2862# Check if a project specific CFLAGS variable has been set
2863if test x$COIN_PRJCT != x; then
2864  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2865  if test x$coin_tmp = xset; then
2866    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2867  fi
2868fi
2869
2870if test x"$CFLAGS" = x; then
2871
2872  coin_add_cflags=
2873  coin_opt_cflags=
2874  coin_dbg_cflags=
2875  coin_warn_cflags=
2876
2877  if test "$GCC" = "yes"; then
2878    case "$CC" in
2879      icc* | */icc*)
2880        ;;
2881      *)
2882        coin_opt_cflags="-O3"
2883        coin_add_cflags="-pipe"
2884        coin_dbg_cflags="-g -O0"
2885        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2886        case $build in
2887          *-darwin*)
2888            ;;
2889          *)
2890            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2891            ;;
2892        esac
2893        case $enable_doscompile in
2894          mingw)
2895            CFLAGS="-mno-cygwin"
2896            cat >conftest.$ac_ext <<_ACEOF
2897/* confdefs.h.  */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h.  */
2902
2903int
2904main ()
2905{
2906int i=0; i++;
2907  ;
2908  return 0;
2909}
2910_ACEOF
2911rm -f conftest.$ac_objext conftest$ac_exeext
2912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2913  (eval $ac_link) 2>conftest.er1
2914  ac_status=$?
2915  grep -v '^ *+' conftest.er1 >conftest.err
2916  rm -f conftest.er1
2917  cat conftest.err >&5
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); } &&
2920         { ac_try='test -z "$ac_c_werror_flag"
2921                         || test ! -s conftest.err'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; } &&
2927         { ac_try='test -s conftest$ac_exeext'
2928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929  (eval $ac_try) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; }; then
2933  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2934else
2935  echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938fi
2939rm -f conftest.err conftest.$ac_objext \
2940      conftest$ac_exeext conftest.$ac_ext
2941            CFLAGS=
2942          ;;
2943        esac
2944    esac
2945  fi
2946  if test -z "$coin_opt_cflags"; then
2947    case $build in
2948      *-cygwin* | *-mingw*)
2949        case "$CC" in
2950          clang* ) ;;
2951          cl* | */cl* | CL* | */CL*)
2952            coin_opt_cflags='-MT -O2'
2953            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2954            coin_dbg_cflags='-MTd'
2955            ;;
2956          icl* | */icl* | ICL* | */ICL*)
2957            coin_opt_cflags='-MT -Ox'
2958            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2959            coin_dbg_cflags='-MTd -debug'
2960            ;;
2961        esac
2962        ;;
2963      *-linux-*)
2964        case "$CC" in
2965          icc* | */icc*)
2966            coin_opt_cflags="-O3 -ip -mp1"
2967            coin_add_cflags=""
2968            coin_dbg_cflags="-g"
2969            # Check if -i_dynamic is necessary (for new glibc library)
2970            CFLAGS=
2971            cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h.  */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h.  */
2977
2978int
2979main ()
2980{
2981int i=0; i++;
2982  ;
2983  return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext conftest$ac_exeext
2987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988  (eval $ac_link) 2>conftest.er1
2989  ac_status=$?
2990  grep -v '^ *+' conftest.er1 >conftest.err
2991  rm -f conftest.er1
2992  cat conftest.err >&5
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); } &&
2995         { ac_try='test -z "$ac_c_werror_flag"
2996                         || test ! -s conftest.err'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; } &&
3002         { ac_try='test -s conftest$ac_exeext'
3003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004  (eval $ac_try) 2>&5
3005  ac_status=$?
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); }; }; then
3008  :
3009else
3010  echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013coin_add_cflags="-i_dynamic $coin_add_cflags"
3014fi
3015rm -f conftest.err conftest.$ac_objext \
3016      conftest$ac_exeext conftest.$ac_ext
3017            ;;
3018          pgcc* | */pgcc*)
3019            coin_opt_cflags="-fast"
3020            coin_add_cflags="-Kieee -pc 64"
3021            coin_dbg_cflags="-g"
3022            ;;
3023        esac
3024        ;;
3025      *-ibm-*)
3026        case "$CC" in
3027          xlc* | */xlc* | mpxlc* | */mpxlc*)
3028            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3029            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3030            coin_dbg_cflags="-g"
3031          ;;
3032        esac
3033        ;;
3034      *-hp-*)
3035        coin_opt_cflags="-O"
3036        coin_add_cflags="-Ae"
3037        coin_dbg_cflags="-g"
3038        ;;
3039      *-*-solaris*)
3040        coin_opt_cflags="-xO4"
3041        coin_dbg_cflags="-g"
3042        ;;
3043      *-sgi-*)
3044        coin_opt_cflags="-O -OPT:Olimit=0"
3045        coin_dbg_cflags="-g"
3046        ;;
3047    esac
3048  fi
3049
3050  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3051    coin_dbg_cflags="-g"
3052  fi
3053
3054  if test -z "$coin_opt_cflags"; then
3055    # Try if -O option works if nothing else is set
3056    CFLAGS="-O"
3057    cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h.  */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h.  */
3063
3064int
3065main ()
3066{
3067int i=0; i++;
3068  ;
3069  return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext conftest$ac_exeext
3073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3074  (eval $ac_link) 2>conftest.er1
3075  ac_status=$?
3076  grep -v '^ *+' conftest.er1 >conftest.err
3077  rm -f conftest.er1
3078  cat conftest.err >&5
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); } &&
3081         { ac_try='test -z "$ac_c_werror_flag"
3082                         || test ! -s conftest.err'
3083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084  (eval $ac_try) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }; } &&
3088         { ac_try='test -s conftest$ac_exeext'
3089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090  (eval $ac_try) 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }; }; then
3094  coin_opt_cflags="-O"
3095else
3096  echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099fi
3100rm -f conftest.err conftest.$ac_objext \
3101      conftest$ac_exeext conftest.$ac_ext
3102  fi
3103
3104  # if PM doesn't want the warning messages, take them out
3105  if test x"$coin_skip_warn_cflags" = xyes; then
3106    coin_warn_cflags=
3107  fi
3108
3109  if test x${DBG_CFLAGS+set} != xset; then
3110    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3111  fi
3112  if test x${OPT_CFLAGS+set} != xset; then
3113    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3114  fi
3115
3116  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3117  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3118
3119  if test "$coin_debug_compile" = "true"; then
3120    CFLAGS="$DBG_CFLAGS"
3121  else
3122    CFLAGS="$OPT_CFLAGS"
3123  fi
3124else
3125  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3126  if test x${DBG_CFLAGS+set} != xset; then
3127    DBG_CFLAGS="$CFLAGS"
3128  fi
3129  if test x${OPT_CFLAGS+set} != xset; then
3130    OPT_CFLAGS="$CFLAGS"
3131  fi
3132fi
3133
3134# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3135
3136case "$CFLAGS" in
3137  *-mno-cygwin*)
3138    if test x${CPPFLAGS+set} != xset ; then
3139      CPPFLAGS="-mno-cygwin"
3140    else
3141      case "$CPPFLAGS" in
3142        *-mno-cygwin*)
3143          ;;
3144        *)
3145          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3146          ;;
3147      esac
3148    fi ;;
3149esac
3150
3151# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3152if test x$COIN_PRJCT != x; then
3153  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3154fi
3155
3156# Try if CFLAGS works
3157save_CFLAGS="$CFLAGS"
3158cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164
3165int
3166main ()
3167{
3168int i=0; i++;
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext conftest$ac_exeext
3174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175  (eval $ac_link) 2>conftest.er1
3176  ac_status=$?
3177  grep -v '^ *+' conftest.er1 >conftest.err
3178  rm -f conftest.er1
3179  cat conftest.err >&5
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); } &&
3182         { ac_try='test -z "$ac_c_werror_flag"
3183                         || test ! -s conftest.err'
3184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185  (eval $ac_try) 2>&5
3186  ac_status=$?
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }; } &&
3189         { ac_try='test -s conftest$ac_exeext'
3190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191  (eval $ac_try) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }; }; then
3195  :
3196else
3197  echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200CFLAGS=
3201fi
3202rm -f conftest.err conftest.$ac_objext \
3203      conftest$ac_exeext conftest.$ac_ext
3204if test -z "$CFLAGS"; then
3205  { 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
3206echo "$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;}
3207  CFLAGS='-O'
3208  cat >conftest.$ac_ext <<_ACEOF
3209/* confdefs.h.  */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h.  */
3214
3215int
3216main ()
3217{
3218int i=0; i++;
3219  ;
3220  return 0;
3221}
3222_ACEOF
3223rm -f conftest.$ac_objext conftest$ac_exeext
3224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3225  (eval $ac_link) 2>conftest.er1
3226  ac_status=$?
3227  grep -v '^ *+' conftest.er1 >conftest.err
3228  rm -f conftest.er1
3229  cat conftest.err >&5
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); } &&
3232         { ac_try='test -z "$ac_c_werror_flag"
3233                         || test ! -s conftest.err'
3234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235  (eval $ac_try) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; } &&
3239         { ac_try='test -s conftest$ac_exeext'
3240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241  (eval $ac_try) 2>&5
3242  ac_status=$?
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); }; }; then
3245  :
3246else
3247  echo "$as_me: failed program was:" >&5
3248sed 's/^/| /' conftest.$ac_ext >&5
3249
3250CFLAGS=
3251fi
3252rm -f conftest.err conftest.$ac_objext \
3253      conftest$ac_exeext conftest.$ac_ext
3254  if test -z "$CFLAGS"; then
3255    { 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
3256echo "$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;}
3257  fi
3258fi
3259
3260{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3261echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3262
3263
3264if test x"$MPICC" = x; then :; else
3265  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3266echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3267  CC="$MPICC"
3268fi
3269
3270# Correct the LD variable if we are using the MS or Intel-windows compiler
3271case "$CC" in
3272  clang* ) ;;
3273  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3274    case $build in
3275  *-mingw*)
3276    if test "${LD+set}" = set; then :; else
3277      LD=link
3278    fi
3279    ;;
3280 esac
3281 case $enable_doscompile in
3282   msvc)
3283     if test "x${LD+set}" = xset; then :; else
3284       LD=link
3285     fi
3286     ;;
3287 esac
3288
3289    ;;
3290esac
3291
3292ac_ext=c
3293ac_cpp='$CPP $CPPFLAGS'
3294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298
3299
3300 #Let's try if that overcomes configuration problem with VC++ 6.0
3301
3302ac_ext=cc
3303ac_cpp='$CXXCPP $CPPFLAGS'
3304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3307
3308
3309
3310
3311
3312
3313
3314coin_has_cxx=yes
3315
3316save_cxxflags="$CXXFLAGS"
3317# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3318case $build in
3319  *-cygwin* | *-mingw*)
3320             if test "$enable_doscompile" = msvc ; then
3321               comps="icl cl"
3322             else
3323               comps="g++ cl"
3324             fi ;;
3325  *-*-solaris*)
3326             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3327  *-darwin*) comps="g++ c++ CC" ;;
3328  *-linux-gnu*)
3329             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3330          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3331esac
3332
3333# We delete the cached value, since the test might not have been
3334# performed with our choice of compilers earlier
3335$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3336# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3337ac_ext=cc
3338ac_cpp='$CXXCPP $CPPFLAGS'
3339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3342if test -n "$ac_tool_prefix"; then
3343  for ac_prog in $CCC $comps
3344  do
3345    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3347echo "$as_me:$LINENO: checking for $ac_word" >&5
3348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349if test "${ac_cv_prog_CXX+set}" = set; then
3350  echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352  if test -n "$CXX"; then
3353  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360  for ac_exec_ext in '' $ac_executable_extensions; do
3361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367done
3368
3369fi
3370fi
3371CXX=$ac_cv_prog_CXX
3372if test -n "$CXX"; then
3373  echo "$as_me:$LINENO: result: $CXX" >&5
3374echo "${ECHO_T}$CXX" >&6
3375else
3376  echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
3378fi
3379
3380    test -n "$CXX" && break
3381  done
3382fi
3383if test -z "$CXX"; then
3384  ac_ct_CXX=$CXX
3385  for ac_prog in $CCC $comps
3386do
3387  # Extract the first word of "$ac_prog", so it can be a program name with args.
3388set dummy $ac_prog; ac_word=$2
3389echo "$as_me:$LINENO: checking for $ac_word" >&5
3390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  if test -n "$ac_ct_CXX"; then
3395  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3396else
3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH
3399do
3400  IFS=$as_save_IFS
3401  test -z "$as_dir" && as_dir=.
3402  for ac_exec_ext in '' $ac_executable_extensions; do
3403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404    ac_cv_prog_ac_ct_CXX="$ac_prog"
3405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406    break 2
3407  fi
3408done
3409done
3410
3411fi
3412fi
3413ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3414if test -n "$ac_ct_CXX"; then
3415  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3416echo "${ECHO_T}$ac_ct_CXX" >&6
3417else
3418  echo "$as_me:$LINENO: result: no" >&5
3419echo "${ECHO_T}no" >&6
3420fi
3421
3422  test -n "$ac_ct_CXX" && break
3423done
3424test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3425
3426  CXX=$ac_ct_CXX
3427fi
3428
3429
3430# Provide some information about the compiler.
3431echo "$as_me:$LINENO:" \
3432     "checking for C++ compiler version" >&5
3433ac_compiler=`set X $ac_compile; echo $2`
3434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3435  (eval $ac_compiler --version </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{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3445  (eval $ac_compiler -V </dev/null >&5) 2>&5
3446  ac_status=$?
3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448  (exit $ac_status); }
3449
3450echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3451echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3452if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3453  echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455  cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h.  */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h.  */
3461
3462int
3463main ()
3464{
3465#ifndef __GNUC__
3466       choke me
3467#endif
3468
3469  ;
3470  return 0;
3471}
3472_ACEOF
3473rm -f conftest.$ac_objext
3474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3475  (eval $ac_compile) 2>conftest.er1
3476  ac_status=$?
3477  grep -v '^ *+' conftest.er1 >conftest.err
3478  rm -f conftest.er1
3479  cat conftest.err >&5
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); } &&
3482         { ac_try='test -z "$ac_cxx_werror_flag"
3483                         || test ! -s conftest.err'
3484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485  (eval $ac_try) 2>&5
3486  ac_status=$?
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); }; } &&
3489         { ac_try='test -s conftest.$ac_objext'
3490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491  (eval $ac_try) 2>&5
3492  ac_status=$?
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); }; }; then
3495  ac_compiler_gnu=yes
3496else
3497  echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500ac_compiler_gnu=no
3501fi
3502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3503ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3504
3505fi
3506echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3507echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3508GXX=`test $ac_compiler_gnu = yes && echo yes`
3509ac_test_CXXFLAGS=${CXXFLAGS+set}
3510ac_save_CXXFLAGS=$CXXFLAGS
3511CXXFLAGS="-g"
3512echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3513echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3514if test "${ac_cv_prog_cxx_g+set}" = set; then
3515  echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517  cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h.  */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h.  */
3523
3524int
3525main ()
3526{
3527
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532rm -f conftest.$ac_objext
3533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3534  (eval $ac_compile) 2>conftest.er1
3535  ac_status=$?
3536  grep -v '^ *+' conftest.er1 >conftest.err
3537  rm -f conftest.er1
3538  cat conftest.err >&5
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); } &&
3541         { ac_try='test -z "$ac_cxx_werror_flag"
3542                         || test ! -s conftest.err'
3543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544  (eval $ac_try) 2>&5
3545  ac_status=$?
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); }; } &&
3548         { ac_try='test -s conftest.$ac_objext'
3549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550  (eval $ac_try) 2>&5
3551  ac_status=$?
3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); }; }; then
3554  ac_cv_prog_cxx_g=yes
3555else
3556  echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559ac_cv_prog_cxx_g=no
3560fi
3561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3562fi
3563echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3564echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3565if test "$ac_test_CXXFLAGS" = set; then
3566  CXXFLAGS=$ac_save_CXXFLAGS
3567elif test $ac_cv_prog_cxx_g = yes; then
3568  if test "$GXX" = yes; then
3569    CXXFLAGS="-g -O2"
3570  else
3571    CXXFLAGS="-g"
3572  fi
3573else
3574  if test "$GXX" = yes; then
3575    CXXFLAGS="-O2"
3576  else
3577    CXXFLAGS=
3578  fi
3579fi
3580for ac_declaration in \
3581   '' \
3582   'extern "C" void std::exit (int) throw (); using std::exit;' \
3583   'extern "C" void std::exit (int); using std::exit;' \
3584   'extern "C" void exit (int) throw ();' \
3585   'extern "C" void exit (int);' \
3586   'void exit (int);'
3587do
3588  cat >conftest.$ac_ext <<_ACEOF
3589/* confdefs.h.  */
3590_ACEOF
3591cat confdefs.h >>conftest.$ac_ext
3592cat >>conftest.$ac_ext <<_ACEOF
3593/* end confdefs.h.  */
3594$ac_declaration
3595#include <stdlib.h>
3596int
3597main ()
3598{
3599exit (42);
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606  (eval $ac_compile) 2>conftest.er1
3607  ac_status=$?
3608  grep -v '^ *+' conftest.er1 >conftest.err
3609  rm -f conftest.er1
3610  cat conftest.err >&5
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); } &&
3613         { ac_try='test -z "$ac_cxx_werror_flag"
3614                         || test ! -s conftest.err'
3615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616  (eval $ac_try) 2>&5
3617  ac_status=$?
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); }; } &&
3620         { ac_try='test -s conftest.$ac_objext'
3621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622  (eval $ac_try) 2>&5
3623  ac_status=$?
3624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); }; }; then
3626  :
3627else
3628  echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631continue
3632fi
3633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3634  cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h.  */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h.  */
3640$ac_declaration
3641int
3642main ()
3643{
3644exit (42);
3645  ;
3646  return 0;
3647}
3648_ACEOF
3649rm -f conftest.$ac_objext
3650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651  (eval $ac_compile) 2>conftest.er1
3652  ac_status=$?
3653  grep -v '^ *+' conftest.er1 >conftest.err
3654  rm -f conftest.er1
3655  cat conftest.err >&5
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); } &&
3658         { ac_try='test -z "$ac_cxx_werror_flag"
3659                         || test ! -s conftest.err'
3660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661  (eval $ac_try) 2>&5
3662  ac_status=$?
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); }; } &&
3665         { ac_try='test -s conftest.$ac_objext'
3666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667  (eval $ac_try) 2>&5
3668  ac_status=$?
3669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670  (exit $ac_status); }; }; then
3671  break
3672else
3673  echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676fi
3677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3678done
3679rm -f conftest*
3680if test -n "$ac_declaration"; then
3681  echo '#ifdef __cplusplus' >>confdefs.h
3682  echo $ac_declaration      >>confdefs.h
3683  echo '#endif'             >>confdefs.h
3684fi
3685
3686ac_ext=cc
3687ac_cpp='$CXXCPP $CPPFLAGS'
3688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3691
3692
3693#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3694#thus, we test here whether $CXX is actually working
3695ac_ext=cc
3696ac_cpp='$CXXCPP $CPPFLAGS'
3697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3700
3701echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3702echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3703cat >conftest.$ac_ext <<_ACEOF
3704/* confdefs.h.  */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h.  */
3709
3710int
3711main ()
3712{
3713int i=0;
3714  ;
3715  return 0;
3716}
3717_ACEOF
3718rm -f conftest.$ac_objext
3719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720  (eval $ac_compile) 2>conftest.er1
3721  ac_status=$?
3722  grep -v '^ *+' conftest.er1 >conftest.err
3723  rm -f conftest.er1
3724  cat conftest.err >&5
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); } &&
3727         { ac_try='test -z "$ac_cxx_werror_flag"
3728                         || test ! -s conftest.err'
3729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730  (eval $ac_try) 2>&5
3731  ac_status=$?
3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733  (exit $ac_status); }; } &&
3734         { ac_try='test -s conftest.$ac_objext'
3735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736  (eval $ac_try) 2>&5
3737  ac_status=$?
3738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739  (exit $ac_status); }; }; then
3740  echo "$as_me:$LINENO: result: yes" >&5
3741echo "${ECHO_T}yes" >&6
3742else
3743  echo "$as_me: failed program was:" >&5
3744sed 's/^/| /' conftest.$ac_ext >&5
3745
3746echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
3748   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3749echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3750   { (exit 1); exit 1; }; }
3751
3752fi
3753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3754ac_ext=cc
3755ac_cpp='$CXXCPP $CPPFLAGS'
3756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759
3760
3761coin_cxx_is_cl=false
3762# It seems that we need to cleanup something here for the Windows
3763case "$CXX" in
3764  clang* ) ;;
3765  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3766    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3767    mv confdefs.hh confdefs.h
3768    coin_cxx_is_cl=true
3769    ;;
3770esac
3771
3772# add automake conditional so we can recognize cl compiler in makefile
3773
3774
3775if test $coin_cxx_is_cl = true; then
3776  COIN_CXX_IS_CL_TRUE=
3777  COIN_CXX_IS_CL_FALSE='#'
3778else
3779  COIN_CXX_IS_CL_TRUE='#'
3780  COIN_CXX_IS_CL_FALSE=
3781fi
3782
3783
3784# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3785case "$CXX" in
3786  clang* ) ;;
3787  cl* | */cl* | CL* | */CL* )
3788    if test "$ac_cv_prog_cxx_g" = yes ; then
3789      ac_cv_prog_cxx_g=no
3790      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3791echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3792    fi ;;
3793esac
3794CXXFLAGS="$save_cxxflags"
3795
3796# Check if a project specific CXXFLAGS variable has been set
3797if test x$COIN_PRJCT != x; then
3798  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3799  if test x$coin_tmp = xset; then
3800    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3801  fi
3802fi
3803
3804if test x"$CXXFLAGS" = x; then
3805
3806# ToDo decide whether we want -DNDEBUG for optimization
3807  coin_add_cxxflags=
3808  coin_opt_cxxflags=
3809  coin_dbg_cxxflags=
3810  coin_warn_cxxflags=
3811
3812  if test "$GXX" = "yes"; then
3813    case "$CXX" in
3814      icpc* | */icpc*)
3815        ;;
3816      *)
3817# ToDo decide about unroll-loops
3818        coin_opt_cxxflags="-O3"
3819        coin_add_cxxflags="-pipe"
3820        coin_dbg_cxxflags="-g -O0"
3821        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3822        case $build in
3823          *-darwin*)
3824            ;;
3825          *)
3826            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3827            ;;
3828        esac
3829
3830        case $enable_doscompile in
3831          mingw)
3832            CXXFLAGS="-mno-cygwin"
3833            cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h.  */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h.  */
3839
3840int
3841main ()
3842{
3843int i=0; i++;
3844  ;
3845  return 0;
3846}
3847_ACEOF
3848rm -f conftest.$ac_objext conftest$ac_exeext
3849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850  (eval $ac_link) 2>conftest.er1
3851  ac_status=$?
3852  grep -v '^ *+' conftest.er1 >conftest.err
3853  rm -f conftest.er1
3854  cat conftest.err >&5
3855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856  (exit $ac_status); } &&
3857         { ac_try='test -z "$ac_cxx_werror_flag"
3858                         || test ! -s conftest.err'
3859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860  (eval $ac_try) 2>&5
3861  ac_status=$?
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); }; } &&
3864         { ac_try='test -s conftest$ac_exeext'
3865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866  (eval $ac_try) 2>&5
3867  ac_status=$?
3868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869  (exit $ac_status); }; }; then
3870  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3871else
3872  echo "$as_me: failed program was:" >&5
3873sed 's/^/| /' conftest.$ac_ext >&5
3874
3875fi
3876rm -f conftest.err conftest.$ac_objext \
3877      conftest$ac_exeext conftest.$ac_ext
3878            CXXFLAGS=
3879          ;;
3880        esac
3881    esac
3882  fi
3883
3884# Note that we do not need to cover GCC in the following tests.
3885
3886  if test -z "$coin_opt_cxxflags"; then
3887    case $build in
3888      *-cygwin* | *-mingw*)
3889        case "$CXX" in
3890          clang* ) ;;
3891          cl* | */cl* | CL* | */CL*)
3892            # The MT and MTd options are mutually exclusive
3893            coin_opt_cxxflags='-MT -O2'
3894            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3895            coin_dbg_cxxflags='-MTd'
3896            ;;
3897          icl* | */icl* | ICL* | */ICL*)
3898            # The MT and MTd options are mutually exclusive
3899            coin_opt_cxxflags='-MT -Ox'
3900            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3901            coin_dbg_cxxflags='-MTd -debug'
3902            ;;
3903        esac
3904        ;;
3905      *-linux-*)
3906        case "$CXX" in
3907          icpc* | */icpc*)
3908            coin_opt_cxxflags="-O3 -ip -mp1"
3909            coin_add_cxxflags=""
3910            coin_dbg_cxxflags="-g"
3911            # Check if -i_dynamic is necessary (for new glibc library)
3912            CXXFLAGS=
3913            cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h.  */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h.  */
3919
3920int
3921main ()
3922{
3923int i=0; i++;
3924  ;
3925  return 0;
3926}
3927_ACEOF
3928rm -f conftest.$ac_objext conftest$ac_exeext
3929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3930  (eval $ac_link) 2>conftest.er1
3931  ac_status=$?
3932  grep -v '^ *+' conftest.er1 >conftest.err
3933  rm -f conftest.er1
3934  cat conftest.err >&5
3935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936  (exit $ac_status); } &&
3937         { ac_try='test -z "$ac_cxx_werror_flag"
3938                         || test ! -s conftest.err'
3939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940  (eval $ac_try) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }; } &&
3944         { ac_try='test -s conftest$ac_exeext'
3945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946  (eval $ac_try) 2>&5
3947  ac_status=$?
3948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949  (exit $ac_status); }; }; then
3950  :
3951else
3952  echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3956fi
3957rm -f conftest.err conftest.$ac_objext \
3958      conftest$ac_exeext conftest.$ac_ext
3959            ;;
3960          pgCC* | */pgCC*)
3961            coin_opt_cxxflags="-fast"
3962            coin_add_cxxflags="-Kieee -pc 64"
3963            coin_dbg_cxxflags="-g"
3964            ;;
3965        esac
3966        ;;
3967      *-ibm-*)
3968        case "$CXX" in
3969          xlC* | */xlC* | mpxlC* | */mpxlC*)
3970            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3971            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3972            coin_dbg_cxxflags="-g"
3973            ;;
3974        esac
3975        ;;
3976      *-hp-*)
3977        case "$CXX" in
3978          aCC* | */aCC* )
3979            coin_opt_cxxflags="-O"
3980            coin_add_cxxflags="-AA"
3981            coin_dbg_cxxflags="-g"
3982            ;;
3983        esac
3984        ;;
3985      *-*-solaris*)
3986          coin_opt_cxxflags="-O4"
3987          coin_dbg_cxxflags="-g"
3988        ;;
3989    esac
3990  fi
3991
3992# Generic flag settings. If these don't work, add a case above.
3993
3994  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3995    coin_dbg_cxxflags="-g"
3996  fi
3997
3998  if test -z "$coin_opt_cxxflags"; then
3999    # Try if -O option works if nothing else is set
4000    CXXFLAGS=-O
4001    cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h.  */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h.  */
4007
4008int
4009main ()
4010{
4011int i=0; i++;
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext conftest$ac_exeext
4017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4018  (eval $ac_link) 2>conftest.er1
4019  ac_status=$?
4020  grep -v '^ *+' conftest.er1 >conftest.err
4021  rm -f conftest.er1
4022  cat conftest.err >&5
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); } &&
4025         { ac_try='test -z "$ac_cxx_werror_flag"
4026                         || test ! -s conftest.err'
4027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028  (eval $ac_try) 2>&5
4029  ac_status=$?
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); }; } &&
4032         { ac_try='test -s conftest$ac_exeext'
4033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034  (eval $ac_try) 2>&5
4035  ac_status=$?
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); }; }; then
4038  coin_opt_cxxflags="-O"
4039else
4040  echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043fi
4044rm -f conftest.err conftest.$ac_objext \
4045      conftest$ac_exeext conftest.$ac_ext
4046  fi
4047
4048  # if PM doesn't want the warning messages, take them out
4049  if test x"$coin_skip_warn_cxxflags" = xyes; then
4050    coin_warn_cxxflags=
4051  fi
4052
4053# Do final setup of flags based on values determined above.
4054
4055  if test x${DBG_CXXFLAGS+set} != xset; then
4056    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4057  fi
4058  if test x${OPT_CXXFLAGS+set} != xset; then
4059    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4060  fi
4061
4062  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4063  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4064
4065  if test "$coin_debug_compile" = "true"; then
4066    CXXFLAGS="$DBG_CXXFLAGS"
4067  else
4068    CXXFLAGS="$OPT_CXXFLAGS"
4069  fi
4070
4071# Handle the case where CXXFLAGS was set externally.
4072else
4073  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4074  if test x${DBG_CXXFLAGS+set} != xset; then
4075    DBG_CXXFLAGS="$CXXFLAGS"
4076  fi
4077  if test x${OPT_CXXFLAGS+set} != xset; then
4078    OPT_CXXFLAGS="$CXXFLAGS"
4079  fi
4080fi
4081
4082# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4083
4084case "$CXXFLAGS" in
4085  *-mno-cygwin*)
4086    if test x${CPPFLAGS+set} != xset ; then
4087      CPPFLAGS="-mno-cygwin"
4088    else
4089      case "$CPPFLAGS" in
4090        *-mno-cygwin*)
4091          ;;
4092        *)
4093          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4094          ;;
4095      esac
4096    fi ;;
4097esac
4098
4099# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4100if test x$COIN_PRJCT != x; then
4101  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4102fi
4103
4104# Try if CXXFLAGS works
4105save_CXXFLAGS="$CXXFLAGS"
4106cat >conftest.$ac_ext <<_ACEOF
4107/* confdefs.h.  */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h.  */
4112
4113int
4114main ()
4115{
4116int i=0; i++;
4117  ;
4118  return 0;
4119}
4120_ACEOF
4121rm -f conftest.$ac_objext conftest$ac_exeext
4122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4123  (eval $ac_link) 2>conftest.er1
4124  ac_status=$?
4125  grep -v '^ *+' conftest.er1 >conftest.err
4126  rm -f conftest.er1
4127  cat conftest.err >&5
4128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129  (exit $ac_status); } &&
4130         { ac_try='test -z "$ac_cxx_werror_flag"
4131                         || test ! -s conftest.err'
4132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133  (eval $ac_try) 2>&5
4134  ac_status=$?
4135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136  (exit $ac_status); }; } &&
4137         { ac_try='test -s conftest$ac_exeext'
4138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139  (eval $ac_try) 2>&5
4140  ac_status=$?
4141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142  (exit $ac_status); }; }; then
4143  :
4144else
4145  echo "$as_me: failed program was:" >&5
4146sed 's/^/| /' conftest.$ac_ext >&5
4147
4148CXXFLAGS=
4149fi
4150rm -f conftest.err conftest.$ac_objext \
4151      conftest$ac_exeext conftest.$ac_ext
4152if test -z "$CXXFLAGS"; then
4153  { 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
4154echo "$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;}
4155  CXXFLAGS='-O'
4156  cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h.  */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h.  */
4162
4163int
4164main ()
4165{
4166int i=0; i++;
4167  ;
4168  return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext conftest$ac_exeext
4172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4173  (eval $ac_link) 2>conftest.er1
4174  ac_status=$?
4175  grep -v '^ *+' conftest.er1 >conftest.err
4176  rm -f conftest.er1
4177  cat conftest.err >&5
4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179  (exit $ac_status); } &&
4180         { ac_try='test -z "$ac_cxx_werror_flag"
4181                         || test ! -s conftest.err'
4182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183  (eval $ac_try) 2>&5
4184  ac_status=$?
4185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186  (exit $ac_status); }; } &&
4187         { ac_try='test -s conftest$ac_exeext'
4188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189  (eval $ac_try) 2>&5
4190  ac_status=$?
4191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192  (exit $ac_status); }; }; then
4193  :
4194else
4195  echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198CXXFLAGS=
4199fi
4200rm -f conftest.err conftest.$ac_objext \
4201      conftest$ac_exeext conftest.$ac_ext
4202  if test -z "$CXXFLAGS"; then
4203    { 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
4204echo "$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;}
4205  fi
4206fi
4207
4208{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4209echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4210
4211
4212if test x"$MPICXX" = x; then :; else
4213  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4214echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4215  CXX="$MPICXX"
4216fi
4217
4218# correct the LD variable in a mingw build with MS or intel compiler
4219case "$CXX" in
4220  clang* ) ;;
4221  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4222    case $build in
4223  *-mingw*)
4224    if test "${LD+set}" = set; then :; else
4225      LD=link
4226    fi
4227    ;;
4228 esac
4229 case $enable_doscompile in
4230   msvc)
4231     if test "x${LD+set}" = xset; then :; else
4232       LD=link
4233     fi
4234     ;;
4235 esac
4236
4237    ;;
4238esac
4239
4240ac_ext=c
4241ac_cpp='$CPP $CPPFLAGS'
4242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245
4246
4247
4248# Initialize automake and libtool
4249{
4250
4251
4252
4253# START
4254
4255# Test if force_shared has been set
4256if test "x" = xforce_shared; then
4257  if test x$enable_shared = xno; then
4258    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4259echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4260   { (exit 1); exit 1; }; }
4261  fi
4262  enable_shared=yes;
4263else
4264  # On Cygwin and AIX, building DLLs doesn't work
4265  case $build in
4266    *-cygwin*)
4267      coin_disable_shared=yes
4268      platform=Cygwin
4269    ;;
4270    *-aix*)
4271      coin_disable_shared=yes
4272      platform=AIX
4273    ;;
4274    *-mingw*)
4275      coin_disable_shared=yes
4276      platform="Msys"
4277#      case "$CXX" in
4278#        cl*)
4279#          coin_disable_shared=yes
4280#          platform="Msys with cl"
4281#      ;;
4282#      esac
4283    ;;
4284  esac
4285fi
4286if test x"$coin_disable_shared" = xyes; then
4287  if test x"$enable_shared" = xyes; then
4288    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4289echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4290  fi
4291  enable_shared=no
4292fi
4293# By default, we only want the shared objects to be compiled
4294# Check whether --enable-static or --disable-static was given.
4295if test "${enable_static+set}" = set; then
4296  enableval="$enable_static"
4297  p=${PACKAGE-default}
4298    case $enableval in
4299    yes) enable_static=yes ;;
4300    no) enable_static=no ;;
4301    *)
4302     enable_static=no
4303      # Look at the argument we got.  We use all the common list separators.
4304      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4305      for pkg in $enableval; do
4306        IFS="$lt_save_ifs"
4307        if test "X$pkg" = "X$p"; then
4308          enable_static=yes
4309        fi
4310      done
4311      IFS="$lt_save_ifs"
4312      ;;
4313    esac
4314else
4315  enable_static=no
4316fi;
4317
4318
4319
4320
4321# Initialize automake
4322echo "$as_me:$LINENO: checking for egrep" >&5
4323echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4324if test "${ac_cv_prog_egrep+set}" = set; then
4325  echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4328    then ac_cv_prog_egrep='grep -E'
4329    else ac_cv_prog_egrep='egrep'
4330    fi
4331fi
4332echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4333echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4334 EGREP=$ac_cv_prog_egrep
4335
4336
4337echo "$as_me:$LINENO: checking whether ln -s works" >&5
4338echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4339LN_S=$as_ln_s
4340if test "$LN_S" = "ln -s"; then
4341  echo "$as_me:$LINENO: result: yes" >&5
4342echo "${ECHO_T}yes" >&6
4343else
4344  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4345echo "${ECHO_T}no, using $LN_S" >&6
4346fi
4347
4348am__api_version="1.9"
4349# Find a good install program.  We prefer a C program (faster),
4350# so one script is as good as another.  But avoid the broken or
4351# incompatible versions:
4352# SysV /etc/install, /usr/sbin/install
4353# SunOS /usr/etc/install
4354# IRIX /sbin/install
4355# AIX /bin/install
4356# AmigaOS /C/install, which installs bootblocks on floppy discs
4357# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4358# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4359# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4360# OS/2's system install, which has a completely different semantic
4361# ./install, which can be erroneously created by make from ./install.sh.
4362echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4363echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4364if test -z "$INSTALL"; then
4365if test "${ac_cv_path_install+set}" = set; then
4366  echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371  IFS=$as_save_IFS
4372  test -z "$as_dir" && as_dir=.
4373  # Account for people who put trailing slashes in PATH elements.
4374case $as_dir/ in
4375  ./ | .// | /cC/* | \
4376  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4377  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4378  /usr/ucb/* ) ;;
4379  *)
4380    # OSF1 and SCO ODT 3.0 have their own names for install.
4381    # Don't use installbsd from OSF since it installs stuff as root
4382    # by default.
4383    for ac_prog in ginstall scoinst install; do
4384      for ac_exec_ext in '' $ac_executable_extensions; do
4385        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4386          if test $ac_prog = install &&
4387            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4388            # AIX install.  It has an incompatible calling convention.
4389            :
4390          elif test $ac_prog = install &&
4391            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4392            # program-specific install script used by HP pwplus--don't use.
4393            :
4394          else
4395            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4396            break 3
4397          fi
4398        fi
4399      done
4400    done
4401    ;;
4402esac
4403done
4404
4405
4406fi
4407  if test "${ac_cv_path_install+set}" = set; then
4408    INSTALL=$ac_cv_path_install
4409  else
4410    # As a last resort, use the slow shell script.  We don't cache a
4411    # path for INSTALL within a source directory, because that will
4412    # break other packages using the cache if that directory is
4413    # removed, or if the path is relative.
4414    INSTALL=$ac_install_sh
4415  fi
4416fi
4417echo "$as_me:$LINENO: result: $INSTALL" >&5
4418echo "${ECHO_T}$INSTALL" >&6
4419
4420# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4421# It thinks the first close brace ends the variable substitution.
4422test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4423
4424test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4425
4426test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4427
4428echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4429echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4430# Just in case
4431sleep 1
4432echo timestamp > conftest.file
4433# Do `set' in a subshell so we don't clobber the current shell's
4434# arguments.  Must try -L first in case configure is actually a
4435# symlink; some systems play weird games with the mod time of symlinks
4436# (eg FreeBSD returns the mod time of the symlink's containing
4437# directory).
4438if (
4439   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4440   if test "$*" = "X"; then
4441      # -L didn't work.
4442      set X `ls -t $srcdir/configure conftest.file`
4443   fi
4444   rm -f conftest.file
4445   if test "$*" != "X $srcdir/configure conftest.file" \
4446      && test "$*" != "X conftest.file $srcdir/configure"; then
4447
4448      # If neither matched, then we have a broken ls.  This can happen
4449      # if, for instance, CONFIG_SHELL is bash and it inherits a
4450      # broken ls alias from the environment.  This has actually
4451      # happened.  Such a system could not be considered "sane".
4452      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4453alias in your environment" >&5
4454echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4455alias in your environment" >&2;}
4456   { (exit 1); exit 1; }; }
4457   fi
4458
4459   test "$2" = conftest.file
4460   )
4461then
4462   # Ok.
4463   :
4464else
4465   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4466Check your system clock" >&5
4467echo "$as_me: error: newly created file is older than distributed files!
4468Check your system clock" >&2;}
4469   { (exit 1); exit 1; }; }
4470fi
4471echo "$as_me:$LINENO: result: yes" >&5
4472echo "${ECHO_T}yes" >&6
4473test "$program_prefix" != NONE &&
4474  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4475# Use a double $ so make ignores it.
4476test "$program_suffix" != NONE &&
4477  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4478# Double any \ or $.  echo might interpret backslashes.
4479# By default was `s,x,x', remove it if useless.
4480cat <<\_ACEOF >conftest.sed
4481s/[\\$]/&&/g;s/;s,x,x,$//
4482_ACEOF
4483program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4484rm conftest.sed
4485
4486# expand $ac_aux_dir to an absolute path
4487am_aux_dir=`cd $ac_aux_dir && pwd`
4488
4489test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4490# Use eval to expand $SHELL
4491if eval "$MISSING --run true"; then
4492  am_missing_run="$MISSING --run "
4493else
4494  am_missing_run=
4495  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4496echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4497fi
4498
4499if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4500  # We used to keeping the `.' as first argument, in order to
4501  # allow $(mkdir_p) to be used without argument.  As in
4502  #   $(mkdir_p) $(somedir)
4503  # where $(somedir) is conditionally defined.  However this is wrong
4504  # for two reasons:
4505  #  1. if the package is installed by a user who cannot write `.'
4506  #     make install will fail,
4507  #  2. the above comment should most certainly read
4508  #     $(mkdir_p) $(DESTDIR)$(somedir)
4509  #     so it does not work when $(somedir) is undefined and
4510  #     $(DESTDIR) is not.
4511  #  To support the latter case, we have to write
4512  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4513  #  so the `.' trick is pointless.
4514  mkdir_p='mkdir -p --'
4515else
4516  # On NextStep and OpenStep, the `mkdir' command does not
4517  # recognize any option.  It will interpret all options as
4518  # directories to create, and then abort because `.' already
4519  # exists.
4520  for d in ./-p ./--version;
4521  do
4522    test -d $d && rmdir $d
4523  done
4524  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4525  if test -f "$ac_aux_dir/mkinstalldirs"; then
4526    mkdir_p='$(mkinstalldirs)'
4527  else
4528    mkdir_p='$(install_sh) -d'
4529  fi
4530fi
4531
4532for ac_prog in gawk mawk nawk awk
4533do
4534  # Extract the first word of "$ac_prog", so it can be a program name with args.
4535set dummy $ac_prog; ac_word=$2
4536echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538if test "${ac_cv_prog_AWK+set}" = set; then
4539  echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541  if test -n "$AWK"; then
4542  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547  IFS=$as_save_IFS
4548  test -z "$as_dir" && as_dir=.
4549  for ac_exec_ext in '' $ac_executable_extensions; do
4550  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551    ac_cv_prog_AWK="$ac_prog"
4552    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553    break 2
4554  fi
4555done
4556done
4557
4558fi
4559fi
4560AWK=$ac_cv_prog_AWK
4561if test -n "$AWK"; then
4562  echo "$as_me:$LINENO: result: $AWK" >&5
4563echo "${ECHO_T}$AWK" >&6
4564else
4565  echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567fi
4568
4569  test -n "$AWK" && break
4570done
4571
4572echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4573echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4574set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4575if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4576  echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578  cat >conftest.make <<\_ACEOF
4579all:
4580        @echo 'ac_maketemp="$(MAKE)"'
4581_ACEOF
4582# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4583eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4584if test -n "$ac_maketemp"; then
4585  eval ac_cv_prog_make_${ac_make}_set=yes
4586else
4587  eval ac_cv_prog_make_${ac_make}_set=no
4588fi
4589rm -f conftest.make
4590fi
4591if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4592  echo "$as_me:$LINENO: result: yes" >&5
4593echo "${ECHO_T}yes" >&6
4594  SET_MAKE=
4595else
4596  echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6
4598  SET_MAKE="MAKE=${MAKE-make}"
4599fi
4600
4601rm -rf .tst 2>/dev/null
4602mkdir .tst 2>/dev/null
4603if test -d .tst; then
4604  am__leading_dot=.
4605else
4606  am__leading_dot=_
4607fi
4608rmdir .tst 2>/dev/null
4609
4610DEPDIR="${am__leading_dot}deps"
4611
4612          ac_config_commands="$ac_config_commands depfiles"
4613
4614
4615am_make=${MAKE-make}
4616cat > confinc << 'END'
4617am__doit:
4618        @echo done
4619.PHONY: am__doit
4620END
4621# If we don't find an include directive, just comment out the code.
4622echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4623echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4624am__include="#"
4625am__quote=
4626_am_result=none
4627# First try GNU make style include.
4628echo "include confinc" > confmf
4629# We grep out `Entering directory' and `Leaving directory'
4630# messages which can occur if `w' ends up in MAKEFLAGS.
4631# In particular we don't look at `^make:' because GNU make might
4632# be invoked under some other name (usually "gmake"), in which
4633# case it prints its new name instead of `make'.
4634if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4635   am__include=include
4636   am__quote=
4637   _am_result=GNU
4638fi
4639# Now try BSD make style include.
4640if test "$am__include" = "#"; then
4641   echo '.include "confinc"' > confmf
4642   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4643      am__include=.include
4644      am__quote="\""
4645      _am_result=BSD
4646   fi
4647fi
4648
4649
4650echo "$as_me:$LINENO: result: $_am_result" >&5
4651echo "${ECHO_T}$_am_result" >&6
4652rm -f confinc confmf
4653
4654# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4655if test "${enable_dependency_tracking+set}" = set; then
4656  enableval="$enable_dependency_tracking"
4657
4658fi;
4659if test "x$enable_dependency_tracking" != xno; then
4660  am_depcomp="$ac_aux_dir/depcomp"
4661  AMDEPBACKSLASH='\'
4662fi
4663
4664
4665if test "x$enable_dependency_tracking" != xno; then
4666  AMDEP_TRUE=
4667  AMDEP_FALSE='#'
4668else
4669  AMDEP_TRUE='#'
4670  AMDEP_FALSE=
4671fi
4672
4673
4674
4675
4676
4677
4678# AC_MSG_NOTICE([Beginning automake initialisation.])
4679# Stuff for automake
4680# test to see if srcdir already configured
4681if test "`cd $srcdir && pwd`" != "`pwd`" &&
4682   test -f $srcdir/config.status; then
4683  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4684echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4685   { (exit 1); exit 1; }; }
4686fi
4687
4688# test whether we have cygpath
4689if test -z "$CYGPATH_W"; then
4690  if (cygpath --version) >/dev/null 2>/dev/null; then
4691    CYGPATH_W='cygpath -w'
4692  else
4693    CYGPATH_W=echo
4694  fi
4695fi
4696
4697
4698# Define the identity of the package.
4699 PACKAGE='clp'
4700 VERSION='1.15'
4701
4702
4703cat >>confdefs.h <<_ACEOF
4704#define PACKAGE "$PACKAGE"
4705_ACEOF
4706
4707
4708cat >>confdefs.h <<_ACEOF
4709#define VERSION "$VERSION"
4710_ACEOF
4711
4712# Some tools Automake needs.
4713
4714ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4715
4716
4717AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4718
4719
4720AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4721
4722
4723AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4724
4725
4726MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4727
4728install_sh=${install_sh-"$am_aux_dir/install-sh"}
4729
4730# Installed binaries are usually stripped using `strip' when the user
4731# run `make install-strip'.  However `strip' might not be the right
4732# tool to use in cross-compilation environments, therefore Automake
4733# will honor the `STRIP' environment variable to overrule this program.
4734if test "$cross_compiling" != no; then
4735  if test -n "$ac_tool_prefix"; then
4736  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4737set dummy ${ac_tool_prefix}strip; ac_word=$2
4738echo "$as_me:$LINENO: checking for $ac_word" >&5
4739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4740if test "${ac_cv_prog_STRIP+set}" = set; then
4741  echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743  if test -n "$STRIP"; then
4744  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  test -z "$as_dir" && as_dir=.
4751  for ac_exec_ext in '' $ac_executable_extensions; do
4752  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755    break 2
4756  fi
4757done
4758done
4759
4760fi
4761fi
4762STRIP=$ac_cv_prog_STRIP
4763if test -n "$STRIP"; then
4764  echo "$as_me:$LINENO: result: $STRIP" >&5
4765echo "${ECHO_T}$STRIP" >&6
4766else
4767  echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6
4769fi
4770
4771fi
4772if test -z "$ac_cv_prog_STRIP"; then
4773  ac_ct_STRIP=$STRIP
4774  # Extract the first word of "strip", so it can be a program name with args.
4775set dummy strip; ac_word=$2
4776echo "$as_me:$LINENO: checking for $ac_word" >&5
4777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4779  echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781  if test -n "$ac_ct_STRIP"; then
4782  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4783else
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787  IFS=$as_save_IFS
4788  test -z "$as_dir" && as_dir=.
4789  for ac_exec_ext in '' $ac_executable_extensions; do
4790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791    ac_cv_prog_ac_ct_STRIP="strip"
4792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793    break 2
4794  fi
4795done
4796done
4797
4798  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4799fi
4800fi
4801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4802if test -n "$ac_ct_STRIP"; then
4803  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4804echo "${ECHO_T}$ac_ct_STRIP" >&6
4805else
4806  echo "$as_me:$LINENO: result: no" >&5
4807echo "${ECHO_T}no" >&6
4808fi
4809
4810  STRIP=$ac_ct_STRIP
4811else
4812  STRIP="$ac_cv_prog_STRIP"
4813fi
4814
4815fi
4816INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4817
4818# We need awk for the "check" target.  The system "awk" is bad on
4819# some platforms.
4820# Always define AMTAR for backward compatibility.
4821
4822AMTAR=${AMTAR-"${am_missing_run}tar"}
4823
4824am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4825
4826
4827
4828
4829depcc="$CC"   am_compiler_list=
4830
4831echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4832echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4833if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4834  echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4837  # We make a subdir and do the tests there.  Otherwise we can end up
4838  # making bogus files that we don't know about and never remove.  For
4839  # instance it was reported that on HP-UX the gcc test will end up
4840  # making a dummy file named `D' -- because `-MD' means `put the output
4841  # in D'.
4842  mkdir conftest.dir
4843  # Copy depcomp to subdir because otherwise we won't find it if we're
4844  # using a relative directory.
4845  cp "$am_depcomp" conftest.dir
4846  cd conftest.dir
4847  # We will build objects and dependencies in a subdirectory because
4848  # it helps to detect inapplicable dependency modes.  For instance
4849  # both Tru64's cc and ICC support -MD to output dependencies as a
4850  # side effect of compilation, but ICC will put the dependencies in
4851  # the current directory while Tru64 will put them in the object
4852  # directory.
4853  mkdir sub
4854
4855  am_cv_CC_dependencies_compiler_type=none
4856  if test "$am_compiler_list" = ""; then
4857     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4858  fi
4859  for depmode in $am_compiler_list; do
4860    # Setup a source with many dependencies, because some compilers
4861    # like to wrap large dependency lists on column 80 (with \), and
4862    # we should not choose a depcomp mode which is confused by this.
4863    #
4864    # We need to recreate these files for each test, as the compiler may
4865    # overwrite some of them when testing with obscure command lines.
4866    # This happens at least with the AIX C compiler.
4867    : > sub/conftest.c
4868    for i in 1 2 3 4 5 6; do
4869      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4870      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4871      # Solaris 8's {/usr,}/bin/sh.
4872      touch sub/conftst$i.h
4873    done
4874    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4875
4876    case $depmode in
4877    nosideeffect)
4878      # after this tag, mechanisms are not by side-effect, so they'll
4879      # only be used when explicitly requested
4880      if test "x$enable_dependency_tracking" = xyes; then
4881        continue
4882      else
4883        break
4884      fi
4885      ;;
4886    none) break ;;
4887    esac
4888    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4889    # mode.  It turns out that the SunPro C++ compiler does not properly
4890    # handle `-M -o', and we need to detect this.
4891    if depmode=$depmode \
4892       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4893       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4894       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4895         >/dev/null 2>conftest.err &&
4896       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4897       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4898       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4899      # icc doesn't choke on unknown options, it will just issue warnings
4900      # or remarks (even with -Werror).  So we grep stderr for any message
4901      # that says an option was ignored or not supported.
4902      # When given -MP, icc 7.0 and 7.1 complain thusly:
4903      #   icc: Command line warning: ignoring option '-M'; no argument required
4904      # The diagnosis changed in icc 8.0:
4905      #   icc: Command line remark: option '-MP' not supported
4906      if (grep 'ignoring option' conftest.err ||
4907          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4908        am_cv_CC_dependencies_compiler_type=$depmode
4909        break
4910      fi
4911    fi
4912  done
4913
4914  cd ..
4915  rm -rf conftest.dir
4916else
4917  am_cv_CC_dependencies_compiler_type=none
4918fi
4919
4920fi
4921echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4922echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4923CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4924
4925
4926
4927if
4928  test "x$enable_dependency_tracking" != xno \
4929  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4930  am__fastdepCC_TRUE=
4931  am__fastdepCC_FALSE='#'
4932else
4933  am__fastdepCC_TRUE='#'
4934  am__fastdepCC_FALSE=
4935fi
4936
4937
4938depcc="$CXX"  am_compiler_list=
4939
4940echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4941echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4942if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4943  echo $ECHO_N "(cached) $ECHO_C" >&6
4944else
4945  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4946  # We make a subdir and do the tests there.  Otherwise we can end up
4947  # making bogus files that we don't know about and never remove.  For
4948  # instance it was reported that on HP-UX the gcc test will end up
4949  # making a dummy file named `D' -- because `-MD' means `put the output
4950  # in D'.
4951  mkdir conftest.dir
4952  # Copy depcomp to subdir because otherwise we won't find it if we're
4953  # using a relative directory.
4954  cp "$am_depcomp" conftest.dir
4955  cd conftest.dir
4956  # We will build objects and dependencies in a subdirectory because
4957  # it helps to detect inapplicable dependency modes.  For instance
4958  # both Tru64's cc and ICC support -MD to output dependencies as a
4959  # side effect of compilation, but ICC will put the dependencies in
4960  # the current directory while Tru64 will put them in the object
4961  # directory.
4962  mkdir sub
4963
4964  am_cv_CXX_dependencies_compiler_type=none
4965  if test "$am_compiler_list" = ""; then
4966     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4967  fi
4968  for depmode in $am_compiler_list; do
4969    # Setup a source with many dependencies, because some compilers
4970    # like to wrap large dependency lists on column 80 (with \), and
4971    # we should not choose a depcomp mode which is confused by this.
4972    #
4973    # We need to recreate these files for each test, as the compiler may
4974    # overwrite some of them when testing with obscure command lines.
4975    # This happens at least with the AIX C compiler.
4976    : > sub/conftest.c
4977    for i in 1 2 3 4 5 6; do
4978      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4979      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4980      # Solaris 8's {/usr,}/bin/sh.
4981      touch sub/conftst$i.h
4982    done
4983    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4984
4985    case $depmode in
4986    nosideeffect)
4987      # after this tag, mechanisms are not by side-effect, so they'll
4988      # only be used when explicitly requested
4989      if test "x$enable_dependency_tracking" = xyes; then
4990        continue
4991      else
4992        break
4993      fi
4994      ;;
4995    none) break ;;
4996    esac
4997    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4998    # mode.  It turns out that the SunPro C++ compiler does not properly
4999    # handle `-M -o', and we need to detect this.
5000    if depmode=$depmode \
5001       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5002       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5003       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5004         >/dev/null 2>conftest.err &&
5005       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5006       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5007       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5008      # icc doesn't choke on unknown options, it will just issue warnings
5009      # or remarks (even with -Werror).  So we grep stderr for any message
5010      # that says an option was ignored or not supported.
5011      # When given -MP, icc 7.0 and 7.1 complain thusly:
5012      #   icc: Command line warning: ignoring option '-M'; no argument required
5013      # The diagnosis changed in icc 8.0:
5014      #   icc: Command line remark: option '-MP' not supported
5015      if (grep 'ignoring option' conftest.err ||
5016          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5017        am_cv_CXX_dependencies_compiler_type=$depmode
5018        break
5019      fi
5020    fi
5021  done
5022
5023  cd ..
5024  rm -rf conftest.dir
5025else
5026  am_cv_CXX_dependencies_compiler_type=none
5027fi
5028
5029fi
5030echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5031echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5032CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5033
5034
5035
5036if
5037  test "x$enable_dependency_tracking" != xno \
5038  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5039  am__fastdepCXX_TRUE=
5040  am__fastdepCXX_FALSE='#'
5041else
5042  am__fastdepCXX_TRUE='#'
5043  am__fastdepCXX_FALSE=
5044fi
5045
5046
5047
5048echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5049echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5050    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5051if test "${enable_maintainer_mode+set}" = set; then
5052  enableval="$enable_maintainer_mode"
5053  USE_MAINTAINER_MODE=$enableval
5054else
5055  USE_MAINTAINER_MODE=no
5056fi;
5057  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5058echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5059
5060
5061if test $USE_MAINTAINER_MODE = yes; then
5062  MAINTAINER_MODE_TRUE=
5063  MAINTAINER_MODE_FALSE='#'
5064else
5065  MAINTAINER_MODE_TRUE='#'
5066  MAINTAINER_MODE_FALSE=
5067fi
5068
5069  MAINT=$MAINTAINER_MODE_TRUE
5070
5071
5072
5073coin_have_externals=no
5074if test "$enable_maintainer_mode" = yes; then
5075
5076  # If maintainer mode is chosen, we make sure that the correct versions
5077  # of the tools are used, and that we know where libtool.m4 is (to
5078  # recreate acinclude.m4)
5079
5080
5081  LIBTOOLM4=
5082  # Normally, $HOME
5083  AUTOTOOLS_DFLT=$HOME
5084
5085  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5086echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5087if test "${ac_cv_use_correct_autotools+set}" = set; then
5088  echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090  ac_cv_use_correct_autotools=check
5091fi
5092echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5093echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5094
5095  if test $ac_cv_use_correct_autotools = check; then
5096    ac_cv_use_correct_autotools=yes
5097    # Check if we have autoconf
5098    # Extract the first word of "autoconf", so it can be a program name with args.
5099set dummy autoconf; ac_word=$2
5100echo "$as_me:$LINENO: checking for $ac_word" >&5
5101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102if test "${ac_cv_prog_have_autoconf+set}" = set; then
5103  echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105  if test -n "$have_autoconf"; then
5106  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5107else
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111  IFS=$as_save_IFS
5112  test -z "$as_dir" && as_dir=.
5113  for ac_exec_ext in '' $ac_executable_extensions; do
5114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115    ac_cv_prog_have_autoconf="yes"
5116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117    break 2
5118  fi
5119done
5120done
5121
5122  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5123fi
5124fi
5125have_autoconf=$ac_cv_prog_have_autoconf
5126if test -n "$have_autoconf"; then
5127  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5128echo "${ECHO_T}$have_autoconf" >&6
5129else
5130  echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6
5132fi
5133
5134    if test $have_autoconf = no; then
5135      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5136echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5137   { (exit 1); exit 1; }; }
5138    fi
5139
5140    # Check whether autoconf is the correct version
5141    correct_version='2.59'
5142    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5143    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5144echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5145    autoconf --version > confauto.out 2>&1
5146    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5147      echo "$as_me:$LINENO: result: yes" >&5
5148echo "${ECHO_T}yes" >&6
5149    else
5150      rm -f confauto.out
5151      echo "$as_me:$LINENO: result: no" >&5
5152echo "${ECHO_T}no" >&6
5153      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5154echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5155   { (exit 1); exit 1; }; }
5156    fi
5157    rm -f confauto.out
5158
5159    # Check if the executable autoconf is picked up from the correct location
5160    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5161echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5162    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5163    autoconf_dir=`cd $autoconf_dir; pwd`
5164    if test x$AUTOTOOLS_DIR = x; then
5165      want_dir=$AUTOTOOLS_DFLT/bin
5166    else
5167      want_dir=$AUTOTOOLS_DIR/bin
5168    fi
5169    if test $autoconf_dir = `cd $want_dir; pwd`; then
5170      echo "$as_me:$LINENO: result: yes" >&5
5171echo "${ECHO_T}yes" >&6
5172    else
5173      rm -f confauto.out
5174      echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
5176      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5177echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5178   { (exit 1); exit 1; }; }
5179    fi
5180
5181    # Check if we have automake
5182    # Extract the first word of "automake", so it can be a program name with args.
5183set dummy automake; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_prog_have_automake+set}" = set; then
5187  echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189  if test -n "$have_automake"; then
5190  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195  IFS=$as_save_IFS
5196  test -z "$as_dir" && as_dir=.
5197  for ac_exec_ext in '' $ac_executable_extensions; do
5198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199    ac_cv_prog_have_automake="yes"
5200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201    break 2
5202  fi
5203done
5204done
5205
5206  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5207fi
5208fi
5209have_automake=$ac_cv_prog_have_automake
5210if test -n "$have_automake"; then
5211  echo "$as_me:$LINENO: result: $have_automake" >&5
5212echo "${ECHO_T}$have_automake" >&6
5213else
5214  echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218    if test $have_automake = no; then
5219      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5220echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5221   { (exit 1); exit 1; }; }
5222    fi
5223
5224    # Check whether automake is the correct version
5225    correct_version='1.9.6'
5226    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5227    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5228echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5229    automake --version > confauto.out 2>&1
5230    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5231      echo "$as_me:$LINENO: result: yes" >&5
5232echo "${ECHO_T}yes" >&6
5233    else
5234      rm -f confauto.out
5235      echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5238echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5239   { (exit 1); exit 1; }; }
5240    fi
5241    rm -f confauto.out
5242
5243    # Check if the executable automake is picked up from the correct location
5244    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5245echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5246    automake_dir=`which automake | sed -e 's=/automake=='`
5247    automake_dir=`cd $automake_dir; pwd`
5248    if test x$AUTOTOOLS_DIR = x; then
5249      want_dir=$AUTOTOOLS_DFLT/bin
5250    else
5251      want_dir=$AUTOTOOLS_DIR/bin
5252    fi
5253    if test $automake_dir = `cd $want_dir; pwd`; then
5254      echo "$as_me:$LINENO: result: yes" >&5
5255echo "${ECHO_T}yes" >&6
5256    else
5257      rm -f confauto.out
5258      echo "$as_me:$LINENO: result: no" >&5
5259echo "${ECHO_T}no" >&6
5260      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5261echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5262   { (exit 1); exit 1; }; }
5263    fi
5264
5265    # Check if this is the correct version of libtool (with escaped dots)
5266    if test x$AUTOTOOLS_DIR = x; then
5267      want_dir=$AUTOTOOLS_DFLT/share
5268    else
5269      want_dir=$AUTOTOOLS_DIR/share
5270    fi
5271    correct_version='1.5.22'
5272    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5273    if test -r $want_dir/libtool/ltmain.sh; then
5274  have_ltmain=yes
5275  :
5276else
5277  have_ltmain=no
5278  :
5279fi
5280
5281    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5282echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5283    if test $have_ltmain = yes; then
5284    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5285        echo "$as_me:$LINENO: result: yes" >&5
5286echo "${ECHO_T}yes" >&6
5287      else
5288        echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
5290        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5291echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5292   { (exit 1); exit 1; }; }
5293      fi
5294    else
5295      echo "$as_me:$LINENO: result: no" >&5
5296echo "${ECHO_T}no" >&6
5297      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5298echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5299   { (exit 1); exit 1; }; }
5300    fi
5301  fi
5302
5303  # Check if we can find the libtool file
5304  if test x$AUTOTOOLS_DIR = x; then
5305    want_dir=$AUTOTOOLS_DFLT/share
5306  else
5307    want_dir=$AUTOTOOLS_DIR/share
5308  fi
5309  if test -r $want_dir/aclocal/libtool.m4; then
5310  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5311  :
5312else
5313  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5314echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5315   { (exit 1); exit 1; }; }
5316  :
5317fi
5318
5319
5320  # Check if we have an Dependencies file
5321  if test -r $srcdir/Dependencies; then
5322    coin_have_externals=yes
5323  fi
5324  # Check if subversion is installed and understands https
5325  # Extract the first word of "svn", so it can be a program name with args.
5326set dummy svn; ac_word=$2
5327echo "$as_me:$LINENO: checking for $ac_word" >&5
5328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329if test "${ac_cv_prog_have_svn+set}" = set; then
5330  echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332  if test -n "$have_svn"; then
5333  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340  for ac_exec_ext in '' $ac_executable_extensions; do
5341  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342    ac_cv_prog_have_svn="yes"
5343    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344    break 2
5345  fi
5346done
5347done
5348
5349  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5350fi
5351fi
5352have_svn=$ac_cv_prog_have_svn
5353if test -n "$have_svn"; then
5354  echo "$as_me:$LINENO: result: $have_svn" >&5
5355echo "${ECHO_T}$have_svn" >&6
5356else
5357  echo "$as_me:$LINENO: result: no" >&5
5358echo "${ECHO_T}no" >&6
5359fi
5360
5361  if test x$have_svn = xyes; then
5362    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5363echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5364if test "${ac_cv_svn_understands_https+set}" = set; then
5365  echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367  svn --version > confauto.out 2>&1
5368                    if $EGREP https confauto.out >/dev/null 2>&1; then
5369                      ac_cv_svn_understands_https=yes
5370                    else
5371                      ac_cv_svn_understands_https=no
5372                      have_svn=no
5373                      ac_cv_prog_have_svn=no
5374                    fi
5375                    rm -f confauto.out
5376fi
5377echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5378echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5379  fi
5380
5381  # Find the location of the BuildTools directory
5382  BUILDTOOLSDIR=
5383  if test -r $srcdir/BuildTools/coin.m4; then
5384    BUILDTOOLSDIR=$srcdir/BuildTools
5385  else
5386    if test -r $srcdir/../BuildTools/coin.m4; then
5387      BUILDTOOLSDIR=$srcdir/../BuildTools
5388    else
5389      if test -r $srcdir/../../BuildTools/coin.m4; then
5390        BUILDTOOLSDIR=$srcdir/../../BuildTools
5391      else
5392        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5393echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5394   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5395      fi
5396    fi
5397  fi
5398
5399
5400  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5401  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5402    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5403  fi
5404
5405  # The following variable is set to the name of the directory where
5406  # the autotool scripts are located
5407
5408  AUX_DIR=$ac_aux_dir
5409fi
5410
5411# helpful variable for the base directory of this package
5412abs_source_dir=`cd $srcdir; pwd`
5413
5414
5415# Stuff for example Makefiles
5416if test x$prefix = xNONE; then
5417  full_prefix=$ac_default_prefix
5418else
5419  full_prefix=$prefix
5420fi
5421full_prefix=`cd $full_prefix ; pwd`
5422
5423abs_lib_dir=$full_prefix/lib
5424
5425abs_include_dir=$full_prefix/include
5426
5427abs_bin_dir=$full_prefix/bin
5428
5429
5430
5431if test $coin_have_externals = yes && test x$have_svn = xyes; then
5432  HAVE_EXTERNALS_TRUE=
5433  HAVE_EXTERNALS_FALSE='#'
5434else
5435  HAVE_EXTERNALS_TRUE='#'
5436  HAVE_EXTERNALS_FALSE=
5437fi
5438
5439
5440# AC_MSG_NOTICE([End automake initialisation.])
5441
5442
5443
5444LIBTOOL=
5445if test -r ../libtool; then
5446  coin_config_dir=..
5447  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5448fi
5449if test "x$LIBTOOL" = x; then
5450  if test -r ../../libtool; then
5451    coin_config_dir=../..
5452    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5453  fi
5454fi
5455
5456if test "x$LIBTOOL" = x; then
5457# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5458  # Stuff for libtool
5459  # Check whether --enable-shared or --disable-shared was given.
5460if test "${enable_shared+set}" = set; then
5461  enableval="$enable_shared"
5462  p=${PACKAGE-default}
5463    case $enableval in
5464    yes) enable_shared=yes ;;
5465    no) enable_shared=no ;;
5466    *)
5467      enable_shared=no
5468      # Look at the argument we got.  We use all the common list separators.
5469      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5470      for pkg in $enableval; do
5471        IFS="$lt_save_ifs"
5472        if test "X$pkg" = "X$p"; then
5473          enable_shared=yes
5474        fi
5475      done
5476      IFS="$lt_save_ifs"
5477      ;;
5478    esac
5479else
5480  enable_shared=yes
5481fi;
5482
5483# Check whether --enable-fast-install or --disable-fast-install was given.
5484if test "${enable_fast_install+set}" = set; then
5485  enableval="$enable_fast_install"
5486  p=${PACKAGE-default}
5487    case $enableval in
5488    yes) enable_fast_install=yes ;;
5489    no) enable_fast_install=no ;;
5490    *)
5491      enable_fast_install=no
5492      # Look at the argument we got.  We use all the common list separators.
5493      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5494      for pkg in $enableval; do
5495        IFS="$lt_save_ifs"
5496        if test "X$pkg" = "X$p"; then
5497          enable_fast_install=yes
5498        fi
5499      done
5500      IFS="$lt_save_ifs"
5501      ;;
5502    esac
5503else
5504  enable_fast_install=yes
5505fi;
5506
5507echo "$as_me:$LINENO: checking host system type" >&5
5508echo $ECHO_N "checking host system type... $ECHO_C" >&6
5509if test "${ac_cv_host+set}" = set; then
5510  echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512  ac_cv_host_alias=$host_alias
5513test -z "$ac_cv_host_alias" &&
5514  ac_cv_host_alias=$ac_cv_build_alias
5515ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5516  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5517echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5518   { (exit 1); exit 1; }; }
5519
5520fi
5521echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5522echo "${ECHO_T}$ac_cv_host" >&6
5523host=$ac_cv_host
5524host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5525host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5526host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5527
5528
5529echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5530echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5531if test "${lt_cv_path_SED+set}" = set; then
5532  echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534  # Loop through the user's path and test for sed and gsed.
5535# Then use that list of sed's as ones to test for truncation.
5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH
5538do
5539  IFS=$as_save_IFS
5540  test -z "$as_dir" && as_dir=.
5541  for lt_ac_prog in sed gsed; do
5542    for ac_exec_ext in '' $ac_executable_extensions; do
5543      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5544        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5545      fi
5546    done
5547  done
5548done
5549lt_ac_max=0
5550lt_ac_count=0
5551# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5552# along with /bin/sed that truncates output.
5553for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5554  test ! -f $lt_ac_sed && continue
5555  cat /dev/null > conftest.in
5556  lt_ac_count=0
5557  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5558  # Check for GNU sed and select it if it is found.
5559  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5560    lt_cv_path_SED=$lt_ac_sed
5561    break
5562  fi
5563  while true; do
5564    cat conftest.in conftest.in >conftest.tmp
5565    mv conftest.tmp conftest.in
5566    cp conftest.in conftest.nl
5567    echo >>conftest.nl
5568    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5569    cmp -s conftest.out conftest.nl || break
5570    # 10000 chars as input seems more than enough
5571    test $lt_ac_count -gt 10 && break
5572    lt_ac_count=`expr $lt_ac_count + 1`
5573    if test $lt_ac_count -gt $lt_ac_max; then
5574      lt_ac_max=$lt_ac_count
5575      lt_cv_path_SED=$lt_ac_sed
5576    fi
5577  done
5578done
5579
5580fi
5581
5582SED=$lt_cv_path_SED
5583echo "$as_me:$LINENO: result: $SED" >&5
5584echo "${ECHO_T}$SED" >&6
5585
5586
5587# Check whether --with-gnu-ld or --without-gnu-ld was given.
5588if test "${with_gnu_ld+set}" = set; then
5589  withval="$with_gnu_ld"
5590  test "$withval" = no || with_gnu_ld=yes
5591else
5592  with_gnu_ld=no
5593fi;
5594ac_prog=ld
5595if test "$GCC" = yes; then
5596  # Check if gcc -print-prog-name=ld gives a path.
5597  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5598echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5599  case $host in
5600  *-*-mingw*)
5601    # gcc leaves a trailing carriage return which upsets mingw
5602    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5603  *)
5604    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5605  esac
5606  case $ac_prog in
5607    # Accept absolute paths.
5608    [\\/]* | ?:[\\/]*)
5609      re_direlt='/[^/][^/]*/\.\./'
5610      # Canonicalize the pathname of ld
5611      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5612      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5613        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5614      done
5615      test -z "$LD" && LD="$ac_prog"
5616      ;;
5617  "")
5618    # If it fails, then pretend we aren't using GCC.
5619    ac_prog=ld
5620    ;;
5621  *)
5622    # If it is relative, then search for the first ld in PATH.
5623    with_gnu_ld=unknown
5624    ;;
5625  esac
5626elif test "$with_gnu_ld" = yes; then
5627  echo "$as_me:$LINENO: checking for GNU ld" >&5
5628echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5629else
5630  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5631echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5632fi
5633if test "${lt_cv_path_LD+set}" = set; then
5634  echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636  if test -z "$LD"; then
5637  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5638  for ac_dir in $PATH; do
5639    IFS="$lt_save_ifs"
5640    test -z "$ac_dir" && ac_dir=.
5641    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5642      lt_cv_path_LD="$ac_dir/$ac_prog"
5643      # Check to see if the program is GNU ld.  I'd rather use --version,
5644      # but apparently some variants of GNU ld only accept -v.
5645      # Break only if it was the GNU/non-GNU ld that we prefer.
5646      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5647      *GNU* | *'with BFD'*)
5648        test "$with_gnu_ld" != no && break
5649        ;;
5650      *)
5651        test "$with_gnu_ld" != yes && break
5652        ;;
5653      esac
5654    fi
5655  done
5656  IFS="$lt_save_ifs"
5657else
5658  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5659fi
5660fi
5661
5662LD="$lt_cv_path_LD"
5663if test -n "$LD"; then
5664  echo "$as_me:$LINENO: result: $LD" >&5
5665echo "${ECHO_T}$LD" >&6
5666else
5667  echo "$as_me:$LINENO: result: no" >&5
5668echo "${ECHO_T}no" >&6
5669fi
5670test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5671echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5672   { (exit 1); exit 1; }; }
5673echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5674echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5675if test "${lt_cv_prog_gnu_ld+set}" = set; then
5676  echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5679case `$LD -v 2>&1 </dev/null` in
5680*GNU* | *'with BFD'*)
5681  lt_cv_prog_gnu_ld=yes
5682  ;;
5683*)
5684  lt_cv_prog_gnu_ld=no
5685  ;;
5686esac
5687fi
5688echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5689echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5690with_gnu_ld=$lt_cv_prog_gnu_ld
5691
5692
5693echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5694echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5695if test "${lt_cv_ld_reload_flag+set}" = set; then
5696  echo $ECHO_N "(cached) $ECHO_C" >&6
5697else
5698  lt_cv_ld_reload_flag='-r'
5699fi
5700echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5701echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5702reload_flag=$lt_cv_ld_reload_flag
5703case $reload_flag in
5704"" | " "*) ;;
5705*) reload_flag=" $reload_flag" ;;
5706esac
5707reload_cmds='$LD$reload_flag -o $output$reload_objs'
5708case $host_os in
5709  darwin*)
5710    if test "$GCC" = yes; then
5711      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5712    else
5713      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5714    fi
5715    ;;
5716esac
5717
5718echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5719echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5720if test "${lt_cv_path_NM+set}" = set; then
5721  echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723  if test -n "$NM"; then
5724  # Let the user override the test.
5725  lt_cv_path_NM="$NM"
5726else
5727  lt_nm_to_check="${ac_tool_prefix}nm"
5728  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5729    lt_nm_to_check="$lt_nm_to_check nm"
5730  fi
5731  for lt_tmp_nm in $lt_nm_to_check; do
5732    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5733    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5734      IFS="$lt_save_ifs"
5735      test -z "$ac_dir" && ac_dir=.
5736      tmp_nm="$ac_dir/$lt_tmp_nm"
5737      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5738        # Check to see if the nm accepts a BSD-compat flag.
5739        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5740        #   nm: unknown option "B" ignored
5741        # Tru64's nm complains that /dev/null is an invalid object file
5742        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5743        */dev/null* | *'Invalid file or object type'*)
5744          lt_cv_path_NM="$tmp_nm -B"
5745          break
5746          ;;
5747        *)
5748          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5749          */dev/null*)
5750            lt_cv_path_NM="$tmp_nm -p"
5751            break
5752            ;;
5753          *)
5754            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5755            continue # so that we can try to find one that supports BSD flags
5756            ;;
5757          esac
5758          ;;
5759        esac
5760      fi
5761    done
5762    IFS="$lt_save_ifs"
5763  done
5764  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5765fi
5766fi
5767echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5768echo "${ECHO_T}$lt_cv_path_NM" >&6
5769NM="$lt_cv_path_NM"
5770
5771echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5772echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5773if test "${lt_cv_deplibs_check_method+set}" = set; then
5774  echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
5776  lt_cv_file_magic_cmd='$MAGIC_CMD'
5777lt_cv_file_magic_test_file=
5778lt_cv_deplibs_check_method='unknown'
5779# Need to set the preceding variable on all platforms that support
5780# interlibrary dependencies.
5781# 'none' -- dependencies not supported.
5782# `unknown' -- same as none, but documents that we really don't know.
5783# 'pass_all' -- all dependencies passed with no checks.
5784# 'test_compile' -- check by making test program.
5785# 'file_magic [[regex]]' -- check by looking for files in library path
5786# which responds to the $file_magic_cmd with a given extended regex.
5787# If you have `file' or equivalent on your system and you're not sure
5788# whether `pass_all' will *always* work, you probably want this one.
5789
5790case $host_os in
5791aix4* | aix5*)
5792  lt_cv_deplibs_check_method=pass_all
5793  ;;
5794
5795beos*)
5796  lt_cv_deplibs_check_method=pass_all
5797  ;;
5798
5799bsdi[45]*)
5800  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5801  lt_cv_file_magic_cmd='/usr/bin/file -L'
5802  lt_cv_file_magic_test_file=/shlib/libc.so
5803  ;;
5804
5805cygwin*)
5806  # func_win32_libid is a shell function defined in ltmain.sh
5807  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5808  lt_cv_file_magic_cmd='func_win32_libid'
5809  ;;
5810
5811mingw* | pw32*)
5812  # Base MSYS/MinGW do not provide the 'file' command needed by
5813  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5814  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5815  lt_cv_file_magic_cmd='$OBJDUMP -f'
5816  ;;
5817
5818darwin* | rhapsody*)
5819  lt_cv_deplibs_check_method=pass_all
5820  ;;
5821
5822freebsd* | kfreebsd*-gnu | dragonfly*)
5823  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5824    case $host_cpu in
5825    i*86 )
5826      # Not sure whether the presence of OpenBSD here was a mistake.
5827      # Let's accept both of them until this is cleared up.
5828      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5829      lt_cv_file_magic_cmd=/usr/bin/file
5830      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5831      ;;
5832    esac
5833  else
5834    lt_cv_deplibs_check_method=pass_all
5835  fi
5836  ;;
5837
5838gnu*)
5839  lt_cv_deplibs_check_method=pass_all
5840  ;;
5841
5842hpux10.20* | hpux11*)
5843  lt_cv_file_magic_cmd=/usr/bin/file
5844  case $host_cpu in
5845  ia64*)
5846    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5847    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5848    ;;
5849  hppa*64*)
5850    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]'
5851    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5852    ;;
5853  *)
5854    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5855    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5856    ;;
5857  esac
5858  ;;
5859
5860interix3*)
5861  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5862  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5863  ;;
5864
5865irix5* | irix6* | nonstopux*)
5866  case $LD in
5867  *-32|*"-32 ") libmagic=32-bit;;
5868  *-n32|*"-n32 ") libmagic=N32;;
5869  *-64|*"-64 ") libmagic=64-bit;;
5870  *) libmagic=never-match;;
5871  esac
5872  lt_cv_deplibs_check_method=pass_all
5873  ;;
5874
5875# This must be Linux ELF.
5876linux*)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879
5880netbsd*)
5881  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5882    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5883  else
5884    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5885  fi
5886  ;;
5887
5888newos6*)
5889  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5890  lt_cv_file_magic_cmd=/usr/bin/file
5891  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5892  ;;
5893
5894nto-qnx*)
5895  lt_cv_deplibs_check_method=unknown
5896  ;;
5897
5898openbsd*)
5899  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5900    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5901  else
5902    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5903  fi
5904  ;;
5905
5906osf3* | osf4* | osf5*)
5907  lt_cv_deplibs_check_method=pass_all
5908  ;;
5909
5910solaris*)
5911  lt_cv_deplibs_check_method=pass_all
5912  ;;
5913
5914sysv4 | sysv4.3*)
5915  case $host_vendor in
5916  motorola)
5917    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]'
5918    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5919    ;;
5920  ncr)
5921    lt_cv_deplibs_check_method=pass_all
5922    ;;
5923  sequent)
5924    lt_cv_file_magic_cmd='/bin/file'
5925    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5926    ;;
5927  sni)
5928    lt_cv_file_magic_cmd='/bin/file'
5929    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5930    lt_cv_file_magic_test_file=/lib/libc.so
5931    ;;
5932  siemens)
5933    lt_cv_deplibs_check_method=pass_all
5934    ;;
5935  pc)
5936    lt_cv_deplibs_check_method=pass_all
5937    ;;
5938  esac
5939  ;;
5940
5941sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5942  lt_cv_deplibs_check_method=pass_all
5943  ;;
5944esac
5945
5946fi
5947echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5948echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5949file_magic_cmd=$lt_cv_file_magic_cmd
5950deplibs_check_method=$lt_cv_deplibs_check_method
5951test -z "$deplibs_check_method" && deplibs_check_method=unknown
5952
5953
5954
5955
5956# If no C compiler was specified, use CC.
5957LTCC=${LTCC-"$CC"}
5958
5959# If no C compiler flags were specified, use CFLAGS.
5960LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5961
5962# Allow CC to be a program name with arguments.
5963compiler=$CC
5964
5965# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5966if test "${enable_libtool_lock+set}" = set; then
5967  enableval="$enable_libtool_lock"
5968
5969fi;
5970test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5971
5972# Some flags need to be propagated to the compiler or linker for good
5973# libtool support.
5974case $host in
5975ia64-*-hpux*)
5976  # Find out which ABI we are using.
5977  echo 'int i;' > conftest.$ac_ext
5978  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979  (eval $ac_compile) 2>&5
5980  ac_status=$?
5981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982  (exit $ac_status); }; then
5983    case `/usr/bin/file conftest.$ac_objext` in
5984    *ELF-32*)
5985      HPUX_IA64_MODE="32"
5986      ;;
5987    *ELF-64*)
5988      HPUX_IA64_MODE="64"
5989      ;;
5990    esac
5991  fi
5992  rm -rf conftest*
5993  ;;
5994*-*-irix6*)
5995  # Find out which ABI we are using.
5996  echo '#line 5996 "configure"' > conftest.$ac_ext
5997  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998  (eval $ac_compile) 2>&5
5999  ac_status=$?
6000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001  (exit $ac_status); }; then
6002   if test "$lt_cv_prog_gnu_ld" = yes; then
6003    case `/usr/bin/file conftest.$ac_objext` in
6004    *32-bit*)
6005      LD="${LD-ld} -melf32bsmip"
6006      ;;
6007    *N32*)
6008      LD="${LD-ld} -melf32bmipn32"
6009      ;;
6010    *64-bit*)
6011      LD="${LD-ld} -melf64bmip"
6012      ;;
6013    esac
6014   else
6015    case `/usr/bin/file conftest.$ac_objext` in
6016    *32-bit*)
6017      LD="${LD-ld} -32"
6018      ;;
6019    *N32*)
6020      LD="${LD-ld} -n32"
6021      ;;
6022    *64-bit*)
6023      LD="${LD-ld} -64"
6024      ;;
6025    esac
6026   fi
6027  fi
6028  rm -rf conftest*
6029  ;;
6030
6031x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6032  # Find out which ABI we are using.
6033  echo 'int i;' > conftest.$ac_ext
6034  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035  (eval $ac_compile) 2>&5
6036  ac_status=$?
6037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038  (exit $ac_status); }; then
6039    case `/usr/bin/file conftest.o` in
6040    *32-bit*)
6041      case $host in
6042        x86_64-*linux*)
6043          LD="${LD-ld} -m elf_i386"
6044          ;;
6045        ppc64-*linux*|powerpc64-*linux*)
6046          LD="${LD-ld} -m elf32ppclinux"
6047          ;;
6048        s390x-*linux*)
6049          LD="${LD-ld} -m elf_s390"
6050          ;;
6051        sparc64-*linux*)
6052          LD="${LD-ld} -m elf32_sparc"
6053          ;;
6054      esac
6055      ;;
6056    *64-bit*)
6057      case $host in
6058        x86_64-*linux*)
6059          LD="${LD-ld} -m elf_x86_64"
6060          ;;
6061        ppc*-*linux*|powerpc*-*linux*)
6062          LD="${LD-ld} -m elf64ppc"
6063          ;;
6064        s390*-*linux*)
6065          LD="${LD-ld} -m elf64_s390"
6066          ;;
6067        sparc*-*linux*)
6068          LD="${LD-ld} -m elf64_sparc"
6069          ;;
6070      esac
6071      ;;
6072    esac
6073  fi
6074  rm -rf conftest*
6075  ;;
6076
6077*-*-sco3.2v5*)
6078  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6079  SAVE_CFLAGS="$CFLAGS"
6080  CFLAGS="$CFLAGS -belf"
6081  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6082echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6083if test "${lt_cv_cc_needs_belf+set}" = set; then
6084  echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086  ac_ext=c
6087ac_cpp='$CPP $CPPFLAGS'
6088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091
6092     cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h.  */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h.  */
6098
6099int
6100main ()
6101{
6102
6103  ;
6104  return 0;
6105}
6106_ACEOF
6107rm -f conftest.$ac_objext conftest$ac_exeext
6108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109  (eval $ac_link) 2>conftest.er1
6110  ac_status=$?
6111  grep -v '^ *+' conftest.er1 >conftest.err
6112  rm -f conftest.er1
6113  cat conftest.err >&5
6114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115  (exit $ac_status); } &&
6116         { ac_try='test -z "$ac_c_werror_flag"
6117                         || test ! -s conftest.err'
6118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119  (eval $ac_try) 2>&5
6120  ac_status=$?
6121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122  (exit $ac_status); }; } &&
6123         { ac_try='test -s conftest$ac_exeext'
6124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125  (eval $ac_try) 2>&5
6126  ac_status=$?
6127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128  (exit $ac_status); }; }; then
6129  lt_cv_cc_needs_belf=yes
6130else
6131  echo "$as_me: failed program was:" >&5
6132sed 's/^/| /' conftest.$ac_ext >&5
6133
6134lt_cv_cc_needs_belf=no
6135fi
6136rm -f conftest.err conftest.$ac_objext \
6137      conftest$ac_exeext conftest.$ac_ext
6138     ac_ext=c
6139ac_cpp='$CPP $CPPFLAGS'
6140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142ac_compiler_gnu=$ac_cv_c_compiler_gnu
6143
6144fi
6145echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6146echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6147  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6148    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6149    CFLAGS="$SAVE_CFLAGS"
6150  fi
6151  ;;
6152sparc*-*solaris*)
6153  # Find out which ABI we are using.
6154  echo 'int i;' > conftest.$ac_ext
6155  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156  (eval $ac_compile) 2>&5
6157  ac_status=$?
6158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159  (exit $ac_status); }; then
6160    case `/usr/bin/file conftest.o` in
6161    *64-bit*)
6162      case $lt_cv_prog_gnu_ld in
6163      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6164      *)    LD="${LD-ld} -64" ;;
6165      esac
6166      ;;
6167    esac
6168  fi
6169  rm -rf conftest*
6170  ;;
6171
6172
6173esac
6174
6175need_locks="$enable_libtool_lock"
6176
6177
6178ac_ext=c
6179ac_cpp='$CPP $CPPFLAGS'
6180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182ac_compiler_gnu=$ac_cv_c_compiler_gnu
6183echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6184echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6185# On Suns, sometimes $CPP names a directory.
6186if test -n "$CPP" && test -d "$CPP"; then
6187  CPP=
6188fi
6189if test -z "$CPP"; then
6190  if test "${ac_cv_prog_CPP+set}" = set; then
6191  echo $ECHO_N "(cached) $ECHO_C" >&6
6192else
6193      # Double quotes because CPP needs to be expanded
6194    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6195    do
6196      ac_preproc_ok=false
6197for ac_c_preproc_warn_flag in '' yes
6198do
6199  # Use a header file that comes with gcc, so configuring glibc
6200  # with a fresh cross-compiler works.
6201  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6202  # <limits.h> exists even on freestanding compilers.
6203  # On the NeXT, cc -E runs the code through the compiler's parser,
6204  # not just through cpp. "Syntax error" is here to catch this case.
6205  cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h.  */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h.  */
6211#ifdef __STDC__
6212# include <limits.h>
6213#else
6214# include <assert.h>
6215#endif
6216                     Syntax error
6217_ACEOF
6218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6219  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6220  ac_status=$?
6221  grep -v '^ *+' conftest.er1 >conftest.err
6222  rm -f conftest.er1
6223  cat conftest.err >&5
6224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225  (exit $ac_status); } >/dev/null; then
6226  if test -s conftest.err; then
6227    ac_cpp_err=$ac_c_preproc_warn_flag
6228    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6229  else
6230    ac_cpp_err=
6231  fi
6232else
6233  ac_cpp_err=yes
6234fi
6235if test -z "$ac_cpp_err"; then
6236  :
6237else
6238  echo "$as_me: failed program was:" >&5
6239sed 's/^/| /' conftest.$ac_ext >&5
6240
6241  # Broken: fails on valid input.
6242continue
6243fi
6244rm -f conftest.err conftest.$ac_ext
6245
6246  # OK, works on sane cases.  Now check whether non-existent headers
6247  # can be detected and how.
6248  cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h.  */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h.  */
6254#include <ac_nonexistent.h>
6255_ACEOF
6256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6257  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6258  ac_status=$?
6259  grep -v '^ *+' conftest.er1 >conftest.err
6260  rm -f conftest.er1
6261  cat conftest.err >&5
6262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263  (exit $ac_status); } >/dev/null; then
6264  if test -s conftest.err; then
6265    ac_cpp_err=$ac_c_preproc_warn_flag
6266    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6267  else
6268    ac_cpp_err=
6269  fi
6270else
6271  ac_cpp_err=yes
6272fi
6273if test -z "$ac_cpp_err"; then
6274  # Broken: success on invalid input.
6275continue
6276else
6277  echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280  # Passes both tests.
6281ac_preproc_ok=:
6282break
6283fi
6284rm -f conftest.err conftest.$ac_ext
6285
6286done
6287# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6288rm -f conftest.err conftest.$ac_ext
6289if $ac_preproc_ok; then
6290  break
6291fi
6292
6293    done
6294    ac_cv_prog_CPP=$CPP
6295
6296fi
6297  CPP=$ac_cv_prog_CPP
6298else
6299  ac_cv_prog_CPP=$CPP
6300fi
6301echo "$as_me:$LINENO: result: $CPP" >&5
6302echo "${ECHO_T}$CPP" >&6
6303ac_preproc_ok=false
6304for ac_c_preproc_warn_flag in '' yes
6305do
6306  # Use a header file that comes with gcc, so configuring glibc
6307  # with a fresh cross-compiler works.
6308  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6309  # <limits.h> exists even on freestanding compilers.
6310  # On the NeXT, cc -E runs the code through the compiler's parser,
6311  # not just through cpp. "Syntax error" is here to catch this case.
6312  cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h.  */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h.  */
6318#ifdef __STDC__
6319# include <limits.h>
6320#else
6321# include <assert.h>
6322#endif
6323                     Syntax error
6324_ACEOF
6325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6326  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6327  ac_status=$?
6328  grep -v '^ *+' conftest.er1 >conftest.err
6329  rm -f conftest.er1
6330  cat conftest.err >&5
6331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332  (exit $ac_status); } >/dev/null; then
6333  if test -s conftest.err; then
6334    ac_cpp_err=$ac_c_preproc_warn_flag
6335    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6336  else
6337    ac_cpp_err=
6338  fi
6339else
6340  ac_cpp_err=yes
6341fi
6342if test -z "$ac_cpp_err"; then
6343  :
6344else
6345  echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348  # Broken: fails on valid input.
6349continue
6350fi
6351rm -f conftest.err conftest.$ac_ext
6352
6353  # OK, works on sane cases.  Now check whether non-existent headers
6354  # can be detected and how.
6355  cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h.  */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h.  */
6361#include <ac_nonexistent.h>
6362_ACEOF
6363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6364  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6365  ac_status=$?
6366  grep -v '^ *+' conftest.er1 >conftest.err
6367  rm -f conftest.er1
6368  cat conftest.err >&5
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); } >/dev/null; then
6371  if test -s conftest.err; then
6372    ac_cpp_err=$ac_c_preproc_warn_flag
6373    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6374  else
6375    ac_cpp_err=
6376  fi
6377else
6378  ac_cpp_err=yes
6379fi
6380if test -z "$ac_cpp_err"; then
6381  # Broken: success on invalid input.
6382continue
6383else
6384  echo "$as_me: failed program was:" >&5
6385sed 's/^/| /' conftest.$ac_ext >&5
6386
6387  # Passes both tests.
6388ac_preproc_ok=:
6389break
6390fi
6391rm -f conftest.err conftest.$ac_ext
6392
6393done
6394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6395rm -f conftest.err conftest.$ac_ext
6396if $ac_preproc_ok; then
6397  :
6398else
6399  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6400See \`config.log' for more details." >&5
6401echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6402See \`config.log' for more details." >&2;}
6403   { (exit 1); exit 1; }; }
6404fi
6405
6406ac_ext=c
6407ac_cpp='$CPP $CPPFLAGS'
6408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410ac_compiler_gnu=$ac_cv_c_compiler_gnu
6411
6412
6413echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6414echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6415if test "${ac_cv_header_stdc+set}" = set; then
6416  echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418  cat >conftest.$ac_ext <<_ACEOF
6419/* confdefs.h.  */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h.  */
6424#include <stdlib.h>
6425#include <stdarg.h>
6426#include <string.h>
6427#include <float.h>
6428
6429int
6430main ()
6431{
6432
6433  ;
6434  return 0;
6435}
6436_ACEOF
6437rm -f conftest.$ac_objext
6438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6439  (eval $ac_compile) 2>conftest.er1
6440  ac_status=$?
6441  grep -v '^ *+' conftest.er1 >conftest.err
6442  rm -f conftest.er1
6443  cat conftest.err >&5
6444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445  (exit $ac_status); } &&
6446         { ac_try='test -z "$ac_c_werror_flag"
6447                         || test ! -s conftest.err'
6448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449  (eval $ac_try) 2>&5
6450  ac_status=$?
6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452  (exit $ac_status); }; } &&
6453         { ac_try='test -s conftest.$ac_objext'
6454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455  (eval $ac_try) 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; }; then
6459  ac_cv_header_stdc=yes
6460else
6461  echo "$as_me: failed program was:" >&5
6462sed 's/^/| /' conftest.$ac_ext >&5
6463
6464ac_cv_header_stdc=no
6465fi
6466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6467
6468if test $ac_cv_header_stdc = yes; then
6469  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6470  cat >conftest.$ac_ext <<_ACEOF
6471/* confdefs.h.  */
6472_ACEOF
6473cat confdefs.h >>conftest.$ac_ext
6474cat >>conftest.$ac_ext <<_ACEOF
6475/* end confdefs.h.  */
6476#include <string.h>
6477
6478_ACEOF
6479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6480  $EGREP "memchr" >/dev/null 2>&1; then
6481  :
6482else
6483  ac_cv_header_stdc=no
6484fi
6485rm -f conftest*
6486
6487fi
6488
6489if test $ac_cv_header_stdc = yes; then
6490  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6491  cat >conftest.$ac_ext <<_ACEOF
6492/* confdefs.h.  */
6493_ACEOF
6494cat confdefs.h >>conftest.$ac_ext
6495cat >>conftest.$ac_ext <<_ACEOF
6496/* end confdefs.h.  */
6497#include <stdlib.h>
6498
6499_ACEOF
6500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6501  $EGREP "free" >/dev/null 2>&1; then
6502  :
6503else
6504  ac_cv_header_stdc=no
6505fi
6506rm -f conftest*
6507
6508fi
6509
6510if test $ac_cv_header_stdc = yes; then
6511  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6512  if test "$cross_compiling" = yes; then
6513  :
6514else
6515  cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h.  */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h.  */
6521#include <ctype.h>
6522#if ((' ' & 0x0FF) == 0x020)
6523# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6524# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6525#else
6526# define ISLOWER(c) \
6527                   (('a' <= (c) && (c) <= 'i') \
6528                     || ('j' <= (c) && (c) <= 'r') \
6529                     || ('s' <= (c) && (c) <= 'z'))
6530# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6531#endif
6532
6533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6534int
6535main ()
6536{
6537  int i;
6538  for (i = 0; i < 256; i++)
6539    if (XOR (islower (i), ISLOWER (i))
6540        || toupper (i) != TOUPPER (i))
6541      exit(2);
6542  exit (0);
6543}
6544_ACEOF
6545rm -f conftest$ac_exeext
6546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547  (eval $ac_link) 2>&5
6548  ac_status=$?
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; }; then
6556  :
6557else
6558  echo "$as_me: program exited with status $ac_status" >&5
6559echo "$as_me: failed program was:" >&5
6560sed 's/^/| /' conftest.$ac_ext >&5
6561
6562( exit $ac_status )
6563ac_cv_header_stdc=no
6564fi
6565rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6566fi
6567fi
6568fi
6569echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6570echo "${ECHO_T}$ac_cv_header_stdc" >&6
6571if test $ac_cv_header_stdc = yes; then
6572
6573cat >>confdefs.h <<\_ACEOF
6574#define STDC_HEADERS 1
6575_ACEOF
6576
6577fi
6578
6579# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6590                  inttypes.h stdint.h unistd.h
6591do
6592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6593echo "$as_me:$LINENO: checking for $ac_header" >&5
6594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6595if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596  echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598  cat >conftest.$ac_ext <<_ACEOF
6599/* confdefs.h.  */
6600_ACEOF
6601cat confdefs.h >>conftest.$ac_ext
6602cat >>conftest.$ac_ext <<_ACEOF
6603/* end confdefs.h.  */
6604$ac_includes_default
6605
6606#include <$ac_header>
6607_ACEOF
6608rm -f conftest.$ac_objext
6609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610  (eval $ac_compile) 2>conftest.er1
6611  ac_status=$?
6612  grep -v '^ *+' conftest.er1 >conftest.err
6613  rm -f conftest.er1
6614  cat conftest.err >&5
6615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616  (exit $ac_status); } &&
6617         { ac_try='test -z "$ac_c_werror_flag"
6618                         || test ! -s conftest.err'
6619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620  (eval $ac_try) 2>&5
6621  ac_status=$?
6622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); }; } &&
6624         { ac_try='test -s conftest.$ac_objext'
6625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626  (eval $ac_try) 2>&5
6627  ac_status=$?
6628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629  (exit $ac_status); }; }; then
6630  eval "$as_ac_Header=yes"
6631else
6632  echo "$as_me: failed program was:" >&5
6633sed 's/^/| /' conftest.$ac_ext >&5
6634
6635eval "$as_ac_Header=no"
6636fi
6637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6638fi
6639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6641if test `eval echo '${'$as_ac_Header'}'` = yes; then
6642  cat >>confdefs.h <<_ACEOF
6643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6644_ACEOF
6645
6646fi
6647
6648done
6649
6650
6651
6652for ac_header in dlfcn.h
6653do
6654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6655if eval "test \"\${$as_ac_Header+set}\" = set"; then
6656  echo "$as_me:$LINENO: checking for $ac_header" >&5
6657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6658if eval "test \"\${$as_ac_Header+set}\" = set"; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660fi
6661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6663else
6664  # Is the header compilable?
6665echo "$as_me:$LINENO: checking $ac_header usability" >&5
6666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6667cat >conftest.$ac_ext <<_ACEOF
6668/* confdefs.h.  */
6669_ACEOF
6670cat confdefs.h >>conftest.$ac_ext
6671cat >>conftest.$ac_ext <<_ACEOF
6672/* end confdefs.h.  */
6673$ac_includes_default
6674#include <$ac_header>
6675_ACEOF
6676rm -f conftest.$ac_objext
6677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678  (eval $ac_compile) 2>conftest.er1
6679  ac_status=$?
6680  grep -v '^ *+' conftest.er1 >conftest.err
6681  rm -f conftest.er1
6682  cat conftest.err >&5
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); } &&
6685         { ac_try='test -z "$ac_c_werror_flag"
6686                         || test ! -s conftest.err'
6687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688  (eval $ac_try) 2>&5
6689  ac_status=$?
6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); }; } &&
6692         { ac_try='test -s conftest.$ac_objext'
6693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694  (eval $ac_try) 2>&5
6695  ac_status=$?
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); }; }; then
6698  ac_header_compiler=yes
6699else
6700  echo "$as_me: failed program was:" >&5
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
6703ac_header_compiler=no
6704fi
6705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6707echo "${ECHO_T}$ac_header_compiler" >&6
6708
6709# Is the header present?
6710echo "$as_me:$LINENO: checking $ac_header presence" >&5
6711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6712cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h.  */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h.  */
6718#include <$ac_header>
6719_ACEOF
6720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722  ac_status=$?
6723  grep -v '^ *+' conftest.er1 >conftest.err
6724  rm -f conftest.er1
6725  cat conftest.err >&5
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); } >/dev/null; then
6728  if test -s conftest.err; then
6729    ac_cpp_err=$ac_c_preproc_warn_flag
6730    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6731  else
6732    ac_cpp_err=
6733  fi
6734else
6735  ac_cpp_err=yes
6736fi
6737if test -z "$ac_cpp_err"; then
6738  ac_header_preproc=yes
6739else
6740  echo "$as_me: failed program was:" >&5
6741sed 's/^/| /' conftest.$ac_ext >&5
6742
6743  ac_header_preproc=no
6744fi
6745rm -f conftest.err conftest.$ac_ext
6746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6747echo "${ECHO_T}$ac_header_preproc" >&6
6748
6749# So?  What about this header?
6750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6751  yes:no: )
6752    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6756    ac_header_preproc=yes
6757    ;;
6758  no:yes:* )
6759    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6761    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6762echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6763    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6765    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6766echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6769    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6771    (
6772      cat <<\_ASBOX
6773## ----------------------------------- ##
6774## Report this to clp@list.coin-or.org ##
6775## ----------------------------------- ##
6776_ASBOX
6777    ) |
6778      sed "s/^/$as_me: WARNING:     /" >&2
6779    ;;
6780esac
6781echo "$as_me:$LINENO: checking for $ac_header" >&5
6782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6783if eval "test \"\${$as_ac_Header+set}\" = set"; then
6784  echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786  eval "$as_ac_Header=\$ac_header_preproc"
6787fi
6788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6790
6791fi
6792if test `eval echo '${'$as_ac_Header'}'` = yes; then
6793  cat >>confdefs.h <<_ACEOF
6794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6795_ACEOF
6796
6797fi
6798
6799done
6800
6801
6802
6803if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6804    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6805    (test "X$CXX" != "Xg++"))) ; then
6806  ac_ext=cc
6807ac_cpp='$CXXCPP $CPPFLAGS'
6808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6811echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6812echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6813if test -z "$CXXCPP"; then
6814  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6815  echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817      # Double quotes because CXXCPP needs to be expanded
6818    for CXXCPP in "$CXX -E" "/lib/cpp"
6819    do
6820      ac_preproc_ok=false
6821for ac_cxx_preproc_warn_flag in '' yes
6822do
6823  # Use a header file that comes with gcc, so configuring glibc
6824  # with a fresh cross-compiler works.
6825  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6826  # <limits.h> exists even on freestanding compilers.
6827  # On the NeXT, cc -E runs the code through the compiler's parser,
6828  # not just through cpp. "Syntax error" is here to catch this case.
6829  cat >conftest.$ac_ext <<_ACEOF
6830/* confdefs.h.  */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h.  */
6835#ifdef __STDC__
6836# include <limits.h>
6837#else
6838# include <assert.h>
6839#endif
6840                     Syntax error
6841_ACEOF
6842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6843  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6844  ac_status=$?
6845  grep -v '^ *+' conftest.er1 >conftest.err
6846  rm -f conftest.er1
6847  cat conftest.err >&5
6848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849  (exit $ac_status); } >/dev/null; then
6850  if test -s conftest.err; then
6851    ac_cpp_err=$ac_cxx_preproc_warn_flag
6852    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6853  else
6854    ac_cpp_err=
6855  fi
6856else
6857  ac_cpp_err=yes
6858fi
6859if test -z "$ac_cpp_err"; then
6860  :
6861else
6862  echo "$as_me: failed program was:" >&5
6863sed 's/^/| /' conftest.$ac_ext >&5
6864
6865  # Broken: fails on valid input.
6866continue
6867fi
6868rm -f conftest.err conftest.$ac_ext
6869
6870  # OK, works on sane cases.  Now check whether non-existent headers
6871  # can be detected and how.
6872  cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h.  */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h.  */
6878#include <ac_nonexistent.h>
6879_ACEOF
6880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6881  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6882  ac_status=$?
6883  grep -v '^ *+' conftest.er1 >conftest.err
6884  rm -f conftest.er1
6885  cat conftest.err >&5
6886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887  (exit $ac_status); } >/dev/null; then
6888  if test -s conftest.err; then
6889    ac_cpp_err=$ac_cxx_preproc_warn_flag
6890    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6891  else
6892    ac_cpp_err=
6893  fi
6894else
6895  ac_cpp_err=yes
6896fi
6897if test -z "$ac_cpp_err"; then
6898  # Broken: success on invalid input.
6899continue
6900else
6901  echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
6903
6904  # Passes both tests.
6905ac_preproc_ok=:
6906break
6907fi
6908rm -f conftest.err conftest.$ac_ext
6909
6910done
6911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6912rm -f conftest.err conftest.$ac_ext
6913if $ac_preproc_ok; then
6914  break
6915fi
6916
6917    done
6918    ac_cv_prog_CXXCPP=$CXXCPP
6919
6920fi
6921  CXXCPP=$ac_cv_prog_CXXCPP
6922else
6923  ac_cv_prog_CXXCPP=$CXXCPP
6924fi
6925echo "$as_me:$LINENO: result: $CXXCPP" >&5
6926echo "${ECHO_T}$CXXCPP" >&6
6927ac_preproc_ok=false
6928for ac_cxx_preproc_warn_flag in '' yes
6929do
6930  # Use a header file that comes with gcc, so configuring glibc
6931  # with a fresh cross-compiler works.
6932  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6933  # <limits.h> exists even on freestanding compilers.
6934  # On the NeXT, cc -E runs the code through the compiler's parser,
6935  # not just through cpp. "Syntax error" is here to catch this case.
6936  cat >conftest.$ac_ext <<_ACEOF
6937/* confdefs.h.  */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h.  */
6942#ifdef __STDC__
6943# include <limits.h>
6944#else
6945# include <assert.h>
6946#endif
6947                     Syntax error
6948_ACEOF
6949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6950  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6951  ac_status=$?
6952  grep -v '^ *+' conftest.er1 >conftest.err
6953  rm -f conftest.er1
6954  cat conftest.err >&5
6955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956  (exit $ac_status); } >/dev/null; then
6957  if test -s conftest.err; then
6958    ac_cpp_err=$ac_cxx_preproc_warn_flag
6959    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6960  else
6961    ac_cpp_err=
6962  fi
6963else
6964  ac_cpp_err=yes
6965fi
6966if test -z "$ac_cpp_err"; then
6967  :
6968else
6969  echo "$as_me: failed program was:" >&5
6970sed 's/^/| /' conftest.$ac_ext >&5
6971
6972  # Broken: fails on valid input.
6973continue
6974fi
6975rm -f conftest.err conftest.$ac_ext
6976
6977  # OK, works on sane cases.  Now check whether non-existent headers
6978  # can be detected and how.
6979  cat >conftest.$ac_ext <<_ACEOF
6980/* confdefs.h.  */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h.  */
6985#include <ac_nonexistent.h>
6986_ACEOF
6987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6988  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6989  ac_status=$?
6990  grep -v '^ *+' conftest.er1 >conftest.err
6991  rm -f conftest.er1
6992  cat conftest.err >&5
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); } >/dev/null; then
6995  if test -s conftest.err; then
6996    ac_cpp_err=$ac_cxx_preproc_warn_flag
6997    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6998  else
6999    ac_cpp_err=
7000  fi
7001else
7002  ac_cpp_err=yes
7003fi
7004if test -z "$ac_cpp_err"; then
7005  # Broken: success on invalid input.
7006continue
7007else
7008  echo "$as_me: failed program was:" >&5
7009sed 's/^/| /' conftest.$ac_ext >&5
7010
7011  # Passes both tests.
7012ac_preproc_ok=:
7013break
7014fi
7015rm -f conftest.err conftest.$ac_ext
7016
7017done
7018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7019rm -f conftest.err conftest.$ac_ext
7020if $ac_preproc_ok; then
7021  :
7022else
7023  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7024See \`config.log' for more details." >&5
7025echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7026See \`config.log' for more details." >&2;}
7027   { (exit 1); exit 1; }; }
7028fi
7029
7030ac_ext=cc
7031ac_cpp='$CXXCPP $CPPFLAGS'
7032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7035
7036fi
7037
7038ac_ext=f
7039ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7040ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7041ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7042if test -n "$ac_tool_prefix"; then
7043  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7044  do
7045    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7046set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7047echo "$as_me:$LINENO: checking for $ac_word" >&5
7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7049if test "${ac_cv_prog_F77+set}" = set; then
7050  echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052  if test -n "$F77"; then
7053  ac_cv_prog_F77="$F77" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058  IFS=$as_save_IFS
7059  test -z "$as_dir" && as_dir=.
7060  for ac_exec_ext in '' $ac_executable_extensions; do
7061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064    break 2
7065  fi
7066done
7067done
7068
7069fi
7070fi
7071F77=$ac_cv_prog_F77
7072if test -n "$F77"; then
7073  echo "$as_me:$LINENO: result: $F77" >&5
7074echo "${ECHO_T}$F77" >&6
7075else
7076  echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6
7078fi
7079
7080    test -n "$F77" && break
7081  done
7082fi
7083if test -z "$F77"; then
7084  ac_ct_F77=$F77
7085  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7086do
7087  # Extract the first word of "$ac_prog", so it can be a program name with args.
7088set dummy $ac_prog; ac_word=$2
7089echo "$as_me:$LINENO: checking for $ac_word" >&5
7090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7091if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7092  echo $ECHO_N "(cached) $ECHO_C" >&6
7093else
7094  if test -n "$ac_ct_F77"; then
7095  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100  IFS=$as_save_IFS
7101  test -z "$as_dir" && as_dir=.
7102  for ac_exec_ext in '' $ac_executable_extensions; do
7103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104    ac_cv_prog_ac_ct_F77="$ac_prog"
7105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106    break 2
7107  fi
7108done
7109done
7110
7111fi
7112fi
7113ac_ct_F77=$ac_cv_prog_ac_ct_F77
7114if test -n "$ac_ct_F77"; then
7115  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7116echo "${ECHO_T}$ac_ct_F77" >&6
7117else
7118  echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
7120fi
7121
7122  test -n "$ac_ct_F77" && break
7123done
7124
7125  F77=$ac_ct_F77
7126fi
7127
7128
7129# Provide some information about the compiler.
7130echo "$as_me:7130:" \
7131     "checking for Fortran 77 compiler version" >&5
7132ac_compiler=`set X $ac_compile; echo $2`
7133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7134  (eval $ac_compiler --version </dev/null >&5) 2>&5
7135  ac_status=$?
7136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137  (exit $ac_status); }
7138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7139  (eval $ac_compiler -v </dev/null >&5) 2>&5
7140  ac_status=$?
7141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142  (exit $ac_status); }
7143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7144  (eval $ac_compiler -V </dev/null >&5) 2>&5
7145  ac_status=$?
7146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147  (exit $ac_status); }
7148rm -f a.out
7149
7150# If we don't use `.F' as extension, the preprocessor is not run on the
7151# input file.  (Note that this only needs to work for GNU compilers.)
7152ac_save_ext=$ac_ext
7153ac_ext=F
7154echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7155echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7156if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7157  echo $ECHO_N "(cached) $ECHO_C" >&6
7158else
7159  cat >conftest.$ac_ext <<_ACEOF
7160      program main
7161#ifndef __GNUC__
7162       choke me
7163#endif
7164
7165      end
7166_ACEOF
7167rm -f conftest.$ac_objext
7168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169  (eval $ac_compile) 2>conftest.er1
7170  ac_status=$?
7171  grep -v '^ *+' conftest.er1 >conftest.err
7172  rm -f conftest.er1
7173  cat conftest.err >&5
7174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175  (exit $ac_status); } &&
7176         { ac_try='test -z "$ac_f77_werror_flag"
7177                         || test ! -s conftest.err'
7178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179  (eval $ac_try) 2>&5
7180  ac_status=$?
7181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182  (exit $ac_status); }; } &&
7183         { ac_try='test -s conftest.$ac_objext'
7184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185  (eval $ac_try) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }; }; then
7189  ac_compiler_gnu=yes
7190else
7191  echo "$as_me: failed program was:" >&5
7192sed 's/^/| /' conftest.$ac_ext >&5
7193
7194ac_compiler_gnu=no
7195fi
7196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7198
7199fi
7200echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7201echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7202ac_ext=$ac_save_ext
7203ac_test_FFLAGS=${FFLAGS+set}
7204ac_save_FFLAGS=$FFLAGS
7205FFLAGS=
7206echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7207echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7208if test "${ac_cv_prog_f77_g+set}" = set; then
7209  echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211  FFLAGS=-g
7212cat >conftest.$ac_ext <<_ACEOF
7213      program main
7214
7215      end
7216_ACEOF
7217rm -f conftest.$ac_objext
7218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7219  (eval $ac_compile) 2>conftest.er1
7220  ac_status=$?
7221  grep -v '^ *+' conftest.er1 >conftest.err
7222  rm -f conftest.er1
7223  cat conftest.err >&5
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); } &&
7226         { ac_try='test -z "$ac_f77_werror_flag"
7227                         || test ! -s conftest.err'
7228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229  (eval $ac_try) 2>&5
7230  ac_status=$?
7231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232  (exit $ac_status); }; } &&
7233         { ac_try='test -s conftest.$ac_objext'
7234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235  (eval $ac_try) 2>&5
7236  ac_status=$?
7237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238  (exit $ac_status); }; }; then
7239  ac_cv_prog_f77_g=yes
7240else
7241  echo "$as_me: failed program was:" >&5
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244ac_cv_prog_f77_g=no
7245fi
7246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7247
7248fi
7249echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7250echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7251if test "$ac_test_FFLAGS" = set; then
7252  FFLAGS=$ac_save_FFLAGS
7253elif test $ac_cv_prog_f77_g = yes; then
7254  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7255    FFLAGS="-g -O2"
7256  else
7257    FFLAGS="-g"
7258  fi
7259else
7260  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7261    FFLAGS="-O2"
7262  else
7263    FFLAGS=
7264  fi
7265fi
7266
7267G77=`test $ac_compiler_gnu = yes && echo yes`
7268ac_ext=c
7269ac_cpp='$CPP $CPPFLAGS'
7270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273
7274
7275
7276# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7277
7278# find the maximum length of command line arguments
7279echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7280echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7281if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7282  echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284    i=0
7285  teststring="ABCD"
7286
7287  case $build_os in
7288  msdosdjgpp*)
7289    # On DJGPP, this test can blow up pretty badly due to problems in libc
7290    # (any single argument exceeding 2000 bytes causes a buffer overrun
7291    # during glob expansion).  Even if it were fixed, the result of this
7292    # check would be larger than it should be.
7293    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7294    ;;
7295
7296  gnu*)
7297    # Under GNU Hurd, this test is not required because there is
7298    # no limit to the length of command line arguments.
7299    # Libtool will interpret -1 as no limit whatsoever
7300    lt_cv_sys_max_cmd_len=-1;
7301    ;;
7302
7303  cygwin* | mingw*)
7304    # On Win9x/ME, this test blows up -- it succeeds, but takes
7305    # about 5 minutes as the teststring grows exponentially.
7306    # Worse, since 9x/ME are not pre-emptively multitasking,
7307    # you end up with a "frozen" computer, even though with patience
7308    # the test eventually succeeds (with a max line length of 256k).
7309    # Instead, let's just punt: use the minimum linelength reported by
7310    # all of the supported platforms: 8192 (on NT/2K/XP).
7311    lt_cv_sys_max_cmd_len=8192;
7312    ;;
7313
7314  amigaos*)
7315    # On AmigaOS with pdksh, this test takes hours, literally.
7316    # So we just punt and use a minimum line length of 8192.
7317    lt_cv_sys_max_cmd_len=8192;
7318    ;;
7319
7320  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7321    # This has been around since 386BSD, at least.  Likely further.
7322    if test -x /sbin/sysctl; then
7323      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7324    elif test -x /usr/sbin/sysctl; then
7325      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7326    else
7327      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7328    fi
7329    # And add a safety zone
7330    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7331    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7332    ;;
7333
7334  interix*)
7335    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7336    lt_cv_sys_max_cmd_len=196608
7337    ;;
7338
7339  osf*)
7340    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7341    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7342    # nice to cause kernel panics so lets avoid the loop below.
7343    # First set a reasonable default.
7344    lt_cv_sys_max_cmd_len=16384
7345    #
7346    if test -x /sbin/sysconfig; then
7347      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7348        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7349      esac
7350    fi
7351    ;;
7352  sco3.2v5*)
7353    lt_cv_sys_max_cmd_len=102400
7354    ;;
7355  sysv5* | sco5v6* | sysv4.2uw2*)
7356    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7357    if test -n "$kargmax"; then
7358      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7359    else
7360      lt_cv_sys_max_cmd_len=32768
7361    fi
7362    ;;
7363  *)
7364    # If test is not a shell built-in, we'll probably end up computing a
7365    # maximum length that is only half of the actual maximum length, but
7366    # we can't tell.
7367    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7368    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7369               = "XX$teststring") >/dev/null 2>&1 &&
7370            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7371            lt_cv_sys_max_cmd_len=$new_result &&
7372            test $i != 17 # 1/2 MB should be enough
7373    do
7374      i=`expr $i + 1`
7375      teststring=$teststring$teststring
7376    done
7377    teststring=
7378    # Add a significant safety factor because C++ compilers can tack on massive
7379    # amounts of additional arguments before passing them to the linker.
7380    # It appears as though 1/2 is a usable value.
7381    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7382    ;;
7383  esac
7384
7385fi
7386
7387if test -n $lt_cv_sys_max_cmd_len ; then
7388  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7389echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7390else
7391  echo "$as_me:$LINENO: result: none" >&5
7392echo "${ECHO_T}none" >&6
7393fi
7394
7395
7396
7397
7398# Check for command to grab the raw symbol name followed by C symbol from nm.
7399echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7400echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7401if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7402  echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404
7405# These are sane defaults that work on at least a few old systems.
7406# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7407
7408# Character class describing NM global symbol codes.
7409symcode='[BCDEGRST]'
7410
7411# Regexp to match symbols that can be accessed directly from C.
7412sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7413
7414# Transform an extracted symbol line into a proper C declaration
7415lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7416
7417# Transform an extracted symbol line into symbol name and symbol address
7418lt_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'"
7419
7420# Define system-specific variables.
7421case $host_os in
7422aix*)
7423  symcode='[BCDT]'
7424  ;;
7425cygwin* | mingw* | pw32*)
7426  symcode='[ABCDGISTW]'
7427  ;;
7428hpux*) # Its linker distinguishes data from code symbols
7429  if test "$host_cpu" = ia64; then
7430    symcode='[ABCDEGRST]'
7431  fi
7432  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7433  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'"
7434  ;;
7435linux*)
7436  if test "$host_cpu" = ia64; then
7437    symcode='[ABCDGIRSTW]'
7438    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7439    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'"
7440  fi
7441  ;;
7442irix* | nonstopux*)
7443  symcode='[BCDEGRST]'
7444  ;;
7445osf*)
7446  symcode='[BCDEGQRST]'
7447  ;;
7448solaris*)
7449  symcode='[BDRT]'
7450  ;;
7451sco3.2v5*)
7452  symcode='[DT]'
7453  ;;
7454sysv4.2uw2*)
7455  symcode='[DT]'
7456  ;;
7457sysv5* | sco5v6* | unixware* | OpenUNIX*)
7458  symcode='[ABDT]'
7459  ;;
7460sysv4)
7461  symcode='[DFNSTU]'
7462  ;;
7463esac
7464
7465# Handle CRLF in mingw tool chain
7466opt_cr=
7467case $build_os in
7468mingw*)
7469  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7470  ;;
7471esac
7472
7473# If we're using GNU nm, then use its standard symbol codes.
7474case `$NM -V 2>&1` in
7475*GNU* | *'with BFD'*)
7476  symcode='[ABCDGIRSTW]' ;;
7477esac
7478
7479# Try without a prefix undercore, then with it.
7480for ac_symprfx in "" "_"; do
7481
7482  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7483  symxfrm="\\1 $ac_symprfx\\2 \\2"
7484
7485  # Write the raw and C identifiers.
7486  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7487
7488  # Check to see that the pipe works correctly.
7489  pipe_works=no
7490
7491  rm -f conftest*
7492  cat > conftest.$ac_ext <<EOF
7493#ifdef __cplusplus
7494extern "C" {
7495#endif
7496char nm_test_var;
7497void nm_test_func(){}
7498#ifdef __cplusplus
7499}
7500#endif
7501int main(){nm_test_var='a';nm_test_func();return(0);}
7502EOF
7503
7504  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505  (eval $ac_compile) 2>&5
7506  ac_status=$?
7507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508  (exit $ac_status); }; then
7509    # Now try to grab the symbols.
7510    nlist=conftest.nm
7511    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7512  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7513  ac_status=$?
7514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515  (exit $ac_status); } && test -s "$nlist"; then
7516      # Try sorting and uniquifying the output.
7517      if sort "$nlist" | uniq > "$nlist"T; then
7518        mv -f "$nlist"T "$nlist"
7519      else
7520        rm -f "$nlist"T
7521      fi
7522
7523      # Make sure that we snagged all the symbols we need.
7524      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7525        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7526          cat <<EOF > conftest.$ac_ext
7527#ifdef __cplusplus
7528extern "C" {
7529#endif
7530
7531EOF
7532          # Now generate the symbol file.
7533          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7534
7535          cat <<EOF >> conftest.$ac_ext
7536#if defined (__STDC__) && __STDC__
7537# define lt_ptr_t void *
7538#else
7539# define lt_ptr_t char *
7540# define const
7541#endif
7542
7543/* The mapping between symbol names and symbols. */
7544const struct {
7545  const char *name;
7546  lt_ptr_t address;
7547}
7548lt_preloaded_symbols[] =
7549{
7550EOF
7551          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7552          cat <<\EOF >> conftest.$ac_ext
7553  {0, (lt_ptr_t) 0}
7554};
7555
7556#ifdef __cplusplus
7557}
7558#endif
7559EOF
7560          # Now try linking the two files.
7561          mv conftest.$ac_objext conftstm.$ac_objext
7562          lt_save_LIBS="$LIBS"
7563          lt_save_CFLAGS="$CFLAGS"
7564          LIBS="conftstm.$ac_objext"
7565          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7566          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567  (eval $ac_link) 2>&5
7568  ac_status=$?
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7571            pipe_works=yes
7572          fi
7573          LIBS="$lt_save_LIBS"
7574          CFLAGS="$lt_save_CFLAGS"
7575        else
7576          echo "cannot find nm_test_func in $nlist" >&5
7577        fi
7578      else
7579        echo "cannot find nm_test_var in $nlist" >&5
7580      fi
7581    else
7582      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7583    fi
7584  else
7585    echo "$progname: failed program was:" >&5
7586    cat conftest.$ac_ext >&5
7587  fi
7588  rm -f conftest* conftst*
7589
7590  # Do not use the global_symbol_pipe unless it works.
7591  if test "$pipe_works" = yes; then
7592    break
7593  else
7594    lt_cv_sys_global_symbol_pipe=
7595  fi
7596done
7597
7598fi
7599
7600if test -z "$lt_cv_sys_global_symbol_pipe"; then
7601  lt_cv_sys_global_symbol_to_cdecl=
7602fi
7603if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7604  echo "$as_me:$LINENO: result: failed" >&5
7605echo "${ECHO_T}failed" >&6
7606else
7607  echo "$as_me:$LINENO: result: ok" >&5
7608echo "${ECHO_T}ok" >&6
7609fi
7610
7611echo "$as_me:$LINENO: checking for objdir" >&5
7612echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7613if test "${lt_cv_objdir+set}" = set; then
7614  echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616  rm -f .libs 2>/dev/null
7617mkdir .libs 2>/dev/null
7618if test -d .libs; then
7619  lt_cv_objdir=.libs
7620else
7621  # MS-DOS does not allow filenames that begin with a dot.
7622  lt_cv_objdir=_libs
7623fi
7624rmdir .libs 2>/dev/null
7625fi
7626echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7627echo "${ECHO_T}$lt_cv_objdir" >&6
7628objdir=$lt_cv_objdir
7629
7630
7631
7632
7633
7634case $host_os in
7635aix3*)
7636  # AIX sometimes has problems with the GCC collect2 program.  For some
7637  # reason, if we set the COLLECT_NAMES environment variable, the problems
7638  # vanish in a puff of smoke.
7639  if test "X${COLLECT_NAMES+set}" != Xset; then
7640    COLLECT_NAMES=
7641    export COLLECT_NAMES
7642  fi
7643  ;;
7644esac
7645
7646# Sed substitution that helps us do robust quoting.  It backslashifies
7647# metacharacters that are still active within double-quoted strings.
7648Xsed='sed -e 1s/^X//'
7649sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7650
7651# Same as above, but do not quote variable references.
7652double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7653
7654# Sed substitution to delay expansion of an escaped shell variable in a
7655# double_quote_subst'ed string.
7656delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7657
7658# Sed substitution to avoid accidental globbing in evaled expressions
7659no_glob_subst='s/\*/\\\*/g'
7660
7661# Constants:
7662rm="rm -f"
7663
7664# Global variables:
7665default_ofile=libtool
7666can_build_shared=yes
7667
7668# All known linkers require a `.a' archive for static linking (except MSVC,
7669# which needs '.lib').
7670libext=a
7671ltmain="$ac_aux_dir/ltmain.sh"
7672ofile="$default_ofile"
7673with_gnu_ld="$lt_cv_prog_gnu_ld"
7674
7675if test -n "$ac_tool_prefix"; then
7676  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7677set dummy ${ac_tool_prefix}ar; ac_word=$2
7678echo "$as_me:$LINENO: checking for $ac_word" >&5
7679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7680if test "${ac_cv_prog_AR+set}" = set; then
7681  echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683  if test -n "$AR"; then
7684  ac_cv_prog_AR="$AR" # Let the user override the test.
7685else
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689  IFS=$as_save_IFS
7690  test -z "$as_dir" && as_dir=.
7691  for ac_exec_ext in '' $ac_executable_extensions; do
7692  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693    ac_cv_prog_AR="${ac_tool_prefix}ar"
7694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695    break 2
7696  fi
7697done
7698done
7699
7700fi
7701fi
7702AR=$ac_cv_prog_AR
7703if test -n "$AR"; then
7704  echo "$as_me:$LINENO: result: $AR" >&5
7705echo "${ECHO_T}$AR" >&6
7706else
7707  echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
7709fi
7710
7711fi
7712if test -z "$ac_cv_prog_AR"; then
7713  ac_ct_AR=$AR
7714  # Extract the first word of "ar", so it can be a program name with args.
7715set dummy ar; ac_word=$2
7716echo "$as_me:$LINENO: checking for $ac_word" >&5
7717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7718if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7719  echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721  if test -n "$ac_ct_AR"; then
7722  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7723else
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729  for ac_exec_ext in '' $ac_executable_extensions; do
7730  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731    ac_cv_prog_ac_ct_AR="ar"
7732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736done
7737
7738  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7739fi
7740fi
7741ac_ct_AR=$ac_cv_prog_ac_ct_AR
7742if test -n "$ac_ct_AR"; then
7743  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7744echo "${ECHO_T}$ac_ct_AR" >&6
7745else
7746  echo "$as_me:$LINENO: result: no" >&5
7747echo "${ECHO_T}no" >&6
7748fi
7749
7750  AR=$ac_ct_AR
7751else
7752  AR="$ac_cv_prog_AR"
7753fi
7754
7755if test -n "$ac_tool_prefix"; then
7756  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7757set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7758echo "$as_me:$LINENO: checking for $ac_word" >&5
7759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7760if test "${ac_cv_prog_RANLIB+set}" = set; then
7761  echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763  if test -n "$RANLIB"; then
7764  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7765else
7766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769  IFS=$as_save_IFS
7770  test -z "$as_dir" && as_dir=.
7771  for ac_exec_ext in '' $ac_executable_extensions; do
7772  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775    break 2
7776  fi
7777done
7778done
7779
7780fi
7781fi
7782RANLIB=$ac_cv_prog_RANLIB
7783if test -n "$RANLIB"; then
7784  echo "$as_me:$LINENO: result: $RANLIB" >&5
7785echo "${ECHO_T}$RANLIB" >&6
7786else
7787  echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6
7789fi
7790
7791fi
7792if test -z "$ac_cv_prog_RANLIB"; then
7793  ac_ct_RANLIB=$RANLIB
7794  # Extract the first word of "ranlib", so it can be a program name with args.
7795set dummy ranlib; ac_word=$2
7796echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7799  echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801  if test -n "$ac_ct_RANLIB"; then
7802  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7803else
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807  IFS=$as_save_IFS
7808  test -z "$as_dir" && as_dir=.
7809  for ac_exec_ext in '' $ac_executable_extensions; do
7810  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811    ac_cv_prog_ac_ct_RANLIB="ranlib"
7812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813    break 2
7814  fi
7815done
7816done
7817
7818  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7819fi
7820fi
7821ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7822if test -n "$ac_ct_RANLIB"; then
7823  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7824echo "${ECHO_T}$ac_ct_RANLIB" >&6
7825else
7826  echo "$as_me:$LINENO: result: no" >&5
7827echo "${ECHO_T}no" >&6
7828fi
7829
7830  RANLIB=$ac_ct_RANLIB
7831else
7832  RANLIB="$ac_cv_prog_RANLIB"
7833fi
7834
7835if test -n "$ac_tool_prefix"; then
7836  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7837set dummy ${ac_tool_prefix}strip; ac_word=$2
7838echo "$as_me:$LINENO: checking for $ac_word" >&5
7839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7840if test "${ac_cv_prog_STRIP+set}" = set; then
7841  echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843  if test -n "$STRIP"; then
7844  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7845else
7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849  IFS=$as_save_IFS
7850  test -z "$as_dir" && as_dir=.
7851  for ac_exec_ext in '' $ac_executable_extensions; do
7852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855    break 2
7856  fi
7857done
7858done
7859
7860fi
7861fi
7862STRIP=$ac_cv_prog_STRIP
7863if test -n "$STRIP"; then
7864  echo "$as_me:$LINENO: result: $STRIP" >&5
7865echo "${ECHO_T}$STRIP" >&6
7866else
7867  echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
7869fi
7870
7871fi
7872if test -z "$ac_cv_prog_STRIP"; then
7873  ac_ct_STRIP=$STRIP
7874  # Extract the first word of "strip", so it can be a program name with args.
7875set dummy strip; ac_word=$2
7876echo "$as_me:$LINENO: checking for $ac_word" >&5
7877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7878if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7879  echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881  if test -n "$ac_ct_STRIP"; then
7882  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887  IFS=$as_save_IFS
7888  test -z "$as_dir" && as_dir=.
7889  for ac_exec_ext in '' $ac_executable_extensions; do
7890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891    ac_cv_prog_ac_ct_STRIP="strip"
7892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896done
7897
7898  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7899fi
7900fi
7901ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7902if test -n "$ac_ct_STRIP"; then
7903  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7904echo "${ECHO_T}$ac_ct_STRIP" >&6
7905else
7906  echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908fi
7909
7910  STRIP=$ac_ct_STRIP
7911else
7912  STRIP="$ac_cv_prog_STRIP"
7913fi
7914
7915
7916old_CC="$CC"
7917old_CFLAGS="$CFLAGS"
7918
7919# Set sane defaults for various variables
7920test -z "$AR" && AR=ar
7921test -z "$AR_FLAGS" && AR_FLAGS=cru
7922test -z "$AS" && AS=as
7923test -z "$CC" && CC=cc
7924test -z "$LTCC" && LTCC=$CC
7925test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7926test -z "$DLLTOOL" && DLLTOOL=dlltool
7927test -z "$LD" && LD=ld
7928test -z "$LN_S" && LN_S="ln -s"
7929test -z "$MAGIC_CMD" && MAGIC_CMD=file
7930test -z "$NM" && NM=nm
7931test -z "$SED" && SED=sed
7932test -z "$OBJDUMP" && OBJDUMP=objdump
7933test -z "$RANLIB" && RANLIB=:
7934test -z "$STRIP" && STRIP=:
7935test -z "$ac_objext" && ac_objext=o
7936
7937# Determine commands to create old-style static archives.
7938old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7939old_postinstall_cmds='chmod 644 $oldlib'
7940old_postuninstall_cmds=
7941
7942if test -n "$RANLIB"; then
7943  case $host_os in
7944  openbsd*)
7945    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7946    ;;
7947  *)
7948    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7949    ;;
7950  esac
7951  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7952fi
7953
7954for cc_temp in $compiler""; do
7955  case $cc_temp in
7956    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7957    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7958    \-*) ;;
7959    *) break;;
7960  esac
7961done
7962cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7963
7964
7965# Only perform the check for file, if the check method requires it
7966case $deplibs_check_method in
7967file_magic*)
7968  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7969    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7970echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7971if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7972  echo $ECHO_N "(cached) $ECHO_C" >&6
7973else
7974  case $MAGIC_CMD in
7975[\\/*] |  ?:[\\/]*)
7976  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7977  ;;
7978*)
7979  lt_save_MAGIC_CMD="$MAGIC_CMD"
7980  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7981  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7982  for ac_dir in $ac_dummy; do
7983    IFS="$lt_save_ifs"
7984    test -z "$ac_dir" && ac_dir=.
7985    if test -f $ac_dir/${ac_tool_prefix}file; then
7986      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7987      if test -n "$file_magic_test_file"; then
7988        case $deplibs_check_method in
7989        "file_magic "*)
7990          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7991          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7992          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7993            $EGREP "$file_magic_regex" > /dev/null; then
7994            :
7995          else
7996            cat <<EOF 1>&2
7997
7998*** Warning: the command libtool uses to detect shared libraries,
7999*** $file_magic_cmd, produces output that libtool cannot recognize.
8000*** The result is that libtool may fail to recognize shared libraries
8001*** as such.  This will affect the creation of libtool libraries that
8002*** depend on shared libraries, but programs linked with such libtool
8003*** libraries will work regardless of this problem.  Nevertheless, you
8004*** may want to report the problem to your system manager and/or to
8005*** bug-libtool@gnu.org
8006
8007EOF
8008          fi ;;
8009        esac
8010      fi
8011      break
8012    fi
8013  done
8014  IFS="$lt_save_ifs"
8015  MAGIC_CMD="$lt_save_MAGIC_CMD"
8016  ;;
8017esac
8018fi
8019
8020MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8021if test -n "$MAGIC_CMD"; then
8022  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8023echo "${ECHO_T}$MAGIC_CMD" >&6
8024else
8025  echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6
8027fi
8028
8029if test -z "$lt_cv_path_MAGIC_CMD"; then
8030  if test -n "$ac_tool_prefix"; then
8031    echo "$as_me:$LINENO: checking for file" >&5
8032echo $ECHO_N "checking for file... $ECHO_C" >&6
8033if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8034  echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036  case $MAGIC_CMD in
8037[\\/*] |  ?:[\\/]*)
8038  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8039  ;;
8040*)
8041  lt_save_MAGIC_CMD="$MAGIC_CMD"
8042  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8043  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8044  for ac_dir in $ac_dummy; do
8045    IFS="$lt_save_ifs"
8046    test -z "$ac_dir" && ac_dir=.
8047    if test -f $ac_dir/file; then
8048      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8049      if test -n "$file_magic_test_file"; then
8050        case $deplibs_check_method in
8051        "file_magic "*)
8052          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8053          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8054          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8055            $EGREP "$file_magic_regex" > /dev/null; then
8056            :
8057          else
8058            cat <<EOF 1>&2
8059
8060*** Warning: the command libtool uses to detect shared libraries,
8061*** $file_magic_cmd, produces output that libtool cannot recognize.
8062*** The result is that libtool may fail to recognize shared libraries
8063*** as such.  This will affect the creation of libtool libraries that
8064*** depend on shared libraries, but programs linked with such libtool
8065*** libraries will work regardless of this problem.  Nevertheless, you
8066*** may want to report the problem to your system manager and/or to
8067*** bug-libtool@gnu.org
8068
8069EOF
8070          fi ;;
8071        esac
8072      fi
8073      break
8074    fi
8075  done
8076  IFS="$lt_save_ifs"
8077  MAGIC_CMD="$lt_save_MAGIC_CMD"
8078  ;;
8079esac
8080fi
8081
8082MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8083if test -n "$MAGIC_CMD"; then
8084  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8085echo "${ECHO_T}$MAGIC_CMD" >&6
8086else
8087  echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
8089fi
8090
8091  else
8092    MAGIC_CMD=:
8093  fi
8094fi
8095
8096  fi
8097  ;;
8098esac
8099
8100enable_dlopen=no
8101enable_win32_dll=no
8102
8103# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8104if test "${enable_libtool_lock+set}" = set; then
8105  enableval="$enable_libtool_lock"
8106
8107fi;
8108test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8109
8110
8111# Check whether --with-pic or --without-pic was given.
8112if test "${with_pic+set}" = set; then
8113  withval="$with_pic"
8114  pic_mode="$withval"
8115else
8116  pic_mode=default
8117fi;
8118test -z "$pic_mode" && pic_mode=default
8119
8120# Use C for the default configuration in the libtool script
8121tagname=
8122lt_save_CC="$CC"
8123ac_ext=c
8124ac_cpp='$CPP $CPPFLAGS'
8125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8127ac_compiler_gnu=$ac_cv_c_compiler_gnu
8128
8129
8130# Source file extension for C test sources.
8131ac_ext=c
8132
8133# Object file extension for compiled C test sources.
8134objext=o
8135objext=$objext
8136
8137# Code to be used in simple compile tests
8138lt_simple_compile_test_code="int some_variable = 0;\n"
8139
8140# Code to be used in simple link tests
8141lt_simple_link_test_code='int main(){return(0);}\n'
8142
8143
8144# If no C compiler was specified, use CC.
8145LTCC=${LTCC-"$CC"}
8146
8147# If no C compiler flags were specified, use CFLAGS.
8148LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8149
8150# Allow CC to be a program name with arguments.
8151compiler=$CC
8152
8153
8154# save warnings/boilerplate of simple test code
8155ac_outfile=conftest.$ac_objext
8156printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8157eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8158_lt_compiler_boilerplate=`cat conftest.err`
8159$rm conftest*
8160
8161ac_outfile=conftest.$ac_objext
8162printf "$lt_simple_link_test_code" >conftest.$ac_ext
8163eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8164_lt_linker_boilerplate=`cat conftest.err`
8165$rm conftest*
8166
8167
8168## CAVEAT EMPTOR:
8169## There is no encapsulation within the following macros, do not change
8170## the running order or otherwise move them around unless you know exactly
8171## what you are doing...
8172
8173lt_prog_compiler_no_builtin_flag=
8174
8175if test "$GCC" = yes; then
8176  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8177
8178
8179echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8180echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8181if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8182  echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184  lt_cv_prog_compiler_rtti_exceptions=no
8185  ac_outfile=conftest.$ac_objext
8186   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8187   lt_compiler_flag="-fno-rtti -fno-exceptions"
8188   # Insert the option either (1) after the last *FLAGS variable, or
8189   # (2) before a word containing "conftest.", or (3) at the end.
8190   # Note that $ac_compile itself does not contain backslashes and begins
8191   # with a dollar sign (not a hyphen), so the echo should work correctly.
8192   # The option is referenced via a variable to avoid confusing sed.
8193   lt_compile=`echo "$ac_compile" | $SED \
8194   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196   -e 's:$: $lt_compiler_flag:'`
8197   (eval echo "\"\$as_me:8197: $lt_compile\"" >&5)
8198   (eval "$lt_compile" 2>conftest.err)
8199   ac_status=$?
8200   cat conftest.err >&5
8201   echo "$as_me:8201: \$? = $ac_status" >&5
8202   if (exit $ac_status) && test -s "$ac_outfile"; then
8203     # The compiler can only warn and ignore the option if not recognized
8204     # So say no if there are warnings other than the usual output.
8205     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8206     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208       lt_cv_prog_compiler_rtti_exceptions=yes
8209     fi
8210   fi
8211   $rm conftest*
8212
8213fi
8214echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8215echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8216
8217if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8218    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8219else
8220    :
8221fi
8222
8223fi
8224
8225lt_prog_compiler_wl=
8226lt_prog_compiler_pic=
8227lt_prog_compiler_static=
8228
8229echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8230echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8231
8232  if test "$GCC" = yes; then
8233    lt_prog_compiler_wl='-Wl,'
8234    lt_prog_compiler_static='-static'
8235
8236    case $host_os in
8237      aix*)
8238      # All AIX code is PIC.
8239      if test "$host_cpu" = ia64; then
8240        # AIX 5 now supports IA64 processor
8241        lt_prog_compiler_static='-Bstatic'
8242      fi
8243      ;;
8244
8245    amigaos*)
8246      # FIXME: we need at least 68020 code to build shared libraries, but
8247      # adding the `-m68020' flag to GCC prevents building anything better,
8248      # like `-m68040'.
8249      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8250      ;;
8251
8252    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8253      # PIC is the default for these OSes.
8254      ;;
8255
8256    mingw* | pw32* | os2*)
8257      # This hack is so that the source file can tell whether it is being
8258      # built for inclusion in a dll (and should export symbols for example).
8259      lt_prog_compiler_pic='-DDLL_EXPORT'
8260      ;;
8261
8262    darwin* | rhapsody*)
8263      # PIC is the default on this platform
8264      # Common symbols not allowed in MH_DYLIB files
8265      lt_prog_compiler_pic='-fno-common'
8266      ;;
8267
8268    interix3*)
8269      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8270      # Instead, we relocate shared libraries at runtime.
8271      ;;
8272
8273    msdosdjgpp*)
8274      # Just because we use GCC doesn't mean we suddenly get shared libraries
8275      # on systems that don't support them.
8276      lt_prog_compiler_can_build_shared=no
8277      enable_shared=no
8278      ;;
8279
8280    sysv4*MP*)
8281      if test -d /usr/nec; then
8282        lt_prog_compiler_pic=-Kconform_pic
8283      fi
8284      ;;
8285
8286    hpux*)
8287      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8288      # not for PA HP-UX.
8289      case $host_cpu in
8290      hppa*64*|ia64*)
8291        # +Z the default
8292        ;;
8293      *)
8294        lt_prog_compiler_pic='-fPIC'
8295        ;;
8296      esac
8297      ;;
8298
8299    *)
8300      lt_prog_compiler_pic='-fPIC'
8301      ;;
8302    esac
8303  else
8304    # PORTME Check for flag to pass linker flags through the system compiler.
8305    case $host_os in
8306    aix*)
8307      lt_prog_compiler_wl='-Wl,'
8308      if test "$host_cpu" = ia64; then
8309        # AIX 5 now supports IA64 processor
8310        lt_prog_compiler_static='-Bstatic'
8311      else
8312        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8313      fi
8314      ;;
8315      darwin*)
8316        # PIC is the default on this platform
8317        # Common symbols not allowed in MH_DYLIB files
8318       case $cc_basename in
8319         xlc*)
8320         lt_prog_compiler_pic='-qnocommon'
8321         lt_prog_compiler_wl='-Wl,'
8322         ;;
8323       esac
8324       ;;
8325
8326    mingw* | pw32* | os2*)
8327      # This hack is so that the source file can tell whether it is being
8328      # built for inclusion in a dll (and should export symbols for example).
8329      lt_prog_compiler_pic='-DDLL_EXPORT'
8330      ;;
8331
8332    hpux9* | hpux10* | hpux11*)
8333      lt_prog_compiler_wl='-Wl,'
8334      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8335      # not for PA HP-UX.
8336      case $host_cpu in
8337      hppa*64*|ia64*)
8338        # +Z the default
8339        ;;
8340      *)
8341        lt_prog_compiler_pic='+Z'
8342        ;;
8343      esac
8344      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8345      lt_prog_compiler_static='${wl}-a ${wl}archive'
8346      ;;
8347
8348    irix5* | irix6* | nonstopux*)
8349      lt_prog_compiler_wl='-Wl,'
8350      # PIC (with -KPIC) is the default.
8351      lt_prog_compiler_static='-non_shared'
8352      ;;
8353
8354    newsos6)
8355      lt_prog_compiler_pic='-KPIC'
8356      lt_prog_compiler_static='-Bstatic'
8357      ;;
8358
8359    linux*)
8360      case $cc_basename in
8361      icc* | ecc*)
8362        lt_prog_compiler_wl='-Wl,'
8363        lt_prog_compiler_pic='-KPIC'
8364        lt_prog_compiler_static='-static'
8365        ;;
8366      pgcc* | pgf77* | pgf90* | pgf95*)
8367        # Portland Group compilers (*not* the Pentium gcc compiler,
8368        # which looks to be a dead project)
8369        lt_prog_compiler_wl='-Wl,'
8370        lt_prog_compiler_pic='-fpic'
8371        lt_prog_compiler_static='-Bstatic'
8372        ;;
8373      ccc*)
8374        lt_prog_compiler_wl='-Wl,'
8375        # All Alpha code is PIC.
8376        lt_prog_compiler_static='-non_shared'
8377        ;;
8378      esac
8379      ;;
8380
8381    osf3* | osf4* | osf5*)
8382      lt_prog_compiler_wl='-Wl,'
8383      # All OSF/1 code is PIC.
8384      lt_prog_compiler_static='-non_shared'
8385      ;;
8386
8387    solaris*)
8388      lt_prog_compiler_pic='-KPIC'
8389      lt_prog_compiler_static='-Bstatic'
8390      case $cc_basename in
8391      f77* | f90* | f95*)
8392        lt_prog_compiler_wl='-Qoption ld ';;
8393      *)
8394        lt_prog_compiler_wl='-Wl,';;
8395      esac
8396      ;;
8397
8398    sunos4*)
8399      lt_prog_compiler_wl='-Qoption ld '
8400      lt_prog_compiler_pic='-PIC'
8401      lt_prog_compiler_static='-Bstatic'
8402      ;;
8403
8404    sysv4 | sysv4.2uw2* | sysv4.3*)
8405      lt_prog_compiler_wl='-Wl,'
8406      lt_prog_compiler_pic='-KPIC'
8407      lt_prog_compiler_static='-Bstatic'
8408      ;;
8409
8410    sysv4*MP*)
8411      if test -d /usr/nec ;then
8412        lt_prog_compiler_pic='-Kconform_pic'
8413        lt_prog_compiler_static='-Bstatic'
8414      fi
8415      ;;
8416
8417    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8418      lt_prog_compiler_wl='-Wl,'
8419      lt_prog_compiler_pic='-KPIC'
8420      lt_prog_compiler_static='-Bstatic'
8421      ;;
8422
8423    unicos*)
8424      lt_prog_compiler_wl='-Wl,'
8425      lt_prog_compiler_can_build_shared=no
8426      ;;
8427
8428    uts4*)
8429      lt_prog_compiler_pic='-pic'
8430      lt_prog_compiler_static='-Bstatic'
8431      ;;
8432
8433    *)
8434      lt_prog_compiler_can_build_shared=no
8435      ;;
8436    esac
8437  fi
8438
8439echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8440echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8441
8442#
8443# Check to make sure the PIC flag actually works.
8444#
8445if test -n "$lt_prog_compiler_pic"; then
8446
8447echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8448echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8449if test "${lt_prog_compiler_pic_works+set}" = set; then
8450  echo $ECHO_N "(cached) $ECHO_C" >&6
8451else
8452  lt_prog_compiler_pic_works=no
8453  ac_outfile=conftest.$ac_objext
8454   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8455   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8456   # Insert the option either (1) after the last *FLAGS variable, or
8457   # (2) before a word containing "conftest.", or (3) at the end.
8458   # Note that $ac_compile itself does not contain backslashes and begins
8459   # with a dollar sign (not a hyphen), so the echo should work correctly.
8460   # The option is referenced via a variable to avoid confusing sed.
8461   lt_compile=`echo "$ac_compile" | $SED \
8462   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464   -e 's:$: $lt_compiler_flag:'`
8465   (eval echo "\"\$as_me:8465: $lt_compile\"" >&5)
8466   (eval "$lt_compile" 2>conftest.err)
8467   ac_status=$?
8468   cat conftest.err >&5
8469   echo "$as_me:8469: \$? = $ac_status" >&5
8470   if (exit $ac_status) && test -s "$ac_outfile"; then
8471     # The compiler can only warn and ignore the option if not recognized
8472     # So say no if there are warnings other than the usual output.
8473     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8474     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8475     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8476       lt_prog_compiler_pic_works=yes
8477     fi
8478   fi
8479   $rm conftest*
8480
8481fi
8482echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8483echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8484
8485if test x"$lt_prog_compiler_pic_works" = xyes; then
8486    case $lt_prog_compiler_pic in
8487     "" | " "*) ;;
8488     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8489     esac
8490else
8491    lt_prog_compiler_pic=
8492     lt_prog_compiler_can_build_shared=no
8493fi
8494
8495fi
8496case $host_os in
8497  # For platforms which do not support PIC, -DPIC is meaningless:
8498  *djgpp*)
8499    lt_prog_compiler_pic=
8500    ;;
8501  *)
8502    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8503    ;;
8504esac
8505
8506#
8507# Check to make sure the static flag actually works.
8508#
8509wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8510echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8511echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8512if test "${lt_prog_compiler_static_works+set}" = set; then
8513  echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515  lt_prog_compiler_static_works=no
8516   save_LDFLAGS="$LDFLAGS"
8517   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8518   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8519   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8520     # The linker can only warn and ignore the option if not recognized
8521     # So say no if there are warnings
8522     if test -s conftest.err; then
8523       # Append any errors to the config.log.
8524       cat conftest.err 1>&5
8525       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8526       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8527       if diff conftest.exp conftest.er2 >/dev/null; then
8528         lt_prog_compiler_static_works=yes
8529       fi
8530     else
8531       lt_prog_compiler_static_works=yes
8532     fi
8533   fi
8534   $rm conftest*
8535   LDFLAGS="$save_LDFLAGS"
8536
8537fi
8538echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8539echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8540
8541if test x"$lt_prog_compiler_static_works" = xyes; then
8542    :
8543else
8544    lt_prog_compiler_static=
8545fi
8546
8547
8548echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8549echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8550if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8551  echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553  lt_cv_prog_compiler_c_o=no
8554   $rm -r conftest 2>/dev/null
8555   mkdir conftest
8556   cd conftest
8557   mkdir out
8558   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8559
8560   lt_compiler_flag="-o out/conftest2.$ac_objext"
8561   # Insert the option either (1) after the last *FLAGS variable, or
8562   # (2) before a word containing "conftest.", or (3) at the end.
8563   # Note that $ac_compile itself does not contain backslashes and begins
8564   # with a dollar sign (not a hyphen), so the echo should work correctly.
8565   lt_compile=`echo "$ac_compile" | $SED \
8566   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568   -e 's:$: $lt_compiler_flag:'`
8569   (eval echo "\"\$as_me:8569: $lt_compile\"" >&5)
8570   (eval "$lt_compile" 2>out/conftest.err)
8571   ac_status=$?
8572   cat out/conftest.err >&5
8573   echo "$as_me:8573: \$? = $ac_status" >&5
8574   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8575   then
8576     # The compiler can only warn and ignore the option if not recognized
8577     # So say no if there are warnings
8578     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8579     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8580     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8581       lt_cv_prog_compiler_c_o=yes
8582     fi
8583   fi
8584   chmod u+w . 2>&5
8585   $rm conftest*
8586   # SGI C++ compiler will create directory out/ii_files/ for
8587   # template instantiation
8588   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8589   $rm out/* && rmdir out
8590   cd ..
8591   rmdir conftest
8592   $rm conftest*
8593
8594fi
8595echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8596echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8597
8598
8599hard_links="nottested"
8600if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8601  # do not overwrite the value of need_locks provided by the user
8602  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8603echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8604  hard_links=yes
8605  $rm conftest*
8606  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8607  touch conftest.a
8608  ln conftest.a conftest.b 2>&5 || hard_links=no
8609  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8610  echo "$as_me:$LINENO: result: $hard_links" >&5
8611echo "${ECHO_T}$hard_links" >&6
8612  if test "$hard_links" = no; then
8613    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8614echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8615    need_locks=warn
8616  fi
8617else
8618  need_locks=no
8619fi
8620
8621echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8622echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8623
8624  runpath_var=
8625  allow_undefined_flag=
8626  enable_shared_with_static_runtimes=no
8627  archive_cmds=
8628  archive_expsym_cmds=
8629  old_archive_From_new_cmds=
8630  old_archive_from_expsyms_cmds=
8631  export_dynamic_flag_spec=
8632  whole_archive_flag_spec=
8633  thread_safe_flag_spec=
8634  hardcode_libdir_flag_spec=
8635  hardcode_libdir_flag_spec_ld=
8636  hardcode_libdir_separator=
8637  hardcode_direct=no
8638  hardcode_minus_L=no
8639  hardcode_shlibpath_var=unsupported
8640  link_all_deplibs=unknown
8641  hardcode_automatic=no
8642  module_cmds=
8643  module_expsym_cmds=
8644  always_export_symbols=no
8645  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8646  # include_expsyms should be a list of space-separated symbols to be *always*
8647  # included in the symbol list
8648  include_expsyms=
8649  # exclude_expsyms can be an extended regexp of symbols to exclude
8650  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8651  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8652  # as well as any symbol that contains `d'.
8653  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8654  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8655  # platforms (ab)use it in PIC code, but their linkers get confused if
8656  # the symbol is explicitly referenced.  Since portable code cannot
8657  # rely on this symbol name, it's probably fine to never include it in
8658  # preloaded symbol tables.
8659  extract_expsyms_cmds=
8660  # Just being paranoid about ensuring that cc_basename is set.
8661  for cc_temp in $compiler""; do
8662  case $cc_temp in
8663    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8664    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8665    \-*) ;;
8666    *) break;;
8667  esac
8668done
8669cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8670
8671  case $host_os in
8672  cygwin* | mingw* | pw32*)
8673    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8674    # When not using gcc, we currently assume that we are using
8675    # Microsoft Visual C++.
8676    if test "$GCC" != yes; then
8677      with_gnu_ld=no
8678    fi
8679    ;;
8680  interix*)
8681    # we just hope/assume this is gcc and not c89 (= MSVC++)
8682    with_gnu_ld=yes
8683    ;;
8684  openbsd*)
8685    with_gnu_ld=no
8686    ;;
8687  esac
8688
8689  ld_shlibs=yes
8690  if test "$with_gnu_ld" = yes; then
8691    # If archive_cmds runs LD, not CC, wlarc should be empty
8692    wlarc='${wl}'
8693
8694    # Set some defaults for GNU ld with shared library support. These
8695    # are reset later if shared libraries are not supported. Putting them
8696    # here allows them to be overridden if necessary.
8697    runpath_var=LD_RUN_PATH
8698    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8699    export_dynamic_flag_spec='${wl}--export-dynamic'
8700    # ancient GNU ld didn't support --whole-archive et. al.
8701    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8702        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8703      else
8704        whole_archive_flag_spec=
8705    fi
8706    supports_anon_versioning=no
8707    case `$LD -v 2>/dev/null` in
8708      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8709      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8710      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8711      *\ 2.11.*) ;; # other 2.11 versions
8712      *) supports_anon_versioning=yes ;;
8713    esac
8714
8715    # See if GNU ld supports shared libraries.
8716    case $host_os in
8717    aix3* | aix4* | aix5*)
8718      # On AIX/PPC, the GNU linker is very broken
8719      if test "$host_cpu" != ia64; then
8720        ld_shlibs=no
8721        cat <<EOF 1>&2
8722
8723*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8724*** to be unable to reliably create shared libraries on AIX.
8725*** Therefore, libtool is disabling shared libraries support.  If you
8726*** really care for shared libraries, you may want to modify your PATH
8727*** so that a non-GNU linker is found, and then restart.
8728
8729EOF
8730      fi
8731      ;;
8732
8733    amigaos*)
8734      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)'
8735      hardcode_libdir_flag_spec='-L$libdir'
8736      hardcode_minus_L=yes
8737
8738      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8739      # that the semantics of dynamic libraries on AmigaOS, at least up
8740      # to version 4, is to share data among multiple programs linked
8741      # with the same dynamic library.  Since this doesn't match the
8742      # behavior of shared libraries on other platforms, we can't use
8743      # them.
8744      ld_shlibs=no
8745      ;;
8746
8747    beos*)
8748      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8749        allow_undefined_flag=unsupported
8750        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8751        # support --undefined.  This deserves some investigation.  FIXME
8752        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753      else
8754        ld_shlibs=no
8755      fi
8756      ;;
8757
8758    cygwin* | mingw* | pw32*)
8759      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8760      # as there is no search path for DLLs.
8761      hardcode_libdir_flag_spec='-L$libdir'
8762      allow_undefined_flag=unsupported
8763      always_export_symbols=no
8764      enable_shared_with_static_runtimes=yes
8765      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8766
8767      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8768        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8769        # If the export-symbols file already is a .def file (1st line
8770        # is EXPORTS), use it as is; otherwise, prepend...
8771        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8772          cp $export_symbols $output_objdir/$soname.def;
8773        else
8774          echo EXPORTS > $output_objdir/$soname.def;
8775          cat $export_symbols >> $output_objdir/$soname.def;
8776        fi~
8777        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8778      else
8779        ld_shlibs=no
8780      fi
8781      ;;
8782
8783    interix3*)
8784      hardcode_direct=no
8785      hardcode_shlibpath_var=no
8786      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8787      export_dynamic_flag_spec='${wl}-E'
8788      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8789      # Instead, shared libraries are loaded at an image base (0x10000000 by
8790      # default) and relocated if they conflict, which is a slow very memory
8791      # consuming and fragmenting process.  To avoid this, we pick a random,
8792      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8793      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8794      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8795      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'
8796      ;;
8797
8798    linux*)
8799      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8800        tmp_addflag=
8801        case $cc_basename,$host_cpu in
8802        pgcc*)                          # Portland Group C compiler
8803          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'
8804          tmp_addflag=' $pic_flag'
8805          ;;
8806        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8807          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'
8808          tmp_addflag=' $pic_flag -Mnomain' ;;
8809        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8810          tmp_addflag=' -i_dynamic' ;;
8811        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8812          tmp_addflag=' -i_dynamic -nofor_main' ;;
8813        ifc* | ifort*)                  # Intel Fortran compiler
8814          tmp_addflag=' -nofor_main' ;;
8815        esac
8816        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817
8818        if test $supports_anon_versioning = yes; then
8819          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8820  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8821  $echo "local: *; };" >> $output_objdir/$libname.ver~
8822          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8823        fi
8824      else
8825        ld_shlibs=no
8826      fi
8827      ;;
8828
8829    netbsd*)
8830      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8831        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8832        wlarc=
8833      else
8834        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8836      fi
8837      ;;
8838
8839    solaris*)
8840      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8841        ld_shlibs=no
8842        cat <<EOF 1>&2
8843
8844*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8845*** create shared libraries on Solaris systems.  Therefore, libtool
8846*** is disabling shared libraries support.  We urge you to upgrade GNU
8847*** binutils to release 2.9.1 or newer.  Another option is to modify
8848*** your PATH or compiler configuration so that the native linker is
8849*** used, and then restart.
8850
8851EOF
8852      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8853        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8855      else
8856        ld_shlibs=no
8857      fi
8858      ;;
8859
8860    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8861      case `$LD -v 2>&1` in
8862        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8863        ld_shlibs=no
8864        cat <<_LT_EOF 1>&2
8865
8866*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8867*** reliably create shared libraries on SCO systems.  Therefore, libtool
8868*** is disabling shared libraries support.  We urge you to upgrade GNU
8869*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8870*** your PATH or compiler configuration so that the native linker is
8871*** used, and then restart.
8872
8873_LT_EOF
8874        ;;
8875        *)
8876          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8877            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8878            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8879            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8880          else
8881            ld_shlibs=no
8882          fi
8883        ;;
8884      esac
8885      ;;
8886
8887    sunos4*)
8888      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8889      wlarc=
8890      hardcode_direct=yes
8891      hardcode_shlibpath_var=no
8892      ;;
8893
8894    *)
8895      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8896        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8897        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8898      else
8899        ld_shlibs=no
8900      fi
8901      ;;
8902    esac
8903
8904    if test "$ld_shlibs" = no; then
8905      runpath_var=
8906      hardcode_libdir_flag_spec=
8907      export_dynamic_flag_spec=
8908      whole_archive_flag_spec=
8909    fi
8910  else
8911    # PORTME fill in a description of your system's linker (not GNU ld)
8912    case $host_os in
8913    aix3*)
8914      allow_undefined_flag=unsupported
8915      always_export_symbols=yes
8916      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'
8917      # Note: this linker hardcodes the directories in LIBPATH if there
8918      # are no directories specified by -L.
8919      hardcode_minus_L=yes
8920      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8921        # Neither direct hardcoding nor static linking is supported with a
8922        # broken collect2.
8923        hardcode_direct=unsupported
8924      fi
8925      ;;
8926
8927    aix4* | aix5*)
8928      if test "$host_cpu" = ia64; then
8929        # On IA64, the linker does run time linking by default, so we don't
8930        # have to do anything special.
8931        aix_use_runtimelinking=no
8932        exp_sym_flag='-Bexport'
8933        no_entry_flag=""
8934      else
8935        # If we're using GNU nm, then we don't want the "-C" option.
8936        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8937        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8938          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'
8939        else
8940          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'
8941        fi
8942        aix_use_runtimelinking=no
8943
8944        # Test if we are trying to use run time linking or normal
8945        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8946        # need to do runtime linking.
8947        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8948          for ld_flag in $LDFLAGS; do
8949          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8950            aix_use_runtimelinking=yes
8951            break
8952          fi
8953          done
8954          ;;
8955        esac
8956
8957        exp_sym_flag='-bexport'
8958        no_entry_flag='-bnoentry'
8959      fi
8960
8961      # When large executables or shared objects are built, AIX ld can
8962      # have problems creating the table of contents.  If linking a library
8963      # or program results in "error TOC overflow" add -mminimal-toc to
8964      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8965      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8966
8967      archive_cmds=''
8968      hardcode_direct=yes
8969      hardcode_libdir_separator=':'
8970      link_all_deplibs=yes
8971
8972      if test "$GCC" = yes; then
8973        case $host_os in aix4.[012]|aix4.[012].*)
8974        # We only want to do this on AIX 4.2 and lower, the check
8975        # below for broken collect2 doesn't work under 4.3+
8976          collect2name=`${CC} -print-prog-name=collect2`
8977          if test -f "$collect2name" && \
8978           strings "$collect2name" | grep resolve_lib_name >/dev/null
8979          then
8980          # We have reworked collect2
8981          hardcode_direct=yes
8982          else
8983          # We have old collect2
8984          hardcode_direct=unsupported
8985          # It fails to find uninstalled libraries when the uninstalled
8986          # path is not listed in the libpath.  Setting hardcode_minus_L
8987          # to unsupported forces relinking
8988          hardcode_minus_L=yes
8989          hardcode_libdir_flag_spec='-L$libdir'
8990          hardcode_libdir_separator=
8991          fi
8992          ;;
8993        esac
8994        shared_flag='-shared'
8995        if test "$aix_use_runtimelinking" = yes; then
8996          shared_flag="$shared_flag "'${wl}-G'
8997        fi
8998      else
8999        # not using gcc
9000        if test "$host_cpu" = ia64; then
9001        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9002        # chokes on -Wl,-G. The following line is correct:
9003          shared_flag='-G'
9004        else
9005          if test "$aix_use_runtimelinking" = yes; then
9006            shared_flag='${wl}-G'
9007          else
9008            shared_flag='${wl}-bM:SRE'
9009          fi
9010        fi
9011      fi
9012
9013      # It seems that -bexpall does not export symbols beginning with
9014      # underscore (_), so it is better to generate a list of symbols to export.
9015      always_export_symbols=yes
9016      if test "$aix_use_runtimelinking" = yes; then
9017        # Warning - without using the other runtime loading flags (-brtl),
9018        # -berok will link without error, but may produce a broken library.
9019        allow_undefined_flag='-berok'
9020       # Determine the default libpath from the value encoded in an empty executable.
9021       cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h.  */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h.  */
9027
9028int
9029main ()
9030{
9031
9032  ;
9033  return 0;
9034}
9035_ACEOF
9036rm -f conftest.$ac_objext conftest$ac_exeext
9037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038  (eval $ac_link) 2>conftest.er1
9039  ac_status=$?
9040  grep -v '^ *+' conftest.er1 >conftest.err
9041  rm -f conftest.er1
9042  cat conftest.err >&5
9043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044  (exit $ac_status); } &&
9045         { ac_try='test -z "$ac_c_werror_flag"
9046                         || test ! -s conftest.err'
9047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048  (eval $ac_try) 2>&5
9049  ac_status=$?
9050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051  (exit $ac_status); }; } &&
9052         { ac_try='test -s conftest$ac_exeext'
9053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054  (eval $ac_try) 2>&5
9055  ac_status=$?
9056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057  (exit $ac_status); }; }; then
9058
9059aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9060}'`
9061# Check for a 64-bit object if we didn't find anything.
9062if 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; }
9063}'`; fi
9064else
9065  echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
9068fi
9069rm -f conftest.err conftest.$ac_objext \
9070      conftest$ac_exeext conftest.$ac_ext
9071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9072
9073       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9074        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"
9075       else
9076        if test "$host_cpu" = ia64; then
9077          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9078          allow_undefined_flag="-z nodefs"
9079          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"
9080        else
9081         # Determine the default libpath from the value encoded in an empty executable.
9082         cat >conftest.$ac_ext <<_ACEOF
9083/* confdefs.h.  */
9084_ACEOF
9085cat confdefs.h >>conftest.$ac_ext
9086cat >>conftest.$ac_ext <<_ACEOF
9087/* end confdefs.h.  */
9088
9089int
9090main ()
9091{
9092
9093  ;
9094  return 0;
9095}
9096_ACEOF
9097rm -f conftest.$ac_objext conftest$ac_exeext
9098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099  (eval $ac_link) 2>conftest.er1
9100  ac_status=$?
9101  grep -v '^ *+' conftest.er1 >conftest.err
9102  rm -f conftest.er1
9103  cat conftest.err >&5
9104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105  (exit $ac_status); } &&
9106         { ac_try='test -z "$ac_c_werror_flag"
9107                         || test ! -s conftest.err'
9108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109  (eval $ac_try) 2>&5
9110  ac_status=$?
9111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112  (exit $ac_status); }; } &&
9113         { ac_try='test -s conftest$ac_exeext'
9114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115  (eval $ac_try) 2>&5
9116  ac_status=$?
9117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118  (exit $ac_status); }; }; then
9119
9120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9121}'`
9122# Check for a 64-bit object if we didn't find anything.
9123if 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; }
9124}'`; fi
9125else
9126  echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
9129fi
9130rm -f conftest.err conftest.$ac_objext \
9131      conftest$ac_exeext conftest.$ac_ext
9132if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9133
9134         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9135          # Warning - without using the other run time loading flags,
9136          # -berok will link without error, but may produce a broken library.
9137          no_undefined_flag=' ${wl}-bernotok'
9138          allow_undefined_flag=' ${wl}-berok'
9139          # Exported symbols can be pulled into shared objects from archives
9140          whole_archive_flag_spec='$convenience'
9141          archive_cmds_need_lc=yes
9142          # This is similar to how AIX traditionally builds its shared libraries.
9143          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'
9144        fi
9145      fi
9146      ;;
9147
9148    amigaos*)
9149      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)'
9150      hardcode_libdir_flag_spec='-L$libdir'
9151      hardcode_minus_L=yes
9152      # see comment about different semantics on the GNU ld section
9153      ld_shlibs=no
9154      ;;
9155
9156    bsdi[45]*)
9157      export_dynamic_flag_spec=-rdynamic
9158      ;;
9159
9160    cygwin* | mingw* | pw32*)
9161      # When not using gcc, we currently assume that we are using
9162      # Microsoft Visual C++.
9163      # hardcode_libdir_flag_spec is actually meaningless, as there is
9164      # no search path for DLLs.
9165      hardcode_libdir_flag_spec=' '
9166      allow_undefined_flag=unsupported
9167      # Tell ltmain to make .lib files, not .a files.
9168      libext=lib
9169      # Tell ltmain to make .dll files, not .so files.
9170      shrext_cmds=".dll"
9171      # FIXME: Setting linknames here is a bad hack.
9172      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9173      # The linker will automatically build a .lib file if we build a DLL.
9174      old_archive_From_new_cmds='true'
9175      # FIXME: Should let the user specify the lib program.
9176      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9177      fix_srcfile_path='`cygpath -w "$srcfile"`'
9178      enable_shared_with_static_runtimes=yes
9179      ;;
9180
9181    darwin* | rhapsody*)
9182      case $host_os in
9183        rhapsody* | darwin1.[012])
9184         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9185         ;;
9186       *) # Darwin 1.3 on
9187         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9188           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9189         else
9190           case ${MACOSX_DEPLOYMENT_TARGET} in
9191             10.[012])
9192               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9193               ;;
9194             10.*)
9195               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9196               ;;
9197           esac
9198         fi
9199         ;;
9200      esac
9201      archive_cmds_need_lc=no
9202      hardcode_direct=no
9203      hardcode_automatic=yes
9204      hardcode_shlibpath_var=unsupported
9205      whole_archive_flag_spec=''
9206      link_all_deplibs=yes
9207    if test "$GCC" = yes ; then
9208        output_verbose_link_cmd='echo'
9209        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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 -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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    else
9215      case $cc_basename in
9216        xlc*)
9217         output_verbose_link_cmd='echo'
9218         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9219         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9220          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9221         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}'
9222          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}'
9223          ;;
9224       *)
9225         ld_shlibs=no
9226          ;;
9227      esac
9228    fi
9229      ;;
9230
9231    dgux*)
9232      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9233      hardcode_libdir_flag_spec='-L$libdir'
9234      hardcode_shlibpath_var=no
9235      ;;
9236
9237    freebsd1*)
9238      ld_shlibs=no
9239      ;;
9240
9241    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9242    # support.  Future versions do this automatically, but an explicit c++rt0.o
9243    # does not break anything, and helps significantly (at the cost of a little
9244    # extra space).
9245    freebsd2.2*)
9246      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9247      hardcode_libdir_flag_spec='-R$libdir'
9248      hardcode_direct=yes
9249      hardcode_shlibpath_var=no
9250      ;;
9251
9252    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9253    freebsd2*)
9254      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9255      hardcode_direct=yes
9256      hardcode_minus_L=yes
9257      hardcode_shlibpath_var=no
9258      ;;
9259
9260    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9261    freebsd* | kfreebsd*-gnu | dragonfly*)
9262      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9263      hardcode_libdir_flag_spec='-R$libdir'
9264      hardcode_direct=yes
9265      hardcode_shlibpath_var=no
9266      ;;
9267
9268    hpux9*)
9269      if test "$GCC" = yes; then
9270        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'
9271      else
9272        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'
9273      fi
9274      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9275      hardcode_libdir_separator=:
9276      hardcode_direct=yes
9277
9278      # hardcode_minus_L: Not really in the search PATH,
9279      # but as the default location of the library.
9280      hardcode_minus_L=yes
9281      export_dynamic_flag_spec='${wl}-E'
9282      ;;
9283
9284    hpux10*)
9285      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9286        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9287      else
9288        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9289      fi
9290      if test "$with_gnu_ld" = no; then
9291        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9292        hardcode_libdir_separator=:
9293
9294        hardcode_direct=yes
9295        export_dynamic_flag_spec='${wl}-E'
9296
9297        # hardcode_minus_L: Not really in the search PATH,
9298        # but as the default location of the library.
9299        hardcode_minus_L=yes
9300      fi
9301      ;;
9302
9303    hpux11*)
9304      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9305        case $host_cpu in
9306        hppa*64*)
9307          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9308          ;;
9309        ia64*)
9310          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9311          ;;
9312        *)
9313          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9314          ;;
9315        esac
9316      else
9317        case $host_cpu in
9318        hppa*64*)
9319          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9320          ;;
9321        ia64*)
9322          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9323          ;;
9324        *)
9325          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9326          ;;
9327        esac
9328      fi
9329      if test "$with_gnu_ld" = no; then
9330        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9331        hardcode_libdir_separator=:
9332
9333        case $host_cpu in
9334        hppa*64*|ia64*)
9335          hardcode_libdir_flag_spec_ld='+b $libdir'
9336          hardcode_direct=no
9337          hardcode_shlibpath_var=no
9338          ;;
9339        *)
9340          hardcode_direct=yes
9341          export_dynamic_flag_spec='${wl}-E'
9342
9343          # hardcode_minus_L: Not really in the search PATH,
9344          # but as the default location of the library.
9345          hardcode_minus_L=yes
9346          ;;
9347        esac
9348      fi
9349      ;;
9350
9351    irix5* | irix6* | nonstopux*)
9352      if test "$GCC" = yes; then
9353        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'
9354      else
9355        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'
9356        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9357      fi
9358      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9359      hardcode_libdir_separator=:
9360      link_all_deplibs=yes
9361      ;;
9362
9363    netbsd*)
9364      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9365        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9366      else
9367        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9368      fi
9369      hardcode_libdir_flag_spec='-R$libdir'
9370      hardcode_direct=yes
9371      hardcode_shlibpath_var=no
9372      ;;
9373
9374    newsos6)
9375      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9376      hardcode_direct=yes
9377      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378      hardcode_libdir_separator=:
9379      hardcode_shlibpath_var=no
9380      ;;
9381
9382    openbsd*)
9383      hardcode_direct=yes
9384      hardcode_shlibpath_var=no
9385      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9386        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9387        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9388        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9389        export_dynamic_flag_spec='${wl}-E'
9390      else
9391       case $host_os in
9392         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9393           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9394           hardcode_libdir_flag_spec='-R$libdir'
9395           ;;
9396         *)
9397           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9398           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9399           ;;
9400       esac
9401      fi
9402      ;;
9403
9404    os2*)
9405      hardcode_libdir_flag_spec='-L$libdir'
9406      hardcode_minus_L=yes
9407      allow_undefined_flag=unsupported
9408      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'
9409      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9410      ;;
9411
9412    osf3*)
9413      if test "$GCC" = yes; then
9414        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9415        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'
9416      else
9417        allow_undefined_flag=' -expect_unresolved \*'
9418        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'
9419      fi
9420      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9421      hardcode_libdir_separator=:
9422      ;;
9423
9424    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9425      if test "$GCC" = yes; then
9426        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9427        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'
9428        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9429      else
9430        allow_undefined_flag=' -expect_unresolved \*'
9431        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'
9432        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9433        $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'
9434
9435        # Both c and cxx compiler support -rpath directly
9436        hardcode_libdir_flag_spec='-rpath $libdir'
9437      fi
9438      hardcode_libdir_separator=:
9439      ;;
9440
9441    solaris*)
9442      no_undefined_flag=' -z text'
9443      if test "$GCC" = yes; then
9444        wlarc='${wl}'
9445        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9446        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9447          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9448      else
9449        wlarc=''
9450        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9452        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9453      fi
9454      hardcode_libdir_flag_spec='-R$libdir'
9455      hardcode_shlibpath_var=no
9456      case $host_os in
9457      solaris2.[0-5] | solaris2.[0-5].*) ;;
9458      *)
9459        # The compiler driver will combine linker options so we
9460        # cannot just pass the convience library names through
9461        # without $wl, iff we do not link with $LD.
9462        # Luckily, gcc supports the same syntax we need for Sun Studio.
9463        # Supported since Solaris 2.6 (maybe 2.5.1?)
9464        case $wlarc in
9465        '')
9466          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9467        *)
9468          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' ;;
9469        esac ;;
9470      esac
9471      link_all_deplibs=yes
9472      ;;
9473
9474    sunos4*)
9475      if test "x$host_vendor" = xsequent; then
9476        # Use $CC to link under sequent, because it throws in some extra .o
9477        # files that make .init and .fini sections work.
9478        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9479      else
9480        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9481      fi
9482      hardcode_libdir_flag_spec='-L$libdir'
9483      hardcode_direct=yes
9484      hardcode_minus_L=yes
9485      hardcode_shlibpath_var=no
9486      ;;
9487
9488    sysv4)
9489      case $host_vendor in
9490        sni)
9491          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492          hardcode_direct=yes # is this really true???
9493        ;;
9494        siemens)
9495          ## LD is ld it makes a PLAMLIB
9496          ## CC just makes a GrossModule.
9497          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9498          reload_cmds='$CC -r -o $output$reload_objs'
9499          hardcode_direct=no
9500        ;;
9501        motorola)
9502          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9504        ;;
9505      esac
9506      runpath_var='LD_RUN_PATH'
9507      hardcode_shlibpath_var=no
9508      ;;
9509
9510    sysv4.3*)
9511      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512      hardcode_shlibpath_var=no
9513      export_dynamic_flag_spec='-Bexport'
9514      ;;
9515
9516    sysv4*MP*)
9517      if test -d /usr/nec; then
9518        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519        hardcode_shlibpath_var=no
9520        runpath_var=LD_RUN_PATH
9521        hardcode_runpath_var=yes
9522        ld_shlibs=yes
9523      fi
9524      ;;
9525
9526    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9527      no_undefined_flag='${wl}-z,text'
9528      archive_cmds_need_lc=no
9529      hardcode_shlibpath_var=no
9530      runpath_var='LD_RUN_PATH'
9531
9532      if test "$GCC" = yes; then
9533        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535      else
9536        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538      fi
9539      ;;
9540
9541    sysv5* | sco3.2v5* | sco5v6*)
9542      # Note: We can NOT use -z defs as we might desire, because we do not
9543      # link with -lc, and that would cause any symbols used from libc to
9544      # always be unresolved, which means just about no library would
9545      # ever link correctly.  If we're not using GNU ld we use -z text
9546      # though, which does catch some bad symbols but isn't as heavy-handed
9547      # as -z defs.
9548      no_undefined_flag='${wl}-z,text'
9549      allow_undefined_flag='${wl}-z,nodefs'
9550      archive_cmds_need_lc=no
9551      hardcode_shlibpath_var=no
9552      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9553      hardcode_libdir_separator=':'
9554      link_all_deplibs=yes
9555      export_dynamic_flag_spec='${wl}-Bexport'
9556      runpath_var='LD_RUN_PATH'
9557
9558      if test "$GCC" = yes; then
9559        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9560        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9561      else
9562        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9563        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9564      fi
9565      ;;
9566
9567    uts4*)
9568      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569      hardcode_libdir_flag_spec='-L$libdir'
9570      hardcode_shlibpath_var=no
9571      ;;
9572
9573    *)
9574      ld_shlibs=no
9575      ;;
9576    esac
9577  fi
9578
9579echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9580echo "${ECHO_T}$ld_shlibs" >&6
9581test "$ld_shlibs" = no && can_build_shared=no
9582
9583#
9584# Do we need to explicitly link libc?
9585#
9586case "x$archive_cmds_need_lc" in
9587x|xyes)
9588  # Assume -lc should be added
9589  archive_cmds_need_lc=yes
9590
9591  if test "$enable_shared" = yes && test "$GCC" = yes; then
9592    case $archive_cmds in
9593    *'~'*)
9594      # FIXME: we may have to deal with multi-command sequences.
9595      ;;
9596    '$CC '*)
9597      # Test whether the compiler implicitly links with -lc since on some
9598      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9599      # to ld, don't add -lc before -lgcc.
9600      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9601echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9602      $rm conftest*
9603      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9604
9605      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606  (eval $ac_compile) 2>&5
9607  ac_status=$?
9608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609  (exit $ac_status); } 2>conftest.err; then
9610        soname=conftest
9611        lib=conftest
9612        libobjs=conftest.$ac_objext
9613        deplibs=
9614        wl=$lt_prog_compiler_wl
9615        pic_flag=$lt_prog_compiler_pic
9616        compiler_flags=-v
9617        linker_flags=-v
9618        verstring=
9619        output_objdir=.
9620        libname=conftest
9621        lt_save_allow_undefined_flag=$allow_undefined_flag
9622        allow_undefined_flag=
9623        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9624  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9625  ac_status=$?
9626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627  (exit $ac_status); }
9628        then
9629          archive_cmds_need_lc=no
9630        else
9631          archive_cmds_need_lc=yes
9632        fi
9633        allow_undefined_flag=$lt_save_allow_undefined_flag
9634      else
9635        cat conftest.err 1>&5
9636      fi
9637      $rm conftest*
9638      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9639echo "${ECHO_T}$archive_cmds_need_lc" >&6
9640      ;;
9641    esac
9642  fi
9643  ;;
9644esac
9645
9646echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9647echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9648library_names_spec=
9649libname_spec='lib$name'
9650soname_spec=
9651shrext_cmds=".so"
9652postinstall_cmds=
9653postuninstall_cmds=
9654finish_cmds=
9655finish_eval=
9656shlibpath_var=
9657shlibpath_overrides_runpath=unknown
9658version_type=none
9659dynamic_linker="$host_os ld.so"
9660sys_lib_dlsearch_path_spec="/lib /usr/lib"
9661if test "$GCC" = yes; then
9662  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9663  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9664    # if the path contains ";" then we assume it to be the separator
9665    # otherwise default to the standard path separator (i.e. ":") - it is
9666    # assumed that no part of a normal pathname contains ";" but that should
9667    # okay in the real world where ";" in dirpaths is itself problematic.
9668    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9669  else
9670    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9671  fi
9672else
9673  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9674fi
9675need_lib_prefix=unknown
9676hardcode_into_libs=no
9677
9678# when you set need_version to no, make sure it does not cause -set_version
9679# flags to be left without arguments
9680need_version=unknown
9681
9682case $host_os in
9683aix3*)
9684  version_type=linux
9685  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9686  shlibpath_var=LIBPATH
9687
9688  # AIX 3 has no versioning support, so we append a major version to the name.
9689  soname_spec='${libname}${release}${shared_ext}$major'
9690  ;;
9691
9692aix4* | aix5*)
9693  version_type=linux
9694  need_lib_prefix=no
9695  need_version=no
9696  hardcode_into_libs=yes
9697  if test "$host_cpu" = ia64; then
9698    # AIX 5 supports IA64
9699    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9700    shlibpath_var=LD_LIBRARY_PATH
9701  else
9702    # With GCC up to 2.95.x, collect2 would create an import file
9703    # for dependence libraries.  The import file would start with
9704    # the line `#! .'.  This would cause the generated library to
9705    # depend on `.', always an invalid library.  This was fixed in
9706    # development snapshots of GCC prior to 3.0.
9707    case $host_os in
9708      aix4 | aix4.[01] | aix4.[01].*)
9709      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9710           echo ' yes '
9711           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9712        :
9713      else
9714        can_build_shared=no
9715      fi
9716      ;;
9717    esac
9718    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9719    # soname into executable. Probably we can add versioning support to
9720    # collect2, so additional links can be useful in future.
9721    if test "$aix_use_runtimelinking" = yes; then
9722      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9723      # instead of lib<name>.a to let people know that these are not
9724      # typical AIX shared libraries.
9725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726    else
9727      # We preserve .a as extension for shared libraries through AIX4.2
9728      # and later when we are not doing run time linking.
9729      library_names_spec='${libname}${release}.a $libname.a'
9730      soname_spec='${libname}${release}${shared_ext}$major'
9731    fi
9732    shlibpath_var=LIBPATH
9733  fi
9734  ;;
9735
9736amigaos*)
9737  library_names_spec='$libname.ixlibrary $libname.a'
9738  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9739  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'
9740  ;;
9741
9742beos*)
9743  library_names_spec='${libname}${shared_ext}'
9744  dynamic_linker="$host_os ld.so"
9745  shlibpath_var=LIBRARY_PATH
9746  ;;
9747
9748bsdi[45]*)
9749  version_type=linux
9750  need_version=no
9751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752  soname_spec='${libname}${release}${shared_ext}$major'
9753  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9754  shlibpath_var=LD_LIBRARY_PATH
9755  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9756  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9757  # the default ld.so.conf also contains /usr/contrib/lib and
9758  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9759  # libtool to hard-code these into programs
9760  ;;
9761
9762cygwin* | mingw* | pw32*)
9763  version_type=windows
9764  shrext_cmds=".dll"
9765  need_version=no
9766  need_lib_prefix=no
9767
9768  case $GCC,$host_os in
9769  yes,cygwin* | yes,mingw* | yes,pw32*)
9770    library_names_spec='$libname.dll.a'
9771    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9772    postinstall_cmds='base_file=`basename \${file}`~
9773      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9774      dldir=$destdir/`dirname \$dlpath`~
9775      test -d \$dldir || mkdir -p \$dldir~
9776      $install_prog $dir/$dlname \$dldir/$dlname~
9777      chmod a+x \$dldir/$dlname'
9778    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9779      dlpath=$dir/\$dldll~
9780       $rm \$dlpath'
9781    shlibpath_overrides_runpath=yes
9782
9783    case $host_os in
9784    cygwin*)
9785      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9786      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9787      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9788      ;;
9789    mingw*)
9790      # MinGW DLLs use traditional 'lib' prefix
9791      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9792      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9793      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9794        # It is most probably a Windows format PATH printed by
9795        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9796        # path with ; separators, and with drive letters. We can handle the
9797        # drive letters (cygwin fileutils understands them), so leave them,
9798        # especially as we might pass files found there to a mingw objdump,
9799        # which wouldn't understand a cygwinified path. Ahh.
9800        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9801      else
9802        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9803      fi
9804      ;;
9805    pw32*)
9806      # pw32 DLLs use 'pw' prefix rather than 'lib'
9807      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9808      ;;
9809    esac
9810    ;;
9811
9812  *)
9813    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9814    ;;
9815  esac
9816  dynamic_linker='Win32 ld.exe'
9817  # FIXME: first we should search . and the directory the executable is in
9818  shlibpath_var=PATH
9819  ;;
9820
9821darwin* | rhapsody*)
9822  dynamic_linker="$host_os dyld"
9823  version_type=darwin
9824  need_lib_prefix=no
9825  need_version=no
9826  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9827  soname_spec='${libname}${release}${major}$shared_ext'
9828  shlibpath_overrides_runpath=yes
9829  shlibpath_var=DYLD_LIBRARY_PATH
9830  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9831  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9832  if test "$GCC" = yes; then
9833    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"`
9834  else
9835    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9836  fi
9837  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9838  ;;
9839
9840dgux*)
9841  version_type=linux
9842  need_lib_prefix=no
9843  need_version=no
9844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9845  soname_spec='${libname}${release}${shared_ext}$major'
9846  shlibpath_var=LD_LIBRARY_PATH
9847  ;;
9848
9849freebsd1*)
9850  dynamic_linker=no
9851  ;;
9852
9853kfreebsd*-gnu)
9854  version_type=linux
9855  need_lib_prefix=no
9856  need_version=no
9857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9858  soname_spec='${libname}${release}${shared_ext}$major'
9859  shlibpath_var=LD_LIBRARY_PATH
9860  shlibpath_overrides_runpath=no
9861  hardcode_into_libs=yes
9862  dynamic_linker='GNU ld.so'
9863  ;;
9864
9865freebsd* | dragonfly*)
9866  # DragonFly does not have aout.  When/if they implement a new
9867  # versioning mechanism, adjust this.
9868  if test -x /usr/bin/objformat; then
9869    objformat=`/usr/bin/objformat`
9870  else
9871    case $host_os in
9872    freebsd[123]*) objformat=aout ;;
9873    *) objformat=elf ;;
9874    esac
9875  fi
9876  version_type=freebsd-$objformat
9877  case $version_type in
9878    freebsd-elf*)
9879      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9880      need_version=no
9881      need_lib_prefix=no
9882      ;;
9883    freebsd-*)
9884      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9885      need_version=yes
9886      ;;
9887  esac
9888  shlibpath_var=LD_LIBRARY_PATH
9889  case $host_os in
9890  freebsd2*)
9891    shlibpath_overrides_runpath=yes
9892    ;;
9893  freebsd3.[01]* | freebsdelf3.[01]*)
9894    shlibpath_overrides_runpath=yes
9895    hardcode_into_libs=yes
9896    ;;
9897  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9898  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9899    shlibpath_overrides_runpath=no
9900    hardcode_into_libs=yes
9901    ;;
9902  freebsd*) # from 4.6 on
9903    shlibpath_overrides_runpath=yes
9904    hardcode_into_libs=yes
9905    ;;
9906  esac
9907  ;;
9908
9909gnu*)
9910  version_type=linux
9911  need_lib_prefix=no
9912  need_version=no
9913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9914  soname_spec='${libname}${release}${shared_ext}$major'
9915  shlibpath_var=LD_LIBRARY_PATH
9916  hardcode_into_libs=yes
9917  ;;
9918
9919hpux9* | hpux10* | hpux11*)
9920  # Give a soname corresponding to the major version so that dld.sl refuses to
9921  # link against other versions.
9922  version_type=sunos
9923  need_lib_prefix=no
9924  need_version=no
9925  case $host_cpu in
9926  ia64*)
9927    shrext_cmds='.so'
9928    hardcode_into_libs=yes
9929    dynamic_linker="$host_os dld.so"
9930    shlibpath_var=LD_LIBRARY_PATH
9931    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9932    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933    soname_spec='${libname}${release}${shared_ext}$major'
9934    if test "X$HPUX_IA64_MODE" = X32; then
9935      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9936    else
9937      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9938    fi
9939    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9940    ;;
9941   hppa*64*)
9942     shrext_cmds='.sl'
9943     hardcode_into_libs=yes
9944     dynamic_linker="$host_os dld.sl"
9945     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948     soname_spec='${libname}${release}${shared_ext}$major'
9949     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9950     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9951     ;;
9952   *)
9953    shrext_cmds='.sl'
9954    dynamic_linker="$host_os dld.sl"
9955    shlibpath_var=SHLIB_PATH
9956    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9957    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958    soname_spec='${libname}${release}${shared_ext}$major'
9959    ;;
9960  esac
9961  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9962  postinstall_cmds='chmod 555 $lib'
9963  ;;
9964
9965interix3*)
9966  version_type=linux
9967  need_lib_prefix=no
9968  need_version=no
9969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9970  soname_spec='${libname}${release}${shared_ext}$major'
9971  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9972  shlibpath_var=LD_LIBRARY_PATH
9973  shlibpath_overrides_runpath=no
9974  hardcode_into_libs=yes
9975  ;;
9976
9977irix5* | irix6* | nonstopux*)
9978  case $host_os in
9979    nonstopux*) version_type=nonstopux ;;
9980    *)
9981        if test "$lt_cv_prog_gnu_ld" = yes; then
9982                version_type=linux
9983        else
9984                version_type=irix
9985        fi ;;
9986  esac
9987  need_lib_prefix=no
9988  need_version=no
9989  soname_spec='${libname}${release}${shared_ext}$major'
9990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9991  case $host_os in
9992  irix5* | nonstopux*)
9993    libsuff= shlibsuff=
9994    ;;
9995  *)
9996    case $LD in # libtool.m4 will add one of these switches to LD
9997    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9998      libsuff= shlibsuff= libmagic=32-bit;;
9999    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10000      libsuff=32 shlibsuff=N32 libmagic=N32;;
10001    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10002      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10003    *) libsuff= shlibsuff= libmagic=never-match;;
10004    esac
10005    ;;
10006  esac
10007  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10008  shlibpath_overrides_runpath=no
10009  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10010  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10011  hardcode_into_libs=yes
10012  ;;
10013
10014# No shared lib support for Linux oldld, aout, or coff.
10015linux*oldld* | linux*aout* | linux*coff*)
10016  dynamic_linker=no
10017  ;;
10018
10019# This must be Linux ELF.
10020linux*)
10021  version_type=linux
10022  need_lib_prefix=no
10023  need_version=no
10024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025  soname_spec='${libname}${release}${shared_ext}$major'
10026  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10027  shlibpath_var=LD_LIBRARY_PATH
10028  shlibpath_overrides_runpath=no
10029  # This implies no fast_install, which is unacceptable.
10030  # Some rework will be needed to allow for fast_install
10031  # before this can be enabled.
10032  hardcode_into_libs=yes
10033
10034  # Append ld.so.conf contents to the search path
10035  if test -f /etc/ld.so.conf; then
10036    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' ' '`
10037    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10038  fi
10039
10040  # We used to test for /lib/ld.so.1 and disable shared libraries on
10041  # powerpc, because MkLinux only supported shared libraries with the
10042  # GNU dynamic linker.  Since this was broken with cross compilers,
10043  # most powerpc-linux boxes support dynamic linking these days and
10044  # people can always --disable-shared, the test was removed, and we
10045  # assume the GNU/Linux dynamic linker is in use.
10046  dynamic_linker='GNU/Linux ld.so'
10047  ;;
10048
10049knetbsd*-gnu)
10050  version_type=linux
10051  need_lib_prefix=no
10052  need_version=no
10053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10054  soname_spec='${libname}${release}${shared_ext}$major'
10055  shlibpath_var=LD_LIBRARY_PATH
10056  shlibpath_overrides_runpath=no
10057  hardcode_into_libs=yes
10058  dynamic_linker='GNU ld.so'
10059  ;;
10060
10061netbsd*)
10062  version_type=sunos
10063  need_lib_prefix=no
10064  need_version=no
10065  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10066    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10067    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10068    dynamic_linker='NetBSD (a.out) ld.so'
10069  else
10070    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071    soname_spec='${libname}${release}${shared_ext}$major'
10072    dynamic_linker='NetBSD ld.elf_so'
10073  fi
10074  shlibpath_var=LD_LIBRARY_PATH
10075  shlibpath_overrides_runpath=yes
10076  hardcode_into_libs=yes
10077  ;;
10078
10079newsos6)
10080  version_type=linux
10081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082  shlibpath_var=LD_LIBRARY_PATH
10083  shlibpath_overrides_runpath=yes
10084  ;;
10085
10086nto-qnx*)
10087  version_type=linux
10088  need_lib_prefix=no
10089  need_version=no
10090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091  soname_spec='${libname}${release}${shared_ext}$major'
10092  shlibpath_var=LD_LIBRARY_PATH
10093  shlibpath_overrides_runpath=yes
10094  ;;
10095
10096openbsd*)
10097  version_type=sunos
10098  sys_lib_dlsearch_path_spec="/usr/lib"
10099  need_lib_prefix=no
10100  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10101  case $host_os in
10102    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10103    *)                         need_version=no  ;;
10104  esac
10105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10106  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10107  shlibpath_var=LD_LIBRARY_PATH
10108  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10109    case $host_os in
10110      openbsd2.[89] | openbsd2.[89].*)
10111        shlibpath_overrides_runpath=no
10112        ;;
10113      *)
10114        shlibpath_overrides_runpath=yes
10115        ;;
10116      esac
10117  else
10118    shlibpath_overrides_runpath=yes
10119  fi
10120  ;;
10121
10122os2*)
10123  libname_spec='$name'
10124  shrext_cmds=".dll"
10125  need_lib_prefix=no
10126  library_names_spec='$libname${shared_ext} $libname.a'
10127  dynamic_linker='OS/2 ld.exe'
10128  shlibpath_var=LIBPATH
10129  ;;
10130
10131osf3* | osf4* | osf5*)
10132  version_type=osf
10133  need_lib_prefix=no
10134  need_version=no
10135  soname_spec='${libname}${release}${shared_ext}$major'
10136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137  shlibpath_var=LD_LIBRARY_PATH
10138  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10139  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10140  ;;
10141
10142solaris*)
10143  version_type=linux
10144  need_lib_prefix=no
10145  need_version=no
10146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147  soname_spec='${libname}${release}${shared_ext}$major'
10148  shlibpath_var=LD_LIBRARY_PATH
10149  shlibpath_overrides_runpath=yes
10150  hardcode_into_libs=yes
10151  # ldd complains unless libraries are executable
10152  postinstall_cmds='chmod +x $lib'
10153  ;;
10154
10155sunos4*)
10156  version_type=sunos
10157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10158  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10159  shlibpath_var=LD_LIBRARY_PATH
10160  shlibpath_overrides_runpath=yes
10161  if test "$with_gnu_ld" = yes; then
10162    need_lib_prefix=no
10163  fi
10164  need_version=yes
10165  ;;
10166
10167sysv4 | sysv4.3*)
10168  version_type=linux
10169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170  soname_spec='${libname}${release}${shared_ext}$major'
10171  shlibpath_var=LD_LIBRARY_PATH
10172  case $host_vendor in
10173    sni)
10174      shlibpath_overrides_runpath=no
10175      need_lib_prefix=no
10176      export_dynamic_flag_spec='${wl}-Blargedynsym'
10177      runpath_var=LD_RUN_PATH
10178      ;;
10179    siemens)
10180      need_lib_prefix=no
10181      ;;
10182    motorola)
10183      need_lib_prefix=no
10184      need_version=no
10185      shlibpath_overrides_runpath=no
10186      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10187      ;;
10188  esac
10189  ;;
10190
10191sysv4*MP*)
10192  if test -d /usr/nec ;then
10193    version_type=linux
10194    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10195    soname_spec='$libname${shared_ext}.$major'
10196    shlibpath_var=LD_LIBRARY_PATH
10197  fi
10198  ;;
10199
10200sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10201  version_type=freebsd-elf
10202  need_lib_prefix=no
10203  need_version=no
10204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10205  soname_spec='${libname}${release}${shared_ext}$major'
10206  shlibpath_var=LD_LIBRARY_PATH
10207  hardcode_into_libs=yes
10208  if test "$with_gnu_ld" = yes; then
10209    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10210    shlibpath_overrides_runpath=no
10211  else
10212    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10213    shlibpath_overrides_runpath=yes
10214    case $host_os in
10215      sco3.2v5*)
10216        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10217        ;;
10218    esac
10219  fi
10220  sys_lib_dlsearch_path_spec='/usr/lib'
10221  ;;
10222
10223uts4*)
10224  version_type=linux
10225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226  soname_spec='${libname}${release}${shared_ext}$major'
10227  shlibpath_var=LD_LIBRARY_PATH
10228  ;;
10229
10230*)
10231  dynamic_linker=no
10232  ;;
10233esac
10234echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10235echo "${ECHO_T}$dynamic_linker" >&6
10236test "$dynamic_linker" = no && can_build_shared=no
10237
10238variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10239if test "$GCC" = yes; then
10240  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10241fi
10242
10243echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10244echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10245hardcode_action=
10246if test -n "$hardcode_libdir_flag_spec" || \
10247   test -n "$runpath_var" || \
10248   test "X$hardcode_automatic" = "Xyes" ; then
10249
10250  # We can hardcode non-existant directories.
10251  if test "$hardcode_direct" != no &&
10252     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10253     # have to relink, otherwise we might link with an installed library
10254     # when we should be linking with a yet-to-be-installed one
10255     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10256     test "$hardcode_minus_L" != no; then
10257    # Linking always hardcodes the temporary library directory.
10258    hardcode_action=relink
10259  else
10260    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10261    hardcode_action=immediate
10262  fi
10263else
10264  # We cannot hardcode anything, or else we can only hardcode existing
10265  # directories.
10266  hardcode_action=unsupported
10267fi
10268echo "$as_me:$LINENO: result: $hardcode_action" >&5
10269echo "${ECHO_T}$hardcode_action" >&6
10270
10271if test "$hardcode_action" = relink; then
10272  # Fast installation is not supported
10273  enable_fast_install=no
10274elif test "$shlibpath_overrides_runpath" = yes ||
10275     test "$enable_shared" = no; then
10276  # Fast installation is not necessary
10277  enable_fast_install=needless
10278fi
10279
10280striplib=
10281old_striplib=
10282echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10283echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10284if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10285  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10286  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10287  echo "$as_me:$LINENO: result: yes" >&5
10288echo "${ECHO_T}yes" >&6
10289else
10290# FIXME - insert some real tests, host_os isn't really good enough
10291  case $host_os in
10292   darwin*)
10293       if test -n "$STRIP" ; then
10294         striplib="$STRIP -x"
10295         echo "$as_me:$LINENO: result: yes" >&5
10296echo "${ECHO_T}yes" >&6
10297       else
10298  echo "$as_me:$LINENO: result: no" >&5
10299echo "${ECHO_T}no" >&6
10300fi
10301       ;;
10302   *)
10303  echo "$as_me:$LINENO: result: no" >&5
10304echo "${ECHO_T}no" >&6
10305    ;;
10306  esac
10307fi
10308
10309if test "x$enable_dlopen" != xyes; then
10310  enable_dlopen=unknown
10311  enable_dlopen_self=unknown
10312  enable_dlopen_self_static=unknown
10313else
10314  lt_cv_dlopen=no
10315  lt_cv_dlopen_libs=
10316
10317  case $host_os in
10318  beos*)
10319    lt_cv_dlopen="load_add_on"
10320    lt_cv_dlopen_libs=
10321    lt_cv_dlopen_self=yes
10322    ;;
10323
10324  mingw* | pw32*)
10325    lt_cv_dlopen="LoadLibrary"
10326    lt_cv_dlopen_libs=
10327   ;;
10328
10329  cygwin*)
10330    lt_cv_dlopen="dlopen"
10331    lt_cv_dlopen_libs=
10332   ;;
10333
10334  darwin*)
10335  # if libdl is installed we need to link against it
10336    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10337echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10338if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10339  echo $ECHO_N "(cached) $ECHO_C" >&6
10340else
10341  ac_check_lib_save_LIBS=$LIBS
10342LIBS="-ldl  $LIBS"
10343cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h.  */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h.  */
10349
10350/* Override any gcc2 internal prototype to avoid an error.  */
10351#ifdef __cplusplus
10352extern "C"
10353#endif
10354/* We use char because int might match the return type of a gcc2
10355   builtin and then its argument prototype would still apply.  */
10356char dlopen ();
10357int
10358main ()
10359{
10360dlopen ();
10361  ;
10362  return 0;
10363}
10364_ACEOF
10365rm -f conftest.$ac_objext conftest$ac_exeext
10366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367  (eval $ac_link) 2>conftest.er1
10368  ac_status=$?
10369  grep -v '^ *+' conftest.er1 >conftest.err
10370  rm -f conftest.er1
10371  cat conftest.err >&5
10372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373  (exit $ac_status); } &&
10374         { ac_try='test -z "$ac_c_werror_flag"
10375                         || test ! -s conftest.err'
10376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377  (eval $ac_try) 2>&5
10378  ac_status=$?
10379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380  (exit $ac_status); }; } &&
10381         { ac_try='test -s conftest$ac_exeext'
10382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383  (eval $ac_try) 2>&5
10384  ac_status=$?
10385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386  (exit $ac_status); }; }; then
10387  ac_cv_lib_dl_dlopen=yes
10388else
10389  echo "$as_me: failed program was:" >&5
10390sed 's/^/| /' conftest.$ac_ext >&5
10391
10392ac_cv_lib_dl_dlopen=no
10393fi
10394rm -f conftest.err conftest.$ac_objext \
10395      conftest$ac_exeext conftest.$ac_ext
10396LIBS=$ac_check_lib_save_LIBS
10397fi
10398echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10399echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10400if test $ac_cv_lib_dl_dlopen = yes; then
10401  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10402else
10403
10404    lt_cv_dlopen="dyld"
10405    lt_cv_dlopen_libs=
10406    lt_cv_dlopen_self=yes
10407
10408fi
10409
10410   ;;
10411
10412  *)
10413    echo "$as_me:$LINENO: checking for shl_load" >&5
10414echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10415if test "${ac_cv_func_shl_load+set}" = set; then
10416  echo $ECHO_N "(cached) $ECHO_C" >&6
10417else
10418  cat >conftest.$ac_ext <<_ACEOF
10419/* confdefs.h.  */
10420_ACEOF
10421cat confdefs.h >>conftest.$ac_ext
10422cat >>conftest.$ac_ext <<_ACEOF
10423/* end confdefs.h.  */
10424/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10425   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10426#define shl_load innocuous_shl_load
10427
10428/* System header to define __stub macros and hopefully few prototypes,
10429    which can conflict with char shl_load (); below.
10430    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10431    <limits.h> exists even on freestanding compilers.  */
10432
10433#ifdef __STDC__
10434# include <limits.h>
10435#else
10436# include <assert.h>
10437#endif
10438
10439#undef shl_load
10440
10441/* Override any gcc2 internal prototype to avoid an error.  */
10442#ifdef __cplusplus
10443extern "C"
10444{
10445#endif
10446/* We use char because int might match the return type of a gcc2
10447   builtin and then its argument prototype would still apply.  */
10448char shl_load ();
10449/* The GNU C library defines this for functions which it implements
10450    to always fail with ENOSYS.  Some functions are actually named
10451    something starting with __ and the normal name is an alias.  */
10452#if defined (__stub_shl_load) || defined (__stub___shl_load)
10453choke me
10454#else
10455char (*f) () = shl_load;
10456#endif
10457#ifdef __cplusplus
10458}
10459#endif
10460
10461int
10462main ()
10463{
10464return f != shl_load;
10465  ;
10466  return 0;
10467}
10468_ACEOF
10469rm -f conftest.$ac_objext conftest$ac_exeext
10470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10471  (eval $ac_link) 2>conftest.er1
10472  ac_status=$?
10473  grep -v '^ *+' conftest.er1 >conftest.err
10474  rm -f conftest.er1
10475  cat conftest.err >&5
10476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477  (exit $ac_status); } &&
10478         { ac_try='test -z "$ac_c_werror_flag"
10479                         || test ! -s conftest.err'
10480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481  (eval $ac_try) 2>&5
10482  ac_status=$?
10483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484  (exit $ac_status); }; } &&
10485         { ac_try='test -s conftest$ac_exeext'
10486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487  (eval $ac_try) 2>&5
10488  ac_status=$?
10489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490  (exit $ac_status); }; }; then
10491  ac_cv_func_shl_load=yes
10492else
10493  echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496ac_cv_func_shl_load=no
10497fi
10498rm -f conftest.err conftest.$ac_objext \
10499      conftest$ac_exeext conftest.$ac_ext
10500fi
10501echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10502echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10503if test $ac_cv_func_shl_load = yes; then
10504  lt_cv_dlopen="shl_load"
10505else
10506  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10507echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10508if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10509  echo $ECHO_N "(cached) $ECHO_C" >&6
10510else
10511  ac_check_lib_save_LIBS=$LIBS
10512LIBS="-ldld  $LIBS"
10513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h.  */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h.  */
10519
10520/* Override any gcc2 internal prototype to avoid an error.  */
10521#ifdef __cplusplus
10522extern "C"
10523#endif
10524/* We use char because int might match the return type of a gcc2
10525   builtin and then its argument prototype would still apply.  */
10526char shl_load ();
10527int
10528main ()
10529{
10530shl_load ();
10531  ;
10532  return 0;
10533}
10534_ACEOF
10535rm -f conftest.$ac_objext conftest$ac_exeext
10536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537  (eval $ac_link) 2>conftest.er1
10538  ac_status=$?
10539  grep -v '^ *+' conftest.er1 >conftest.err
10540  rm -f conftest.er1
10541  cat conftest.err >&5
10542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543  (exit $ac_status); } &&
10544         { ac_try='test -z "$ac_c_werror_flag"
10545                         || test ! -s conftest.err'
10546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547  (eval $ac_try) 2>&5
10548  ac_status=$?
10549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550  (exit $ac_status); }; } &&
10551         { ac_try='test -s conftest$ac_exeext'
10552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553  (eval $ac_try) 2>&5
10554  ac_status=$?
10555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556  (exit $ac_status); }; }; then
10557  ac_cv_lib_dld_shl_load=yes
10558else
10559  echo "$as_me: failed program was:" >&5
10560sed 's/^/| /' conftest.$ac_ext >&5
10561
10562ac_cv_lib_dld_shl_load=no
10563fi
10564rm -f conftest.err conftest.$ac_objext \
10565      conftest$ac_exeext conftest.$ac_ext
10566LIBS=$ac_check_lib_save_LIBS
10567fi
10568echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10569echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10570if test $ac_cv_lib_dld_shl_load = yes; then
10571  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10572else
10573  echo "$as_me:$LINENO: checking for dlopen" >&5
10574echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10575if test "${ac_cv_func_dlopen+set}" = set; then
10576  echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578  cat >conftest.$ac_ext <<_ACEOF
10579/* confdefs.h.  */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h.  */
10584/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10585   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10586#define dlopen innocuous_dlopen
10587
10588/* System header to define __stub macros and hopefully few prototypes,
10589    which can conflict with char dlopen (); below.
10590    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10591    <limits.h> exists even on freestanding compilers.  */
10592
10593#ifdef __STDC__
10594# include <limits.h>
10595#else
10596# include <assert.h>
10597#endif
10598
10599#undef dlopen
10600
10601/* Override any gcc2 internal prototype to avoid an error.  */
10602#ifdef __cplusplus
10603extern "C"
10604{
10605#endif
10606/* We use char because int might match the return type of a gcc2
10607   builtin and then its argument prototype would still apply.  */
10608char dlopen ();
10609/* The GNU C library defines this for functions which it implements
10610    to always fail with ENOSYS.  Some functions are actually named
10611    something starting with __ and the normal name is an alias.  */
10612#if defined (__stub_dlopen) || defined (__stub___dlopen)
10613choke me
10614#else
10615char (*f) () = dlopen;
10616#endif
10617#ifdef __cplusplus
10618}
10619#endif
10620
10621int
10622main ()
10623{
10624return f != dlopen;
10625  ;
10626  return 0;
10627}
10628_ACEOF
10629rm -f conftest.$ac_objext conftest$ac_exeext
10630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631  (eval $ac_link) 2>conftest.er1
10632  ac_status=$?
10633  grep -v '^ *+' conftest.er1 >conftest.err
10634  rm -f conftest.er1
10635  cat conftest.err >&5
10636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637  (exit $ac_status); } &&
10638         { ac_try='test -z "$ac_c_werror_flag"
10639                         || test ! -s conftest.err'
10640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641  (eval $ac_try) 2>&5
10642  ac_status=$?
10643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644  (exit $ac_status); }; } &&
10645         { ac_try='test -s conftest$ac_exeext'
10646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647  (eval $ac_try) 2>&5
10648  ac_status=$?
10649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650  (exit $ac_status); }; }; then
10651  ac_cv_func_dlopen=yes
10652else
10653  echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
10656ac_cv_func_dlopen=no
10657fi
10658rm -f conftest.err conftest.$ac_objext \
10659      conftest$ac_exeext conftest.$ac_ext
10660fi
10661echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10662echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10663if test $ac_cv_func_dlopen = yes; then
10664  lt_cv_dlopen="dlopen"
10665else
10666  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10667echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10668if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10669  echo $ECHO_N "(cached) $ECHO_C" >&6
10670else
10671  ac_check_lib_save_LIBS=$LIBS
10672LIBS="-ldl  $LIBS"
10673cat >conftest.$ac_ext <<_ACEOF
10674/* confdefs.h.  */
10675_ACEOF
10676cat confdefs.h >>conftest.$ac_ext
10677cat >>conftest.$ac_ext <<_ACEOF
10678/* end confdefs.h.  */
10679
10680/* Override any gcc2 internal prototype to avoid an error.  */
10681#ifdef __cplusplus
10682extern "C"
10683#endif
10684/* We use char because int might match the return type of a gcc2
10685   builtin and then its argument prototype would still apply.  */
10686char dlopen ();
10687int
10688main ()
10689{
10690dlopen ();
10691  ;
10692  return 0;
10693}
10694_ACEOF
10695rm -f conftest.$ac_objext conftest$ac_exeext
10696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10697  (eval $ac_link) 2>conftest.er1
10698  ac_status=$?
10699  grep -v '^ *+' conftest.er1 >conftest.err
10700  rm -f conftest.er1
10701  cat conftest.err >&5
10702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703  (exit $ac_status); } &&
10704         { ac_try='test -z "$ac_c_werror_flag"
10705                         || test ! -s conftest.err'
10706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707  (eval $ac_try) 2>&5
10708  ac_status=$?
10709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710  (exit $ac_status); }; } &&
10711         { ac_try='test -s conftest$ac_exeext'
10712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713  (eval $ac_try) 2>&5
10714  ac_status=$?
10715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716  (exit $ac_status); }; }; then
10717  ac_cv_lib_dl_dlopen=yes
10718else
10719  echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722ac_cv_lib_dl_dlopen=no
10723fi
10724rm -f conftest.err conftest.$ac_objext \
10725      conftest$ac_exeext conftest.$ac_ext
10726LIBS=$ac_check_lib_save_LIBS
10727fi
10728echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10729echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10730if test $ac_cv_lib_dl_dlopen = yes; then
10731  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"