source: trunk/Clp/configure @ 1693

Last change on this file since 1693 was 1693, checked in by stefan, 9 years ago

make WSMP recoginition and use similar to Ipopt's WSMP interface

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