source: stable/1.16/Clp/configure @ 2267

Last change on this file since 2267 was 2267, checked in by stefan, 2 years ago

temporarily committing release candidate

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