source: stable/1.15/Clp/configure @ 1979

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

Re-running autotools

  • Property svn:executable set to *
File size: 1.0 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.15.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.15'
433PACKAGE_STRING='Clp 1.15'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE COIN_HAS_ABC_TRUE COIN_HAS_ABC_FALSE AMDINCDIR AMDLIB COIN_HAS_AMD_TRUE COIN_HAS_AMD_FALSE CHOLMODINCDIR CHOLMODLIB COIN_HAS_CHOLMOD_TRUE COIN_HAS_CHOLMOD_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS MPIF77 FLIBS BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_WSMP_TRUE COIN_HAS_WSMP_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1001ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1002ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1003ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1004ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1005ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1006ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1007ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1008ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1009ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1010ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1011ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016
1017#
1018# Report the --help message.
1019#
1020if test "$ac_init_help" = "long"; then
1021  # Omit some internal or obsolete options to make the list less imposing.
1022  # This message is too long to be a string in the A/UX 3.1 sh.
1023  cat <<_ACEOF
1024\`configure' configures Clp 1.15 to adapt to many kinds of systems.
1025
1026Usage: $0 [OPTION]... [VAR=VALUE]...
1027
1028To assign environment variables (e.g., CC, CFLAGS...), specify them as
1029VAR=VALUE.  See below for descriptions of some of the useful variables.
1030
1031Defaults for the options are specified in brackets.
1032
1033Configuration:
1034  -h, --help              display this help and exit
1035      --help=short        display options specific to this package
1036      --help=recursive    display the short help of all the included packages
1037  -V, --version           display version information and exit
1038  -q, --quiet, --silent   do not print \`checking...' messages
1039      --cache-file=FILE   cache test results in FILE [disabled]
1040  -C, --config-cache      alias for \`--cache-file=config.cache'
1041  -n, --no-create         do not create output files
1042      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1043
1044_ACEOF
1045
1046  cat <<_ACEOF
1047Installation directories:
1048  --prefix=PREFIX         install architecture-independent files in PREFIX
1049                          [$ac_default_prefix]
1050  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1051                          [PREFIX]
1052
1053By default, \`make install' will install all the files in
1054\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1055an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1056for instance \`--prefix=\$HOME'.
1057
1058For better control, use the options below.
1059
1060Fine tuning of the installation directories:
1061  --bindir=DIR           user executables [EPREFIX/bin]
1062  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1063  --libexecdir=DIR       program executables [EPREFIX/libexec]
1064  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1065  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1066  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1067  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1068  --libdir=DIR           object code libraries [EPREFIX/lib]
1069  --includedir=DIR       C header files [PREFIX/include]
1070  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1071  --infodir=DIR          info documentation [PREFIX/info]
1072  --mandir=DIR           man documentation [PREFIX/man]
1073_ACEOF
1074
1075  cat <<\_ACEOF
1076
1077Program names:
1078  --program-prefix=PREFIX            prepend PREFIX to installed program names
1079  --program-suffix=SUFFIX            append SUFFIX to installed program names
1080  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1081
1082System types:
1083  --build=BUILD     configure for building on BUILD [guessed]
1084  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1085_ACEOF
1086fi
1087
1088if test -n "$ac_init_help"; then
1089  case $ac_init_help in
1090     short | recursive ) echo "Configuration of Clp 1.15:";;
1091   esac
1092  cat <<\_ACEOF
1093
1094Optional Features:
1095  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1096  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1097  --enable-debug          compile all projects with debug options tests
1098                          (implies --disable-shared)
1099  --enable-debug-clp compile project Clp with debug compiler flags
1100  --enable-doscompile     Under Cygwin, compile so that executables run under
1101                          DOS. Set to mingw to use gcc/g++/ld with
1102                          -mno-cygwin. Set to msvc to use cl/link (or
1103                          icl/link). Default when mentioned: mingw. Default
1104                          when not mentioned: disabled.
1105  --enable-static[=PKGS]
1106                          build static libraries [default=no]
1107  --disable-dependency-tracking  speeds up one-time build
1108  --enable-dependency-tracking   do not reject slow dependency extractors
1109  --enable-maintainer-mode  enable make rules and dependencies not useful
1110                          (and sometimes confusing) to the casual installer
1111  --enable-shared[=PKGS]
1112                          build shared libraries [default=yes]
1113  --enable-fast-install[=PKGS]
1114                          optimize for fast installation [default=yes]
1115  --disable-libtool-lock  avoid locking (might break parallel builds)
1116  --disable-pkg-config    disable use of pkg-config (if available)
1117  --disable-interpackage-dependencies
1118                          disables deduction of Makefile dependencies from
1119                          package linker flags
1120  --enable-aboca          enables build of Aboca solver (set to 1,2,3,4)
1121  --disable-amd-libcheck skip the link check at configuration time
1122  --disable-cholmod-libcheck
1123                          skip the link check at configuration time
1124  --enable-gnu-packages   compile with GNU packages (disabled by default)
1125
1126Optional Packages:
1127  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1128  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1129  --with-clp-verbosity specify the debug verbosity level for project Clp
1130  --with-clp-checklevel specify the sanity check level for project Clp
1131  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1132  --with-pic              try to use only PIC/non-PIC objects [default=use
1133                          both]
1134  --with-tags[=TAGS]
1135                          include additional configurations [automatic]
1136  --with-coin-instdir     prefix of installation directory for precompiled
1137                          COIN packages
1138
1139  --with-coinutils-lib linker flags for using package CoinUtils
1140  --with-coinutils-incdir directory with header files for using package
1141                          CoinUtils
1142  --with-coinutils-datadir
1143                          directory with data files for using package
1144                          CoinUtils
1145  --with-osi-lib linker flags for using package Osi
1146  --with-osi-incdir directory with header files for using package Osi
1147  --with-osi-datadir directory with data files for using package Osi
1148  --with-ositests-lib linker flags for using package OsiTests
1149  --with-ositests-incdir directory with header files for using package
1150                          OsiTests
1151  --with-ositests-datadir directory with data files for using package OsiTests
1152  --with-sample-lib linker flags for using package Sample
1153  --with-sample-incdir directory with header files for using package Sample
1154  --with-sample-datadir directory with data files for using package Sample
1155  --with-netlib-lib linker flags for using package Netlib
1156  --with-netlib-incdir directory with header files for using package Netlib
1157  --with-netlib-datadir directory with data files for using package Netlib
1158  --with-amd-incdir specify the header file directory for library AMD
1159  --with-amd-lib specify the flags used to link with the library AMD
1160  --with-cholmod-incdir specify the header file directory for library CHOLMOD
1161  --with-cholmod-lib specify the flags used to link with the library CHOLMOD
1162  --with-glpk-lib linker flags for using package Glpk
1163  --with-glpk-incdir directory with header files for using package Glpk
1164  --with-glpk-datadir directory with data files for using package Glpk
1165  --with-mumps-lib linker flags for using package Mumps
1166  --with-mumps-incdir directory with header files for using package Mumps
1167  --with-mumps-datadir directory with data files for using package Mumps
1168  --with-wsmp             specify WSMP library
1169  --with-blas             specify BLAS library (or BUILD to enforce use of
1170                          ThirdParty/Blas)
1171  --with-blas-lib linker flags for using package Blas
1172  --with-blas-incdir directory with header files for using package Blas
1173  --with-blas-datadir directory with data files for using package Blas
1174  --with-dot              use dot (from graphviz) when creating documentation
1175                          with doxygen if available; --without-dot to disable
1176
1177Some influential environment variables:
1178  CDEFS       Additional -D flags to be used when compiling C code.
1179  ADD_CFLAGS  Additional C compiler options
1180  DBG_CFLAGS  Debug C compiler options
1181  OPT_CFLAGS  Optimize C compiler options
1182  CC          C compiler command
1183  CFLAGS      C compiler flags
1184  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1185              nonstandard directory <lib dir>
1186  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1187              headers in a nonstandard directory <include dir>
1188  MPICC       C MPI Compiler
1189  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1190  ADD_CXXFLAGS
1191              Additional C++ compiler options
1192  DBG_CXXFLAGS
1193              Debug C++ compiler options
1194  OPT_CXXFLAGS
1195              Optimize C++ compiler options
1196  CXX         C++ compiler command
1197  CXXFLAGS    C++ compiler flags
1198  MPICXX      C++ MPI Compiler
1199  CPP         C preprocessor
1200  CXXCPP      C++ preprocessor
1201  F77         Fortran 77 compiler command
1202  FFLAGS      Fortran 77 compiler flags
1203  PKG_CONFIG  path to pkg-config utility
1204  ADD_FFLAGS  Additional Fortran compiler options
1205  DBG_FFLAGS  Debug Fortran compiler options
1206  OPT_FFLAGS  Optimize Fortran compiler options
1207  MPIF77      Fortran MPI Compiler
1208
1209Use these variables to override the choices made by `configure' or to help
1210it to find libraries and programs with nonstandard names/locations.
1211
1212Report bugs to <clp@list.coin-or.org>.
1213_ACEOF
1214fi
1215
1216if test "$ac_init_help" = "recursive"; then
1217  # If there are subdirs, report their specific --help.
1218  ac_popdir=`pwd`
1219  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1220    test -d $ac_dir || continue
1221    ac_builddir=.
1222
1223if test "$ac_dir" != .; then
1224  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1225  # A "../" for each directory in $ac_dir_suffix.
1226  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1227else
1228  ac_dir_suffix= ac_top_builddir=
1229fi
1230
1231case $srcdir in
1232  .)  # No --srcdir option.  We are building in place.
1233    ac_srcdir=.
1234    if test -z "$ac_top_builddir"; then
1235       ac_top_srcdir=.
1236    else
1237       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1238    fi ;;
1239  [\\/]* | ?:[\\/]* )  # Absolute path.
1240    ac_srcdir=$srcdir$ac_dir_suffix;
1241    ac_top_srcdir=$srcdir ;;
1242  *) # Relative path.
1243    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1244    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1245esac
1246
1247# Do not use `cd foo && pwd` to compute absolute paths, because
1248# the directories may not exist.
1249case `pwd` in
1250.) ac_abs_builddir="$ac_dir";;
1251*)
1252  case "$ac_dir" in
1253  .) ac_abs_builddir=`pwd`;;
1254  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1255  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1256  esac;;
1257esac
1258case $ac_abs_builddir in
1259.) ac_abs_top_builddir=${ac_top_builddir}.;;
1260*)
1261  case ${ac_top_builddir}. in
1262  .) ac_abs_top_builddir=$ac_abs_builddir;;
1263  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1264  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1265  esac;;
1266esac
1267case $ac_abs_builddir in
1268.) ac_abs_srcdir=$ac_srcdir;;
1269*)
1270  case $ac_srcdir in
1271  .) ac_abs_srcdir=$ac_abs_builddir;;
1272  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1273  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1274  esac;;
1275esac
1276case $ac_abs_builddir in
1277.) ac_abs_top_srcdir=$ac_top_srcdir;;
1278*)
1279  case $ac_top_srcdir in
1280  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1281  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1282  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1283  esac;;
1284esac
1285
1286    cd $ac_dir
1287    # Check for guested configure; otherwise get Cygnus style configure.
1288    if test -f $ac_srcdir/configure.gnu; then
1289      echo
1290      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1291    elif test -f $ac_srcdir/configure; then
1292      echo
1293      $SHELL $ac_srcdir/configure  --help=recursive
1294    elif test -f $ac_srcdir/configure.ac ||
1295           test -f $ac_srcdir/configure.in; then
1296      echo
1297      $ac_configure --help
1298    else
1299      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1300    fi
1301    cd $ac_popdir
1302  done
1303fi
1304
1305test -n "$ac_init_help" && exit 0
1306if $ac_init_version; then
1307  cat <<\_ACEOF
1308Clp configure 1.15
1309generated by GNU Autoconf 2.59
1310
1311Copyright (C) 2003 Free Software Foundation, Inc.
1312This configure script is free software; the Free Software Foundation
1313gives unlimited permission to copy, distribute and modify it.
1314
1315
1316Copyright 2006 International Business Machines and others.
1317All Rights Reserved.
1318This file is part of the open source package Coin which is distributed
1319under the Eclipse Public License.
1320_ACEOF
1321  exit 0
1322fi
1323exec 5>config.log
1324cat >&5 <<_ACEOF
1325This file contains any messages produced by compilers while
1326running configure, to aid debugging if configure makes a mistake.
1327
1328It was created by Clp $as_me 1.15, which was
1329generated by GNU Autoconf 2.59.  Invocation command line was
1330
1331  $ $0 $@
1332
1333_ACEOF
1334{
1335cat <<_ASUNAME
1336## --------- ##
1337## Platform. ##
1338## --------- ##
1339
1340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1341uname -m = `(uname -m) 2>/dev/null || echo unknown`
1342uname -r = `(uname -r) 2>/dev/null || echo unknown`
1343uname -s = `(uname -s) 2>/dev/null || echo unknown`
1344uname -v = `(uname -v) 2>/dev/null || echo unknown`
1345
1346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1347/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1348
1349/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1350/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1352hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1353/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1354/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1355/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1356
1357_ASUNAME
1358
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  echo "PATH: $as_dir"
1365done
1366
1367} >&5
1368
1369cat >&5 <<_ACEOF
1370
1371
1372## ----------- ##
1373## Core tests. ##
1374## ----------- ##
1375
1376_ACEOF
1377
1378
1379# Keep a trace of the command line.
1380# Strip out --no-create and --no-recursion so they do not pile up.
1381# Strip out --silent because we don't want to record it for future runs.
1382# Also quote any args containing shell meta-characters.
1383# Make two passes to allow for proper duplicate-argument suppression.
1384ac_configure_args=
1385ac_configure_args0=
1386ac_configure_args1=
1387ac_sep=
1388ac_must_keep_next=false
1389for ac_pass in 1 2
1390do
1391  for ac_arg
1392  do
1393    case $ac_arg in
1394    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1395    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396    | -silent | --silent | --silen | --sile | --sil)
1397      continue ;;
1398    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1400    esac
1401    case $ac_pass in
1402    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1403    2)
1404      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1405      if test $ac_must_keep_next = true; then
1406        ac_must_keep_next=false # Got value, back to normal.
1407      else
1408        case $ac_arg in
1409          *=* | --config-cache | -C | -disable-* | --disable-* \
1410          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1411          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1412          | -with-* | --with-* | -without-* | --without-* | --x)
1413            case "$ac_configure_args0 " in
1414              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1415            esac
1416            ;;
1417          -* ) ac_must_keep_next=true ;;
1418        esac
1419      fi
1420      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1421      # Get rid of the leading space.
1422      ac_sep=" "
1423      ;;
1424    esac
1425  done
1426done
1427$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1428$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429
1430# When interrupted or exit'd, cleanup temporary files, and complete
1431# config.log.  We remove comments because anyway the quotes in there
1432# would cause problems or look ugly.
1433# WARNING: Be sure not to use single quotes in there, as some shells,
1434# such as our DU 5.0 friend, will then `close' the trap.
1435trap 'exit_status=$?
1436  # Save into config.log some information that might help in debugging.
1437  {
1438    echo
1439
1440    cat <<\_ASBOX
1441## ---------------- ##
1442## Cache variables. ##
1443## ---------------- ##
1444_ASBOX
1445    echo
1446    # The following way of writing the cache mishandles newlines in values,
1447{
1448  (set) 2>&1 |
1449    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1450    *ac_space=\ *)
1451      sed -n \
1452        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1453          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1454      ;;
1455    *)
1456      sed -n \
1457        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1458      ;;
1459    esac;
1460}
1461    echo
1462
1463    cat <<\_ASBOX
1464## ----------------- ##
1465## Output variables. ##
1466## ----------------- ##
1467_ASBOX
1468    echo
1469    for ac_var in $ac_subst_vars
1470    do
1471      eval ac_val=$`echo $ac_var`
1472      echo "$ac_var='"'"'$ac_val'"'"'"
1473    done | sort
1474    echo
1475
1476    if test -n "$ac_subst_files"; then
1477      cat <<\_ASBOX
1478## ------------- ##
1479## Output files. ##
1480## ------------- ##
1481_ASBOX
1482      echo
1483      for ac_var in $ac_subst_files
1484      do
1485        eval ac_val=$`echo $ac_var`
1486        echo "$ac_var='"'"'$ac_val'"'"'"
1487      done | sort
1488      echo
1489    fi
1490
1491    if test -s confdefs.h; then
1492      cat <<\_ASBOX
1493## ----------- ##
1494## confdefs.h. ##
1495## ----------- ##
1496_ASBOX
1497      echo
1498      sed "/^$/d" confdefs.h | sort
1499      echo
1500    fi
1501    test "$ac_signal" != 0 &&
1502      echo "$as_me: caught signal $ac_signal"
1503    echo "$as_me: exit $exit_status"
1504  } >&5
1505  rm -f core *.core &&
1506  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1507    exit $exit_status
1508     ' 0
1509for ac_signal in 1 2 13 15; do
1510  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1511done
1512ac_signal=0
1513
1514# confdefs.h avoids OS command line length limits that DEFS can exceed.
1515rm -rf conftest* confdefs.h
1516# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1517echo >confdefs.h
1518
1519# Predefined preprocessor variables.
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_NAME "$PACKAGE_NAME"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_VERSION "$PACKAGE_VERSION"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_STRING "$PACKAGE_STRING"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1543_ACEOF
1544
1545
1546# Let the site file select an alternate cache file if it wants to.
1547# Prefer explicitly selected file to automatically selected ones.
1548if test -z "$CONFIG_SITE"; then
1549  if test "x$prefix" != xNONE; then
1550    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1551  else
1552    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1553  fi
1554fi
1555for ac_site_file in $CONFIG_SITE; do
1556  if test -r "$ac_site_file"; then
1557    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1558echo "$as_me: loading site script $ac_site_file" >&6;}
1559    sed 's/^/| /' "$ac_site_file" >&5
1560    . "$ac_site_file"
1561  fi
1562done
1563
1564if test -r "$cache_file"; then
1565  # Some versions of bash will fail to source /dev/null (special
1566  # files actually), so we avoid doing that.
1567  if test -f "$cache_file"; then
1568    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1569echo "$as_me: loading cache $cache_file" >&6;}
1570    case $cache_file in
1571      [\\/]* | ?:[\\/]* ) . $cache_file;;
1572      *)                      . ./$cache_file;;
1573    esac
1574  fi
1575else
1576  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1577echo "$as_me: creating cache $cache_file" >&6;}
1578  >$cache_file
1579fi
1580
1581# Check that the precious variables saved in the cache have kept the same
1582# value.
1583ac_cache_corrupted=false
1584for ac_var in `(set) 2>&1 |
1585               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1587  eval ac_new_set=\$ac_env_${ac_var}_set
1588  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1589  eval ac_new_val="\$ac_env_${ac_var}_value"
1590  case $ac_old_set,$ac_new_set in
1591    set,)
1592      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1593echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1594      ac_cache_corrupted=: ;;
1595    ,set)
1596      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1597echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1598      ac_cache_corrupted=: ;;
1599    ,);;
1600    *)
1601      if test "x$ac_old_val" != "x$ac_new_val"; then
1602        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1603echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1604        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1605echo "$as_me:   former value:  $ac_old_val" >&2;}
1606        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1607echo "$as_me:   current value: $ac_new_val" >&2;}
1608        ac_cache_corrupted=:
1609      fi;;
1610  esac
1611  # Pass precious variables to config.status.
1612  if test "$ac_new_set" = set; then
1613    case $ac_new_val in
1614    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1615      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1616    *) ac_arg=$ac_var=$ac_new_val ;;
1617    esac
1618    case " $ac_configure_args " in
1619      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1620      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1621    esac
1622  fi
1623done
1624if $ac_cache_corrupted; then
1625  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1626echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1627  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1628echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1629   { (exit 1); exit 1; }; }
1630fi
1631
1632ac_ext=c
1633ac_cpp='$CPP $CPPFLAGS'
1634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636ac_compiler_gnu=$ac_cv_c_compiler_gnu
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667# List one file in the package so that the configure script can test
1668# whether the package is actually there
1669
1670
1671# Where should everything be installed by default?  Here, we want it
1672# to be installed directly in 'bin', 'lib', 'include' subdirectories
1673# of the directory where configure is run.  The default would be
1674# /usr/local.
1675
1676
1677#############################################################################
1678#                         Standard build tool stuff                         #
1679#############################################################################
1680
1681# Get the system type
1682ac_aux_dir=
1683for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1684  if test -f $ac_dir/install-sh; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/install-sh -c"
1687    break
1688  elif test -f $ac_dir/install.sh; then
1689    ac_aux_dir=$ac_dir
1690    ac_install_sh="$ac_aux_dir/install.sh -c"
1691    break
1692  elif test -f $ac_dir/shtool; then
1693    ac_aux_dir=$ac_dir
1694    ac_install_sh="$ac_aux_dir/shtool install -c"
1695    break
1696  fi
1697done
1698if test -z "$ac_aux_dir"; then
1699  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1700echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1701   { (exit 1); exit 1; }; }
1702fi
1703ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1704ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1705ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1706
1707# Make sure we can run config.sub.
1708$ac_config_sub sun4 >/dev/null 2>&1 ||
1709  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1710echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1711   { (exit 1); exit 1; }; }
1712
1713echo "$as_me:$LINENO: checking build system type" >&5
1714echo $ECHO_N "checking build system type... $ECHO_C" >&6
1715if test "${ac_cv_build+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  ac_cv_build_alias=$build_alias
1719test -z "$ac_cv_build_alias" &&
1720  ac_cv_build_alias=`$ac_config_guess`
1721test -z "$ac_cv_build_alias" &&
1722  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1723echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1724   { (exit 1); exit 1; }; }
1725ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1726  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1727echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730fi
1731echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1732echo "${ECHO_T}$ac_cv_build" >&6
1733build=$ac_cv_build
1734build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
1738
1739
1740# If this project depends on external projects, the Externals file in
1741# the source root directory contains definition of where to find those
1742# externals.  The following macro ensures that those externals are
1743# retrieved by svn if they are not there yet.
1744
1745# As backup, we make sure we don't loose an FLIBS if it has been set
1746# by the user
1747save_FLIBS="$FLIBS"
1748
1749# A useful makefile conditional that is always false
1750
1751
1752if false; then
1753  ALWAYS_FALSE_TRUE=
1754  ALWAYS_FALSE_FALSE='#'
1755else
1756  ALWAYS_FALSE_TRUE='#'
1757  ALWAYS_FALSE_FALSE=
1758fi
1759
1760
1761# We set the following variable so that we know later in AC_COIN_FINALIZE
1762# that we are in a project main directory
1763coin_projectdir=yes
1764
1765# Set the project's version numbers
1766
1767
1768cat >>confdefs.h <<_ACEOF
1769#define CLP_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
1772
1773  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1774  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1775  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1776  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1777  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1778  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1779
1780cat >>confdefs.h <<_ACEOF
1781#define CLP_VERSION_MAJOR $coin_majorver
1782_ACEOF
1783
1784
1785cat >>confdefs.h <<_ACEOF
1786#define CLP_VERSION_MINOR $coin_minorver
1787_ACEOF
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define CLP_VERSION_RELEASE $coin_releasever
1792_ACEOF
1793
1794
1795  # We use the following variable to have a string with the upper case
1796  # version of the project name
1797  COIN_PRJCT=CLP
1798
1799  # Set the project's SVN revision number. The complicated sed expression
1800  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1801  # as a single number.
1802  # Extract the first word of "svnversion", so it can be a program name with args.
1803set dummy svnversion; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_have_svnversion+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  if test -n "$have_svnversion"; then
1810  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815  IFS=$as_save_IFS
1816  test -z "$as_dir" && as_dir=.
1817  for ac_exec_ext in '' $ac_executable_extensions; do
1818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819    ac_cv_prog_have_svnversion="yes"
1820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821    break 2
1822  fi
1823done
1824done
1825
1826  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1827fi
1828fi
1829have_svnversion=$ac_cv_prog_have_svnversion
1830if test -n "$have_svnversion"; then
1831  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1832echo "${ECHO_T}$have_svnversion" >&6
1833else
1834  echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838  if test "x$have_svnversion" = xyes; then
1839
1840    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1841    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1842      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1843
1844cat >>confdefs.h <<_ACEOF
1845#define CLP_SVN_REV $CLP_SVN_REV
1846_ACEOF
1847
1848    fi
1849  fi
1850
1851
1852
1853# Capture libtool library version, if given.
1854
1855
1856
1857
1858# Check if user wants to produce debugging code
1859
1860echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1861echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1862
1863# Check whether --enable-debug or --disable-debug was given.
1864if test "${enable_debug+set}" = set; then
1865  enableval="$enable_debug"
1866  case "${enableval}" in
1867   yes) coin_debug_compile=true
1868        if test "${enable_shared+set}" = set; then :; else
1869          enable_shared=no
1870        fi
1871        ;;
1872   no)  coin_debug_compile=false
1873        ;;
1874   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1875echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1876   { (exit 1); exit 1; }; }
1877        ;;
1878esac
1879else
1880  coin_debug_compile=false
1881fi;
1882
1883# Check whether --enable-debug-clp or --disable-debug-clp was given.
1884if test "${enable_debug_clp+set}" = set; then
1885  enableval="$enable_debug_clp"
1886  case "${enableval}" in
1887    yes) coin_debug_compile=true
1888         ;;
1889    no)  coin_debug_compile=false
1890         ;;
1891    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1892echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1893   { (exit 1); exit 1; }; }
1894         ;;
1895 esac
1896else
1897  :
1898fi;
1899
1900 # m4_ifvaln([Clp],
1901
1902if test $coin_debug_compile = true; then
1903  echo "$as_me:$LINENO: result: yes" >&5
1904echo "${ECHO_T}yes" >&6
1905else
1906  echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6
1908fi
1909
1910
1911# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1912if test "${with_clp_verbosity+set}" = set; then
1913  withval="$with_clp_verbosity"
1914  if test "$withval" = yes; then
1915                withval=1
1916              fi
1917              coin_clp_verbosity=$withval
1918else
1919  coin_clp_verbosity=0
1920fi;
1921
1922cat >>confdefs.h <<_ACEOF
1923#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1924_ACEOF
1925
1926
1927
1928# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1929if test "${with_clp_checklevel+set}" = set; then
1930  withval="$with_clp_checklevel"
1931  if test "$withval" = yes; then
1932                withval=1
1933              fi
1934              coin_clp_checklevel=$withval
1935else
1936  coin_clp_checklevel=0
1937fi;
1938
1939cat >>confdefs.h <<_ACEOF
1940#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1941_ACEOF
1942
1943
1944 # m4_ifvaln([Clp],
1945
1946
1947
1948# Get the name of the C++ compiler and appropriate compiler options
1949case $build in
1950  *-mingw*)
1951    if test "${LD+set}" = set; then :; else
1952      LD=link
1953    fi
1954    ;;
1955 esac
1956 case $enable_doscompile in
1957   msvc)
1958     if test "x${LD+set}" = xset; then :; else
1959       LD=link
1960     fi
1961     ;;
1962 esac
1963
1964
1965 # Check whether --enable-doscompile or --disable-doscompile was given.
1966if test "${enable_doscompile+set}" = set; then
1967  enableval="$enable_doscompile"
1968  if test "$enable_doscompile" != no; then
1969     case $build in
1970       *-cygwin* | *-mingw*) ;;
1971       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1972echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1973   { (exit 1); exit 1; }; } ;;
1974     esac
1975   fi
1976else
1977  enable_doscompile=no
1978fi;
1979 case "$enable_doscompile" in
1980   mingw)
1981     case $build in
1982       *-mingw*) enable_doscompile=no ;;
1983     esac
1984     ;;
1985   msvc|no) ;;
1986   yes) enable_doscompile=mingw ;;
1987   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1988                    Try configure --help=recursive." >&5
1989echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1990                    Try configure --help=recursive." >&2;}
1991   { (exit 1); exit 1; }; }
1992      ;;
1993  esac
1994  if test "$enable_doscompile" != no ; then
1995    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1996echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1997  fi
1998
1999
2000
2001
2002ac_ext=c
2003ac_cpp='$CPP $CPPFLAGS'
2004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009# For consistency, we set the C compiler to the same value of the C++
2010# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2011if test x"$CXX" != x; then
2012  case "$CXX" in
2013    clang* ) ;;
2014    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2015      if test x"$CC" = x; then
2016        CC="$CXX"
2017        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2018echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2019      fi
2020      ;;
2021  esac
2022fi
2023
2024
2025
2026
2027
2028
2029coin_has_cc=yes
2030
2031save_cflags="$CFLAGS"
2032
2033# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2034# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2035# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2036# compiler. In this case, put cc after gcc.
2037
2038case $build in
2039  *-cygwin* | *-mingw*)
2040             if test "$enable_doscompile" = msvc ; then
2041               comps="icl cl"
2042             else
2043               comps="gcc cl"
2044             fi ;;
2045  *-*-solaris*)
2046             # Extract the first word of "cc", so it can be a program name with args.
2047set dummy cc; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$sol_cc_compiler"; then
2054  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2055else
2056  ac_prog_rejected=no
2057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058for as_dir in $PATH
2059do
2060  IFS=$as_save_IFS
2061  test -z "$as_dir" && as_dir=.
2062  for ac_exec_ext in '' $ac_executable_extensions; do
2063  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2065       ac_prog_rejected=yes
2066       continue
2067     fi
2068    ac_cv_prog_sol_cc_compiler="cc"
2069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070    break 2
2071  fi
2072done
2073done
2074
2075if test $ac_prog_rejected = yes; then
2076  # We found a bogon in the path, so make sure we never use it.
2077  set dummy $ac_cv_prog_sol_cc_compiler
2078  shift
2079  if test $# != 0; then
2080    # We chose a different compiler from the bogus one.
2081    # However, it has the same basename, so the bogon will be chosen
2082    # first if we set sol_cc_compiler to just the basename; use the full file name.
2083    shift
2084    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2085  fi
2086fi
2087fi
2088fi
2089sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2090if test -n "$sol_cc_compiler"; then
2091  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2092echo "${ECHO_T}$sol_cc_compiler" >&6
2093else
2094  echo "$as_me:$LINENO: result: no" >&5
2095echo "${ECHO_T}no" >&6
2096fi
2097
2098             if test "$sol_cc_compiler" = "cc" ; then
2099               comps="cc xlc gcc pgcc icc"
2100             else
2101               comps="xlc gcc pgcc icc cc"
2102             fi
2103             ;;
2104  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2105  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2106  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2107esac
2108
2109# We delete the cached value, since the test might not have been
2110# performed with our choice of compilers earlier
2111$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2112# AC_MSG_NOTICE([C compiler candidates: $comps])
2113ac_ext=c
2114ac_cpp='$CPP $CPPFLAGS'
2115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118if test -n "$ac_tool_prefix"; then
2119  for ac_prog in $comps
2120  do
2121    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2122set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2123echo "$as_me:$LINENO: checking for $ac_word" >&5
2124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125if test "${ac_cv_prog_CC+set}" = set; then
2126  echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128  if test -n "$CC"; then
2129  ac_cv_prog_CC="$CC" # Let the user override the test.
2130else
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134  IFS=$as_save_IFS
2135  test -z "$as_dir" && as_dir=.
2136  for ac_exec_ext in '' $ac_executable_extensions; do
2137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140    break 2
2141  fi
2142done
2143done
2144
2145fi
2146fi
2147CC=$ac_cv_prog_CC
2148if test -n "$CC"; then
2149  echo "$as_me:$LINENO: result: $CC" >&5
2150echo "${ECHO_T}$CC" >&6
2151else
2152  echo "$as_me:$LINENO: result: no" >&5
2153echo "${ECHO_T}no" >&6
2154fi
2155
2156    test -n "$CC" && break
2157  done
2158fi
2159if test -z "$CC"; then
2160  ac_ct_CC=$CC
2161  for ac_prog in $comps
2162do
2163  # Extract the first word of "$ac_prog", so it can be a program name with args.
2164set dummy $ac_prog; ac_word=$2
2165echo "$as_me:$LINENO: checking for $ac_word" >&5
2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2168  echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170  if test -n "$ac_ct_CC"; then
2171  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172else
2173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174for as_dir in $PATH
2175do
2176  IFS=$as_save_IFS
2177  test -z "$as_dir" && as_dir=.
2178  for ac_exec_ext in '' $ac_executable_extensions; do
2179  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180    ac_cv_prog_ac_ct_CC="$ac_prog"
2181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182    break 2
2183  fi
2184done
2185done
2186
2187fi
2188fi
2189ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190if test -n "$ac_ct_CC"; then
2191  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192echo "${ECHO_T}$ac_ct_CC" >&6
2193else
2194  echo "$as_me:$LINENO: result: no" >&5
2195echo "${ECHO_T}no" >&6
2196fi
2197
2198  test -n "$ac_ct_CC" && break
2199done
2200
2201  CC=$ac_ct_CC
2202fi
2203
2204
2205test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2206See \`config.log' for more details." >&5
2207echo "$as_me: error: no acceptable C compiler found in \$PATH
2208See \`config.log' for more details." >&2;}
2209   { (exit 1); exit 1; }; }
2210
2211# Provide some information about the compiler.
2212echo "$as_me:$LINENO:" \
2213     "checking for C compiler version" >&5
2214ac_compiler=`set X $ac_compile; echo $2`
2215{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2216  (eval $ac_compiler --version </dev/null >&5) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }
2220{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2221  (eval $ac_compiler -v </dev/null >&5) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }
2225{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2226  (eval $ac_compiler -V </dev/null >&5) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }
2230
2231cat >conftest.$ac_ext <<_ACEOF
2232/* confdefs.h.  */
2233_ACEOF
2234cat confdefs.h >>conftest.$ac_ext
2235cat >>conftest.$ac_ext <<_ACEOF
2236/* end confdefs.h.  */
2237
2238int
2239main ()
2240{
2241
2242  ;
2243  return 0;
2244}
2245_ACEOF
2246ac_clean_files_save=$ac_clean_files
2247ac_clean_files="$ac_clean_files a.out a.exe b.out"
2248# Try to create an executable without -o first, disregard a.out.
2249# It will help us diagnose broken compilers, and finding out an intuition
2250# of exeext.
2251echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2252echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2253ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2254if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2255  (eval $ac_link_default) 2>&5
2256  ac_status=$?
2257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258  (exit $ac_status); }; then
2259  # Find the output, starting from the most likely.  This scheme is
2260# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2261# resort.
2262
2263# Be careful to initialize this variable, since it used to be cached.
2264# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2265ac_cv_exeext=
2266# b.out is created by i960 compilers.
2267for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2268do
2269  test -f "$ac_file" || continue
2270  case $ac_file in
2271    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2272        ;;
2273    conftest.$ac_ext )
2274        # This is the source file.
2275        ;;
2276    [ab].out )
2277        # We found the default executable, but exeext='' is most
2278        # certainly right.
2279        break;;
2280    *.* )
2281        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282        # FIXME: I believe we export ac_cv_exeext for Libtool,
2283        # but it would be cool to find out if it's true.  Does anybody
2284        # maintain Libtool? --akim.
2285        export ac_cv_exeext
2286        break;;
2287    * )
2288        break;;
2289  esac
2290done
2291else
2292  echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2296See \`config.log' for more details." >&5
2297echo "$as_me: error: C compiler cannot create executables
2298See \`config.log' for more details." >&2;}
2299   { (exit 77); exit 77; }; }
2300fi
2301
2302ac_exeext=$ac_cv_exeext
2303echo "$as_me:$LINENO: result: $ac_file" >&5
2304echo "${ECHO_T}$ac_file" >&6
2305
2306# Check the compiler produces executables we can run.  If not, either
2307# the compiler is broken, or we cross compile.
2308echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2309echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2310# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2311# If not cross compiling, check that we can run a simple program.
2312if test "$cross_compiling" != yes; then
2313  if { ac_try='./$ac_file'
2314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315  (eval $ac_try) 2>&5
2316  ac_status=$?
2317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318  (exit $ac_status); }; }; then
2319    cross_compiling=no
2320  else
2321    if test "$cross_compiling" = maybe; then
2322        cross_compiling=yes
2323    else
2324        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2325If you meant to cross compile, use \`--host'.
2326See \`config.log' for more details." >&5
2327echo "$as_me: error: cannot run C compiled programs.
2328If you meant to cross compile, use \`--host'.
2329See \`config.log' for more details." >&2;}
2330   { (exit 1); exit 1; }; }
2331    fi
2332  fi
2333fi
2334echo "$as_me:$LINENO: result: yes" >&5
2335echo "${ECHO_T}yes" >&6
2336
2337rm -f a.out a.exe conftest$ac_cv_exeext b.out
2338ac_clean_files=$ac_clean_files_save
2339# Check the compiler produces executables we can run.  If not, either
2340# the compiler is broken, or we cross compile.
2341echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2342echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2343echo "$as_me:$LINENO: result: $cross_compiling" >&5
2344echo "${ECHO_T}$cross_compiling" >&6
2345
2346echo "$as_me:$LINENO: checking for suffix of executables" >&5
2347echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2349  (eval $ac_link) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; then
2353  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2354# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2355# work properly (i.e., refer to `conftest.exe'), while it won't with
2356# `rm'.
2357for ac_file in conftest.exe conftest conftest.*; do
2358  test -f "$ac_file" || continue
2359  case $ac_file in
2360    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2361    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362          export ac_cv_exeext
2363          break;;
2364    * ) break;;
2365  esac
2366done
2367else
2368  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2369See \`config.log' for more details." >&5
2370echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2371See \`config.log' for more details." >&2;}
2372   { (exit 1); exit 1; }; }
2373fi
2374
2375rm -f conftest$ac_cv_exeext
2376echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2377echo "${ECHO_T}$ac_cv_exeext" >&6
2378
2379rm -f conftest.$ac_ext
2380EXEEXT=$ac_cv_exeext
2381ac_exeext=$EXEEXT
2382echo "$as_me:$LINENO: checking for suffix of object files" >&5
2383echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2384if test "${ac_cv_objext+set}" = set; then
2385  echo $ECHO_N "(cached) $ECHO_C" >&6
2386else
2387  cat >conftest.$ac_ext <<_ACEOF
2388/* confdefs.h.  */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h.  */
2393
2394int
2395main ()
2396{
2397
2398  ;
2399  return 0;
2400}
2401_ACEOF
2402rm -f conftest.o conftest.obj
2403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404  (eval $ac_compile) 2>&5
2405  ac_status=$?
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); }; then
2408  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2409  case $ac_file in
2410    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2411    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2412       break;;
2413  esac
2414done
2415else
2416  echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
2419{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2420See \`config.log' for more details." >&5
2421echo "$as_me: error: cannot compute suffix of object files: cannot compile
2422See \`config.log' for more details." >&2;}
2423   { (exit 1); exit 1; }; }
2424fi
2425
2426rm -f conftest.$ac_cv_objext conftest.$ac_ext
2427fi
2428echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2429echo "${ECHO_T}$ac_cv_objext" >&6
2430OBJEXT=$ac_cv_objext
2431ac_objext=$OBJEXT
2432echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2433echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2434if test "${ac_cv_c_compiler_gnu+set}" = set; then
2435  echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437  cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h.  */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h.  */
2443
2444int
2445main ()
2446{
2447#ifndef __GNUC__
2448       choke me
2449#endif
2450
2451  ;
2452  return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457  (eval $ac_compile) 2>conftest.er1
2458  ac_status=$?
2459  grep -v '^ *+' conftest.er1 >conftest.err
2460  rm -f conftest.er1
2461  cat conftest.err >&5
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); } &&
2464         { ac_try='test -z "$ac_c_werror_flag"
2465                         || test ! -s conftest.err'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; } &&
2471         { ac_try='test -s conftest.$ac_objext'
2472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473  (eval $ac_try) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }; }; then
2477  ac_compiler_gnu=yes
2478else
2479  echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482ac_compiler_gnu=no
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485ac_cv_c_compiler_gnu=$ac_compiler_gnu
2486
2487fi
2488echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2489echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2490GCC=`test $ac_compiler_gnu = yes && echo yes`
2491ac_test_CFLAGS=${CFLAGS+set}
2492ac_save_CFLAGS=$CFLAGS
2493CFLAGS="-g"
2494echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2495echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2496if test "${ac_cv_prog_cc_g+set}" = set; then
2497  echo $ECHO_N "(cached) $ECHO_C" >&6
2498else
2499  cat >conftest.$ac_ext <<_ACEOF
2500/* confdefs.h.  */
2501_ACEOF
2502cat confdefs.h >>conftest.$ac_ext
2503cat >>conftest.$ac_ext <<_ACEOF
2504/* end confdefs.h.  */
2505
2506int
2507main ()
2508{
2509
2510  ;
2511  return 0;
2512}
2513_ACEOF
2514rm -f conftest.$ac_objext
2515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516  (eval $ac_compile) 2>conftest.er1
2517  ac_status=$?
2518  grep -v '^ *+' conftest.er1 >conftest.err
2519  rm -f conftest.er1
2520  cat conftest.err >&5
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); } &&
2523         { ac_try='test -z "$ac_c_werror_flag"
2524                         || test ! -s conftest.err'
2525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526  (eval $ac_try) 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; } &&
2530         { ac_try='test -s conftest.$ac_objext'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; }; then
2536  ac_cv_prog_cc_g=yes
2537else
2538  echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541ac_cv_prog_cc_g=no
2542fi
2543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544fi
2545echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2546echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2547if test "$ac_test_CFLAGS" = set; then
2548  CFLAGS=$ac_save_CFLAGS
2549elif test $ac_cv_prog_cc_g = yes; then
2550  if test "$GCC" = yes; then
2551    CFLAGS="-g -O2"
2552  else
2553    CFLAGS="-g"
2554  fi
2555else
2556  if test "$GCC" = yes; then
2557    CFLAGS="-O2"
2558  else
2559    CFLAGS=
2560  fi
2561fi
2562echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2563echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2564if test "${ac_cv_prog_cc_stdc+set}" = set; then
2565  echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567  ac_cv_prog_cc_stdc=no
2568ac_save_CC=$CC
2569cat >conftest.$ac_ext <<_ACEOF
2570/* confdefs.h.  */
2571_ACEOF
2572cat confdefs.h >>conftest.$ac_ext
2573cat >>conftest.$ac_ext <<_ACEOF
2574/* end confdefs.h.  */
2575#include <stdarg.h>
2576#include <stdio.h>
2577#include <sys/types.h>
2578#include <sys/stat.h>
2579/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2580struct buf { int x; };
2581FILE * (*rcsopen) (struct buf *, struct stat *, int);
2582static char *e (p, i)
2583     char **p;
2584     int i;
2585{
2586  return p[i];
2587}
2588static char *f (char * (*g) (char **, int), char **p, ...)
2589{
2590  char *s;
2591  va_list v;
2592  va_start (v,p);
2593  s = g (p, va_arg (v,int));
2594  va_end (v);
2595  return s;
2596}
2597
2598/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2599   function prototypes and stuff, but not '\xHH' hex character constants.
2600   These don't provoke an error unfortunately, instead are silently treated
2601   as 'x'.  The following induces an error, until -std1 is added to get
2602   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2603   array size at least.  It's necessary to write '\x00'==0 to get something
2604   that's true only with -std1.  */
2605int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2606
2607int test (int i, double x);
2608struct s1 {int (*f) (int a);};
2609struct s2 {int (*f) (double a);};
2610int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2611int argc;
2612char **argv;
2613int
2614main ()
2615{
2616return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2617  ;
2618  return 0;
2619}
2620_ACEOF
2621# Don't try gcc -ansi; that turns off useful extensions and
2622# breaks some systems' header files.
2623# AIX                   -qlanglvl=ansi
2624# Ultrix and OSF/1      -std1
2625# HP-UX 10.20 and later -Ae
2626# HP-UX older versions  -Aa -D_HPUX_SOURCE
2627# SVR4                  -Xc -D__EXTENSIONS__
2628for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2629do
2630  CC="$ac_save_CC $ac_arg"
2631  rm -f conftest.$ac_objext
2632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633  (eval $ac_compile) 2>conftest.er1
2634  ac_status=$?
2635  grep -v '^ *+' conftest.er1 >conftest.err
2636  rm -f conftest.er1
2637  cat conftest.err >&5
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); } &&
2640         { ac_try='test -z "$ac_c_werror_flag"
2641                         || test ! -s conftest.err'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; } &&
2647         { ac_try='test -s conftest.$ac_objext'
2648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649  (eval $ac_try) 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; }; then
2653  ac_cv_prog_cc_stdc=$ac_arg
2654break
2655else
2656  echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659fi
2660rm -f conftest.err conftest.$ac_objext
2661done
2662rm -f conftest.$ac_ext conftest.$ac_objext
2663CC=$ac_save_CC
2664
2665fi
2666
2667case "x$ac_cv_prog_cc_stdc" in
2668  x|xno)
2669    echo "$as_me:$LINENO: result: none needed" >&5
2670echo "${ECHO_T}none needed" >&6 ;;
2671  *)
2672    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2673echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2674    CC="$CC $ac_cv_prog_cc_stdc" ;;
2675esac
2676
2677# Some people use a C++ compiler to compile C.  Since we use `exit',
2678# in C++ we need to declare it.  In case someone uses the same compiler
2679# for both compiling C and C++ we need to have the C++ compiler decide
2680# the declaration of exit, since it's the most demanding environment.
2681cat >conftest.$ac_ext <<_ACEOF
2682#ifndef __cplusplus
2683  choke me
2684#endif
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688  (eval $ac_compile) 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695         { ac_try='test -z "$ac_c_werror_flag"
2696                         || test ! -s conftest.err'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; } &&
2702         { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  for ac_declaration in \
2709   '' \
2710   'extern "C" void std::exit (int) throw (); using std::exit;' \
2711   'extern "C" void std::exit (int); using std::exit;' \
2712   'extern "C" void exit (int) throw ();' \
2713   'extern "C" void exit (int);' \
2714   'void exit (int);'
2715do
2716  cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h.  */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h.  */
2722$ac_declaration
2723#include <stdlib.h>
2724int
2725main ()
2726{
2727exit (42);
2728  ;
2729  return 0;
2730}
2731_ACEOF
2732rm -f conftest.$ac_objext
2733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734  (eval $ac_compile) 2>conftest.er1
2735  ac_status=$?
2736  grep -v '^ *+' conftest.er1 >conftest.err
2737  rm -f conftest.er1
2738  cat conftest.err >&5
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); } &&
2741         { ac_try='test -z "$ac_c_werror_flag"
2742                         || test ! -s conftest.err'
2743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744  (eval $ac_try) 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }; } &&
2748         { ac_try='test -s conftest.$ac_objext'
2749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750  (eval $ac_try) 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; }; then
2754  :
2755else
2756  echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759continue
2760fi
2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762  cat >conftest.$ac_ext <<_ACEOF
2763/* confdefs.h.  */
2764_ACEOF
2765cat confdefs.h >>conftest.$ac_ext
2766cat >>conftest.$ac_ext <<_ACEOF
2767/* end confdefs.h.  */
2768$ac_declaration
2769int
2770main ()
2771{
2772exit (42);
2773  ;
2774  return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779  (eval $ac_compile) 2>conftest.er1
2780  ac_status=$?
2781  grep -v '^ *+' conftest.er1 >conftest.err
2782  rm -f conftest.er1
2783  cat conftest.err >&5
2784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785  (exit $ac_status); } &&
2786         { ac_try='test -z "$ac_c_werror_flag"
2787                         || test ! -s conftest.err'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; } &&
2793         { ac_try='test -s conftest.$ac_objext'
2794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795  (eval $ac_try) 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }; }; then
2799  break
2800else
2801  echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
2803
2804fi
2805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806done
2807rm -f conftest*
2808if test -n "$ac_declaration"; then
2809  echo '#ifdef __cplusplus' >>confdefs.h
2810  echo $ac_declaration      >>confdefs.h
2811  echo '#endif'             >>confdefs.h
2812fi
2813
2814else
2815  echo "$as_me: failed program was:" >&5
2816sed 's/^/| /' conftest.$ac_ext >&5
2817
2818fi
2819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820ac_ext=c
2821ac_cpp='$CPP $CPPFLAGS'
2822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826if test -z "$CC" ; then
2827  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2828echo "$as_me: error: Failed to find a C compiler!" >&2;}
2829   { (exit 1); exit 1; }; }
2830fi
2831# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2832case "$CC" in
2833  clang* ) ;;
2834  cl* | */cl* | CL* | */CL* )
2835    if test "$ac_cv_prog_cc_g" = yes ; then
2836      ac_cv_prog_cc_g=no
2837      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2838echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2839    fi ;;
2840  * )
2841    CYGPATH_W=echo
2842    ;;
2843esac
2844CFLAGS="$save_cflags"
2845
2846# add automake conditional so we can recognize cl compiler in makefile
2847coin_cc_is_cl=false
2848case "$CC" in
2849  clang* ) ;;
2850  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2851    coin_cc_is_cl=true
2852    ;;
2853esac
2854
2855
2856if test $coin_cc_is_cl = true; then
2857  COIN_CC_IS_CL_TRUE=
2858  COIN_CC_IS_CL_FALSE='#'
2859else
2860  COIN_CC_IS_CL_TRUE='#'
2861  COIN_CC_IS_CL_FALSE=
2862fi
2863
2864
2865# Check if a project specific CFLAGS variable has been set
2866if test x$COIN_PRJCT != x; then
2867  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2868  if test x$coin_tmp = xset; then
2869    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2870  fi
2871fi
2872
2873if test x"$CFLAGS" = x; then
2874
2875  coin_add_cflags=
2876  coin_opt_cflags=
2877  coin_dbg_cflags=
2878  coin_warn_cflags=
2879
2880  if test "$GCC" = "yes"; then
2881    case "$CC" in
2882      icc* | */icc*)
2883        ;;
2884      *)
2885        coin_opt_cflags="-O3"
2886        coin_add_cflags="-pipe"
2887        coin_dbg_cflags="-g -O0"
2888        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2889        case $build in
2890          *-darwin*)
2891            ;;
2892          *)
2893            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2894            ;;
2895        esac
2896        case $enable_doscompile in
2897          mingw)
2898            CFLAGS="-mno-cygwin"
2899            cat >conftest.$ac_ext <<_ACEOF
2900/* confdefs.h.  */
2901_ACEOF
2902cat confdefs.h >>conftest.$ac_ext
2903cat >>conftest.$ac_ext <<_ACEOF
2904/* end confdefs.h.  */
2905
2906int
2907main ()
2908{
2909int i=0; i++;
2910  ;
2911  return 0;
2912}
2913_ACEOF
2914rm -f conftest.$ac_objext conftest$ac_exeext
2915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2916  (eval $ac_link) 2>conftest.er1
2917  ac_status=$?
2918  grep -v '^ *+' conftest.er1 >conftest.err
2919  rm -f conftest.er1
2920  cat conftest.err >&5
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); } &&
2923         { ac_try='test -z "$ac_c_werror_flag"
2924                         || test ! -s conftest.err'
2925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926  (eval $ac_try) 2>&5
2927  ac_status=$?
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); }; } &&
2930         { ac_try='test -s conftest$ac_exeext'
2931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932  (eval $ac_try) 2>&5
2933  ac_status=$?
2934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935  (exit $ac_status); }; }; then
2936  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2937else
2938  echo "$as_me: failed program was:" >&5
2939sed 's/^/| /' conftest.$ac_ext >&5
2940
2941fi
2942rm -f conftest.err conftest.$ac_objext \
2943      conftest$ac_exeext conftest.$ac_ext
2944            CFLAGS=
2945          ;;
2946        esac
2947    esac
2948  fi
2949  if test -z "$coin_opt_cflags"; then
2950    case $build in
2951      *-cygwin* | *-mingw*)
2952        case "$CC" in
2953          clang* ) ;;
2954          cl* | */cl* | CL* | */CL*)
2955            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2956              coin_opt_cflags='-MD -O2'
2957              coin_dbg_cflags='-MDd'
2958            else
2959              coin_opt_cflags='-MT -O2'
2960              coin_dbg_cflags='-MTd'
2961            fi
2962            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2963            ;;
2964          icl* | */icl* | ICL* | */ICL*)
2965            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2966              coin_opt_cflags='-MD -Ox'
2967              coin_dbg_cflags='-MDd -debug'
2968            else
2969              coin_opt_cflags='-MT -Ox'
2970              coin_dbg_cflags='-MTd -debug'
2971            fi
2972            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2973            ;;
2974        esac
2975        ;;
2976      *-linux-*)
2977        case "$CC" in
2978          icc* | */icc*)
2979            coin_opt_cflags="-O3 -ip -mp1"
2980            coin_add_cflags=""
2981            coin_dbg_cflags="-g"
2982            # Check if -i_dynamic is necessary (for new glibc library)
2983            CFLAGS=
2984            cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h.  */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h.  */
2990
2991int
2992main ()
2993{
2994int i=0; i++;
2995  ;
2996  return 0;
2997}
2998_ACEOF
2999rm -f conftest.$ac_objext conftest$ac_exeext
3000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3001  (eval $ac_link) 2>conftest.er1
3002  ac_status=$?
3003  grep -v '^ *+' conftest.er1 >conftest.err
3004  rm -f conftest.er1
3005  cat conftest.err >&5
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); } &&
3008         { ac_try='test -z "$ac_c_werror_flag"
3009                         || test ! -s conftest.err'
3010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011  (eval $ac_try) 2>&5
3012  ac_status=$?
3013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014  (exit $ac_status); }; } &&
3015         { ac_try='test -s conftest$ac_exeext'
3016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017  (eval $ac_try) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; }; then
3021  :
3022else
3023  echo "$as_me: failed program was:" >&5
3024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026coin_add_cflags="-i_dynamic $coin_add_cflags"
3027fi
3028rm -f conftest.err conftest.$ac_objext \
3029      conftest$ac_exeext conftest.$ac_ext
3030            ;;
3031          pgcc* | */pgcc*)
3032            coin_opt_cflags="-fast"
3033            coin_add_cflags="-Kieee -pc 64"
3034            coin_dbg_cflags="-g"
3035            ;;
3036        esac
3037        ;;
3038      *-ibm-*)
3039        case "$CC" in
3040          xlc* | */xlc* | mpxlc* | */mpxlc*)
3041            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3042            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3043            coin_dbg_cflags="-g"
3044          ;;
3045        esac
3046        ;;
3047      *-hp-*)
3048        coin_opt_cflags="-O"
3049        coin_add_cflags="-Ae"
3050        coin_dbg_cflags="-g"
3051        ;;
3052      *-*-solaris*)
3053        coin_opt_cflags="-xO4"
3054        coin_dbg_cflags="-g"
3055        ;;
3056      *-sgi-*)
3057        coin_opt_cflags="-O -OPT:Olimit=0"
3058        coin_dbg_cflags="-g"
3059        ;;
3060    esac
3061  fi
3062
3063  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3064    coin_dbg_cflags="-g"
3065  fi
3066
3067  if test -z "$coin_opt_cflags"; then
3068    # Try if -O option works if nothing else is set
3069    CFLAGS="-O"
3070    cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080int i=0; i++;
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext conftest$ac_exeext
3086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087  (eval $ac_link) 2>conftest.er1
3088  ac_status=$?
3089  grep -v '^ *+' conftest.er1 >conftest.err
3090  rm -f conftest.er1
3091  cat conftest.err >&5
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); } &&
3094         { ac_try='test -z "$ac_c_werror_flag"
3095                         || test ! -s conftest.err'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; } &&
3101         { ac_try='test -s conftest$ac_exeext'
3102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103  (eval $ac_try) 2>&5
3104  ac_status=$?
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); }; }; then
3107  coin_opt_cflags="-O"
3108else
3109  echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112fi
3113rm -f conftest.err conftest.$ac_objext \
3114      conftest$ac_exeext conftest.$ac_ext
3115  fi
3116
3117  # if PM doesn't want the warning messages, take them out
3118  if test x"$coin_skip_warn_cflags" = xyes; then
3119    coin_warn_cflags=
3120  fi
3121
3122  if test x${DBG_CFLAGS+set} != xset; then
3123    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3124  fi
3125  if test x${OPT_CFLAGS+set} != xset; then
3126    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3127  fi
3128
3129  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3130  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3131
3132  if test "$coin_debug_compile" = "true"; then
3133    CFLAGS="$DBG_CFLAGS"
3134  else
3135    CFLAGS="$OPT_CFLAGS"
3136  fi
3137else
3138  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3139  if test x${DBG_CFLAGS+set} != xset; then
3140    DBG_CFLAGS="$CFLAGS"
3141  fi
3142  if test x${OPT_CFLAGS+set} != xset; then
3143    OPT_CFLAGS="$CFLAGS"
3144  fi
3145fi
3146
3147# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3148
3149case "$CFLAGS" in
3150  *-mno-cygwin*)
3151    if test x${CPPFLAGS+set} != xset ; then
3152      CPPFLAGS="-mno-cygwin"
3153    else
3154      case "$CPPFLAGS" in
3155        *-mno-cygwin*)
3156          ;;
3157        *)
3158          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3159          ;;
3160      esac
3161    fi ;;
3162esac
3163
3164# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3165if test x$COIN_PRJCT != x; then
3166  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3167fi
3168
3169# Try if CFLAGS works
3170save_CFLAGS="$CFLAGS"
3171cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h.  */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h.  */
3177
3178int
3179main ()
3180{
3181int i=0; i++;
3182  ;
3183  return 0;
3184}
3185_ACEOF
3186rm -f conftest.$ac_objext conftest$ac_exeext
3187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3188  (eval $ac_link) 2>conftest.er1
3189  ac_status=$?
3190  grep -v '^ *+' conftest.er1 >conftest.err
3191  rm -f conftest.er1
3192  cat conftest.err >&5
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); } &&
3195         { ac_try='test -z "$ac_c_werror_flag"
3196                         || test ! -s conftest.err'
3197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198  (eval $ac_try) 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }; } &&
3202         { ac_try='test -s conftest$ac_exeext'
3203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204  (eval $ac_try) 2>&5
3205  ac_status=$?
3206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207  (exit $ac_status); }; }; then
3208  :
3209else
3210  echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213CFLAGS=
3214fi
3215rm -f conftest.err conftest.$ac_objext \
3216      conftest$ac_exeext conftest.$ac_ext
3217if test -z "$CFLAGS"; then
3218  { 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
3219echo "$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;}
3220  CFLAGS='-O'
3221  cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h.  */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h.  */
3227
3228int
3229main ()
3230{
3231int i=0; i++;
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext conftest$ac_exeext
3237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3238  (eval $ac_link) 2>conftest.er1
3239  ac_status=$?
3240  grep -v '^ *+' conftest.er1 >conftest.err
3241  rm -f conftest.er1
3242  cat conftest.err >&5
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); } &&
3245         { ac_try='test -z "$ac_c_werror_flag"
3246                         || test ! -s conftest.err'
3247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248  (eval $ac_try) 2>&5
3249  ac_status=$?
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); }; } &&
3252         { ac_try='test -s conftest$ac_exeext'
3253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254  (eval $ac_try) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); }; }; then
3258  :
3259else
3260  echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263CFLAGS=
3264fi
3265rm -f conftest.err conftest.$ac_objext \
3266      conftest$ac_exeext conftest.$ac_ext
3267  if test -z "$CFLAGS"; then
3268    { 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
3269echo "$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;}
3270  fi
3271fi
3272
3273{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3274echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3275
3276
3277if test x"$MPICC" = x; then :; else
3278  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3279echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3280  CC="$MPICC"
3281fi
3282
3283# Correct the LD variable if we are using the MS or Intel-windows compiler
3284case "$CC" in
3285  clang* ) ;;
3286  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3287    case $build in
3288  *-mingw*)
3289    if test "${LD+set}" = set; then :; else
3290      LD=link
3291    fi
3292    ;;
3293 esac
3294 case $enable_doscompile in
3295   msvc)
3296     if test "x${LD+set}" = xset; then :; else
3297       LD=link
3298     fi
3299     ;;
3300 esac
3301
3302    ;;
3303esac
3304
3305ac_ext=c
3306ac_cpp='$CPP $CPPFLAGS'
3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
3311
3312
3313 #Let's try if that overcomes configuration problem with VC++ 6.0
3314
3315ac_ext=cc
3316ac_cpp='$CXXCPP $CPPFLAGS'
3317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3320
3321
3322
3323
3324
3325
3326
3327coin_has_cxx=yes
3328
3329save_cxxflags="$CXXFLAGS"
3330# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3331case $build in
3332  *-cygwin* | *-mingw*)
3333             if test "$enable_doscompile" = msvc ; then
3334               comps="icl cl"
3335             else
3336               comps="g++ cl"
3337             fi ;;
3338  *-*-solaris*)
3339             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3340  *-darwin*) comps="g++ c++ CC" ;;
3341  *-linux-gnu*)
3342             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3343          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3344esac
3345
3346# We delete the cached value, since the test might not have been
3347# performed with our choice of compilers earlier
3348$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3349# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3350ac_ext=cc
3351ac_cpp='$CXXCPP $CPPFLAGS'
3352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3355if test -n "$ac_tool_prefix"; then
3356  for ac_prog in $CCC $comps
3357  do
3358    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3359set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3360echo "$as_me:$LINENO: checking for $ac_word" >&5
3361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3362if test "${ac_cv_prog_CXX+set}" = set; then
3363  echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365  if test -n "$CXX"; then
3366  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371  IFS=$as_save_IFS
3372  test -z "$as_dir" && as_dir=.
3373  for ac_exec_ext in '' $ac_executable_extensions; do
3374  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377    break 2
3378  fi
3379done
3380done
3381
3382fi
3383fi
3384CXX=$ac_cv_prog_CXX
3385if test -n "$CXX"; then
3386  echo "$as_me:$LINENO: result: $CXX" >&5
3387echo "${ECHO_T}$CXX" >&6
3388else
3389  echo "$as_me:$LINENO: result: no" >&5
3390echo "${ECHO_T}no" >&6
3391fi
3392
3393    test -n "$CXX" && break
3394  done
3395fi
3396if test -z "$CXX"; then
3397  ac_ct_CXX=$CXX
3398  for ac_prog in $CCC $comps
3399do
3400  # Extract the first word of "$ac_prog", so it can be a program name with args.
3401set dummy $ac_prog; ac_word=$2
3402echo "$as_me:$LINENO: checking for $ac_word" >&5
3403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3404if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  if test -n "$ac_ct_CXX"; then
3408  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3409else
3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413  IFS=$as_save_IFS
3414  test -z "$as_dir" && as_dir=.
3415  for ac_exec_ext in '' $ac_executable_extensions; do
3416  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417    ac_cv_prog_ac_ct_CXX="$ac_prog"
3418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422done
3423
3424fi
3425fi
3426ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3427if test -n "$ac_ct_CXX"; then
3428  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3429echo "${ECHO_T}$ac_ct_CXX" >&6
3430else
3431  echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
3433fi
3434
3435  test -n "$ac_ct_CXX" && break
3436done
3437test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3438
3439  CXX=$ac_ct_CXX
3440fi
3441
3442
3443# Provide some information about the compiler.
3444echo "$as_me:$LINENO:" \
3445     "checking for C++ compiler version" >&5
3446ac_compiler=`set X $ac_compile; echo $2`
3447{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3448  (eval $ac_compiler --version </dev/null >&5) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }
3452{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3453  (eval $ac_compiler -v </dev/null >&5) 2>&5
3454  ac_status=$?
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); }
3457{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3458  (eval $ac_compiler -V </dev/null >&5) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }
3462
3463echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3464echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3465if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468  cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h.  */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h.  */
3474
3475int
3476main ()
3477{
3478#ifndef __GNUC__
3479       choke me
3480#endif
3481
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486rm -f conftest.$ac_objext
3487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488  (eval $ac_compile) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } &&
3495         { ac_try='test -z "$ac_cxx_werror_flag"
3496                         || test ! -s conftest.err'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; } &&
3502         { ac_try='test -s conftest.$ac_objext'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  ac_compiler_gnu=yes
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513ac_compiler_gnu=no
3514fi
3515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3516ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3517
3518fi
3519echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3520echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3521GXX=`test $ac_compiler_gnu = yes && echo yes`
3522ac_test_CXXFLAGS=${CXXFLAGS+set}
3523ac_save_CXXFLAGS=$CXXFLAGS
3524CXXFLAGS="-g"
3525echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3526echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3527if test "${ac_cv_prog_cxx_g+set}" = set; then
3528  echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530  cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h.  */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h.  */
3536
3537int
3538main ()
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545rm -f conftest.$ac_objext
3546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547  (eval $ac_compile) 2>conftest.er1
3548  ac_status=$?
3549  grep -v '^ *+' conftest.er1 >conftest.err
3550  rm -f conftest.er1
3551  cat conftest.err >&5
3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); } &&
3554         { ac_try='test -z "$ac_cxx_werror_flag"
3555                         || test ! -s conftest.err'
3556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557  (eval $ac_try) 2>&5
3558  ac_status=$?
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); }; } &&
3561         { ac_try='test -s conftest.$ac_objext'
3562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563  (eval $ac_try) 2>&5
3564  ac_status=$?
3565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); }; }; then
3567  ac_cv_prog_cxx_g=yes
3568else
3569  echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572ac_cv_prog_cxx_g=no
3573fi
3574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575fi
3576echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3577echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3578if test "$ac_test_CXXFLAGS" = set; then
3579  CXXFLAGS=$ac_save_CXXFLAGS
3580elif test $ac_cv_prog_cxx_g = yes; then
3581  if test "$GXX" = yes; then
3582    CXXFLAGS="-g -O2"
3583  else
3584    CXXFLAGS="-g"
3585  fi
3586else
3587  if test "$GXX" = yes; then
3588    CXXFLAGS="-O2"
3589  else
3590    CXXFLAGS=
3591  fi
3592fi
3593for ac_declaration in \
3594   '' \
3595   'extern "C" void std::exit (int) throw (); using std::exit;' \
3596   'extern "C" void std::exit (int); using std::exit;' \
3597   'extern "C" void exit (int) throw ();' \
3598   'extern "C" void exit (int);' \
3599   'void exit (int);'
3600do
3601  cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h.  */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h.  */
3607$ac_declaration
3608#include <stdlib.h>
3609int
3610main ()
3611{
3612exit (42);
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617rm -f conftest.$ac_objext
3618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619  (eval $ac_compile) 2>conftest.er1
3620  ac_status=$?
3621  grep -v '^ *+' conftest.er1 >conftest.err
3622  rm -f conftest.er1
3623  cat conftest.err >&5
3624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); } &&
3626         { ac_try='test -z "$ac_cxx_werror_flag"
3627                         || test ! -s conftest.err'
3628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629  (eval $ac_try) 2>&5
3630  ac_status=$?
3631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); }; } &&
3633         { ac_try='test -s conftest.$ac_objext'
3634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635  (eval $ac_try) 2>&5
3636  ac_status=$?
3637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); }; }; then
3639  :
3640else
3641  echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644continue
3645fi
3646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647  cat >conftest.$ac_ext <<_ACEOF
3648/* confdefs.h.  */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h.  */
3653$ac_declaration
3654int
3655main ()
3656{
3657exit (42);
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext
3663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664  (eval $ac_compile) 2>conftest.er1
3665  ac_status=$?
3666  grep -v '^ *+' conftest.er1 >conftest.err
3667  rm -f conftest.er1
3668  cat conftest.err >&5
3669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670  (exit $ac_status); } &&
3671         { ac_try='test -z "$ac_cxx_werror_flag"
3672                         || test ! -s conftest.err'
3673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674  (eval $ac_try) 2>&5
3675  ac_status=$?
3676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); }; } &&
3678         { ac_try='test -s conftest.$ac_objext'
3679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680  (eval $ac_try) 2>&5
3681  ac_status=$?
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); }; }; then
3684  break
3685else
3686  echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689fi
3690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691done
3692rm -f conftest*
3693if test -n "$ac_declaration"; then
3694  echo '#ifdef __cplusplus' >>confdefs.h
3695  echo $ac_declaration      >>confdefs.h
3696  echo '#endif'             >>confdefs.h
3697fi
3698
3699ac_ext=cc
3700ac_cpp='$CXXCPP $CPPFLAGS'
3701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3704
3705
3706#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3707#thus, we test here whether $CXX is actually working
3708ac_ext=cc
3709ac_cpp='$CXXCPP $CPPFLAGS'
3710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3713
3714echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3715echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3716cat >conftest.$ac_ext <<_ACEOF
3717/* confdefs.h.  */
3718_ACEOF
3719cat confdefs.h >>conftest.$ac_ext
3720cat >>conftest.$ac_ext <<_ACEOF
3721/* end confdefs.h.  */
3722
3723int
3724main ()
3725{
3726int i=0;
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731rm -f conftest.$ac_objext
3732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733  (eval $ac_compile) 2>conftest.er1
3734  ac_status=$?
3735  grep -v '^ *+' conftest.er1 >conftest.err
3736  rm -f conftest.er1
3737  cat conftest.err >&5
3738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739  (exit $ac_status); } &&
3740         { ac_try='test -z "$ac_cxx_werror_flag"
3741                         || test ! -s conftest.err'
3742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743  (eval $ac_try) 2>&5
3744  ac_status=$?
3745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746  (exit $ac_status); }; } &&
3747         { ac_try='test -s conftest.$ac_objext'
3748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749  (eval $ac_try) 2>&5
3750  ac_status=$?
3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752  (exit $ac_status); }; }; then
3753  echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6
3755else
3756  echo "$as_me: failed program was:" >&5
3757sed 's/^/| /' conftest.$ac_ext >&5
3758
3759echo "$as_me:$LINENO: result: no" >&5
3760echo "${ECHO_T}no" >&6
3761   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3762echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3763   { (exit 1); exit 1; }; }
3764
3765fi
3766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3767ac_ext=cc
3768ac_cpp='$CXXCPP $CPPFLAGS'
3769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3772
3773
3774coin_cxx_is_cl=false
3775# It seems that we need to cleanup something here for the Windows
3776case "$CXX" in
3777  clang* ) ;;
3778  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3779    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3780    mv confdefs.hh confdefs.h
3781    coin_cxx_is_cl=true
3782    ;;
3783esac
3784
3785# add automake conditional so we can recognize cl compiler in makefile
3786
3787
3788if test $coin_cxx_is_cl = true; then
3789  COIN_CXX_IS_CL_TRUE=
3790  COIN_CXX_IS_CL_FALSE='#'
3791else
3792  COIN_CXX_IS_CL_TRUE='#'
3793  COIN_CXX_IS_CL_FALSE=
3794fi
3795
3796
3797# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3798case "$CXX" in
3799  clang* ) ;;
3800  cl* | */cl* | CL* | */CL* )
3801    if test "$ac_cv_prog_cxx_g" = yes ; then
3802      ac_cv_prog_cxx_g=no
3803      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3804echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3805    fi ;;
3806  * )
3807    CYGPATH_W=echo
3808    ;;
3809esac
3810CXXFLAGS="$save_cxxflags"
3811
3812# Check if a project specific CXXFLAGS variable has been set
3813if test x$COIN_PRJCT != x; then
3814  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3815  if test x$coin_tmp = xset; then
3816    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3817  fi
3818fi
3819
3820if test x"$CXXFLAGS" = x; then
3821
3822# ToDo decide whether we want -DNDEBUG for optimization
3823  coin_add_cxxflags=
3824  coin_opt_cxxflags=
3825  coin_dbg_cxxflags=
3826  coin_warn_cxxflags=
3827
3828  if test "$GXX" = "yes"; then
3829    case "$CXX" in
3830      icpc* | */icpc*)
3831        ;;
3832      *)
3833# ToDo decide about unroll-loops
3834        coin_opt_cxxflags="-O3"
3835        coin_add_cxxflags="-pipe"
3836        coin_dbg_cxxflags="-g -O0"
3837        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3838        case $build in
3839          *-darwin*)
3840            ;;
3841          *)
3842            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3843            ;;
3844        esac
3845
3846        case $enable_doscompile in
3847          mingw)
3848            CXXFLAGS="-mno-cygwin"
3849            cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h.  */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h.  */
3855
3856int
3857main ()
3858{
3859int i=0; i++;
3860  ;
3861  return 0;
3862}
3863_ACEOF
3864rm -f conftest.$ac_objext conftest$ac_exeext
3865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3866  (eval $ac_link) 2>conftest.er1
3867  ac_status=$?
3868  grep -v '^ *+' conftest.er1 >conftest.err
3869  rm -f conftest.er1
3870  cat conftest.err >&5
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); } &&
3873         { ac_try='test -z "$ac_cxx_werror_flag"
3874                         || test ! -s conftest.err'
3875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876  (eval $ac_try) 2>&5
3877  ac_status=$?
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); }; } &&
3880         { ac_try='test -s conftest$ac_exeext'
3881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882  (eval $ac_try) 2>&5
3883  ac_status=$?
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); }; }; then
3886  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3887else
3888  echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891fi
3892rm -f conftest.err conftest.$ac_objext \
3893      conftest$ac_exeext conftest.$ac_ext
3894            CXXFLAGS=
3895          ;;
3896        esac
3897    esac
3898  fi
3899
3900# Note that we do not need to cover GCC in the following tests.
3901
3902  if test -z "$coin_opt_cxxflags"; then
3903    case $build in
3904      *-cygwin* | *-mingw*)
3905        case "$CXX" in
3906          clang* ) ;;
3907          cl* | */cl* | CL* | */CL*)
3908            # The MT and MTd options are mutually exclusive
3909            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3910               coin_opt_cxxflags='-MD -O2'
3911               coin_dbg_cxxflags='-MDd'
3912            else
3913               coin_opt_cxxflags='-MT -O2'
3914               coin_dbg_cxxflags='-MTd'
3915            fi
3916            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3917            ;;
3918          icl* | */icl* | ICL* | */ICL*)
3919          # The MT and MTd options are mutually exclusive
3920            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3921              coin_opt_cxxflags='-MD -Ox'
3922              coin_dbg_cxxflags='-MDd -debug'
3923            else
3924              coin_opt_cxxflags='-MT -Ox'
3925              coin_dbg_cxxflags='-MTd -debug'
3926            fi
3927            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3928            ;;
3929        esac
3930        ;;
3931      *-linux-*)
3932        case "$CXX" in
3933          icpc* | */icpc*)
3934            coin_opt_cxxflags="-O3 -ip -mp1"
3935            coin_add_cxxflags=""
3936            coin_dbg_cxxflags="-g"
3937            # Check if -i_dynamic is necessary (for new glibc library)
3938            CXXFLAGS=
3939            cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h.  */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h.  */
3945
3946int
3947main ()
3948{
3949int i=0; i++;
3950  ;
3951  return 0;
3952}
3953_ACEOF
3954rm -f conftest.$ac_objext conftest$ac_exeext
3955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3956  (eval $ac_link) 2>conftest.er1
3957  ac_status=$?
3958  grep -v '^ *+' conftest.er1 >conftest.err
3959  rm -f conftest.er1
3960  cat conftest.err >&5
3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962  (exit $ac_status); } &&
3963         { ac_try='test -z "$ac_cxx_werror_flag"
3964                         || test ! -s conftest.err'
3965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966  (eval $ac_try) 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); }; } &&
3970         { ac_try='test -s conftest$ac_exeext'
3971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972  (eval $ac_try) 2>&5
3973  ac_status=$?
3974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975  (exit $ac_status); }; }; then
3976  :
3977else
3978  echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3982fi
3983rm -f conftest.err conftest.$ac_objext \
3984      conftest$ac_exeext conftest.$ac_ext
3985            ;;
3986          pgCC* | */pgCC*)
3987            coin_opt_cxxflags="-fast"
3988            coin_add_cxxflags="-Kieee -pc 64"
3989            coin_dbg_cxxflags="-g"
3990            ;;
3991        esac
3992        ;;
3993      *-ibm-*)
3994        case "$CXX" in
3995          xlC* | */xlC* | mpxlC* | */mpxlC*)
3996            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3997            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3998            coin_dbg_cxxflags="-g"
3999            ;;
4000        esac
4001        ;;
4002      *-hp-*)
4003        case "$CXX" in
4004          aCC* | */aCC* )
4005            coin_opt_cxxflags="-O"
4006            coin_add_cxxflags="-AA"
4007            coin_dbg_cxxflags="-g"
4008            ;;
4009        esac
4010        ;;
4011      *-*-solaris*)
4012          coin_opt_cxxflags="-O4"
4013          coin_dbg_cxxflags="-g"
4014        ;;
4015    esac
4016  fi
4017
4018# Generic flag settings. If these don't work, add a case above.
4019
4020  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
4021    coin_dbg_cxxflags="-g"
4022  fi
4023
4024  if test -z "$coin_opt_cxxflags"; then
4025    # Try if -O option works if nothing else is set
4026    CXXFLAGS=-O
4027    cat >conftest.$ac_ext <<_ACEOF
4028/* confdefs.h.  */
4029_ACEOF
4030cat confdefs.h >>conftest.$ac_ext
4031cat >>conftest.$ac_ext <<_ACEOF
4032/* end confdefs.h.  */
4033
4034int
4035main ()
4036{
4037int i=0; i++;
4038  ;
4039  return 0;
4040}
4041_ACEOF
4042rm -f conftest.$ac_objext conftest$ac_exeext
4043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4044  (eval $ac_link) 2>conftest.er1
4045  ac_status=$?
4046  grep -v '^ *+' conftest.er1 >conftest.err
4047  rm -f conftest.er1
4048  cat conftest.err >&5
4049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050  (exit $ac_status); } &&
4051         { ac_try='test -z "$ac_cxx_werror_flag"
4052                         || test ! -s conftest.err'
4053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054  (eval $ac_try) 2>&5
4055  ac_status=$?
4056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057  (exit $ac_status); }; } &&
4058         { ac_try='test -s conftest$ac_exeext'
4059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060  (eval $ac_try) 2>&5
4061  ac_status=$?
4062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063  (exit $ac_status); }; }; then
4064  coin_opt_cxxflags="-O"
4065else
4066  echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
4068
4069fi
4070rm -f conftest.err conftest.$ac_objext \
4071      conftest$ac_exeext conftest.$ac_ext
4072  fi
4073
4074  # if PM doesn't want the warning messages, take them out
4075  if test x"$coin_skip_warn_cxxflags" = xyes; then
4076    coin_warn_cxxflags=
4077  fi
4078
4079# Do final setup of flags based on values determined above.
4080
4081  if test x${DBG_CXXFLAGS+set} != xset; then
4082    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4083  fi
4084  if test x${OPT_CXXFLAGS+set} != xset; then
4085    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4086  fi
4087
4088  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4089  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4090
4091  if test "$coin_debug_compile" = "true"; then
4092    CXXFLAGS="$DBG_CXXFLAGS"
4093  else
4094    CXXFLAGS="$OPT_CXXFLAGS"
4095  fi
4096
4097# Handle the case where CXXFLAGS was set externally.
4098else
4099  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4100  if test x${DBG_CXXFLAGS+set} != xset; then
4101    DBG_CXXFLAGS="$CXXFLAGS"
4102  fi
4103  if test x${OPT_CXXFLAGS+set} != xset; then
4104    OPT_CXXFLAGS="$CXXFLAGS"
4105  fi
4106fi
4107
4108# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4109
4110case "$CXXFLAGS" in
4111  *-mno-cygwin*)
4112    if test x${CPPFLAGS+set} != xset ; then
4113      CPPFLAGS="-mno-cygwin"
4114    else
4115      case "$CPPFLAGS" in
4116        *-mno-cygwin*)
4117          ;;
4118        *)
4119          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4120          ;;
4121      esac
4122    fi ;;
4123esac
4124
4125# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4126if test x$COIN_PRJCT != x; then
4127  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4128fi
4129
4130# Try if CXXFLAGS works
4131save_CXXFLAGS="$CXXFLAGS"
4132cat >conftest.$ac_ext <<_ACEOF
4133/* confdefs.h.  */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h.  */
4138
4139int
4140main ()
4141{
4142int i=0; i++;
4143  ;
4144  return 0;
4145}
4146_ACEOF
4147rm -f conftest.$ac_objext conftest$ac_exeext
4148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149  (eval $ac_link) 2>conftest.er1
4150  ac_status=$?
4151  grep -v '^ *+' conftest.er1 >conftest.err
4152  rm -f conftest.er1
4153  cat conftest.err >&5
4154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155  (exit $ac_status); } &&
4156         { ac_try='test -z "$ac_cxx_werror_flag"
4157                         || test ! -s conftest.err'
4158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159  (eval $ac_try) 2>&5
4160  ac_status=$?
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); }; } &&
4163         { ac_try='test -s conftest$ac_exeext'
4164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165  (eval $ac_try) 2>&5
4166  ac_status=$?
4167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168  (exit $ac_status); }; }; then
4169  :
4170else
4171  echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174CXXFLAGS=
4175fi
4176rm -f conftest.err conftest.$ac_objext \
4177      conftest$ac_exeext conftest.$ac_ext
4178if test -z "$CXXFLAGS"; then
4179  { 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
4180echo "$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;}
4181  CXXFLAGS='-O'
4182  cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h.  */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h.  */
4188
4189int
4190main ()
4191{
4192int i=0; i++;
4193  ;
4194  return 0;
4195}
4196_ACEOF
4197rm -f conftest.$ac_objext conftest$ac_exeext
4198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4199  (eval $ac_link) 2>conftest.er1
4200  ac_status=$?
4201  grep -v '^ *+' conftest.er1 >conftest.err
4202  rm -f conftest.er1
4203  cat conftest.err >&5
4204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205  (exit $ac_status); } &&
4206         { ac_try='test -z "$ac_cxx_werror_flag"
4207                         || test ! -s conftest.err'
4208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209  (eval $ac_try) 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); }; } &&
4213         { ac_try='test -s conftest$ac_exeext'
4214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215  (eval $ac_try) 2>&5
4216  ac_status=$?
4217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218  (exit $ac_status); }; }; then
4219  :
4220else
4221  echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
4224CXXFLAGS=
4225fi
4226rm -f conftest.err conftest.$ac_objext \
4227      conftest$ac_exeext conftest.$ac_ext
4228  if test -z "$CXXFLAGS"; then
4229    { 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
4230echo "$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;}
4231  fi
4232fi
4233
4234{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4235echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4236
4237
4238if test x"$MPICXX" = x; then :; else
4239  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4240echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4241  CXX="$MPICXX"
4242fi
4243
4244# correct the LD variable in a mingw build with MS or intel compiler
4245case "$CXX" in
4246  clang* ) ;;
4247  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4248    case $build in
4249  *-mingw*)
4250    if test "${LD+set}" = set; then :; else
4251      LD=link
4252    fi
4253    ;;
4254 esac
4255 case $enable_doscompile in
4256   msvc)
4257     if test "x${LD+set}" = xset; then :; else
4258       LD=link
4259     fi
4260     ;;
4261 esac
4262
4263    ;;
4264esac
4265
4266ac_ext=c
4267ac_cpp='$CPP $CPPFLAGS'
4268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272
4273
4274# Initialize automake and libtool
4275{
4276
4277
4278
4279# START
4280
4281coin_disable_shared=no
4282# Test if force_shared has been set
4283if test "x" = xforce_shared; then
4284  if test x$enable_shared = xno; then
4285    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4286echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4287   { (exit 1); exit 1; }; }
4288  fi
4289  enable_shared=yes;
4290else
4291  # On Cygwin and AIX, building DLLs doesn't work
4292  case $build in
4293    *-cygwin* | *-mingw*)
4294      coin_disable_shared=yes
4295      if test x"$enable_shared" = xyes; then
4296        case "$CXX" in
4297          clang* )
4298            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4299echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4300            ;;
4301          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4302            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
4303echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
4304            ;;
4305          *)
4306            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4307echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4308            ;;
4309        esac
4310      fi
4311    ;;
4312    *-aix*)
4313      coin_disable_shared=yes
4314      platform=AIX
4315      if test x"$enable_shared" = xyes; then
4316        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4317echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4318      fi
4319    ;;
4320  esac
4321fi
4322if test x"$coin_disable_shared" = xyes; then
4323  if test x"$enable_shared" = xyes; then
4324    :
4325  else
4326    # we don't disable shared, because it was not selected anyway
4327    coin_disable_shared=no
4328  fi
4329  enable_shared=no
4330fi
4331# By default, we only want the shared objects to be compiled
4332# Check whether --enable-static or --disable-static was given.
4333if test "${enable_static+set}" = set; then
4334  enableval="$enable_static"
4335  p=${PACKAGE-default}
4336    case $enableval in
4337    yes) enable_static=yes ;;
4338    no) enable_static=no ;;
4339    *)
4340     enable_static=no
4341      # Look at the argument we got.  We use all the common list separators.
4342      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4343      for pkg in $enableval; do
4344        IFS="$lt_save_ifs"
4345        if test "X$pkg" = "X$p"; then
4346          enable_static=yes
4347        fi
4348      done
4349      IFS="$lt_save_ifs"
4350      ;;
4351    esac
4352else
4353  enable_static=no
4354fi;
4355
4356
4357
4358
4359# Initialize automake
4360echo "$as_me:$LINENO: checking for egrep" >&5
4361echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4362if test "${ac_cv_prog_egrep+set}" = set; then
4363  echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4366    then ac_cv_prog_egrep='grep -E'
4367    else ac_cv_prog_egrep='egrep'
4368    fi
4369fi
4370echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4371echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4372 EGREP=$ac_cv_prog_egrep
4373
4374
4375echo "$as_me:$LINENO: checking whether ln -s works" >&5
4376echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4377LN_S=$as_ln_s
4378if test "$LN_S" = "ln -s"; then
4379  echo "$as_me:$LINENO: result: yes" >&5
4380echo "${ECHO_T}yes" >&6
4381else
4382  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4383echo "${ECHO_T}no, using $LN_S" >&6
4384fi
4385
4386am__api_version="1.9"
4387# Find a good install program.  We prefer a C program (faster),
4388# so one script is as good as another.  But avoid the broken or
4389# incompatible versions:
4390# SysV /etc/install, /usr/sbin/install
4391# SunOS /usr/etc/install
4392# IRIX /sbin/install
4393# AIX /bin/install
4394# AmigaOS /C/install, which installs bootblocks on floppy discs
4395# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4396# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4397# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4398# OS/2's system install, which has a completely different semantic
4399# ./install, which can be erroneously created by make from ./install.sh.
4400echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4401echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4402if test -z "$INSTALL"; then
4403if test "${ac_cv_path_install+set}" = set; then
4404  echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411  # Account for people who put trailing slashes in PATH elements.
4412case $as_dir/ in
4413  ./ | .// | /cC/* | \
4414  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4415  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4416  /usr/ucb/* ) ;;
4417  *)
4418    # OSF1 and SCO ODT 3.0 have their own names for install.
4419    # Don't use installbsd from OSF since it installs stuff as root
4420    # by default.
4421    for ac_prog in ginstall scoinst install; do
4422      for ac_exec_ext in '' $ac_executable_extensions; do
4423        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4424          if test $ac_prog = install &&
4425            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4426            # AIX install.  It has an incompatible calling convention.
4427            :
4428          elif test $ac_prog = install &&
4429            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4430            # program-specific install script used by HP pwplus--don't use.
4431            :
4432          else
4433            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4434            break 3
4435          fi
4436        fi
4437      done
4438    done
4439    ;;
4440esac
4441done
4442
4443
4444fi
4445  if test "${ac_cv_path_install+set}" = set; then
4446    INSTALL=$ac_cv_path_install
4447  else
4448    # As a last resort, use the slow shell script.  We don't cache a
4449    # path for INSTALL within a source directory, because that will
4450    # break other packages using the cache if that directory is
4451    # removed, or if the path is relative.
4452    INSTALL=$ac_install_sh
4453  fi
4454fi
4455echo "$as_me:$LINENO: result: $INSTALL" >&5
4456echo "${ECHO_T}$INSTALL" >&6
4457
4458# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4459# It thinks the first close brace ends the variable substitution.
4460test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4461
4462test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4463
4464test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4465
4466echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4467echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4468# Just in case
4469sleep 1
4470echo timestamp > conftest.file
4471# Do `set' in a subshell so we don't clobber the current shell's
4472# arguments.  Must try -L first in case configure is actually a
4473# symlink; some systems play weird games with the mod time of symlinks
4474# (eg FreeBSD returns the mod time of the symlink's containing
4475# directory).
4476if (
4477   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4478   if test "$*" = "X"; then
4479      # -L didn't work.
4480      set X `ls -t $srcdir/configure conftest.file`
4481   fi
4482   rm -f conftest.file
4483   if test "$*" != "X $srcdir/configure conftest.file" \
4484      && test "$*" != "X conftest.file $srcdir/configure"; then
4485
4486      # If neither matched, then we have a broken ls.  This can happen
4487      # if, for instance, CONFIG_SHELL is bash and it inherits a
4488      # broken ls alias from the environment.  This has actually
4489      # happened.  Such a system could not be considered "sane".
4490      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4491alias in your environment" >&5
4492echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4493alias in your environment" >&2;}
4494   { (exit 1); exit 1; }; }
4495   fi
4496
4497   test "$2" = conftest.file
4498   )
4499then
4500   # Ok.
4501   :
4502else
4503   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4504Check your system clock" >&5
4505echo "$as_me: error: newly created file is older than distributed files!
4506Check your system clock" >&2;}
4507   { (exit 1); exit 1; }; }
4508fi
4509echo "$as_me:$LINENO: result: yes" >&5
4510echo "${ECHO_T}yes" >&6
4511test "$program_prefix" != NONE &&
4512  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4513# Use a double $ so make ignores it.
4514test "$program_suffix" != NONE &&
4515  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4516# Double any \ or $.  echo might interpret backslashes.
4517# By default was `s,x,x', remove it if useless.
4518cat <<\_ACEOF >conftest.sed
4519s/[\\$]/&&/g;s/;s,x,x,$//
4520_ACEOF
4521program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4522rm conftest.sed
4523
4524# expand $ac_aux_dir to an absolute path
4525am_aux_dir=`cd $ac_aux_dir && pwd`
4526
4527test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4528# Use eval to expand $SHELL
4529if eval "$MISSING --run true"; then
4530  am_missing_run="$MISSING --run "
4531else
4532  am_missing_run=
4533  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4534echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4535fi
4536
4537if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4538  # We used to keeping the `.' as first argument, in order to
4539  # allow $(mkdir_p) to be used without argument.  As in
4540  #   $(mkdir_p) $(somedir)
4541  # where $(somedir) is conditionally defined.  However this is wrong
4542  # for two reasons:
4543  #  1. if the package is installed by a user who cannot write `.'
4544  #     make install will fail,
4545  #  2. the above comment should most certainly read
4546  #     $(mkdir_p) $(DESTDIR)$(somedir)
4547  #     so it does not work when $(somedir) is undefined and
4548  #     $(DESTDIR) is not.
4549  #  To support the latter case, we have to write
4550  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4551  #  so the `.' trick is pointless.
4552  mkdir_p='mkdir -p --'
4553else
4554  # On NextStep and OpenStep, the `mkdir' command does not
4555  # recognize any option.  It will interpret all options as
4556  # directories to create, and then abort because `.' already
4557  # exists.
4558  for d in ./-p ./--version;
4559  do
4560    test -d $d && rmdir $d
4561  done
4562  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4563  if test -f "$ac_aux_dir/mkinstalldirs"; then
4564    mkdir_p='$(mkinstalldirs)'
4565  else
4566    mkdir_p='$(install_sh) -d'
4567  fi
4568fi
4569
4570for ac_prog in gawk mawk nawk awk
4571do
4572  # Extract the first word of "$ac_prog", so it can be a program name with args.
4573set dummy $ac_prog; ac_word=$2
4574echo "$as_me:$LINENO: checking for $ac_word" >&5
4575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4576if test "${ac_cv_prog_AWK+set}" = set; then
4577  echo $ECHO_N "(cached) $ECHO_C" >&6
4578else
4579  if test -n "$AWK"; then
4580  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585  IFS=$as_save_IFS
4586  test -z "$as_dir" && as_dir=.
4587  for ac_exec_ext in '' $ac_executable_extensions; do
4588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589    ac_cv_prog_AWK="$ac_prog"
4590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591    break 2
4592  fi
4593done
4594done
4595
4596fi
4597fi
4598AWK=$ac_cv_prog_AWK
4599if test -n "$AWK"; then
4600  echo "$as_me:$LINENO: result: $AWK" >&5
4601echo "${ECHO_T}$AWK" >&6
4602else
4603  echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
4605fi
4606
4607  test -n "$AWK" && break
4608done
4609
4610echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4611echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4612set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4613if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4614  echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616  cat >conftest.make <<\_ACEOF
4617all:
4618        @echo 'ac_maketemp="$(MAKE)"'
4619_ACEOF
4620# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4621eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4622if test -n "$ac_maketemp"; then
4623  eval ac_cv_prog_make_${ac_make}_set=yes
4624else
4625  eval ac_cv_prog_make_${ac_make}_set=no
4626fi
4627rm -f conftest.make
4628fi
4629if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4630  echo "$as_me:$LINENO: result: yes" >&5
4631echo "${ECHO_T}yes" >&6
4632  SET_MAKE=
4633else
4634  echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6
4636  SET_MAKE="MAKE=${MAKE-make}"
4637fi
4638
4639rm -rf .tst 2>/dev/null
4640mkdir .tst 2>/dev/null
4641if test -d .tst; then
4642  am__leading_dot=.
4643else
4644  am__leading_dot=_
4645fi
4646rmdir .tst 2>/dev/null
4647
4648DEPDIR="${am__leading_dot}deps"
4649
4650          ac_config_commands="$ac_config_commands depfiles"
4651
4652
4653am_make=${MAKE-make}
4654cat > confinc << 'END'
4655am__doit:
4656        @echo done
4657.PHONY: am__doit
4658END
4659# If we don't find an include directive, just comment out the code.
4660echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4661echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4662am__include="#"
4663am__quote=
4664_am_result=none
4665# First try GNU make style include.
4666echo "include confinc" > confmf
4667# We grep out `Entering directory' and `Leaving directory'
4668# messages which can occur if `w' ends up in MAKEFLAGS.
4669# In particular we don't look at `^make:' because GNU make might
4670# be invoked under some other name (usually "gmake"), in which
4671# case it prints its new name instead of `make'.
4672if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4673   am__include=include
4674   am__quote=
4675   _am_result=GNU
4676fi
4677# Now try BSD make style include.
4678if test "$am__include" = "#"; then
4679   echo '.include "confinc"' > confmf
4680   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4681      am__include=.include
4682      am__quote="\""
4683      _am_result=BSD
4684   fi
4685fi
4686
4687
4688echo "$as_me:$LINENO: result: $_am_result" >&5
4689echo "${ECHO_T}$_am_result" >&6
4690rm -f confinc confmf
4691
4692# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4693if test "${enable_dependency_tracking+set}" = set; then
4694  enableval="$enable_dependency_tracking"
4695
4696fi;
4697if test "x$enable_dependency_tracking" != xno; then
4698  am_depcomp="$ac_aux_dir/depcomp"
4699  AMDEPBACKSLASH='\'
4700fi
4701
4702
4703if test "x$enable_dependency_tracking" != xno; then
4704  AMDEP_TRUE=
4705  AMDEP_FALSE='#'
4706else
4707  AMDEP_TRUE='#'
4708  AMDEP_FALSE=
4709fi
4710
4711
4712
4713
4714
4715
4716# AC_MSG_NOTICE([Beginning automake initialisation.])
4717# Stuff for automake
4718# test to see if srcdir already configured
4719if test "`cd $srcdir && pwd`" != "`pwd`" &&
4720   test -f $srcdir/config.status; then
4721  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4722echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4723   { (exit 1); exit 1; }; }
4724fi
4725
4726# test whether we have cygpath
4727if test -z "$CYGPATH_W"; then
4728  if (cygpath --version) >/dev/null 2>/dev/null; then
4729    CYGPATH_W='cygpath -w'
4730  else
4731    CYGPATH_W=echo
4732  fi
4733fi
4734
4735
4736# Define the identity of the package.
4737 PACKAGE='clp'
4738 VERSION='1.15'
4739
4740
4741cat >>confdefs.h <<_ACEOF
4742#define PACKAGE "$PACKAGE"
4743_ACEOF
4744
4745
4746cat >>confdefs.h <<_ACEOF
4747#define VERSION "$VERSION"
4748_ACEOF
4749
4750# Some tools Automake needs.
4751
4752ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4753
4754
4755AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4756
4757
4758AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4759
4760
4761AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4762
4763
4764MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4765
4766install_sh=${install_sh-"$am_aux_dir/install-sh"}
4767
4768# Installed binaries are usually stripped using `strip' when the user
4769# run `make install-strip'.  However `strip' might not be the right
4770# tool to use in cross-compilation environments, therefore Automake
4771# will honor the `STRIP' environment variable to overrule this program.
4772if test "$cross_compiling" != no; then
4773  if test -n "$ac_tool_prefix"; then
4774  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4775set dummy ${ac_tool_prefix}strip; ac_word=$2
4776echo "$as_me:$LINENO: checking for $ac_word" >&5
4777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778if test "${ac_cv_prog_STRIP+set}" = set; then
4779  echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781  if test -n "$STRIP"; then
4782  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4783else
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787  IFS=$as_save_IFS
4788  test -z "$as_dir" && as_dir=.
4789  for ac_exec_ext in '' $ac_executable_extensions; do
4790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793    break 2
4794  fi
4795done
4796done
4797
4798fi
4799fi
4800STRIP=$ac_cv_prog_STRIP
4801if test -n "$STRIP"; then
4802  echo "$as_me:$LINENO: result: $STRIP" >&5
4803echo "${ECHO_T}$STRIP" >&6
4804else
4805  echo "$as_me:$LINENO: result: no" >&5
4806echo "${ECHO_T}no" >&6
4807fi
4808
4809fi
4810if test -z "$ac_cv_prog_STRIP"; then
4811  ac_ct_STRIP=$STRIP
4812  # Extract the first word of "strip", so it can be a program name with args.
4813set dummy strip; ac_word=$2
4814echo "$as_me:$LINENO: checking for $ac_word" >&5
4815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4816if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4817  echo $ECHO_N "(cached) $ECHO_C" >&6
4818else
4819  if test -n "$ac_ct_STRIP"; then
4820  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4821else
4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825  IFS=$as_save_IFS
4826  test -z "$as_dir" && as_dir=.
4827  for ac_exec_ext in '' $ac_executable_extensions; do
4828  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829    ac_cv_prog_ac_ct_STRIP="strip"
4830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831    break 2
4832  fi
4833done
4834done
4835
4836  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4837fi
4838fi
4839ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4840if test -n "$ac_ct_STRIP"; then
4841  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4842echo "${ECHO_T}$ac_ct_STRIP" >&6
4843else
4844  echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6
4846fi
4847
4848  STRIP=$ac_ct_STRIP
4849else
4850  STRIP="$ac_cv_prog_STRIP"
4851fi
4852
4853fi
4854INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4855
4856# We need awk for the "check" target.  The system "awk" is bad on
4857# some platforms.
4858# Always define AMTAR for backward compatibility.
4859
4860AMTAR=${AMTAR-"${am_missing_run}tar"}
4861
4862am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4863
4864
4865
4866
4867depcc="$CC"   am_compiler_list=
4868
4869echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4870echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4871if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4872  echo $ECHO_N "(cached) $ECHO_C" >&6
4873else
4874  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4875  # We make a subdir and do the tests there.  Otherwise we can end up
4876  # making bogus files that we don't know about and never remove.  For
4877  # instance it was reported that on HP-UX the gcc test will end up
4878  # making a dummy file named `D' -- because `-MD' means `put the output
4879  # in D'.
4880  mkdir conftest.dir
4881  # Copy depcomp to subdir because otherwise we won't find it if we're
4882  # using a relative directory.
4883  cp "$am_depcomp" conftest.dir
4884  cd conftest.dir
4885  # We will build objects and dependencies in a subdirectory because
4886  # it helps to detect inapplicable dependency modes.  For instance
4887  # both Tru64's cc and ICC support -MD to output dependencies as a
4888  # side effect of compilation, but ICC will put the dependencies in
4889  # the current directory while Tru64 will put them in the object
4890  # directory.
4891  mkdir sub
4892
4893  am_cv_CC_dependencies_compiler_type=none
4894  if test "$am_compiler_list" = ""; then
4895     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4896  fi
4897  for depmode in $am_compiler_list; do
4898    # Setup a source with many dependencies, because some compilers
4899    # like to wrap large dependency lists on column 80 (with \), and
4900    # we should not choose a depcomp mode which is confused by this.
4901    #
4902    # We need to recreate these files for each test, as the compiler may
4903    # overwrite some of them when testing with obscure command lines.
4904    # This happens at least with the AIX C compiler.
4905    : > sub/conftest.c
4906    for i in 1 2 3 4 5 6; do
4907      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4908      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4909      # Solaris 8's {/usr,}/bin/sh.
4910      touch sub/conftst$i.h
4911    done
4912    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4913
4914    case $depmode in
4915    nosideeffect)
4916      # after this tag, mechanisms are not by side-effect, so they'll
4917      # only be used when explicitly requested
4918      if test "x$enable_dependency_tracking" = xyes; then
4919        continue
4920      else
4921        break
4922      fi
4923      ;;
4924    none) break ;;
4925    esac
4926    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4927    # mode.  It turns out that the SunPro C++ compiler does not properly
4928    # handle `-M -o', and we need to detect this.
4929    if depmode=$depmode \
4930       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4931       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4932       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4933         >/dev/null 2>conftest.err &&
4934       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4935       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4936       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4937      # icc doesn't choke on unknown options, it will just issue warnings
4938      # or remarks (even with -Werror).  So we grep stderr for any message
4939      # that says an option was ignored or not supported.
4940      # When given -MP, icc 7.0 and 7.1 complain thusly:
4941      #   icc: Command line warning: ignoring option '-M'; no argument required
4942      # The diagnosis changed in icc 8.0:
4943      #   icc: Command line remark: option '-MP' not supported
4944      if (grep 'ignoring option' conftest.err ||
4945          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4946        am_cv_CC_dependencies_compiler_type=$depmode
4947        break
4948      fi
4949    fi
4950  done
4951
4952  cd ..
4953  rm -rf conftest.dir
4954else
4955  am_cv_CC_dependencies_compiler_type=none
4956fi
4957
4958fi
4959echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4960echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4961CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4962
4963
4964
4965if
4966  test "x$enable_dependency_tracking" != xno \
4967  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4968  am__fastdepCC_TRUE=
4969  am__fastdepCC_FALSE='#'
4970else
4971  am__fastdepCC_TRUE='#'
4972  am__fastdepCC_FALSE=
4973fi
4974
4975
4976depcc="$CXX"  am_compiler_list=
4977
4978echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4979echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4980if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4981  echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
4983  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4984  # We make a subdir and do the tests there.  Otherwise we can end up
4985  # making bogus files that we don't know about and never remove.  For
4986  # instance it was reported that on HP-UX the gcc test will end up
4987  # making a dummy file named `D' -- because `-MD' means `put the output
4988  # in D'.
4989  mkdir conftest.dir
4990  # Copy depcomp to subdir because otherwise we won't find it if we're
4991  # using a relative directory.
4992  cp "$am_depcomp" conftest.dir
4993  cd conftest.dir
4994  # We will build objects and dependencies in a subdirectory because
4995  # it helps to detect inapplicable dependency modes.  For instance
4996  # both Tru64's cc and ICC support -MD to output dependencies as a
4997  # side effect of compilation, but ICC will put the dependencies in
4998  # the current directory while Tru64 will put them in the object
4999  # directory.
5000  mkdir sub
5001
5002  am_cv_CXX_dependencies_compiler_type=none
5003  if test "$am_compiler_list" = ""; then
5004     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5005  fi
5006  for depmode in $am_compiler_list; do
5007    # Setup a source with many dependencies, because some compilers
5008    # like to wrap large dependency lists on column 80 (with \), and
5009    # we should not choose a depcomp mode which is confused by this.
5010    #
5011    # We need to recreate these files for each test, as the compiler may
5012    # overwrite some of them when testing with obscure command lines.
5013    # This happens at least with the AIX C compiler.
5014    : > sub/conftest.c
5015    for i in 1 2 3 4 5 6; do
5016      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5017      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5018      # Solaris 8's {/usr,}/bin/sh.
5019      touch sub/conftst$i.h
5020    done
5021    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5022
5023    case $depmode in
5024    nosideeffect)
5025      # after this tag, mechanisms are not by side-effect, so they'll
5026      # only be used when explicitly requested
5027      if test "x$enable_dependency_tracking" = xyes; then
5028        continue
5029      else
5030        break
5031      fi
5032      ;;
5033    none) break ;;
5034    esac
5035    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5036    # mode.  It turns out that the SunPro C++ compiler does not properly
5037    # handle `-M -o', and we need to detect this.
5038    if depmode=$depmode \
5039       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5040       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5041       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5042         >/dev/null 2>conftest.err &&
5043       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5044       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5045       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5046      # icc doesn't choke on unknown options, it will just issue warnings
5047      # or remarks (even with -Werror).  So we grep stderr for any message
5048      # that says an option was ignored or not supported.
5049      # When given -MP, icc 7.0 and 7.1 complain thusly:
5050      #   icc: Command line warning: ignoring option '-M'; no argument required
5051      # The diagnosis changed in icc 8.0:
5052      #   icc: Command line remark: option '-MP' not supported
5053      if (grep 'ignoring option' conftest.err ||
5054          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5055        am_cv_CXX_dependencies_compiler_type=$depmode
5056        break
5057      fi
5058    fi
5059  done
5060
5061  cd ..
5062  rm -rf conftest.dir
5063else
5064  am_cv_CXX_dependencies_compiler_type=none
5065fi
5066
5067fi
5068echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5069echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5070CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5071
5072
5073
5074if
5075  test "x$enable_dependency_tracking" != xno \
5076  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5077  am__fastdepCXX_TRUE=
5078  am__fastdepCXX_FALSE='#'
5079else
5080  am__fastdepCXX_TRUE='#'
5081  am__fastdepCXX_FALSE=
5082fi
5083
5084
5085
5086echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5087echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5088    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5089if test "${enable_maintainer_mode+set}" = set; then
5090  enableval="$enable_maintainer_mode"
5091  USE_MAINTAINER_MODE=$enableval
5092else
5093  USE_MAINTAINER_MODE=no
5094fi;
5095  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5096echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5097
5098
5099if test $USE_MAINTAINER_MODE = yes; then
5100  MAINTAINER_MODE_TRUE=
5101  MAINTAINER_MODE_FALSE='#'
5102else
5103  MAINTAINER_MODE_TRUE='#'
5104  MAINTAINER_MODE_FALSE=
5105fi
5106
5107  MAINT=$MAINTAINER_MODE_TRUE
5108
5109
5110
5111coin_have_externals=no
5112if test "$enable_maintainer_mode" = yes; then
5113
5114  # If maintainer mode is chosen, we make sure that the correct versions
5115  # of the tools are used, and that we know where libtool.m4 is (to
5116  # recreate acinclude.m4)
5117
5118
5119  LIBTOOLM4=
5120  # Normally, $HOME
5121  AUTOTOOLS_DFLT=$HOME
5122
5123  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5124echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5125if test "${ac_cv_use_correct_autotools+set}" = set; then
5126  echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128  ac_cv_use_correct_autotools=check
5129fi
5130echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5131echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5132
5133  if test $ac_cv_use_correct_autotools = check; then
5134    ac_cv_use_correct_autotools=yes
5135    # Check if we have autoconf
5136    # Extract the first word of "autoconf", so it can be a program name with args.
5137set dummy autoconf; ac_word=$2
5138echo "$as_me:$LINENO: checking for $ac_word" >&5
5139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140if test "${ac_cv_prog_have_autoconf+set}" = set; then
5141  echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143  if test -n "$have_autoconf"; then
5144  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149  IFS=$as_save_IFS
5150  test -z "$as_dir" && as_dir=.
5151  for ac_exec_ext in '' $ac_executable_extensions; do
5152  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153    ac_cv_prog_have_autoconf="yes"
5154    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155    break 2
5156  fi
5157done
5158done
5159
5160  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5161fi
5162fi
5163have_autoconf=$ac_cv_prog_have_autoconf
5164if test -n "$have_autoconf"; then
5165  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5166echo "${ECHO_T}$have_autoconf" >&6
5167else
5168  echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170fi
5171
5172    if test $have_autoconf = no; then
5173      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5174echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5175   { (exit 1); exit 1; }; }
5176    fi
5177
5178    # Check whether autoconf is the correct version
5179    correct_version='2.59'
5180    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5181    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5182echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5183    autoconf --version > confauto.out 2>&1
5184    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5185      echo "$as_me:$LINENO: result: yes" >&5
5186echo "${ECHO_T}yes" >&6
5187    else
5188      rm -f confauto.out
5189      echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5192echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5193   { (exit 1); exit 1; }; }
5194    fi
5195    rm -f confauto.out
5196
5197    # Check if the executable autoconf is picked up from the correct location
5198    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5199echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5200    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5201    autoconf_dir=`cd $autoconf_dir; pwd`
5202    if test x$AUTOTOOLS_DIR = x; then
5203      want_dir=$AUTOTOOLS_DFLT/bin
5204    else
5205      want_dir=$AUTOTOOLS_DIR/bin
5206    fi
5207    if test $autoconf_dir = `cd $want_dir; pwd`; then
5208      echo "$as_me:$LINENO: result: yes" >&5
5209echo "${ECHO_T}yes" >&6
5210    else
5211      rm -f confauto.out
5212      echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5215echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5216   { (exit 1); exit 1; }; }
5217    fi
5218
5219    # Check if we have automake
5220    # Extract the first word of "automake", so it can be a program name with args.
5221set dummy automake; ac_word=$2
5222echo "$as_me:$LINENO: checking for $ac_word" >&5
5223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224if test "${ac_cv_prog_have_automake+set}" = set; then
5225  echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227  if test -n "$have_automake"; then
5228  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233  IFS=$as_save_IFS
5234  test -z "$as_dir" && as_dir=.
5235  for ac_exec_ext in '' $ac_executable_extensions; do
5236  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237    ac_cv_prog_have_automake="yes"
5238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239    break 2
5240  fi
5241done
5242done
5243
5244  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5245fi
5246fi
5247have_automake=$ac_cv_prog_have_automake
5248if test -n "$have_automake"; then
5249  echo "$as_me:$LINENO: result: $have_automake" >&5
5250echo "${ECHO_T}$have_automake" >&6
5251else
5252  echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254fi
5255
5256    if test $have_automake = no; then
5257      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5258echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5259   { (exit 1); exit 1; }; }
5260    fi
5261
5262    # Check whether automake is the correct version
5263    correct_version='1.9.6'
5264    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5265    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5266echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5267    automake --version > confauto.out 2>&1
5268    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5269      echo "$as_me:$LINENO: result: yes" >&5
5270echo "${ECHO_T}yes" >&6
5271    else
5272      rm -f confauto.out
5273      echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5276echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5277   { (exit 1); exit 1; }; }
5278    fi
5279    rm -f confauto.out
5280
5281    # Check if the executable automake is picked up from the correct location
5282    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5283echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5284    automake_dir=`which automake | sed -e 's=/automake=='`
5285    automake_dir=`cd $automake_dir; pwd`
5286    if test x$AUTOTOOLS_DIR = x; then
5287      want_dir=$AUTOTOOLS_DFLT/bin
5288    else
5289      want_dir=$AUTOTOOLS_DIR/bin
5290    fi
5291    if test $automake_dir = `cd $want_dir; pwd`; then
5292      echo "$as_me:$LINENO: result: yes" >&5
5293echo "${ECHO_T}yes" >&6
5294    else
5295      rm -f confauto.out
5296      echo "$as_me:$LINENO: result: no" >&5
5297echo "${ECHO_T}no" >&6
5298      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5299echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5300   { (exit 1); exit 1; }; }
5301    fi
5302
5303    # Check if this is the correct version of libtool (with escaped dots)
5304    if test x$AUTOTOOLS_DIR = x; then
5305      want_dir=$AUTOTOOLS_DFLT/share
5306    else
5307      want_dir=$AUTOTOOLS_DIR/share
5308    fi
5309    correct_version='1.5.22'
5310    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5311    if test -r $want_dir/libtool/ltmain.sh; then
5312  have_ltmain=yes
5313  :
5314else
5315  have_ltmain=no
5316  :
5317fi
5318
5319    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5320echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5321    if test $have_ltmain = yes; then
5322    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5323        echo "$as_me:$LINENO: result: yes" >&5
5324echo "${ECHO_T}yes" >&6
5325      else
5326        echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
5328        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5329echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5330   { (exit 1); exit 1; }; }
5331      fi
5332    else
5333      echo "$as_me:$LINENO: result: no" >&5
5334echo "${ECHO_T}no" >&6
5335      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5336echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5337   { (exit 1); exit 1; }; }
5338    fi
5339  fi
5340
5341  # Check if we can find the libtool file
5342  if test x$AUTOTOOLS_DIR = x; then
5343    want_dir=$AUTOTOOLS_DFLT/share
5344  else
5345    want_dir=$AUTOTOOLS_DIR/share
5346  fi
5347  if test -r $want_dir/aclocal/libtool.m4; then
5348  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5349  :
5350else
5351  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5352echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5353   { (exit 1); exit 1; }; }
5354  :
5355fi
5356
5357
5358  # Check if we have an Dependencies file
5359  if test -r $srcdir/Dependencies; then
5360    coin_have_externals=yes
5361  fi
5362  # Check if subversion is installed and understands https
5363  # Extract the first word of "svn", so it can be a program name with args.
5364set dummy svn; ac_word=$2
5365echo "$as_me:$LINENO: checking for $ac_word" >&5
5366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5367if test "${ac_cv_prog_have_svn+set}" = set; then
5368  echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370  if test -n "$have_svn"; then
5371  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5372else
5373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH
5375do
5376  IFS=$as_save_IFS
5377  test -z "$as_dir" && as_dir=.
5378  for ac_exec_ext in '' $ac_executable_extensions; do
5379  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380    ac_cv_prog_have_svn="yes"
5381    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382    break 2
5383  fi
5384done
5385done
5386
5387  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5388fi
5389fi
5390have_svn=$ac_cv_prog_have_svn
5391if test -n "$have_svn"; then
5392  echo "$as_me:$LINENO: result: $have_svn" >&5
5393echo "${ECHO_T}$have_svn" >&6
5394else
5395  echo "$as_me:$LINENO: result: no" >&5
5396echo "${ECHO_T}no" >&6
5397fi
5398
5399  if test x$have_svn = xyes; then
5400    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5401echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5402if test "${ac_cv_svn_understands_https+set}" = set; then
5403  echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405  svn --version > confauto.out 2>&1
5406                    if $EGREP https confauto.out >/dev/null 2>&1; then
5407                      ac_cv_svn_understands_https=yes
5408                    else
5409                      ac_cv_svn_understands_https=no
5410                      have_svn=no
5411                      ac_cv_prog_have_svn=no
5412                    fi
5413                    rm -f confauto.out
5414fi
5415echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5416echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5417  fi
5418
5419  # Find the location of the BuildTools directory
5420  BUILDTOOLSDIR=
5421  if test -r $srcdir/BuildTools/coin.m4; then
5422    BUILDTOOLSDIR=$srcdir/BuildTools
5423  else
5424    if test -r $srcdir/../BuildTools/coin.m4; then
5425      BUILDTOOLSDIR=$srcdir/../BuildTools
5426    else
5427      if test -r $srcdir/../../BuildTools/coin.m4; then
5428        BUILDTOOLSDIR=$srcdir/../../BuildTools
5429      else
5430        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5431echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5432   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5433      fi
5434    fi
5435  fi
5436
5437
5438  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5439  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5440    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5441  fi
5442
5443  # The following variable is set to the name of the directory where
5444  # the autotool scripts are located
5445
5446  AUX_DIR=$ac_aux_dir
5447fi
5448
5449# helpful variable for the base directory of this package
5450abs_source_dir=`cd $srcdir; pwd`
5451
5452
5453# Stuff for example Makefiles
5454if test x$prefix = xNONE; then
5455  full_prefix=$ac_default_prefix
5456else
5457  full_prefix=$prefix
5458fi
5459full_prefix=`cd $full_prefix ; pwd`
5460
5461abs_lib_dir=$full_prefix/lib
5462
5463abs_include_dir=$full_prefix/include
5464
5465abs_bin_dir=$full_prefix/bin
5466
5467
5468
5469if test $coin_have_externals = yes && test x$have_svn = xyes; then
5470  HAVE_EXTERNALS_TRUE=
5471  HAVE_EXTERNALS_FALSE='#'
5472else
5473  HAVE_EXTERNALS_TRUE='#'
5474  HAVE_EXTERNALS_FALSE=
5475fi
5476
5477
5478# AC_MSG_NOTICE([End automake initialisation.])
5479
5480
5481
5482LIBTOOL=
5483if test -r ../libtool; then
5484  coin_config_dir=..
5485  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5486fi
5487if test "x$LIBTOOL" = x; then
5488  if test -r ../../libtool; then
5489    coin_config_dir=../..
5490    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5491  fi
5492fi
5493
5494if test "x$LIBTOOL" = x; then
5495# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5496  # Stuff for libtool
5497  # Check whether --enable-shared or --disable-shared was given.
5498if test "${enable_shared+set}" = set; then
5499  enableval="$enable_shared"
5500  p=${PACKAGE-default}
5501    case $enableval in
5502    yes) enable_shared=yes ;;
5503    no) enable_shared=no ;;
5504    *)
5505      enable_shared=no
5506      # Look at the argument we got.  We use all the common list separators.
5507      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5508      for pkg in $enableval; do
5509        IFS="$lt_save_ifs"
5510        if test "X$pkg" = "X$p"; then
5511          enable_shared=yes
5512        fi
5513      done
5514      IFS="$lt_save_ifs"
5515      ;;
5516    esac
5517else
5518  enable_shared=yes
5519fi;
5520
5521# Check whether --enable-fast-install or --disable-fast-install was given.
5522if test "${enable_fast_install+set}" = set; then
5523  enableval="$enable_fast_install"
5524  p=${PACKAGE-default}
5525    case $enableval in
5526    yes) enable_fast_install=yes ;;
5527    no) enable_fast_install=no ;;
5528    *)
5529      enable_fast_install=no
5530      # Look at the argument we got.  We use all the common list separators.
5531      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5532      for pkg in $enableval; do
5533        IFS="$lt_save_ifs"
5534        if test "X$pkg" = "X$p"; then
5535          enable_fast_install=yes
5536        fi
5537      done
5538      IFS="$lt_save_ifs"
5539      ;;
5540    esac
5541else
5542  enable_fast_install=yes
5543fi;
5544
5545echo "$as_me:$LINENO: checking host system type" >&5
5546echo $ECHO_N "checking host system type... $ECHO_C" >&6
5547if test "${ac_cv_host+set}" = set; then
5548  echo $ECHO_N "(cached) $ECHO_C" >&6
5549else
5550  ac_cv_host_alias=$host_alias
5551test -z "$ac_cv_host_alias" &&
5552  ac_cv_host_alias=$ac_cv_build_alias
5553ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5554  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5555echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5556   { (exit 1); exit 1; }; }
5557
5558fi
5559echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5560echo "${ECHO_T}$ac_cv_host" >&6
5561host=$ac_cv_host
5562host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5563host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5564host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5565
5566
5567echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5568echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5569if test "${lt_cv_path_SED+set}" = set; then
5570  echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572  # Loop through the user's path and test for sed and gsed.
5573# Then use that list of sed's as ones to test for truncation.
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577  IFS=$as_save_IFS
5578  test -z "$as_dir" && as_dir=.
5579  for lt_ac_prog in sed gsed; do
5580    for ac_exec_ext in '' $ac_executable_extensions; do
5581      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5582        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5583      fi
5584    done
5585  done
5586done
5587lt_ac_max=0
5588lt_ac_count=0
5589# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5590# along with /bin/sed that truncates output.
5591for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5592  test ! -f $lt_ac_sed && continue
5593  cat /dev/null > conftest.in
5594  lt_ac_count=0
5595  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5596  # Check for GNU sed and select it if it is found.
5597  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5598    lt_cv_path_SED=$lt_ac_sed
5599    break
5600  fi
5601  while true; do
5602    cat conftest.in conftest.in >conftest.tmp
5603    mv conftest.tmp conftest.in
5604    cp conftest.in conftest.nl
5605    echo >>conftest.nl
5606    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5607    cmp -s conftest.out conftest.nl || break
5608    # 10000 chars as input seems more than enough
5609    test $lt_ac_count -gt 10 && break
5610    lt_ac_count=`expr $lt_ac_count + 1`
5611    if test $lt_ac_count -gt $lt_ac_max; then
5612      lt_ac_max=$lt_ac_count
5613      lt_cv_path_SED=$lt_ac_sed
5614    fi
5615  done
5616done
5617
5618fi
5619
5620SED=$lt_cv_path_SED
5621echo "$as_me:$LINENO: result: $SED" >&5
5622echo "${ECHO_T}$SED" >&6
5623
5624
5625# Check whether --with-gnu-ld or --without-gnu-ld was given.
5626if test "${with_gnu_ld+set}" = set; then
5627  withval="$with_gnu_ld"
5628  test "$withval" = no || with_gnu_ld=yes
5629else
5630  with_gnu_ld=no
5631fi;
5632ac_prog=ld
5633if test "$GCC" = yes; then
5634  # Check if gcc -print-prog-name=ld gives a path.
5635  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5636echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5637  case $host in
5638  *-*-mingw*)
5639    # gcc leaves a trailing carriage return which upsets mingw
5640    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5641  *)
5642    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5643  esac
5644  case $ac_prog in
5645    # Accept absolute paths.
5646    [\\/]* | ?:[\\/]*)
5647      re_direlt='/[^/][^/]*/\.\./'
5648      # Canonicalize the pathname of ld
5649      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5650      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5651        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5652      done
5653      test -z "$LD" && LD="$ac_prog"
5654      ;;
5655  "")
5656    # If it fails, then pretend we aren't using GCC.
5657    ac_prog=ld
5658    ;;
5659  *)
5660    # If it is relative, then search for the first ld in PATH.
5661    with_gnu_ld=unknown
5662    ;;
5663  esac
5664elif test "$with_gnu_ld" = yes; then
5665  echo "$as_me:$LINENO: checking for GNU ld" >&5
5666echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5667else
5668  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5669echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5670fi
5671if test "${lt_cv_path_LD+set}" = set; then
5672  echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674  if test -z "$LD"; then
5675  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5676  for ac_dir in $PATH; do
5677    IFS="$lt_save_ifs"
5678    test -z "$ac_dir" && ac_dir=.
5679    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5680      lt_cv_path_LD="$ac_dir/$ac_prog"
5681      # Check to see if the program is GNU ld.  I'd rather use --version,
5682      # but apparently some variants of GNU ld only accept -v.
5683      # Break only if it was the GNU/non-GNU ld that we prefer.
5684      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5685      *GNU* | *'with BFD'*)
5686        test "$with_gnu_ld" != no && break
5687        ;;
5688      *)
5689        test "$with_gnu_ld" != yes && break
5690        ;;
5691      esac
5692    fi
5693  done
5694  IFS="$lt_save_ifs"
5695else
5696  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5697fi
5698fi
5699
5700LD="$lt_cv_path_LD"
5701if test -n "$LD"; then
5702  echo "$as_me:$LINENO: result: $LD" >&5
5703echo "${ECHO_T}$LD" >&6
5704else
5705  echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6
5707fi
5708test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5709echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5710   { (exit 1); exit 1; }; }
5711echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5712echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5713if test "${lt_cv_prog_gnu_ld+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5717case `$LD -v 2>&1 </dev/null` in
5718*GNU* | *'with BFD'*)
5719  lt_cv_prog_gnu_ld=yes
5720  ;;
5721*)
5722  lt_cv_prog_gnu_ld=no
5723  ;;
5724esac
5725fi
5726echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5727echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5728with_gnu_ld=$lt_cv_prog_gnu_ld
5729
5730
5731echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5732echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5733if test "${lt_cv_ld_reload_flag+set}" = set; then
5734  echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736  lt_cv_ld_reload_flag='-r'
5737fi
5738echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5739echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5740reload_flag=$lt_cv_ld_reload_flag
5741case $reload_flag in
5742"" | " "*) ;;
5743*) reload_flag=" $reload_flag" ;;
5744esac
5745reload_cmds='$LD$reload_flag -o $output$reload_objs'
5746case $host_os in
5747  darwin*)
5748    if test "$GCC" = yes; then
5749      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5750    else
5751      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5752    fi
5753    ;;
5754esac
5755
5756echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5757echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5758if test "${lt_cv_path_NM+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761  if test -n "$NM"; then
5762  # Let the user override the test.
5763  lt_cv_path_NM="$NM"
5764else
5765  lt_nm_to_check="${ac_tool_prefix}nm"
5766  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767    lt_nm_to_check="$lt_nm_to_check nm"
5768  fi
5769  for lt_tmp_nm in $lt_nm_to_check; do
5770    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5772      IFS="$lt_save_ifs"
5773      test -z "$ac_dir" && ac_dir=.
5774      tmp_nm="$ac_dir/$lt_tmp_nm"
5775      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776        # Check to see if the nm accepts a BSD-compat flag.
5777        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778        #   nm: unknown option "B" ignored
5779        # Tru64's nm complains that /dev/null is an invalid object file
5780        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781        */dev/null* | *'Invalid file or object type'*)
5782          lt_cv_path_NM="$tmp_nm -B"
5783          break
5784          ;;
5785        *)
5786          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5787          */dev/null*)
5788            lt_cv_path_NM="$tmp_nm -p"
5789            break
5790            ;;
5791          *)
5792            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793            continue # so that we can try to find one that supports BSD flags
5794            ;;
5795          esac
5796          ;;
5797        esac
5798      fi
5799    done
5800    IFS="$lt_save_ifs"
5801  done
5802  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5803fi
5804fi
5805echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806echo "${ECHO_T}$lt_cv_path_NM" >&6
5807NM="$lt_cv_path_NM"
5808
5809echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5810echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5811if test "${lt_cv_deplibs_check_method+set}" = set; then
5812  echo $ECHO_N "(cached) $ECHO_C" >&6
5813else
5814  lt_cv_file_magic_cmd='$MAGIC_CMD'
5815lt_cv_file_magic_test_file=
5816lt_cv_deplibs_check_method='unknown'
5817# Need to set the preceding variable on all platforms that support
5818# interlibrary dependencies.
5819# 'none' -- dependencies not supported.
5820# `unknown' -- same as none, but documents that we really don't know.
5821# 'pass_all' -- all dependencies passed with no checks.
5822# 'test_compile' -- check by making test program.
5823# 'file_magic [[regex]]' -- check by looking for files in library path
5824# which responds to the $file_magic_cmd with a given extended regex.
5825# If you have `file' or equivalent on your system and you're not sure
5826# whether `pass_all' will *always* work, you probably want this one.
5827
5828case $host_os in
5829aix4* | aix5*)
5830  lt_cv_deplibs_check_method=pass_all
5831  ;;
5832
5833beos*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836
5837bsdi[45]*)
5838  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5839  lt_cv_file_magic_cmd='/usr/bin/file -L'
5840  lt_cv_file_magic_test_file=/shlib/libc.so
5841  ;;
5842
5843cygwin*)
5844  # func_win32_libid is a shell function defined in ltmain.sh
5845  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5846  lt_cv_file_magic_cmd='func_win32_libid'
5847  ;;
5848
5849mingw* | pw32*)
5850  # Base MSYS/MinGW do not provide the 'file' command needed by
5851  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5852  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5853  lt_cv_file_magic_cmd='$OBJDUMP -f'
5854  ;;
5855
5856darwin* | rhapsody*)
5857  lt_cv_deplibs_check_method=pass_all
5858  ;;
5859
5860freebsd* | kfreebsd*-gnu | dragonfly*)
5861  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5862    case $host_cpu in
5863    i*86 )
5864      # Not sure whether the presence of OpenBSD here was a mistake.
5865      # Let's accept both of them until this is cleared up.
5866      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5867      lt_cv_file_magic_cmd=/usr/bin/file
5868      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5869      ;;
5870    esac
5871  else
5872    lt_cv_deplibs_check_method=pass_all
5873  fi
5874  ;;
5875
5876gnu*)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879
5880hpux10.20* | hpux11*)
5881  lt_cv_file_magic_cmd=/usr/bin/file
5882  case $host_cpu in
5883  ia64*)
5884    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5885    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5886    ;;
5887  hppa*64*)
5888    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]'
5889    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5890    ;;
5891  *)
5892    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5893    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5894    ;;
5895  esac
5896  ;;
5897
5898interix3*)
5899  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5900  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5901  ;;
5902
5903irix5* | irix6* | nonstopux*)
5904  case $LD in
5905  *-32|*"-32 ") libmagic=32-bit;;
5906  *-n32|*"-n32 ") libmagic=N32;;
5907  *-64|*"-64 ") libmagic=64-bit;;
5908  *) libmagic=never-match;;
5909  esac
5910  lt_cv_deplibs_check_method=pass_all
5911  ;;
5912
5913# This must be Linux ELF.
5914linux*)
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917
5918netbsd*)
5919  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5920    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5921  else
5922    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5923  fi
5924  ;;
5925
5926newos6*)
5927  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5928  lt_cv_file_magic_cmd=/usr/bin/file
5929  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5930  ;;
5931
5932nto-qnx*)
5933  lt_cv_deplibs_check_method=unknown
5934  ;;
5935
5936openbsd*)
5937  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5938    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5939  else
5940    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5941  fi
5942  ;;
5943
5944osf3* | osf4* | osf5*)
5945  lt_cv_deplibs_check_method=pass_all
5946  ;;
5947
5948solaris*)
5949  lt_cv_deplibs_check_method=pass_all
5950  ;;
5951
5952sysv4 | sysv4.3*)
5953  case $host_vendor in
5954  motorola)
5955    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]'
5956    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5957    ;;
5958  ncr)
5959    lt_cv_deplibs_check_method=pass_all
5960    ;;
5961  sequent)
5962    lt_cv_file_magic_cmd='/bin/file'
5963    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5964    ;;
5965  sni)
5966    lt_cv_file_magic_cmd='/bin/file'
5967    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5968    lt_cv_file_magic_test_file=/lib/libc.so
5969    ;;
5970  siemens)
5971    lt_cv_deplibs_check_method=pass_all
5972    ;;
5973  pc)
5974    lt_cv_deplibs_check_method=pass_all
5975    ;;
5976  esac
5977  ;;
5978
5979sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5980  lt_cv_deplibs_check_method=pass_all
5981  ;;
5982esac
5983
5984fi
5985echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5986echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5987file_magic_cmd=$lt_cv_file_magic_cmd
5988deplibs_check_method=$lt_cv_deplibs_check_method
5989test -z "$deplibs_check_method" && deplibs_check_method=unknown
5990
5991
5992
5993
5994# If no C compiler was specified, use CC.
5995LTCC=${LTCC-"$CC"}
5996
5997# If no C compiler flags were specified, use CFLAGS.
5998LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5999
6000# Allow CC to be a program name with arguments.
6001compiler=$CC
6002
6003# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6004if test "${enable_libtool_lock+set}" = set; then
6005  enableval="$enable_libtool_lock"
6006
6007fi;
6008test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6009
6010# Some flags need to be propagated to the compiler or linker for good
6011# libtool support.
6012case $host in
6013ia64-*-hpux*)
6014  # Find out which ABI we are using.
6015  echo 'int i;' > conftest.$ac_ext
6016  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6017  (eval $ac_compile) 2>&5
6018  ac_status=$?
6019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020  (exit $ac_status); }; then
6021    case `/usr/bin/file conftest.$ac_objext` in
6022    *ELF-32*)
6023      HPUX_IA64_MODE="32"
6024      ;;
6025    *ELF-64*)
6026      HPUX_IA64_MODE="64"
6027      ;;
6028    esac
6029  fi
6030  rm -rf conftest*
6031  ;;
6032*-*-irix6*)
6033  # Find out which ABI we are using.
6034  echo '#line 6034 "configure"' > conftest.$ac_ext
6035  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036  (eval $ac_compile) 2>&5
6037  ac_status=$?
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); }; then
6040   if test "$lt_cv_prog_gnu_ld" = yes; then
6041    case `/usr/bin/file conftest.$ac_objext` in
6042    *32-bit*)
6043      LD="${LD-ld} -melf32bsmip"
6044      ;;
6045    *N32*)
6046      LD="${LD-ld} -melf32bmipn32"
6047      ;;
6048    *64-bit*)
6049      LD="${LD-ld} -melf64bmip"
6050      ;;
6051    esac
6052   else
6053    case `/usr/bin/file conftest.$ac_objext` in
6054    *32-bit*)
6055      LD="${LD-ld} -32"
6056      ;;
6057    *N32*)
6058      LD="${LD-ld} -n32"
6059      ;;
6060    *64-bit*)
6061      LD="${LD-ld} -64"
6062      ;;
6063    esac
6064   fi
6065  fi
6066  rm -rf conftest*
6067  ;;
6068
6069x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6070  # Find out which ABI we are using.
6071  echo 'int i;' > conftest.$ac_ext
6072  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073  (eval $ac_compile) 2>&5
6074  ac_status=$?
6075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); }; then
6077    case `/usr/bin/file conftest.o` in
6078    *32-bit*)
6079      case $host in
6080        x86_64-*linux*)
6081          LD="${LD-ld} -m elf_i386"
6082          ;;
6083        ppc64-*linux*|powerpc64-*linux*)
6084          LD="${LD-ld} -m elf32ppclinux"
6085          ;;
6086        s390x-*linux*)
6087          LD="${LD-ld} -m elf_s390"
6088          ;;
6089        sparc64-*linux*)
6090          LD="${LD-ld} -m elf32_sparc"
6091          ;;
6092      esac
6093      ;;
6094    *64-bit*)
6095      case $host in
6096        x86_64-*linux*)
6097          LD="${LD-ld} -m elf_x86_64"
6098          ;;
6099        ppc*-*linux*|powerpc*-*linux*)
6100          LD="${LD-ld} -m elf64ppc"
6101          ;;
6102        s390*-*linux*)
6103          LD="${LD-ld} -m elf64_s390"
6104          ;;
6105        sparc*-*linux*)
6106          LD="${LD-ld} -m elf64_sparc"
6107          ;;
6108      esac
6109      ;;
6110    esac
6111  fi
6112  rm -rf conftest*
6113  ;;
6114
6115*-*-sco3.2v5*)
6116  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6117  SAVE_CFLAGS="$CFLAGS"
6118  CFLAGS="$CFLAGS -belf"
6119  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6120echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6121if test "${lt_cv_cc_needs_belf+set}" = set; then
6122  echo $ECHO_N "(cached) $ECHO_C" >&6
6123else
6124  ac_ext=c
6125ac_cpp='$CPP $CPPFLAGS'
6126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128ac_compiler_gnu=$ac_cv_c_compiler_gnu
6129
6130     cat >conftest.$ac_ext <<_ACEOF
6131/* confdefs.h.  */
6132_ACEOF
6133cat confdefs.h >>conftest.$ac_ext
6134cat >>conftest.$ac_ext <<_ACEOF
6135/* end confdefs.h.  */
6136
6137int
6138main ()
6139{
6140
6141  ;
6142  return 0;
6143}
6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
6146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147  (eval $ac_link) 2>conftest.er1
6148  ac_status=$?
6149  grep -v '^ *+' conftest.er1 >conftest.err
6150  rm -f conftest.er1
6151  cat conftest.err >&5
6152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153  (exit $ac_status); } &&
6154         { ac_try='test -z "$ac_c_werror_flag"
6155                         || test ! -s conftest.err'
6156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157  (eval $ac_try) 2>&5
6158  ac_status=$?
6159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160  (exit $ac_status); }; } &&
6161         { ac_try='test -s conftest$ac_exeext'
6162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163  (eval $ac_try) 2>&5
6164  ac_status=$?
6165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166  (exit $ac_status); }; }; then
6167  lt_cv_cc_needs_belf=yes
6168else
6169  echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172lt_cv_cc_needs_belf=no
6173fi
6174rm -f conftest.err conftest.$ac_objext \
6175      conftest$ac_exeext conftest.$ac_ext
6176     ac_ext=c
6177ac_cpp='$CPP $CPPFLAGS'
6178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181
6182fi
6183echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6184echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6185  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6186    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6187    CFLAGS="$SAVE_CFLAGS"
6188  fi
6189  ;;
6190sparc*-*solaris*)
6191  # Find out which ABI we are using.
6192  echo 'int i;' > conftest.$ac_ext
6193  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194  (eval $ac_compile) 2>&5
6195  ac_status=$?
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); }; then
6198    case `/usr/bin/file conftest.o` in
6199    *64-bit*)
6200      case $lt_cv_prog_gnu_ld in
6201      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6202      *)    LD="${LD-ld} -64" ;;
6203      esac
6204      ;;
6205    esac
6206  fi
6207  rm -rf conftest*
6208  ;;
6209
6210
6211esac
6212
6213need_locks="$enable_libtool_lock"
6214
6215
6216ac_ext=c
6217ac_cpp='$CPP $CPPFLAGS'
6218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6222echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6223# On Suns, sometimes $CPP names a directory.
6224if test -n "$CPP" && test -d "$CPP"; then
6225  CPP=
6226fi
6227if test -z "$CPP"; then
6228  if test "${ac_cv_prog_CPP+set}" = set; then
6229  echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
6231      # Double quotes because CPP needs to be expanded
6232    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6233    do
6234      ac_preproc_ok=false
6235for ac_c_preproc_warn_flag in '' yes
6236do
6237  # Use a header file that comes with gcc, so configuring glibc
6238  # with a fresh cross-compiler works.
6239  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6240  # <limits.h> exists even on freestanding compilers.
6241  # On the NeXT, cc -E runs the code through the compiler's parser,
6242  # not just through cpp. "Syntax error" is here to catch this case.
6243  cat >conftest.$ac_ext <<_ACEOF
6244/* confdefs.h.  */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h.  */
6249#ifdef __STDC__
6250# include <limits.h>
6251#else
6252# include <assert.h>
6253#endif
6254                     Syntax error
6255_ACEOF
6256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6257  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6258  ac_status=$?
6259  grep -v '^ *+' conftest.er1 >conftest.err
6260  rm -f conftest.er1
6261  cat conftest.err >&5
6262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263  (exit $ac_status); } >/dev/null; then
6264  if test -s conftest.err; then
6265    ac_cpp_err=$ac_c_preproc_warn_flag
6266    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6267  else
6268    ac_cpp_err=
6269  fi
6270else
6271  ac_cpp_err=yes
6272fi
6273if test -z "$ac_cpp_err"; then
6274  :
6275else
6276  echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
6278
6279  # Broken: fails on valid input.
6280continue
6281fi
6282rm -f conftest.err conftest.$ac_ext
6283
6284  # OK, works on sane cases.  Now check whether non-existent headers
6285  # can be detected and how.
6286  cat >conftest.$ac_ext <<_ACEOF
6287/* confdefs.h.  */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h.  */
6292#include <ac_nonexistent.h>
6293_ACEOF
6294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6295  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296  ac_status=$?
6297  grep -v '^ *+' conftest.er1 >conftest.err
6298  rm -f conftest.er1
6299  cat conftest.err >&5
6300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301  (exit $ac_status); } >/dev/null; then
6302  if test -s conftest.err; then
6303    ac_cpp_err=$ac_c_preproc_warn_flag
6304    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6305  else
6306    ac_cpp_err=
6307  fi
6308else
6309  ac_cpp_err=yes
6310fi
6311if test -z "$ac_cpp_err"; then
6312  # Broken: success on invalid input.
6313continue
6314else
6315  echo "$as_me: failed program was:" >&5
6316sed 's/^/| /' conftest.$ac_ext >&5
6317
6318  # Passes both tests.
6319ac_preproc_ok=:
6320break
6321fi
6322rm -f conftest.err conftest.$ac_ext
6323
6324done
6325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6326rm -f conftest.err conftest.$ac_ext
6327if $ac_preproc_ok; then
6328  break
6329fi
6330
6331    done
6332    ac_cv_prog_CPP=$CPP
6333
6334fi
6335  CPP=$ac_cv_prog_CPP
6336else
6337  ac_cv_prog_CPP=$CPP
6338fi
6339echo "$as_me:$LINENO: result: $CPP" >&5
6340echo "${ECHO_T}$CPP" >&6
6341ac_preproc_ok=false
6342for ac_c_preproc_warn_flag in '' yes
6343do
6344  # Use a header file that comes with gcc, so configuring glibc
6345  # with a fresh cross-compiler works.
6346  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6347  # <limits.h> exists even on freestanding compilers.
6348  # On the NeXT, cc -E runs the code through the compiler's parser,
6349  # not just through cpp. "Syntax error" is here to catch this case.
6350  cat >conftest.$ac_ext <<_ACEOF
6351/* confdefs.h.  */
6352_ACEOF
6353cat confdefs.h >>conftest.$ac_ext
6354cat >>conftest.$ac_ext <<_ACEOF
6355/* end confdefs.h.  */
6356#ifdef __STDC__
6357# include <limits.h>
6358#else
6359# include <assert.h>
6360#endif
6361                     Syntax error
6362_ACEOF
6363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6364  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6365  ac_status=$?
6366  grep -v '^ *+' conftest.er1 >conftest.err
6367  rm -f conftest.er1
6368  cat conftest.err >&5
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); } >/dev/null; then
6371  if test -s conftest.err; then
6372    ac_cpp_err=$ac_c_preproc_warn_flag
6373    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6374  else
6375    ac_cpp_err=
6376  fi
6377else
6378  ac_cpp_err=yes
6379fi
6380if test -z "$ac_cpp_err"; then
6381  :
6382else
6383  echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
6386  # Broken: fails on valid input.
6387continue
6388fi
6389rm -f conftest.err conftest.$ac_ext
6390
6391  # OK, works on sane cases.  Now check whether non-existent headers
6392  # can be detected and how.
6393  cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h.  */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h.  */
6399#include <ac_nonexistent.h>
6400_ACEOF
6401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6402  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6403  ac_status=$?
6404  grep -v '^ *+' conftest.er1 >conftest.err
6405  rm -f conftest.er1
6406  cat conftest.err >&5
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); } >/dev/null; then
6409  if test -s conftest.err; then
6410    ac_cpp_err=$ac_c_preproc_warn_flag
6411    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6412  else
6413    ac_cpp_err=
6414  fi
6415else
6416  ac_cpp_err=yes
6417fi
6418if test -z "$ac_cpp_err"; then
6419  # Broken: success on invalid input.
6420continue
6421else
6422  echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425  # Passes both tests.
6426ac_preproc_ok=:
6427break
6428fi
6429rm -f conftest.err conftest.$ac_ext
6430
6431done
6432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6433rm -f conftest.err conftest.$ac_ext
6434if $ac_preproc_ok; then
6435  :
6436else
6437  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6438See \`config.log' for more details." >&5
6439echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6440See \`config.log' for more details." >&2;}
6441   { (exit 1); exit 1; }; }
6442fi
6443
6444ac_ext=c
6445ac_cpp='$CPP $CPPFLAGS'
6446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6448ac_compiler_gnu=$ac_cv_c_compiler_gnu
6449
6450
6451echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6452echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6453if test "${ac_cv_header_stdc+set}" = set; then
6454  echo $ECHO_N "(cached) $ECHO_C" >&6
6455else
6456  cat >conftest.$ac_ext <<_ACEOF
6457/* confdefs.h.  */
6458_ACEOF
6459cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h.  */
6462#include <stdlib.h>
6463#include <stdarg.h>
6464#include <string.h>
6465#include <float.h>
6466
6467int
6468main ()
6469{
6470
6471  ;
6472  return 0;
6473}
6474_ACEOF
6475rm -f conftest.$ac_objext
6476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477  (eval $ac_compile) 2>conftest.er1
6478  ac_status=$?
6479  grep -v '^ *+' conftest.er1 >conftest.err
6480  rm -f conftest.er1
6481  cat conftest.err >&5
6482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); } &&
6484         { ac_try='test -z "$ac_c_werror_flag"
6485                         || test ! -s conftest.err'
6486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487  (eval $ac_try) 2>&5
6488  ac_status=$?
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); }; } &&
6491         { ac_try='test -s conftest.$ac_objext'
6492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493  (eval $ac_try) 2>&5
6494  ac_status=$?
6495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496  (exit $ac_status); }; }; then
6497  ac_cv_header_stdc=yes
6498else
6499  echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502ac_cv_header_stdc=no
6503fi
6504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6505
6506if test $ac_cv_header_stdc = yes; then
6507  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6508  cat >conftest.$ac_ext <<_ACEOF
6509/* confdefs.h.  */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h.  */
6514#include <string.h>
6515
6516_ACEOF
6517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6518  $EGREP "memchr" >/dev/null 2>&1; then
6519  :
6520else
6521  ac_cv_header_stdc=no
6522fi
6523rm -f conftest*
6524
6525fi
6526
6527if test $ac_cv_header_stdc = yes; then
6528  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6529  cat >conftest.$ac_ext <<_ACEOF
6530/* confdefs.h.  */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h.  */
6535#include <stdlib.h>
6536
6537_ACEOF
6538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6539  $EGREP "free" >/dev/null 2>&1; then
6540  :
6541else
6542  ac_cv_header_stdc=no
6543fi
6544rm -f conftest*
6545
6546fi
6547
6548if test $ac_cv_header_stdc = yes; then
6549  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6550  if test "$cross_compiling" = yes; then
6551  :
6552else
6553  cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h.  */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h.  */
6559#include <ctype.h>
6560#if ((' ' & 0x0FF) == 0x020)
6561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6563#else
6564# define ISLOWER(c) \
6565                   (('a' <= (c) && (c) <= 'i') \
6566                     || ('j' <= (c) && (c) <= 'r') \
6567                     || ('s' <= (c) && (c) <= 'z'))
6568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6569#endif
6570
6571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6572int
6573main ()
6574{
6575  int i;
6576  for (i = 0; i < 256; i++)
6577    if (XOR (islower (i), ISLOWER (i))
6578        || toupper (i) != TOUPPER (i))
6579      exit(2);
6580  exit (0);
6581}
6582_ACEOF
6583rm -f conftest$ac_exeext
6584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6585  (eval $ac_link) 2>&5
6586  ac_status=$?
6587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590  (eval $ac_try) 2>&5
6591  ac_status=$?
6592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593  (exit $ac_status); }; }; then
6594  :
6595else
6596  echo "$as_me: program exited with status $ac_status" >&5
6597echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
6599
6600( exit $ac_status )
6601ac_cv_header_stdc=no
6602fi
6603rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6604fi
6605fi
6606fi
6607echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6608echo "${ECHO_T}$ac_cv_header_stdc" >&6
6609if test $ac_cv_header_stdc = yes; then
6610
6611cat >>confdefs.h <<\_ACEOF
6612#define STDC_HEADERS 1
6613_ACEOF
6614
6615fi
6616
6617# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6628                  inttypes.h stdint.h unistd.h
6629do
6630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6631echo "$as_me:$LINENO: checking for $ac_header" >&5
6632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6633if eval "test \"\${$as_ac_Header+set}\" = set"; then
6634  echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636  cat >conftest.$ac_ext <<_ACEOF
6637/* confdefs.h.  */
6638_ACEOF
6639cat confdefs.h >>conftest.$ac_ext
6640cat >>conftest.$ac_ext <<_ACEOF
6641/* end confdefs.h.  */
6642$ac_includes_default
6643
6644#include <$ac_header>
6645_ACEOF
6646rm -f conftest.$ac_objext
6647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648  (eval $ac_compile) 2>conftest.er1
6649  ac_status=$?
6650  grep -v '^ *+' conftest.er1 >conftest.err
6651  rm -f conftest.er1
6652  cat conftest.err >&5
6653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654  (exit $ac_status); } &&
6655         { ac_try='test -z "$ac_c_werror_flag"
6656                         || test ! -s conftest.err'
6657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658  (eval $ac_try) 2>&5
6659  ac_status=$?
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; } &&
6662         { ac_try='test -s conftest.$ac_objext'
6663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664  (eval $ac_try) 2>&5
6665  ac_status=$?
6666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667  (exit $ac_status); }; }; then
6668  eval "$as_ac_Header=yes"
6669else
6670  echo "$as_me: failed program was:" >&5
6671sed 's/^/| /' conftest.$ac_ext >&5
6672
6673eval "$as_ac_Header=no"
6674fi
6675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6676fi
6677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6679if test `eval echo '${'$as_ac_Header'}'` = yes; then
6680  cat >>confdefs.h <<_ACEOF
6681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6682_ACEOF
6683
6684fi
6685
6686done
6687
6688
6689
6690for ac_header in dlfcn.h
6691do
6692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693if eval "test \"\${$as_ac_Header+set}\" = set"; then
6694  echo "$as_me:$LINENO: checking for $ac_header" >&5
6695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6696if eval "test \"\${$as_ac_Header+set}\" = set"; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698fi
6699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6701else
6702  # Is the header compilable?
6703echo "$as_me:$LINENO: checking $ac_header usability" >&5
6704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6705cat >conftest.$ac_ext <<_ACEOF
6706/* confdefs.h.  */
6707_ACEOF
6708cat confdefs.h >>conftest.$ac_ext
6709cat >>conftest.$ac_ext <<_ACEOF
6710/* end confdefs.h.  */
6711$ac_includes_default
6712#include <$ac_header>
6713_ACEOF
6714rm -f conftest.$ac_objext
6715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716  (eval $ac_compile) 2>conftest.er1
6717  ac_status=$?
6718  grep -v '^ *+' conftest.er1 >conftest.err
6719  rm -f conftest.er1
6720  cat conftest.err >&5
6721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722  (exit $ac_status); } &&
6723         { ac_try='test -z "$ac_c_werror_flag"
6724                         || test ! -s conftest.err'
6725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726  (eval $ac_try) 2>&5
6727  ac_status=$?
6728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729  (exit $ac_status); }; } &&
6730         { ac_try='test -s conftest.$ac_objext'
6731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732  (eval $ac_try) 2>&5
6733  ac_status=$?
6734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735  (exit $ac_status); }; }; then
6736  ac_header_compiler=yes
6737else
6738  echo "$as_me: failed program was:" >&5
6739sed 's/^/| /' conftest.$ac_ext >&5
6740
6741ac_header_compiler=no
6742fi
6743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6745echo "${ECHO_T}$ac_header_compiler" >&6
6746
6747# Is the header present?
6748echo "$as_me:$LINENO: checking $ac_header presence" >&5
6749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6750cat >conftest.$ac_ext <<_ACEOF
6751/* confdefs.h.  */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h.  */
6756#include <$ac_header>
6757_ACEOF
6758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6759  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6760  ac_status=$?
6761  grep -v '^ *+' conftest.er1 >conftest.err
6762  rm -f conftest.er1
6763  cat conftest.err >&5
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); } >/dev/null; then
6766  if test -s conftest.err; then
6767    ac_cpp_err=$ac_c_preproc_warn_flag
6768    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6769  else
6770    ac_cpp_err=
6771  fi
6772else
6773  ac_cpp_err=yes
6774fi
6775if test -z "$ac_cpp_err"; then
6776  ac_header_preproc=yes
6777else
6778  echo "$as_me: failed program was:" >&5
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781  ac_header_preproc=no
6782fi
6783rm -f conftest.err conftest.$ac_ext
6784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6785echo "${ECHO_T}$ac_header_preproc" >&6
6786
6787# So?  What about this header?
6788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6789  yes:no: )
6790    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6792    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6793echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6794    ac_header_preproc=yes
6795    ;;
6796  no:yes:* )
6797    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6799    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6800echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6801    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6802echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6803    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6804echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6805    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6807    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6808echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6809    (
6810      cat <<\_ASBOX
6811## ----------------------------------- ##
6812## Report this to clp@list.coin-or.org ##
6813## ----------------------------------- ##
6814_ASBOX
6815    ) |
6816      sed "s/^/$as_me: WARNING:     /" >&2
6817    ;;
6818esac
6819echo "$as_me:$LINENO: checking for $ac_header" >&5
6820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6821if eval "test \"\${$as_ac_Header+set}\" = set"; then
6822  echo $ECHO_N "(cached) $ECHO_C" >&6
6823else
6824  eval "$as_ac_Header=\$ac_header_preproc"
6825fi
6826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6828
6829fi
6830if test `eval echo '${'$as_ac_Header'}'` = yes; then
6831  cat >>confdefs.h <<_ACEOF
6832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6833_ACEOF
6834
6835fi
6836
6837done
6838
6839
6840
6841if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6842    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6843    (test "X$CXX" != "Xg++"))) ; then
6844  ac_ext=cc
6845ac_cpp='$CXXCPP $CPPFLAGS'
6846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6849echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6850echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6851if test -z "$CXXCPP"; then
6852  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6853  echo $ECHO_N "(cached) $ECHO_C" >&6
6854else
6855      # Double quotes because CXXCPP needs to be expanded
6856    for CXXCPP in "$CXX -E" "/lib/cpp"
6857    do
6858      ac_preproc_ok=false
6859for ac_cxx_preproc_warn_flag in '' yes
6860do
6861  # Use a header file that comes with gcc, so configuring glibc
6862  # with a fresh cross-compiler works.
6863  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864  # <limits.h> exists even on freestanding compilers.
6865  # On the NeXT, cc -E runs the code through the compiler's parser,
6866  # not just through cpp. "Syntax error" is here to catch this case.
6867  cat >conftest.$ac_ext <<_ACEOF
6868/* confdefs.h.  */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h.  */
6873#ifdef __STDC__
6874# include <limits.h>
6875#else
6876# include <assert.h>
6877#endif
6878                     Syntax error
6879_ACEOF
6880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6881  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6882  ac_status=$?
6883  grep -v '^ *+' conftest.er1 >conftest.err
6884  rm -f conftest.er1
6885  cat conftest.err >&5
6886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887  (exit $ac_status); } >/dev/null; then
6888  if test -s conftest.err; then
6889    ac_cpp_err=$ac_cxx_preproc_warn_flag
6890    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6891  else
6892    ac_cpp_err=
6893  fi
6894else
6895  ac_cpp_err=yes
6896fi
6897if test -z "$ac_cpp_err"; then
6898  :
6899else
6900  echo "$as_me: failed program was:" >&5
6901sed 's/^/| /' conftest.$ac_ext >&5
6902
6903  # Broken: fails on valid input.
6904continue
6905fi
6906rm -f conftest.err conftest.$ac_ext
6907
6908  # OK, works on sane cases.  Now check whether non-existent headers
6909  # can be detected and how.
6910  cat >conftest.$ac_ext <<_ACEOF
6911/* confdefs.h.  */
6912_ACEOF
6913cat confdefs.h >>conftest.$ac_ext
6914cat >>conftest.$ac_ext <<_ACEOF
6915/* end confdefs.h.  */
6916#include <ac_nonexistent.h>
6917_ACEOF
6918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6919  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6920  ac_status=$?
6921  grep -v '^ *+' conftest.er1 >conftest.err
6922  rm -f conftest.er1
6923  cat conftest.err >&5
6924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925  (exit $ac_status); } >/dev/null; then
6926  if test -s conftest.err; then
6927    ac_cpp_err=$ac_cxx_preproc_warn_flag
6928    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6929  else
6930    ac_cpp_err=
6931  fi
6932else
6933  ac_cpp_err=yes
6934fi
6935if test -z "$ac_cpp_err"; then
6936  # Broken: success on invalid input.
6937continue
6938else
6939  echo "$as_me: failed program was:" >&5
6940sed 's/^/| /' conftest.$ac_ext >&5
6941
6942  # Passes both tests.
6943ac_preproc_ok=:
6944break
6945fi
6946rm -f conftest.err conftest.$ac_ext
6947
6948done
6949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6950rm -f conftest.err conftest.$ac_ext
6951if $ac_preproc_ok; then
6952  break
6953fi
6954
6955    done
6956    ac_cv_prog_CXXCPP=$CXXCPP
6957
6958fi
6959  CXXCPP=$ac_cv_prog_CXXCPP
6960else
6961  ac_cv_prog_CXXCPP=$CXXCPP
6962fi
6963echo "$as_me:$LINENO: result: $CXXCPP" >&5
6964echo "${ECHO_T}$CXXCPP" >&6
6965ac_preproc_ok=false
6966for ac_cxx_preproc_warn_flag in '' yes
6967do
6968  # Use a header file that comes with gcc, so configuring glibc
6969  # with a fresh cross-compiler works.
6970  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971  # <limits.h> exists even on freestanding compilers.
6972  # On the NeXT, cc -E runs the code through the compiler's parser,
6973  # not just through cpp. "Syntax error" is here to catch this case.
6974  cat >conftest.$ac_ext <<_ACEOF
6975/* confdefs.h.  */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h.  */
6980#ifdef __STDC__
6981# include <limits.h>
6982#else
6983# include <assert.h>
6984#endif
6985                     Syntax error
6986_ACEOF
6987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6988  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6989  ac_status=$?
6990  grep -v '^ *+' conftest.er1 >conftest.err
6991  rm -f conftest.er1
6992  cat conftest.err >&5
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); } >/dev/null; then
6995  if test -s conftest.err; then
6996    ac_cpp_err=$ac_cxx_preproc_warn_flag
6997    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6998  else
6999    ac_cpp_err=
7000  fi
7001else
7002  ac_cpp_err=yes
7003fi
7004if test -z "$ac_cpp_err"; then
7005  :
7006else
7007  echo "$as_me: failed program was:" >&5
7008sed 's/^/| /' conftest.$ac_ext >&5
7009
7010  # Broken: fails on valid input.
7011continue
7012fi
7013rm -f conftest.err conftest.$ac_ext
7014
7015  # OK, works on sane cases.  Now check whether non-existent headers
7016  # can be detected and how.
7017  cat >conftest.$ac_ext <<_ACEOF
7018/* confdefs.h.  */
7019_ACEOF
7020cat confdefs.h >>conftest.$ac_ext
7021cat >>conftest.$ac_ext <<_ACEOF
7022/* end confdefs.h.  */
7023#include <ac_nonexistent.h>
7024_ACEOF
7025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7026  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7027  ac_status=$?
7028  grep -v '^ *+' conftest.er1 >conftest.err
7029  rm -f conftest.er1
7030  cat conftest.err >&5
7031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032  (exit $ac_status); } >/dev/null; then
7033  if test -s conftest.err; then
7034    ac_cpp_err=$ac_cxx_preproc_warn_flag
7035    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7036  else
7037    ac_cpp_err=
7038  fi
7039else
7040  ac_cpp_err=yes
7041fi
7042if test -z "$ac_cpp_err"; then
7043  # Broken: success on invalid input.
7044continue
7045else
7046  echo "$as_me: failed program was:" >&5
7047sed 's/^/| /' conftest.$ac_ext >&5
7048
7049  # Passes both tests.
7050ac_preproc_ok=:
7051break
7052fi
7053rm -f conftest.err conftest.$ac_ext
7054
7055done
7056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7057rm -f conftest.err conftest.$ac_ext
7058if $ac_preproc_ok; then
7059  :
7060else
7061  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7062See \`config.log' for more details." >&5
7063echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7064See \`config.log' for more details." >&2;}
7065   { (exit 1); exit 1; }; }
7066fi
7067
7068ac_ext=cc
7069ac_cpp='$CXXCPP $CPPFLAGS'
7070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7073
7074fi
7075
7076ac_ext=f
7077ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7078ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7080if test -n "$ac_tool_prefix"; then
7081  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7082  do
7083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7085echo "$as_me:$LINENO: checking for $ac_word" >&5
7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7087if test "${ac_cv_prog_F77+set}" = set; then
7088  echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090  if test -n "$F77"; then
7091  ac_cv_prog_F77="$F77" # Let the user override the test.
7092else
7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096  IFS=$as_save_IFS
7097  test -z "$as_dir" && as_dir=.
7098  for ac_exec_ext in '' $ac_executable_extensions; do
7099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102    break 2
7103  fi
7104done
7105done
7106
7107fi
7108fi
7109F77=$ac_cv_prog_F77
7110if test -n "$F77"; then
7111  echo "$as_me:$LINENO: result: $F77" >&5
7112echo "${ECHO_T}$F77" >&6
7113else
7114  echo "$as_me:$LINENO: result: no" >&5
7115echo "${ECHO_T}no" >&6
7116fi
7117
7118    test -n "$F77" && break
7119  done
7120fi
7121if test -z "$F77"; then
7122  ac_ct_F77=$F77
7123  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7124do
7125  # Extract the first word of "$ac_prog", so it can be a program name with args.
7126set dummy $ac_prog; ac_word=$2
7127echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7129if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7130  echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132  if test -n "$ac_ct_F77"; then
7133  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138  IFS=$as_save_IFS
7139  test -z "$as_dir" && as_dir=.
7140  for ac_exec_ext in '' $ac_executable_extensions; do
7141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142    ac_cv_prog_ac_ct_F77="$ac_prog"
7143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144    break 2
7145  fi
7146done
7147done
7148
7149fi
7150fi
7151ac_ct_F77=$ac_cv_prog_ac_ct_F77
7152if test -n "$ac_ct_F77"; then
7153  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7154echo "${ECHO_T}$ac_ct_F77" >&6
7155else
7156  echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6
7158fi
7159
7160  test -n "$ac_ct_F77" && break
7161done
7162
7163  F77=$ac_ct_F77
7164fi
7165
7166
7167# Provide some information about the compiler.
7168echo "$as_me:7168:" \
7169     "checking for Fortran 77 compiler version" >&5
7170ac_compiler=`set X $ac_compile; echo $2`
7171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7172  (eval $ac_compiler --version </dev/null >&5) 2>&5
7173  ac_status=$?
7174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175  (exit $ac_status); }
7176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7177  (eval $ac_compiler -v </dev/null >&5) 2>&5
7178  ac_status=$?
7179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180  (exit $ac_status); }
7181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7182  (eval $ac_compiler -V </dev/null >&5) 2>&5
7183  ac_status=$?
7184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185  (exit $ac_status); }
7186rm -f a.out
7187
7188# If we don't use `.F' as extension, the preprocessor is not run on the
7189# input file.  (Note that this only needs to work for GNU compilers.)
7190ac_save_ext=$ac_ext
7191ac_ext=F
7192echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7193echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7194if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7195  echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197  cat >conftest.$ac_ext <<_ACEOF
7198      program main
7199#ifndef __GNUC__
7200       choke me
7201#endif
7202
7203      end
7204_ACEOF
7205rm -f conftest.$ac_objext
7206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207  (eval $ac_compile) 2>conftest.er1
7208  ac_status=$?
7209  grep -v '^ *+' conftest.er1 >conftest.err
7210  rm -f conftest.er1
7211  cat conftest.err >&5
7212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213  (exit $ac_status); } &&
7214         { ac_try='test -z "$ac_f77_werror_flag"
7215                         || test ! -s conftest.err'
7216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217  (eval $ac_try) 2>&5
7218  ac_status=$?
7219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220  (exit $ac_status); }; } &&
7221         { ac_try='test -s conftest.$ac_objext'
7222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223  (eval $ac_try) 2>&5
7224  ac_status=$?
7225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226  (exit $ac_status); }; }; then
7227  ac_compiler_gnu=yes
7228else
7229  echo "$as_me: failed program was:" >&5
7230sed 's/^/| /' conftest.$ac_ext >&5
7231
7232ac_compiler_gnu=no
7233fi
7234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7236
7237fi
7238echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7239echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7240ac_ext=$ac_save_ext
7241ac_test_FFLAGS=${FFLAGS+set}
7242ac_save_FFLAGS=$FFLAGS
7243FFLAGS=
7244echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7245echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7246if test "${ac_cv_prog_f77_g+set}" = set; then
7247  echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249  FFLAGS=-g
7250cat >conftest.$ac_ext <<_ACEOF
7251      program main
7252
7253      end
7254_ACEOF
7255rm -f conftest.$ac_objext
7256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257  (eval $ac_compile) 2>conftest.er1
7258  ac_status=$?
7259  grep -v '^ *+' conftest.er1 >conftest.err
7260  rm -f conftest.er1
7261  cat conftest.err >&5
7262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263  (exit $ac_status); } &&
7264         { ac_try='test -z "$ac_f77_werror_flag"
7265                         || test ! -s conftest.err'
7266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267  (eval $ac_try) 2>&5
7268  ac_status=$?
7269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270  (exit $ac_status); }; } &&
7271         { ac_try='test -s conftest.$ac_objext'
7272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273  (eval $ac_try) 2>&5
7274  ac_status=$?
7275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276  (exit $ac_status); }; }; then
7277  ac_cv_prog_f77_g=yes
7278else
7279  echo "$as_me: failed program was:" >&5
7280sed 's/^/| /' conftest.$ac_ext >&5
7281
7282ac_cv_prog_f77_g=no
7283fi
7284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7285
7286fi
7287echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7288echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7289if test "$ac_test_FFLAGS" = set; then
7290  FFLAGS=$ac_save_FFLAGS
7291elif test $ac_cv_prog_f77_g = yes; then
7292  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7293    FFLAGS="-g -O2"
7294  else
7295    FFLAGS="-g"
7296  fi
7297else
7298  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7299    FFLAGS="-O2"
7300  else
7301    FFLAGS=
7302  fi
7303fi
7304
7305G77=`test $ac_compiler_gnu = yes && echo yes`
7306ac_ext=c
7307ac_cpp='$CPP $CPPFLAGS'
7308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7310ac_compiler_gnu=$ac_cv_c_compiler_gnu
7311
7312
7313
7314# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7315
7316# find the maximum length of command line arguments
7317echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7318echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7319if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7320  echo $ECHO_N "(cached) $ECHO_C" >&6
7321else
7322    i=0
7323  teststring="ABCD"
7324
7325  case $build_os in
7326  msdosdjgpp*)
7327    # On DJGPP, this test can blow up pretty badly due to problems in libc
7328    # (any single argument exceeding 2000 bytes causes a buffer overrun
7329    # during glob expansion).  Even if it were fixed, the result of this
7330    # check would be larger than it should be.
7331    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7332    ;;
7333
7334  gnu*)
7335    # Under GNU Hurd, this test is not required because there is
7336    # no limit to the length of command line arguments.
7337    # Libtool will interpret -1 as no limit whatsoever
7338    lt_cv_sys_max_cmd_len=-1;
7339    ;;
7340
7341  cygwin* | mingw*)
7342    # On Win9x/ME, this test blows up -- it succeeds, but takes
7343    # about 5 minutes as the teststring grows exponentially.
7344    # Worse, since 9x/ME are not pre-emptively multitasking,
7345    # you end up with a "frozen" computer, even though with patience
7346    # the test eventually succeeds (with a max line length of 256k).
7347    # Instead, let's just punt: use the minimum linelength reported by
7348    # all of the supported platforms: 8192 (on NT/2K/XP).
7349    lt_cv_sys_max_cmd_len=8192;
7350    ;;
7351
7352  amigaos*)
7353    # On AmigaOS with pdksh, this test takes hours, literally.
7354    # So we just punt and use a minimum line length of 8192.
7355    lt_cv_sys_max_cmd_len=8192;
7356    ;;
7357
7358  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7359    # This has been around since 386BSD, at least.  Likely further.
7360    if test -x /sbin/sysctl; then
7361      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7362    elif test -x /usr/sbin/sysctl; then
7363      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7364    else
7365      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7366    fi
7367    # And add a safety zone
7368    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7369    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7370    ;;
7371
7372  interix*)
7373    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7374    lt_cv_sys_max_cmd_len=196608
7375    ;;
7376
7377  osf*)
7378    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7379    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7380    # nice to cause kernel panics so lets avoid the loop below.
7381    # First set a reasonable default.
7382    lt_cv_sys_max_cmd_len=16384
7383    #
7384    if test -x /sbin/sysconfig; then
7385      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7386        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7387      esac
7388    fi
7389    ;;
7390  sco3.2v5*)
7391    lt_cv_sys_max_cmd_len=102400
7392    ;;
7393  sysv5* | sco5v6* | sysv4.2uw2*)
7394    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7395    if test -n "$kargmax"; then
7396      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7397    else
7398      lt_cv_sys_max_cmd_len=32768
7399    fi
7400    ;;
7401  *)
7402    # If test is not a shell built-in, we'll probably end up computing a
7403    # maximum length that is only half of the actual maximum length, but
7404    # we can't tell.
7405    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7406    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7407               = "XX$teststring") >/dev/null 2>&1 &&
7408            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7409            lt_cv_sys_max_cmd_len=$new_result &&
7410            test $i != 17 # 1/2 MB should be enough
7411    do
7412      i=`expr $i + 1`
7413      teststring=$teststring$teststring
7414    done
7415    teststring=
7416    # Add a significant safety factor because C++ compilers can tack on massive
7417    # amounts of additional arguments before passing them to the linker.
7418    # It appears as though 1/2 is a usable value.
7419    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7420    ;;
7421  esac
7422
7423fi
7424
7425if test -n $lt_cv_sys_max_cmd_len ; then
7426  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7427echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7428else
7429  echo "$as_me:$LINENO: result: none" >&5
7430echo "${ECHO_T}none" >&6
7431fi
7432
7433
7434
7435
7436# Check for command to grab the raw symbol name followed by C symbol from nm.
7437echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7438echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7439if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7440  echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442
7443# These are sane defaults that work on at least a few old systems.
7444# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7445
7446# Character class describing NM global symbol codes.
7447symcode='[BCDEGRST]'
7448
7449# Regexp to match symbols that can be accessed directly from C.
7450sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7451
7452# Transform an extracted symbol line into a proper C declaration
7453lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7454
7455# Transform an extracted symbol line into symbol name and symbol address
7456lt_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'"
7457
7458# Define system-specific variables.
7459case $host_os in
7460aix*)
7461  symcode='[BCDT]'
7462  ;;
7463cygwin* | mingw* | pw32*)
7464  symcode='[ABCDGISTW]'
7465  ;;
7466hpux*) # Its linker distinguishes data from code symbols
7467  if test "$host_cpu" = ia64; then
7468    symcode='[ABCDEGRST]'
7469  fi
7470  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7471  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'"
7472  ;;
7473linux*)
7474  if test "$host_cpu" = ia64; then
7475    symcode='[ABCDGIRSTW]'
7476    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7477    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'"
7478  fi
7479  ;;
7480irix* | nonstopux*)
7481  symcode='[BCDEGRST]'
7482  ;;
7483osf*)
7484  symcode='[BCDEGQRST]'
7485  ;;
7486solaris*)
7487  symcode='[BDRT]'
7488  ;;
7489sco3.2v5*)
7490  symcode='[DT]'
7491  ;;
7492sysv4.2uw2*)
7493  symcode='[DT]'
7494  ;;
7495sysv5* | sco5v6* | unixware* | OpenUNIX*)
7496  symcode='[ABDT]'
7497  ;;
7498sysv4)
7499  symcode='[DFNSTU]'
7500  ;;
7501esac
7502
7503# Handle CRLF in mingw tool chain
7504opt_cr=
7505case $build_os in
7506mingw*)
7507  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7508  ;;
7509esac
7510
7511# If we're using GNU nm, then use its standard symbol codes.
7512case `$NM -V 2>&1` in
7513*GNU* | *'with BFD'*)
7514  symcode='[ABCDGIRSTW]' ;;
7515esac
7516
7517# Try without a prefix undercore, then with it.
7518for ac_symprfx in "" "_"; do
7519
7520  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7521  symxfrm="\\1 $ac_symprfx\\2 \\2"
7522
7523  # Write the raw and C identifiers.
7524  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7525
7526  # Check to see that the pipe works correctly.
7527  pipe_works=no
7528
7529  rm -f conftest*
7530  cat > conftest.$ac_ext <<EOF
7531#ifdef __cplusplus
7532extern "C" {
7533#endif
7534char nm_test_var;
7535void nm_test_func(){}
7536#ifdef __cplusplus
7537}
7538#endif
7539int main(){nm_test_var='a';nm_test_func();return(0);}
7540EOF
7541
7542  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7543  (eval $ac_compile) 2>&5
7544  ac_status=$?
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); }; then
7547    # Now try to grab the symbols.
7548    nlist=conftest.nm
7549    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7550  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7551  ac_status=$?
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); } && test -s "$nlist"; then
7554      # Try sorting and uniquifying the output.
7555      if sort "$nlist" | uniq > "$nlist"T; then
7556        mv -f "$nlist"T "$nlist"
7557      else
7558        rm -f "$nlist"T
7559      fi
7560
7561      # Make sure that we snagged all the symbols we need.
7562      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7563        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7564          cat <<EOF > conftest.$ac_ext
7565#ifdef __cplusplus
7566extern "C" {
7567#endif
7568
7569EOF
7570          # Now generate the symbol file.
7571          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7572
7573          cat <<EOF >> conftest.$ac_ext
7574#if defined (__STDC__) && __STDC__
7575# define lt_ptr_t void *
7576#else
7577# define lt_ptr_t char *
7578# define const
7579#endif
7580
7581/* The mapping between symbol names and symbols. */
7582const struct {
7583  const char *name;
7584  lt_ptr_t address;
7585}
7586lt_preloaded_symbols[] =
7587{
7588EOF
7589          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7590          cat <<\EOF >> conftest.$ac_ext
7591  {0, (lt_ptr_t) 0}
7592};
7593
7594#ifdef __cplusplus
7595}
7596#endif
7597EOF
7598          # Now try linking the two files.
7599          mv conftest.$ac_objext conftstm.$ac_objext
7600          lt_save_LIBS="$LIBS"
7601          lt_save_CFLAGS="$CFLAGS"
7602          LIBS="conftstm.$ac_objext"
7603          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7604          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605  (eval $ac_link) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7609            pipe_works=yes
7610          fi
7611          LIBS="$lt_save_LIBS"
7612          CFLAGS="$lt_save_CFLAGS"
7613        else
7614          echo "cannot find nm_test_func in $nlist" >&5
7615        fi
7616      else
7617        echo "cannot find nm_test_var in $nlist" >&5
7618      fi
7619    else
7620      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7621    fi
7622  else
7623    echo "$progname: failed program was:" >&5
7624    cat conftest.$ac_ext >&5
7625  fi
7626  rm -f conftest* conftst*
7627
7628  # Do not use the global_symbol_pipe unless it works.
7629  if test "$pipe_works" = yes; then
7630    break
7631  else
7632    lt_cv_sys_global_symbol_pipe=
7633  fi
7634done
7635
7636fi
7637
7638if test -z "$lt_cv_sys_global_symbol_pipe"; then
7639  lt_cv_sys_global_symbol_to_cdecl=
7640fi
7641if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7642  echo "$as_me:$LINENO: result: failed" >&5
7643echo "${ECHO_T}failed" >&6
7644else
7645  echo "$as_me:$LINENO: result: ok" >&5
7646echo "${ECHO_T}ok" >&6
7647fi
7648
7649echo "$as_me:$LINENO: checking for objdir" >&5
7650echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7651if test "${lt_cv_objdir+set}" = set; then
7652  echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654  rm -f .libs 2>/dev/null
7655mkdir .libs 2>/dev/null
7656if test -d .libs; then
7657  lt_cv_objdir=.libs
7658else
7659  # MS-DOS does not allow filenames that begin with a dot.
7660  lt_cv_objdir=_libs
7661fi
7662rmdir .libs 2>/dev/null
7663fi
7664echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7665echo "${ECHO_T}$lt_cv_objdir" >&6
7666objdir=$lt_cv_objdir
7667
7668
7669
7670
7671
7672case $host_os in
7673aix3*)
7674  # AIX sometimes has problems with the GCC collect2 program.  For some
7675  # reason, if we set the COLLECT_NAMES environment variable, the problems
7676  # vanish in a puff of smoke.
7677  if test "X${COLLECT_NAMES+set}" != Xset; then
7678    COLLECT_NAMES=
7679    export COLLECT_NAMES
7680  fi
7681  ;;
7682esac
7683
7684# Sed substitution that helps us do robust quoting.  It backslashifies
7685# metacharacters that are still active within double-quoted strings.
7686Xsed='sed -e 1s/^X//'
7687sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7688
7689# Same as above, but do not quote variable references.
7690double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7691
7692# Sed substitution to delay expansion of an escaped shell variable in a
7693# double_quote_subst'ed string.
7694delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7695
7696# Sed substitution to avoid accidental globbing in evaled expressions
7697no_glob_subst='s/\*/\\\*/g'
7698
7699# Constants:
7700rm="rm -f"
7701
7702# Global variables:
7703default_ofile=libtool
7704can_build_shared=yes
7705
7706# All known linkers require a `.a' archive for static linking (except MSVC,
7707# which needs '.lib').
7708libext=a
7709ltmain="$ac_aux_dir/ltmain.sh"
7710ofile="$default_ofile"
7711with_gnu_ld="$lt_cv_prog_gnu_ld"
7712
7713if test -n "$ac_tool_prefix"; then
7714  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7715set dummy ${ac_tool_prefix}ar; ac_word=$2
7716echo "$as_me:$LINENO: checking for $ac_word" >&5
7717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7718if test "${ac_cv_prog_AR+set}" = set; then
7719  echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721  if test -n "$AR"; then
7722  ac_cv_prog_AR="$AR" # Let the user override the test.
7723else
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729  for ac_exec_ext in '' $ac_executable_extensions; do
7730  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731    ac_cv_prog_AR="${ac_tool_prefix}ar"
7732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736done
7737
7738fi
7739fi
7740AR=$ac_cv_prog_AR
7741if test -n "$AR"; then
7742  echo "$as_me:$LINENO: result: $AR" >&5
7743echo "${ECHO_T}$AR" >&6
7744else
7745  echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747fi
7748
7749fi
7750if test -z "$ac_cv_prog_AR"; then
7751  ac_ct_AR=$AR
7752  # Extract the first word of "ar", so it can be a program name with args.
7753set dummy ar; ac_word=$2
7754echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7757  echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759  if test -n "$ac_ct_AR"; then
7760  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765  IFS=$as_save_IFS
7766  test -z "$as_dir" && as_dir=.
7767  for ac_exec_ext in '' $ac_executable_extensions; do
7768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769    ac_cv_prog_ac_ct_AR="ar"
7770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771    break 2
7772  fi
7773done
7774done
7775
7776  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7777fi
7778fi
7779ac_ct_AR=$ac_cv_prog_ac_ct_AR
7780if test -n "$ac_ct_AR"; then
7781  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7782echo "${ECHO_T}$ac_ct_AR" >&6
7783else
7784  echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786fi
7787
7788  AR=$ac_ct_AR
7789else
7790  AR="$ac_cv_prog_AR"
7791fi
7792
7793if test -n "$ac_tool_prefix"; then
7794  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7795set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7796echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798if test "${ac_cv_prog_RANLIB+set}" = set; then
7799  echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801  if test -n "$RANLIB"; then
7802  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7803else
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807  IFS=$as_save_IFS
7808  test -z "$as_dir" && as_dir=.
7809  for ac_exec_ext in '' $ac_executable_extensions; do
7810  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813    break 2
7814  fi
7815done
7816done
7817
7818fi
7819fi
7820RANLIB=$ac_cv_prog_RANLIB
7821if test -n "$RANLIB"; then
7822  echo "$as_me:$LINENO: result: $RANLIB" >&5
7823echo "${ECHO_T}$RANLIB" >&6
7824else
7825  echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827fi
7828
7829fi
7830if test -z "$ac_cv_prog_RANLIB"; then
7831  ac_ct_RANLIB=$RANLIB
7832  # Extract the first word of "ranlib", so it can be a program name with args.
7833set dummy ranlib; ac_word=$2
7834echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839  if test -n "$ac_ct_RANLIB"; then
7840  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7841else
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845  IFS=$as_save_IFS
7846  test -z "$as_dir" && as_dir=.
7847  for ac_exec_ext in '' $ac_executable_extensions; do
7848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849    ac_cv_prog_ac_ct_RANLIB="ranlib"
7850    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851    break 2
7852  fi
7853done
7854done
7855
7856  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7857fi
7858fi
7859ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7860if test -n "$ac_ct_RANLIB"; then
7861  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7862echo "${ECHO_T}$ac_ct_RANLIB" >&6
7863else
7864  echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
7866fi
7867
7868  RANLIB=$ac_ct_RANLIB
7869else
7870  RANLIB="$ac_cv_prog_RANLIB"
7871fi
7872
7873if test -n "$ac_tool_prefix"; then
7874  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7875set dummy ${ac_tool_prefix}strip; ac_word=$2
7876echo "$as_me:$LINENO: checking for $ac_word" >&5
7877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7878if test "${ac_cv_prog_STRIP+set}" = set; then
7879  echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881  if test -n "$STRIP"; then
7882  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887  IFS=$as_save_IFS
7888  test -z "$as_dir" && as_dir=.
7889  for ac_exec_ext in '' $ac_executable_extensions; do
7890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896done
7897
7898fi
7899fi
7900STRIP=$ac_cv_prog_STRIP
7901if test -n "$STRIP"; then
7902  echo "$as_me:$LINENO: result: $STRIP" >&5
7903echo "${ECHO_T}$STRIP" >&6
7904else
7905  echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6
7907fi
7908
7909fi
7910if test -z "$ac_cv_prog_STRIP"; then
7911  ac_ct_STRIP=$STRIP
7912  # Extract the first word of "strip", so it can be a program name with args.
7913set dummy strip; ac_word=$2
7914echo "$as_me:$LINENO: checking for $ac_word" >&5
7915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7916if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7917  echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919  if test -n "$ac_ct_STRIP"; then
7920  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925  IFS=$as_save_IFS
7926  test -z "$as_dir" && as_dir=.
7927  for ac_exec_ext in '' $ac_executable_extensions; do
7928  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929    ac_cv_prog_ac_ct_STRIP="strip"
7930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931    break 2
7932  fi
7933done
7934done
7935
7936  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7937fi
7938fi
7939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7940if test -n "$ac_ct_STRIP"; then
7941  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7942echo "${ECHO_T}$ac_ct_STRIP" >&6
7943else
7944  echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
7946fi
7947
7948  STRIP=$ac_ct_STRIP
7949else
7950  STRIP="$ac_cv_prog_STRIP"
7951fi
7952
7953
7954old_CC="$CC"
7955old_CFLAGS="$CFLAGS"
7956
7957# Set sane defaults for various variables
7958test -z "$AR" && AR=ar
7959test -z "$AR_FLAGS" && AR_FLAGS=cru
7960test -z "$AS" && AS=as
7961test -z "$CC" && CC=cc
7962test -z "$LTCC" && LTCC=$CC
7963test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7964test -z "$DLLTOOL" && DLLTOOL=dlltool
7965test -z "$LD" && LD=ld
7966test -z "$LN_S" && LN_S="ln -s"
7967test -z "$MAGIC_CMD" && MAGIC_CMD=file
7968test -z "$NM" && NM=nm
7969test -z "$SED" && SED=sed
7970test -z "$OBJDUMP" && OBJDUMP=objdump
7971test -z "$RANLIB" && RANLIB=:
7972test -z "$STRIP" && STRIP=:
7973test -z "$ac_objext" && ac_objext=o
7974
7975# Determine commands to create old-style static archives.
7976old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7977old_postinstall_cmds='chmod 644 $oldlib'
7978old_postuninstall_cmds=
7979
7980if test -n "$RANLIB"; then
7981  case $host_os in
7982  openbsd*)
7983    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7984    ;;
7985  *)
7986    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7987    ;;
7988  esac
7989  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7990fi
7991
7992for cc_temp in $compiler""; do
7993  case $cc_temp in
7994    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7995    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7996    \-*) ;;
7997    *) break;;
7998  esac
7999done
8000cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8001
8002
8003# Only perform the check for file, if the check method requires it
8004case $deplibs_check_method in
8005file_magic*)
8006  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8007    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8008echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8009if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8010  echo $ECHO_N "(cached) $ECHO_C" >&6
8011else
8012  case $MAGIC_CMD in
8013[\\/*] |  ?:[\\/]*)
8014  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8015  ;;
8016*)
8017  lt_save_MAGIC_CMD="$MAGIC_CMD"
8018  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8019  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8020  for ac_dir in $ac_dummy; do
8021    IFS="$lt_save_ifs"
8022    test -z "$ac_dir" && ac_dir=.
8023    if test -f $ac_dir/${ac_tool_prefix}file; then
8024      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8025      if test -n "$file_magic_test_file"; then
8026        case $deplibs_check_method in
8027        "file_magic "*)
8028          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8029          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8031            $EGREP "$file_magic_regex" > /dev/null; then
8032            :
8033          else
8034            cat <<EOF 1>&2
8035
8036*** Warning: the command libtool uses to detect shared libraries,
8037*** $file_magic_cmd, produces output that libtool cannot recognize.
8038*** The result is that libtool may fail to recognize shared libraries
8039*** as such.  This will affect the creation of libtool libraries that
8040*** depend on shared libraries, but programs linked with such libtool
8041*** libraries will work regardless of this problem.  Nevertheless, you
8042*** may want to report the problem to your system manager and/or to
8043*** bug-libtool@gnu.org
8044
8045EOF
8046          fi ;;
8047        esac
8048      fi
8049      break
8050    fi
8051  done
8052  IFS="$lt_save_ifs"
8053  MAGIC_CMD="$lt_save_MAGIC_CMD"
8054  ;;
8055esac
8056fi
8057
8058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8059if test -n "$MAGIC_CMD"; then
8060  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8061echo "${ECHO_T}$MAGIC_CMD" >&6
8062else
8063  echo "$as_me:$LINENO: result: no" >&5
8064echo "${ECHO_T}no" >&6
8065fi
8066
8067if test -z "$lt_cv_path_MAGIC_CMD"; then
8068  if test -n "$ac_tool_prefix"; then
8069    echo "$as_me:$LINENO: checking for file" >&5
8070echo $ECHO_N "checking for file... $ECHO_C" >&6
8071if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8072  echo $ECHO_N "(cached) $ECHO_C" >&6
8073else
8074  case $MAGIC_CMD in
8075[\\/*] |  ?:[\\/]*)
8076  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8077  ;;
8078*)
8079  lt_save_MAGIC_CMD="$MAGIC_CMD"
8080  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8081  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8082  for ac_dir in $ac_dummy; do
8083    IFS="$lt_save_ifs"
8084    test -z "$ac_dir" && ac_dir=.
8085    if test -f $ac_dir/file; then
8086      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8087      if test -n "$file_magic_test_file"; then
8088        case $deplibs_check_method in
8089        "file_magic "*)
8090          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8091          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8092          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8093            $EGREP "$file_magic_regex" > /dev/null; then
8094            :
8095          else
8096            cat <<EOF 1>&2
8097
8098*** Warning: the command libtool uses to detect shared libraries,
8099*** $file_magic_cmd, produces output that libtool cannot recognize.
8100*** The result is that libtool may fail to recognize shared libraries
8101*** as such.  This will affect the creation of libtool libraries that
8102*** depend on shared libraries, but programs linked with such libtool
8103*** libraries will work regardless of this problem.  Nevertheless, you
8104*** may want to report the problem to your system manager and/or to
8105*** bug-libtool@gnu.org
8106
8107EOF
8108          fi ;;
8109        esac
8110      fi
8111      break
8112    fi
8113  done
8114  IFS="$lt_save_ifs"
8115  MAGIC_CMD="$lt_save_MAGIC_CMD"
8116  ;;
8117esac
8118fi
8119
8120MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8121if test -n "$MAGIC_CMD"; then
8122  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8123echo "${ECHO_T}$MAGIC_CMD" >&6
8124else
8125  echo "$as_me:$LINENO: result: no" >&5
8126echo "${ECHO_T}no" >&6
8127fi
8128
8129  else
8130    MAGIC_CMD=:
8131  fi
8132fi
8133
8134  fi
8135  ;;
8136esac
8137
8138enable_dlopen=no
8139enable_win32_dll=no
8140
8141# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8142if test "${enable_libtool_lock+set}" = set; then
8143  enableval="$enable_libtool_lock"
8144
8145fi;
8146test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8147
8148
8149# Check whether --with-pic or --without-pic was given.
8150if test "${with_pic+set}" = set; then
8151  withval="$with_pic"
8152  pic_mode="$withval"
8153else
8154  pic_mode=default
8155fi;
8156test -z "$pic_mode" && pic_mode=default
8157
8158# Use C for the default configuration in the libtool script
8159tagname=
8160lt_save_CC="$CC"
8161ac_ext=c
8162ac_cpp='$CPP $CPPFLAGS'
8163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165ac_compiler_gnu=$ac_cv_c_compiler_gnu
8166
8167
8168# Source file extension for C test sources.
8169ac_ext=c
8170
8171# Object file extension for compiled C test sources.
8172objext=o
8173objext=$objext
8174
8175# Code to be used in simple compile tests
8176lt_simple_compile_test_code="int some_variable = 0;\n"
8177
8178# Code to be used in simple link tests
8179lt_simple_link_test_code='int main(){return(0);}\n'
8180
8181
8182# If no C compiler was specified, use CC.
8183LTCC=${LTCC-"$CC"}
8184
8185# If no C compiler flags were specified, use CFLAGS.
8186LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8187
8188# Allow CC to be a program name with arguments.
8189compiler=$CC
8190
8191
8192# save warnings/boilerplate of simple test code
8193ac_outfile=conftest.$ac_objext
8194printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8195eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8196_lt_compiler_boilerplate=`cat conftest.err`
8197$rm conftest*
8198
8199ac_outfile=conftest.$ac_objext
8200printf "$lt_simple_link_test_code" >conftest.$ac_ext
8201eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8202_lt_linker_boilerplate=`cat conftest.err`
8203$rm conftest*
8204
8205
8206## CAVEAT EMPTOR:
8207## There is no encapsulation within the following macros, do not change
8208## the running order or otherwise move them around unless you know exactly
8209## what you are doing...
8210
8211lt_prog_compiler_no_builtin_flag=
8212
8213if test "$GCC" = yes; then
8214  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8215
8216
8217echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8218echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8219if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8220  echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222  lt_cv_prog_compiler_rtti_exceptions=no
8223  ac_outfile=conftest.$ac_objext
8224   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8225   lt_compiler_flag="-fno-rtti -fno-exceptions"
8226   # Insert the option either (1) after the last *FLAGS variable, or
8227   # (2) before a word containing "conftest.", or (3) at the end.
8228   # Note that $ac_compile itself does not contain backslashes and begins
8229   # with a dollar sign (not a hyphen), so the echo should work correctly.
8230   # The option is referenced via a variable to avoid confusing sed.
8231   lt_compile=`echo "$ac_compile" | $SED \
8232   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8233   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8234   -e 's:$: $lt_compiler_flag:'`
8235   (eval echo "\"\$as_me:8235: $lt_compile\"" >&5)
8236   (eval "$lt_compile" 2>conftest.err)
8237   ac_status=$?
8238   cat conftest.err >&5
8239   echo "$as_me:8239: \$? = $ac_status" >&5
8240   if (exit $ac_status) && test -s "$ac_outfile"; then
8241     # The compiler can only warn and ignore the option if not recognized
8242     # So say no if there are warnings other than the usual output.
8243     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8244     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8245     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8246       lt_cv_prog_compiler_rtti_exceptions=yes
8247     fi
8248   fi
8249   $rm conftest*
8250
8251fi
8252echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8253echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8254
8255if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8256    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8257else
8258    :
8259fi
8260
8261fi
8262
8263lt_prog_compiler_wl=
8264lt_prog_compiler_pic=
8265lt_prog_compiler_static=
8266
8267echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8268echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8269
8270  if test "$GCC" = yes; then
8271    lt_prog_compiler_wl='-Wl,'
8272    lt_prog_compiler_static='-static'
8273
8274    case $host_os in
8275      aix*)
8276      # All AIX code is PIC.
8277      if test "$host_cpu" = ia64; then
8278        # AIX 5 now supports IA64 processor
8279        lt_prog_compiler_static='-Bstatic'
8280      fi
8281      ;;
8282
8283    amigaos*)
8284      # FIXME: we need at least 68020 code to build shared libraries, but
8285      # adding the `-m68020' flag to GCC prevents building anything better,
8286      # like `-m68040'.
8287      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8288      ;;
8289
8290    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8291      # PIC is the default for these OSes.
8292      ;;
8293
8294    mingw* | pw32* | os2*)
8295      # This hack is so that the source file can tell whether it is being
8296      # built for inclusion in a dll (and should export symbols for example).
8297      lt_prog_compiler_pic='-DDLL_EXPORT'
8298      ;;
8299
8300    darwin* | rhapsody*)
8301      # PIC is the default on this platform
8302      # Common symbols not allowed in MH_DYLIB files
8303      lt_prog_compiler_pic='-fno-common'
8304      ;;
8305
8306    interix3*)
8307      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8308      # Instead, we relocate shared libraries at runtime.
8309      ;;
8310
8311    msdosdjgpp*)
8312      # Just because we use GCC doesn't mean we suddenly get shared libraries
8313      # on systems that don't support them.
8314      lt_prog_compiler_can_build_shared=no
8315      enable_shared=no
8316      ;;
8317
8318    sysv4*MP*)
8319      if test -d /usr/nec; then
8320        lt_prog_compiler_pic=-Kconform_pic
8321      fi
8322      ;;
8323
8324    hpux*)
8325      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8326      # not for PA HP-UX.
8327      case $host_cpu in
8328      hppa*64*|ia64*)
8329        # +Z the default
8330        ;;
8331      *)
8332        lt_prog_compiler_pic='-fPIC'
8333        ;;
8334      esac
8335      ;;
8336
8337    *)
8338      lt_prog_compiler_pic='-fPIC'
8339      ;;
8340    esac
8341  else
8342    # PORTME Check for flag to pass linker flags through the system compiler.
8343    case $host_os in
8344    aix*)
8345      lt_prog_compiler_wl='-Wl,'
8346      if test "$host_cpu" = ia64; then
8347        # AIX 5 now supports IA64 processor
8348        lt_prog_compiler_static='-Bstatic'
8349      else
8350        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8351      fi
8352      ;;
8353      darwin*)
8354        # PIC is the default on this platform
8355        # Common symbols not allowed in MH_DYLIB files
8356       case $cc_basename in
8357         xlc*)
8358         lt_prog_compiler_pic='-qnocommon'
8359         lt_prog_compiler_wl='-Wl,'
8360         ;;
8361       esac
8362       ;;
8363
8364    mingw* | pw32* | os2*)
8365      # This hack is so that the source file can tell whether it is being
8366      # built for inclusion in a dll (and should export symbols for example).
8367      lt_prog_compiler_pic='-DDLL_EXPORT'
8368      ;;
8369
8370    hpux9* | hpux10* | hpux11*)
8371      lt_prog_compiler_wl='-Wl,'
8372      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8373      # not for PA HP-UX.
8374      case $host_cpu in
8375      hppa*64*|ia64*)
8376        # +Z the default
8377        ;;
8378      *)
8379        lt_prog_compiler_pic='+Z'
8380        ;;
8381      esac
8382      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8383      lt_prog_compiler_static='${wl}-a ${wl}archive'
8384      ;;
8385
8386    irix5* | irix6* | nonstopux*)
8387      lt_prog_compiler_wl='-Wl,'
8388      # PIC (with -KPIC) is the default.
8389      lt_prog_compiler_static='-non_shared'
8390      ;;
8391
8392    newsos6)
8393      lt_prog_compiler_pic='-KPIC'
8394      lt_prog_compiler_static='-Bstatic'
8395      ;;
8396
8397    linux*)
8398      case $cc_basename in
8399      icc* | ecc*)
8400        lt_prog_compiler_wl='-Wl,'
8401        lt_prog_compiler_pic='-KPIC'
8402        lt_prog_compiler_static='-static'
8403        ;;
8404      pgcc* | pgf77* | pgf90* | pgf95*)
8405        # Portland Group compilers (*not* the Pentium gcc compiler,
8406        # which looks to be a dead project)
8407        lt_prog_compiler_wl='-Wl,'
8408        lt_prog_compiler_pic='-fpic'
8409        lt_prog_compiler_static='-Bstatic'
8410        ;;
8411      ccc*)
8412        lt_prog_compiler_wl='-Wl,'
8413        # All Alpha code is PIC.
8414        lt_prog_compiler_static='-non_shared'
8415        ;;
8416      esac
8417      ;;
8418
8419    osf3* | osf4* | osf5*)
8420      lt_prog_compiler_wl='-Wl,'
8421      # All OSF/1 code is PIC.
8422      lt_prog_compiler_static='-non_shared'
8423      ;;
8424
8425    solaris*)
8426      lt_prog_compiler_pic='-KPIC'
8427      lt_prog_compiler_static='-Bstatic'
8428      case $cc_basename in
8429      f77* | f90* | f95*)
8430        lt_prog_compiler_wl='-Qoption ld ';;
8431      *)
8432        lt_prog_compiler_wl='-Wl,';;
8433      esac
8434      ;;
8435
8436    sunos4*)
8437      lt_prog_compiler_wl='-Qoption ld '
8438      lt_prog_compiler_pic='-PIC'
8439      lt_prog_compiler_static='-Bstatic'
8440      ;;
8441
8442    sysv4 | sysv4.2uw2* | sysv4.3*)
8443      lt_prog_compiler_wl='-Wl,'
8444      lt_prog_compiler_pic='-KPIC'
8445      lt_prog_compiler_static='-Bstatic'
8446      ;;
8447
8448    sysv4*MP*)
8449      if test -d /usr/nec ;then
8450        lt_prog_compiler_pic='-Kconform_pic'
8451        lt_prog_compiler_static='-Bstatic'
8452      fi
8453      ;;
8454
8455    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8456      lt_prog_compiler_wl='-Wl,'
8457      lt_prog_compiler_pic='-KPIC'
8458      lt_prog_compiler_static='-Bstatic'
8459      ;;
8460
8461    unicos*)
8462      lt_prog_compiler_wl='-Wl,'
8463      lt_prog_compiler_can_build_shared=no
8464      ;;
8465
8466    uts4*)
8467      lt_prog_compiler_pic='-pic'
8468      lt_prog_compiler_static='-Bstatic'
8469      ;;
8470
8471    *)
8472      lt_prog_compiler_can_build_shared=no
8473      ;;
8474    esac
8475  fi
8476
8477echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8478echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8479
8480#
8481# Check to make sure the PIC flag actually works.
8482#
8483if test -n "$lt_prog_compiler_pic"; then
8484
8485echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8486echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8487if test "${lt_prog_compiler_pic_works+set}" = set; then
8488  echo $ECHO_N "(cached) $ECHO_C" >&6
8489else
8490  lt_prog_compiler_pic_works=no
8491  ac_outfile=conftest.$ac_objext
8492   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8493   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8494   # Insert the option either (1) after the last *FLAGS variable, or
8495   # (2) before a word containing "conftest.", or (3) at the end.
8496   # Note that $ac_compile itself does not contain backslashes and begins
8497   # with a dollar sign (not a hyphen), so the echo should work correctly.
8498   # The option is referenced via a variable to avoid confusing sed.
8499   lt_compile=`echo "$ac_compile" | $SED \
8500   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8501   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8502   -e 's:$: $lt_compiler_flag:'`
8503   (eval echo "\"\$as_me:8503: $lt_compile\"" >&5)
8504   (eval "$lt_compile" 2>conftest.err)
8505   ac_status=$?
8506   cat conftest.err >&5
8507   echo "$as_me:8507: \$? = $ac_status" >&5
8508   if (exit $ac_status) && test -s "$ac_outfile"; then
8509     # The compiler can only warn and ignore the option if not recognized
8510     # So say no if there are warnings other than the usual output.
8511     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8512     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8514       lt_prog_compiler_pic_works=yes
8515     fi
8516   fi
8517   $rm conftest*
8518
8519fi
8520echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8521echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8522
8523if test x"$lt_prog_compiler_pic_works" = xyes; then
8524    case $lt_prog_compiler_pic in
8525     "" | " "*) ;;
8526     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8527     esac
8528else
8529    lt_prog_compiler_pic=
8530     lt_prog_compiler_can_build_shared=no
8531fi
8532
8533fi
8534case $host_os in
8535  # For platforms which do not support PIC, -DPIC is meaningless:
8536  *djgpp*)
8537    lt_prog_compiler_pic=
8538    ;;
8539  *)
8540    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8541    ;;
8542esac
8543
8544#
8545# Check to make sure the static flag actually works.
8546#
8547wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8548echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8549echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8550if test "${lt_prog_compiler_static_works+set}" = set; then
8551  echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553  lt_prog_compiler_static_works=no
8554   save_LDFLAGS="$LDFLAGS"
8555   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8556   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8557   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8558     # The linker can only warn and ignore the option if not recognized
8559     # So say no if there are warnings
8560     if test -s conftest.err; then
8561       # Append any errors to the config.log.
8562       cat conftest.err 1>&5
8563       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8564       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8565       if diff conftest.exp conftest.er2 >/dev/null; then
8566         lt_prog_compiler_static_works=yes
8567       fi
8568     else
8569       lt_prog_compiler_static_works=yes
8570     fi
8571   fi
8572   $rm conftest*
8573   LDFLAGS="$save_LDFLAGS"
8574
8575fi
8576echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8577echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8578
8579if test x"$lt_prog_compiler_static_works" = xyes; then
8580    :
8581else
8582    lt_prog_compiler_static=
8583fi
8584
8585
8586echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8587echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8588if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8589  echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
8591  lt_cv_prog_compiler_c_o=no
8592   $rm -r conftest 2>/dev/null
8593   mkdir conftest
8594   cd conftest
8595   mkdir out
8596   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8597
8598   lt_compiler_flag="-o out/conftest2.$ac_objext"
8599   # Insert the option either (1) after the last *FLAGS variable, or
8600   # (2) before a word containing "conftest.", or (3) at the end.
8601   # Note that $ac_compile itself does not contain backslashes and begins
8602   # with a dollar sign (not a hyphen), so the echo should work correctly.
8603   lt_compile=`echo "$ac_compile" | $SED \
8604   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606   -e 's:$: $lt_compiler_flag:'`
8607   (eval echo "\"\$as_me:8607: $lt_compile\"" >&5)
8608   (eval "$lt_compile" 2>out/conftest.err)
8609   ac_status=$?
8610   cat out/conftest.err >&5
8611   echo "$as_me:8611: \$? = $ac_status" >&5
8612   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8613   then
8614     # The compiler can only warn and ignore the option if not recognized
8615     # So say no if there are warnings
8616     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8617     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8618     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8619       lt_cv_prog_compiler_c_o=yes
8620     fi
8621   fi
8622   chmod u+w . 2>&5
8623   $rm conftest*
8624   # SGI C++ compiler will create directory out/ii_files/ for
8625   # template instantiation
8626   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8627   $rm out/* && rmdir out
8628   cd ..
8629   rmdir conftest
8630   $rm conftest*
8631
8632fi
8633echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8634echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8635
8636
8637hard_links="nottested"
8638if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8639  # do not overwrite the value of need_locks provided by the user
8640  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8641echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8642  hard_links=yes
8643  $rm conftest*
8644  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8645  touch conftest.a
8646  ln conftest.a conftest.b 2>&5 || hard_links=no
8647  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8648  echo "$as_me:$LINENO: result: $hard_links" >&5
8649echo "${ECHO_T}$hard_links" >&6
8650  if test "$hard_links" = no; then
8651    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8652echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8653    need_locks=warn
8654  fi
8655else
8656  need_locks=no
8657fi
8658
8659echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8660echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8661
8662  runpath_var=
8663  allow_undefined_flag=
8664  enable_shared_with_static_runtimes=no
8665  archive_cmds=
8666  archive_expsym_cmds=
8667  old_archive_From_new_cmds=
8668  old_archive_from_expsyms_cmds=
8669  export_dynamic_flag_spec=
8670  whole_archive_flag_spec=
8671  thread_safe_flag_spec=
8672  hardcode_libdir_flag_spec=
8673  hardcode_libdir_flag_spec_ld=
8674  hardcode_libdir_separator=
8675  hardcode_direct=no
8676  hardcode_minus_L=no
8677  hardcode_shlibpath_var=unsupported
8678  link_all_deplibs=unknown
8679  hardcode_automatic=no
8680  module_cmds=
8681  module_expsym_cmds=
8682  always_export_symbols=no
8683  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8684  # include_expsyms should be a list of space-separated symbols to be *always*
8685  # included in the symbol list
8686  include_expsyms=
8687  # exclude_expsyms can be an extended regexp of symbols to exclude
8688  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8689  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8690  # as well as any symbol that contains `d'.
8691  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8692  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8693  # platforms (ab)use it in PIC code, but their linkers get confused if
8694  # the symbol is explicitly referenced.  Since portable code cannot
8695  # rely on this symbol name, it's probably fine to never include it in
8696  # preloaded symbol tables.
8697  extract_expsyms_cmds=
8698  # Just being paranoid about ensuring that cc_basename is set.
8699  for cc_temp in $compiler""; do
8700  case $cc_temp in
8701    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8702    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8703    \-*) ;;
8704    *) break;;
8705  esac
8706done
8707cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8708
8709  case $host_os in
8710  cygwin* | mingw* | pw32*)
8711    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8712    # When not using gcc, we currently assume that we are using
8713    # Microsoft Visual C++.
8714    if test "$GCC" != yes; then
8715      with_gnu_ld=no
8716    fi
8717    ;;
8718  interix*)
8719    # we just hope/assume this is gcc and not c89 (= MSVC++)
8720    with_gnu_ld=yes
8721    ;;
8722  openbsd*)
8723    with_gnu_ld=no
8724    ;;
8725  esac
8726
8727  ld_shlibs=yes
8728  if test "$with_gnu_ld" = yes; then
8729    # If archive_cmds runs LD, not CC, wlarc should be empty
8730    wlarc='${wl}'
8731
8732    # Set some defaults for GNU ld with shared library support. These
8733    # are reset later if shared libraries are not supported. Putting them
8734    # here allows them to be overridden if necessary.
8735    runpath_var=LD_RUN_PATH
8736    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8737    export_dynamic_flag_spec='${wl}--export-dynamic'
8738    # ancient GNU ld didn't support --whole-archive et. al.
8739    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8740        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8741      else
8742        whole_archive_flag_spec=
8743    fi
8744    supports_anon_versioning=no
8745    case `$LD -v 2>/dev/null` in
8746      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8747      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8748      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8749      *\ 2.11.*) ;; # other 2.11 versions
8750      *) supports_anon_versioning=yes ;;
8751    esac
8752
8753    # See if GNU ld supports shared libraries.
8754    case $host_os in
8755    aix3* | aix4* | aix5*)
8756      # On AIX/PPC, the GNU linker is very broken
8757      if test "$host_cpu" != ia64; then
8758        ld_shlibs=no
8759        cat <<EOF 1>&2
8760
8761*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8762*** to be unable to reliably create shared libraries on AIX.
8763*** Therefore, libtool is disabling shared libraries support.  If you
8764*** really care for shared libraries, you may want to modify your PATH
8765*** so that a non-GNU linker is found, and then restart.
8766
8767EOF
8768      fi
8769      ;;
8770
8771    amigaos*)
8772      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)'
8773      hardcode_libdir_flag_spec='-L$libdir'
8774      hardcode_minus_L=yes
8775
8776      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8777      # that the semantics of dynamic libraries on AmigaOS, at least up
8778      # to version 4, is to share data among multiple programs linked
8779      # with the same dynamic library.  Since this doesn't match the
8780      # behavior of shared libraries on other platforms, we can't use
8781      # them.
8782      ld_shlibs=no
8783      ;;
8784
8785    beos*)
8786      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8787        allow_undefined_flag=unsupported
8788        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8789        # support --undefined.  This deserves some investigation.  FIXME
8790        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8791      else
8792        ld_shlibs=no
8793      fi
8794      ;;
8795
8796    cygwin* | mingw* | pw32*)
8797      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8798      # as there is no search path for DLLs.
8799      hardcode_libdir_flag_spec='-L$libdir'
8800      allow_undefined_flag=unsupported
8801      always_export_symbols=no
8802      enable_shared_with_static_runtimes=yes
8803      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8804
8805      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8806        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8807        # If the export-symbols file already is a .def file (1st line
8808        # is EXPORTS), use it as is; otherwise, prepend...
8809        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8810          cp $export_symbols $output_objdir/$soname.def;
8811        else
8812          echo EXPORTS > $output_objdir/$soname.def;
8813          cat $export_symbols >> $output_objdir/$soname.def;
8814        fi~
8815        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8816      else
8817        ld_shlibs=no
8818      fi
8819      ;;
8820
8821    interix3*)
8822      hardcode_direct=no
8823      hardcode_shlibpath_var=no
8824      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8825      export_dynamic_flag_spec='${wl}-E'
8826      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8827      # Instead, shared libraries are loaded at an image base (0x10000000 by
8828      # default) and relocated if they conflict, which is a slow very memory
8829      # consuming and fragmenting process.  To avoid this, we pick a random,
8830      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8831      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8832      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8833      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'
8834      ;;
8835
8836    linux*)
8837      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8838        tmp_addflag=
8839        case $cc_basename,$host_cpu in
8840        pgcc*)                          # Portland Group C compiler
8841          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'
8842          tmp_addflag=' $pic_flag'
8843          ;;
8844        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8845          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'
8846          tmp_addflag=' $pic_flag -Mnomain' ;;
8847        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8848          tmp_addflag=' -i_dynamic' ;;
8849        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8850          tmp_addflag=' -i_dynamic -nofor_main' ;;
8851        ifc* | ifort*)                  # Intel Fortran compiler
8852          tmp_addflag=' -nofor_main' ;;
8853        esac
8854        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855
8856        if test $supports_anon_versioning = yes; then
8857          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8858  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8859  $echo "local: *; };" >> $output_objdir/$libname.ver~
8860          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8861        fi
8862      else
8863        ld_shlibs=no
8864      fi
8865      ;;
8866
8867    netbsd*)
8868      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8869        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8870        wlarc=
8871      else
8872        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8874      fi
8875      ;;
8876
8877    solaris*)
8878      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8879        ld_shlibs=no
8880        cat <<EOF 1>&2
8881
8882*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8883*** create shared libraries on Solaris systems.  Therefore, libtool
8884*** is disabling shared libraries support.  We urge you to upgrade GNU
8885*** binutils to release 2.9.1 or newer.  Another option is to modify
8886*** your PATH or compiler configuration so that the native linker is
8887*** used, and then restart.
8888
8889EOF
8890      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8891        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8893      else
8894        ld_shlibs=no
8895      fi
8896      ;;
8897
8898    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8899      case `$LD -v 2>&1` in
8900        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8901        ld_shlibs=no
8902        cat <<_LT_EOF 1>&2
8903
8904*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8905*** reliably create shared libraries on SCO systems.  Therefore, libtool
8906*** is disabling shared libraries support.  We urge you to upgrade GNU
8907*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8908*** your PATH or compiler configuration so that the native linker is
8909*** used, and then restart.
8910
8911_LT_EOF
8912        ;;
8913        *)
8914          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8915            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8916            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8917            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8918          else
8919            ld_shlibs=no
8920          fi
8921        ;;
8922      esac
8923      ;;
8924
8925    sunos4*)
8926      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8927      wlarc=
8928      hardcode_direct=yes
8929      hardcode_shlibpath_var=no
8930      ;;
8931
8932    *)
8933      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8934        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8936      else
8937        ld_shlibs=no
8938      fi
8939      ;;
8940    esac
8941
8942    if test "$ld_shlibs" = no; then
8943      runpath_var=
8944      hardcode_libdir_flag_spec=
8945      export_dynamic_flag_spec=
8946      whole_archive_flag_spec=
8947    fi
8948  else
8949    # PORTME fill in a description of your system's linker (not GNU ld)
8950    case $host_os in
8951    aix3*)
8952      allow_undefined_flag=unsupported
8953      always_export_symbols=yes
8954      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'
8955      # Note: this linker hardcodes the directories in LIBPATH if there
8956      # are no directories specified by -L.
8957      hardcode_minus_L=yes
8958      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8959        # Neither direct hardcoding nor static linking is supported with a
8960        # broken collect2.
8961        hardcode_direct=unsupported
8962      fi
8963      ;;
8964
8965    aix4* | aix5*)
8966      if test "$host_cpu" = ia64; then
8967        # On IA64, the linker does run time linking by default, so we don't
8968        # have to do anything special.
8969        aix_use_runtimelinking=no
8970        exp_sym_flag='-Bexport'
8971        no_entry_flag=""
8972      else
8973        # If we're using GNU nm, then we don't want the "-C" option.
8974        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8975        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8976          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'
8977        else
8978          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'
8979        fi
8980        aix_use_runtimelinking=no
8981
8982        # Test if we are trying to use run time linking or normal
8983        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8984        # need to do runtime linking.
8985        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8986          for ld_flag in $LDFLAGS; do
8987          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8988            aix_use_runtimelinking=yes
8989            break
8990          fi
8991          done
8992          ;;
8993        esac
8994
8995        exp_sym_flag='-bexport'
8996        no_entry_flag='-bnoentry'
8997      fi
8998
8999      # When large executables or shared objects are built, AIX ld can
9000      # have problems creating the table of contents.  If linking a library
9001      # or program results in "error TOC overflow" add -mminimal-toc to
9002      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9003      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9004
9005      archive_cmds=''
9006      hardcode_direct=yes
9007      hardcode_libdir_separator=':'
9008      link_all_deplibs=yes
9009
9010      if test "$GCC" = yes; then
9011        case $host_os in aix4.[012]|aix4.[012].*)
9012        # We only want to do this on AIX 4.2 and lower, the check
9013        # below for broken collect2 doesn't work under 4.3+
9014          collect2name=`${CC} -print-prog-name=collect2`
9015          if test -f "$collect2name" && \
9016           strings "$collect2name" | grep resolve_lib_name >/dev/null
9017          then
9018          # We have reworked collect2
9019          hardcode_direct=yes
9020          else
9021          # We have old collect2
9022          hardcode_direct=unsupported
9023          # It fails to find uninstalled libraries when the uninstalled
9024          # path is not listed in the libpath.  Setting hardcode_minus_L
9025          # to unsupported forces relinking
9026          hardcode_minus_L=yes
9027          hardcode_libdir_flag_spec='-L$libdir'
9028          hardcode_libdir_separator=
9029          fi
9030          ;;
9031        esac
9032        shared_flag='-shared'
9033        if test "$aix_use_runtimelinking" = yes; then
9034          shared_flag="$shared_flag "'${wl}-G'
9035        fi
9036      else
9037        # not using gcc
9038        if test "$host_cpu" = ia64; then
9039        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9040        # chokes on -Wl,-G. The following line is correct:
9041          shared_flag='-G'
9042        else
9043          if test "$aix_use_runtimelinking" = yes; then
9044            shared_flag='${wl}-G'
9045          else
9046            shared_flag='${wl}-bM:SRE'
9047          fi
9048        fi
9049      fi
9050
9051      # It seems that -bexpall does not export symbols beginning with
9052      # underscore (_), so it is better to generate a list of symbols to export.
9053      always_export_symbols=yes
9054      if test "$aix_use_runtimelinking" = yes; then
9055        # Warning - without using the other runtime loading flags (-brtl),
9056        # -berok will link without error, but may produce a broken library.
9057        allow_undefined_flag='-berok'
9058       # Determine the default libpath from the value encoded in an empty executable.
9059       cat >conftest.$ac_ext <<_ACEOF
9060/* confdefs.h.  */
9061_ACEOF
9062cat confdefs.h >>conftest.$ac_ext
9063cat >>conftest.$ac_ext <<_ACEOF
9064/* end confdefs.h.  */
9065
9066int
9067main ()
9068{
9069
9070  ;
9071  return 0;
9072}
9073_ACEOF
9074rm -f conftest.$ac_objext conftest$ac_exeext
9075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076  (eval $ac_link) 2>conftest.er1
9077  ac_status=$?
9078  grep -v '^ *+' conftest.er1 >conftest.err
9079  rm -f conftest.er1
9080  cat conftest.err >&5
9081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082  (exit $ac_status); } &&
9083         { ac_try='test -z "$ac_c_werror_flag"
9084                         || test ! -s conftest.err'
9085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086  (eval $ac_try) 2>&5
9087  ac_status=$?
9088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089  (exit $ac_status); }; } &&
9090         { ac_try='test -s conftest$ac_exeext'
9091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092  (eval $ac_try) 2>&5
9093  ac_status=$?
9094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095  (exit $ac_status); }; }; then
9096
9097aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9098}'`
9099# Check for a 64-bit object if we didn't find anything.
9100if 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; }
9101}'`; fi
9102else
9103  echo "$as_me: failed program was:" >&5
9104sed 's/^/| /' conftest.$ac_ext >&5
9105
9106fi
9107rm -f conftest.err conftest.$ac_objext \
9108      conftest$ac_exeext conftest.$ac_ext
9109if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9110
9111       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9112        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"
9113       else
9114        if test "$host_cpu" = ia64; then
9115          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9116          allow_undefined_flag="-z nodefs"
9117          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"
9118        else
9119         # Determine the default libpath from the value encoded in an empty executable.
9120         cat >conftest.$ac_ext <<_ACEOF
9121/* confdefs.h.  */
9122_ACEOF
9123cat confdefs.h >>conftest.$ac_ext
9124cat >>conftest.$ac_ext <<_ACEOF
9125/* end confdefs.h.  */
9126
9127int
9128main ()
9129{
9130
9131  ;
9132  return 0;
9133}
9134_ACEOF
9135rm -f conftest.$ac_objext conftest$ac_exeext
9136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137  (eval $ac_link) 2>conftest.er1
9138  ac_status=$?
9139  grep -v '^ *+' conftest.er1 >conftest.err
9140  rm -f conftest.er1
9141  cat conftest.err >&5
9142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143  (exit $ac_status); } &&
9144         { ac_try='test -z "$ac_c_werror_flag"
9145                         || test ! -s conftest.err'
9146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147  (eval $ac_try) 2>&5
9148  ac_status=$?
9149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150  (exit $ac_status); }; } &&
9151         { ac_try='test -s conftest$ac_exeext'
9152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153  (eval $ac_try) 2>&5
9154  ac_status=$?
9155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156  (exit $ac_status); }; }; then
9157
9158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9159}'`
9160# Check for a 64-bit object if we didn't find anything.
9161if 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; }
9162}'`; fi
9163else
9164  echo "$as_me: failed program was:" >&5
9165sed 's/^/| /' conftest.$ac_ext >&5
9166
9167fi
9168rm -f conftest.err conftest.$ac_objext \
9169      conftest$ac_exeext conftest.$ac_ext
9170if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9171
9172         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9173          # Warning - without using the other run time loading flags,
9174          # -berok will link without error, but may produce a broken library.
9175          no_undefined_flag=' ${wl}-bernotok'
9176          allow_undefined_flag=' ${wl}-berok'
9177          # Exported symbols can be pulled into shared objects from archives
9178          whole_archive_flag_spec='$convenience'
9179          archive_cmds_need_lc=yes
9180          # This is similar to how AIX traditionally builds its shared libraries.
9181          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'
9182        fi
9183      fi
9184      ;;
9185
9186    amigaos*)
9187      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)'
9188      hardcode_libdir_flag_spec='-L$libdir'
9189      hardcode_minus_L=yes
9190      # see comment about different semantics on the GNU ld section
9191      ld_shlibs=no
9192      ;;
9193
9194    bsdi[45]*)
9195      export_dynamic_flag_spec=-rdynamic
9196      ;;
9197
9198    cygwin* | mingw* | pw32*)
9199      # When not using gcc, we currently assume that we are using
9200      # Microsoft Visual C++.
9201      # hardcode_libdir_flag_spec is actually meaningless, as there is
9202      # no search path for DLLs.
9203      hardcode_libdir_flag_spec=' '
9204      allow_undefined_flag=unsupported
9205      # Tell ltmain to make .lib files, not .a files.
9206      libext=lib
9207      # Tell ltmain to make .dll files, not .so files.
9208      shrext_cmds=".dll"
9209      # FIXME: Setting linknames here is a bad hack.
9210      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9211      # The linker will automatically build a .lib file if we build a DLL.
9212      old_archive_From_new_cmds='true'
9213      # FIXME: Should let the user specify the lib program.
9214      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9215      fix_srcfile_path='`cygpath -w "$srcfile"`'
9216      enable_shared_with_static_runtimes=yes
9217      ;;
9218
9219    darwin* | rhapsody*)
9220      case $host_os in
9221        rhapsody* | darwin1.[012])
9222         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9223         ;;
9224       *) # Darwin 1.3 on
9225         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9226           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9227         else
9228           case ${MACOSX_DEPLOYMENT_TARGET} in
9229             10.[012])
9230               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9231               ;;
9232             10.*)
9233               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9234               ;;
9235           esac
9236         fi
9237         ;;
9238      esac
9239      archive_cmds_need_lc=no
9240      hardcode_direct=no
9241      hardcode_automatic=yes
9242      hardcode_shlibpath_var=unsupported
9243      whole_archive_flag_spec=''
9244      link_all_deplibs=yes
9245    if test "$GCC" = yes ; then
9246        output_verbose_link_cmd='echo'
9247        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9248      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9249      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9250      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}'
9251      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}'
9252    else
9253      case $cc_basename in
9254        xlc*)
9255         output_verbose_link_cmd='echo'
9256         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9257         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9258          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9259         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}'
9260          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}'
9261          ;;
9262       *)
9263         ld_shlibs=no
9264          ;;
9265      esac
9266    fi
9267      ;;
9268
9269    dgux*)
9270      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271      hardcode_libdir_flag_spec='-L$libdir'
9272      hardcode_shlibpath_var=no
9273      ;;
9274
9275    freebsd1*)
9276      ld_shlibs=no
9277      ;;
9278
9279    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9280    # support.  Future versions do this automatically, but an explicit c++rt0.o
9281    # does not break anything, and helps significantly (at the cost of a little
9282    # extra space).
9283    freebsd2.2*)
9284      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9285      hardcode_libdir_flag_spec='-R$libdir'
9286      hardcode_direct=yes
9287      hardcode_shlibpath_var=no
9288      ;;
9289
9290    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9291    freebsd2*)
9292      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9293      hardcode_direct=yes
9294      hardcode_minus_L=yes
9295      hardcode_shlibpath_var=no
9296      ;;
9297
9298    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9299    freebsd* | kfreebsd*-gnu | dragonfly*)
9300      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9301      hardcode_libdir_flag_spec='-R$libdir'
9302      hardcode_direct=yes
9303      hardcode_shlibpath_var=no
9304      ;;
9305
9306    hpux9*)
9307      if test "$GCC" = yes; then
9308        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'
9309      else
9310        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'
9311      fi
9312      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9313      hardcode_libdir_separator=:
9314      hardcode_direct=yes
9315
9316      # hardcode_minus_L: Not really in the search PATH,
9317      # but as the default location of the library.
9318      hardcode_minus_L=yes
9319      export_dynamic_flag_spec='${wl}-E'
9320      ;;
9321
9322    hpux10*)
9323      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9324        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9325      else
9326        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9327      fi
9328      if test "$with_gnu_ld" = no; then
9329        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9330        hardcode_libdir_separator=:
9331
9332        hardcode_direct=yes
9333        export_dynamic_flag_spec='${wl}-E'
9334
9335        # hardcode_minus_L: Not really in the search PATH,
9336        # but as the default location of the library.
9337        hardcode_minus_L=yes
9338      fi
9339      ;;
9340
9341    hpux11*)
9342      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9343        case $host_cpu in
9344        hppa*64*)
9345          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9346          ;;
9347        ia64*)
9348          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9349          ;;
9350        *)
9351          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9352          ;;
9353        esac
9354      else
9355        case $host_cpu in
9356        hppa*64*)
9357          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9358          ;;
9359        ia64*)
9360          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9361          ;;
9362        *)
9363          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9364          ;;
9365        esac
9366      fi
9367      if test "$with_gnu_ld" = no; then
9368        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9369        hardcode_libdir_separator=:
9370
9371        case $host_cpu in
9372        hppa*64*|ia64*)
9373          hardcode_libdir_flag_spec_ld='+b $libdir'
9374          hardcode_direct=no
9375          hardcode_shlibpath_var=no
9376          ;;
9377        *)
9378          hardcode_direct=yes
9379          export_dynamic_flag_spec='${wl}-E'
9380
9381          # hardcode_minus_L: Not really in the search PATH,
9382          # but as the default location of the library.
9383          hardcode_minus_L=yes
9384          ;;
9385        esac
9386      fi
9387      ;;
9388
9389    irix5* | irix6* | nonstopux*)
9390      if test "$GCC" = yes; then
9391        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'
9392      else
9393        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'
9394        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9395      fi
9396      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397      hardcode_libdir_separator=:
9398      link_all_deplibs=yes
9399      ;;
9400
9401    netbsd*)
9402      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9403        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9404      else
9405        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9406      fi
9407      hardcode_libdir_flag_spec='-R$libdir'
9408      hardcode_direct=yes
9409      hardcode_shlibpath_var=no
9410      ;;
9411
9412    newsos6)
9413      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414      hardcode_direct=yes
9415      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9416      hardcode_libdir_separator=:
9417      hardcode_shlibpath_var=no
9418      ;;
9419
9420    openbsd*)
9421      hardcode_direct=yes
9422      hardcode_shlibpath_var=no
9423      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9424        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9425        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9426        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9427        export_dynamic_flag_spec='${wl}-E'
9428      else
9429       case $host_os in
9430         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9431           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9432           hardcode_libdir_flag_spec='-R$libdir'
9433           ;;
9434         *)
9435           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9436           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9437           ;;
9438       esac
9439      fi
9440      ;;
9441
9442    os2*)
9443      hardcode_libdir_flag_spec='-L$libdir'
9444      hardcode_minus_L=yes
9445      allow_undefined_flag=unsupported
9446      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'
9447      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9448      ;;
9449
9450    osf3*)
9451      if test "$GCC" = yes; then
9452        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9453        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'
9454      else
9455        allow_undefined_flag=' -expect_unresolved \*'
9456        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'
9457      fi
9458      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459      hardcode_libdir_separator=:
9460      ;;
9461
9462    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9463      if test "$GCC" = yes; then
9464        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9465        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'
9466        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467      else
9468        allow_undefined_flag=' -expect_unresolved \*'
9469        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'
9470        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9471        $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'
9472
9473        # Both c and cxx compiler support -rpath directly
9474        hardcode_libdir_flag_spec='-rpath $libdir'
9475      fi
9476      hardcode_libdir_separator=:
9477      ;;
9478
9479    solaris*)
9480      no_undefined_flag=' -z text'
9481      if test "$GCC" = yes; then
9482        wlarc='${wl}'
9483        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9484        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9485          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9486      else
9487        wlarc=''
9488        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9490        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9491      fi
9492      hardcode_libdir_flag_spec='-R$libdir'
9493      hardcode_shlibpath_var=no
9494      case $host_os in
9495      solaris2.[0-5] | solaris2.[0-5].*) ;;
9496      *)
9497        # The compiler driver will combine linker options so we
9498        # cannot just pass the convience library names through
9499        # without $wl, iff we do not link with $LD.
9500        # Luckily, gcc supports the same syntax we need for Sun Studio.
9501        # Supported since Solaris 2.6 (maybe 2.5.1?)
9502        case $wlarc in
9503        '')
9504          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9505        *)
9506          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' ;;
9507        esac ;;
9508      esac
9509      link_all_deplibs=yes
9510      ;;
9511
9512    sunos4*)
9513      if test "x$host_vendor" = xsequent; then
9514        # Use $CC to link under sequent, because it throws in some extra .o
9515        # files that make .init and .fini sections work.
9516        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9517      else
9518        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9519      fi
9520      hardcode_libdir_flag_spec='-L$libdir'
9521      hardcode_direct=yes
9522      hardcode_minus_L=yes
9523      hardcode_shlibpath_var=no
9524      ;;
9525
9526    sysv4)
9527      case $host_vendor in
9528        sni)
9529          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530          hardcode_direct=yes # is this really true???
9531        ;;
9532        siemens)
9533          ## LD is ld it makes a PLAMLIB
9534          ## CC just makes a GrossModule.
9535          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9536          reload_cmds='$CC -r -o $output$reload_objs'
9537          hardcode_direct=no
9538        ;;
9539        motorola)
9540          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9542        ;;
9543      esac
9544      runpath_var='LD_RUN_PATH'
9545      hardcode_shlibpath_var=no
9546      ;;
9547
9548    sysv4.3*)
9549      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550      hardcode_shlibpath_var=no
9551      export_dynamic_flag_spec='-Bexport'
9552      ;;
9553
9554    sysv4*MP*)
9555      if test -d /usr/nec; then
9556        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9557        hardcode_shlibpath_var=no
9558        runpath_var=LD_RUN_PATH
9559        hardcode_runpath_var=yes
9560        ld_shlibs=yes
9561      fi
9562      ;;
9563
9564    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9565      no_undefined_flag='${wl}-z,text'
9566      archive_cmds_need_lc=no
9567      hardcode_shlibpath_var=no
9568      runpath_var='LD_RUN_PATH'
9569
9570      if test "$GCC" = yes; then
9571        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9572        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9573      else
9574        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9575        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576      fi
9577      ;;
9578
9579    sysv5* | sco3.2v5* | sco5v6*)
9580      # Note: We can NOT use -z defs as we might desire, because we do not
9581      # link with -lc, and that would cause any symbols used from libc to
9582      # always be unresolved, which means just about no library would
9583      # ever link correctly.  If we're not using GNU ld we use -z text
9584      # though, which does catch some bad symbols but isn't as heavy-handed
9585      # as -z defs.
9586      no_undefined_flag='${wl}-z,text'
9587      allow_undefined_flag='${wl}-z,nodefs'
9588      archive_cmds_need_lc=no
9589      hardcode_shlibpath_var=no
9590      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9591      hardcode_libdir_separator=':'
9592      link_all_deplibs=yes
9593      export_dynamic_flag_spec='${wl}-Bexport'
9594      runpath_var='LD_RUN_PATH'
9595
9596      if test "$GCC" = yes; then
9597        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599      else
9600        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9601        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602      fi
9603      ;;
9604
9605    uts4*)
9606      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607      hardcode_libdir_flag_spec='-L$libdir'
9608      hardcode_shlibpath_var=no
9609      ;;
9610
9611    *)
9612      ld_shlibs=no
9613      ;;
9614    esac
9615  fi
9616
9617echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9618echo "${ECHO_T}$ld_shlibs" >&6
9619test "$ld_shlibs" = no && can_build_shared=no
9620
9621#
9622# Do we need to explicitly link libc?
9623#
9624case "x$archive_cmds_need_lc" in
9625x|xyes)
9626  # Assume -lc should be added
9627  archive_cmds_need_lc=yes
9628
9629  if test "$enable_shared" = yes && test "$GCC" = yes; then
9630    case $archive_cmds in
9631    *'~'*)
9632      # FIXME: we may have to deal with multi-command sequences.
9633      ;;
9634    '$CC '*)
9635      # Test whether the compiler implicitly links with -lc since on some
9636      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9637      # to ld, don't add -lc before -lgcc.
9638      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9639echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9640      $rm conftest*
9641      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9642
9643      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644  (eval $ac_compile) 2>&5
9645  ac_status=$?
9646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647  (exit $ac_status); } 2>conftest.err; then
9648        soname=conftest
9649        lib=conftest
9650        libobjs=conftest.$ac_objext
9651        deplibs=
9652        wl=$lt_prog_compiler_wl
9653        pic_flag=$lt_prog_compiler_pic
9654        compiler_flags=-v
9655        linker_flags=-v
9656        verstring=
9657        output_objdir=.
9658        libname=conftest
9659        lt_save_allow_undefined_flag=$allow_undefined_flag
9660        allow_undefined_flag=
9661        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9662  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9663  ac_status=$?
9664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665  (exit $ac_status); }
9666        then
9667          archive_cmds_need_lc=no
9668        else
9669          archive_cmds_need_lc=yes
9670        fi
9671        allow_undefined_flag=$lt_save_allow_undefined_flag
9672      else
9673        cat conftest.err 1>&5
9674      fi
9675      $rm conftest*
9676      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9677echo "${ECHO_T}$archive_cmds_need_lc" >&6
9678      ;;
9679    esac
9680  fi
9681  ;;
9682esac
9683
9684echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9685echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9686library_names_spec=
9687libname_spec='lib$name'
9688soname_spec=
9689shrext_cmds=".so"
9690postinstall_cmds=
9691postuninstall_cmds=
9692finish_cmds=
9693finish_eval=
9694shlibpath_var=
9695shlibpath_overrides_runpath=unknown
9696version_type=none
9697dynamic_linker="$host_os ld.so"
9698sys_lib_dlsearch_path_spec="/lib /usr/lib"
9699if test "$GCC" = yes; then
9700  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9701  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9702    # if the path contains ";" then we assume it to be the separator
9703    # otherwise default to the standard path separator (i.e. ":") - it is
9704    # assumed that no part of a normal pathname contains ";" but that should
9705    # okay in the real world where ";" in dirpaths is itself problematic.
9706    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9707  else
9708    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9709  fi
9710else
9711  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9712fi
9713need_lib_prefix=unknown
9714hardcode_into_libs=no
9715
9716# when you set need_version to no, make sure it does not cause -set_version
9717# flags to be left without arguments
9718need_version=unknown
9719
9720case $host_os in
9721aix3*)
9722  version_type=linux
9723  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9724  shlibpath_var=LIBPATH
9725
9726  # AIX 3 has no versioning support, so we append a major version to the name.
9727  soname_spec='${libname}${release}${shared_ext}$major'
9728  ;;
9729
9730aix4* | aix5*)
9731  version_type=linux
9732  need_lib_prefix=no
9733  need_version=no
9734  hardcode_into_libs=yes
9735  if test "$host_cpu" = ia64; then
9736    # AIX 5 supports IA64
9737    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9738    shlibpath_var=LD_LIBRARY_PATH
9739  else
9740    # With GCC up to 2.95.x, collect2 would create an import file
9741    # for dependence libraries.  The import file would start with
9742    # the line `#! .'.  This would cause the generated library to
9743    # depend on `.', always an invalid library.  This was fixed in
9744    # development snapshots of GCC prior to 3.0.
9745    case $host_os in
9746      aix4 | aix4.[01] | aix4.[01].*)
9747      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9748           echo ' yes '
9749           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9750        :
9751      else
9752        can_build_shared=no
9753      fi
9754      ;;
9755    esac
9756    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9757    # soname into executable. Probably we can add versioning support to
9758    # collect2, so additional links can be useful in future.
9759    if test "$aix_use_runtimelinking" = yes; then
9760      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9761      # instead of lib<name>.a to let people know that these are not
9762      # typical AIX shared libraries.
9763      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764    else
9765      # We preserve .a as extension for shared libraries through AIX4.2
9766      # and later when we are not doing run time linking.
9767      library_names_spec='${libname}${release}.a $libname.a'
9768      soname_spec='${libname}${release}${shared_ext}$major'
9769    fi
9770    shlibpath_var=LIBPATH
9771  fi
9772  ;;
9773
9774amigaos*)
9775  library_names_spec='$libname.ixlibrary $libname.a'
9776  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9777  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'
9778  ;;
9779
9780beos*)
9781  library_names_spec='${libname}${shared_ext}'
9782  dynamic_linker="$host_os ld.so"
9783  shlibpath_var=LIBRARY_PATH
9784  ;;
9785
9786bsdi[45]*)
9787  version_type=linux
9788  need_version=no
9789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790  soname_spec='${libname}${release}${shared_ext}$major'
9791  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9792  shlibpath_var=LD_LIBRARY_PATH
9793  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9794  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9795  # the default ld.so.conf also contains /usr/contrib/lib and
9796  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9797  # libtool to hard-code these into programs
9798  ;;
9799
9800cygwin* | mingw* | pw32*)
9801  version_type=windows
9802  shrext_cmds=".dll"
9803  need_version=no
9804  need_lib_prefix=no
9805
9806  case $GCC,$host_os in
9807  yes,cygwin* | yes,mingw* | yes,pw32*)
9808    library_names_spec='$libname.dll.a'
9809    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9810    postinstall_cmds='base_file=`basename \${file}`~
9811      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9812      dldir=$destdir/`dirname \$dlpath`~
9813      test -d \$dldir || mkdir -p \$dldir~
9814      $install_prog $dir/$dlname \$dldir/$dlname~
9815      chmod a+x \$dldir/$dlname'
9816    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9817      dlpath=$dir/\$dldll~
9818       $rm \$dlpath'
9819    shlibpath_overrides_runpath=yes
9820
9821    case $host_os in
9822    cygwin*)
9823      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9824      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9825      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9826      ;;
9827    mingw*)
9828      # MinGW DLLs use traditional 'lib' prefix
9829      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9830      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9831      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9832        # It is most probably a Windows format PATH printed by
9833        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9834        # path with ; separators, and with drive letters. We can handle the
9835        # drive letters (cygwin fileutils understands them), so leave them,
9836        # especially as we might pass files found there to a mingw objdump,
9837        # which wouldn't understand a cygwinified path. Ahh.
9838        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9839      else
9840        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9841      fi
9842      ;;
9843    pw32*)
9844      # pw32 DLLs use 'pw' prefix rather than 'lib'
9845      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9846      ;;
9847    esac
9848    ;;
9849
9850  *)
9851    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9852    ;;
9853  esac
9854  dynamic_linker='Win32 ld.exe'
9855  # FIXME: first we should search . and the directory the executable is in
9856  shlibpath_var=PATH
9857  ;;
9858
9859darwin* | rhapsody*)
9860  dynamic_linker="$host_os dyld"
9861  version_type=darwin
9862  need_lib_prefix=no
9863  need_version=no
9864  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9865  soname_spec='${libname}${release}${major}$shared_ext'
9866  shlibpath_overrides_runpath=yes
9867  shlibpath_var=DYLD_LIBRARY_PATH
9868  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9869  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9870  if test "$GCC" = yes; then
9871    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"`
9872  else
9873    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9874  fi
9875  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9876  ;;
9877
9878dgux*)
9879  version_type=linux
9880  need_lib_prefix=no
9881  need_version=no
9882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9883  soname_spec='${libname}${release}${shared_ext}$major'
9884  shlibpath_var=LD_LIBRARY_PATH
9885  ;;
9886
9887freebsd1*)
9888  dynamic_linker=no
9889  ;;
9890
9891kfreebsd*-gnu)
9892  version_type=linux
9893  need_lib_prefix=no
9894  need_version=no
9895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9896  soname_spec='${libname}${release}${shared_ext}$major'
9897  shlibpath_var=LD_LIBRARY_PATH
9898  shlibpath_overrides_runpath=no
9899  hardcode_into_libs=yes
9900  dynamic_linker='GNU ld.so'
9901  ;;
9902
9903freebsd* | dragonfly*)
9904  # DragonFly does not have aout.  When/if they implement a new
9905  # versioning mechanism, adjust this.
9906  if test -x /usr/bin/objformat; then
9907    objformat=`/usr/bin/objformat`
9908  else
9909    case $host_os in
9910    freebsd[123]*) objformat=aout ;;
9911    *) objformat=elf ;;
9912    esac
9913  fi
9914  version_type=freebsd-$objformat
9915  case $version_type in
9916    freebsd-elf*)
9917      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9918      need_version=no
9919      need_lib_prefix=no
9920      ;;
9921    freebsd-*)
9922      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9923      need_version=yes
9924      ;;
9925  esac
9926  shlibpath_var=LD_LIBRARY_PATH
9927  case $host_os in
9928  freebsd2*)
9929    shlibpath_overrides_runpath=yes
9930    ;;
9931  freebsd3.[01]* | freebsdelf3.[01]*)
9932    shlibpath_overrides_runpath=yes
9933    hardcode_into_libs=yes
9934    ;;
9935  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9936  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9937    shlibpath_overrides_runpath=no
9938    hardcode_into_libs=yes
9939    ;;
9940  freebsd*) # from 4.6 on
9941    shlibpath_overrides_runpath=yes
9942    hardcode_into_libs=yes
9943    ;;
9944  esac
9945  ;;
9946
9947gnu*)
9948  version_type=linux
9949  need_lib_prefix=no
9950  need_version=no
9951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9952  soname_spec='${libname}${release}${shared_ext}$major'
9953  shlibpath_var=LD_LIBRARY_PATH
9954  hardcode_into_libs=yes
9955  ;;
9956
9957hpux9* | hpux10* | hpux11*)
9958  # Give a soname corresponding to the major version so that dld.sl refuses to
9959  # link against other versions.
9960  version_type=sunos
9961  need_lib_prefix=no
9962  need_version=no
9963  case $host_cpu in
9964  ia64*)
9965    shrext_cmds='.so'
9966    hardcode_into_libs=yes
9967    dynamic_linker="$host_os dld.so"
9968    shlibpath_var=LD_LIBRARY_PATH
9969    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9970    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971    soname_spec='${libname}${release}${shared_ext}$major'
9972    if test "X$HPUX_IA64_MODE" = X32; then
9973      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9974    else
9975      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9976    fi
9977    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9978    ;;
9979   hppa*64*)
9980     shrext_cmds='.sl'
9981     hardcode_into_libs=yes
9982     dynamic_linker="$host_os dld.sl"
9983     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986     soname_spec='${libname}${release}${shared_ext}$major'
9987     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9989     ;;
9990   *)
9991    shrext_cmds='.sl'
9992    dynamic_linker="$host_os dld.sl"
9993    shlibpath_var=SHLIB_PATH
9994    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9995    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996    soname_spec='${libname}${release}${shared_ext}$major'
9997    ;;
9998  esac
9999  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10000  postinstall_cmds='chmod 555 $lib'
10001  ;;
10002
10003interix3*)
10004  version_type=linux
10005  need_lib_prefix=no
10006  need_version=no
10007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10008  soname_spec='${libname}${release}${shared_ext}$major'
10009  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10010  shlibpath_var=LD_LIBRARY_PATH
10011  shlibpath_overrides_runpath=no
10012  hardcode_into_libs=yes
10013  ;;
10014
10015irix5* | irix6* | nonstopux*)
10016  case $host_os in
10017    nonstopux*) version_type=nonstopux ;;
10018    *)
10019        if test "$lt_cv_prog_gnu_ld" = yes; then
10020                version_type=linux
10021        else
10022                version_type=irix
10023        fi ;;
10024  esac
10025  need_lib_prefix=no
10026  need_version=no
10027  soname_spec='${libname}${release}${shared_ext}$major'
10028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10029  case $host_os in
10030  irix5* | nonstopux*)
10031    libsuff= shlibsuff=
10032    ;;
10033  *)
10034    case $LD in # libtool.m4 will add one of these switches to LD
10035    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10036      libsuff= shlibsuff= libmagic=32-bit;;
10037    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10038      libsuff=32 shlibsuff=N32 libmagic=N32;;
10039    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10040      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10041    *) libsuff= shlibsuff= libmagic=never-match;;
10042    esac
10043    ;;
10044  esac
10045  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10046  shlibpath_overrides_runpath=no
10047  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10048  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10049  hardcode_into_libs=yes
10050  ;;
10051
10052# No shared lib support for Linux oldld, aout, or coff.
10053linux*oldld* | linux*aout* | linux*coff*)
10054  dynamic_linker=no
10055  ;;
10056
10057# This must be Linux ELF.
10058linux*)
10059  version_type=linux
10060  need_lib_prefix=no
10061  need_version=no
10062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063  soname_spec='${libname}${release}${shared_ext}$major'
10064  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10065  shlibpath_var=LD_LIBRARY_PATH
10066  shlibpath_overrides_runpath=no
10067  # This implies no fast_install, which is unacceptable.
10068  # Some rework will be needed to allow for fast_install
10069  # before this can be enabled.
10070  hardcode_into_libs=yes
10071
10072  # Append ld.so.conf contents to the search path
10073  if test -f /etc/ld.so.conf; then
10074    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' ' '`
10075    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10076  fi
10077
10078  # We used to test for /lib/ld.so.1 and disable shared libraries on
10079  # powerpc, because MkLinux only supported shared libraries with the
10080  # GNU dynamic linker.  Since this was broken with cross compilers,
10081  # most powerpc-linux boxes support dynamic linking these days and
10082  # people can always --disable-shared, the test was removed, and we
10083  # assume the GNU/Linux dynamic linker is in use.
10084  dynamic_linker='GNU/Linux ld.so'
10085  ;;
10086
10087knetbsd*-gnu)
10088  version_type=linux
10089  need_lib_prefix=no
10090  need_version=no
10091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10092  soname_spec='${libname}${release}${shared_ext}$major'
10093  shlibpath_var=LD_LIBRARY_PATH
10094  shlibpath_overrides_runpath=no
10095  hardcode_into_libs=yes
10096  dynamic_linker='GNU ld.so'
10097  ;;
10098
10099netbsd*)
10100  version_type=sunos
10101  need_lib_prefix=no
10102  need_version=no
10103  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10104    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10105    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10106    dynamic_linker='NetBSD (a.out) ld.so'
10107  else
10108    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10109    soname_spec='${libname}${release}${shared_ext}$major'
10110    dynamic_linker='NetBSD ld.elf_so'
10111  fi
10112  shlibpath_var=LD_LIBRARY_PATH
10113  shlibpath_overrides_runpath=yes
10114  hardcode_into_libs=yes
10115  ;;
10116
10117newsos6)
10118  version_type=linux
10119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120  shlibpath_var=LD_LIBRARY_PATH
10121  shlibpath_overrides_runpath=yes
10122  ;;
10123
10124nto-qnx*)
10125  version_type=linux
10126  need_lib_prefix=no
10127  need_version=no
10128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129  soname_spec='${libname}${release}${shared_ext}$major'
10130  shlibpath_var=LD_LIBRARY_PATH
10131  shlibpath_overrides_runpath=yes
10132  ;;
10133
10134openbsd*)
10135  version_type=sunos
10136  sys_lib_dlsearch_path_spec="/usr/lib"
10137  need_lib_prefix=no
10138  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10139  case $host_os in
10140    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10141    *)                         need_version=no  ;;
10142  esac
10143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10144  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10145  shlibpath_var=LD_LIBRARY_PATH
10146  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10147    case $host_os in
10148      openbsd2.[89] | openbsd2.[89].*)
10149        shlibpath_overrides_runpath=no
10150        ;;
10151      *)
10152        shlibpath_overrides_runpath=yes
10153        ;;
10154      esac
10155  else
10156    shlibpath_overrides_runpath=yes
10157  fi
10158  ;;
10159
10160os2*)
10161  libname_spec='$name'
10162  shrext_cmds=".dll"
10163  need_lib_prefix=no
10164  library_names_spec='$libname${shared_ext} $libname.a'
10165  dynamic_linker='OS/2 ld.exe'
10166  shlibpath_var=LIBPATH
10167  ;;
10168
10169osf3* | osf4* | osf5*)
10170  version_type=osf
10171  need_lib_prefix=no
10172  need_version=no
10173  soname_spec='${libname}${release}${shared_ext}$major'
10174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175  shlibpath_var=LD_LIBRARY_PATH
10176  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10177  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10178  ;;
10179
10180solaris*)
10181  version_type=linux
10182  need_lib_prefix=no
10183  need_version=no
10184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185  soname_spec='${libname}${release}${shared_ext}$major'
10186  shlibpath_var=LD_LIBRARY_PATH
10187  shlibpath_overrides_runpath=yes
10188  hardcode_into_libs=yes
10189  # ldd complains unless libraries are executable
10190  postinstall_cmds='chmod +x $lib'
10191  ;;
10192
10193sunos4*)
10194  version_type=sunos
10195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10196  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10197  shlibpath_var=LD_LIBRARY_PATH
10198  shlibpath_overrides_runpath=yes
10199  if test "$with_gnu_ld" = yes; then
10200    need_lib_prefix=no
10201  fi
10202  need_version=yes
10203  ;;
10204
10205sysv4 | sysv4.3*)
10206  version_type=linux
10207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208  soname_spec='${libname}${release}${shared_ext}$major'
10209  shlibpath_var=LD_LIBRARY_PATH
10210  case $host_vendor in
10211    sni)
10212      shlibpath_overrides_runpath=no
10213      need_lib_prefix=no
10214      export_dynamic_flag_spec='${wl}-Blargedynsym'
10215      runpath_var=LD_RUN_PATH
10216      ;;
10217    siemens)
10218      need_lib_prefix=no
10219      ;;
10220    motorola)
10221      need_lib_prefix=no
10222      need_version=no
10223      shlibpath_overrides_runpath=no
10224      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10225      ;;
10226  esac
10227  ;;
10228
10229sysv4*MP*)
10230  if test -d /usr/nec ;then
10231    version_type=linux
10232    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10233    soname_spec='$libname${shared_ext}.$major'
10234    shlibpath_var=LD_LIBRARY_PATH
10235  fi
10236  ;;
10237
10238sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10239  version_type=freebsd-elf
10240  need_lib_prefix=no
10241  need_version=no
10242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10243  soname_spec='${libname}${release}${shared_ext}$major'
10244  shlibpath_var=LD_LIBRARY_PATH
10245  hardcode_into_libs=yes
10246  if test "$with_gnu_ld" = yes; then
10247    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10248    shlibpath_overrides_runpath=no
10249  else
10250    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10251    shlibpath_overrides_runpath=yes
10252    case $host_os in
10253      sco3.2v5*)
10254        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10255        ;;
10256    esac
10257  fi
10258  sys_lib_dlsearch_path_spec='/usr/lib'
10259  ;;
10260
10261uts4*)
10262  version_type=linux
10263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10264  soname_spec='${libname}${release}${shared_ext}$major'
10265  shlibpath_var=LD_LIBRARY_PATH
10266  ;;
10267
10268*)
10269  dynamic_linker=no
10270  ;;
10271esac
10272echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10273echo "${ECHO_T}$dynamic_linker" >&6
10274test "$dynamic_linker" = no && can_build_shared=no
10275
10276variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10277if test "$GCC" = yes; then
10278  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10279fi
10280
10281echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10282echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10283hardcode_action=
10284if test -n "$hardcode_libdir_flag_spec" || \
10285   test -n "$runpath_var" || \
10286   test "X$hardcode_automatic" = "Xyes" ; then
10287
10288  # We can hardcode non-existant directories.
10289  if test "$hardcode_direct" != no &&
10290     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10291     # have to relink, otherwise we might link with an installed library
10292     # when we should be linking with a yet-to-be-installed one
10293     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10294     test "$hardcode_minus_L" != no; then
10295    # Linking always hardcodes the temporary library directory.
10296    hardcode_action=relink
10297  else
10298    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10299    hardcode_action=immediate
10300  fi
10301else
10302  # We cannot hardcode anything, or else we can only hardcode existing
10303  # directories.
10304  hardcode_action=unsupported
10305fi
10306echo "$as_me:$LINENO: result: $hardcode_action" >&5
10307echo "${ECHO_T}$hardcode_action" >&6
10308
10309if test "$hardcode_action" = relink; then
10310  # Fast installation is not supported
10311  enable_fast_install=no
10312elif test "$shlibpath_overrides_runpath" = yes ||
10313     test "$enable_shared" = no; then
10314  # Fast installation is not necessary
10315  enable_fast_install=needless
10316fi
10317
10318striplib=
10319old_striplib=
10320echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10321echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10322if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10323  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10324  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10325  echo "$as_me:$LINENO: result: yes" >&5
10326echo "${ECHO_T}yes" >&6
10327else
10328# FIXME - insert some real tests, host_os isn't really good enough
10329  case $host_os in
10330   darwin*)
10331       if test -n "$STRIP" ; then
10332         striplib="$STRIP -x"
10333         echo "$as_me:$LINENO: result: yes" >&5
10334echo "${ECHO_T}yes" >&6
10335       else
10336  echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
10338fi
10339       ;;
10340   *)
10341  echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
10343    ;;
10344  esac
10345fi
10346
10347if test "x$enable_dlopen" != xyes; then
10348  enable_dlopen=unknown
10349  enable_dlopen_self=unknown
10350  enable_dlopen_self_static=unknown
10351else
10352  lt_cv_dlopen=no
10353  lt_cv_dlopen_libs=
10354
10355  case $host_os in
10356  beos*)
10357    lt_cv_dlopen="load_add_on"
10358    lt_cv_dlopen_libs=
10359    lt_cv_dlopen_self=yes
10360    ;;
10361
10362  mingw* | pw32*)
10363    lt_cv_dlopen="LoadLibrary"
10364    lt_cv_dlopen_libs=
10365   ;;
10366
10367  cygwin*)
10368    lt_cv_dlopen="dlopen"
10369    lt_cv_dlopen_libs=
10370   ;;
10371
10372  darwin*)
10373  # if libdl is installed we need to link against it
10374    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10375echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10376if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10377  echo $ECHO_N "(cached) $ECHO_C" >&6
10378else
10379  ac_check_lib_save_LIBS=$LIBS
10380LIBS="-ldl  $LIBS"
10381cat >conftest.$ac_ext <<_ACEOF
10382/* confdefs.h.  */
10383_ACEOF
10384cat confdefs.h >>conftest.$ac_ext
10385cat >>conftest.$ac_ext <<_ACEOF
10386/* end confdefs.h.  */
10387
10388/* Override any gcc2 internal prototype to avoid an error.  */
10389#ifdef __cplusplus
10390extern "C"
10391#endif
10392/* We use char because int might match the return type of a gcc2
10393   builtin and then its argument prototype would still apply.  */
10394char dlopen ();
10395int
10396main ()
10397{
10398dlopen ();
10399  ;
10400  return 0;
10401}
10402_ACEOF
10403rm -f conftest.$ac_objext conftest$ac_exeext
10404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405  (eval $ac_link) 2>conftest.er1
10406  ac_status=$?
10407  grep -v '^ *+' conftest.er1 >conftest.err
10408  rm -f conftest.er1
10409  cat conftest.err >&5
10410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411  (exit $ac_status); } &&
10412         { ac_try='test -z "$ac_c_werror_flag"
10413                         || test ! -s conftest.err'
10414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415  (eval $ac_try) 2>&5
10416  ac_status=$?
10417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418  (exit $ac_status); }; } &&
10419         { ac_try='test -s conftest$ac_exeext'
10420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421  (eval $ac_try) 2>&5
10422  ac_status=$?
10423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424  (exit $ac_status); }; }; then
10425  ac_cv_lib_dl_dlopen=yes
10426else
10427  echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430ac_cv_lib_dl_dlopen=no
10431fi
10432rm -f conftest.err conftest.$ac_objext \
10433      conftest$ac_exeext conftest.$ac_ext
10434LIBS=$ac_check_lib_save_LIBS
10435fi
10436echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10437echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10438if test $ac_cv_lib_dl_dlopen = yes; then
10439  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10440else
10441
10442    lt_cv_dlopen="dyld"
10443    lt_cv_dlopen_libs=
10444    lt_cv_dlopen_self=yes
10445
10446fi
10447
10448   ;;
10449
10450  *)
10451    echo "$as_me:$LINENO: checking for shl_load" >&5
10452echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10453if test "${ac_cv_func_shl_load+set}" = set; then
10454  echo $ECHO_N "(cached) $ECHO_C" >&6
10455else
10456  cat >conftest.$ac_ext <<_ACEOF
10457/* confdefs.h.  */
10458_ACEOF
10459cat confdefs.h >>conftest.$ac_ext
10460cat >>conftest.$ac_ext <<_ACEOF
10461/* end confdefs.h.  */
10462/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10463   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10464#define shl_load innocuous_shl_load
10465
10466/* System header to define __stub macros and hopefully few prototypes,
10467    which can conflict with char shl_load (); below.
10468    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10469    <limits.h> exists even on freestanding compilers.  */
10470
10471#ifdef __STDC__
10472# include <limits.h>
10473#else
10474# include <assert.h>
10475#endif
10476
10477#undef shl_load
10478
10479/* Override any gcc2 internal prototype to avoid an error.  */
10480#ifdef __cplusplus
10481extern "C"
10482{
10483#endif
10484/* We use char because int might match the return type of a gcc2
10485   builtin and then its argument prototype would still apply.  */
10486char shl_load ();
10487/* The GNU C library defines this for functions which it implements
10488    to always fail with ENOSYS.  Some functions are actually named
10489    something starting with __ and the normal name is an alias.  */
10490#if defined (__stub_shl_load) || defined (__stub___shl_load)
10491choke me
10492#else
10493char (*f) () = shl_load;
10494#endif
10495#ifdef __cplusplus
10496}
10497#endif
10498
10499int
10500main ()
10501{
10502return f != shl_load;
10503  ;
10504  return 0;
10505}
10506_ACEOF
10507rm -f conftest.$ac_objext conftest$ac_exeext
10508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10509  (eval $ac_link) 2>conftest.er1
10510  ac_status=$?
10511  grep -v '^ *+' conftest.er1 >conftest.err
10512  rm -f conftest.er1
10513  cat conftest.err >&5
10514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515  (exit $ac_status); } &&
10516         { ac_try='test -z "$ac_c_werror_flag"
10517                         || test ! -s conftest.err'
10518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519  (eval $ac_try) 2>&5
10520  ac_status=$?
10521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522  (exit $ac_status); }; } &&
10523         { ac_try='test -s conftest$ac_exeext'
10524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525  (eval $ac_try) 2>&5
10526  ac_status=$?
10527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528  (exit $ac_status); }; }; then
10529  ac_cv_func_shl_load=yes
10530else
10531  echo "$as_me: failed program was:" >&5
10532sed 's/^/| /' conftest.$ac_ext >&5
10533
10534ac_cv_func_shl_load=no
10535fi
10536rm -f conftest.err conftest.$ac_objext \
10537      conftest$ac_exeext conftest.$ac_ext
10538fi
10539echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10540echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10541if test $ac_cv_func_shl_load = yes; then
10542  lt_cv_dlopen="shl_load"
10543else
10544  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10545echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10546if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10547  echo $ECHO_N "(cached) $ECHO_C" >&6
10548else
10549  ac_check_lib_save_LIBS=$LIBS
10550LIBS="-ldld  $LIBS"
10551cat >conftest.$ac_ext <<_ACEOF
10552/* confdefs.h.  */
10553_ACEOF
10554cat confdefs.h >>conftest.$ac_ext
10555cat >>conftest.$ac_ext <<_ACEOF
10556/* end confdefs.h.  */
10557
10558/* Override any gcc2 internal prototype to avoid an error.  */
10559#ifdef __cplusplus
10560extern "C"
10561#endif
10562/* We use char because int might match the return type of a gcc2
10563   builtin and then its argument prototype would still apply.  */
10564char shl_load ();
10565int
10566main ()
10567{
10568shl_load ();
10569  ;
10570  return 0;
10571}
10572_ACEOF
10573rm -f conftest.$ac_objext conftest$ac_exeext
10574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575  (eval $ac_link) 2>conftest.er1
10576  ac_status=$?
10577  grep -v '^ *+' conftest.er1 >conftest.err
10578  rm -f conftest.er1
10579  cat conftest.err >&5
10580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581  (exit $ac_status); } &&
10582         { ac_try='test -z "$ac_c_werror_flag"
10583                         || test ! -s conftest.err'
10584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585  (eval $ac_try) 2>&5
10586  ac_status=$?
10587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588  (exit $ac_status); }; } &&
10589         { ac_try='test -s conftest$ac_exeext'
10590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591  (eval $ac_try) 2>&5
10592  ac_status=$?
10593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594  (exit $ac_status); }; }; then
10595  ac_cv_lib_dld_shl_load=yes
10596else
10597  echo "$as_me: failed program was:" >&5
10598sed 's/^/| /' conftest.$ac_ext >&5
10599
10600ac_cv_lib_dld_shl_load=no
10601fi
10602rm -f conftest.err conftest.$ac_objext \
10603      conftest$ac_exeext conftest.$ac_ext
10604LIBS=$ac_check_lib_save_LIBS
10605fi
10606echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10607echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10608if test $ac_cv_lib_dld_shl_load = yes; then
10609  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10610else
10611  echo "$as_me:$LINENO: checking for dlopen" >&5
10612echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10613if test "${ac_cv_func_dlopen+set}" = set; then
10614  echo $ECHO_N "(cached) $ECHO_C" >&6
10615else
10616  cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h.  */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h.  */
10622/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10623   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10624#define dlopen innocuous_dlopen
10625
10626/* System header to define __stub macros and hopefully few prototypes,
10627    which can conflict with char dlopen (); below.
10628    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10629    <limits.h> exists even on freestanding compilers.  */
10630
10631#ifdef __STDC__
10632# include <limits.h>
10633#else
10634# include <assert.h>
10635#endif
10636
10637#undef dlopen
10638
10639/* Override any gcc2 internal prototype to avoid an error.  */
10640#ifdef __cplusplus
10641extern "C"
10642{
10643#endif
10644/* We use char because int might match the return type of a gcc2
10645   builtin and then its argument prototype would still apply.  */
10646char dlopen ();
10647/* The GNU C library defines this for functions which it implements
10648    to always fail with ENOSYS.  Some functions are actually named
10649    something starting with __ and the normal name is an alias.  */
10650#if defined (__stub_dlopen) || defined (__stub___dlopen)
10651choke me
10652#else
10653char (*f) () = dlopen;
10654#endif
10655#ifdef __cplusplus
10656}
10657#endif
10658
10659int
10660main ()
10661{
10662return f != dlopen;
10663  ;
10664  return 0;
10665}
10666_ACEOF
10667rm -f conftest.$ac_objext conftest$ac_exeext
10668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669  (eval $ac_link) 2>conftest.er1
10670  ac_status=$?
10671  grep -v '^ *+' conftest.er1 >conftest.err
10672  rm -f conftest.er1
10673  cat conftest.err >&5
10674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675  (exit $ac_status); } &&
10676         { ac_try='test -z "$ac_c_werror_flag"
10677                         || test ! -s conftest.err'
10678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679  (eval $ac_try) 2>&5
10680  ac_status=$?
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); }; } &&
10683         { ac_try='test -s conftest$ac_exeext'
10684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685  (eval $ac_try) 2>&5
10686  ac_status=$?
10687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688  (exit $ac_status); }; }; then
10689  ac_cv_func_dlopen=yes
10690else
10691  echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
10694ac_cv_func_dlopen=no
10695fi
10696rm -f conftest.err conftest.$ac_objext \
10697      conftest$ac_exeext conftest.$ac_ext
10698fi
10699echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10700echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10701if test $ac_cv_func_dlopen = yes; then
10702  lt_cv_dlopen="dlopen"
10703else
10704  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10705echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10706if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10707  echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
10709  ac_check_lib_save_LIBS=$LIBS
10710LIBS="-ldl  $LIBS"
10711cat >conftest.$ac_ext <<_ACEOF
10712/* confdefs.h.  */
10713_ACEOF
10714cat confdefs.h >>conftest.$ac_ext
10715cat >>conftest.$ac_ext <<_ACEOF
10716/* end confdefs.h.  */
10717
10718/* Override any gcc2 internal prototype to avoid an error.  */
10719#ifdef __cplusplus
10720extern "C"
10721#endif
10722/* We use char because int might match the return type of a gcc2
10723   builtin and then its argument prototype would still apply.  */