Changeset 610


Ignore:
Timestamp:
May 14, 2007 8:46:38 PM (12 years ago)
Author:
lou
Message:

Externals to BuildTools?/trunk, Vol/trunk/Vol. Configure.ac to reuse libtool,
check for DyLP.

Location:
branches/devel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Externals

    r533 r610  
    11MSVisualStudio   https://projects.coin-or.org/svn/MSVisualStudio/branches/devel/ExternalsDirs/Cbc
    2 BuildTools    https://projects.coin-or.org/svn/BuildTools/stable/0.5
     2BuildTools    https://projects.coin-or.org/svn/BuildTools/trunk
    33ThirdParty/ASL https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/stable/1.0
    44ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.0
     
    1111Clp           https://projects.coin-or.org/svn/Clp/branches/devel/Clp
    1212Osi           https://projects.coin-or.org/svn/Osi/branches/devel/Osi
    13 Vol           https://projects.coin-or.org/svn/Vol/branches/devel/Vol
     13Vol           https://projects.coin-or.org/svn/Vol/trunk/Vol
  • branches/devel/Makefile.in

    r568 r610  
    5050PRE_UNINSTALL = :
    5151POST_UNINSTALL = :
     52build_triplet = @build@
     53host_triplet = @host@
    5254DIST_COMMON = README $(am__configure_deps) \
    5355        $(srcdir)/BuildTools/Makemain.inc $(srcdir)/Makefile.am \
     
    8991distcleancheck_listfiles = find . -type f -print
    9092ACLOCAL = @ACLOCAL@
     93ADD_CFLAGS = @ADD_CFLAGS@
     94ADD_CXXFLAGS = @ADD_CXXFLAGS@
     95ADD_FFLAGS = @ADD_FFLAGS@
     96AMDEP_FALSE = @AMDEP_FALSE@
     97AMDEP_TRUE = @AMDEP_TRUE@
    9198AMTAR = @AMTAR@
     99AR = @AR@
    92100AUTOCONF = @AUTOCONF@
    93101AUTOHEADER = @AUTOHEADER@
     
    96104AWK = @AWK@
    97105BUILDTOOLSDIR = @BUILDTOOLSDIR@
     106CC = @CC@
     107CCDEPMODE = @CCDEPMODE@
     108CDEFS = @CDEFS@
     109CFLAGS = @CFLAGS@
    98110COIN_SKIP_PROJECTS = @COIN_SKIP_PROJECTS@
     111CPP = @CPP@
     112CPPFLAGS = @CPPFLAGS@
     113CXX = @CXX@
     114CXXCPP = @CXXCPP@
     115CXXDEFS = @CXXDEFS@
     116CXXDEPMODE = @CXXDEPMODE@
     117CXXFLAGS = @CXXFLAGS@
    99118CYGPATH_W = @CYGPATH_W@
     119DBG_CFLAGS = @DBG_CFLAGS@
     120DBG_CXXFLAGS = @DBG_CXXFLAGS@
     121DBG_FFLAGS = @DBG_FFLAGS@
    100122DEFS = @DEFS@
     123DEPDIR = @DEPDIR@
     124ECHO = @ECHO@
    101125ECHO_C = @ECHO_C@
    102126ECHO_N = @ECHO_N@
    103127ECHO_T = @ECHO_T@
    104128EGREP = @EGREP@
     129EXEEXT = @EXEEXT@
     130F77 = @F77@
     131FFLAGS = @FFLAGS@
    105132HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    106133HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    109136INSTALL_SCRIPT = @INSTALL_SCRIPT@
    110137INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
     138LDFLAGS = @LDFLAGS@
    111139LIBEXT = @LIBEXT@
    112140LIBOBJS = @LIBOBJS@
    113141LIBS = @LIBS@
     142LIBTOOL = @LIBTOOL@
    114143LIBTOOLM4 = @LIBTOOLM4@
    115144LN_S = @LN_S@
    116145LTLIBOBJS = @LTLIBOBJS@
     146LT_LDFLAGS = @LT_LDFLAGS@
    117147MAINT = @MAINT@
    118148MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
    119149MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    120150MAKEINFO = @MAKEINFO@
     151MPICC = @MPICC@
     152MPICXX = @MPICXX@
     153MPIF77 = @MPIF77@
     154OBJEXT = @OBJEXT@
     155OPT_CFLAGS = @OPT_CFLAGS@
     156OPT_CXXFLAGS = @OPT_CXXFLAGS@
     157OPT_FFLAGS = @OPT_FFLAGS@
    121158PACKAGE = @PACKAGE@
    122159PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
     
    126163PACKAGE_VERSION = @PACKAGE_VERSION@
    127164PATH_SEPARATOR = @PATH_SEPARATOR@
     165RANLIB = @RANLIB@
     166RPATH_FLAGS = @RPATH_FLAGS@
    128167SET_MAKE = @SET_MAKE@
    129168SHELL = @SHELL@
     
    135174abs_lib_dir = @abs_lib_dir@
    136175abs_source_dir = @abs_source_dir@
     176ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
     177ac_ct_AR = @ac_ct_AR@
     178ac_ct_CC = @ac_ct_CC@
     179ac_ct_CXX = @ac_ct_CXX@
     180ac_ct_F77 = @ac_ct_F77@
     181ac_ct_RANLIB = @ac_ct_RANLIB@
    137182ac_ct_STRIP = @ac_ct_STRIP@
     183ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     184am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
     185am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     186am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
     187am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
     188am__include = @am__include@
    138189am__leading_dot = @am__leading_dot@
     190am__quote = @am__quote@
    139191am__tar = @am__tar@
    140192am__untar = @am__untar@
    141193bindir = @bindir@
     194build = @build@
    142195build_alias = @build_alias@
     196build_cpu = @build_cpu@
     197build_os = @build_os@
     198build_vendor = @build_vendor@
    143199datadir = @datadir@
    144200exec_prefix = @exec_prefix@
     
    146202have_automake = @have_automake@
    147203have_svn = @have_svn@
     204host = @host@
    148205host_alias = @host_alias@
     206host_cpu = @host_cpu@
     207host_os = @host_os@
     208host_vendor = @host_vendor@
    149209includedir = @includedir@
    150210infodir = @infodir@
     
    216276$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    217277        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     278
     279mostlyclean-libtool:
     280        -rm -f *.lo
     281
     282clean-libtool:
     283        -rm -rf .libs _libs
     284
     285distclean-libtool:
     286        -rm -f libtool
    218287uninstall-info-am:
    219288
     
    524593clean: clean-recursive
    525594
    526 clean-am: clean-generic mostlyclean-am
     595clean-am: clean-generic clean-libtool mostlyclean-am
    527596
    528597distclean: distclean-recursive
    529598        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    530599        -rm -f Makefile
    531 distclean-am: clean-am distclean-generic distclean-tags
     600distclean-am: clean-am distclean-generic distclean-libtool \
     601        distclean-tags
    532602
    533603dvi: dvi-recursive
     
    559629mostlyclean: mostlyclean-recursive
    560630
    561 mostlyclean-am: mostlyclean-generic
     631mostlyclean-am: mostlyclean-generic mostlyclean-libtool
    562632
    563633pdf: pdf-recursive
     
    574644
    575645.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
    576         check-am clean clean-generic clean-recursive ctags \
    577         ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
    578         dist-tarZ dist-zip distcheck distclean distclean-generic \
    579         distclean-recursive distclean-tags distcleancheck distdir \
    580         distuninstallcheck dvi dvi-am html html-am info info-am \
    581         install install-am install-data install-data-am install-exec \
    582         install-exec-am install-info install-info-am install-man \
    583         install-strip installcheck installcheck-am installdirs \
    584         installdirs-am maintainer-clean maintainer-clean-generic \
     646        check-am clean clean-generic clean-libtool clean-recursive \
     647        ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
     648        dist-shar dist-tarZ dist-zip distcheck distclean \
     649        distclean-generic distclean-libtool distclean-recursive \
     650        distclean-tags distcleancheck distdir distuninstallcheck dvi \
     651        dvi-am html html-am info info-am install install-am \
     652        install-data install-data-am install-exec install-exec-am \
     653        install-info install-info-am install-man install-strip \
     654        installcheck installcheck-am installdirs installdirs-am \
     655        maintainer-clean maintainer-clean-generic \
    585656        maintainer-clean-recursive mostlyclean mostlyclean-generic \
    586         mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
    587         uninstall uninstall-am uninstall-info-am
     657        mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
     658        tags tags-recursive uninstall uninstall-am uninstall-info-am
    588659
    589660
  • branches/devel/configure

    r568 r610  
    251251
    252252
     253
     254# Check that we are running under the correct shell.
     255SHELL=${CONFIG_SHELL-/bin/sh}
     256
     257case X$ECHO in
     258X*--fallback-echo)
     259  # Remove one level of quotation (which was required for Make).
     260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
     261  ;;
     262esac
     263
     264echo=${ECHO-echo}
     265if test "X$1" = X--no-reexec; then
     266  # Discard the --no-reexec flag, and continue.
     267  shift
     268elif test "X$1" = X--fallback-echo; then
     269  # Avoid inline document here, it may be left over
     270  :
     271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
     272  # Yippee, $echo works!
     273  :
     274else
     275  # Restart under the correct shell.
     276  exec $SHELL "$0" --no-reexec ${1+"$@"}
     277fi
     278
     279if test "X$1" = X--fallback-echo; then
     280  # used as fallback echo
     281  shift
     282  cat <<EOF
     283$*
     284EOF
     285  exit 0
     286fi
     287
     288# The HP-UX ksh and POSIX shell print the target directory to stdout
     289# if CDPATH is set.
     290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     291
     292if test -z "$ECHO"; then
     293if test "X${echo_test_string+set}" != Xset; then
     294# find a string as large as possible, as long as the shell can cope with it
     295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
     296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
     297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
     298       echo_test_string=`eval $cmd` &&
     299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
     300    then
     301      break
     302    fi
     303  done
     304fi
     305
     306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
     307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
     308   test "X$echo_testing_string" = "X$echo_test_string"; then
     309  :
     310else
     311  # The Solaris, AIX, and Digital Unix default echo programs unquote
     312  # backslashes.  This makes it impossible to quote backslashes using
     313  #   echo "$something" | sed 's/\\/\\\\/g'
     314  #
     315  # So, first we look for a working echo in the user's PATH.
     316
     317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     318  for dir in $PATH /usr/ucb; do
     319    IFS="$lt_save_ifs"
     320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
     321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
     322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
     323       test "X$echo_testing_string" = "X$echo_test_string"; then
     324      echo="$dir/echo"
     325      break
     326    fi
     327  done
     328  IFS="$lt_save_ifs"
     329
     330  if test "X$echo" = Xecho; then
     331    # We didn't find a better echo, so look for alternatives.
     332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
     333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
     334       test "X$echo_testing_string" = "X$echo_test_string"; then
     335      # This shell has a builtin print -r that does the trick.
     336      echo='print -r'
     337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
     338         test "X$CONFIG_SHELL" != X/bin/ksh; then
     339      # If we have ksh, try running configure again with it.
     340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     341      export ORIGINAL_CONFIG_SHELL
     342      CONFIG_SHELL=/bin/ksh
     343      export CONFIG_SHELL
     344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
     345    else
     346      # Try using printf.
     347      echo='printf %s\n'
     348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
     349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
     350         test "X$echo_testing_string" = "X$echo_test_string"; then
     351        # Cool, printf works
     352        :
     353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     354           test "X$echo_testing_string" = 'X\t' &&
     355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     356           test "X$echo_testing_string" = "X$echo_test_string"; then
     357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
     358        export CONFIG_SHELL
     359        SHELL="$CONFIG_SHELL"
     360        export SHELL
     361        echo="$CONFIG_SHELL $0 --fallback-echo"
     362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     363           test "X$echo_testing_string" = 'X\t' &&
     364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     365           test "X$echo_testing_string" = "X$echo_test_string"; then
     366        echo="$CONFIG_SHELL $0 --fallback-echo"
     367      else
     368        # maybe with a smaller string...
     369        prev=:
     370
     371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
     372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
     373          then
     374            break
     375          fi
     376          prev="$cmd"
     377        done
     378
     379        if test "$prev" != 'sed 50q "$0"'; then
     380          echo_test_string=`eval $prev`
     381          export echo_test_string
     382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
     383        else
     384          # Oops.  We lost completely, so just stick with echo.
     385          echo=echo
     386        fi
     387      fi
     388    fi
     389  fi
     390fi
     391fi
     392
     393# Copy echo and quote the copy suitably for passing to libtool from
     394# the Makefile, instead of quoting the original, which is used later.
     395ECHO=$echo
     396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
     397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
     398fi
     399
     400
     401
     402
     403tagnames=${tagnames+${tagnames},}CXX
     404
     405tagnames=${tagnames+${tagnames},}F77
     406
    253407# Name of the host.
    254408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     
    283437ac_unique_file="configure.ac"
    284438ac_default_prefix=`pwd`
     439# Factoring default headers for most tests.
     440ac_includes_default="\
     441#include <stdio.h>
     442#if HAVE_SYS_TYPES_H
     443# include <sys/types.h>
     444#endif
     445#if HAVE_SYS_STAT_H
     446# include <sys/stat.h>
     447#endif
     448#if STDC_HEADERS
     449# include <stdlib.h>
     450# include <stddef.h>
     451#else
     452# if HAVE_STDLIB_H
     453#  include <stdlib.h>
     454# endif
     455#endif
     456#if HAVE_STRING_H
     457# if !STDC_HEADERS && HAVE_MEMORY_H
     458#  include <memory.h>
     459# endif
     460# include <string.h>
     461#endif
     462#if HAVE_STRINGS_H
     463# include <strings.h>
     464#endif
     465#if HAVE_INTTYPES_H
     466# include <inttypes.h>
     467#else
     468# if HAVE_STDINT_H
     469#  include <stdint.h>
     470# endif
     471#endif
     472#if HAVE_UNISTD_H
     473# include <unistd.h>
     474#endif"
     475
    285476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
    286477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
     
    291482ac_subdirs_all="$ac_subdirs_all Data/miplib3"
    292483ac_subdirs_all="$ac_subdirs_all Clp"
     484ac_subdirs_all="$ac_subdirs_all DyLP"
    293485ac_subdirs_all="$ac_subdirs_all Vol"
    294486ac_subdirs_all="$ac_subdirs_all Osi"
    295487ac_subdirs_all="$ac_subdirs_all Cgl"
    296488ac_subdirs_all="$ac_subdirs_all Cbc"
    297 ac_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 EGREP 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 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 subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS LN_S'
     489ac_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 CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP 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 LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    298490ac_subst_files=''
    299491
     
    736928ac_cv_env_target_alias_set=${target_alias+set}
    737929ac_cv_env_target_alias_value=$target_alias
     930ac_env_CDEFS_set=${CDEFS+set}
     931ac_env_CDEFS_value=$CDEFS
     932ac_cv_env_CDEFS_set=${CDEFS+set}
     933ac_cv_env_CDEFS_value=$CDEFS
     934ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     935ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
     936ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     937ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
     938ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     939ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
     940ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     941ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
     942ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     943ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
     944ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     945ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
     946ac_env_CC_set=${CC+set}
     947ac_env_CC_value=$CC
     948ac_cv_env_CC_set=${CC+set}
     949ac_cv_env_CC_value=$CC
     950ac_env_CFLAGS_set=${CFLAGS+set}
     951ac_env_CFLAGS_value=$CFLAGS
     952ac_cv_env_CFLAGS_set=${CFLAGS+set}
     953ac_cv_env_CFLAGS_value=$CFLAGS
     954ac_env_LDFLAGS_set=${LDFLAGS+set}
     955ac_env_LDFLAGS_value=$LDFLAGS
     956ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     957ac_cv_env_LDFLAGS_value=$LDFLAGS
     958ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     959ac_env_CPPFLAGS_value=$CPPFLAGS
     960ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     961ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     962ac_env_MPICC_set=${MPICC+set}
     963ac_env_MPICC_value=$MPICC
     964ac_cv_env_MPICC_set=${MPICC+set}
     965ac_cv_env_MPICC_value=$MPICC
     966ac_env_CXXDEFS_set=${CXXDEFS+set}
     967ac_env_CXXDEFS_value=$CXXDEFS
     968ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
     969ac_cv_env_CXXDEFS_value=$CXXDEFS
     970ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
     971ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
     972ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
     973ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
     974ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
     975ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
     976ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
     977ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
     978ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
     979ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
     980ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
     981ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
     982ac_env_CXX_set=${CXX+set}
     983ac_env_CXX_value=$CXX
     984ac_cv_env_CXX_set=${CXX+set}
     985ac_cv_env_CXX_value=$CXX
     986ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     987ac_env_CXXFLAGS_value=$CXXFLAGS
     988ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     989ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     990ac_env_MPICXX_set=${MPICXX+set}
     991ac_env_MPICXX_value=$MPICXX
     992ac_cv_env_MPICXX_set=${MPICXX+set}
     993ac_cv_env_MPICXX_value=$MPICXX
     994ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
     995ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
     996ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
     997ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
     998ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
     999ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
     1000ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
     1001ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
     1002ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
     1003ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
     1004ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
     1005ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
     1006ac_env_F77_set=${F77+set}
     1007ac_env_F77_value=$F77
     1008ac_cv_env_F77_set=${F77+set}
     1009ac_cv_env_F77_value=$F77
     1010ac_env_FFLAGS_set=${FFLAGS+set}
     1011ac_env_FFLAGS_value=$FFLAGS
     1012ac_cv_env_FFLAGS_set=${FFLAGS+set}
     1013ac_cv_env_FFLAGS_value=$FFLAGS
     1014ac_env_MPIF77_set=${MPIF77+set}
     1015ac_env_MPIF77_value=$MPIF77
     1016ac_cv_env_MPIF77_set=${MPIF77+set}
     1017ac_cv_env_MPIF77_value=$MPIF77
     1018ac_env_CPP_set=${CPP+set}
     1019ac_env_CPP_value=$CPP
     1020ac_cv_env_CPP_set=${CPP+set}
     1021ac_cv_env_CPP_value=$CPP
     1022ac_env_CXXCPP_set=${CXXCPP+set}
     1023ac_env_CXXCPP_value=$CXXCPP
     1024ac_cv_env_CXXCPP_set=${CXXCPP+set}
     1025ac_cv_env_CXXCPP_value=$CXXCPP
    7381026ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
    7391027ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
     
    8051093  --program-suffix=SUFFIX            append SUFFIX to installed program names
    8061094  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     1095
     1096System types:
     1097  --build=BUILD     configure for building on BUILD [guessed]
     1098  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    8071099_ACEOF
    8081100fi
     
    8171109  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    8181110  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     1111  --enable-debug          compile all projects with debug options tests
     1112  --enable-doscompile     Under Cygwin, compile so that executables run under
     1113                          DOS. Set to mingw to use gcc/g++/ld with
     1114                          -mno-cygwin. Set to msvc to use cl/link. Default
     1115                          when mentioned: mingw. Default when not mentioned:
     1116                          disabled.
     1117  --enable-static[=PKGS]
     1118                          build static libraries [default=no]
     1119  --disable-dependency-tracking  speeds up one-time build
     1120  --enable-dependency-tracking   do not reject slow dependency extractors
    8191121  --enable-maintainer-mode  enable make rules and dependencies not useful
    8201122                          (and sometimes confusing) to the casual installer
     1123  --enable-shared[=PKGS]
     1124                          build shared libraries [default=yes]
     1125  --enable-fast-install[=PKGS]
     1126                          optimize for fast installation [default=yes]
     1127  --disable-libtool-lock  avoid locking (might break parallel builds)
     1128
     1129Optional Packages:
     1130  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     1131  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1132  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
     1133  --with-pic              try to use only PIC/non-PIC objects [default=use
     1134                          both]
     1135  --with-tags[=TAGS]
     1136                          include additional configurations [automatic]
    8211137
    8221138Some influential environment variables:
     1139  CDEFS       Additional -D flags to be used when compiling C code.
     1140  ADD_CFLAGS  Additional C compiler options
     1141  DBG_CFLAGS  Debug C compiler options
     1142  OPT_CFLAGS  Optimize C compiler options
     1143  CC          C compiler command
     1144  CFLAGS      C compiler flags
     1145  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     1146              nonstandard directory <lib dir>
     1147  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     1148              headers in a nonstandard directory <include dir>
     1149  MPICC       C MPI Compiler
     1150  CXXDEFS     Additional -D flags to be used when compiling C++ code.
     1151  ADD_CXXFLAGS
     1152              Additional C++ compiler options
     1153  DBG_CXXFLAGS
     1154              Debug C++ compiler options
     1155  OPT_CXXFLAGS
     1156              Optimize C++ compiler options
     1157  CXX         C++ compiler command
     1158  CXXFLAGS    C++ compiler flags
     1159  MPICXX      C++ MPI Compiler
     1160  ADD_FFLAGS  Additional Fortran compiler options
     1161  DBG_FFLAGS  Debug Fortran compiler options
     1162  OPT_FFLAGS  Optimize Fortran compiler options
     1163  F77         Fortran 77 compiler command
     1164  FFLAGS      Fortran 77 compiler flags
     1165  MPIF77      Fortran MPI Compiler
     1166  CPP         C preprocessor
     1167  CXXCPP      C++ preprocessor
    8231168  COIN_SKIP_PROJECTS
    8241169              Set to the subdirectories of projects that should be skipped in
     
    12961641
    12971642#############################################################################
    1298    We only need automake to generate Makefiles for the distribution      #
     1643Do the tests necessary to configure compilers and initialise autotools   #
    12991644#############################################################################
    13001645
    1301 # Initialize automake
    1302 echo "$as_me:$LINENO: checking for egrep" >&5
    1303 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    1304 if test "${ac_cv_prog_egrep+set}" = set; then
    1305   echo $ECHO_N "(cached) $ECHO_C" >&6
    1306 else
    1307   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    1308     then ac_cv_prog_egrep='grep -E'
    1309     else ac_cv_prog_egrep='egrep'
    1310     fi
    1311 fi
    1312 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    1313 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    1314  EGREP=$ac_cv_prog_egrep
    1315 
    1316 
    1317 am__api_version="1.9"
    13181646ac_aux_dir=
    13191647for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    13411669ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    13421670
     1671# Make sure we can run config.sub.
     1672$ac_config_sub sun4 >/dev/null 2>&1 ||
     1673  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     1674echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     1675   { (exit 1); exit 1; }; }
     1676
     1677echo "$as_me:$LINENO: checking build system type" >&5
     1678echo $ECHO_N "checking build system type... $ECHO_C" >&6
     1679if test "${ac_cv_build+set}" = set; then
     1680  echo $ECHO_N "(cached) $ECHO_C" >&6
     1681else
     1682  ac_cv_build_alias=$build_alias
     1683test -z "$ac_cv_build_alias" &&
     1684  ac_cv_build_alias=`$ac_config_guess`
     1685test -z "$ac_cv_build_alias" &&
     1686  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     1687echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     1688   { (exit 1); exit 1; }; }
     1689ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     1690  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     1691echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     1692   { (exit 1); exit 1; }; }
     1693
     1694fi
     1695echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     1696echo "${ECHO_T}$ac_cv_build" >&6
     1697build=$ac_cv_build
     1698build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1699build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1700build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1701
     1702
     1703
     1704# Check if user wants to produce debugging code
     1705
     1706echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
     1707echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
     1708
     1709# Check whether --enable-debug or --disable-debug was given.
     1710if test "${enable_debug+set}" = set; then
     1711  enableval="$enable_debug"
     1712  case "${enableval}" in
     1713   yes) coin_debug_compile=true
     1714        enable_shared=no
     1715        ;;
     1716   no)  coin_debug_compile=false
     1717        ;;
     1718   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
     1719echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
     1720   { (exit 1); exit 1; }; }
     1721        ;;
     1722esac
     1723else
     1724  coin_debug_compile=false
     1725fi;
     1726
     1727 # m4_ifvaln([],
     1728
     1729if test $coin_debug_compile = true; then
     1730  echo "$as_me:$LINENO: result: yes" >&5
     1731echo "${ECHO_T}yes" >&6
     1732else
     1733  echo "$as_me:$LINENO: result: no" >&5
     1734echo "${ECHO_T}no" >&6
     1735fi
     1736
     1737 # m4_ifvaln([],
     1738
     1739
     1740
     1741# Get the name of the C compiler and appropriate compiler options
     1742case $build in
     1743  *-mingw*)
     1744    if test "${LD+set}" = set; then :; else
     1745      LD=link
     1746    fi
     1747    ;;
     1748 esac
     1749 case $enable_doscompile in
     1750   msvc)
     1751     if test "x${LD+set}" = xset; then :; else
     1752       LD=link
     1753     fi
     1754     ;;
     1755 esac
     1756
     1757
     1758 # Check whether --enable-doscompile or --disable-doscompile was given.
     1759if test "${enable_doscompile+set}" = set; then
     1760  enableval="$enable_doscompile"
     1761  if test "$enable_doscompile" != no; then
     1762     case $build in
     1763       *-cygwin*) ;;
     1764       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
     1765echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
     1766   { (exit 1); exit 1; }; } ;;
     1767     esac
     1768   fi
     1769else
     1770  enable_doscompile=no
     1771fi;
     1772 case "$enable_doscompile" in
     1773   msvc|mingw|no) ;;
     1774   yes) enable_doscompile=mingw ;;
     1775   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
     1776                    Try configure --help=recursive." >&5
     1777echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
     1778                    Try configure --help=recursive." >&2;}
     1779   { (exit 1); exit 1; }; }
     1780      ;;
     1781  esac
     1782  if test "$enable_doscompile" != no ; then
     1783    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
     1784echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
     1785  fi
     1786
     1787
     1788
     1789
     1790ac_ext=c
     1791ac_cpp='$CPP $CPPFLAGS'
     1792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1794ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1795
     1796
     1797# For consistency, we set the C compiler to the same value of the C++
     1798# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
     1799if test x"$CXX" != x; then
     1800  case "$CXX" in
     1801    cl* | */cl* | CL* | */CL*)
     1802      if test x"$CC" = x; then
     1803        CC="$CXX"
     1804        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
     1805echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
     1806      fi
     1807      ;;
     1808  esac
     1809fi
     1810
     1811
     1812
     1813
     1814
     1815
     1816coin_has_cc=yes
     1817
     1818save_cflags="$CFLAGS"
     1819# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
     1820# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
     1821# is likely to be a non-functional shell. But many installations will have
     1822# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
     1823case $build in
     1824  *-cygwin* | *-mingw*)
     1825             if test "$enable_doscompile" = msvc ; then
     1826               comps="cl"
     1827             else
     1828               comps="gcc cl"
     1829             fi ;;
     1830  sparc-sun-solaris*)
     1831             comps="cc xlc gcc pgcc icc" ;;
     1832  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
     1833  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     1834esac
     1835
     1836# We delete the cached value, since the test might not have been
     1837# performed with our choice of compilers earlier
     1838$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     1839# AC_MSG_NOTICE([C compiler candidates: $comps])
     1840ac_ext=c
     1841ac_cpp='$CPP $CPPFLAGS'
     1842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1844ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1845if test -n "$ac_tool_prefix"; then
     1846  for ac_prog in $comps
     1847  do
     1848    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1850echo "$as_me:$LINENO: checking for $ac_word" >&5
     1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1852if test "${ac_cv_prog_CC+set}" = set; then
     1853  echo $ECHO_N "(cached) $ECHO_C" >&6
     1854else
     1855  if test -n "$CC"; then
     1856  ac_cv_prog_CC="$CC" # Let the user override the test.
     1857else
     1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1859for as_dir in $PATH
     1860do
     1861  IFS=$as_save_IFS
     1862  test -z "$as_dir" && as_dir=.
     1863  for ac_exec_ext in '' $ac_executable_extensions; do
     1864  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1865    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1867    break 2
     1868  fi
     1869done
     1870done
     1871
     1872fi
     1873fi
     1874CC=$ac_cv_prog_CC
     1875if test -n "$CC"; then
     1876  echo "$as_me:$LINENO: result: $CC" >&5
     1877echo "${ECHO_T}$CC" >&6
     1878else
     1879  echo "$as_me:$LINENO: result: no" >&5
     1880echo "${ECHO_T}no" >&6
     1881fi
     1882
     1883    test -n "$CC" && break
     1884  done
     1885fi
     1886if test -z "$CC"; then
     1887  ac_ct_CC=$CC
     1888  for ac_prog in $comps
     1889do
     1890  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1891set dummy $ac_prog; ac_word=$2
     1892echo "$as_me:$LINENO: checking for $ac_word" >&5
     1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1894if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1895  echo $ECHO_N "(cached) $ECHO_C" >&6
     1896else
     1897  if test -n "$ac_ct_CC"; then
     1898  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1899else
     1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1901for as_dir in $PATH
     1902do
     1903  IFS=$as_save_IFS
     1904  test -z "$as_dir" && as_dir=.
     1905  for ac_exec_ext in '' $ac_executable_extensions; do
     1906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1907    ac_cv_prog_ac_ct_CC="$ac_prog"
     1908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1909    break 2
     1910  fi
     1911done
     1912done
     1913
     1914fi
     1915fi
     1916ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1917if test -n "$ac_ct_CC"; then
     1918  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1919echo "${ECHO_T}$ac_ct_CC" >&6
     1920else
     1921  echo "$as_me:$LINENO: result: no" >&5
     1922echo "${ECHO_T}no" >&6
     1923fi
     1924
     1925  test -n "$ac_ct_CC" && break
     1926done
     1927
     1928  CC=$ac_ct_CC
     1929fi
     1930
     1931
     1932test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1933See \`config.log' for more details." >&5
     1934echo "$as_me: error: no acceptable C compiler found in \$PATH
     1935See \`config.log' for more details." >&2;}
     1936   { (exit 1); exit 1; }; }
     1937
     1938# Provide some information about the compiler.
     1939echo "$as_me:$LINENO:" \
     1940     "checking for C compiler version" >&5
     1941ac_compiler=`set X $ac_compile; echo $2`
     1942{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1943  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1944  ac_status=$?
     1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1946  (exit $ac_status); }
     1947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1948  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1949  ac_status=$?
     1950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1951  (exit $ac_status); }
     1952{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1953  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1954  ac_status=$?
     1955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1956  (exit $ac_status); }
     1957
     1958cat >conftest.$ac_ext <<_ACEOF
     1959/* confdefs.h.  */
     1960_ACEOF
     1961cat confdefs.h >>conftest.$ac_ext
     1962cat >>conftest.$ac_ext <<_ACEOF
     1963/* end confdefs.h.  */
     1964
     1965int
     1966main ()
     1967{
     1968
     1969  ;
     1970  return 0;
     1971}
     1972_ACEOF
     1973ac_clean_files_save=$ac_clean_files
     1974ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1975# Try to create an executable without -o first, disregard a.out.
     1976# It will help us diagnose broken compilers, and finding out an intuition
     1977# of exeext.
     1978echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1979echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1980ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1981if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1982  (eval $ac_link_default) 2>&5
     1983  ac_status=$?
     1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1985  (exit $ac_status); }; then
     1986  # Find the output, starting from the most likely.  This scheme is
     1987# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1988# resort.
     1989
     1990# Be careful to initialize this variable, since it used to be cached.
     1991# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1992ac_cv_exeext=
     1993# b.out is created by i960 compilers.
     1994for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1995do
     1996  test -f "$ac_file" || continue
     1997  case $ac_file in
     1998    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1999        ;;
     2000    conftest.$ac_ext )
     2001        # This is the source file.
     2002        ;;
     2003    [ab].out )
     2004        # We found the default executable, but exeext='' is most
     2005        # certainly right.
     2006        break;;
     2007    *.* )
     2008        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2009        # FIXME: I believe we export ac_cv_exeext for Libtool,
     2010        # but it would be cool to find out if it's true.  Does anybody
     2011        # maintain Libtool? --akim.
     2012        export ac_cv_exeext
     2013        break;;
     2014    * )
     2015        break;;
     2016  esac
     2017done
     2018else
     2019  echo "$as_me: failed program was:" >&5
     2020sed 's/^/| /' conftest.$ac_ext >&5
     2021
     2022{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
     2023See \`config.log' for more details." >&5
     2024echo "$as_me: error: C compiler cannot create executables
     2025See \`config.log' for more details." >&2;}
     2026   { (exit 77); exit 77; }; }
     2027fi
     2028
     2029ac_exeext=$ac_cv_exeext
     2030echo "$as_me:$LINENO: result: $ac_file" >&5
     2031echo "${ECHO_T}$ac_file" >&6
     2032
     2033# Check the compiler produces executables we can run.  If not, either
     2034# the compiler is broken, or we cross compile.
     2035echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2036echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     2037# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     2038# If not cross compiling, check that we can run a simple program.
     2039if test "$cross_compiling" != yes; then
     2040  if { ac_try='./$ac_file'
     2041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2042  (eval $ac_try) 2>&5
     2043  ac_status=$?
     2044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2045  (exit $ac_status); }; }; then
     2046    cross_compiling=no
     2047  else
     2048    if test "$cross_compiling" = maybe; then
     2049        cross_compiling=yes
     2050    else
     2051        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     2052If you meant to cross compile, use \`--host'.
     2053See \`config.log' for more details." >&5
     2054echo "$as_me: error: cannot run C compiled programs.
     2055If you meant to cross compile, use \`--host'.
     2056See \`config.log' for more details." >&2;}
     2057   { (exit 1); exit 1; }; }
     2058    fi
     2059  fi
     2060fi
     2061echo "$as_me:$LINENO: result: yes" >&5
     2062echo "${ECHO_T}yes" >&6
     2063
     2064rm -f a.out a.exe conftest$ac_cv_exeext b.out
     2065ac_clean_files=$ac_clean_files_save
     2066# Check the compiler produces executables we can run.  If not, either
     2067# the compiler is broken, or we cross compile.
     2068echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2069echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     2070echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2071echo "${ECHO_T}$cross_compiling" >&6
     2072
     2073echo "$as_me:$LINENO: checking for suffix of executables" >&5
     2074echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     2075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2076  (eval $ac_link) 2>&5
     2077  ac_status=$?
     2078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2079  (exit $ac_status); }; then
     2080  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     2081# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     2082# work properly (i.e., refer to `conftest.exe'), while it won't with
     2083# `rm'.
     2084for ac_file in conftest.exe conftest conftest.*; do
     2085  test -f "$ac_file" || continue
     2086  case $ac_file in
     2087    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2088    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2089          export ac_cv_exeext
     2090          break;;
     2091    * ) break;;
     2092  esac
     2093done
     2094else
     2095  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     2096See \`config.log' for more details." >&5
     2097echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     2098See \`config.log' for more details." >&2;}
     2099   { (exit 1); exit 1; }; }
     2100fi
     2101
     2102rm -f conftest$ac_cv_exeext
     2103echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     2104echo "${ECHO_T}$ac_cv_exeext" >&6
     2105
     2106rm -f conftest.$ac_ext
     2107EXEEXT=$ac_cv_exeext
     2108ac_exeext=$EXEEXT
     2109echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2110echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     2111if test "${ac_cv_objext+set}" = set; then
     2112  echo $ECHO_N "(cached) $ECHO_C" >&6
     2113else
     2114  cat >conftest.$ac_ext <<_ACEOF
     2115/* confdefs.h.  */
     2116_ACEOF
     2117cat confdefs.h >>conftest.$ac_ext
     2118cat >>conftest.$ac_ext <<_ACEOF
     2119/* end confdefs.h.  */
     2120
     2121int
     2122main ()
     2123{
     2124
     2125  ;
     2126  return 0;
     2127}
     2128_ACEOF
     2129rm -f conftest.o conftest.obj
     2130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2131  (eval $ac_compile) 2>&5
     2132  ac_status=$?
     2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2134  (exit $ac_status); }; then
     2135  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     2136  case $ac_file in
     2137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     2138    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     2139       break;;
     2140  esac
     2141done
     2142else
     2143  echo "$as_me: failed program was:" >&5
     2144sed 's/^/| /' conftest.$ac_ext >&5
     2145
     2146{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     2147See \`config.log' for more details." >&5
     2148echo "$as_me: error: cannot compute suffix of object files: cannot compile
     2149See \`config.log' for more details." >&2;}
     2150   { (exit 1); exit 1; }; }
     2151fi
     2152
     2153rm -f conftest.$ac_cv_objext conftest.$ac_ext
     2154fi
     2155echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     2156echo "${ECHO_T}$ac_cv_objext" >&6
     2157OBJEXT=$ac_cv_objext
     2158ac_objext=$OBJEXT
     2159echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2160echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     2161if test "${ac_cv_c_compiler_gnu+set}" = set; then
     2162  echo $ECHO_N "(cached) $ECHO_C" >&6
     2163else
     2164  cat >conftest.$ac_ext <<_ACEOF
     2165/* confdefs.h.  */
     2166_ACEOF
     2167cat confdefs.h >>conftest.$ac_ext
     2168cat >>conftest.$ac_ext <<_ACEOF
     2169/* end confdefs.h.  */
     2170
     2171int
     2172main ()
     2173{
     2174#ifndef __GNUC__
     2175       choke me
     2176#endif
     2177
     2178  ;
     2179  return 0;
     2180}
     2181_ACEOF
     2182rm -f conftest.$ac_objext
     2183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2184  (eval $ac_compile) 2>conftest.er1
     2185  ac_status=$?
     2186  grep -v '^ *+' conftest.er1 >conftest.err
     2187  rm -f conftest.er1
     2188  cat conftest.err >&5
     2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2190  (exit $ac_status); } &&
     2191         { ac_try='test -z "$ac_c_werror_flag"
     2192                         || test ! -s conftest.err'
     2193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2194  (eval $ac_try) 2>&5
     2195  ac_status=$?
     2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2197  (exit $ac_status); }; } &&
     2198         { ac_try='test -s conftest.$ac_objext'
     2199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2200  (eval $ac_try) 2>&5
     2201  ac_status=$?
     2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2203  (exit $ac_status); }; }; then
     2204  ac_compiler_gnu=yes
     2205else
     2206  echo "$as_me: failed program was:" >&5
     2207sed 's/^/| /' conftest.$ac_ext >&5
     2208
     2209ac_compiler_gnu=no
     2210fi
     2211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2212ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2213
     2214fi
     2215echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2216echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2217GCC=`test $ac_compiler_gnu = yes && echo yes`
     2218ac_test_CFLAGS=${CFLAGS+set}
     2219ac_save_CFLAGS=$CFLAGS
     2220CFLAGS="-g"
     2221echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2222echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2223if test "${ac_cv_prog_cc_g+set}" = set; then
     2224  echo $ECHO_N "(cached) $ECHO_C" >&6
     2225else
     2226  cat >conftest.$ac_ext <<_ACEOF
     2227/* confdefs.h.  */
     2228_ACEOF
     2229cat confdefs.h >>conftest.$ac_ext
     2230cat >>conftest.$ac_ext <<_ACEOF
     2231/* end confdefs.h.  */
     2232
     2233int
     2234main ()
     2235{
     2236
     2237  ;
     2238  return 0;
     2239}
     2240_ACEOF
     2241rm -f conftest.$ac_objext
     2242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2243  (eval $ac_compile) 2>conftest.er1
     2244  ac_status=$?
     2245  grep -v '^ *+' conftest.er1 >conftest.err
     2246  rm -f conftest.er1
     2247  cat conftest.err >&5
     2248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2249  (exit $ac_status); } &&
     2250         { ac_try='test -z "$ac_c_werror_flag"
     2251                         || test ! -s conftest.err'
     2252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2253  (eval $ac_try) 2>&5
     2254  ac_status=$?
     2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2256  (exit $ac_status); }; } &&
     2257         { ac_try='test -s conftest.$ac_objext'
     2258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2259  (eval $ac_try) 2>&5
     2260  ac_status=$?
     2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2262  (exit $ac_status); }; }; then
     2263  ac_cv_prog_cc_g=yes
     2264else
     2265  echo "$as_me: failed program was:" >&5
     2266sed 's/^/| /' conftest.$ac_ext >&5
     2267
     2268ac_cv_prog_cc_g=no
     2269fi
     2270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2271fi
     2272echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2273echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     2274if test "$ac_test_CFLAGS" = set; then
     2275  CFLAGS=$ac_save_CFLAGS
     2276elif test $ac_cv_prog_cc_g = yes; then
     2277  if test "$GCC" = yes; then
     2278    CFLAGS="-g -O2"
     2279  else
     2280    CFLAGS="-g"
     2281  fi
     2282else
     2283  if test "$GCC" = yes; then
     2284    CFLAGS="-O2"
     2285  else
     2286    CFLAGS=
     2287  fi
     2288fi
     2289echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2290echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2291if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2292  echo $ECHO_N "(cached) $ECHO_C" >&6
     2293else
     2294  ac_cv_prog_cc_stdc=no
     2295ac_save_CC=$CC
     2296cat >conftest.$ac_ext <<_ACEOF
     2297/* confdefs.h.  */
     2298_ACEOF
     2299cat confdefs.h >>conftest.$ac_ext
     2300cat >>conftest.$ac_ext <<_ACEOF
     2301/* end confdefs.h.  */
     2302#include <stdarg.h>
     2303#include <stdio.h>
     2304#include <sys/types.h>
     2305#include <sys/stat.h>
     2306/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2307struct buf { int x; };
     2308FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2309static char *e (p, i)
     2310     char **p;
     2311     int i;
     2312{
     2313  return p[i];
     2314}
     2315static char *f (char * (*g) (char **, int), char **p, ...)
     2316{
     2317  char *s;
     2318  va_list v;
     2319  va_start (v,p);
     2320  s = g (p, va_arg (v,int));
     2321  va_end (v);
     2322  return s;
     2323}
     2324
     2325/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2326   function prototypes and stuff, but not '\xHH' hex character constants.
     2327   These don't provoke an error unfortunately, instead are silently treated
     2328   as 'x'.  The following induces an error, until -std1 is added to get
     2329   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2330   array size at least.  It's necessary to write '\x00'==0 to get something
     2331   that's true only with -std1.  */
     2332int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2333
     2334int test (int i, double x);
     2335struct s1 {int (*f) (int a);};
     2336struct s2 {int (*f) (double a);};
     2337int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2338int argc;
     2339char **argv;
     2340int
     2341main ()
     2342{
     2343return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2344  ;
     2345  return 0;
     2346}
     2347_ACEOF
     2348# Don't try gcc -ansi; that turns off useful extensions and
     2349# breaks some systems' header files.
     2350# AIX                   -qlanglvl=ansi
     2351# Ultrix and OSF/1      -std1
     2352# HP-UX 10.20 and later -Ae
     2353# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2354# SVR4                  -Xc -D__EXTENSIONS__
     2355for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2356do
     2357  CC="$ac_save_CC $ac_arg"
     2358  rm -f conftest.$ac_objext
     2359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2360  (eval $ac_compile) 2>conftest.er1
     2361  ac_status=$?
     2362  grep -v '^ *+' conftest.er1 >conftest.err
     2363  rm -f conftest.er1
     2364  cat conftest.err >&5
     2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2366  (exit $ac_status); } &&
     2367         { ac_try='test -z "$ac_c_werror_flag"
     2368                         || test ! -s conftest.err'
     2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2370  (eval $ac_try) 2>&5
     2371  ac_status=$?
     2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2373  (exit $ac_status); }; } &&
     2374         { ac_try='test -s conftest.$ac_objext'
     2375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2376  (eval $ac_try) 2>&5
     2377  ac_status=$?
     2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2379  (exit $ac_status); }; }; then
     2380  ac_cv_prog_cc_stdc=$ac_arg
     2381break
     2382else
     2383  echo "$as_me: failed program was:" >&5
     2384sed 's/^/| /' conftest.$ac_ext >&5
     2385
     2386fi
     2387rm -f conftest.err conftest.$ac_objext
     2388done
     2389rm -f conftest.$ac_ext conftest.$ac_objext
     2390CC=$ac_save_CC
     2391
     2392fi
     2393
     2394case "x$ac_cv_prog_cc_stdc" in
     2395  x|xno)
     2396    echo "$as_me:$LINENO: result: none needed" >&5
     2397echo "${ECHO_T}none needed" >&6 ;;
     2398  *)
     2399    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2400echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2401    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2402esac
     2403
     2404# Some people use a C++ compiler to compile C.  Since we use `exit',
     2405# in C++ we need to declare it.  In case someone uses the same compiler
     2406# for both compiling C and C++ we need to have the C++ compiler decide
     2407# the declaration of exit, since it's the most demanding environment.
     2408cat >conftest.$ac_ext <<_ACEOF
     2409#ifndef __cplusplus
     2410  choke me
     2411#endif
     2412_ACEOF
     2413rm -f conftest.$ac_objext
     2414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2415  (eval $ac_compile) 2>conftest.er1
     2416  ac_status=$?
     2417  grep -v '^ *+' conftest.er1 >conftest.err
     2418  rm -f conftest.er1
     2419  cat conftest.err >&5
     2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2421  (exit $ac_status); } &&
     2422         { ac_try='test -z "$ac_c_werror_flag"
     2423                         || test ! -s conftest.err'
     2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2425  (eval $ac_try) 2>&5
     2426  ac_status=$?
     2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2428  (exit $ac_status); }; } &&
     2429         { ac_try='test -s conftest.$ac_objext'
     2430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2431  (eval $ac_try) 2>&5
     2432  ac_status=$?
     2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2434  (exit $ac_status); }; }; then
     2435  for ac_declaration in \
     2436   '' \
     2437   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2438   'extern "C" void std::exit (int); using std::exit;' \
     2439   'extern "C" void exit (int) throw ();' \
     2440   'extern "C" void exit (int);' \
     2441   'void exit (int);'
     2442do
     2443  cat >conftest.$ac_ext <<_ACEOF
     2444/* confdefs.h.  */
     2445_ACEOF
     2446cat confdefs.h >>conftest.$ac_ext
     2447cat >>conftest.$ac_ext <<_ACEOF
     2448/* end confdefs.h.  */
     2449$ac_declaration
     2450#include <stdlib.h>
     2451int
     2452main ()
     2453{
     2454exit (42);
     2455  ;
     2456  return 0;
     2457}
     2458_ACEOF
     2459rm -f conftest.$ac_objext
     2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2461  (eval $ac_compile) 2>conftest.er1
     2462  ac_status=$?
     2463  grep -v '^ *+' conftest.er1 >conftest.err
     2464  rm -f conftest.er1
     2465  cat conftest.err >&5
     2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2467  (exit $ac_status); } &&
     2468         { ac_try='test -z "$ac_c_werror_flag"
     2469                         || test ! -s conftest.err'
     2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2471  (eval $ac_try) 2>&5
     2472  ac_status=$?
     2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2474  (exit $ac_status); }; } &&
     2475         { ac_try='test -s conftest.$ac_objext'
     2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2477  (eval $ac_try) 2>&5
     2478  ac_status=$?
     2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2480  (exit $ac_status); }; }; then
     2481  :
     2482else
     2483  echo "$as_me: failed program was:" >&5
     2484sed 's/^/| /' conftest.$ac_ext >&5
     2485
     2486continue
     2487fi
     2488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2489  cat >conftest.$ac_ext <<_ACEOF
     2490/* confdefs.h.  */
     2491_ACEOF
     2492cat confdefs.h >>conftest.$ac_ext
     2493cat >>conftest.$ac_ext <<_ACEOF
     2494/* end confdefs.h.  */
     2495$ac_declaration
     2496int
     2497main ()
     2498{
     2499exit (42);
     2500  ;
     2501  return 0;
     2502}
     2503_ACEOF
     2504rm -f conftest.$ac_objext
     2505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2506  (eval $ac_compile) 2>conftest.er1
     2507  ac_status=$?
     2508  grep -v '^ *+' conftest.er1 >conftest.err
     2509  rm -f conftest.er1
     2510  cat conftest.err >&5
     2511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2512  (exit $ac_status); } &&
     2513         { ac_try='test -z "$ac_c_werror_flag"
     2514                         || test ! -s conftest.err'
     2515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2516  (eval $ac_try) 2>&5
     2517  ac_status=$?
     2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2519  (exit $ac_status); }; } &&
     2520         { ac_try='test -s conftest.$ac_objext'
     2521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2522  (eval $ac_try) 2>&5
     2523  ac_status=$?
     2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2525  (exit $ac_status); }; }; then
     2526  break
     2527else
     2528  echo "$as_me: failed program was:" >&5
     2529sed 's/^/| /' conftest.$ac_ext >&5
     2530
     2531fi
     2532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2533done
     2534rm -f conftest*
     2535if test -n "$ac_declaration"; then
     2536  echo '#ifdef __cplusplus' >>confdefs.h
     2537  echo $ac_declaration      >>confdefs.h
     2538  echo '#endif'             >>confdefs.h
     2539fi
     2540
     2541else
     2542  echo "$as_me: failed program was:" >&5
     2543sed 's/^/| /' conftest.$ac_ext >&5
     2544
     2545fi
     2546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2547ac_ext=c
     2548ac_cpp='$CPP $CPPFLAGS'
     2549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2551ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2552
     2553if test -z "$CC" ; then
     2554  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
     2555echo "$as_me: error: Failed to find a C compiler!" >&2;}
     2556   { (exit 1); exit 1; }; }
     2557fi
     2558# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     2559case "$CC" in
     2560  cl* | */cl* | CL* | */CL* )
     2561    if test "$ac_cv_prog_cc_g" = yes ; then
     2562      ac_cv_prog_cc_g=no
     2563      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     2564echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     2565    fi ;;
     2566esac
     2567CFLAGS="$save_cflags"
     2568
     2569# Check if a project specific CFLAGS variable has been set
     2570if test x$COIN_PRJCT != x; then
     2571  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
     2572  if test x$coin_tmp = xset; then
     2573    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
     2574  fi
     2575fi
     2576
     2577if test x"$CFLAGS" = x; then
     2578
     2579  coin_add_cflags=
     2580  coin_opt_cflags=
     2581  coin_dbg_cflags=
     2582  coin_warn_cflags=
     2583
     2584  if test "$GCC" = "yes"; then
     2585    case "$CC" in
     2586      icc* | */icc*)
     2587        ;;
     2588      *)
     2589        coin_opt_cflags="-O3 -fomit-frame-pointer"
     2590        coin_add_cflags="-pipe"
     2591        coin_dbg_cflags="-g"
     2592        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
     2593        case $enable_doscompile in
     2594          mingw)
     2595            CFLAGS="-mno-cygwin"
     2596            cat >conftest.$ac_ext <<_ACEOF
     2597/* confdefs.h.  */
     2598_ACEOF
     2599cat confdefs.h >>conftest.$ac_ext
     2600cat >>conftest.$ac_ext <<_ACEOF
     2601/* end confdefs.h.  */
     2602
     2603int
     2604main ()
     2605{
     2606int i=0; i++;
     2607  ;
     2608  return 0;
     2609}
     2610_ACEOF
     2611rm -f conftest.$ac_objext conftest$ac_exeext
     2612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2613  (eval $ac_link) 2>conftest.er1
     2614  ac_status=$?
     2615  grep -v '^ *+' conftest.er1 >conftest.err
     2616  rm -f conftest.er1
     2617  cat conftest.err >&5
     2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2619  (exit $ac_status); } &&
     2620         { ac_try='test -z "$ac_c_werror_flag"
     2621                         || test ! -s conftest.err'
     2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2623  (eval $ac_try) 2>&5
     2624  ac_status=$?
     2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2626  (exit $ac_status); }; } &&
     2627         { ac_try='test -s conftest$ac_exeext'
     2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2629  (eval $ac_try) 2>&5
     2630  ac_status=$?
     2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2632  (exit $ac_status); }; }; then
     2633  coin_add_cflags="-mno-cygwin $coin_add_cflags"
     2634else
     2635  echo "$as_me: failed program was:" >&5
     2636sed 's/^/| /' conftest.$ac_ext >&5
     2637
     2638fi
     2639rm -f conftest.err conftest.$ac_objext \
     2640      conftest$ac_exeext conftest.$ac_ext
     2641            CFLAGS=
     2642          ;;
     2643        esac
     2644    esac
     2645  fi
     2646  if test -z "$coin_opt_cflags"; then
     2647    case $build in
     2648      *-cygwin* | *-mingw*)
     2649        case "$CC" in
     2650          cl* | */cl* | CL* | */CL*)
     2651            coin_opt_cflags='-MT -O2'
     2652            coin_add_cflags='-nologo -wd4996'
     2653            coin_dbg_cflags='-MTd'
     2654            ;;
     2655        esac
     2656        ;;
     2657      *-linux-*)
     2658        case "$CC" in
     2659          icc* | */icc*)
     2660            coin_opt_cflags="-O3 -ip"
     2661            coin_add_cflags=""
     2662            coin_dbg_cflags="-g"
     2663            # Check if -i_dynamic is necessary (for new glibc library)
     2664            CFLAGS=
     2665            cat >conftest.$ac_ext <<_ACEOF
     2666/* confdefs.h.  */
     2667_ACEOF
     2668cat confdefs.h >>conftest.$ac_ext
     2669cat >>conftest.$ac_ext <<_ACEOF
     2670/* end confdefs.h.  */
     2671
     2672int
     2673main ()
     2674{
     2675int i=0; i++;
     2676  ;
     2677  return 0;
     2678}
     2679_ACEOF
     2680rm -f conftest.$ac_objext conftest$ac_exeext
     2681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2682  (eval $ac_link) 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_exeext'
     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  :
     2703else
     2704  echo "$as_me: failed program was:" >&5
     2705sed 's/^/| /' conftest.$ac_ext >&5
     2706
     2707coin_add_cflags="-i_dynamic $coin_add_cflags"
     2708fi
     2709rm -f conftest.err conftest.$ac_objext \
     2710      conftest$ac_exeext conftest.$ac_ext
     2711            ;;
     2712          pgcc* | */pgcc*)
     2713            coin_opt_cflags="-fast"
     2714            coin_add_cflags="-Kieee -pc 64"
     2715            coin_dbg_cflags="-g"
     2716            ;;
     2717        esac
     2718        ;;
     2719      *-ibm-*)
     2720        case "$CC" in
     2721          xlc* | */xlc* | mpxlc* | */mpxlc*)
     2722            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     2723            coin_add_cflags="-bmaxdata:0x80000000"
     2724            coin_dbg_cflags="-g"
     2725          ;;
     2726        esac
     2727        ;;
     2728      *-hp-*)
     2729        coin_opt_cflags="-O"
     2730        coin_add_cflags="-Ae"
     2731        coin_dbg_cflags="-g"
     2732        ;;
     2733      *-sun-*)
     2734        coin_opt_cflags="-xO4"
     2735        coin_dbg_cflags="-g"
     2736        ;;
     2737      *-sgi-*)
     2738        coin_opt_cflags="-O -OPT:Olimit=0"
     2739        coin_dbg_cflags="-g"
     2740        ;;
     2741    esac
     2742  fi
     2743
     2744  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
     2745    coin_dbg_cflags="-g"
     2746  fi
     2747
     2748  if test -z "$coin_opt_cflags"; then
     2749    # Try if -O option works if nothing else is set
     2750    CFLAGS="-O"
     2751    cat >conftest.$ac_ext <<_ACEOF
     2752/* confdefs.h.  */
     2753_ACEOF
     2754cat confdefs.h >>conftest.$ac_ext
     2755cat >>conftest.$ac_ext <<_ACEOF
     2756/* end confdefs.h.  */
     2757
     2758int
     2759main ()
     2760{
     2761int i=0; i++;
     2762  ;
     2763  return 0;
     2764}
     2765_ACEOF
     2766rm -f conftest.$ac_objext conftest$ac_exeext
     2767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2768  (eval $ac_link) 2>conftest.er1
     2769  ac_status=$?
     2770  grep -v '^ *+' conftest.er1 >conftest.err
     2771  rm -f conftest.er1
     2772  cat conftest.err >&5
     2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2774  (exit $ac_status); } &&
     2775         { ac_try='test -z "$ac_c_werror_flag"
     2776                         || test ! -s conftest.err'
     2777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2778  (eval $ac_try) 2>&5
     2779  ac_status=$?
     2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2781  (exit $ac_status); }; } &&
     2782         { ac_try='test -s conftest$ac_exeext'
     2783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2784  (eval $ac_try) 2>&5
     2785  ac_status=$?
     2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2787  (exit $ac_status); }; }; then
     2788  coin_opt_cflags="-O"
     2789else
     2790  echo "$as_me: failed program was:" >&5
     2791sed 's/^/| /' conftest.$ac_ext >&5
     2792
     2793fi
     2794rm -f conftest.err conftest.$ac_objext \
     2795      conftest$ac_exeext conftest.$ac_ext
     2796  fi
     2797
     2798  # if PM doesn't want the warning messages, take them out
     2799  if test x"$coin_skip_warn_cflags" = xyes; then
     2800    coin_warn_cflags=
     2801  fi
     2802
     2803  if test x${DBG_CFLAGS+set} != xset; then
     2804    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
     2805  fi
     2806  if test x${OPT_CFLAGS+set} != xset; then
     2807    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
     2808  fi
     2809
     2810  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
     2811  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
     2812
     2813  if test "$coin_debug_compile" = "true"; then
     2814    CFLAGS="$DBG_CFLAGS"
     2815  else
     2816    CFLAGS="$OPT_CFLAGS"
     2817  fi
     2818else
     2819  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
     2820  if test x${DBG_CFLAGS+set} != xset; then
     2821    DBG_CFLAGS="$CFLAGS"
     2822  fi
     2823  if test x${OPT_CFLAGS+set} != xset; then
     2824    OPT_CFLAGS="$CFLAGS"
     2825  fi
     2826fi
     2827
     2828# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     2829
     2830case "$CFLAGS" in
     2831  *-mno-cygwin*)
     2832    if test x${CPPFLAGS+set} != xset ; then
     2833      CPPFLAGS="-mno-cygwin"
     2834    else
     2835      case "$CPPFLAGS" in
     2836        *-mno-cygwin*)
     2837          ;;
     2838        *)
     2839          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     2840          ;;
     2841      esac
     2842    fi ;;
     2843esac
     2844
     2845# Try if CFLAGS works
     2846save_CFLAGS="$CFLAGS"
     2847cat >conftest.$ac_ext <<_ACEOF
     2848/* confdefs.h.  */
     2849_ACEOF
     2850cat confdefs.h >>conftest.$ac_ext
     2851cat >>conftest.$ac_ext <<_ACEOF
     2852/* end confdefs.h.  */
     2853
     2854int
     2855main ()
     2856{
     2857int i=0; i++;
     2858  ;
     2859  return 0;
     2860}
     2861_ACEOF
     2862rm -f conftest.$ac_objext conftest$ac_exeext
     2863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2864  (eval $ac_link) 2>conftest.er1
     2865  ac_status=$?
     2866  grep -v '^ *+' conftest.er1 >conftest.err
     2867  rm -f conftest.er1
     2868  cat conftest.err >&5
     2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2870  (exit $ac_status); } &&
     2871         { ac_try='test -z "$ac_c_werror_flag"
     2872                         || test ! -s conftest.err'
     2873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2874  (eval $ac_try) 2>&5
     2875  ac_status=$?
     2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2877  (exit $ac_status); }; } &&
     2878         { ac_try='test -s conftest$ac_exeext'
     2879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2880  (eval $ac_try) 2>&5
     2881  ac_status=$?
     2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2883  (exit $ac_status); }; }; then
     2884  :
     2885else
     2886  echo "$as_me: failed program was:" >&5
     2887sed 's/^/| /' conftest.$ac_ext >&5
     2888
     2889CFLAGS=
     2890fi
     2891rm -f conftest.err conftest.$ac_objext \
     2892      conftest$ac_exeext conftest.$ac_ext
     2893if test -z "$CFLAGS"; then
     2894  { 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
     2895echo "$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;}
     2896  CFLAGS='-O'
     2897  cat >conftest.$ac_ext <<_ACEOF
     2898/* confdefs.h.  */
     2899_ACEOF
     2900cat confdefs.h >>conftest.$ac_ext
     2901cat >>conftest.$ac_ext <<_ACEOF
     2902/* end confdefs.h.  */
     2903
     2904int
     2905main ()
     2906{
     2907int i=0; i++;
     2908  ;
     2909  return 0;
     2910}
     2911_ACEOF
     2912rm -f conftest.$ac_objext conftest$ac_exeext
     2913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2914  (eval $ac_link) 2>conftest.er1
     2915  ac_status=$?
     2916  grep -v '^ *+' conftest.er1 >conftest.err
     2917  rm -f conftest.er1
     2918  cat conftest.err >&5
     2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2920  (exit $ac_status); } &&
     2921         { ac_try='test -z "$ac_c_werror_flag"
     2922                         || test ! -s conftest.err'
     2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2924  (eval $ac_try) 2>&5
     2925  ac_status=$?
     2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2927  (exit $ac_status); }; } &&
     2928         { ac_try='test -s conftest$ac_exeext'
     2929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2930  (eval $ac_try) 2>&5
     2931  ac_status=$?
     2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2933  (exit $ac_status); }; }; then
     2934  :
     2935else
     2936  echo "$as_me: failed program was:" >&5
     2937sed 's/^/| /' conftest.$ac_ext >&5
     2938
     2939CFLAGS=
     2940fi
     2941rm -f conftest.err conftest.$ac_objext \
     2942      conftest$ac_exeext conftest.$ac_ext
     2943  if test -z "$CFLAGS"; then
     2944    { 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
     2945echo "$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;}
     2946  fi
     2947fi
     2948
     2949{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
     2950echo "$as_me: C compiler options are: $CFLAGS" >&6;}
     2951
     2952
     2953if test x"$MPICC" = x; then :; else
     2954  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
     2955echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
     2956  CC="$MPICC"
     2957fi
     2958
     2959# Correct ADDLIBS initialization if we are using the MS compiler
     2960case "$CC" in
     2961  cl* | */cl* | CL* | */CL*)
     2962    ADDLIBS=
     2963    case $build in
     2964  *-mingw*)
     2965    if test "${LD+set}" = set; then :; else
     2966      LD=link
     2967    fi
     2968    ;;
     2969 esac
     2970 case $enable_doscompile in
     2971   msvc)
     2972     if test "x${LD+set}" = xset; then :; else
     2973       LD=link
     2974     fi
     2975     ;;
     2976 esac
     2977
     2978    ;;
     2979esac
     2980
     2981ac_ext=c
     2982ac_cpp='$CPP $CPPFLAGS'
     2983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2985ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2986
     2987
     2988
     2989# Get the name of the C++ compiler and appropriate compiler options
     2990
     2991 #Let's try if that overcomes configuration problem with VC++ 6.0
     2992
     2993ac_ext=cc
     2994ac_cpp='$CXXCPP $CPPFLAGS'
     2995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2998
     2999
     3000
     3001
     3002
     3003
     3004
     3005coin_has_cxx=yes
     3006
     3007save_cxxflags="$CXXFLAGS"
     3008# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
     3009case $build in
     3010  *-cygwin* | *-mingw*)
     3011             if test "$enable_doscompile" = msvc ; then
     3012               comps="cl"
     3013             else
     3014               comps="g++ cl"
     3015             fi ;;
     3016  sparc-sun-solaris*)
     3017             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
     3018  *-darwin*) comps="g++ c++ CC" ;;
     3019          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
     3020esac
     3021
     3022# We delete the cached value, since the test might not have been
     3023# performed with our choice of compilers earlier
     3024$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
     3025# AC_MSG_NOTICE([C++ compiler candidates: $comps])
     3026ac_ext=cc
     3027ac_cpp='$CXXCPP $CPPFLAGS'
     3028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     3031if test -n "$ac_tool_prefix"; then
     3032  for ac_prog in $CCC $comps
     3033  do
     3034    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3036echo "$as_me:$LINENO: checking for $ac_word" >&5
     3037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3038if test "${ac_cv_prog_CXX+set}" = set; then
     3039  echo $ECHO_N "(cached) $ECHO_C" >&6
     3040else
     3041  if test -n "$CXX"; then
     3042  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     3043else
     3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3045for as_dir in $PATH
     3046do
     3047  IFS=$as_save_IFS
     3048  test -z "$as_dir" && as_dir=.
     3049  for ac_exec_ext in '' $ac_executable_extensions; do
     3050  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3051    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     3052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3053    break 2
     3054  fi
     3055done
     3056done
     3057
     3058fi
     3059fi
     3060CXX=$ac_cv_prog_CXX
     3061if test -n "$CXX"; then
     3062  echo "$as_me:$LINENO: result: $CXX" >&5
     3063echo "${ECHO_T}$CXX" >&6
     3064else
     3065  echo "$as_me:$LINENO: result: no" >&5
     3066echo "${ECHO_T}no" >&6
     3067fi
     3068
     3069    test -n "$CXX" && break
     3070  done
     3071fi
     3072if test -z "$CXX"; then
     3073  ac_ct_CXX=$CXX
     3074  for ac_prog in $CCC $comps
     3075do
     3076  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3077set dummy $ac_prog; ac_word=$2
     3078echo "$as_me:$LINENO: checking for $ac_word" >&5
     3079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3080if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     3081  echo $ECHO_N "(cached) $ECHO_C" >&6
     3082else
     3083  if test -n "$ac_ct_CXX"; then
     3084  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     3085else
     3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3087for as_dir in $PATH
     3088do
     3089  IFS=$as_save_IFS
     3090  test -z "$as_dir" && as_dir=.
     3091  for ac_exec_ext in '' $ac_executable_extensions; do
     3092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3093    ac_cv_prog_ac_ct_CXX="$ac_prog"
     3094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3095    break 2
     3096  fi
     3097done
     3098done
     3099
     3100fi
     3101fi
     3102ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     3103if test -n "$ac_ct_CXX"; then
     3104  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     3105echo "${ECHO_T}$ac_ct_CXX" >&6
     3106else
     3107  echo "$as_me:$LINENO: result: no" >&5
     3108echo "${ECHO_T}no" >&6
     3109fi
     3110
     3111  test -n "$ac_ct_CXX" && break
     3112done
     3113test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     3114
     3115  CXX=$ac_ct_CXX
     3116fi
     3117
     3118
     3119# Provide some information about the compiler.
     3120echo "$as_me:$LINENO:" \
     3121     "checking for C++ compiler version" >&5
     3122ac_compiler=`set X $ac_compile; echo $2`
     3123{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3124  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3125  ac_status=$?
     3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3127  (exit $ac_status); }
     3128{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3129  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3130  ac_status=$?
     3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3132  (exit $ac_status); }
     3133{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3134  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3135  ac_status=$?
     3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3137  (exit $ac_status); }
     3138
     3139echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     3140echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     3141if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     3142  echo $ECHO_N "(cached) $ECHO_C" >&6
     3143else
     3144  cat >conftest.$ac_ext <<_ACEOF
     3145/* confdefs.h.  */
     3146_ACEOF
     3147cat confdefs.h >>conftest.$ac_ext
     3148cat >>conftest.$ac_ext <<_ACEOF
     3149/* end confdefs.h.  */
     3150
     3151int
     3152main ()
     3153{
     3154#ifndef __GNUC__
     3155       choke me
     3156#endif
     3157
     3158  ;
     3159  return 0;
     3160}
     3161_ACEOF
     3162rm -f conftest.$ac_objext
     3163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3164  (eval $ac_compile) 2>conftest.er1
     3165  ac_status=$?
     3166  grep -v '^ *+' conftest.er1 >conftest.err
     3167  rm -f conftest.er1
     3168  cat conftest.err >&5
     3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3170  (exit $ac_status); } &&
     3171         { ac_try='test -z "$ac_cxx_werror_flag"
     3172                         || test ! -s conftest.err'
     3173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3174  (eval $ac_try) 2>&5
     3175  ac_status=$?
     3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3177  (exit $ac_status); }; } &&
     3178         { ac_try='test -s conftest.$ac_objext'
     3179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3180  (eval $ac_try) 2>&5
     3181  ac_status=$?
     3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3183  (exit $ac_status); }; }; then
     3184  ac_compiler_gnu=yes
     3185else
     3186  echo "$as_me: failed program was:" >&5
     3187sed 's/^/| /' conftest.$ac_ext >&5
     3188
     3189ac_compiler_gnu=no
     3190fi
     3191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3192ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     3193
     3194fi
     3195echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     3196echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     3197GXX=`test $ac_compiler_gnu = yes && echo yes`
     3198ac_test_CXXFLAGS=${CXXFLAGS+set}
     3199ac_save_CXXFLAGS=$CXXFLAGS
     3200CXXFLAGS="-g"
     3201echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     3202echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     3203if test "${ac_cv_prog_cxx_g+set}" = set; then
     3204  echo $ECHO_N "(cached) $ECHO_C" >&6
     3205else
     3206  cat >conftest.$ac_ext <<_ACEOF
     3207/* confdefs.h.  */
     3208_ACEOF
     3209cat confdefs.h >>conftest.$ac_ext
     3210cat >>conftest.$ac_ext <<_ACEOF
     3211/* end confdefs.h.  */
     3212
     3213int
     3214main ()
     3215{
     3216
     3217  ;
     3218  return 0;
     3219}
     3220_ACEOF
     3221rm -f conftest.$ac_objext
     3222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3223  (eval $ac_compile) 2>conftest.er1
     3224  ac_status=$?
     3225  grep -v '^ *+' conftest.er1 >conftest.err
     3226  rm -f conftest.er1
     3227  cat conftest.err >&5
     3228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3229  (exit $ac_status); } &&
     3230         { ac_try='test -z "$ac_cxx_werror_flag"
     3231                         || test ! -s conftest.err'
     3232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3233  (eval $ac_try) 2>&5
     3234  ac_status=$?
     3235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3236  (exit $ac_status); }; } &&
     3237         { ac_try='test -s conftest.$ac_objext'
     3238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3239  (eval $ac_try) 2>&5
     3240  ac_status=$?
     3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3242  (exit $ac_status); }; }; then
     3243  ac_cv_prog_cxx_g=yes
     3244else
     3245  echo "$as_me: failed program was:" >&5
     3246sed 's/^/| /' conftest.$ac_ext >&5
     3247
     3248ac_cv_prog_cxx_g=no
     3249fi
     3250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3251fi
     3252echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     3253echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3254if test "$ac_test_CXXFLAGS" = set; then
     3255  CXXFLAGS=$ac_save_CXXFLAGS
     3256elif test $ac_cv_prog_cxx_g = yes; then
     3257  if test "$GXX" = yes; then
     3258    CXXFLAGS="-g -O2"
     3259  else
     3260    CXXFLAGS="-g"
     3261  fi
     3262else
     3263  if test "$GXX" = yes; then
     3264    CXXFLAGS="-O2"
     3265  else
     3266    CXXFLAGS=
     3267  fi
     3268fi
     3269for ac_declaration in \
     3270   '' \
     3271   'extern "C" void std::exit (int) throw (); using std::exit;' \
     3272   'extern "C" void std::exit (int); using std::exit;' \
     3273   'extern "C" void exit (int) throw ();' \
     3274   'extern "C" void exit (int);' \
     3275   'void exit (int);'
     3276do
     3277  cat >conftest.$ac_ext <<_ACEOF
     3278/* confdefs.h.  */
     3279_ACEOF
     3280cat confdefs.h >>conftest.$ac_ext
     3281cat >>conftest.$ac_ext <<_ACEOF
     3282/* end confdefs.h.  */
     3283$ac_declaration
     3284#include <stdlib.h>
     3285int
     3286main ()
     3287{
     3288exit (42);
     3289  ;
     3290  return 0;
     3291}
     3292_ACEOF
     3293rm -f conftest.$ac_objext
     3294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3295  (eval $ac_compile) 2>conftest.er1
     3296  ac_status=$?
     3297  grep -v '^ *+' conftest.er1 >conftest.err
     3298  rm -f conftest.er1
     3299  cat conftest.err >&5
     3300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3301  (exit $ac_status); } &&
     3302         { ac_try='test -z "$ac_cxx_werror_flag"
     3303                         || test ! -s conftest.err'
     3304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3305  (eval $ac_try) 2>&5
     3306  ac_status=$?
     3307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3308  (exit $ac_status); }; } &&
     3309         { ac_try='test -s conftest.$ac_objext'
     3310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3311  (eval $ac_try) 2>&5
     3312  ac_status=$?
     3313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3314  (exit $ac_status); }; }; then
     3315  :
     3316else
     3317  echo "$as_me: failed program was:" >&5
     3318sed 's/^/| /' conftest.$ac_ext >&5
     3319
     3320continue
     3321fi
     3322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3323  cat >conftest.$ac_ext <<_ACEOF
     3324/* confdefs.h.  */
     3325_ACEOF
     3326cat confdefs.h >>conftest.$ac_ext
     3327cat >>conftest.$ac_ext <<_ACEOF
     3328/* end confdefs.h.  */
     3329$ac_declaration
     3330int
     3331main ()
     3332{
     3333exit (42);
     3334  ;
     3335  return 0;
     3336}
     3337_ACEOF
     3338rm -f conftest.$ac_objext
     3339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3340  (eval $ac_compile) 2>conftest.er1
     3341  ac_status=$?
     3342  grep -v '^ *+' conftest.er1 >conftest.err
     3343  rm -f conftest.er1
     3344  cat conftest.err >&5
     3345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3346  (exit $ac_status); } &&
     3347         { ac_try='test -z "$ac_cxx_werror_flag"
     3348                         || test ! -s conftest.err'
     3349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3350  (eval $ac_try) 2>&5
     3351  ac_status=$?
     3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3353  (exit $ac_status); }; } &&
     3354         { ac_try='test -s conftest.$ac_objext'
     3355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3356  (eval $ac_try) 2>&5
     3357  ac_status=$?
     3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3359  (exit $ac_status); }; }; then
     3360  break
     3361else
     3362  echo "$as_me: failed program was:" >&5
     3363sed 's/^/| /' conftest.$ac_ext >&5
     3364
     3365fi
     3366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3367done
     3368rm -f conftest*
     3369if test -n "$ac_declaration"; then
     3370  echo '#ifdef __cplusplus' >>confdefs.h
     3371  echo $ac_declaration      >>confdefs.h
     3372  echo '#endif'             >>confdefs.h
     3373fi
     3374
     3375ac_ext=cc
     3376ac_cpp='$CXXCPP $CPPFLAGS'
     3377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     3380
     3381if test -z "$CXX" ; then
     3382  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
     3383echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
     3384   { (exit 1); exit 1; }; }
     3385fi
     3386
     3387# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     3388case "$CXX" in
     3389  cl* | */cl* | CL* | */CL* )
     3390    if test "$ac_cv_prog_cxx_g" = yes ; then
     3391      ac_cv_prog_cxx_g=no
     3392      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     3393echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     3394    fi ;;
     3395esac
     3396CXXFLAGS="$save_cxxflags"
     3397
     3398# Check if a project specific CXXFLAGS variable has been set
     3399if test x$COIN_PRJCT != x; then
     3400  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
     3401  if test x$coin_tmp = xset; then
     3402    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
     3403  fi
     3404fi
     3405
     3406if test x"$CXXFLAGS" = x; then
     3407
     3408# ToDo decide whether we want -DNDEBUG for optimization
     3409  coin_add_cxxflags=
     3410  coin_opt_cxxflags=
     3411  coin_dbg_cxxflags=
     3412  coin_warn_cxxflags=
     3413
     3414  if test "$GXX" = "yes"; then
     3415    case "$CXX" in
     3416      icpc* | */icpc*)
     3417        ;;
     3418      *)
     3419# ToDo decide about unroll-loops
     3420        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
     3421        coin_add_cxxflags="-pipe"
     3422        coin_dbg_cxxflags="-g"
     3423        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
     3424        case $enable_doscompile in
     3425          mingw)
     3426            CXXFLAGS="-mno-cygwin"
     3427            cat >conftest.$ac_ext <<_ACEOF
     3428/* confdefs.h.  */
     3429_ACEOF
     3430cat confdefs.h >>conftest.$ac_ext
     3431cat >>conftest.$ac_ext <<_ACEOF
     3432/* end confdefs.h.  */
     3433
     3434int
     3435main ()
     3436{
     3437int i=0; i++;
     3438  ;
     3439  return 0;
     3440}
     3441_ACEOF
     3442rm -f conftest.$ac_objext conftest$ac_exeext
     3443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3444  (eval $ac_link) 2>conftest.er1
     3445  ac_status=$?
     3446  grep -v '^ *+' conftest.er1 >conftest.err
     3447  rm -f conftest.er1
     3448  cat conftest.err >&5
     3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3450  (exit $ac_status); } &&
     3451         { ac_try='test -z "$ac_cxx_werror_flag"
     3452                         || test ! -s conftest.err'
     3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3454  (eval $ac_try) 2>&5
     3455  ac_status=$?
     3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3457  (exit $ac_status); }; } &&
     3458         { ac_try='test -s conftest$ac_exeext'
     3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3460  (eval $ac_try) 2>&5
     3461  ac_status=$?
     3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3463  (exit $ac_status); }; }; then
     3464  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
     3465else
     3466  echo "$as_me: failed program was:" >&5
     3467sed 's/^/| /' conftest.$ac_ext >&5
     3468
     3469fi
     3470rm -f conftest.err conftest.$ac_objext \
     3471      conftest$ac_exeext conftest.$ac_ext
     3472            CXXFLAGS=
     3473            ;;
     3474        esac
     3475    esac
     3476  fi
     3477
     3478# Note that we do not need to cover GCC in the following tests.
     3479
     3480  if test -z "$coin_opt_cxxflags"; then
     3481    case $build in
     3482      *-cygwin* | *-mingw*)
     3483        case "$CXX" in
     3484          cl* | */cl* | CL* | */CL*)
     3485            # The MT and MTd options are mutually exclusive
     3486            coin_opt_cxxflags='-MT -O2'
     3487            coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
     3488            coin_dbg_cxxflags='-MTd'
     3489            ;;
     3490        esac
     3491        ;;
     3492      *-linux-*)
     3493        case "$CXX" in
     3494          icpc* | */icpc*)
     3495            coin_opt_cxxflags="-O3 -ip"
     3496            coin_add_cxxflags=""
     3497            coin_dbg_cxxflags="-g"
     3498            # Check if -i_dynamic is necessary (for new glibc library)
     3499            CXXFLAGS=
     3500            cat >conftest.$ac_ext <<_ACEOF
     3501/* confdefs.h.  */
     3502_ACEOF
     3503cat confdefs.h >>conftest.$ac_ext
     3504cat >>conftest.$ac_ext <<_ACEOF
     3505/* end confdefs.h.  */
     3506
     3507int
     3508main ()
     3509{
     3510int i=0; i++;
     3511  ;
     3512  return 0;
     3513}
     3514_ACEOF
     3515rm -f conftest.$ac_objext conftest$ac_exeext
     3516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3517  (eval $ac_link) 2>conftest.er1
     3518  ac_status=$?
     3519  grep -v '^ *+' conftest.er1 >conftest.err
     3520  rm -f conftest.er1
     3521  cat conftest.err >&5
     3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3523  (exit $ac_status); } &&
     3524         { ac_try='test -z "$ac_cxx_werror_flag"
     3525                         || test ! -s conftest.err'
     3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3527  (eval $ac_try) 2>&5
     3528  ac_status=$?
     3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3530  (exit $ac_status); }; } &&
     3531         { ac_try='test -s conftest$ac_exeext'
     3532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3533  (eval $ac_try) 2>&5
     3534  ac_status=$?
     3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3536  (exit $ac_status); }; }; then
     3537  :
     3538else
     3539  echo "$as_me: failed program was:" >&5
     3540sed 's/^/| /' conftest.$ac_ext >&5
     3541
     3542coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
     3543fi
     3544rm -f conftest.err conftest.$ac_objext \
     3545      conftest$ac_exeext conftest.$ac_ext
     3546            ;;
     3547          pgCC* | */pgCC*)
     3548            coin_opt_cxxflags="-fast"
     3549            coin_add_cxxflags="-Kieee -pc 64"
     3550            coin_dbg_cxxflags="-g"
     3551            ;;
     3552        esac
     3553        ;;
     3554      *-ibm-*)
     3555        case "$CXX" in
     3556          xlC* | */xlC* | mpxlC* | */mpxlC*)
     3557            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     3558            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
     3559            coin_dbg_cxxflags="-g"
     3560            ;;
     3561        esac
     3562        ;;
     3563      *-hp-*)
     3564        case "$CXX" in
     3565          aCC* | */aCC* )
     3566            coin_opt_cxxflags="-O"
     3567            coin_add_cxxflags="-AA"
     3568            coin_dbg_cxxflags="-g"
     3569            ;;
     3570        esac
     3571        ;;
     3572      *-sun-*)
     3573          coin_opt_cxxflags="-O4"
     3574          coin_dbg_cxxflags="-g"
     3575        ;;
     3576    esac
     3577  fi
     3578
     3579# Generic flag settings. If these don't work, add a case above.
     3580
     3581  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
     3582    coin_dbg_cxxflags="-g"
     3583  fi
     3584
     3585  if test -z "$coin_opt_cxxflags"; then
     3586    # Try if -O option works if nothing else is set
     3587    CXXFLAGS=-O
     3588    cat >conftest.$ac_ext <<_ACEOF
     3589/* confdefs.h.  */
     3590_ACEOF
     3591cat confdefs.h >>conftest.$ac_ext
     3592cat >>conftest.$ac_ext <<_ACEOF
     3593/* end confdefs.h.  */
     3594
     3595int
     3596main ()
     3597{
     3598int i=0; i++;
     3599  ;
     3600  return 0;
     3601}
     3602_ACEOF
     3603rm -f conftest.$ac_objext conftest$ac_exeext
     3604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3605  (eval $ac_link) 2>conftest.er1
     3606  ac_status=$?
     3607  grep -v '^ *+' conftest.er1 >conftest.err
     3608  rm -f conftest.er1
     3609  cat conftest.err >&5
     3610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3611  (exit $ac_status); } &&
     3612         { ac_try='test -z "$ac_cxx_werror_flag"
     3613                         || test ! -s conftest.err'
     3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3615  (eval $ac_try) 2>&5
     3616  ac_status=$?
     3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3618  (exit $ac_status); }; } &&
     3619         { ac_try='test -s conftest$ac_exeext'
     3620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3621  (eval $ac_try) 2>&5
     3622  ac_status=$?
     3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3624  (exit $ac_status); }; }; then
     3625  coin_opt_cxxflags="-O"
     3626else
     3627  echo "$as_me: failed program was:" >&5
     3628sed 's/^/| /' conftest.$ac_ext >&5
     3629
     3630fi
     3631rm -f conftest.err conftest.$ac_objext \
     3632      conftest$ac_exeext conftest.$ac_ext
     3633  fi
     3634
     3635  # if PM doesn't want the warning messages, take them out
     3636  if test x"$coin_skip_warn_cxxflags" = xyes; then
     3637    coin_warn_cxxflags=
     3638  fi
     3639
     3640# Do final setup of flags based on values determined above.
     3641
     3642  if test x${DBG_CXXFLAGS+set} != xset; then
     3643    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
     3644  fi
     3645  if test x${OPT_CXXFLAGS+set} != xset; then
     3646    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
     3647  fi
     3648
     3649  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     3650  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     3651
     3652  if test "$coin_debug_compile" = "true"; then
     3653    CXXFLAGS="$DBG_CXXFLAGS"
     3654  else
     3655    CXXFLAGS="$OPT_CXXFLAGS"
     3656  fi
     3657
     3658# Handle the case where CXXFLAGS was set externally.
     3659else
     3660  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     3661  if test x${DBG_CXXFLAGS+set} != xset; then
     3662    DBG_CXXFLAGS="$CXXFLAGS"
     3663  fi
     3664  if test x${OPT_CXXFLAGS+set} != xset; then
     3665    OPT_CXXFLAGS="$CXXFLAGS"
     3666  fi
     3667fi
     3668
     3669# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     3670
     3671case "$CXXFLAGS" in
     3672  *-mno-cygwin*)
     3673    if test x${CPPFLAGS+set} != xset ; then
     3674      CPPFLAGS="-mno-cygwin"
     3675    else
     3676      case "$CPPFLAGS" in
     3677        *-mno-cygwin*)
     3678          ;;
     3679        *)
     3680          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     3681          ;;
     3682      esac
     3683    fi ;;
     3684esac
     3685
     3686# Try if CXXFLAGS works
     3687save_CXXFLAGS="$CXXFLAGS"
     3688cat >conftest.$ac_ext <<_ACEOF
     3689/* confdefs.h.  */
     3690_ACEOF
     3691cat confdefs.h >>conftest.$ac_ext
     3692cat >>conftest.$ac_ext <<_ACEOF
     3693/* end confdefs.h.  */
     3694
     3695int
     3696main ()
     3697{
     3698int i=0; i++;
     3699  ;
     3700  return 0;
     3701}
     3702_ACEOF
     3703rm -f conftest.$ac_objext conftest$ac_exeext
     3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3705  (eval $ac_link) 2>conftest.er1
     3706  ac_status=$?
     3707  grep -v '^ *+' conftest.er1 >conftest.err
     3708  rm -f conftest.er1
     3709  cat conftest.err >&5
     3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3711  (exit $ac_status); } &&
     3712         { ac_try='test -z "$ac_cxx_werror_flag"
     3713                         || test ! -s conftest.err'
     3714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3715  (eval $ac_try) 2>&5
     3716  ac_status=$?
     3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3718  (exit $ac_status); }; } &&
     3719         { ac_try='test -s conftest$ac_exeext'
     3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3721  (eval $ac_try) 2>&5
     3722  ac_status=$?
     3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3724  (exit $ac_status); }; }; then
     3725  :
     3726else
     3727  echo "$as_me: failed program was:" >&5
     3728sed 's/^/| /' conftest.$ac_ext >&5
     3729
     3730CXXFLAGS=
     3731fi
     3732rm -f conftest.err conftest.$ac_objext \
     3733      conftest$ac_exeext conftest.$ac_ext
     3734if test -z "$CXXFLAGS"; then
     3735  { 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
     3736echo "$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;}
     3737  CXXFLAGS='-O'
     3738  cat >conftest.$ac_ext <<_ACEOF
     3739/* confdefs.h.  */
     3740_ACEOF
     3741cat confdefs.h >>conftest.$ac_ext
     3742cat >>conftest.$ac_ext <<_ACEOF
     3743/* end confdefs.h.  */
     3744
     3745int
     3746main ()
     3747{
     3748int i=0; i++;
     3749  ;
     3750  return 0;
     3751}
     3752_ACEOF
     3753rm -f conftest.$ac_objext conftest$ac_exeext
     3754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3755  (eval $ac_link) 2>conftest.er1
     3756  ac_status=$?
     3757  grep -v '^ *+' conftest.er1 >conftest.err
     3758  rm -f conftest.er1
     3759  cat conftest.err >&5
     3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3761  (exit $ac_status); } &&
     3762         { ac_try='test -z "$ac_cxx_werror_flag"
     3763                         || test ! -s conftest.err'
     3764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3765  (eval $ac_try) 2>&5
     3766  ac_status=$?
     3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3768  (exit $ac_status); }; } &&
     3769         { ac_try='test -s conftest$ac_exeext'
     3770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3771  (eval $ac_try) 2>&5
     3772  ac_status=$?
     3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3774  (exit $ac_status); }; }; then
     3775  :
     3776else
     3777  echo "$as_me: failed program was:" >&5
     3778sed 's/^/| /' conftest.$ac_ext >&5
     3779
     3780CXXFLAGS=
     3781fi
     3782rm -f conftest.err conftest.$ac_objext \
     3783      conftest$ac_exeext conftest.$ac_ext
     3784  if test -z "$CXXFLAGS"; then
     3785    { 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
     3786echo "$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;}
     3787  fi
     3788fi
     3789
     3790{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
     3791echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
     3792
     3793
     3794if test x"$MPICXX" = x; then :; else
     3795  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
     3796echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
     3797  CXX="$MPICXX"
     3798fi
     3799
     3800case "$CXX" in
     3801  cl* | */cl* | CL* | */CL* )
     3802    case $build in
     3803  *-mingw*)
     3804    if test "${LD+set}" = set; then :; else
     3805      LD=link
     3806    fi
     3807    ;;
     3808 esac
     3809 case $enable_doscompile in
     3810   msvc)
     3811     if test "x${LD+set}" = xset; then :; else
     3812       LD=link
     3813     fi
     3814     ;;
     3815 esac
     3816
     3817    ;;
     3818esac
     3819
     3820ac_ext=c
     3821ac_cpp='$CPP $CPPFLAGS'
     3822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3824ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3825
     3826
     3827
     3828# Get the name of the Fortran compiler and appropriate compiler options
     3829case $build in
     3830  *-cygwin* | *-mingw*)
     3831     if test "$enable_doscompile" = msvc ; then
     3832       coin_f77_comps="ifort fl32"
     3833     else
     3834       coin_f77_comps="gfortran g77 ifort fl32"
     3835     fi ;;
     3836  sparc-sun-solaris*)
     3837     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3838  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3839 esac
     3840
     3841
     3842
     3843
     3844
     3845
     3846ac_ext=f
     3847ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3848ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3849ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3850
     3851
     3852
     3853
     3854
     3855
     3856coin_has_f77=yes
     3857
     3858save_fflags="$FFLAGS"
     3859
     3860# We delete the cached value, since the test might not have been
     3861# performed with our choice of compilers earlier
     3862$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
     3863
     3864# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
     3865# coin_f77_comps to see if there's a program that matches one of the names.
     3866# If there's no such program, F77 = unavailable. If we match the name,
     3867# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
     3868# compiler.
     3869# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
     3870
     3871
     3872{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
     3873echo "$as_me: Trying to determine Fortran compiler name" >&6;}
     3874for ac_prog in $coin_f77_comps
     3875do
     3876  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3877set dummy $ac_prog; ac_word=$2
     3878echo "$as_me:$LINENO: checking for $ac_word" >&5
     3879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3880if test "${ac_cv_prog_F77+set}" = set; then
     3881  echo $ECHO_N "(cached) $ECHO_C" >&6
     3882else
     3883  if test -n "$F77"; then
     3884  ac_cv_prog_F77="$F77" # Let the user override the test.
     3885else
     3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3887for as_dir in $PATH
     3888do
     3889  IFS=$as_save_IFS
     3890  test -z "$as_dir" && as_dir=.
     3891  for ac_exec_ext in '' $ac_executable_extensions; do
     3892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3893    ac_cv_prog_F77="$ac_prog"
     3894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3895    break 2
     3896  fi
     3897done
     3898done
     3899
     3900fi
     3901fi
     3902F77=$ac_cv_prog_F77
     3903if test -n "$F77"; then
     3904  echo "$as_me:$LINENO: result: $F77" >&5
     3905echo "${ECHO_T}$F77" >&6
     3906else
     3907  echo "$as_me:$LINENO: result: no" >&5
     3908echo "${ECHO_T}no" >&6
     3909fi
     3910
     3911  test -n "$F77" && break
     3912done
     3913test -n "$F77" || F77="unavailable"
     3914
     3915
     3916if test "$F77" != "unavailable" ; then
     3917  ac_ext=f
     3918ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3919ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3920ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3921if test -n "$ac_tool_prefix"; then
     3922  for ac_prog in $coin_f77_comps
     3923  do
     3924    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3926echo "$as_me:$LINENO: checking for $ac_word" >&5
     3927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3928if test "${ac_cv_prog_F77+set}" = set; then
     3929  echo $ECHO_N "(cached) $ECHO_C" >&6
     3930else
     3931  if test -n "$F77"; then
     3932  ac_cv_prog_F77="$F77" # Let the user override the test.
     3933else
     3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3935for as_dir in $PATH
     3936do
     3937  IFS=$as_save_IFS
     3938  test -z "$as_dir" && as_dir=.
     3939  for ac_exec_ext in '' $ac_executable_extensions; do
     3940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3941    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     3942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3943    break 2
     3944  fi
     3945done
     3946done
     3947
     3948fi
     3949fi
     3950F77=$ac_cv_prog_F77
     3951if test -n "$F77"; then
     3952  echo "$as_me:$LINENO: result: $F77" >&5
     3953echo "${ECHO_T}$F77" >&6
     3954else
     3955  echo "$as_me:$LINENO: result: no" >&5
     3956echo "${ECHO_T}no" >&6
     3957fi
     3958
     3959    test -n "$F77" && break
     3960  done
     3961fi
     3962if test -z "$F77"; then
     3963  ac_ct_F77=$F77
     3964  for ac_prog in $coin_f77_comps
     3965do
     3966  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3967set dummy $ac_prog; ac_word=$2
     3968echo "$as_me:$LINENO: checking for $ac_word" >&5
     3969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3970if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     3971  echo $ECHO_N "(cached) $ECHO_C" >&6
     3972else
     3973  if test -n "$ac_ct_F77"; then
     3974  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     3975else
     3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3977for as_dir in $PATH
     3978do
     3979  IFS=$as_save_IFS
     3980  test -z "$as_dir" && as_dir=.
     3981  for ac_exec_ext in '' $ac_executable_extensions; do
     3982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3983    ac_cv_prog_ac_ct_F77="$ac_prog"
     3984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3985    break 2
     3986  fi
     3987done
     3988done
     3989
     3990fi
     3991fi
     3992ac_ct_F77=$ac_cv_prog_ac_ct_F77
     3993if test -n "$ac_ct_F77"; then
     3994  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
     3995echo "${ECHO_T}$ac_ct_F77" >&6
     3996else
     3997  echo "$as_me:$LINENO: result: no" >&5
     3998echo "${ECHO_T}no" >&6
     3999fi
     4000
     4001  test -n "$ac_ct_F77" && break
     4002done
     4003
     4004  F77=$ac_ct_F77
     4005fi
     4006
     4007
     4008# Provide some information about the compiler.
     4009echo "$as_me:4009:" \
     4010     "checking for Fortran 77 compiler version" >&5
     4011ac_compiler=`set X $ac_compile; echo $2`
     4012{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     4013  (eval $ac_compiler --version </dev/null >&5) 2>&5
     4014  ac_status=$?
     4015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4016  (exit $ac_status); }
     4017{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     4018  (eval $ac_compiler -v </dev/null >&5) 2>&5
     4019  ac_status=$?
     4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4021  (exit $ac_status); }
     4022{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     4023  (eval $ac_compiler -V </dev/null >&5) 2>&5
     4024  ac_status=$?
     4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4026  (exit $ac_status); }
     4027rm -f a.out
     4028
     4029# If we don't use `.F' as extension, the preprocessor is not run on the
     4030# input file.  (Note that this only needs to work for GNU compilers.)
     4031ac_save_ext=$ac_ext
     4032ac_ext=F
     4033echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
     4034echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
     4035if test "${ac_cv_f77_compiler_gnu+set}" = set; then
     4036  echo $ECHO_N "(cached) $ECHO_C" >&6
     4037else
     4038  cat >conftest.$ac_ext <<_ACEOF
     4039      program main
     4040#ifndef __GNUC__
     4041       choke me
     4042#endif
     4043
     4044      end
     4045_ACEOF
     4046rm -f conftest.$ac_objext
     4047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4048  (eval $ac_compile) 2>conftest.er1
     4049  ac_status=$?
     4050  grep -v '^ *+' conftest.er1 >conftest.err
     4051  rm -f conftest.er1
     4052  cat conftest.err >&5
     4053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4054  (exit $ac_status); } &&
     4055         { ac_try='test -z "$ac_f77_werror_flag"
     4056                         || test ! -s conftest.err'
     4057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4058  (eval $ac_try) 2>&5
     4059  ac_status=$?
     4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4061  (exit $ac_status); }; } &&
     4062         { ac_try='test -s conftest.$ac_objext'
     4063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4064  (eval $ac_try) 2>&5
     4065  ac_status=$?
     4066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4067  (exit $ac_status); }; }; then
     4068  ac_compiler_gnu=yes
     4069else
     4070  echo "$as_me: failed program was:" >&5
     4071sed 's/^/| /' conftest.$ac_ext >&5
     4072
     4073ac_compiler_gnu=no
     4074fi
     4075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4076ac_cv_f77_compiler_gnu=$ac_compiler_gnu
     4077
     4078fi
     4079echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
     4080echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
     4081ac_ext=$ac_save_ext
     4082ac_test_FFLAGS=${FFLAGS+set}
     4083ac_save_FFLAGS=$FFLAGS
     4084FFLAGS=
     4085echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
     4086echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
     4087if test "${ac_cv_prog_f77_g+set}" = set; then
     4088  echo $ECHO_N "(cached) $ECHO_C" >&6
     4089else
     4090  FFLAGS=-g
     4091cat >conftest.$ac_ext <<_ACEOF
     4092      program main
     4093
     4094      end
     4095_ACEOF
     4096rm -f conftest.$ac_objext
     4097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4098  (eval $ac_compile) 2>conftest.er1
     4099  ac_status=$?
     4100  grep -v '^ *+' conftest.er1 >conftest.err
     4101  rm -f conftest.er1
     4102  cat conftest.err >&5
     4103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4104  (exit $ac_status); } &&
     4105         { ac_try='test -z "$ac_f77_werror_flag"
     4106                         || test ! -s conftest.err'
     4107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4108  (eval $ac_try) 2>&5
     4109  ac_status=$?
     4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4111  (exit $ac_status); }; } &&
     4112         { ac_try='test -s conftest.$ac_objext'
     4113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4114  (eval $ac_try) 2>&5
     4115  ac_status=$?
     4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4117  (exit $ac_status); }; }; then
     4118  ac_cv_prog_f77_g=yes
     4119else
     4120  echo "$as_me: failed program was:" >&5
     4121sed 's/^/| /' conftest.$ac_ext >&5
     4122
     4123ac_cv_prog_f77_g=no
     4124fi
     4125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4126
     4127fi
     4128echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
     4129echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
     4130if test "$ac_test_FFLAGS" = set; then
     4131  FFLAGS=$ac_save_FFLAGS
     4132elif test $ac_cv_prog_f77_g = yes; then
     4133  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     4134    FFLAGS="-g -O2"
     4135  else
     4136    FFLAGS="-g"
     4137  fi
     4138else
     4139  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     4140    FFLAGS="-O2"
     4141  else
     4142    FFLAGS=
     4143  fi
     4144fi
     4145
     4146G77=`test $ac_compiler_gnu = yes && echo yes`
     4147ac_ext=f
     4148ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4149ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4150ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4151
     4152else
     4153  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
     4154echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
     4155fi
     4156
     4157FFLAGS="$save_fflags"
     4158
     4159# Check if a project specific FFLAGS variable has been set
     4160if test x$COIN_PRJCT != x; then
     4161  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
     4162  if test x$coin_tmp = xset; then
     4163    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
     4164  fi
     4165fi
     4166
     4167if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
     4168
     4169  coin_add_fflags=
     4170  coin_opt_fflags=
     4171  coin_dbg_fflags=
     4172  coin_warn_fflags=
     4173
     4174  if test "$G77" = "yes"; then
     4175    coin_opt_fflags="-O3 -fomit-frame-pointer"
     4176    coin_add_fflags="-pipe"
     4177    coin_dbg_fflags="-g"
     4178    case $enable_doscompile in
     4179      mingw)
     4180        FFLAGS="-mno-cygwin"
     4181        cat >conftest.$ac_ext <<_ACEOF
     4182      program main
     4183      write(*,*) 'Hello world'
     4184      end
     4185_ACEOF
     4186rm -f conftest.$ac_objext conftest$ac_exeext
     4187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4188  (eval $ac_link) 2>conftest.er1
     4189  ac_status=$?
     4190  grep -v '^ *+' conftest.er1 >conftest.err
     4191  rm -f conftest.er1
     4192  cat conftest.err >&5
     4193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4194  (exit $ac_status); } &&
     4195         { ac_try='test -z "$ac_f77_werror_flag"
     4196                         || test ! -s conftest.err'
     4197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4198  (eval $ac_try) 2>&5
     4199  ac_status=$?
     4200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4201  (exit $ac_status); }; } &&
     4202         { ac_try='test -s conftest$ac_exeext'
     4203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4204  (eval $ac_try) 2>&5
     4205  ac_status=$?
     4206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4207  (exit $ac_status); }; }; then
     4208  coin_add_fflags="-mno-cygwin $coin_add_fflags"
     4209else
     4210  echo "$as_me: failed program was:" >&5
     4211sed 's/^/| /' conftest.$ac_ext >&5
     4212
     4213fi
     4214rm -f conftest.err conftest.$ac_objext \
     4215      conftest$ac_exeext conftest.$ac_ext
     4216        FFLAGS=
     4217      ;;
     4218    esac
     4219  else
     4220    case $build in
     4221      *-cygwin* | *-mingw*)
     4222        case $F77 in
     4223          ifort* | */ifort* | IFORT* | */IFORT* )
     4224            coin_opt_fflags='-O3'
     4225            coin_add_fflags='-fpp -nologo -MT'
     4226            coin_dbg_fflags='-debug'
     4227          ;;
     4228        esac
     4229        ;;
     4230      *-linux-*)
     4231        case $F77 in
     4232          ifc* | */ifc* | ifort* | */ifort*)
     4233            coin_opt_fflags="-O3 -ip"
     4234            coin_add_fflags="-cm -w90 -w95"
     4235            coin_dbg_fflags="-g -CA -CB -CS"
     4236            # Check if -i_dynamic is necessary (for new glibc library)
     4237            FFLAGS=
     4238            cat >conftest.$ac_ext <<_ACEOF
     4239      program main
     4240      write(*,*) 'Hello world'
     4241      end
     4242_ACEOF
     4243rm -f conftest.$ac_objext conftest$ac_exeext
     4244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4245  (eval $ac_link) 2>conftest.er1
     4246  ac_status=$?
     4247  grep -v '^ *+' conftest.er1 >conftest.err
     4248  rm -f conftest.er1
     4249  cat conftest.err >&5
     4250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4251  (exit $ac_status); } &&
     4252         { ac_try='test -z "$ac_f77_werror_flag"
     4253                         || test ! -s conftest.err'
     4254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4255  (eval $ac_try) 2>&5
     4256  ac_status=$?
     4257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4258  (exit $ac_status); }; } &&
     4259         { ac_try='test -s conftest$ac_exeext'
     4260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4261  (eval $ac_try) 2>&5
     4262  ac_status=$?
     4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4264  (exit $ac_status); }; }; then
     4265  :
     4266else
     4267  echo "$as_me: failed program was:" >&5
     4268sed 's/^/| /' conftest.$ac_ext >&5
     4269
     4270coin_add_fflags="-i_dynamic $coin_add_fflags"
     4271fi
     4272rm -f conftest.err conftest.$ac_objext \
     4273      conftest$ac_exeext conftest.$ac_ext
     4274            ;;
     4275          pgf77* | */pgf77* | pgf90* | */pgf90*)
     4276            coin_opt_fflags="-fast"
     4277            coin_add_fflags="-Kieee -pc 64"
     4278            coin_dbg_fflags="-g"
     4279          ;;
     4280        esac
     4281        ;;
     4282      *-ibm-*)
     4283        case "$F77" in
     4284          xlf* | */xlf* | mpxlf* | */mpxlf* )
     4285            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     4286            coin_add_fflags="-bmaxdata:0x80000000"
     4287            coin_dbg_fflags="-g -C"
     4288            ;;
     4289        esac
     4290        ;;
     4291      *-hp-*)
     4292        coin_opt_fflags="+O3"
     4293        coin_add_fflags="+U77"
     4294        coin_dbg_fflags="-C -g"
     4295        ;;
     4296      *-sun-*)
     4297        coin_opt_fflags="-O4"
     4298        coin_dbg_fflags="-g"
     4299        ;;
     4300      *-sgi-*)
     4301        coin_opt_fflags="-O5 -OPT:Olimit=0"
     4302        coin_dbg_fflags="-g"
     4303        ;;
     4304    esac
     4305  fi
     4306
     4307  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
     4308    coin_dbg_fflags="-g"
     4309  fi
     4310
     4311  if test -z "$coin_opt_fflags"; then
     4312    # Try if -O option works if nothing else is set
     4313    FFLAGS=-O
     4314    cat >conftest.$ac_ext <<_ACEOF
     4315      program main
     4316      integer i
     4317      end
     4318_ACEOF
     4319rm -f conftest.$ac_objext conftest$ac_exeext
     4320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4321  (eval $ac_link) 2>conftest.er1
     4322  ac_status=$?
     4323  grep -v '^ *+' conftest.er1 >conftest.err
     4324  rm -f conftest.er1
     4325  cat conftest.err >&5
     4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4327  (exit $ac_status); } &&
     4328         { ac_try='test -z "$ac_f77_werror_flag"
     4329                         || test ! -s conftest.err'
     4330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4331  (eval $ac_try) 2>&5
     4332  ac_status=$?
     4333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4334  (exit $ac_status); }; } &&
     4335         { ac_try='test -s conftest$ac_exeext'
     4336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4337  (eval $ac_try) 2>&5
     4338  ac_status=$?
     4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4340  (exit $ac_status); }; }; then
     4341  coin_opt_fflags="-O"
     4342else
     4343  echo "$as_me: failed program was:" >&5
     4344sed 's/^/| /' conftest.$ac_ext >&5
     4345
     4346fi
     4347rm -f conftest.err conftest.$ac_objext \
     4348      conftest$ac_exeext conftest.$ac_ext
     4349  fi
     4350
     4351  # if PM doesn't want the warning messages, take them out
     4352  if test x"$coin_skip_warn_fflags" = xyes; then
     4353    coin_warn_fflags=
     4354  fi
     4355
     4356  if test x${DBG_FFLAGS+set} != xset; then
     4357    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
     4358  fi
     4359  if test x${OPT_FFLAGS+set} != xset; then
     4360    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
     4361  fi
     4362
     4363  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
     4364  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
     4365
     4366  if test "$coin_debug_compile" = "true"; then
     4367    FFLAGS="$DBG_FFLAGS"
     4368  else
     4369    FFLAGS="$OPT_FFLAGS"
     4370  fi
     4371else
     4372  FFLAGS="$FFLAGS $ADD_FFLAGS"
     4373  if test x${DBG_FFLAGS+set} != xset; then
     4374    DBG_FFLAGS="$FFLAGS"
     4375  fi
     4376  if test x${OPT_FFLAGS+set} != xset; then
     4377    OPT_FFLAGS="$FFLAGS"
     4378  fi
     4379fi
     4380
     4381# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
     4382case "$FFLAGS" in
     4383  *-mno-cygwin*)
     4384    if test x${CPPFLAGS+set} != xset ; then
     4385      CPPFLAGS="-mno-cygwin"
     4386    else
     4387      case "$CPPFLAGS" in
     4388        *-mno-cygwin*)
     4389          ;;
     4390        *)
     4391          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     4392          ;;
     4393      esac
     4394    fi ;;
     4395esac
     4396
     4397# Try if FFLAGS works
     4398if test "$F77" != "unavailable" ; then
     4399  cat >conftest.$ac_ext <<_ACEOF
     4400      program main
     4401      integer i
     4402      end
     4403_ACEOF
     4404rm -f conftest.$ac_objext conftest$ac_exeext
     4405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4406  (eval $ac_link) 2>conftest.er1
     4407  ac_status=$?
     4408  grep -v '^ *+' conftest.er1 >conftest.err
     4409  rm -f conftest.er1
     4410  cat conftest.err >&5
     4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4412  (exit $ac_status); } &&
     4413         { ac_try='test -z "$ac_f77_werror_flag"
     4414                         || test ! -s conftest.err'
     4415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4416  (eval $ac_try) 2>&5
     4417  ac_status=$?
     4418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4419  (exit $ac_status); }; } &&
     4420         { ac_try='test -s conftest$ac_exeext'
     4421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4422  (eval $ac_try) 2>&5
     4423  ac_status=$?
     4424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4425  (exit $ac_status); }; }; then
     4426  :
     4427else
     4428  echo "$as_me: failed program was:" >&5
     4429sed 's/^/| /' conftest.$ac_ext >&5
     4430
     4431FFLAGS=
     4432fi
     4433rm -f conftest.err conftest.$ac_objext \
     4434      conftest$ac_exeext conftest.$ac_ext
     4435  if test -z "$FFLAGS"; then
     4436    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
     4437echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
     4438    FFLAGS='-O'
     4439    cat >conftest.$ac_ext <<_ACEOF
     4440      program main
     4441      integer i
     4442      end
     4443_ACEOF
     4444rm -f conftest.$ac_objext conftest$ac_exeext
     4445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4446  (eval $ac_link) 2>conftest.er1
     4447  ac_status=$?
     4448  grep -v '^ *+' conftest.er1 >conftest.err
     4449  rm -f conftest.er1
     4450  cat conftest.err >&5
     4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4452  (exit $ac_status); } &&
     4453         { ac_try='test -z "$ac_f77_werror_flag"
     4454                         || test ! -s conftest.err'
     4455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4456  (eval $ac_try) 2>&5
     4457  ac_status=$?
     4458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4459  (exit $ac_status); }; } &&
     4460         { ac_try='test -s conftest$ac_exeext'
     4461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4462  (eval $ac_try) 2>&5
     4463  ac_status=$?
     4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4465  (exit $ac_status); }; }; then
     4466  :
     4467else
     4468  echo "$as_me: failed program was:" >&5
     4469sed 's/^/| /' conftest.$ac_ext >&5
     4470
     4471FFLAGS=
     4472fi
     4473rm -f conftest.err conftest.$ac_objext \
     4474      conftest$ac_exeext conftest.$ac_ext
     4475    if test -z "$FFLAGS"; then
     4476      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
     4477echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
     4478    fi
     4479  fi
     4480fi
     4481
     4482{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
     4483echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
     4484
     4485
     4486if test x"$MPIF77" = x; then :; else
     4487  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
     4488echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
     4489  F77="$MPIF77"
     4490fi
     4491
     4492case "$F77" in
     4493  ifort* | */ifort* | IFORT* | */IFORT*)
     4494    case $build in
     4495  *-mingw*)
     4496    if test "${LD+set}" = set; then :; else
     4497      LD=link
     4498    fi
     4499    ;;
     4500 esac
     4501 case $enable_doscompile in
     4502   msvc)
     4503     if test "x${LD+set}" = xset; then :; else
     4504       LD=link
     4505     fi
     4506     ;;
     4507 esac
     4508
     4509    ;;
     4510esac
     4511
     4512ac_ext=c
     4513ac_cpp='$CPP $CPPFLAGS'
     4514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4516ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4517
     4518
     4519
     4520# Initialize automake and libtool
     4521# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
     4522{
     4523
     4524
     4525
     4526# START
     4527
     4528# On Cygwin, building DLLs doesn't work
     4529case $build in
     4530  *-cygwin*)
     4531    coin_disable_shared=yes
     4532    platform=Cygwin
     4533  ;;
     4534  *-mingw*)
     4535    coin_disable_shared=yes
     4536    platform="Msys"
     4537#    case "$CXX" in
     4538#      cl*)
     4539#        coin_disable_shared=yes
     4540#        platform="Msys with cl"
     4541#    ;;
     4542#    esac
     4543  ;;
     4544esac
     4545if test x"$coin_disable_shared" = xyes; then
     4546  if test x"$enable_shared" = xyes; then
     4547    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
     4548echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
     4549  fi
     4550  enable_shared=no
     4551fi
     4552# By default, we only want the shared objects to be compiled
     4553# Check whether --enable-static or --disable-static was given.
     4554if test "${enable_static+set}" = set; then
     4555  enableval="$enable_static"
     4556  p=${PACKAGE-default}
     4557    case $enableval in
     4558    yes) enable_static=yes ;;
     4559    no) enable_static=no ;;
     4560    *)
     4561     enable_static=no
     4562      # Look at the argument we got.  We use all the common list separators.
     4563      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     4564      for pkg in $enableval; do
     4565        IFS="$lt_save_ifs"
     4566        if test "X$pkg" = "X$p"; then
     4567          enable_static=yes
     4568        fi
     4569      done
     4570      IFS="$lt_save_ifs"
     4571      ;;
     4572    esac
     4573else
     4574  enable_static=no
     4575fi;
     4576
     4577
     4578
     4579
     4580# Initialize automake
     4581echo "$as_me:$LINENO: checking for egrep" >&5
     4582echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     4583if test "${ac_cv_prog_egrep+set}" = set; then
     4584  echo $ECHO_N "(cached) $ECHO_C" >&6
     4585else
     4586  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     4587    then ac_cv_prog_egrep='grep -E'
     4588    else ac_cv_prog_egrep='egrep'
     4589    fi
     4590fi
     4591echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     4592echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     4593 EGREP=$ac_cv_prog_egrep
     4594
     4595
     4596am__api_version="1.9"
    13434597# Find a good install program.  We prefer a C program (faster),
    13444598# so one script is as good as another.  But avoid the broken or
     
    16024856rmdir .tst 2>/dev/null
    16034857
     4858DEPDIR="${am__leading_dot}deps"
     4859
     4860          ac_config_commands="$ac_config_commands depfiles"
     4861
     4862
     4863am_make=${MAKE-make}
     4864cat > confinc << 'END'
     4865am__doit:
     4866        @echo done
     4867.PHONY: am__doit
     4868END
     4869# If we don't find an include directive, just comment out the code.
     4870echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
     4871echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
     4872am__include="#"
     4873am__quote=
     4874_am_result=none
     4875# First try GNU make style include.
     4876echo "include confinc" > confmf
     4877# We grep out `Entering directory' and `Leaving directory'
     4878# messages which can occur if `w' ends up in MAKEFLAGS.
     4879# In particular we don't look at `^make:' because GNU make might
     4880# be invoked under some other name (usually "gmake"), in which
     4881# case it prints its new name instead of `make'.
     4882if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     4883   am__include=include
     4884   am__quote=
     4885   _am_result=GNU
     4886fi
     4887# Now try BSD make style include.
     4888if test "$am__include" = "#"; then
     4889   echo '.include "confinc"' > confmf
     4890   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     4891      am__include=.include
     4892      am__quote="\""
     4893      _am_result=BSD
     4894   fi
     4895fi
     4896
     4897
     4898echo "$as_me:$LINENO: result: $_am_result" >&5
     4899echo "${ECHO_T}$_am_result" >&6
     4900rm -f confinc confmf
     4901
     4902# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
     4903if test "${enable_dependency_tracking+set}" = set; then
     4904  enableval="$enable_dependency_tracking"
     4905
     4906fi;
     4907if test "x$enable_dependency_tracking" != xno; then
     4908  am_depcomp="$ac_aux_dir/depcomp"
     4909  AMDEPBACKSLASH='\'
     4910fi
     4911
     4912
     4913if test "x$enable_dependency_tracking" != xno; then
     4914  AMDEP_TRUE=
     4915  AMDEP_FALSE='#'
     4916else
     4917  AMDEP_TRUE='#'
     4918  AMDEP_FALSE=
     4919fi
     4920
     4921
     4922
    16044923
    16054924
     
    17535072
    17545073
     5074
     5075
     5076depcc="$CC"   am_compiler_list=
     5077
     5078echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     5079echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     5080if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     5081  echo $ECHO_N "(cached) $ECHO_C" >&6
     5082else
     5083  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     5084  # We make a subdir and do the tests there.  Otherwise we can end up
     5085  # making bogus files that we don't know about and never remove.  For
     5086  # instance it was reported that on HP-UX the gcc test will end up
     5087  # making a dummy file named `D' -- because `-MD' means `put the output
     5088  # in D'.
     5089  mkdir conftest.dir
     5090  # Copy depcomp to subdir because otherwise we won't find it if we're
     5091  # using a relative directory.
     5092  cp "$am_depcomp" conftest.dir
     5093  cd conftest.dir
     5094  # We will build objects and dependencies in a subdirectory because
     5095  # it helps to detect inapplicable dependency modes.  For instance
     5096  # both Tru64's cc and ICC support -MD to output dependencies as a
     5097  # side effect of compilation, but ICC will put the dependencies in
     5098  # the current directory while Tru64 will put them in the object
     5099  # directory.
     5100  mkdir sub
     5101
     5102  am_cv_CC_dependencies_compiler_type=none
     5103  if test "$am_compiler_list" = ""; then
     5104     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     5105  fi
     5106  for depmode in $am_compiler_list; do
     5107    # Setup a source with many dependencies, because some compilers
     5108    # like to wrap large dependency lists on column 80 (with \), and
     5109    # we should not choose a depcomp mode which is confused by this.
     5110    #
     5111    # We need to recreate these files for each test, as the compiler may
     5112    # overwrite some of them when testing with obscure command lines.
     5113    # This happens at least with the AIX C compiler.
     5114    : > sub/conftest.c
     5115    for i in 1 2 3 4 5 6; do
     5116      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     5117      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     5118      # Solaris 8's {/usr,}/bin/sh.
     5119      touch sub/conftst$i.h
     5120    done
     5121    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     5122
     5123    case $depmode in
     5124    nosideeffect)
     5125      # after this tag, mechanisms are not by side-effect, so they'll
     5126      # only be used when explicitly requested
     5127      if test "x$enable_dependency_tracking" = xyes; then
     5128        continue
     5129      else
     5130        break
     5131      fi
     5132      ;;
     5133    none) break ;;
     5134    esac
     5135    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     5136    # mode.  It turns out that the SunPro C++ compiler does not properly
     5137    # handle `-M -o', and we need to detect this.
     5138    if depmode=$depmode \
     5139       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     5140       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     5141       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     5142         >/dev/null 2>conftest.err &&
     5143       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     5144       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     5145       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     5146      # icc doesn't choke on unknown options, it will just issue warnings
     5147      # or remarks (even with -Werror).  So we grep stderr for any message
     5148      # that says an option was ignored or not supported.
     5149      # When given -MP, icc 7.0 and 7.1 complain thusly:
     5150      #   icc: Command line warning: ignoring option '-M'; no argument required
     5151      # The diagnosis changed in icc 8.0:
     5152      #   icc: Command line remark: option '-MP' not supported
     5153      if (grep 'ignoring option' conftest.err ||
     5154          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     5155        am_cv_CC_dependencies_compiler_type=$depmode
     5156        break
     5157      fi
     5158    fi
     5159  done
     5160
     5161  cd ..
     5162  rm -rf conftest.dir
     5163else
     5164  am_cv_CC_dependencies_compiler_type=none
     5165fi
     5166
     5167fi
     5168echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
     5169echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     5170CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
     5171
     5172
     5173
     5174if
     5175  test "x$enable_dependency_tracking" != xno \
     5176  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     5177  am__fastdepCC_TRUE=
     5178  am__fastdepCC_FALSE='#'
     5179else
     5180  am__fastdepCC_TRUE='#'
     5181  am__fastdepCC_FALSE=
     5182fi
     5183
     5184
     5185depcc="$CXX"  am_compiler_list=
     5186
     5187echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     5188echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     5189if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
     5190  echo $ECHO_N "(cached) $ECHO_C" >&6
     5191else
     5192  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     5193  # We make a subdir and do the tests there.  Otherwise we can end up
     5194  # making bogus files that we don't know about and never remove.  For
     5195  # instance it was reported that on HP-UX the gcc test will end up
     5196  # making a dummy file named `D' -- because `-MD' means `put the output
     5197  # in D'.
     5198  mkdir conftest.dir
     5199  # Copy depcomp to subdir because otherwise we won't find it if we're
     5200  # using a relative directory.
     5201  cp "$am_depcomp" conftest.dir
     5202  cd conftest.dir
     5203  # We will build objects and dependencies in a subdirectory because
     5204  # it helps to detect inapplicable dependency modes.  For instance
     5205  # both Tru64's cc and ICC support -MD to output dependencies as a
     5206  # side effect of compilation, but ICC will put the dependencies in
     5207  # the current directory while Tru64 will put them in the object
     5208  # directory.
     5209  mkdir sub
     5210
     5211  am_cv_CXX_dependencies_compiler_type=none
     5212  if test "$am_compiler_list" = ""; then
     5213     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     5214  fi
     5215  for depmode in $am_compiler_list; do
     5216    # Setup a source with many dependencies, because some compilers
     5217    # like to wrap large dependency lists on column 80 (with \), and
     5218    # we should not choose a depcomp mode which is confused by this.
     5219    #
     5220    # We need to recreate these files for each test, as the compiler may
     5221    # overwrite some of them when testing with obscure command lines.
     5222    # This happens at least with the AIX C compiler.
     5223    : > sub/conftest.c
     5224    for i in 1 2 3 4 5 6; do
     5225      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     5226      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     5227      # Solaris 8's {/usr,}/bin/sh.
     5228      touch sub/conftst$i.h
     5229    done
     5230    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     5231
     5232    case $depmode in
     5233    nosideeffect)
     5234      # after this tag, mechanisms are not by side-effect, so they'll
     5235      # only be used when explicitly requested
     5236      if test "x$enable_dependency_tracking" = xyes; then
     5237        continue
     5238      else
     5239        break
     5240      fi
     5241      ;;
     5242    none) break ;;
     5243    esac
     5244    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     5245    # mode.  It turns out that the SunPro C++ compiler does not properly
     5246    # handle `-M -o', and we need to detect this.
     5247    if depmode=$depmode \
     5248       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     5249       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     5250       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     5251         >/dev/null 2>conftest.err &&
     5252       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     5253       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     5254       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     5255      # icc doesn't choke on unknown options, it will just issue warnings
     5256      # or remarks (even with -Werror).  So we grep stderr for any message
     5257      # that says an option was ignored or not supported.
     5258      # When given -MP, icc 7.0 and 7.1 complain thusly:
     5259      #   icc: Command line warning: ignoring option '-M'; no argument required
     5260      # The diagnosis changed in icc 8.0:
     5261      #   icc: Command line remark: option '-MP' not supported
     5262      if (grep 'ignoring option' conftest.err ||
     5263          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     5264        am_cv_CXX_dependencies_compiler_type=$depmode
     5265        break
     5266      fi
     5267    fi
     5268  done
     5269
     5270  cd ..
     5271  rm -rf conftest.dir
     5272else
     5273  am_cv_CXX_dependencies_compiler_type=none
     5274fi
     5275
     5276fi
     5277echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
     5278echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
     5279CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
     5280
     5281
     5282
     5283if
     5284  test "x$enable_dependency_tracking" != xno \
     5285  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
     5286  am__fastdepCXX_TRUE=
     5287  am__fastdepCXX_FALSE='#'
     5288else
     5289  am__fastdepCXX_TRUE='#'
     5290  am__fastdepCXX_FALSE=
     5291fi
    17555292
    17565293
     
    21795716
    21805717
     5718LIBTOOL=
     5719if test -r ../libtool; then
     5720  coin_config_dir=..
     5721  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
     5722fi
     5723if test "x$LIBTOOL" = x; then
     5724  if test -r ../../libtool; then
     5725    coin_config_dir=../..
     5726    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
     5727  fi
     5728fi
     5729
     5730if test "x$LIBTOOL" = x; then
     5731# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
     5732  # Stuff for libtool
     5733  # Check whether --enable-shared or --disable-shared was given.
     5734if test "${enable_shared+set}" = set; then
     5735  enableval="$enable_shared"
     5736  p=${PACKAGE-default}
     5737    case $enableval in
     5738    yes) enable_shared=yes ;;
     5739    no) enable_shared=no ;;
     5740    *)
     5741      enable_shared=no
     5742      # Look at the argument we got.  We use all the common list separators.
     5743      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     5744      for pkg in $enableval; do
     5745        IFS="$lt_save_ifs"
     5746        if test "X$pkg" = "X$p"; then
     5747          enable_shared=yes
     5748        fi
     5749      done
     5750      IFS="$lt_save_ifs"
     5751      ;;
     5752    esac
     5753else
     5754  enable_shared=yes
     5755fi;
     5756
     5757# Check whether --enable-fast-install or --disable-fast-install was given.
     5758if test "${enable_fast_install+set}" = set; then
     5759  enableval="$enable_fast_install"
     5760  p=${PACKAGE-default}
     5761    case $enableval in
     5762    yes) enable_fast_install=yes ;;
     5763    no) enable_fast_install=no ;;
     5764    *)
     5765      enable_fast_install=no
     5766      # Look at the argument we got.  We use all the common list separators.
     5767      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     5768      for pkg in $enableval; do
     5769        IFS="$lt_save_ifs"
     5770        if test "X$pkg" = "X$p"; then
     5771          enable_fast_install=yes
     5772        fi
     5773      done
     5774      IFS="$lt_save_ifs"
     5775      ;;
     5776    esac
     5777else
     5778  enable_fast_install=yes
     5779fi;
     5780
     5781echo "$as_me:$LINENO: checking host system type" >&5
     5782echo $ECHO_N "checking host system type... $ECHO_C" >&6
     5783if test "${ac_cv_host+set}" = set; then
     5784  echo $ECHO_N "(cached) $ECHO_C" >&6
     5785else
     5786  ac_cv_host_alias=$host_alias
     5787test -z "$ac_cv_host_alias" &&
     5788  ac_cv_host_alias=$ac_cv_build_alias
     5789ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     5790  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     5791echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     5792   { (exit 1); exit 1; }; }
     5793
     5794fi
     5795echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     5796echo "${ECHO_T}$ac_cv_host" >&6
     5797host=$ac_cv_host
     5798host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     5799host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     5800host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     5801
     5802
     5803echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
     5804echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
     5805if test "${lt_cv_path_SED+set}" = set; then
     5806  echo $ECHO_N "(cached) $ECHO_C" >&6
     5807else
     5808  # Loop through the user's path and test for sed and gsed.
     5809# Then use that list of sed's as ones to test for truncation.
     5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5811for as_dir in $PATH
     5812do
     5813  IFS=$as_save_IFS
     5814  test -z "$as_dir" && as_dir=.
     5815  for lt_ac_prog in sed gsed; do
     5816    for ac_exec_ext in '' $ac_executable_extensions; do
     5817      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
     5818        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
     5819      fi
     5820    done
     5821  done
     5822done
     5823lt_ac_max=0
     5824lt_ac_count=0
     5825# Add /usr/xpg4/bin/sed as it is typically found on Solaris
     5826# along with /bin/sed that truncates output.
     5827for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
     5828  test ! -f $lt_ac_sed && continue
     5829  cat /dev/null > conftest.in
     5830  lt_ac_count=0
     5831  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
     5832  # Check for GNU sed and select it if it is found.
     5833  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
     5834    lt_cv_path_SED=$lt_ac_sed
     5835    break
     5836  fi
     5837  while true; do
     5838    cat conftest.in conftest.in >conftest.tmp
     5839    mv conftest.tmp conftest.in
     5840    cp conftest.in conftest.nl
     5841    echo >>conftest.nl
     5842    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
     5843    cmp -s conftest.out conftest.nl || break
     5844    # 10000 chars as input seems more than enough
     5845    test $lt_ac_count -gt 10 && break
     5846    lt_ac_count=`expr $lt_ac_count + 1`
     5847    if test $lt_ac_count -gt $lt_ac_max; then
     5848      lt_ac_max=$lt_ac_count
     5849      lt_cv_path_SED=$lt_ac_sed
     5850    fi
     5851  done
     5852done
     5853
     5854fi
     5855
     5856SED=$lt_cv_path_SED
     5857echo "$as_me:$LINENO: result: $SED" >&5
     5858echo "${ECHO_T}$SED" >&6
     5859
     5860
     5861# Check whether --with-gnu-ld or --without-gnu-ld was given.
     5862if test "${with_gnu_ld+set}" = set; then
     5863  withval="$with_gnu_ld"
     5864  test "$withval" = no || with_gnu_ld=yes
     5865else
     5866  with_gnu_ld=no
     5867fi;
     5868ac_prog=ld
     5869if test "$GCC" = yes; then
     5870  # Check if gcc -print-prog-name=ld gives a path.
     5871  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
     5872echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
     5873  case $host in
     5874  *-*-mingw*)
     5875    # gcc leaves a trailing carriage return which upsets mingw
     5876    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
     5877  *)
     5878    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
     5879  esac
     5880  case $ac_prog in
     5881    # Accept absolute paths.
     5882    [\\/]* | ?:[\\/]*)
     5883      re_direlt='/[^/][^/]*/\.\./'
     5884      # Canonicalize the pathname of ld
     5885      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
     5886      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
     5887        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
     5888      done
     5889      test -z "$LD" && LD="$ac_prog"
     5890      ;;
     5891  "")
     5892    # If it fails, then pretend we aren't using GCC.
     5893    ac_prog=ld
     5894    ;;
     5895  *)
     5896    # If it is relative, then search for the first ld in PATH.
     5897    with_gnu_ld=unknown
     5898    ;;
     5899  esac
     5900elif test "$with_gnu_ld" = yes; then
     5901  echo "$as_me:$LINENO: checking for GNU ld" >&5
     5902echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
     5903else
     5904  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
     5905echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
     5906fi
     5907if test "${lt_cv_path_LD+set}" = set; then
     5908  echo $ECHO_N "(cached) $ECHO_C" >&6
     5909else
     5910  if test -z "$LD"; then
     5911  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     5912  for ac_dir in $PATH; do
     5913    IFS="$lt_save_ifs"
     5914    test -z "$ac_dir" && ac_dir=.
     5915    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
     5916      lt_cv_path_LD="$ac_dir/$ac_prog"
     5917      # Check to see if the program is GNU ld.  I'd rather use --version,
     5918      # but apparently some variants of GNU ld only accept -v.
     5919      # Break only if it was the GNU/non-GNU ld that we prefer.
     5920      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
     5921      *GNU* | *'with BFD'*)
     5922        test "$with_gnu_ld" != no && break
     5923        ;;
     5924      *)
     5925        test "$with_gnu_ld" != yes && break
     5926        ;;
     5927      esac
     5928    fi
     5929  done
     5930  IFS="$lt_save_ifs"
     5931else
     5932  lt_cv_path_LD="$LD" # Let the user override the test with a path.
     5933fi
     5934fi
     5935
     5936LD="$lt_cv_path_LD"
     5937if test -n "$LD"; then
     5938  echo "$as_me:$LINENO: result: $LD" >&5
     5939echo "${ECHO_T}$LD" >&6
     5940else
     5941  echo "$as_me:$LINENO: result: no" >&5
     5942echo "${ECHO_T}no" >&6
     5943fi
     5944test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
     5945echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
     5946   { (exit 1); exit 1; }; }
     5947echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
     5948echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
     5949if test "${lt_cv_prog_gnu_ld+set}" = set; then
     5950  echo $ECHO_N "(cached) $ECHO_C" >&6
     5951else
     5952  # I'd rather use --version here, but apparently some GNU lds only accept -v.
     5953case `$LD -v 2>&1 </dev/null` in
     5954*GNU* | *'with BFD'*)
     5955  lt_cv_prog_gnu_ld=yes
     5956  ;;
     5957*)
     5958  lt_cv_prog_gnu_ld=no
     5959  ;;
     5960esac
     5961fi
     5962echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
     5963echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
     5964with_gnu_ld=$lt_cv_prog_gnu_ld
     5965
     5966
     5967echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
     5968echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
     5969if test "${lt_cv_ld_reload_flag+set}" = set; then
     5970  echo $ECHO_N "(cached) $ECHO_C" >&6
     5971else
     5972  lt_cv_ld_reload_flag='-r'
     5973fi
     5974echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
     5975echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
     5976reload_flag=$lt_cv_ld_reload_flag
     5977case $reload_flag in
     5978"" | " "*) ;;
     5979*) reload_flag=" $reload_flag" ;;
     5980esac
     5981reload_cmds='$LD$reload_flag -o $output$reload_objs'
     5982case $host_os in
     5983  darwin*)
     5984    if test "$GCC" = yes; then
     5985      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
     5986    else
     5987      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     5988    fi
     5989    ;;
     5990esac
     5991
     5992echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
     5993echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
     5994if test "${lt_cv_path_NM+set}" = set; then
     5995  echo $ECHO_N "(cached) $ECHO_C" >&6
     5996else
     5997  if test -n "$NM"; then
     5998  # Let the user override the test.
     5999  lt_cv_path_NM="$NM"
     6000else
     6001  lt_nm_to_check="${ac_tool_prefix}nm"
     6002  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
     6003    lt_nm_to_check="$lt_nm_to_check nm"
     6004  fi
     6005  for lt_tmp_nm in $lt_nm_to_check; do
     6006    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     6007    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
     6008      IFS="$lt_save_ifs"
     6009      test -z "$ac_dir" && ac_dir=.
     6010      tmp_nm="$ac_dir/$lt_tmp_nm"
     6011      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
     6012        # Check to see if the nm accepts a BSD-compat flag.
     6013        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
     6014        #   nm: unknown option "B" ignored
     6015        # Tru64's nm complains that /dev/null is an invalid object file
     6016        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
     6017        */dev/null* | *'Invalid file or object type'*)
     6018          lt_cv_path_NM="$tmp_nm -B"
     6019          break
     6020          ;;
     6021        *)
     6022          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
     6023          */dev/null*)
     6024            lt_cv_path_NM="$tmp_nm -p"
     6025            break
     6026            ;;
     6027          *)
     6028            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
     6029            continue # so that we can try to find one that supports BSD flags
     6030            ;;
     6031          esac
     6032          ;;
     6033        esac
     6034      fi
     6035    done
     6036    IFS="$lt_save_ifs"
     6037  done
     6038  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
     6039fi
     6040fi
     6041echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
     6042echo "${ECHO_T}$lt_cv_path_NM" >&6
     6043NM="$lt_cv_path_NM"
     6044
     6045echo "$as_me:$LINENO: checking whether ln -s works" >&5
     6046echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     6047LN_S=$as_ln_s
     6048if test "$LN_S" = "ln -s"; then
     6049  echo "$as_me:$LINENO: result: yes" >&5
     6050echo "${ECHO_T}yes" >&6
     6051else
     6052  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     6053echo "${ECHO_T}no, using $LN_S" >&6
     6054fi
     6055
     6056echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
     6057echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
     6058if test "${lt_cv_deplibs_check_method+set}" = set; then
     6059  echo $ECHO_N "(cached) $ECHO_C" >&6
     6060else
     6061  lt_cv_file_magic_cmd='$MAGIC_CMD'
     6062lt_cv_file_magic_test_file=
     6063lt_cv_deplibs_check_method='unknown'
     6064# Need to set the preceding variable on all platforms that support
     6065# interlibrary dependencies.
     6066# 'none' -- dependencies not supported.
     6067# `unknown' -- same as none, but documents that we really don't know.
     6068# 'pass_all' -- all dependencies passed with no checks.
     6069# 'test_compile' -- check by making test program.
     6070# 'file_magic [[regex]]' -- check by looking for files in library path
     6071# which responds to the $file_magic_cmd with a given extended regex.
     6072# If you have `file' or equivalent on your system and you're not sure
     6073# whether `pass_all' will *always* work, you probably want this one.
     6074
     6075case $host_os in
     6076aix4* | aix5*)
     6077  lt_cv_deplibs_check_method=pass_all
     6078  ;;
     6079
     6080beos*)
     6081  lt_cv_deplibs_check_method=pass_all
     6082  ;;
     6083
     6084bsdi[45]*)
     6085  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
     6086  lt_cv_file_magic_cmd='/usr/bin/file -L'
     6087  lt_cv_file_magic_test_file=/shlib/libc.so
     6088  ;;
     6089
     6090cygwin*)
     6091  # func_win32_libid is a shell function defined in ltmain.sh
     6092  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     6093  lt_cv_file_magic_cmd='func_win32_libid'
     6094  ;;
     6095
     6096mingw* | pw32*)
     6097  # Base MSYS/MinGW do not provide the 'file' command needed by
     6098  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
     6099  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     6100  lt_cv_file_magic_cmd='$OBJDUMP -f'
     6101  ;;
     6102
     6103darwin* | rhapsody*)
     6104  lt_cv_deplibs_check_method=pass_all
     6105  ;;
     6106
     6107freebsd* | kfreebsd*-gnu | dragonfly*)
     6108  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     6109    case $host_cpu in
     6110    i*86 )
     6111      # Not sure whether the presence of OpenBSD here was a mistake.
     6112      # Let's accept both of them until this is cleared up.
     6113      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
     6114      lt_cv_file_magic_cmd=/usr/bin/file
     6115      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
     6116      ;;
     6117    esac
     6118  else
     6119    lt_cv_deplibs_check_method=pass_all
     6120  fi
     6121  ;;
     6122
     6123gnu*)
     6124  lt_cv_deplibs_check_method=pass_all
     6125  ;;
     6126
     6127hpux10.20* | hpux11*)
     6128  lt_cv_file_magic_cmd=/usr/bin/file
     6129  case $host_cpu in
     6130  ia64*)
     6131    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
     6132    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
     6133    ;;
     6134  hppa*64*)
     6135    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]'
     6136    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
     6137    ;;
     6138  *)
     6139    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
     6140    lt_cv_file_magic_test_file=/usr/lib/libc.sl
     6141    ;;
     6142  esac
     6143  ;;
     6144
     6145interix3*)
     6146  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
     6147  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
     6148  ;;
     6149
     6150irix5* | irix6* | nonstopux*)
     6151  case $LD in
     6152  *-32|*"-32 ") libmagic=32-bit;;
     6153  *-n32|*"-n32 ") libmagic=N32;;
     6154  *-64|*"-64 ") libmagic=64-bit;;
     6155  *) libmagic=never-match;;
     6156  esac
     6157  lt_cv_deplibs_check_method=pass_all
     6158  ;;
     6159
     6160# This must be Linux ELF.
     6161linux*)
     6162  lt_cv_deplibs_check_method=pass_all
     6163  ;;
     6164
     6165netbsd*)
     6166  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     6167    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
     6168  else
     6169    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
     6170  fi
     6171  ;;
     6172
     6173newos6*)
     6174  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
     6175  lt_cv_file_magic_cmd=/usr/bin/file
     6176  lt_cv_file_magic_test_file=/usr/lib/libnls.so
     6177  ;;
     6178
     6179nto-qnx*)
     6180  lt_cv_deplibs_check_method=unknown
     6181  ;;
     6182
     6183openbsd*)
     6184  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     6185    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
     6186  else
     6187    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
     6188  fi
     6189  ;;
     6190
     6191osf3* | osf4* | osf5*)
     6192  lt_cv_deplibs_check_method=pass_all
     6193  ;;
     6194
     6195solaris*)
     6196  lt_cv_deplibs_check_method=pass_all
     6197  ;;
     6198
     6199sysv4 | sysv4.3*)
     6200  case $host_vendor in
     6201  motorola)
     6202    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]'
     6203    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
     6204    ;;
     6205  ncr)
     6206    lt_cv_deplibs_check_method=pass_all
     6207    ;;
     6208  sequent)
     6209    lt_cv_file_magic_cmd='/bin/file'
     6210    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
     6211    ;;
     6212  sni)
     6213    lt_cv_file_magic_cmd='/bin/file'
     6214    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
     6215    lt_cv_file_magic_test_file=/lib/libc.so
     6216    ;;
     6217  siemens)
     6218    lt_cv_deplibs_check_method=pass_all
     6219    ;;
     6220  pc)
     6221    lt_cv_deplibs_check_method=pass_all
     6222    ;;
     6223  esac
     6224  ;;
     6225
     6226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     6227  lt_cv_deplibs_check_method=pass_all
     6228  ;;
     6229esac
     6230
     6231fi
     6232echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
     6233echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
     6234file_magic_cmd=$lt_cv_file_magic_cmd
     6235deplibs_check_method=$lt_cv_deplibs_check_method
     6236test -z "$deplibs_check_method" && deplibs_check_method=unknown
     6237
     6238
     6239
     6240
     6241# If no C compiler was specified, use CC.
     6242LTCC=${LTCC-"$CC"}
     6243
     6244# If no C compiler flags were specified, use CFLAGS.
     6245LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     6246
     6247# Allow CC to be a program name with arguments.
     6248compiler=$CC
     6249
     6250# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
     6251if test "${enable_libtool_lock+set}" = set; then
     6252  enableval="$enable_libtool_lock"
     6253
     6254fi;
     6255test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
     6256
     6257# Some flags need to be propagated to the compiler or linker for good
     6258# libtool support.
     6259case $host in
     6260ia64-*-hpux*)
     6261  # Find out which ABI we are using.
     6262  echo 'int i;' > conftest.$ac_ext
     6263  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6264  (eval $ac_compile) 2>&5
     6265  ac_status=$?
     6266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6267  (exit $ac_status); }; then
     6268    case `/usr/bin/file conftest.$ac_objext` in
     6269    *ELF-32*)
     6270      HPUX_IA64_MODE="32"
     6271      ;;
     6272    *ELF-64*)
     6273      HPUX_IA64_MODE="64"
     6274      ;;
     6275    esac
     6276  fi
     6277  rm -rf conftest*
     6278  ;;
     6279*-*-irix6*)
     6280  # Find out which ABI we are using.
     6281  echo '#line 6281 "configure"' > conftest.$ac_ext
     6282  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6283  (eval $ac_compile) 2>&5
     6284  ac_status=$?
     6285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6286  (exit $ac_status); }; then
     6287   if test "$lt_cv_prog_gnu_ld" = yes; then
     6288    case `/usr/bin/file conftest.$ac_objext` in
     6289    *32-bit*)
     6290      LD="${LD-ld} -melf32bsmip"
     6291      ;;
     6292    *N32*)
     6293      LD="${LD-ld} -melf32bmipn32"
     6294      ;;
     6295    *64-bit*)
     6296      LD="${LD-ld} -melf64bmip"
     6297      ;;
     6298    esac
     6299   else
     6300    case `/usr/bin/file conftest.$ac_objext` in
     6301    *32-bit*)
     6302      LD="${LD-ld} -32"
     6303      ;;
     6304    *N32*)
     6305      LD="${LD-ld} -n32"
     6306      ;;
     6307    *64-bit*)
     6308      LD="${LD-ld} -64"
     6309      ;;
     6310    esac
     6311   fi
     6312  fi
     6313  rm -rf conftest*
     6314  ;;
     6315
     6316x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
     6317  # Find out which ABI we are using.
     6318  echo 'int i;' > conftest.$ac_ext
     6319  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6320  (eval $ac_compile) 2>&5
     6321  ac_status=$?
     6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6323  (exit $ac_status); }; then
     6324    case `/usr/bin/file conftest.o` in
     6325    *32-bit*)
     6326      case $host in
     6327        x86_64-*linux*)
     6328          LD="${LD-ld} -m elf_i386"
     6329          ;;
     6330        ppc64-*linux*|powerpc64-*linux*)
     6331          LD="${LD-ld} -m elf32ppclinux"
     6332          ;;
     6333        s390x-*linux*)
     6334          LD="${LD-ld} -m elf_s390"
     6335          ;;
     6336        sparc64-*linux*)
     6337          LD="${LD-ld} -m elf32_sparc"
     6338          ;;
     6339      esac
     6340      ;;
     6341    *64-bit*)
     6342      case $host in
     6343        x86_64-*linux*)
     6344          LD="${LD-ld} -m elf_x86_64"
     6345          ;;
     6346        ppc*-*linux*|powerpc*-*linux*)
     6347          LD="${LD-ld} -m elf64ppc"
     6348          ;;
     6349        s390*-*linux*)
     6350          LD="${LD-ld} -m elf64_s390"
     6351          ;;
     6352        sparc*-*linux*)
     6353          LD="${LD-ld} -m elf64_sparc"
     6354          ;;
     6355      esac
     6356      ;;
     6357    esac
     6358  fi
     6359  rm -rf conftest*
     6360  ;;
     6361
     6362*-*-sco3.2v5*)
     6363  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
     6364  SAVE_CFLAGS="$CFLAGS"
     6365  CFLAGS="$CFLAGS -belf"
     6366  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
     6367echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
     6368if test "${lt_cv_cc_needs_belf+set}" = set; then
     6369  echo $ECHO_N "(cached) $ECHO_C" >&6
     6370else
     6371  ac_ext=c
     6372ac_cpp='$CPP $CPPFLAGS'
     6373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6375ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6376
     6377     cat >conftest.$ac_ext <<_ACEOF
     6378/* confdefs.h.  */
     6379_ACEOF
     6380cat confdefs.h >>conftest.$ac_ext
     6381cat >>conftest.$ac_ext <<_ACEOF
     6382/* end confdefs.h.  */
     6383
     6384int
     6385main ()
     6386{
     6387
     6388  ;
     6389  return 0;
     6390}
     6391_ACEOF
     6392rm -f conftest.$ac_objext conftest$ac_exeext
     6393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6394  (eval $ac_link) 2>conftest.er1
     6395  ac_status=$?
     6396  grep -v '^ *+' conftest.er1 >conftest.err
     6397  rm -f conftest.er1
     6398  cat conftest.err >&5
     6399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6400  (exit $ac_status); } &&
     6401         { ac_try='test -z "$ac_c_werror_flag"
     6402                         || test ! -s conftest.err'
     6403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6404  (eval $ac_try) 2>&5
     6405  ac_status=$?
     6406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6407  (exit $ac_status); }; } &&
     6408         { ac_try='test -s conftest$ac_exeext'
     6409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6410  (eval $ac_try) 2>&5
     6411  ac_status=$?
     6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6413  (exit $ac_status); }; }; then
     6414  lt_cv_cc_needs_belf=yes
     6415else
     6416  echo "$as_me: failed program was:" >&5
     6417sed 's/^/| /' conftest.$ac_ext >&5
     6418
     6419lt_cv_cc_needs_belf=no
     6420fi
     6421rm -f conftest.err conftest.$ac_objext \
     6422      conftest$ac_exeext conftest.$ac_ext
     6423     ac_ext=c
     6424ac_cpp='$CPP $CPPFLAGS'
     6425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6427ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6428
     6429fi
     6430echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
     6431echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
     6432  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     6433    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
     6434    CFLAGS="$SAVE_CFLAGS"
     6435  fi
     6436  ;;
     6437sparc*-*solaris*)
     6438  # Find out which ABI we are using.
     6439  echo 'int i;' > conftest.$ac_ext
     6440  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6441  (eval $ac_compile) 2>&5
     6442  ac_status=$?
     6443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6444  (exit $ac_status); }; then
     6445    case `/usr/bin/file conftest.o` in
     6446    *64-bit*)
     6447      case $lt_cv_prog_gnu_ld in
     6448      yes*) LD="${LD-ld} -m elf64_sparc" ;;
     6449      *)    LD="${LD-ld} -64" ;;
     6450      esac
     6451      ;;
     6452    esac
     6453  fi
     6454  rm -rf conftest*
     6455  ;;
     6456
     6457
     6458esac
     6459
     6460need_locks="$enable_libtool_lock"
     6461
     6462
     6463ac_ext=c
     6464ac_cpp='$CPP $CPPFLAGS'
     6465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6467ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6468echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     6469echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     6470# On Suns, sometimes $CPP names a directory.
     6471if test -n "$CPP" && test -d "$CPP"; then
     6472  CPP=
     6473fi
     6474if test -z "$CPP"; then
     6475  if test "${ac_cv_prog_CPP+set}" = set; then
     6476  echo $ECHO_N "(cached) $ECHO_C" >&6
     6477else
     6478      # Double quotes because CPP needs to be expanded
     6479    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     6480    do
     6481      ac_preproc_ok=false
     6482for ac_c_preproc_warn_flag in '' yes
     6483do
     6484  # Use a header file that comes with gcc, so configuring glibc
     6485  # with a fresh cross-compiler works.
     6486  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6487  # <limits.h> exists even on freestanding compilers.
     6488  # On the NeXT, cc -E runs the code through the compiler's parser,
     6489  # not just through cpp. "Syntax error" is here to catch this case.
     6490  cat >conftest.$ac_ext <<_ACEOF
     6491/* confdefs.h.  */
     6492_ACEOF
     6493cat confdefs.h >>conftest.$ac_ext
     6494cat >>conftest.$ac_ext <<_ACEOF
     6495/* end confdefs.h.  */
     6496#ifdef __STDC__
     6497# include <limits.h>
     6498#else
     6499# include <assert.h>
     6500#endif
     6501                     Syntax error
     6502_ACEOF
     6503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6504  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6505  ac_status=$?
     6506  grep -v '^ *+' conftest.er1 >conftest.err
     6507  rm -f conftest.er1
     6508  cat conftest.err >&5
     6509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6510  (exit $ac_status); } >/dev/null; then
     6511  if test -s conftest.err; then
     6512    ac_cpp_err=$ac_c_preproc_warn_flag
     6513    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6514  else
     6515    ac_cpp_err=
     6516  fi
     6517else
     6518  ac_cpp_err=yes
     6519fi
     6520if test -z "$ac_cpp_err"; then
     6521  :
     6522else
     6523  echo "$as_me: failed program was:" >&5
     6524sed 's/^/| /' conftest.$ac_ext >&5
     6525
     6526  # Broken: fails on valid input.
     6527continue
     6528fi
     6529rm -f conftest.err conftest.$ac_ext
     6530
     6531  # OK, works on sane cases.  Now check whether non-existent headers
     6532  # can be detected and how.
     6533  cat >conftest.$ac_ext <<_ACEOF
     6534/* confdefs.h.  */
     6535_ACEOF
     6536cat confdefs.h >>conftest.$ac_ext
     6537cat >>conftest.$ac_ext <<_ACEOF
     6538/* end confdefs.h.  */
     6539#include <ac_nonexistent.h>
     6540_ACEOF
     6541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6542  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6543  ac_status=$?
     6544  grep -v '^ *+' conftest.er1 >conftest.err
     6545  rm -f conftest.er1
     6546  cat conftest.err >&5
     6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6548  (exit $ac_status); } >/dev/null; then
     6549  if test -s conftest.err; then
     6550    ac_cpp_err=$ac_c_preproc_warn_flag
     6551    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6552  else
     6553    ac_cpp_err=
     6554  fi
     6555else
     6556  ac_cpp_err=yes
     6557fi
     6558if test -z "$ac_cpp_err"; then
     6559  # Broken: success on invalid input.
     6560continue
     6561else
     6562  echo "$as_me: failed program was:" >&5
     6563sed 's/^/| /' conftest.$ac_ext >&5
     6564
     6565  # Passes both tests.
     6566ac_preproc_ok=:
     6567break
     6568fi
     6569rm -f conftest.err conftest.$ac_ext
     6570
     6571done
     6572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     6573rm -f conftest.err conftest.$ac_ext
     6574if $ac_preproc_ok; then
     6575  break
     6576fi
     6577
     6578    done
     6579    ac_cv_prog_CPP=$CPP
     6580
     6581fi
     6582  CPP=$ac_cv_prog_CPP
     6583else
     6584  ac_cv_prog_CPP=$CPP
     6585fi
     6586echo "$as_me:$LINENO: result: $CPP" >&5
     6587echo "${ECHO_T}$CPP" >&6
     6588ac_preproc_ok=false
     6589for ac_c_preproc_warn_flag in '' yes
     6590do
     6591  # Use a header file that comes with gcc, so configuring glibc
     6592  # with a fresh cross-compiler works.
     6593  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6594  # <limits.h> exists even on freestanding compilers.
     6595  # On the NeXT, cc -E runs the code through the compiler's parser,
     6596  # not just through cpp. "Syntax error" is here to catch this case.
     6597  cat >conftest.$ac_ext <<_ACEOF
     6598/* confdefs.h.  */
     6599_ACEOF
     6600cat confdefs.h >>conftest.$ac_ext
     6601cat >>conftest.$ac_ext <<_ACEOF
     6602/* end confdefs.h.  */
     6603#ifdef __STDC__
     6604# include <limits.h>
     6605#else
     6606# include <assert.h>
     6607#endif
     6608                     Syntax error
     6609_ACEOF
     6610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6611  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6612  ac_status=$?
     6613  grep -v '^ *+' conftest.er1 >conftest.err
     6614  rm -f conftest.er1
     6615  cat conftest.err >&5
     6616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6617  (exit $ac_status); } >/dev/null; then
     6618  if test -s conftest.err; then
     6619    ac_cpp_err=$ac_c_preproc_warn_flag
     6620    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6621  else
     6622    ac_cpp_err=
     6623  fi
     6624else
     6625  ac_cpp_err=yes
     6626fi
     6627if test -z "$ac_cpp_err"; then
     6628  :
     6629else
     6630  echo "$as_me: failed program was:" >&5
     6631sed 's/^/| /' conftest.$ac_ext >&5
     6632
     6633  # Broken: fails on valid input.
     6634continue
     6635fi
     6636rm -f conftest.err conftest.$ac_ext
     6637
     6638  # OK, works on sane cases.  Now check whether non-existent headers
     6639  # can be detected and how.
     6640  cat >conftest.$ac_ext <<_ACEOF
     6641/* confdefs.h.  */
     6642_ACEOF
     6643cat confdefs.h >>conftest.$ac_ext
     6644cat >>conftest.$ac_ext <<_ACEOF
     6645/* end confdefs.h.  */
     6646#include <ac_nonexistent.h>
     6647_ACEOF
     6648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6649  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6650  ac_status=$?
     6651  grep -v '^ *+' conftest.er1 >conftest.err
     6652  rm -f conftest.er1
     6653  cat conftest.err >&5
     6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6655  (exit $ac_status); } >/dev/null; then
     6656  if test -s conftest.err; then
     6657    ac_cpp_err=$ac_c_preproc_warn_flag
     6658    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6659  else
     6660    ac_cpp_err=
     6661  fi
     6662else
     6663  ac_cpp_err=yes
     6664fi
     6665if test -z "$ac_cpp_err"; then
     6666  # Broken: success on invalid input.
     6667continue
     6668else
     6669  echo "$as_me: failed program was:" >&5
     6670sed 's/^/| /' conftest.$ac_ext >&5
     6671
     6672  # Passes both tests.
     6673ac_preproc_ok=:
     6674break
     6675fi
     6676rm -f conftest.err conftest.$ac_ext
     6677
     6678done
     6679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     6680rm -f conftest.err conftest.$ac_ext
     6681if $ac_preproc_ok; then
     6682  :
     6683else
     6684  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     6685See \`config.log' for more details." >&5
     6686echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     6687See \`config.log' for more details." >&2;}
     6688   { (exit 1); exit 1; }; }
     6689fi
     6690
     6691ac_ext=c
     6692ac_cpp='$CPP $CPPFLAGS'
     6693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6695ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6696
     6697
     6698echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     6699echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     6700if test "${ac_cv_header_stdc+set}" = set; then
     6701  echo $ECHO_N "(cached) $ECHO_C" >&6
     6702else
     6703  cat >conftest.$ac_ext <<_ACEOF
     6704/* confdefs.h.  */
     6705_ACEOF
     6706cat confdefs.h >>conftest.$ac_ext
     6707cat >>conftest.$ac_ext <<_ACEOF
     6708/* end confdefs.h.  */
     6709#include <stdlib.h>
     6710#include <stdarg.h>
     6711#include <string.h>
     6712#include <float.h>
     6713
     6714int
     6715main ()
     6716{
     6717
     6718  ;
     6719  return 0;
     6720}
     6721_ACEOF
     6722rm -f conftest.$ac_objext
     6723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6724  (eval $ac_compile) 2>conftest.er1
     6725  ac_status=$?
     6726  grep -v '^ *+' conftest.er1 >conftest.err
     6727  rm -f conftest.er1
     6728  cat conftest.err >&5
     6729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6730  (exit $ac_status); } &&
     6731         { ac_try='test -z "$ac_c_werror_flag"
     6732                         || test ! -s conftest.err'
     6733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6734  (eval $ac_try) 2>&5
     6735  ac_status=$?
     6736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6737  (exit $ac_status); }; } &&
     6738         { ac_try='test -s conftest.$ac_objext'
     6739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6740  (eval $ac_try) 2>&5
     6741  ac_status=$?
     6742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6743  (exit $ac_status); }; }; then
     6744  ac_cv_header_stdc=yes
     6745else
     6746  echo "$as_me: failed program was:" >&5
     6747sed 's/^/| /' conftest.$ac_ext >&5
     6748
     6749ac_cv_header_stdc=no
     6750fi
     6751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6752
     6753if test $ac_cv_header_stdc = yes; then
     6754  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     6755  cat >conftest.$ac_ext <<_ACEOF
     6756/* confdefs.h.  */
     6757_ACEOF
     6758cat confdefs.h >>conftest.$ac_ext
     6759cat >>conftest.$ac_ext <<_ACEOF
     6760/* end confdefs.h.  */
     6761#include <string.h>
     6762
     6763_ACEOF
     6764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6765  $EGREP "memchr" >/dev/null 2>&1; then
     6766  :
     6767else
     6768  ac_cv_header_stdc=no
     6769fi
     6770rm -f conftest*
     6771
     6772fi
     6773
     6774if test $ac_cv_header_stdc = yes; then
     6775  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     6776  cat >conftest.$ac_ext <<_ACEOF
     6777/* confdefs.h.  */
     6778_ACEOF
     6779cat confdefs.h >>conftest.$ac_ext
     6780cat >>conftest.$ac_ext <<_ACEOF
     6781/* end confdefs.h.  */
     6782#include <stdlib.h>
     6783
     6784_ACEOF
     6785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6786  $EGREP "free" >/dev/null 2>&1; then
     6787  :
     6788else
     6789  ac_cv_header_stdc=no
     6790fi
     6791rm -f conftest*
     6792
     6793fi
     6794
     6795if test $ac_cv_header_stdc = yes; then
     6796  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     6797  if test "$cross_compiling" = yes; then
     6798  :
     6799else
     6800  cat >conftest.$ac_ext <<_ACEOF
     6801/* confdefs.h.  */
     6802_ACEOF
     6803cat confdefs.h >>conftest.$ac_ext
     6804cat >>conftest.$ac_ext <<_ACEOF
     6805/* end confdefs.h.  */
     6806#include <ctype.h>
     6807#if ((' ' & 0x0FF) == 0x020)
     6808# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     6809# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     6810#else
     6811# define ISLOWER(c) \
     6812                   (('a' <= (c) && (c) <= 'i') \
     6813                     || ('j' <= (c) && (c) <= 'r') \
     6814                     || ('s' <= (c) && (c) <= 'z'))
     6815# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     6816#endif
     6817
     6818#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     6819int
     6820main ()
     6821{
     6822  int i;
     6823  for (i = 0; i < 256; i++)
     6824    if (XOR (islower (i), ISLOWER (i))
     6825        || toupper (i) != TOUPPER (i))
     6826      exit(2);
     6827  exit (0);
     6828}
     6829_ACEOF
     6830rm -f conftest$ac_exeext
     6831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6832  (eval $ac_link) 2>&5
     6833  ac_status=$?
     6834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6835  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     6836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6837  (eval $ac_try) 2>&5
     6838  ac_status=$?
     6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6840  (exit $ac_status); }; }; then
     6841  :
     6842else
     6843  echo "$as_me: program exited with status $ac_status" >&5
     6844echo "$as_me: failed program was:" >&5
     6845sed 's/^/| /' conftest.$ac_ext >&5
     6846
     6847( exit $ac_status )
     6848ac_cv_header_stdc=no
     6849fi
     6850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6851fi
     6852fi
     6853fi
     6854echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     6855echo "${ECHO_T}$ac_cv_header_stdc" >&6
     6856if test $ac_cv_header_stdc = yes; then
     6857
     6858cat >>confdefs.h <<\_ACEOF
     6859#define STDC_HEADERS 1
     6860_ACEOF
     6861
     6862fi
     6863
     6864# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     6865
     6866
     6867
     6868
     6869
     6870
     6871
     6872
     6873
     6874for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     6875                  inttypes.h stdint.h unistd.h
     6876do
     6877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6878echo "$as_me:$LINENO: checking for $ac_header" >&5
     6879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6880if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6881  echo $ECHO_N "(cached) $ECHO_C" >&6
     6882else
     6883  cat >conftest.$ac_ext <<_ACEOF
     6884/* confdefs.h.  */
     6885_ACEOF
     6886cat confdefs.h >>conftest.$ac_ext
     6887cat >>conftest.$ac_ext <<_ACEOF
     6888/* end confdefs.h.  */
     6889$ac_includes_default
     6890
     6891#include <$ac_header>
     6892_ACEOF
     6893rm -f conftest.$ac_objext
     6894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6895  (eval $ac_compile) 2>conftest.er1
     6896  ac_status=$?
     6897  grep -v '^ *+' conftest.er1 >conftest.err
     6898  rm -f conftest.er1
     6899  cat conftest.err >&5
     6900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6901  (exit $ac_status); } &&
     6902         { ac_try='test -z "$ac_c_werror_flag"
     6903                         || test ! -s conftest.err'
     6904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6905  (eval $ac_try) 2>&5
     6906  ac_status=$?
     6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6908  (exit $ac_status); }; } &&
     6909         { ac_try='test -s conftest.$ac_objext'
     6910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6911  (eval $ac_try) 2>&5
     6912  ac_status=$?
     6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6914  (exit $ac_status); }; }; then
     6915  eval "$as_ac_Header=yes"
     6916else
     6917  echo "$as_me: failed program was:" >&5
     6918sed 's/^/| /' conftest.$ac_ext >&5
     6919
     6920eval "$as_ac_Header=no"
     6921fi
     6922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6923fi
     6924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6926if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6927  cat >>confdefs.h <<_ACEOF
     6928#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6929_ACEOF
     6930
     6931fi
     6932
     6933done
     6934
     6935
     6936
     6937for ac_header in dlfcn.h
     6938do
     6939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6940if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6941  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6943if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6944  echo $ECHO_N "(cached) $ECHO_C" >&6
     6945fi
     6946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6948else
     6949  # Is the header compilable?
     6950echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6952cat >conftest.$ac_ext <<_ACEOF
     6953/* confdefs.h.  */
     6954_ACEOF
     6955cat confdefs.h >>conftest.$ac_ext
     6956cat >>conftest.$ac_ext <<_ACEOF
     6957/* end confdefs.h.  */
     6958$ac_includes_default
     6959#include <$ac_header>
     6960_ACEOF
     6961rm -f conftest.$ac_objext
     6962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6963  (eval $ac_compile) 2>conftest.er1
     6964  ac_status=$?
     6965  grep -v '^ *+' conftest.er1 >conftest.err
     6966  rm -f conftest.er1
     6967  cat conftest.err >&5
     6968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6969  (exit $ac_status); } &&
     6970         { ac_try='test -z "$ac_c_werror_flag"
     6971                         || test ! -s conftest.err'
     6972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6973  (eval $ac_try) 2>&5
     6974  ac_status=$?
     6975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6976  (exit $ac_status); }; } &&
     6977         { ac_try='test -s conftest.$ac_objext'
     6978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6979  (eval $ac_try) 2>&5
     6980  ac_status=$?
     6981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6982  (exit $ac_status); }; }; then
     6983  ac_header_compiler=yes
     6984else
     6985  echo "$as_me: failed program was:" >&5
     6986sed 's/^/| /' conftest.$ac_ext >&5
     6987
     6988ac_header_compiler=no
     6989fi
     6990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6992echo "${ECHO_T}$ac_header_compiler" >&6
     6993
     6994# Is the header present?
     6995echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6997cat >conftest.$ac_ext <<_ACEOF
     6998/* confdefs.h.  */
     6999_ACEOF
     7000cat confdefs.h >>conftest.$ac_ext
     7001cat >>conftest.$ac_ext <<_ACEOF
     7002/* end confdefs.h.  */
     7003#include <$ac_header>
     7004_ACEOF
     7005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     7006  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     7007  ac_status=$?
     7008  grep -v '^ *+' conftest.er1 >conftest.err
     7009  rm -f conftest.er1
     7010  cat conftest.err >&5
     7011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7012  (exit $ac_status); } >/dev/null; then
     7013  if test -s conftest.err; then
     7014    ac_cpp_err=$ac_c_preproc_warn_flag
     7015    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     7016  else
     7017    ac_cpp_err=
     7018  fi
     7019else
     7020  ac_cpp_err=yes
     7021fi
     7022if test -z "$ac_cpp_err"; then
     7023  ac_header_preproc=yes
     7024else
     7025  echo "$as_me: failed program was:" >&5
     7026sed 's/^/| /' conftest.$ac_ext >&5
     7027
     7028  ac_header_preproc=no
     7029fi
     7030rm -f conftest.err conftest.$ac_ext
     7031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     7032echo "${ECHO_T}$ac_header_preproc" >&6
     7033
     7034# So?  What about this header?
     7035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     7036  yes:no: )
     7037    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     7038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     7039    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     7040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     7041    ac_header_preproc=yes
     7042    ;;
     7043  no:yes:* )
     7044    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     7045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     7046    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     7047echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     7048    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     7049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     7050    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     7051echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     7052    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     7053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     7054    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     7055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     7056    (
     7057      cat <<\_ASBOX
     7058## ----------------------------------------- ##
     7059## Report this to coin-cbc@lists.coin-or.org ##
     7060## ----------------------------------------- ##
     7061_ASBOX
     7062    ) |
     7063      sed "s/^/$as_me: WARNING:     /" >&2
     7064    ;;
     7065esac
     7066echo "$as_me:$LINENO: checking for $ac_header" >&5
     7067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7068if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7069  echo $ECHO_N "(cached) $ECHO_C" >&6
     7070else
     7071  eval "$as_ac_Header=\$ac_header_preproc"
     7072fi
     7073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7075
     7076fi
     7077if test `eval echo '${'$as_ac_Header'}'` = yes; then
     7078  cat >>confdefs.h <<_ACEOF
     7079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     7080_ACEOF
     7081
     7082fi
     7083
     7084done
     7085
     7086
     7087
     7088if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     7089    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     7090    (test "X$CXX" != "Xg++"))) ; then
     7091  ac_ext=cc
     7092ac_cpp='$CXXCPP $CPPFLAGS'
     7093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     7096echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
     7097echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
     7098if test -z "$CXXCPP"; then
     7099  if test "${ac_cv_prog_CXXCPP+set}" = set; then
     7100  echo $ECHO_N "(cached) $ECHO_C" >&6
     7101else
     7102      # Double quotes because CXXCPP needs to be expanded
     7103    for CXXCPP in "$CXX -E" "/lib/cpp"
     7104    do
     7105      ac_preproc_ok=false
     7106for ac_cxx_preproc_warn_flag in '' yes
     7107do
     7108  # Use a header file that comes with gcc, so configuring glibc
     7109  # with a fresh cross-compiler works.
     7110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     7111  # <limits.h> exists even on freestanding compilers.
     7112  # On the NeXT, cc -E runs the code through the compiler's parser,
     7113  # not just through cpp. "Syntax error" is here to catch this case.
     7114  cat >conftest.$ac_ext <<_ACEOF
     7115/* confdefs.h.  */
     7116_ACEOF
     7117cat confdefs.h >>conftest.$ac_ext
     7118cat >>conftest.$ac_ext <<_ACEOF
     7119/* end confdefs.h.  */
     7120#ifdef __STDC__
     7121# include <limits.h>
     7122#else
     7123# include <assert.h>
     7124#endif
     7125                     Syntax error
     7126_ACEOF
     7127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     7128  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     7129  ac_status=$?
     7130  grep -v '^ *+' conftest.er1 >conftest.err
     7131  rm -f conftest.er1
     7132  cat conftest.err >&5
     7133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7134  (exit $ac_status); } >/dev/null; then
     7135  if test -s conftest.err; then
     7136    ac_cpp_err=$ac_cxx_preproc_warn_flag
     7137    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     7138  else
     7139    ac_cpp_err=
     7140  fi
     7141else
     7142  ac_cpp_err=yes
     7143fi
     7144if test -z "$ac_cpp_err"; then
     7145  :
     7146else
     7147  echo "$as_me: failed program was:" >&5
     7148sed 's/^/| /' conftest.$ac_ext >&5
     7149
     7150  # Broken: fails on valid input.
     7151continue
     7152fi
     7153rm -f conftest.err conftest.$ac_ext
     7154
     7155  # OK, works on sane cases.  Now check whether non-existent headers
     7156  # can be detected and how.
     7157  cat >conftest.$ac_ext <<_ACEOF
     7158/* confdefs.h.  */
     7159_ACEOF
     7160cat confdefs.h >>conftest.$ac_ext
     7161cat >>conftest.$ac_ext <<_ACEOF
     7162/* end confdefs.h.  */
     7163#include <ac_nonexistent.h>
     7164_ACEOF
     7165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     7166  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     7167  ac_status=$?
     7168  grep -v '^ *+' conftest.er1 >conftest.err
     7169  rm -f conftest.er1
     7170  cat conftest.err >&5
     7171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7172  (exit $ac_status); } >/dev/null; then
     7173  if test -s conftest.err; then
     7174    ac_cpp_err=$ac_cxx_preproc_warn_flag
     7175    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     7176  else
     7177    ac_cpp_err=
     7178  fi
     7179else
     7180  ac_cpp_err=yes
     7181fi
     7182if test -z "$ac_cpp_err"; then
     7183  # Broken: success on invalid input.
     7184continue
     7185else
     7186  echo "$as_me: failed program was:" >&5
     7187sed 's/^/| /' conftest.$ac_ext >&5
     7188
     7189  # Passes both tests.
     7190ac_preproc_ok=:
     7191break
     7192fi
     7193rm -f conftest.err conftest.$ac_ext
     7194
     7195done
     7196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     7197rm -f conftest.err conftest.$ac_ext
     7198if $ac_preproc_ok; then
     7199  break
     7200fi
     7201
     7202    done
     7203    ac_cv_prog_CXXCPP=$CXXCPP
     7204
     7205fi
     7206  CXXCPP=$ac_cv_prog_CXXCPP
     7207else
     7208  ac_cv_prog_CXXCPP=$CXXCPP
     7209fi
     7210echo "$as_me:$LINENO: result: $CXXCPP" >&5
     7211echo "${ECHO_T}$CXXCPP" >&6
     7212ac_preproc_ok=false
     7213for ac_cxx_preproc_warn_flag in '' yes
     7214do
     7215  # Use a header file that comes with gcc, so configuring glibc
     7216  # with a fresh cross-compiler works.
     7217  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     7218  # <limits.h> exists even on freestanding compilers.
     7219  # On the NeXT, cc -E runs the code through the compiler's parser,
     7220  # not just through cpp. "Syntax error" is here to catch this case.
     7221  cat >conftest.$ac_ext <<_ACEOF
     7222/* confdefs.h.  */
     7223_ACEOF
     7224cat confdefs.h >>conftest.$ac_ext
     7225cat >>conftest.$ac_ext <<_ACEOF
     7226/* end confdefs.h.  */
     7227#ifdef __STDC__
     7228# include <limits.h>
     7229#else
     7230# include <assert.h>
     7231#endif
     7232                     Syntax error
     7233_ACEOF
     7234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     7235  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     7236  ac_status=$?
     7237  grep -v '^ *+' conftest.er1 >conftest.err
     7238  rm -f conftest.er1
     7239  cat conftest.err >&5
     7240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7241  (exit $ac_status); } >/dev/null; then
     7242  if test -s conftest.err; then
     7243    ac_cpp_err=$ac_cxx_preproc_warn_flag
     7244    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     7245  else
     7246    ac_cpp_err=
     7247  fi
     7248else
     7249  ac_cpp_err=yes
     7250fi
     7251if test -z "$ac_cpp_err"; then
     7252  :
     7253else
     7254  echo "$as_me: failed program was:" >&5
     7255sed 's/^/| /' conftest.$ac_ext >&5
     7256
     7257  # Broken: fails on valid input.
     7258continue
     7259fi
     7260rm -f conftest.err conftest.$ac_ext
     7261
     7262  # OK, works on sane cases.  Now check whether non-existent headers
     7263  # can be detected and how.
     7264  cat >conftest.$ac_ext <<_ACEOF
     7265/* confdefs.h.  */
     7266_ACEOF
     7267cat confdefs.h >>conftest.$ac_ext
     7268cat >>conftest.$ac_ext <<_ACEOF
     7269/* end confdefs.h.  */
     7270#include <ac_nonexistent.h>
     7271_ACEOF
     7272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     7273  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     7274  ac_status=$?
     7275  grep -v '^ *+' conftest.er1 >conftest.err
     7276  rm -f conftest.er1
     7277  cat conftest.err >&5
     7278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7279  (exit $ac_status); } >/dev/null; then
     7280  if test -s conftest.err; then
     7281    ac_cpp_err=$ac_cxx_preproc_warn_flag
     7282    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     7283  else
     7284    ac_cpp_err=
     7285  fi
     7286else
     7287  ac_cpp_err=yes
     7288fi
     7289if test -z "$ac_cpp_err"; then
     7290  # Broken: success on invalid input.
     7291continue
     7292else
     7293  echo "$as_me: failed program was:" >&5
     7294sed 's/^/| /' conftest.$ac_ext >&5
     7295
     7296  # Passes both tests.
     7297ac_preproc_ok=:
     7298break
     7299fi
     7300rm -f conftest.err conftest.$ac_ext
     7301
     7302done
     7303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     7304rm -f conftest.err conftest.$ac_ext
     7305if $ac_preproc_ok; then
     7306  :
     7307else
     7308  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     7309See \`config.log' for more details." >&5
     7310echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     7311See \`config.log' for more details." >&2;}
     7312   { (exit 1); exit 1; }; }
     7313fi
     7314
     7315ac_ext=cc
     7316ac_cpp='$CXXCPP $CPPFLAGS'
     7317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     7320
     7321fi
     7322
     7323
     7324# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
     7325
     7326# find the maximum length of command line arguments
     7327echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
     7328echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
     7329if test "${lt_cv_sys_max_cmd_len+set}" = set; then
     7330  echo $ECHO_N "(cached) $ECHO_C" >&6
     7331else
     7332    i=0
     7333  teststring="ABCD"
     7334
     7335  case $build_os in
     7336  msdosdjgpp*)
     7337    # On DJGPP, this test can blow up pretty badly due to problems in libc
     7338    # (any single argument exceeding 2000 bytes causes a buffer overrun
     7339    # during glob expansion).  Even if it were fixed, the result of this
     7340    # check would be larger than it should be.
     7341    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
     7342    ;;
     7343
     7344  gnu*)
     7345    # Under GNU Hurd, this test is not required because there is
     7346    # no limit to the length of command line arguments.
     7347    # Libtool will interpret -1 as no limit whatsoever
     7348    lt_cv_sys_max_cmd_len=-1;
     7349    ;;
     7350
     7351  cygwin* | mingw*)
     7352    # On Win9x/ME, this test blows up -- it succeeds, but takes
     7353    # about 5 minutes as the teststring grows exponentially.
     7354    # Worse, since 9x/ME are not pre-emptively multitasking,
     7355    # you end up with a "frozen" computer, even though with patience
     7356    # the test eventually succeeds (with a max line length of 256k).
     7357    # Instead, let's just punt: use the minimum linelength reported by
     7358    # all of the supported platforms: 8192 (on NT/2K/XP).
     7359    lt_cv_sys_max_cmd_len=8192;
     7360    ;;
     7361
     7362  amigaos*)
     7363    # On AmigaOS with pdksh, this test takes hours, literally.
     7364    # So we just punt and use a minimum line length of 8192.
     7365    lt_cv_sys_max_cmd_len=8192;
     7366    ;;
     7367
     7368  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
     7369    # This has been around since 386BSD, at least.  Likely further.
     7370    if test -x /sbin/sysctl; then
     7371      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
     7372    elif test -x /usr/sbin/sysctl; then
     7373      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
     7374    else
     7375      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
     7376    fi
     7377    # And add a safety zone
     7378    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     7379    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     7380    ;;
     7381
     7382  interix*)
     7383    # We know the value 262144 and hardcode it with a safety zone (like BSD)
     7384    lt_cv_sys_max_cmd_len=196608
     7385    ;;
     7386
     7387  osf*)
     7388    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     7389    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
     7390    # nice to cause kernel panics so lets avoid the loop below.
     7391    # First set a reasonable default.
     7392    lt_cv_sys_max_cmd_len=16384
     7393    #
     7394    if test -x /sbin/sysconfig; then
     7395      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
     7396        *1*) lt_cv_sys_max_cmd_len=-1 ;;
     7397      esac
     7398    fi
     7399    ;;
     7400  sco3.2v5*)
     7401    lt_cv_sys_max_cmd_len=102400
     7402    ;;
     7403  sysv5* | sco5v6* | sysv4.2uw2*)
     7404    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
     7405    if test -n "$kargmax"; then
     7406      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
     7407    else
     7408      lt_cv_sys_max_cmd_len=32768
     7409    fi
     7410    ;;
     7411  *)
     7412    # If test is not a shell built-in, we'll probably end up computing a
     7413    # maximum length that is only half of the actual maximum length, but
     7414    # we can't tell.
     7415    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     7416    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
     7417               = "XX$teststring") >/dev/null 2>&1 &&
     7418            new_result=`expr "X$teststring" : ".*" 2>&1` &&
     7419            lt_cv_sys_max_cmd_len=$new_result &&
     7420            test $i != 17 # 1/2 MB should be enough
     7421    do
     7422      i=`expr $i + 1`
     7423      teststring=$teststring$teststring
     7424    done
     7425    teststring=
     7426    # Add a significant safety factor because C++ compilers can tack on massive
     7427    # amounts of additional arguments before passing them to the linker.
     7428    # It appears as though 1/2 is a usable value.
     7429    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     7430    ;;
     7431  esac
     7432
     7433fi
     7434
     7435if test -n $lt_cv_sys_max_cmd_len ; then
     7436  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
     7437echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
     7438else
     7439  echo "$as_me:$LINENO: result: none" >&5
     7440echo "${ECHO_T}none" >&6
     7441fi
     7442
     7443
     7444
     7445
     7446# Check for command to grab the raw symbol name followed by C symbol from nm.
     7447echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
     7448echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
     7449if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
     7450  echo $ECHO_N "(cached) $ECHO_C" >&6
     7451else
     7452
     7453# These are sane defaults that work on at least a few old systems.
     7454# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
     7455
     7456# Character class describing NM global symbol codes.
     7457symcode='[BCDEGRST]'
     7458
     7459# Regexp to match symbols that can be accessed directly from C.
     7460sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
     7461
     7462# Transform an extracted symbol line into a proper C declaration
     7463lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
     7464
     7465# Transform an extracted symbol line into symbol name and symbol address
     7466lt_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'"
     7467
     7468# Define system-specific variables.
     7469case $host_os in
     7470aix*)
     7471  symcode='[BCDT]'
     7472  ;;
     7473cygwin* | mingw* | pw32*)
     7474  symcode='[ABCDGISTW]'
     7475  ;;
     7476hpux*) # Its linker distinguishes data from code symbols
     7477  if test "$host_cpu" = ia64; then
     7478    symcode='[ABCDEGRST]'
     7479  fi
     7480  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     7481  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'"
     7482  ;;
     7483linux*)
     7484  if test "$host_cpu" = ia64; then
     7485    symcode='[ABCDGIRSTW]'
     7486    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     7487    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'"
     7488  fi
     7489  ;;
     7490irix* | nonstopux*)
     7491  symcode='[BCDEGRST]'
     7492  ;;
     7493osf*)
     7494  symcode='[BCDEGQRST]'
     7495  ;;
     7496solaris*)
     7497  symcode='[BDRT]'
     7498  ;;
     7499sco3.2v5*)
     7500  symcode='[DT]'
     7501  ;;
     7502sysv4.2uw2*)
     7503  symcode='[DT]'
     7504  ;;
     7505sysv5* | sco5v6* | unixware* | OpenUNIX*)
     7506  symcode='[ABDT]'
     7507  ;;
     7508sysv4)
     7509  symcode='[DFNSTU]'
     7510  ;;
     7511esac
     7512
     7513# Handle CRLF in mingw tool chain
     7514opt_cr=
     7515case $build_os in
     7516mingw*)
     7517  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     7518  ;;
     7519esac
     7520
     7521# If we're using GNU nm, then use its standard symbol codes.
     7522case `$NM -V 2>&1` in
     7523*GNU* | *'with BFD'*)
     7524  symcode='[ABCDGIRSTW]' ;;
     7525esac
     7526
     7527# Try without a prefix undercore, then with it.
     7528for ac_symprfx in "" "_"; do
     7529
     7530  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
     7531  symxfrm="\\1 $ac_symprfx\\2 \\2"
     7532
     7533  # Write the raw and C identifiers.
     7534  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
     7535
     7536  # Check to see that the pipe works correctly.
     7537  pipe_works=no
     7538
     7539  rm -f conftest*
     7540  cat > conftest.$ac_ext <<EOF
     7541#ifdef __cplusplus
     7542extern "C" {
     7543#endif
     7544char nm_test_var;
     7545void nm_test_func(){}
     7546#ifdef __cplusplus
     7547}
     7548#endif
     7549int main(){nm_test_var='a';nm_test_func();return(0);}
     7550EOF
     7551
     7552  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7553  (eval $ac_compile) 2>&5
     7554  ac_status=$?
     7555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7556  (exit $ac_status); }; then
     7557    # Now try to grab the symbols.
     7558    nlist=conftest.nm
     7559    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
     7560  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
     7561  ac_status=$?
     7562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7563  (exit $ac_status); } && test -s "$nlist"; then
     7564      # Try sorting and uniquifying the output.
     7565      if sort "$nlist" | uniq > "$nlist"T; then
     7566        mv -f "$nlist"T "$nlist"
     7567      else
     7568        rm -f "$nlist"T
     7569      fi
     7570
     7571      # Make sure that we snagged all the symbols we need.
     7572      if grep ' nm_test_var$' "$nlist" >/dev/null; then
     7573        if grep ' nm_test_func$' "$nlist" >/dev/null; then
     7574          cat <<EOF > conftest.$ac_ext
     7575#ifdef __cplusplus
     7576extern "C" {
     7577#endif
     7578
     7579EOF
     7580          # Now generate the symbol file.
     7581          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
     7582
     7583          cat <<EOF >> conftest.$ac_ext
     7584#if defined (__STDC__) && __STDC__
     7585# define lt_ptr_t void *
     7586#else
     7587# define lt_ptr_t char *
     7588# define const
     7589#endif
     7590
     7591/* The mapping between symbol names and symbols. */
     7592const struct {
     7593  const char *name;
     7594  lt_ptr_t address;
     7595}
     7596lt_preloaded_symbols[] =
     7597{
     7598EOF
     7599          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
     7600          cat <<\EOF >> conftest.$ac_ext
     7601  {0, (lt_ptr_t) 0}
     7602};
     7603
     7604#ifdef __cplusplus
     7605}
     7606#endif
     7607EOF
     7608          # Now try linking the two files.
     7609          mv conftest.$ac_objext conftstm.$ac_objext
     7610          lt_save_LIBS="$LIBS"
     7611          lt_save_CFLAGS="$CFLAGS"
     7612          LIBS="conftstm.$ac_objext"
     7613          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
     7614          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7615  (eval $ac_link) 2>&5
     7616  ac_status=$?
     7617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7618  (exit $ac_status); } && test -s conftest${ac_exeext}; then
     7619            pipe_works=yes
     7620          fi
     7621          LIBS="$lt_save_LIBS"
     7622          CFLAGS="$lt_save_CFLAGS"
     7623        else
     7624          echo "cannot find nm_test_func in $nlist" >&5
     7625        fi
     7626      else
     7627        echo "cannot find nm_test_var in $nlist" >&5
     7628      fi
     7629    else
     7630      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
     7631    fi
     7632  else
     7633    echo "$progname: failed program was:" >&5
     7634    cat conftest.$ac_ext >&5
     7635  fi
     7636  rm -f conftest* conftst*
     7637
     7638  # Do not use the global_symbol_pipe unless it works.
     7639  if test "$pipe_works" = yes; then
     7640    break
     7641  else
     7642    lt_cv_sys_global_symbol_pipe=
     7643  fi
     7644done
     7645
     7646fi
     7647
     7648if test -z "$lt_cv_sys_global_symbol_pipe"; then
     7649  lt_cv_sys_global_symbol_to_cdecl=
     7650fi
     7651if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
     7652  echo "$as_me:$LINENO: result: failed" >&5
     7653echo "${ECHO_T}failed" >&6
     7654else
     7655  echo "$as_me:$LINENO: result: ok" >&5
     7656echo "${ECHO_T}ok" >&6
     7657fi
     7658
     7659echo "$as_me:$LINENO: checking for objdir" >&5
     7660echo $ECHO_N "checking for objdir... $ECHO_C" >&6
     7661if test "${lt_cv_objdir+set}" = set; then
     7662  echo $ECHO_N "(cached) $ECHO_C" >&6
     7663else
     7664  rm -f .libs 2>/dev/null
     7665mkdir .libs 2>/dev/null
     7666if test -d .libs; then
     7667  lt_cv_objdir=.libs
     7668else
     7669  # MS-DOS does not allow filenames that begin with a dot.
     7670  lt_cv_objdir=_libs
     7671fi
     7672rmdir .libs 2>/dev/null
     7673fi
     7674echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
     7675echo "${ECHO_T}$lt_cv_objdir" >&6
     7676objdir=$lt_cv_objdir
     7677
     7678
     7679
     7680
     7681
     7682case $host_os in
     7683aix3*)
     7684  # AIX sometimes has problems with the GCC collect2 program.  For some
     7685  # reason, if we set the COLLECT_NAMES environment variable, the problems
     7686  # vanish in a puff of smoke.
     7687  if test "X${COLLECT_NAMES+set}" != Xset; then
     7688    COLLECT_NAMES=
     7689    export COLLECT_NAMES
     7690  fi
     7691  ;;
     7692esac
     7693
     7694# Sed substitution that helps us do robust quoting.  It backslashifies
     7695# metacharacters that are still active within double-quoted strings.
     7696Xsed='sed -e 1s/^X//'
     7697sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
     7698
     7699# Same as above, but do not quote variable references.
     7700double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
     7701
     7702# Sed substitution to delay expansion of an escaped shell variable in a
     7703# double_quote_subst'ed string.
     7704delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     7705
     7706# Sed substitution to avoid accidental globbing in evaled expressions
     7707no_glob_subst='s/\*/\\\*/g'
     7708
     7709# Constants:
     7710rm="rm -f"
     7711
     7712# Global variables:
     7713default_ofile=libtool
     7714can_build_shared=yes
     7715
     7716# All known linkers require a `.a' archive for static linking (except MSVC,
     7717# which needs '.lib').
     7718libext=a
     7719ltmain="$ac_aux_dir/ltmain.sh"
     7720ofile="$default_ofile"
     7721with_gnu_ld="$lt_cv_prog_gnu_ld"
     7722
     7723if test -n "$ac_tool_prefix"; then
     7724  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
     7725set dummy ${ac_tool_prefix}ar; ac_word=$2
     7726echo "$as_me:$LINENO: checking for $ac_word" >&5
     7727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     7728if test "${ac_cv_prog_AR+set}" = set; then
     7729  echo $ECHO_N "(cached) $ECHO_C" >&6
     7730else
     7731  if test -n "$AR"; then
     7732  ac_cv_prog_AR="$AR" # Let the user override the test.
     7733else
     7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7735for as_dir in $PATH
     7736do
     7737  IFS=$as_save_IFS
     7738  test -z "$as_dir" && as_dir=.
     7739  for ac_exec_ext in '' $ac_executable_extensions; do
     7740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7741    ac_cv_prog_AR="${ac_tool_prefix}ar"
     7742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7743    break 2
     7744  fi
     7745done
     7746done
     7747
     7748fi
     7749fi
     7750AR=$ac_cv_prog_AR
     7751if test -n "$AR"; then
     7752  echo "$as_me:$LINENO: result: $AR" >&5
     7753echo "${ECHO_T}$AR" >&6
     7754else
     7755  echo "$as_me:$LINENO: result: no" >&5
     7756echo "${ECHO_T}no" >&6
     7757fi
     7758
     7759fi
     7760if test -z "$ac_cv_prog_AR"; then
     7761  ac_ct_AR=$AR
     7762  # Extract the first word of "ar", so it can be a program name with args.
     7763set dummy ar; ac_word=$2
     7764echo "$as_me:$LINENO: checking for $ac_word" >&5
     7765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     7766if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
     7767  echo $ECHO_N "(cached) $ECHO_C" >&6
     7768else
     7769  if test -n "$ac_ct_AR"; then
     7770  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
     7771else
     7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7773for as_dir in $PATH
     7774do
     7775  IFS=$as_save_IFS
     7776  test -z "$as_dir" && as_dir=.
     7777  for ac_exec_ext in '' $ac_executable_extensions; do
     7778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7779    ac_cv_prog_ac_ct_AR="ar"
     7780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7781    break 2
     7782  fi
     7783done
     7784done
     7785
     7786  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
     7787fi
     7788fi
     7789ac_ct_AR=$ac_cv_prog_ac_ct_AR
     7790if test -n "$ac_ct_AR"; then
     7791  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
     7792echo "${ECHO_T}$ac_ct_AR" >&6
     7793else
     7794  echo "$as_me:$LINENO: result: no" >&5
     7795echo "${ECHO_T}no" >&6
     7796fi
     7797
     7798  AR=$ac_ct_AR
     7799else
     7800  AR="$ac_cv_prog_AR"
     7801fi
     7802
     7803if test -n "$ac_tool_prefix"; then
     7804  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     7805set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     7806echo "$as_me:$LINENO: checking for $ac_word" >&5
     7807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     7808if test "${ac_cv_prog_RANLIB+set}" = set; then
     7809  echo $ECHO_N "(cached) $ECHO_C" >&6
     7810else
     7811  if test -n "$RANLIB"; then
     7812  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     7813else
     7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7815for as_dir in $PATH
     7816do
     7817  IFS=$as_save_IFS
     7818  test -z "$as_dir" && as_dir=.
     7819  for ac_exec_ext in '' $ac_executable_extensions; do
     7820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7821    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     7822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7823    break 2
     7824  fi
     7825done
     7826done
     7827
     7828fi
     7829fi
     7830RANLIB=$ac_cv_prog_RANLIB
     7831if test -n "$RANLIB"; then
     7832  echo "$as_me:$LINENO: result: $RANLIB" >&5
     7833echo "${ECHO_T}$RANLIB" >&6
     7834else
     7835  echo "$as_me:$LINENO: result: no" >&5
     7836echo "${ECHO_T}no" >&6
     7837fi
     7838
     7839fi
     7840if test -z "$ac_cv_prog_RANLIB"; then
     7841  ac_ct_RANLIB=$RANLIB
     7842  # Extract the first word of "ranlib", so it can be a program name with args.
     7843set dummy ranlib; ac_word=$2
     7844echo "$as_me:$LINENO: checking for $ac_word" >&5
     7845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     7846if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     7847  echo $ECHO_N "(cached) $ECHO_C" >&6
     7848else
     7849  if test -n "$ac_ct_RANLIB"; then
     7850  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     7851else
     7852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7853for as_dir in $PATH
     7854do
     7855  IFS=$as_save_IFS
     7856  test -z "$as_dir" && as_dir=.
     7857  for ac_exec_ext in '' $ac_executable_extensions; do
     7858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7859    ac_cv_prog_ac_ct_RANLIB="ranlib"
     7860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7861    break 2
     7862  fi
     7863done
     7864done
     7865
     7866  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     7867fi
     7868fi
     7869ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     7870if test -n "$ac_ct_RANLIB"; then
     7871  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     7872echo "${ECHO_T}$ac_ct_RANLIB" >&6
     7873else
     7874  echo "$as_me:$LINENO: result: no" >&5
     7875echo "${ECHO_T}no" >&6
     7876fi
     7877
     7878  RANLIB=$ac_ct_RANLIB
     7879else
     7880  RANLIB="$ac_cv_prog_RANLIB"
     7881fi
     7882
     7883if test -n "$ac_tool_prefix"; then
     7884  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
     7885set dummy ${ac_tool_prefix}strip; ac_word=$2
     7886echo "$as_me:$LINENO: checking for $ac_word" >&5
     7887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     7888if test "${ac_cv_prog_STRIP+set}" = set; then
     7889  echo $ECHO_N "(cached) $ECHO_C" >&6
     7890else
     7891  if test -n "$STRIP"; then
     7892  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
     7893else
     7894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7895for as_dir in $PATH
     7896do
     7897  IFS=$as_save_IFS
     7898  test -z "$as_dir" && as_dir=.
     7899  for ac_exec_ext in '' $ac_executable_extensions; do
     7900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7901    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
     7902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7903    break 2
     7904  fi
     7905done
     7906done
     7907
     7908fi
     7909fi
     7910STRIP=$ac_cv_prog_STRIP
     7911if test -n "$STRIP"; then
     7912  echo "$as_me:$LINENO: result: $STRIP" >&5
     7913echo "${ECHO_T}$STRIP" >&6
     7914else
     7915  echo "$as_me:$LINENO: result: no" >&5
     7916echo "${ECHO_T}no" >&6
     7917fi
     7918
     7919fi
     7920if test -z "$ac_cv_prog_STRIP"; then
     7921  ac_ct_STRIP=$STRIP
     7922  # Extract the first word of "strip", so it can be a program name with args.
     7923set dummy strip; ac_word=$2
     7924echo "$as_me:$LINENO: checking for $ac_word" >&5
     7925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     7926if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
     7927  echo $ECHO_N "(cached) $ECHO_C" >&6
     7928else
     7929  if test -n "$ac_ct_STRIP"; then
     7930  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
     7931else
     7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7933for as_dir in $PATH
     7934do
     7935  IFS=$as_save_IFS
     7936  test -z "$as_dir" && as_dir=.
     7937  for ac_exec_ext in '' $ac_executable_extensions; do
     7938  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7939    ac_cv_prog_ac_ct_STRIP="strip"
     7940    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7941    break 2
     7942  fi
     7943done
     7944done
     7945
     7946  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
     7947fi
     7948fi
     7949ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
     7950if test -n "$ac_ct_STRIP"; then
     7951  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
     7952echo "${ECHO_T}$ac_ct_STRIP" >&6
     7953else
     7954  echo "$as_me:$LINENO: result: no" >&5
     7955echo "${ECHO_T}no" >&6
     7956fi
     7957
     7958  STRIP=$ac_ct_STRIP
     7959else
     7960  STRIP="$ac_cv_prog_STRIP"
     7961fi
     7962
     7963
     7964old_CC="$CC"
     7965old_CFLAGS="$CFLAGS"
     7966
     7967# Set sane defaults for various variables
     7968test -z "$AR" && AR=ar
     7969test -z "$AR_FLAGS" && AR_FLAGS=cru
     7970test -z "$AS" && AS=as
     7971test -z "$CC" && CC=cc
     7972test -z "$LTCC" && LTCC=$CC
     7973test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
     7974test -z "$DLLTOOL" && DLLTOOL=dlltool
     7975test -z "$LD" && LD=ld
     7976test -z "$LN_S" && LN_S="ln -s"
     7977test -z "$MAGIC_CMD" && MAGIC_CMD=file
     7978test -z "$NM" && NM=nm
     7979test -z "$SED" && SED=sed
     7980test -z "$OBJDUMP" && OBJDUMP=objdump
     7981test -z "$RANLIB" && RANLIB=:
     7982test -z "$STRIP" && STRIP=:
     7983test -z "$ac_objext" && ac_objext=o
     7984
     7985# Determine commands to create old-style static archives.
     7986old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
     7987old_postinstall_cmds='chmod 644 $oldlib'
     7988old_postuninstall_cmds=
     7989
     7990if test -n "$RANLIB"; then
     7991  case $host_os in
     7992  openbsd*)
     7993    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
     7994    ;;
     7995  *)
     7996    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
     7997    ;;
     7998  esac
     7999  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
     8000fi
     8001
     8002for cc_temp in $compiler""; do
     8003  case $cc_temp in
     8004    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
     8005    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
     8006    \-*) ;;
     8007    *) break;;
     8008  esac
     8009done
     8010cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     8011
     8012
     8013# Only perform the check for file, if the check method requires it
     8014case $deplibs_check_method in
     8015file_magic*)
     8016  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
     8017    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
     8018echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
     8019if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
     8020  echo $ECHO_N "(cached) $ECHO_C" >&6
     8021else
     8022  case $MAGIC_CMD in
     8023[\\/*] |  ?:[\\/]*)
     8024  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     8025  ;;
     8026*)
     8027  lt_save_MAGIC_CMD="$MAGIC_CMD"
     8028  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     8029  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
     8030  for ac_dir in $ac_dummy; do
     8031    IFS="$lt_save_ifs"
     8032    test -z "$ac_dir" && ac_dir=.
     8033    if test -f $ac_dir/${ac_tool_prefix}file; then
     8034      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
     8035      if test -n "$file_magic_test_file"; then
     8036        case $deplibs_check_method in
     8037        "file_magic "*)
     8038          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
     8039          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     8040          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     8041            $EGREP "$file_magic_regex" > /dev/null; then
     8042            :
     8043          else
     8044            cat <<EOF 1>&2
     8045
     8046*** Warning: the command libtool uses to detect shared libraries,
     8047*** $file_magic_cmd, produces output that libtool cannot recognize.
     8048*** The result is that libtool may fail to recognize shared libraries
     8049*** as such.  This will affect the creation of libtool libraries that
     8050*** depend on shared libraries, but programs linked with such libtool
     8051*** libraries will work regardless of this problem.  Nevertheless, you
     8052*** may want to report the problem to your system manager and/or to
     8053*** bug-libtool@gnu.org
     8054
     8055EOF
     8056          fi ;;
     8057        esac
     8058      fi
     8059      break
     8060    fi
     8061  done
     8062  IFS="$lt_save_ifs"
     8063  MAGIC_CMD="$lt_save_MAGIC_CMD"
     8064  ;;
     8065esac
     8066fi
     8067
     8068MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     8069if test -n "$MAGIC_CMD"; then
     8070  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
     8071echo "${ECHO_T}$MAGIC_CMD" >&6
     8072else
     8073  echo "$as_me:$LINENO: result: no" >&5
     8074echo "${ECHO_T}no" >&6
     8075fi
     8076
     8077if test -z "$lt_cv_path_MAGIC_CMD"; then
     8078  if test -n "$ac_tool_prefix"; then
     8079    echo "$as_me:$LINENO: checking for file" >&5
     8080echo $ECHO_N "checking for file... $ECHO_C" >&6
     8081if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
     8082  echo $ECHO_N "(cached) $ECHO_C" >&6
     8083else
     8084  case $MAGIC_CMD in
     8085[\\/*] |  ?:[\\/]*)
     8086  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     8087  ;;
     8088*)
     8089  lt_save_MAGIC_CMD="$MAGIC_CMD"
     8090  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     8091  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
     8092  for ac_dir in $ac_dummy; do
     8093    IFS="$lt_save_ifs"
     8094    test -z "$ac_dir" && ac_dir=.
     8095    if test -f $ac_dir/file; then
     8096      lt_cv_path_MAGIC_CMD="$ac_dir/file"
     8097      if test -n "$file_magic_test_file"; then
     8098        case $deplibs_check_method in
     8099        "file_magic "*)
     8100          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
     8101          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     8102          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     8103            $EGREP "$file_magic_regex" > /dev/null; then
     8104            :
     8105          else
     8106            cat <<EOF 1>&2
     8107
     8108*** Warning: the command libtool uses to detect shared libraries,
     8109*** $file_magic_cmd, produces output that libtool cannot recognize.
     8110*** The result is that libtool may fail to recognize shared libraries
     8111*** as such.  This will affect the creation of libtool libraries that
     8112*** depend on shared libraries, but programs linked with such libtool
     8113*** libraries will work regardless of this problem.  Nevertheless, you
     8114*** may want to report the problem to your system manager and/or to
     8115*** bug-libtool@gnu.org
     8116
     8117EOF
     8118          fi ;;
     8119        esac
     8120      fi
     8121      break
     8122    fi
     8123  done
     8124  IFS="$lt_save_ifs"
     8125  MAGIC_CMD="$lt_save_MAGIC_CMD"
     8126  ;;
     8127esac
     8128fi
     8129
     8130MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     8131if test -n "$MAGIC_CMD"; then
     8132  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
     8133echo "${ECHO_T}$MAGIC_CMD" >&6
     8134else
     8135  echo "$as_me:$LINENO: result: no" >&5
     8136echo "${ECHO_T}no" >&6
     8137fi
     8138
     8139  else
     8140    MAGIC_CMD=:
     8141  fi
     8142fi
     8143
     8144  fi
     8145  ;;
     8146esac
     8147
     8148enable_dlopen=no
     8149enable_win32_dll=no
     8150
     8151# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
     8152if test "${enable_libtool_lock+set}" = set; then
     8153  enableval="$enable_libtool_lock"
     8154
     8155fi;
     8156test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
     8157
     8158
     8159# Check whether --with-pic or --without-pic was given.
     8160if test "${with_pic+set}" = set; then
     8161  withval="$with_pic"
     8162  pic_mode="$withval"
     8163else
     8164  pic_mode=default
     8165fi;
     8166test -z "$pic_mode" && pic_mode=default
     8167
     8168# Use C for the default configuration in the libtool script
     8169tagname=
     8170lt_save_CC="$CC"
     8171ac_ext=c
     8172ac_cpp='$CPP $CPPFLAGS'
     8173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     8174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     8175ac_compiler_gnu=$ac_cv_c_compiler_gnu
     8176
     8177
     8178# Source file extension for C test sources.
     8179ac_ext=c
     8180
     8181# Object file extension for compiled C test sources.
     8182objext=o
     8183objext=$objext
     8184
     8185# Code to be used in simple compile tests
     8186lt_simple_compile_test_code="int some_variable = 0;\n"
     8187
     8188# Code to be used in simple link tests
     8189lt_simple_link_test_code='int main(){return(0);}\n'
     8190
     8191
     8192# If no C compiler was specified, use CC.
     8193LTCC=${LTCC-"$CC"}
     8194
     8195# If no C compiler flags were specified, use CFLAGS.
     8196LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     8197
     8198# Allow CC to be a program name with arguments.
     8199compiler=$CC
     8200
     8201
     8202# save warnings/boilerplate of simple test code
     8203ac_outfile=conftest.$ac_objext
     8204printf "$lt_simple_compile_test_code" >conftest.$ac_ext
     8205eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
     8206_lt_compiler_boilerplate=`cat conftest.err`
     8207$rm conftest*
     8208
     8209ac_outfile=conftest.$ac_objext
     8210printf "$lt_simple_link_test_code" >conftest.$ac_ext
     8211eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
     8212_lt_linker_boilerplate=`cat conftest.err`
     8213$rm conftest*
     8214
     8215
     8216## CAVEAT EMPTOR:
     8217## There is no encapsulation within the following macros, do not change
     8218## the running order or otherwise move them around unless you know exactly
     8219## what you are doing...
     8220
     8221lt_prog_compiler_no_builtin_flag=
     8222
     8223if test "$GCC" = yes; then
     8224  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
     8225
     8226
     8227echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
     8228echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
     8229if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
     8230  echo $ECHO_N "(cached) $ECHO_C" >&6
     8231else
     8232  lt_cv_prog_compiler_rtti_exceptions=no
     8233  ac_outfile=conftest.$ac_objext
     8234   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     8235   lt_compiler_flag="-fno-rtti -fno-exceptions"
     8236   # Insert the option either (1) after the last *FLAGS variable, or
     8237   # (2) before a word containing "conftest.", or (3) at the end.
     8238   # Note that $ac_compile itself does not contain backslashes and begins
     8239   # with a dollar sign (not a hyphen), so the echo should work correctly.
     8240   # The option is referenced via a variable to avoid confusing sed.
     8241   lt_compile=`echo "$ac_compile" | $SED \
     8242   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     8243   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     8244   -e 's:$: $lt_compiler_flag:'`
     8245   (eval echo "\"\$as_me:8245: $lt_compile\"" >&5)
     8246   (eval "$lt_compile" 2>conftest.err)
     8247   ac_status=$?
     8248   cat conftest.err >&5
     8249   echo "$as_me:8249: \$? = $ac_status" >&5
     8250   if (exit $ac_status) && test -s "$ac_outfile"; then
     8251     # The compiler can only warn and ignore the option if not recognized
     8252     # So say no if there are warnings other than the usual output.
     8253     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     8254     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     8255     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     8256       lt_cv_prog_compiler_rtti_exceptions=yes
     8257     fi
     8258   fi
     8259   $rm conftest*
     8260
     8261fi
     8262echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
     8263echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
     8264
     8265if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
     8266    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
     8267else
     8268    :
     8269fi
     8270
     8271fi
     8272
     8273lt_prog_compiler_wl=
     8274lt_prog_compiler_pic=
     8275lt_prog_compiler_static=
     8276
     8277echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
     8278echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
     8279
     8280  if test "$GCC" = yes; then
     8281    lt_prog_compiler_wl='-Wl,'
     8282    lt_prog_compiler_static='-static'
     8283
     8284    case $host_os in
     8285      aix*)
     8286      # All AIX code is PIC.
     8287      if test "$host_cpu" = ia64; then
     8288        # AIX 5 now supports IA64 processor
     8289        lt_prog_compiler_static='-Bstatic'
     8290      fi
     8291      ;;
     8292
     8293    amigaos*)
     8294      # FIXME: we need at least 68020 code to build shared libraries, but
     8295      # adding the `-m68020' flag to GCC prevents building anything better,
     8296      # like `-m68040'.
     8297      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
     8298      ;;
     8299
     8300    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     8301      # PIC is the default for these OSes.
     8302      ;;
     8303
     8304    mingw* | pw32* | os2*)
     8305      # This hack is so that the source file can tell whether it is being
     8306      # built for inclusion in a dll (and should export symbols for example).
     8307      lt_prog_compiler_pic='-DDLL_EXPORT'
     8308      ;;
     8309
     8310    darwin* | rhapsody*)
     8311      # PIC is the default on this platform
     8312      # Common symbols not allowed in MH_DYLIB files
     8313      lt_prog_compiler_pic='-fno-common'
     8314      ;;
     8315
     8316    interix3*)
     8317      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     8318      # Instead, we relocate shared libraries at runtime.
     8319      ;;
     8320
     8321    msdosdjgpp*)
     8322      # Just because we use GCC doesn't mean we suddenly get shared libraries
     8323      # on systems that don't support them.
     8324      lt_prog_compiler_can_build_shared=no
     8325      enable_shared=no
     8326      ;;
     8327
     8328    sysv4*MP*)
     8329      if test -d /usr/nec; then
     8330        lt_prog_compiler_pic=-Kconform_pic
     8331      fi
     8332      ;;
     8333
     8334    hpux*)
     8335      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
     8336      # not for PA HP-UX.
     8337      case $host_cpu in
     8338      hppa*64*|ia64*)
     8339        # +Z the default
     8340        ;;
     8341      *)
     8342        lt_prog_compiler_pic='-fPIC'
     8343        ;;
     8344      esac
     8345      ;;
     8346
     8347    *)
     8348      lt_prog_compiler_pic='-fPIC'
     8349      ;;
     8350    esac
     8351  else
     8352    # PORTME Check for flag to pass linker flags through the system compiler.
     8353    case $host_os in
     8354    aix*)
     8355      lt_prog_compiler_wl='-Wl,'
     8356      if test "$host_cpu" = ia64; then
     8357        # AIX 5 now supports IA64 processor
     8358        lt_prog_compiler_static='-Bstatic'
     8359      else
     8360        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
     8361      fi
     8362      ;;
     8363      darwin*)
     8364        # PIC is the default on this platform
     8365        # Common symbols not allowed in MH_DYLIB files
     8366       case $cc_basename in
     8367         xlc*)
     8368         lt_prog_compiler_pic='-qnocommon'
     8369         lt_prog_compiler_wl='-Wl,'
     8370         ;;
     8371       esac
     8372       ;;
     8373
     8374    mingw* | pw32* | os2*)
     8375      # This hack is so that the source file can tell whether it is being
     8376      # built for inclusion in a dll (and should export symbols for example).
     8377      lt_prog_compiler_pic='-DDLL_EXPORT'
     8378      ;;
     8379
     8380    hpux9* | hpux10* | hpux11*)
     8381      lt_prog_compiler_wl='-Wl,'
     8382      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
     8383      # not for PA HP-UX.
     8384      case $host_cpu in
     8385      hppa*64*|ia64*)
     8386        # +Z the default
     8387        ;;
     8388      *)
     8389        lt_prog_compiler_pic='+Z'
     8390        ;;
     8391      esac
     8392      # Is there a better lt_prog_compiler_static that works with the bundled CC?
     8393      lt_prog_compiler_static='${wl}-a ${wl}archive'
     8394      ;;
     8395
     8396    irix5* | irix6* | nonstopux*)
     8397      lt_prog_compiler_wl='-Wl,'
     8398      # PIC (with -KPIC) is the default.
     8399      lt_prog_compiler_static='-non_shared'
     8400      ;;
     8401
     8402    newsos6)
     8403      lt_prog_compiler_pic='-KPIC'
     8404      lt_prog_compiler_static='-Bstatic'
     8405      ;;
     8406
     8407    linux*)
     8408      case $cc_basename in
     8409      icc* | ecc*)
     8410        lt_prog_compiler_wl='-Wl,'
     8411        lt_prog_compiler_pic='-KPIC'
     8412        lt_prog_compiler_static='-static'
     8413        ;;
     8414      pgcc* | pgf77* | pgf90* | pgf95*)
     8415        # Portland Group compilers (*not* the Pentium gcc compiler,
     8416        # which looks to be a dead project)
     8417        lt_prog_compiler_wl='-Wl,'
     8418        lt_prog_compiler_pic='-fpic'
     8419        lt_prog_compiler_static='-Bstatic'
     8420        ;;
     8421      ccc*)
     8422        lt_prog_compiler_wl='-Wl,'
     8423        # All Alpha code is PIC.
     8424        lt_prog_compiler_static='-non_shared'
     8425        ;;
     8426      esac
     8427      ;;
     8428
     8429    osf3* | osf4* | osf5*)
     8430      lt_prog_compiler_wl='-Wl,'
     8431      # All OSF/1 code is PIC.
     8432      lt_prog_compiler_static='-non_shared'
     8433      ;;
     8434
     8435    solaris*)
     8436      lt_prog_compiler_pic='-KPIC'
     8437      lt_prog_compiler_static='-Bstatic'
     8438      case $cc_basename in
     8439      f77* | f90* | f95*)
     8440        lt_prog_compiler_wl='-Qoption ld ';;
     8441      *)
     8442        lt_prog_compiler_wl='-Wl,';;
     8443      esac
     8444      ;;
     8445
     8446    sunos4*)
     8447      lt_prog_compiler_wl='-Qoption ld '
     8448      lt_prog_compiler_pic='-PIC'
     8449      lt_prog_compiler_static='-Bstatic'
     8450      ;;
     8451
     8452    sysv4 | sysv4.2uw2* | sysv4.3*)
     8453      lt_prog_compiler_wl='-Wl,'
     8454      lt_prog_compiler_pic='-KPIC'
     8455      lt_prog_compiler_static='-Bstatic'
     8456      ;;
     8457
     8458    sysv4*MP*)
     8459      if test -d /usr/nec ;then
     8460        lt_prog_compiler_pic='-Kconform_pic'
     8461        lt_prog_compiler_static='-Bstatic'
     8462      fi
     8463      ;;
     8464
     8465    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     8466      lt_prog_compiler_wl='-Wl,'
     8467      lt_prog_compiler_pic='-KPIC'
     8468      lt_prog_compiler_static='-Bstatic'
     8469      ;;
     8470
     8471    unicos*)
     8472      lt_prog_compiler_wl='-Wl,'
     8473      lt_prog_compiler_can_build_shared=no
     8474      ;;
     8475
     8476    uts4*)
     8477      lt_prog_compiler_pic='-pic'
     8478      lt_prog_compiler_static='-Bstatic'
     8479      ;;
     8480
     8481    *)
     8482      lt_prog_compiler_can_build_shared=no
     8483      ;;
     8484    esac
     8485  fi
     8486
     8487echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
     8488echo "${ECHO_T}$lt_prog_compiler_pic" >&6
     8489
     8490#
     8491# Check to make sure the PIC flag actually works.
     8492#
     8493if test -n "$lt_prog_compiler_pic"; then
     8494
     8495echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
     8496echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
     8497if test "${lt_prog_compiler_pic_works+set}" = set; then
     8498  echo $ECHO_N "(cached) $ECHO_C" >&6
     8499else
     8500  lt_prog_compiler_pic_works=no
     8501  ac_outfile=conftest.$ac_objext
     8502   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     8503   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
     8504   # Insert the option either (1) after the last *FLAGS variable, or
     8505   # (2) before a word containing "conftest.", or (3) at the end.
     8506   # Note that $ac_compile itself does not contain backslashes and begins
     8507   # with a dollar sign (not a hyphen), so the echo should work correctly.
     8508   # The option is referenced via a variable to avoid confusing sed.
     8509   lt_compile=`echo "$ac_compile" | $SED \
     8510   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     8511   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     8512   -e 's:$: $lt_compiler_flag:'`
     8513   (eval echo "\"\$as_me:8513: $lt_compile\"" >&5)
     8514   (eval "$lt_compile" 2>conftest.err)
     8515   ac_status=$?
     8516   cat conftest.err >&5
     8517   echo "$as_me:8517: \$? = $ac_status" >&5
     8518   if (exit $ac_status) && test -s "$ac_outfile"; then
     8519     # The compiler can only warn and ignore the option if not recognized
     8520     # So say no if there are warnings other than the usual output.
     8521     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     8522     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     8523     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     8524       lt_prog_compiler_pic_works=yes
     8525     fi
     8526   fi
     8527   $rm conftest*
     8528
     8529fi
     8530echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
     8531echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
     8532
     8533if test x"$lt_prog_compiler_pic_works" = xyes; then
     8534    case $lt_prog_compiler_pic in
     8535     "" | " "*) ;;
     8536     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     8537     esac
     8538else
     8539    lt_prog_compiler_pic=
     8540     lt_prog_compiler_can_build_shared=no
     8541fi
     8542
     8543fi
     8544case $host_os in
     8545  # For platforms which do not support PIC, -DPIC is meaningless:
     8546  *djgpp*)
     8547    lt_prog_compiler_pic=
     8548    ;;
     8549  *)
     8550    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
     8551    ;;
     8552esac
     8553
     8554#
     8555# Check to make sure the static flag actually works.
     8556#
     8557wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
     8558echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     8559echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
     8560if test "${lt_prog_compiler_static_works+set}" = set; then
     8561  echo $ECHO_N "(cached) $ECHO_C" >&6
     8562else
     8563  lt_prog_compiler_static_works=no
     8564   save_LDFLAGS="$LDFLAGS"
     8565   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
     8566   printf "$lt_simple_link_test_code" > conftest.$ac_ext
     8567   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     8568     # The linker can only warn and ignore the option if not recognized
     8569     # So say no if there are warnings
     8570     if test -s conftest.err; then
     8571       # Append any errors to the config.log.
     8572       cat conftest.err 1>&5
     8573       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     8574       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     8575       if diff conftest.exp conftest.er2 >/dev/null; then
     8576         lt_prog_compiler_static_works=yes
     8577       fi
     8578     else
     8579       lt_prog_compiler_static_works=yes
     8580     fi
     8581   fi
     8582   $rm conftest*
     8583   LDFLAGS="$save_LDFLAGS"
     8584
     8585fi
     8586echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
     8587echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
     8588
     8589if test x"$lt_prog_compiler_static_works" = xyes; then
     8590    :
     8591else
     8592    lt_prog_compiler_static=
     8593fi
     8594
     8595
     8596echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
     8597echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
     8598if test "${lt_cv_prog_compiler_c_o+set}" = set; then
     8599  echo $ECHO_N "(cached) $ECHO_C" >&6
     8600else
     8601  lt_cv_prog_compiler_c_o=no
     8602   $rm -r conftest 2>/dev/null
     8603   mkdir conftest
     8604   cd conftest
     8605   mkdir out
     8606   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     8607
     8608   lt_compiler_flag="-o out/conftest2.$ac_objext"
     8609   # Insert the option either (1) after the last *FLAGS variable, or
     8610   # (2) before a word containing "conftest.", or (3) at the end.
     8611   # Note that $ac_compile itself does not contain backslashes and begins
     8612   # with a dollar sign (not a hyphen), so the echo should work correctly.
     8613   lt_compile=`echo "$ac_compile" | $SED \
     8614   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     8615   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     8616   -e 's:$: $lt_compiler_flag:'`
     8617   (eval echo "\"\$as_me:8617: $lt_compile\"" >&5)
     8618   (eval "$lt_compile" 2>out/conftest.err)
     8619   ac_status=$?
     8620   cat out/conftest.err >&5
     8621   echo "$as_me:8621: \$? = $ac_status" >&5
     8622   if (exit $ac_status) && test -s out/conftest2.$ac_objext
     8623   then
     8624     # The compiler can only warn and ignore the option if not recognized
     8625     # So say no if there are warnings
     8626     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     8627     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     8628     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     8629       lt_cv_prog_compiler_c_o=yes
     8630     fi
     8631   fi
     8632   chmod u+w . 2>&5
     8633   $rm conftest*
     8634   # SGI C++ compiler will create directory out/ii_files/ for
     8635   # template instantiation
     8636   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
     8637   $rm out/* && rmdir out
     8638   cd ..
     8639   rmdir conftest
     8640   $rm conftest*
     8641
     8642fi
     8643echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
     8644echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
     8645
     8646
     8647hard_links="nottested"
     8648if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
     8649  # do not overwrite the value of need_locks provided by the user
     8650  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
     8651echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
     8652  hard_links=yes
     8653  $rm conftest*
     8654  ln conftest.a conftest.b 2>/dev/null && hard_links=no
     8655  touch conftest.a
     8656  ln conftest.a conftest.b 2>&5 || hard_links=no
     8657  ln conftest.a conftest.b 2>/dev/null && hard_links=no
     8658  echo "$as_me:$LINENO: result: $hard_links" >&5
     8659echo "${ECHO_T}$hard_links" >&6
     8660  if test "$hard_links" = no; then
     8661    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
     8662echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
     8663    need_locks=warn
     8664  fi
     8665else
     8666  need_locks=no
     8667fi
     8668
     8669echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
     8670echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
     8671
     8672  runpath_var=
     8673  allow_undefined_flag=
     8674  enable_shared_with_static_runtimes=no
     8675  archive_cmds=
     8676  archive_expsym_cmds=
     8677  old_archive_From_new_cmds=
     8678  old_archive_from_expsyms_cmds=
     8679  export_dynamic_flag_spec=
     8680  whole_archive_flag_spec=
     8681  thread_safe_flag_spec=
     8682  hardcode_libdir_flag_spec=
     8683  hardcode_libdir_flag_spec_ld=
     8684  hardcode_libdir_separator=
     8685  hardcode_direct=no
     8686  hardcode_minus_L=no
     8687  hardcode_shlibpath_var=unsupported
     8688  link_all_deplibs=unknown
     8689  hardcode_automatic=no
     8690  module_cmds=
     8691  module_expsym_cmds=
     8692  always_export_symbols=no
     8693  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     8694  # include_expsyms should be a list of space-separated symbols to be *always*
     8695  # included in the symbol list
     8696  include_expsyms=
     8697  # exclude_expsyms can be an extended regexp of symbols to exclude
     8698  # it will be wrapped by ` (' and `)$', so one must not match beginning or
     8699  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
     8700  # as well as any symbol that contains `d'.
     8701  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
     8702  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
     8703  # platforms (ab)use it in PIC code, but their linkers get confused if
     8704  # the symbol is explicitly referenced.  Since portable code cannot
     8705  # rely on this symbol name, it's probably fine to never include it in
     8706  # preloaded symbol tables.
     8707  extract_expsyms_cmds=
     8708  # Just being paranoid about ensuring that cc_basename is set.
     8709  for cc_temp in $compiler""; do
     8710  case $cc_temp in
     8711    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
     8712    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
     8713    \-*) ;;
     8714    *) break;;
     8715  esac
     8716done
     8717cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     8718
     8719  case $host_os in
     8720  cygwin* | mingw* | pw32*)
     8721    # FIXME: the MSVC++ port hasn't been tested in a loooong time
     8722    # When not using gcc, we currently assume that we are using
     8723    # Microsoft Visual C++.
     8724    if test "$GCC" != yes; then
     8725      with_gnu_ld=no
     8726    fi
     8727    ;;
     8728  interix*)
     8729    # we just hope/assume this is gcc and not c89 (= MSVC++)
     8730    with_gnu_ld=yes
     8731    ;;
     8732  openbsd*)
     8733    with_gnu_ld=no
     8734    ;;
     8735  esac
     8736
     8737  ld_shlibs=yes
     8738  if test "$with_gnu_ld" = yes; then
     8739    # If archive_cmds runs LD, not CC, wlarc should be empty
     8740    wlarc='${wl}'
     8741
     8742    # Set some defaults for GNU ld with shared library support. These
     8743    # are reset later if shared libraries are not supported. Putting them
     8744    # here allows them to be overridden if necessary.
     8745    runpath_var=LD_RUN_PATH
     8746    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
     8747    export_dynamic_flag_spec='${wl}--export-dynamic'
     8748    # ancient GNU ld didn't support --whole-archive et. al.
     8749    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
     8750        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     8751      else
     8752        whole_archive_flag_spec=
     8753    fi
     8754    supports_anon_versioning=no
     8755    case `$LD -v 2>/dev/null` in
     8756      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
     8757      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     8758      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
     8759      *\ 2.11.*) ;; # other 2.11 versions
     8760      *) supports_anon_versioning=yes ;;
     8761    esac
     8762
     8763    # See if GNU ld supports shared libraries.
     8764    case $host_os in
     8765    aix3* | aix4* | aix5*)
     8766      # On AIX/PPC, the GNU linker is very broken
     8767      if test "$host_cpu" != ia64; then
     8768        ld_shlibs=no
     8769        cat <<EOF 1>&2
     8770
     8771*** Warning: the GNU linker, at least up to release 2.9.1, is reported
     8772*** to be unable to reliably create shared libraries on AIX.
     8773*** Therefore, libtool is disabling shared libraries support.  If you
     8774*** really care for shared libraries, you may want to modify your PATH
     8775*** so that a non-GNU linker is found, and then restart.
     8776
     8777EOF
     8778      fi
     8779      ;;
     8780
     8781    amigaos*)
     8782      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)'
     8783      hardcode_libdir_flag_spec='-L$libdir'
     8784      hardcode_minus_L=yes
     8785
     8786      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
     8787      # that the semantics of dynamic libraries on AmigaOS, at least up
     8788      # to version 4, is to share data among multiple programs linked
     8789      # with the same dynamic library.  Since this doesn't match the
     8790      # behavior of shared libraries on other platforms, we can't use
     8791      # them.
     8792      ld_shlibs=no
     8793      ;;
     8794
     8795    beos*)
     8796      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     8797        allow_undefined_flag=unsupported
     8798        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     8799        # support --undefined.  This deserves some investigation.  FIXME
     8800        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     8801      else
     8802        ld_shlibs=no
     8803      fi
     8804      ;;
     8805
     8806    cygwin* | mingw* | pw32*)
     8807      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
     8808      # as there is no search path for DLLs.
     8809      hardcode_libdir_flag_spec='-L$libdir'
     8810      allow_undefined_flag=unsupported
     8811      always_export_symbols=no
     8812      enable_shared_with_static_runtimes=yes
     8813      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
     8814
     8815      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
     8816        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     8817        # If the export-symbols file already is a .def file (1st line
     8818        # is EXPORTS), use it as is; otherwise, prepend...
     8819        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     8820          cp $export_symbols $output_objdir/$soname.def;
     8821        else
     8822          echo EXPORTS > $output_objdir/$soname.def;
     8823          cat $export_symbols >> $output_objdir/$soname.def;
     8824        fi~
     8825        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     8826      else
     8827        ld_shlibs=no
     8828      fi
     8829      ;;
     8830
     8831    interix3*)
     8832      hardcode_direct=no
     8833      hardcode_shlibpath_var=no
     8834      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     8835      export_dynamic_flag_spec='${wl}-E'
     8836      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     8837      # Instead, shared libraries are loaded at an image base (0x10000000 by
     8838      # default) and relocated if they conflict, which is a slow very memory
     8839      # consuming and fragmenting process.  To avoid this, we pick a random,
     8840      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     8841      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     8842      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     8843      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'
     8844      ;;
     8845
     8846    linux*)
     8847      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     8848        tmp_addflag=
     8849        case $cc_basename,$host_cpu in
     8850        pgcc*)                          # Portland Group C compiler
     8851          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'
     8852          tmp_addflag=' $pic_flag'
     8853          ;;
     8854        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
     8855          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'
     8856          tmp_addflag=' $pic_flag -Mnomain' ;;
     8857        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
     8858          tmp_addflag=' -i_dynamic' ;;
     8859        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
     8860          tmp_addflag=' -i_dynamic -nofor_main' ;;
     8861        ifc* | ifort*)                  # Intel Fortran compiler
     8862          tmp_addflag=' -nofor_main' ;;
     8863        esac
     8864        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     8865
     8866        if test $supports_anon_versioning = yes; then
     8867          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
     8868  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     8869  $echo "local: *; };" >> $output_objdir/$libname.ver~
     8870          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     8871        fi
     8872      else
     8873        ld_shlibs=no
     8874      fi
     8875      ;;
     8876
     8877    netbsd*)
     8878      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     8879        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     8880        wlarc=
     8881      else
     8882        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     8883        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     8884      fi
     8885      ;;
     8886
     8887    solaris*)
     8888      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
     8889        ld_shlibs=no
     8890        cat <<EOF 1>&2
     8891
     8892*** Warning: The releases 2.8.* of the GNU linker cannot reliably
     8893*** create shared libraries on Solaris systems.  Therefore, libtool
     8894*** is disabling shared libraries support.  We urge you to upgrade GNU
     8895*** binutils to release 2.9.1 or newer.  Another option is to modify
     8896*** your PATH or com