Changeset 191 for trunk/Couenne


Ignore:
Timestamp:
Jul 5, 2009 11:46:32 AM (12 years ago)
Author:
pbelotti
Message:

fixed some zero down/up estimate setting. A little speedup in CouenneProblem::tightenBounds(). Added specific check for stdint.h in configure.ac. added libbonbranching as explicit dependence.

Location:
trunk/Couenne
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/configure

    r93 r191  
    473473#endif"
    474474
    475 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 build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS THIRDPARTYSRCDIR THIRDPARTYOBJDIR THIRDPARTYDOCDIR COIN_HAS_THIRDPARTY_TRUE COIN_HAS_THIRDPARTY_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE BONMINSRCDIR BONMINOBJDIR BONMINDOCDIR COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE IPOPTSRCDIR IPOPTOBJDIR IPOPTDOCDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COUENNESRCDIR COUENNEOBJDIR COUENNEDOCDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP EGREP build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS ac_ct_CC MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS MPICXX 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS THIRDPARTYSRCDIR THIRDPARTYOBJDIR THIRDPARTYDOCDIR COIN_HAS_THIRDPARTY_TRUE COIN_HAS_THIRDPARTY_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE BONMINSRCDIR BONMINOBJDIR BONMINDOCDIR COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE IPOPTSRCDIR IPOPTOBJDIR IPOPTDOCDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COUENNESRCDIR COUENNEOBJDIR COUENNEDOCDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    914914ac_cv_env_target_alias_set=${target_alias+set}
    915915ac_cv_env_target_alias_value=$target_alias
     916ac_env_CXX_set=${CXX+set}
     917ac_env_CXX_value=$CXX
     918ac_cv_env_CXX_set=${CXX+set}
     919ac_cv_env_CXX_value=$CXX
     920ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     921ac_env_CXXFLAGS_value=$CXXFLAGS
     922ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     923ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     924ac_env_LDFLAGS_set=${LDFLAGS+set}
     925ac_env_LDFLAGS_value=$LDFLAGS
     926ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     927ac_cv_env_LDFLAGS_value=$LDFLAGS
     928ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     929ac_env_CPPFLAGS_value=$CPPFLAGS
     930ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     931ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     932ac_env_CXXCPP_set=${CXXCPP+set}
     933ac_env_CXXCPP_value=$CXXCPP
     934ac_cv_env_CXXCPP_set=${CXXCPP+set}
     935ac_cv_env_CXXCPP_value=$CXXCPP
    916936ac_env_CDEFS_set=${CDEFS+set}
    917937ac_env_CDEFS_value=$CDEFS
     
    938958ac_cv_env_CFLAGS_set=${CFLAGS+set}
    939959ac_cv_env_CFLAGS_value=$CFLAGS
    940 ac_env_LDFLAGS_set=${LDFLAGS+set}
    941 ac_env_LDFLAGS_value=$LDFLAGS
    942 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    943 ac_cv_env_LDFLAGS_value=$LDFLAGS
    944 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    945 ac_env_CPPFLAGS_value=$CPPFLAGS
    946 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    947 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    948960ac_env_MPICC_set=${MPICC+set}
    949961ac_env_MPICC_value=$MPICC
     
    966978ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
    967979ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
    968 ac_env_CXX_set=${CXX+set}
    969 ac_env_CXX_value=$CXX
    970 ac_cv_env_CXX_set=${CXX+set}
    971 ac_cv_env_CXX_value=$CXX
    972 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    973 ac_env_CXXFLAGS_value=$CXXFLAGS
    974 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    975 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    976980ac_env_MPICXX_set=${MPICXX+set}
    977981ac_env_MPICXX_value=$MPICXX
     
    982986ac_cv_env_CPP_set=${CPP+set}
    983987ac_cv_env_CPP_value=$CPP
    984 ac_env_CXXCPP_set=${CXXCPP+set}
    985 ac_env_CXXCPP_value=$CXXCPP
    986 ac_cv_env_CXXCPP_set=${CXXCPP+set}
    987 ac_cv_env_CXXCPP_value=$CXXCPP
    988988ac_env_F77_set=${F77+set}
    989989ac_env_F77_value=$F77
     
    11151115
    11161116Some influential environment variables:
     1117  CXX         C++ compiler command
     1118  CXXFLAGS    C++ compiler flags
     1119  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     1120              nonstandard directory <lib dir>
     1121  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     1122              headers in a nonstandard directory <include dir>
     1123  CXXCPP      C++ preprocessor
    11171124  CDEFS       Additional -D flags to be used when compiling C code.
    11181125  ADD_CFLAGS  Additional C compiler options
     
    11211128  CC          C compiler command
    11221129  CFLAGS      C compiler flags
    1123   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    1124               nonstandard directory <lib dir>
    1125   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    1126               headers in a nonstandard directory <include dir>
    11271130  MPICC       C MPI Compiler
    11281131  CXXDEFS     Additional -D flags to be used when compiling C++ code.
     
    11331136  OPT_CXXFLAGS
    11341137              Optimize C++ compiler options
    1135   CXX         C++ compiler command
    1136   CXXFLAGS    C++ compiler flags
    11371138  MPICXX      C++ MPI Compiler
    11381139  CPP         C preprocessor
    1139   CXXCPP      C++ preprocessor
    11401140  F77         Fortran 77 compiler command
    11411141  FFLAGS      Fortran 77 compiler flags
     
    16091609
    16101610
    1611 #############################################################################
    1612 #                         Standard build tool stuff                         #
    1613 #############################################################################
    1614 
    1615 # Get the system type
    1616 ac_aux_dir=
    1617 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    1618   if test -f $ac_dir/install-sh; then
    1619     ac_aux_dir=$ac_dir
    1620     ac_install_sh="$ac_aux_dir/install-sh -c"
    1621     break
    1622   elif test -f $ac_dir/install.sh; then
    1623     ac_aux_dir=$ac_dir
    1624     ac_install_sh="$ac_aux_dir/install.sh -c"
    1625     break
    1626   elif test -f $ac_dir/shtool; then
    1627     ac_aux_dir=$ac_dir
    1628     ac_install_sh="$ac_aux_dir/shtool install -c"
    1629     break
    1630   fi
    1631 done
    1632 if test -z "$ac_aux_dir"; then
    1633   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    1634 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    1635    { (exit 1); exit 1; }; }
    1636 fi
    1637 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    1638 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    1639 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    1640 
    1641 # Make sure we can run config.sub.
    1642 $ac_config_sub sun4 >/dev/null 2>&1 ||
    1643   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    1644 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    1645    { (exit 1); exit 1; }; }
    1646 
    1647 echo "$as_me:$LINENO: checking build system type" >&5
    1648 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    1649 if test "${ac_cv_build+set}" = set; then
    1650   echo $ECHO_N "(cached) $ECHO_C" >&6
    1651 else
    1652   ac_cv_build_alias=$build_alias
    1653 test -z "$ac_cv_build_alias" &&
    1654   ac_cv_build_alias=`$ac_config_guess`
    1655 test -z "$ac_cv_build_alias" &&
    1656   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    1657 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    1658    { (exit 1); exit 1; }; }
    1659 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    1660   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    1661 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    1662    { (exit 1); exit 1; }; }
    1663 
    1664 fi
    1665 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    1666 echo "${ECHO_T}$ac_cv_build" >&6
    1667 build=$ac_cv_build
    1668 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1669 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1670 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1671 
    1672 
    1673 
    1674 # Initialization specifically for project main directories
    1675 # Initialize the ADDLIBS variable
    1676 ADDLIBS="-lm $LIBS"
    1677 
    1678 
    1679 # Initialize the FADDLIBS variable (which is to be used with a fortran
    1680 # compiler and will not include FLIBS)
    1681 FADDLIBS="$LIBS"
    1682 
    1683 
    1684 # A useful makefile conditional that is always false
    1685 
    1686 
    1687 if false; then
    1688   ALWAYS_FALSE_TRUE=
    1689   ALWAYS_FALSE_FALSE='#'
    1690 else
    1691   ALWAYS_FALSE_TRUE='#'
    1692   ALWAYS_FALSE_FALSE=
    1693 fi
    1694 
    1695 
    1696 # We set the following variable so that we know later in AC_COIN_FINALIZE
    1697 # that we are in a project main directory
    1698 coin_projectdir=yes
    1699 
    1700 
    1701 # Check if user wants to produce debugging code
    1702 
    1703 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
    1704 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
    1705 
    1706 # Check whether --enable-debug or --disable-debug was given.
    1707 if test "${enable_debug+set}" = set; then
    1708   enableval="$enable_debug"
    1709   case "${enableval}" in
    1710    yes) coin_debug_compile=true
    1711         if test "${enable_shared+set}" = set; then :; else
    1712           enable_shared=no
    1713         fi
    1714         ;;
    1715    no)  coin_debug_compile=false
    1716         ;;
    1717    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
    1718 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
    1719    { (exit 1); exit 1; }; }
    1720         ;;
    1721 esac
    1722 else
    1723   coin_debug_compile=false
    1724 fi;
    1725 
    1726 # Check whether --enable-debug-couenne or --disable-debug-couenne was given.
    1727 if test "${enable_debug_couenne+set}" = set; then
    1728   enableval="$enable_debug_couenne"
    1729   case "${enableval}" in
    1730     yes) coin_debug_compile=true
    1731          enable_shared=no
    1732          ;;
    1733     no)  coin_debug_compile=false
    1734          ;;
    1735     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
    1736 echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
    1737    { (exit 1); exit 1; }; }
    1738          ;;
    1739  esac
    1740 else
    1741   :
    1742 fi;
    1743 
    1744  # m4_ifvaln([Couenne],
    1745 
    1746 if test $coin_debug_compile = true; then
    1747   echo "$as_me:$LINENO: result: yes" >&5
    1748 echo "${ECHO_T}yes" >&6
    1749 else
    1750   echo "$as_me:$LINENO: result: no" >&5
    1751 echo "${ECHO_T}no" >&6
    1752 fi
    1753 
    1754 
    1755 # Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
    1756 if test "${with_couenne_verbosity+set}" = set; then
    1757   withval="$with_couenne_verbosity"
    1758   if test "$withval" = yes; then
    1759                 withval=1
    1760               fi
    1761               coin_couenne_verbosity=$withval
    1762 else
    1763   coin_couenne_verbosity=0
    1764 fi;
    1765 
    1766 cat >>confdefs.h <<_ACEOF
    1767 #define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
    1768 _ACEOF
    1769 
    1770 
    1771 
    1772 # Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
    1773 if test "${with_couenne_checklevel+set}" = set; then
    1774   withval="$with_couenne_checklevel"
    1775   if test "$withval" = yes; then
    1776                 withval=1
    1777               fi
    1778               coin_couenne_checklevel=$withval
    1779 else
    1780   coin_couenne_checklevel=0
    1781 fi;
    1782 
    1783 cat >>confdefs.h <<_ACEOF
    1784 #define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
    1785 _ACEOF
    1786 
    1787 
    1788 # We use the following variable to have a string with the upper case
    1789 # version of the project name
    1790 COIN_PRJCT=COUENNE
    1791 
    1792 
    1793  # m4_ifvaln([Couenne],
    1794 
    1795 
    1796 
    1797 # Get the name of the C++ compiler and appropriate compiler options
    1798 case $build in
    1799   *-mingw*)
    1800     if test "${LD+set}" = set; then :; else
    1801       LD=link
    1802     fi
    1803     ;;
    1804  esac
    1805  case $enable_doscompile in
    1806    msvc)
    1807      if test "x${LD+set}" = xset; then :; else
    1808        LD=link
    1809      fi
    1810      ;;
    1811  esac
    1812 
    1813 
    1814  # Check whether --enable-doscompile or --disable-doscompile was given.
    1815 if test "${enable_doscompile+set}" = set; then
    1816   enableval="$enable_doscompile"
    1817   if test "$enable_doscompile" != no; then
    1818      case $build in
    1819        *-cygwin* | *-mingw*) ;;
    1820        *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
    1821 echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
    1822    { (exit 1); exit 1; }; } ;;
    1823      esac
    1824    fi
    1825 else
    1826   enable_doscompile=no
    1827 fi;
    1828  case "$enable_doscompile" in
    1829    mingw)
    1830      case $build in
    1831        *-mingw*) enable_doscompile=no ;;
    1832      esac
    1833      ;;
    1834    msvc|no) ;;
    1835    yes) enable_doscompile=mingw ;;
    1836    *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
    1837                     Try configure --help=recursive." >&5
    1838 echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
    1839                     Try configure --help=recursive." >&2;}
    1840    { (exit 1); exit 1; }; }
    1841       ;;
    1842   esac
    1843   if test "$enable_doscompile" != no ; then
    1844     { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
    1845 echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
    1846   fi
    1847 
    1848 
    1849 
    1850 
    1851 ac_ext=c
    1852 ac_cpp='$CPP $CPPFLAGS'
    1853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1856 
    1857 
    1858 # For consistency, we set the C compiler to the same value of the C++
    1859 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
    1860 if test x"$CXX" != x; then
    1861   case "$CXX" in
    1862     cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    1863       if test x"$CC" = x; then
    1864         CC="$CXX"
    1865         { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
    1866 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
    1867       fi
    1868       ;;
    1869   esac
    1870 fi
    1871 
    1872 
    1873 
    1874 
    1875 
    1876 
    1877 coin_has_cc=yes
    1878 
    1879 save_cflags="$CFLAGS"
    1880 
    1881 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
    1882 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
    1883 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
    1884 # compiler. In this case, put cc after gcc.
    1885 
    1886 case $build in
    1887   *-cygwin* | *-mingw*)
    1888              if test "$enable_doscompile" = msvc ; then
    1889                comps="icl cl"
    1890              else
    1891                comps="gcc cl"
    1892              fi ;;
    1893   *-*-solaris*)
    1894              # Extract the first word of "cc", so it can be a program name with args.
    1895 set dummy cc; ac_word=$2
     1611# for readnl.cpp
     1612ac_ext=cc
     1613ac_cpp='$CXXCPP $CPPFLAGS'
     1614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     1617if test -n "$ac_tool_prefix"; then
     1618  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1619  do
     1620    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    18961622echo "$as_me:$LINENO: checking for $ac_word" >&5
    18971623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1898 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
     1624if test "${ac_cv_prog_CXX+set}" = set; then
    18991625  echo $ECHO_N "(cached) $ECHO_C" >&6
    19001626else
    1901   if test -n "$sol_cc_compiler"; then
    1902   ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
    1903 else
    1904   ac_prog_rejected=no
     1627  if test -n "$CXX"; then
     1628  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     1629else
    19051630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19061631for as_dir in $PATH
     
    19101635  for ac_exec_ext in '' $ac_executable_extensions; do
    19111636  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1912     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    1913        ac_prog_rejected=yes
    1914        continue
    1915      fi
    1916     ac_cv_prog_sol_cc_compiler="cc"
     1637    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    19171638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19181639    break 2
     
    19211642done
    19221643
    1923 if test $ac_prog_rejected = yes; then
    1924   # We found a bogon in the path, so make sure we never use it.
    1925   set dummy $ac_cv_prog_sol_cc_compiler
    1926   shift
    1927   if test $# != 0; then
    1928     # We chose a different compiler from the bogus one.
    1929     # However, it has the same basename, so the bogon will be chosen
    1930     # first if we set sol_cc_compiler to just the basename; use the full file name.
    1931     shift
    1932     ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
    1933   fi
    1934 fi
    1935 fi
    1936 fi
    1937 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
    1938 if test -n "$sol_cc_compiler"; then
    1939   echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
    1940 echo "${ECHO_T}$sol_cc_compiler" >&6
     1644fi
     1645fi
     1646CXX=$ac_cv_prog_CXX
     1647if test -n "$CXX"; then
     1648  echo "$as_me:$LINENO: result: $CXX" >&5
     1649echo "${ECHO_T}$CXX" >&6
    19411650else
    19421651  echo "$as_me:$LINENO: result: no" >&5
     
    19441653fi
    19451654
    1946              if test "$sol_cc_compiler" = "cc" ; then
    1947                comps="cc xlc gcc pgcc icc"
    1948              else
    1949                comps="xlc gcc pgcc icc cc"
    1950              fi
    1951              ;;
    1952   *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    1953   *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
    1954 esac
    1955 
    1956 # We delete the cached value, since the test might not have been
    1957 # performed with our choice of compilers earlier
    1958 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
    1959 # AC_MSG_NOTICE([C compiler candidates: $comps])
    1960 ac_ext=c
    1961 ac_cpp='$CPP $CPPFLAGS'
    1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1965 if test -n "$ac_tool_prefix"; then
    1966   for ac_prog in $comps
    1967   do
    1968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    1969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1655    test -n "$CXX" && break
     1656  done
     1657fi
     1658if test -z "$CXX"; then
     1659  ac_ct_CXX=$CXX
     1660  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1661do
     1662  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1663set dummy $ac_prog; ac_word=$2
    19701664echo "$as_me:$LINENO: checking for $ac_word" >&5
    19711665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1972 if test "${ac_cv_prog_CC+set}" = set; then
     1666if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    19731667  echo $ECHO_N "(cached) $ECHO_C" >&6
    19741668else
    1975   if test -n "$CC"; then
    1976   ac_cv_prog_CC="$CC" # Let the user override the test.
     1669  if test -n "$ac_ct_CXX"; then
     1670  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    19771671else
    19781672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    19831677  for ac_exec_ext in '' $ac_executable_extensions; do
    19841678  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1985     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1679    ac_cv_prog_ac_ct_CXX="$ac_prog"
    19861680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19871681    break 2
     
    19921686fi
    19931687fi
    1994 CC=$ac_cv_prog_CC
    1995 if test -n "$CC"; then
    1996   echo "$as_me:$LINENO: result: $CC" >&5
    1997 echo "${ECHO_T}$CC" >&6
     1688ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1689if test -n "$ac_ct_CXX"; then
     1690  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     1691echo "${ECHO_T}$ac_ct_CXX" >&6
    19981692else
    19991693  echo "$as_me:$LINENO: result: no" >&5
     
    20011695fi
    20021696
    2003     test -n "$CC" && break
    2004   done
    2005 fi
    2006 if test -z "$CC"; then
    2007   ac_ct_CC=$CC
    2008   for ac_prog in $comps
    2009 do
    2010   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2011 set dummy $ac_prog; ac_word=$2
    2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2015   echo $ECHO_N "(cached) $ECHO_C" >&6
    2016 else
    2017   if test -n "$ac_ct_CC"; then
    2018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2019 else
    2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2021 for as_dir in $PATH
    2022 do
    2023   IFS=$as_save_IFS
    2024   test -z "$as_dir" && as_dir=.
    2025   for ac_exec_ext in '' $ac_executable_extensions; do
    2026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2027     ac_cv_prog_ac_ct_CC="$ac_prog"
    2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2029     break 2
    2030   fi
     1697  test -n "$ac_ct_CXX" && break
    20311698done
    2032 done
    2033 
    2034 fi
    2035 fi
    2036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2037 if test -n "$ac_ct_CC"; then
    2038   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2039 echo "${ECHO_T}$ac_ct_CC" >&6
    2040 else
    2041   echo "$as_me:$LINENO: result: no" >&5
    2042 echo "${ECHO_T}no" >&6
    2043 fi
    2044 
    2045   test -n "$ac_ct_CC" && break
    2046 done
    2047 
    2048   CC=$ac_ct_CC
    2049 fi
    2050 
    2051 
    2052 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    2053 See \`config.log' for more details." >&5
    2054 echo "$as_me: error: no acceptable C compiler found in \$PATH
    2055 See \`config.log' for more details." >&2;}
    2056    { (exit 1); exit 1; }; }
     1699test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1700
     1701  CXX=$ac_ct_CXX
     1702fi
     1703
    20571704
    20581705# Provide some information about the compiler.
    20591706echo "$as_me:$LINENO:" \
    2060      "checking for C compiler version" >&5
     1707     "checking for C++ compiler version" >&5
    20611708ac_compiler=`set X $ac_compile; echo $2`
    20621709{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     
    20961743# It will help us diagnose broken compilers, and finding out an intuition
    20971744# of exeext.
    2098 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2099 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1745echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
     1746echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
    21001747ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    21011748if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     
    21401787sed 's/^/| /' conftest.$ac_ext >&5
    21411788
    2142 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
     1789{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
    21431790See \`config.log' for more details." >&5
    2144 echo "$as_me: error: C compiler cannot create executables
     1791echo "$as_me: error: C++ compiler cannot create executables
    21451792See \`config.log' for more details." >&2;}
    21461793   { (exit 77); exit 77; }; }
     
    21531800# Check the compiler produces executables we can run.  If not, either
    21541801# the compiler is broken, or we cross compile.
    2155 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    2156 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     1802echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
     1803echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
    21571804# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    21581805# If not cross compiling, check that we can run a simple program.
     
    21691816        cross_compiling=yes
    21701817    else
    2171         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     1818        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
    21721819If you meant to cross compile, use \`--host'.
    21731820See \`config.log' for more details." >&5
    2174 echo "$as_me: error: cannot run C compiled programs.
     1821echo "$as_me: error: cannot run C++ compiled programs.
    21751822If you meant to cross compile, use \`--host'.
    21761823See \`config.log' for more details." >&2;}
     
    22771924OBJEXT=$ac_cv_objext
    22781925ac_objext=$OBJEXT
     1926echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     1927echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1928if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1929  echo $ECHO_N "(cached) $ECHO_C" >&6
     1930else
     1931  cat >conftest.$ac_ext <<_ACEOF
     1932/* confdefs.h.  */
     1933_ACEOF
     1934cat confdefs.h >>conftest.$ac_ext
     1935cat >>conftest.$ac_ext <<_ACEOF
     1936/* end confdefs.h.  */
     1937
     1938int
     1939main ()
     1940{
     1941#ifndef __GNUC__
     1942       choke me
     1943#endif
     1944
     1945  ;
     1946  return 0;
     1947}
     1948_ACEOF
     1949rm -f conftest.$ac_objext
     1950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1951  (eval $ac_compile) 2>conftest.er1
     1952  ac_status=$?
     1953  grep -v '^ *+' conftest.er1 >conftest.err
     1954  rm -f conftest.er1
     1955  cat conftest.err >&5
     1956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1957  (exit $ac_status); } &&
     1958         { ac_try='test -z "$ac_cxx_werror_flag"
     1959                         || test ! -s conftest.err'
     1960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1961  (eval $ac_try) 2>&5
     1962  ac_status=$?
     1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1964  (exit $ac_status); }; } &&
     1965         { ac_try='test -s conftest.$ac_objext'
     1966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1967  (eval $ac_try) 2>&5
     1968  ac_status=$?
     1969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1970  (exit $ac_status); }; }; then
     1971  ac_compiler_gnu=yes
     1972else
     1973  echo "$as_me: failed program was:" >&5
     1974sed 's/^/| /' conftest.$ac_ext >&5
     1975
     1976ac_compiler_gnu=no
     1977fi
     1978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1979ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1980
     1981fi
     1982echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     1983echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1984GXX=`test $ac_compiler_gnu = yes && echo yes`
     1985ac_test_CXXFLAGS=${CXXFLAGS+set}
     1986ac_save_CXXFLAGS=$CXXFLAGS
     1987CXXFLAGS="-g"
     1988echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     1989echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1990if test "${ac_cv_prog_cxx_g+set}" = set; then
     1991  echo $ECHO_N "(cached) $ECHO_C" >&6
     1992else
     1993  cat >conftest.$ac_ext <<_ACEOF
     1994/* confdefs.h.  */
     1995_ACEOF
     1996cat confdefs.h >>conftest.$ac_ext
     1997cat >>conftest.$ac_ext <<_ACEOF
     1998/* end confdefs.h.  */
     1999
     2000int
     2001main ()
     2002{
     2003
     2004  ;
     2005  return 0;
     2006}
     2007_ACEOF
     2008rm -f conftest.$ac_objext
     2009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2010  (eval $ac_compile) 2>conftest.er1
     2011  ac_status=$?
     2012  grep -v '^ *+' conftest.er1 >conftest.err
     2013  rm -f conftest.er1
     2014  cat conftest.err >&5
     2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2016  (exit $ac_status); } &&
     2017         { ac_try='test -z "$ac_cxx_werror_flag"
     2018                         || test ! -s conftest.err'
     2019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2020  (eval $ac_try) 2>&5
     2021  ac_status=$?
     2022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2023  (exit $ac_status); }; } &&
     2024         { ac_try='test -s conftest.$ac_objext'
     2025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2026  (eval $ac_try) 2>&5
     2027  ac_status=$?
     2028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2029  (exit $ac_status); }; }; then
     2030  ac_cv_prog_cxx_g=yes
     2031else
     2032  echo "$as_me: failed program was:" >&5
     2033sed 's/^/| /' conftest.$ac_ext >&5
     2034
     2035ac_cv_prog_cxx_g=no
     2036fi
     2037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2038fi
     2039echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     2040echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     2041if test "$ac_test_CXXFLAGS" = set; then
     2042  CXXFLAGS=$ac_save_CXXFLAGS
     2043elif test $ac_cv_prog_cxx_g = yes; then
     2044  if test "$GXX" = yes; then
     2045    CXXFLAGS="-g -O2"
     2046  else
     2047    CXXFLAGS="-g"
     2048  fi
     2049else
     2050  if test "$GXX" = yes; then
     2051    CXXFLAGS="-O2"
     2052  else
     2053    CXXFLAGS=
     2054  fi
     2055fi
     2056for ac_declaration in \
     2057   '' \
     2058   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2059   'extern "C" void std::exit (int); using std::exit;' \
     2060   'extern "C" void exit (int) throw ();' \
     2061   'extern "C" void exit (int);' \
     2062   'void exit (int);'
     2063do
     2064  cat >conftest.$ac_ext <<_ACEOF
     2065/* confdefs.h.  */
     2066_ACEOF
     2067cat confdefs.h >>conftest.$ac_ext
     2068cat >>conftest.$ac_ext <<_ACEOF
     2069/* end confdefs.h.  */
     2070$ac_declaration
     2071#include <stdlib.h>
     2072int
     2073main ()
     2074{
     2075exit (42);
     2076  ;
     2077  return 0;
     2078}
     2079_ACEOF
     2080rm -f conftest.$ac_objext
     2081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2082  (eval $ac_compile) 2>conftest.er1
     2083  ac_status=$?
     2084  grep -v '^ *+' conftest.er1 >conftest.err
     2085  rm -f conftest.er1
     2086  cat conftest.err >&5
     2087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2088  (exit $ac_status); } &&
     2089         { ac_try='test -z "$ac_cxx_werror_flag"
     2090                         || test ! -s conftest.err'
     2091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2092  (eval $ac_try) 2>&5
     2093  ac_status=$?
     2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2095  (exit $ac_status); }; } &&
     2096         { ac_try='test -s conftest.$ac_objext'
     2097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2098  (eval $ac_try) 2>&5
     2099  ac_status=$?
     2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2101  (exit $ac_status); }; }; then
     2102  :
     2103else
     2104  echo "$as_me: failed program was:" >&5
     2105sed 's/^/| /' conftest.$ac_ext >&5
     2106
     2107continue
     2108fi
     2109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2110  cat >conftest.$ac_ext <<_ACEOF
     2111/* confdefs.h.  */
     2112_ACEOF
     2113cat confdefs.h >>conftest.$ac_ext
     2114cat >>conftest.$ac_ext <<_ACEOF
     2115/* end confdefs.h.  */
     2116$ac_declaration
     2117int
     2118main ()
     2119{
     2120exit (42);
     2121  ;
     2122  return 0;
     2123}
     2124_ACEOF
     2125rm -f conftest.$ac_objext
     2126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2127  (eval $ac_compile) 2>conftest.er1
     2128  ac_status=$?
     2129  grep -v '^ *+' conftest.er1 >conftest.err
     2130  rm -f conftest.er1
     2131  cat conftest.err >&5
     2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2133  (exit $ac_status); } &&
     2134         { ac_try='test -z "$ac_cxx_werror_flag"
     2135                         || test ! -s conftest.err'
     2136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2137  (eval $ac_try) 2>&5
     2138  ac_status=$?
     2139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2140  (exit $ac_status); }; } &&
     2141         { ac_try='test -s conftest.$ac_objext'
     2142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2143  (eval $ac_try) 2>&5
     2144  ac_status=$?
     2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2146  (exit $ac_status); }; }; then
     2147  break
     2148else
     2149  echo "$as_me: failed program was:" >&5
     2150sed 's/^/| /' conftest.$ac_ext >&5
     2151
     2152fi
     2153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2154done
     2155rm -f conftest*
     2156if test -n "$ac_declaration"; then
     2157  echo '#ifdef __cplusplus' >>confdefs.h
     2158  echo $ac_declaration      >>confdefs.h
     2159  echo '#endif'             >>confdefs.h
     2160fi
     2161
     2162ac_ext=cc
     2163ac_cpp='$CXXCPP $CPPFLAGS'
     2164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2167
     2168
     2169ac_ext=cc
     2170ac_cpp='$CXXCPP $CPPFLAGS'
     2171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2174echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
     2175echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
     2176if test -z "$CXXCPP"; then
     2177  if test "${ac_cv_prog_CXXCPP+set}" = set; then
     2178  echo $ECHO_N "(cached) $ECHO_C" >&6
     2179else
     2180      # Double quotes because CXXCPP needs to be expanded
     2181    for CXXCPP in "$CXX -E" "/lib/cpp"
     2182    do
     2183      ac_preproc_ok=false
     2184for ac_cxx_preproc_warn_flag in '' yes
     2185do
     2186  # Use a header file that comes with gcc, so configuring glibc
     2187  # with a fresh cross-compiler works.
     2188  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2189  # <limits.h> exists even on freestanding compilers.
     2190  # On the NeXT, cc -E runs the code through the compiler's parser,
     2191  # not just through cpp. "Syntax error" is here to catch this case.
     2192  cat >conftest.$ac_ext <<_ACEOF
     2193/* confdefs.h.  */
     2194_ACEOF
     2195cat confdefs.h >>conftest.$ac_ext
     2196cat >>conftest.$ac_ext <<_ACEOF
     2197/* end confdefs.h.  */
     2198#ifdef __STDC__
     2199# include <limits.h>
     2200#else
     2201# include <assert.h>
     2202#endif
     2203                     Syntax error
     2204_ACEOF
     2205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2206  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2207  ac_status=$?
     2208  grep -v '^ *+' conftest.er1 >conftest.err
     2209  rm -f conftest.er1
     2210  cat conftest.err >&5
     2211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2212  (exit $ac_status); } >/dev/null; then
     2213  if test -s conftest.err; then
     2214    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2215    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2216  else
     2217    ac_cpp_err=
     2218  fi
     2219else
     2220  ac_cpp_err=yes
     2221fi
     2222if test -z "$ac_cpp_err"; then
     2223  :
     2224else
     2225  echo "$as_me: failed program was:" >&5
     2226sed 's/^/| /' conftest.$ac_ext >&5
     2227
     2228  # Broken: fails on valid input.
     2229continue
     2230fi
     2231rm -f conftest.err conftest.$ac_ext
     2232
     2233  # OK, works on sane cases.  Now check whether non-existent headers
     2234  # can be detected and how.
     2235  cat >conftest.$ac_ext <<_ACEOF
     2236/* confdefs.h.  */
     2237_ACEOF
     2238cat confdefs.h >>conftest.$ac_ext
     2239cat >>conftest.$ac_ext <<_ACEOF
     2240/* end confdefs.h.  */
     2241#include <ac_nonexistent.h>
     2242_ACEOF
     2243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2245  ac_status=$?
     2246  grep -v '^ *+' conftest.er1 >conftest.err
     2247  rm -f conftest.er1
     2248  cat conftest.err >&5
     2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2250  (exit $ac_status); } >/dev/null; then
     2251  if test -s conftest.err; then
     2252    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2253    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2254  else
     2255    ac_cpp_err=
     2256  fi
     2257else
     2258  ac_cpp_err=yes
     2259fi
     2260if test -z "$ac_cpp_err"; then
     2261  # Broken: success on invalid input.
     2262continue
     2263else
     2264  echo "$as_me: failed program was:" >&5
     2265sed 's/^/| /' conftest.$ac_ext >&5
     2266
     2267  # Passes both tests.
     2268ac_preproc_ok=:
     2269break
     2270fi
     2271rm -f conftest.err conftest.$ac_ext
     2272
     2273done
     2274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2275rm -f conftest.err conftest.$ac_ext
     2276if $ac_preproc_ok; then
     2277  break
     2278fi
     2279
     2280    done
     2281    ac_cv_prog_CXXCPP=$CXXCPP
     2282
     2283fi
     2284  CXXCPP=$ac_cv_prog_CXXCPP
     2285else
     2286  ac_cv_prog_CXXCPP=$CXXCPP
     2287fi
     2288echo "$as_me:$LINENO: result: $CXXCPP" >&5
     2289echo "${ECHO_T}$CXXCPP" >&6
     2290ac_preproc_ok=false
     2291for ac_cxx_preproc_warn_flag in '' yes
     2292do
     2293  # Use a header file that comes with gcc, so configuring glibc
     2294  # with a fresh cross-compiler works.
     2295  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2296  # <limits.h> exists even on freestanding compilers.
     2297  # On the NeXT, cc -E runs the code through the compiler's parser,
     2298  # not just through cpp. "Syntax error" is here to catch this case.
     2299  cat >conftest.$ac_ext <<_ACEOF
     2300/* confdefs.h.  */
     2301_ACEOF
     2302cat confdefs.h >>conftest.$ac_ext
     2303cat >>conftest.$ac_ext <<_ACEOF
     2304/* end confdefs.h.  */
     2305#ifdef __STDC__
     2306# include <limits.h>
     2307#else
     2308# include <assert.h>
     2309#endif
     2310                     Syntax error
     2311_ACEOF
     2312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2313  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2314  ac_status=$?
     2315  grep -v '^ *+' conftest.er1 >conftest.err
     2316  rm -f conftest.er1
     2317  cat conftest.err >&5
     2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2319  (exit $ac_status); } >/dev/null; then
     2320  if test -s conftest.err; then
     2321    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2322    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2323  else
     2324    ac_cpp_err=
     2325  fi
     2326else
     2327  ac_cpp_err=yes
     2328fi
     2329if test -z "$ac_cpp_err"; then
     2330  :
     2331else
     2332  echo "$as_me: failed program was:" >&5
     2333sed 's/^/| /' conftest.$ac_ext >&5
     2334
     2335  # Broken: fails on valid input.
     2336continue
     2337fi
     2338rm -f conftest.err conftest.$ac_ext
     2339
     2340  # OK, works on sane cases.  Now check whether non-existent headers
     2341  # can be detected and how.
     2342  cat >conftest.$ac_ext <<_ACEOF
     2343/* confdefs.h.  */
     2344_ACEOF
     2345cat confdefs.h >>conftest.$ac_ext
     2346cat >>conftest.$ac_ext <<_ACEOF
     2347/* end confdefs.h.  */
     2348#include <ac_nonexistent.h>
     2349_ACEOF
     2350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2351  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2352  ac_status=$?
     2353  grep -v '^ *+' conftest.er1 >conftest.err
     2354  rm -f conftest.er1
     2355  cat conftest.err >&5
     2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2357  (exit $ac_status); } >/dev/null; then
     2358  if test -s conftest.err; then
     2359    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2360    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2361  else
     2362    ac_cpp_err=
     2363  fi
     2364else
     2365  ac_cpp_err=yes
     2366fi
     2367if test -z "$ac_cpp_err"; then
     2368  # Broken: success on invalid input.
     2369continue
     2370else
     2371  echo "$as_me: failed program was:" >&5
     2372sed 's/^/| /' conftest.$ac_ext >&5
     2373
     2374  # Passes both tests.
     2375ac_preproc_ok=:
     2376break
     2377fi
     2378rm -f conftest.err conftest.$ac_ext
     2379
     2380done
     2381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2382rm -f conftest.err conftest.$ac_ext
     2383if $ac_preproc_ok; then
     2384  :
     2385else
     2386  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     2387See \`config.log' for more details." >&5
     2388echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     2389See \`config.log' for more details." >&2;}
     2390   { (exit 1); exit 1; }; }
     2391fi
     2392
     2393ac_ext=cc
     2394ac_cpp='$CXXCPP $CPPFLAGS'
     2395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2398
     2399
     2400echo "$as_me:$LINENO: checking for egrep" >&5
     2401echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     2402if test "${ac_cv_prog_egrep+set}" = set; then
     2403  echo $ECHO_N "(cached) $ECHO_C" >&6
     2404else
     2405  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     2406    then ac_cv_prog_egrep='grep -E'
     2407    else ac_cv_prog_egrep='egrep'
     2408    fi
     2409fi
     2410echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     2411echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     2412 EGREP=$ac_cv_prog_egrep
     2413
     2414
     2415echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     2416echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     2417if test "${ac_cv_header_stdc+set}" = set; then
     2418  echo $ECHO_N "(cached) $ECHO_C" >&6
     2419else
     2420  cat >conftest.$ac_ext <<_ACEOF
     2421/* confdefs.h.  */
     2422_ACEOF
     2423cat confdefs.h >>conftest.$ac_ext
     2424cat >>conftest.$ac_ext <<_ACEOF
     2425/* end confdefs.h.  */
     2426#include <stdlib.h>
     2427#include <stdarg.h>
     2428#include <string.h>
     2429#include <float.h>
     2430
     2431int
     2432main ()
     2433{
     2434
     2435  ;
     2436  return 0;
     2437}
     2438_ACEOF
     2439rm -f conftest.$ac_objext
     2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2441  (eval $ac_compile) 2>conftest.er1
     2442  ac_status=$?
     2443  grep -v '^ *+' conftest.er1 >conftest.err
     2444  rm -f conftest.er1
     2445  cat conftest.err >&5
     2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2447  (exit $ac_status); } &&
     2448         { ac_try='test -z "$ac_cxx_werror_flag"
     2449                         || test ! -s conftest.err'
     2450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2451  (eval $ac_try) 2>&5
     2452  ac_status=$?
     2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2454  (exit $ac_status); }; } &&
     2455         { ac_try='test -s conftest.$ac_objext'
     2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2457  (eval $ac_try) 2>&5
     2458  ac_status=$?
     2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2460  (exit $ac_status); }; }; then
     2461  ac_cv_header_stdc=yes
     2462else
     2463  echo "$as_me: failed program was:" >&5
     2464sed 's/^/| /' conftest.$ac_ext >&5
     2465
     2466ac_cv_header_stdc=no
     2467fi
     2468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2469
     2470if test $ac_cv_header_stdc = yes; then
     2471  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     2472  cat >conftest.$ac_ext <<_ACEOF
     2473/* confdefs.h.  */
     2474_ACEOF
     2475cat confdefs.h >>conftest.$ac_ext
     2476cat >>conftest.$ac_ext <<_ACEOF
     2477/* end confdefs.h.  */
     2478#include <string.h>
     2479
     2480_ACEOF
     2481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2482  $EGREP "memchr" >/dev/null 2>&1; then
     2483  :
     2484else
     2485  ac_cv_header_stdc=no
     2486fi
     2487rm -f conftest*
     2488
     2489fi
     2490
     2491if test $ac_cv_header_stdc = yes; then
     2492  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     2493  cat >conftest.$ac_ext <<_ACEOF
     2494/* confdefs.h.  */
     2495_ACEOF
     2496cat confdefs.h >>conftest.$ac_ext
     2497cat >>conftest.$ac_ext <<_ACEOF
     2498/* end confdefs.h.  */
     2499#include <stdlib.h>
     2500
     2501_ACEOF
     2502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2503  $EGREP "free" >/dev/null 2>&1; then
     2504  :
     2505else
     2506  ac_cv_header_stdc=no
     2507fi
     2508rm -f conftest*
     2509
     2510fi
     2511
     2512if test $ac_cv_header_stdc = yes; then
     2513  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     2514  if test "$cross_compiling" = yes; then
     2515  :
     2516else
     2517  cat >conftest.$ac_ext <<_ACEOF
     2518/* confdefs.h.  */
     2519_ACEOF
     2520cat confdefs.h >>conftest.$ac_ext
     2521cat >>conftest.$ac_ext <<_ACEOF
     2522/* end confdefs.h.  */
     2523#include <ctype.h>
     2524#if ((' ' & 0x0FF) == 0x020)
     2525# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2526# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2527#else
     2528# define ISLOWER(c) \
     2529                   (('a' <= (c) && (c) <= 'i') \
     2530                     || ('j' <= (c) && (c) <= 'r') \
     2531                     || ('s' <= (c) && (c) <= 'z'))
     2532# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     2533#endif
     2534
     2535#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     2536int
     2537main ()
     2538{
     2539  int i;
     2540  for (i = 0; i < 256; i++)
     2541    if (XOR (islower (i), ISLOWER (i))
     2542        || toupper (i) != TOUPPER (i))
     2543      exit(2);
     2544  exit (0);
     2545}
     2546_ACEOF
     2547rm -f conftest$ac_exeext
     2548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2549  (eval $ac_link) 2>&5
     2550  ac_status=$?
     2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2554  (eval $ac_try) 2>&5
     2555  ac_status=$?
     2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2557  (exit $ac_status); }; }; then
     2558  :
     2559else
     2560  echo "$as_me: program exited with status $ac_status" >&5
     2561echo "$as_me: failed program was:" >&5
     2562sed 's/^/| /' conftest.$ac_ext >&5
     2563
     2564( exit $ac_status )
     2565ac_cv_header_stdc=no
     2566fi
     2567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     2568fi
     2569fi
     2570fi
     2571echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     2572echo "${ECHO_T}$ac_cv_header_stdc" >&6
     2573if test $ac_cv_header_stdc = yes; then
     2574
     2575cat >>confdefs.h <<\_ACEOF
     2576#define STDC_HEADERS 1
     2577_ACEOF
     2578
     2579fi
     2580
     2581# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     2582
     2583
     2584
     2585
     2586
     2587
     2588
     2589
     2590
     2591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     2592                  inttypes.h stdint.h unistd.h
     2593do
     2594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     2595echo "$as_me:$LINENO: checking for $ac_header" >&5
     2596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2597if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2598  echo $ECHO_N "(cached) $ECHO_C" >&6
     2599else
     2600  cat >conftest.$ac_ext <<_ACEOF
     2601/* confdefs.h.  */
     2602_ACEOF
     2603cat confdefs.h >>conftest.$ac_ext
     2604cat >>conftest.$ac_ext <<_ACEOF
     2605/* end confdefs.h.  */
     2606$ac_includes_default
     2607
     2608#include <$ac_header>
     2609_ACEOF
     2610rm -f conftest.$ac_objext
     2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2612  (eval $ac_compile) 2>conftest.er1
     2613  ac_status=$?
     2614  grep -v '^ *+' conftest.er1 >conftest.err
     2615  rm -f conftest.er1
     2616  cat conftest.err >&5
     2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2618  (exit $ac_status); } &&
     2619         { ac_try='test -z "$ac_cxx_werror_flag"
     2620                         || test ! -s conftest.err'
     2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2622  (eval $ac_try) 2>&5
     2623  ac_status=$?
     2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2625  (exit $ac_status); }; } &&
     2626         { ac_try='test -s conftest.$ac_objext'
     2627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2628  (eval $ac_try) 2>&5
     2629  ac_status=$?
     2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2631  (exit $ac_status); }; }; then
     2632  eval "$as_ac_Header=yes"
     2633else
     2634  echo "$as_me: failed program was:" >&5
     2635sed 's/^/| /' conftest.$ac_ext >&5
     2636
     2637eval "$as_ac_Header=no"
     2638fi
     2639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2640fi
     2641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2643if test `eval echo '${'$as_ac_Header'}'` = yes; then
     2644  cat >>confdefs.h <<_ACEOF
     2645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     2646_ACEOF
     2647
     2648fi
     2649
     2650done
     2651
     2652
     2653ac_ext=cc
     2654ac_cpp='$CXXCPP $CPPFLAGS'
     2655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2658
     2659#if test x"" = x; then
     2660#  hdr="#include <cstdint>"
     2661#else
     2662#  hdr=""
     2663#fi
     2664#AC_CHECK_HEADERS([cstdint],[],[],[$hdr])
     2665
     2666for ac_header in cstdint
     2667do
     2668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     2669if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2670  echo "$as_me:$LINENO: checking for $ac_header" >&5
     2671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2672if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2673  echo $ECHO_N "(cached) $ECHO_C" >&6
     2674fi
     2675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2677else
     2678  # Is the header compilable?
     2679echo "$as_me:$LINENO: checking $ac_header usability" >&5
     2680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     2681cat >conftest.$ac_ext <<_ACEOF
     2682/* confdefs.h.  */
     2683_ACEOF
     2684cat confdefs.h >>conftest.$ac_ext
     2685cat >>conftest.$ac_ext <<_ACEOF
     2686/* end confdefs.h.  */
     2687$ac_includes_default
     2688#include <$ac_header>
     2689_ACEOF
     2690rm -f conftest.$ac_objext
     2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2692  (eval $ac_compile) 2>conftest.er1
     2693  ac_status=$?
     2694  grep -v '^ *+' conftest.er1 >conftest.err
     2695  rm -f conftest.er1
     2696  cat conftest.err >&5
     2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2698  (exit $ac_status); } &&
     2699         { ac_try='test -z "$ac_cxx_werror_flag"
     2700                         || test ! -s conftest.err'
     2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2702  (eval $ac_try) 2>&5
     2703  ac_status=$?
     2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2705  (exit $ac_status); }; } &&
     2706         { ac_try='test -s conftest.$ac_objext'
     2707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2708  (eval $ac_try) 2>&5
     2709  ac_status=$?
     2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2711  (exit $ac_status); }; }; then
     2712  ac_header_compiler=yes
     2713else
     2714  echo "$as_me: failed program was:" >&5
     2715sed 's/^/| /' conftest.$ac_ext >&5
     2716
     2717ac_header_compiler=no
     2718fi
     2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     2721echo "${ECHO_T}$ac_header_compiler" >&6
     2722
     2723# Is the header present?
     2724echo "$as_me:$LINENO: checking $ac_header presence" >&5
     2725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     2726cat >conftest.$ac_ext <<_ACEOF
     2727/* confdefs.h.  */
     2728_ACEOF
     2729cat confdefs.h >>conftest.$ac_ext
     2730cat >>conftest.$ac_ext <<_ACEOF
     2731/* end confdefs.h.  */
     2732#include <$ac_header>
     2733_ACEOF
     2734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2736  ac_status=$?
     2737  grep -v '^ *+' conftest.er1 >conftest.err
     2738  rm -f conftest.er1
     2739  cat conftest.err >&5
     2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2741  (exit $ac_status); } >/dev/null; then
     2742  if test -s conftest.err; then
     2743    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2744    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2745  else
     2746    ac_cpp_err=
     2747  fi
     2748else
     2749  ac_cpp_err=yes
     2750fi
     2751if test -z "$ac_cpp_err"; then
     2752  ac_header_preproc=yes
     2753else
     2754  echo "$as_me: failed program was:" >&5
     2755sed 's/^/| /' conftest.$ac_ext >&5
     2756
     2757  ac_header_preproc=no
     2758fi
     2759rm -f conftest.err conftest.$ac_ext
     2760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     2761echo "${ECHO_T}$ac_header_preproc" >&6
     2762
     2763# So?  What about this header?
     2764case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     2765  yes:no: )
     2766    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     2767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     2768    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     2769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     2770    ac_header_preproc=yes
     2771    ;;
     2772  no:yes:* )
     2773    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     2774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     2775    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     2776echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     2777    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     2778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     2779    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     2780echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     2781    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     2782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     2783    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     2784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     2785    (
     2786      cat <<\_ASBOX
     2787## --------------------------------- ##
     2788## Report this to belotti@lehigh.edu ##
     2789## --------------------------------- ##
     2790_ASBOX
     2791    ) |
     2792      sed "s/^/$as_me: WARNING:     /" >&2
     2793    ;;
     2794esac
     2795echo "$as_me:$LINENO: checking for $ac_header" >&5
     2796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2797if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2798  echo $ECHO_N "(cached) $ECHO_C" >&6
     2799else
     2800  eval "$as_ac_Header=\$ac_header_preproc"
     2801fi
     2802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2804
     2805fi
     2806if test `eval echo '${'$as_ac_Header'}'` = yes; then
     2807  cat >>confdefs.h <<_ACEOF
     2808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     2809_ACEOF
     2810
     2811fi
     2812
     2813done
     2814
     2815
     2816if test "$ac_cv_header_cstdint" != "yes"; then
     2817  #if test x"" = x; then
     2818#  hdr="#include <stdint.h>"
     2819#else
     2820#  hdr=""
     2821#fi
     2822#AC_CHECK_HEADERS([stdint.h],[],[],[$hdr])
     2823
     2824for ac_header in stdint.h
     2825do
     2826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     2827if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2828  echo "$as_me:$LINENO: checking for $ac_header" >&5
     2829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2830if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2831  echo $ECHO_N "(cached) $ECHO_C" >&6
     2832fi
     2833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2835else
     2836  # Is the header compilable?
     2837echo "$as_me:$LINENO: checking $ac_header usability" >&5
     2838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     2839cat >conftest.$ac_ext <<_ACEOF
     2840/* confdefs.h.  */
     2841_ACEOF
     2842cat confdefs.h >>conftest.$ac_ext
     2843cat >>conftest.$ac_ext <<_ACEOF
     2844/* end confdefs.h.  */
     2845$ac_includes_default
     2846#include <$ac_header>
     2847_ACEOF
     2848rm -f conftest.$ac_objext
     2849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2850  (eval $ac_compile) 2>conftest.er1
     2851  ac_status=$?
     2852  grep -v '^ *+' conftest.er1 >conftest.err
     2853  rm -f conftest.er1
     2854  cat conftest.err >&5
     2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2856  (exit $ac_status); } &&
     2857         { ac_try='test -z "$ac_cxx_werror_flag"
     2858                         || test ! -s conftest.err'
     2859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2860  (eval $ac_try) 2>&5
     2861  ac_status=$?
     2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2863  (exit $ac_status); }; } &&
     2864         { ac_try='test -s conftest.$ac_objext'
     2865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2866  (eval $ac_try) 2>&5
     2867  ac_status=$?
     2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2869  (exit $ac_status); }; }; then
     2870  ac_header_compiler=yes
     2871else
     2872  echo "$as_me: failed program was:" >&5
     2873sed 's/^/| /' conftest.$ac_ext >&5
     2874
     2875ac_header_compiler=no
     2876fi
     2877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     2879echo "${ECHO_T}$ac_header_compiler" >&6
     2880
     2881# Is the header present?
     2882echo "$as_me:$LINENO: checking $ac_header presence" >&5
     2883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     2884cat >conftest.$ac_ext <<_ACEOF
     2885/* confdefs.h.  */
     2886_ACEOF
     2887cat confdefs.h >>conftest.$ac_ext
     2888cat >>conftest.$ac_ext <<_ACEOF
     2889/* end confdefs.h.  */
     2890#include <$ac_header>
     2891_ACEOF
     2892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2893  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2894  ac_status=$?
     2895  grep -v '^ *+' conftest.er1 >conftest.err
     2896  rm -f conftest.er1
     2897  cat conftest.err >&5
     2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2899  (exit $ac_status); } >/dev/null; then
     2900  if test -s conftest.err; then
     2901    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2902    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2903  else
     2904    ac_cpp_err=
     2905  fi
     2906else
     2907  ac_cpp_err=yes
     2908fi
     2909if test -z "$ac_cpp_err"; then
     2910  ac_header_preproc=yes
     2911else
     2912  echo "$as_me: failed program was:" >&5
     2913sed 's/^/| /' conftest.$ac_ext >&5
     2914
     2915  ac_header_preproc=no
     2916fi
     2917rm -f conftest.err conftest.$ac_ext
     2918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     2919echo "${ECHO_T}$ac_header_preproc" >&6
     2920
     2921# So?  What about this header?
     2922case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     2923  yes:no: )
     2924    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     2925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     2926    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     2927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     2928    ac_header_preproc=yes
     2929    ;;
     2930  no:yes:* )
     2931    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     2932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     2933    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     2934echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     2935    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     2936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     2937    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     2938echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     2939    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     2940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     2941    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     2942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     2943    (
     2944      cat <<\_ASBOX
     2945## --------------------------------- ##
     2946## Report this to belotti@lehigh.edu ##
     2947## --------------------------------- ##
     2948_ASBOX
     2949    ) |
     2950      sed "s/^/$as_me: WARNING:     /" >&2
     2951    ;;
     2952esac
     2953echo "$as_me:$LINENO: checking for $ac_header" >&5
     2954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2955if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2956  echo $ECHO_N "(cached) $ECHO_C" >&6
     2957else
     2958  eval "$as_ac_Header=\$ac_header_preproc"
     2959fi
     2960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2962
     2963fi
     2964if test `eval echo '${'$as_ac_Header'}'` = yes; then
     2965  cat >>confdefs.h <<_ACEOF
     2966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     2967_ACEOF
     2968
     2969fi
     2970
     2971done
     2972
     2973
     2974fi
     2975ac_ext=c
     2976ac_cpp='$CPP $CPPFLAGS'
     2977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2979ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2980
     2981
     2982
     2983#############################################################################
     2984#                         Standard build tool stuff                         #
     2985#############################################################################
     2986
     2987# Get the system type
     2988ac_aux_dir=
     2989for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     2990  if test -f $ac_dir/install-sh; then
     2991    ac_aux_dir=$ac_dir
     2992    ac_install_sh="$ac_aux_dir/install-sh -c"
     2993    break
     2994  elif test -f $ac_dir/install.sh; then
     2995    ac_aux_dir=$ac_dir
     2996    ac_install_sh="$ac_aux_dir/install.sh -c"
     2997    break
     2998  elif test -f $ac_dir/shtool; then
     2999    ac_aux_dir=$ac_dir
     3000    ac_install_sh="$ac_aux_dir/shtool install -c"
     3001    break
     3002  fi
     3003done
     3004if test -z "$ac_aux_dir"; then
     3005  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     3006echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     3007   { (exit 1); exit 1; }; }
     3008fi
     3009ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     3010ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     3011ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     3012
     3013# Make sure we can run config.sub.
     3014$ac_config_sub sun4 >/dev/null 2>&1 ||
     3015  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     3016echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     3017   { (exit 1); exit 1; }; }
     3018
     3019echo "$as_me:$LINENO: checking build system type" >&5
     3020echo $ECHO_N "checking build system type... $ECHO_C" >&6
     3021if test "${ac_cv_build+set}" = set; then
     3022  echo $ECHO_N "(cached) $ECHO_C" >&6
     3023else
     3024  ac_cv_build_alias=$build_alias
     3025test -z "$ac_cv_build_alias" &&
     3026  ac_cv_build_alias=`$ac_config_guess`
     3027test -z "$ac_cv_build_alias" &&
     3028  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     3029echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     3030   { (exit 1); exit 1; }; }
     3031ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     3032  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     3033echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     3034   { (exit 1); exit 1; }; }
     3035
     3036fi
     3037echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     3038echo "${ECHO_T}$ac_cv_build" >&6
     3039build=$ac_cv_build
     3040build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     3041build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     3042build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     3043
     3044
     3045
     3046# Initialization specifically for project main directories
     3047# Initialize the ADDLIBS variable
     3048ADDLIBS="-lm $LIBS"
     3049
     3050
     3051# Initialize the FADDLIBS variable (which is to be used with a fortran
     3052# compiler and will not include FLIBS)
     3053FADDLIBS="$LIBS"
     3054
     3055
     3056# A useful makefile conditional that is always false
     3057
     3058
     3059if false; then
     3060  ALWAYS_FALSE_TRUE=
     3061  ALWAYS_FALSE_FALSE='#'
     3062else
     3063  ALWAYS_FALSE_TRUE='#'
     3064  ALWAYS_FALSE_FALSE=
     3065fi
     3066
     3067
     3068# We set the following variable so that we know later in AC_COIN_FINALIZE
     3069# that we are in a project main directory
     3070coin_projectdir=yes
     3071
     3072
     3073# Check if user wants to produce debugging code
     3074
     3075echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
     3076echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
     3077
     3078# Check whether --enable-debug or --disable-debug was given.
     3079if test "${enable_debug+set}" = set; then
     3080  enableval="$enable_debug"
     3081  case "${enableval}" in
     3082   yes) coin_debug_compile=true
     3083        if test "${enable_shared+set}" = set; then :; else
     3084          enable_shared=no
     3085        fi
     3086        ;;
     3087   no)  coin_debug_compile=false
     3088        ;;
     3089   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
     3090echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
     3091   { (exit 1); exit 1; }; }
     3092        ;;
     3093esac
     3094else
     3095  coin_debug_compile=false
     3096fi;
     3097
     3098# Check whether --enable-debug-couenne or --disable-debug-couenne was given.
     3099if test "${enable_debug_couenne+set}" = set; then
     3100  enableval="$enable_debug_couenne"
     3101  case "${enableval}" in
     3102    yes) coin_debug_compile=true
     3103         enable_shared=no
     3104         ;;
     3105    no)  coin_debug_compile=false
     3106         ;;
     3107    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
     3108echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
     3109   { (exit 1); exit 1; }; }
     3110         ;;
     3111 esac
     3112else
     3113  :
     3114fi;
     3115
     3116 # m4_ifvaln([Couenne],
     3117
     3118if test $coin_debug_compile = true; then
     3119  echo "$as_me:$LINENO: result: yes" >&5
     3120echo "${ECHO_T}yes" >&6
     3121else
     3122  echo "$as_me:$LINENO: result: no" >&5
     3123echo "${ECHO_T}no" >&6
     3124fi
     3125
     3126
     3127# Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
     3128if test "${with_couenne_verbosity+set}" = set; then
     3129  withval="$with_couenne_verbosity"
     3130  if test "$withval" = yes; then
     3131                withval=1
     3132              fi
     3133              coin_couenne_verbosity=$withval
     3134else
     3135  coin_couenne_verbosity=0
     3136fi;
     3137
     3138cat >>confdefs.h <<_ACEOF
     3139#define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
     3140_ACEOF
     3141
     3142
     3143
     3144# Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
     3145if test "${with_couenne_checklevel+set}" = set; then
     3146  withval="$with_couenne_checklevel"
     3147  if test "$withval" = yes; then
     3148                withval=1
     3149              fi
     3150              coin_couenne_checklevel=$withval
     3151else
     3152  coin_couenne_checklevel=0
     3153fi;
     3154
     3155cat >>confdefs.h <<_ACEOF
     3156#define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
     3157_ACEOF
     3158
     3159
     3160# We use the following variable to have a string with the upper case
     3161# version of the project name
     3162COIN_PRJCT=COUENNE
     3163
     3164
     3165 # m4_ifvaln([Couenne],
     3166
     3167
     3168
     3169# Get the name of the C++ compiler and appropriate compiler options
     3170case $build in
     3171  *-mingw*)
     3172    if test "${LD+set}" = set; then :; else
     3173      LD=link
     3174    fi
     3175    ;;
     3176 esac
     3177 case $enable_doscompile in
     3178   msvc)
     3179     if test "x${LD+set}" = xset; then :; else
     3180       LD=link
     3181     fi
     3182     ;;
     3183 esac
     3184
     3185
     3186 # Check whether --enable-doscompile or --disable-doscompile was given.
     3187if test "${enable_doscompile+set}" = set; then
     3188  enableval="$enable_doscompile"
     3189  if test "$enable_doscompile" != no; then
     3190     case $build in
     3191       *-cygwin* | *-mingw*) ;;
     3192       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
     3193echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
     3194   { (exit 1); exit 1; }; } ;;
     3195     esac
     3196   fi
     3197else
     3198  enable_doscompile=no
     3199fi;
     3200 case "$enable_doscompile" in
     3201   mingw)
     3202     case $build in
     3203       *-mingw*) enable_doscompile=no ;;
     3204     esac
     3205     ;;
     3206   msvc|no) ;;
     3207   yes) enable_doscompile=mingw ;;
     3208   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
     3209                    Try configure --help=recursive." >&5
     3210echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
     3211                    Try configure --help=recursive." >&2;}
     3212   { (exit 1); exit 1; }; }
     3213      ;;
     3214  esac
     3215  if test "$enable_doscompile" != no ; then
     3216    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
     3217echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
     3218  fi
     3219
     3220
     3221
     3222
     3223ac_ext=c
     3224ac_cpp='$CPP $CPPFLAGS'
     3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3228
     3229
     3230# For consistency, we set the C compiler to the same value of the C++
     3231# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
     3232if test x"$CXX" != x; then
     3233  case "$CXX" in
     3234    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     3235      if test x"$CC" = x; then
     3236        CC="$CXX"
     3237        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
     3238echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
     3239      fi
     3240      ;;
     3241  esac
     3242fi
     3243
     3244
     3245
     3246
     3247
     3248
     3249coin_has_cc=yes
     3250
     3251save_cflags="$CFLAGS"
     3252
     3253# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
     3254# Depending on the user's PATH, when Studio/Workshop cc is not present we may
     3255# find /usr/ucb/cc, which is almost certainly not a good choice for the C
     3256# compiler. In this case, put cc after gcc.
     3257
     3258case $build in
     3259  *-cygwin* | *-mingw*)
     3260             if test "$enable_doscompile" = msvc ; then
     3261               comps="icl cl"
     3262             else
     3263               comps="gcc cl"
     3264             fi ;;
     3265  *-*-solaris*)
     3266             # Extract the first word of "cc", so it can be a program name with args.
     3267set dummy cc; ac_word=$2
     3268echo "$as_me:$LINENO: checking for $ac_word" >&5
     3269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3270if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
     3271  echo $ECHO_N "(cached) $ECHO_C" >&6
     3272else
     3273  if test -n "$sol_cc_compiler"; then
     3274  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
     3275else
     3276  ac_prog_rejected=no
     3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3278for as_dir in $PATH
     3279do
     3280  IFS=$as_save_IFS
     3281  test -z "$as_dir" && as_dir=.
     3282  for ac_exec_ext in '' $ac_executable_extensions; do
     3283  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3284    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     3285       ac_prog_rejected=yes
     3286       continue
     3287     fi
     3288    ac_cv_prog_sol_cc_compiler="cc"
     3289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3290    break 2
     3291  fi
     3292done
     3293done
     3294
     3295if test $ac_prog_rejected = yes; then
     3296  # We found a bogon in the path, so make sure we never use it.
     3297  set dummy $ac_cv_prog_sol_cc_compiler
     3298  shift
     3299  if test $# != 0; then
     3300    # We chose a different compiler from the bogus one.
     3301    # However, it has the same basename, so the bogon will be chosen
     3302    # first if we set sol_cc_compiler to just the basename; use the full file name.
     3303    shift
     3304    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
     3305  fi
     3306fi
     3307fi
     3308fi
     3309sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
     3310if test -n "$sol_cc_compiler"; then
     3311  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
     3312echo "${ECHO_T}$sol_cc_compiler" >&6
     3313else
     3314  echo "$as_me:$LINENO: result: no" >&5
     3315echo "${ECHO_T}no" >&6
     3316fi
     3317
     3318             if test "$sol_cc_compiler" = "cc" ; then
     3319               comps="cc xlc gcc pgcc icc"
     3320             else
     3321               comps="xlc gcc pgcc icc cc"
     3322             fi
     3323             ;;
     3324  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
     3325  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     3326esac
     3327
     3328# We delete the cached value, since the test might not have been
     3329# performed with our choice of compilers earlier
     3330$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     3331# AC_MSG_NOTICE([C compiler candidates: $comps])
     3332ac_ext=c
     3333ac_cpp='$CPP $CPPFLAGS'
     3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3336ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3337if test -n "$ac_tool_prefix"; then
     3338  for ac_prog in $comps
     3339  do
     3340    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3342echo "$as_me:$LINENO: checking for $ac_word" >&5
     3343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3344if test "${ac_cv_prog_CC+set}" = set; then
     3345  echo $ECHO_N "(cached) $ECHO_C" >&6
     3346else
     3347  if test -n "$CC"; then
     3348  ac_cv_prog_CC="$CC" # Let the user override the test.
     3349else
     3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3351for as_dir in $PATH
     3352do
     3353  IFS=$as_save_IFS
     3354  test -z "$as_dir" && as_dir=.
     3355  for ac_exec_ext in '' $ac_executable_extensions; do
     3356  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3357    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     3358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3359    break 2
     3360  fi
     3361done
     3362done
     3363
     3364fi
     3365fi
     3366CC=$ac_cv_prog_CC
     3367if test -n "$CC"; then
     3368  echo "$as_me:$LINENO: result: $CC" >&5
     3369echo "${ECHO_T}$CC" >&6
     3370else
     3371  echo "$as_me:$LINENO: result: no" >&5
     3372echo "${ECHO_T}no" >&6
     3373fi
     3374
     3375    test -n "$CC" && break
     3376  done
     3377fi
     3378if test -z "$CC"; then
     3379  ac_ct_CC=$CC
     3380  for ac_prog in $comps
     3381do
     3382  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3383set dummy $ac_prog; ac_word=$2
     3384echo "$as_me:$LINENO: checking for $ac_word" >&5
     3385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3386if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     3387  echo $ECHO_N "(cached) $ECHO_C" >&6
     3388else
     3389  if test -n "$ac_ct_CC"; then
     3390  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     3391else
     3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3393for as_dir in $PATH
     3394do
     3395  IFS=$as_save_IFS
     3396  test -z "$as_dir" && as_dir=.
     3397  for ac_exec_ext in '' $ac_executable_extensions; do
     3398  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3399    ac_cv_prog_ac_ct_CC="$ac_prog"
     3400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3401    break 2
     3402  fi
     3403done
     3404done
     3405
     3406fi
     3407fi
     3408ac_ct_CC=$ac_cv_prog_ac_ct_CC
     3409if test -n "$ac_ct_CC"; then
     3410  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     3411echo "${ECHO_T}$ac_ct_CC" >&6
     3412else
     3413  echo "$as_me:$LINENO: result: no" >&5
     3414echo "${ECHO_T}no" >&6
     3415fi
     3416
     3417  test -n "$ac_ct_CC" && break
     3418done
     3419
     3420  CC=$ac_ct_CC
     3421fi
     3422
     3423
     3424test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     3425See \`config.log' for more details." >&5
     3426echo "$as_me: error: no acceptable C compiler found in \$PATH
     3427See \`config.log' for more details." >&2;}
     3428   { (exit 1); exit 1; }; }
     3429
     3430# Provide some information about the compiler.
     3431echo "$as_me:$LINENO:" \
     3432     "checking for C compiler version" >&5
     3433ac_compiler=`set X $ac_compile; echo $2`
     3434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3435  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3436  ac_status=$?
     3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3438  (exit $ac_status); }
     3439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3440  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3441  ac_status=$?
     3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3443  (exit $ac_status); }
     3444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3445  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3446  ac_status=$?
     3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3448  (exit $ac_status); }
     3449
    22793450echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    22803451echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     
    31184289
    31194290
    3120 
    31214291 #Let's try if that overcomes configuration problem with VC++ 6.0
    31224292
     
    51876357
    51886358# Initialize automake
    5189 echo "$as_me:$LINENO: checking for egrep" >&5
    5190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    5191 if test "${ac_cv_prog_egrep+set}" = set; then
    5192   echo $ECHO_N "(cached) $ECHO_C" >&6
    5193 else
    5194   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    5195     then ac_cv_prog_egrep='grep -E'
    5196     else ac_cv_prog_egrep='egrep'
    5197     fi
    5198 fi
    5199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    5200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    5201  EGREP=$ac_cv_prog_egrep
    5202 
    5203 
    52046359am__api_version="1.9"
    52056360# Find a good install program.  We prefer a C program (faster),
     
    68558010*-*-irix6*)
    68568011  # Find out which ABI we are using.
    6857   echo '#line 6857 "configure"' > conftest.$ac_ext
     8012  echo '#line 8012 "configure"' > conftest.$ac_ext
    68588013  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    68598014  (eval $ac_compile) 2>&5
     
    72728427
    72738428
    7274 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    7275 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    7276 if test "${ac_cv_header_stdc+set}" = set; then
    7277   echo $ECHO_N "(cached) $ECHO_C" >&6
    7278 else
    7279   cat >conftest.$ac_ext <<_ACEOF
    7280 /* confdefs.h.  */
    7281 _ACEOF
    7282 cat confdefs.h >>conftest.$ac_ext
    7283 cat >>conftest.$ac_ext <<_ACEOF
    7284 /* end confdefs.h.  */
    7285 #include <stdlib.h>
    7286 #include <stdarg.h>
    7287 #include <string.h>
    7288 #include <float.h>
    7289 
    7290 int
    7291 main ()
    7292 {
    7293 
    7294   ;
    7295   return 0;
    7296 }
    7297 _ACEOF
    7298 rm -f conftest.$ac_objext
    7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7300   (eval $ac_compile) 2>conftest.er1
    7301   ac_status=$?
    7302   grep -v '^ *+' conftest.er1 >conftest.err
    7303   rm -f conftest.er1
    7304   cat conftest.err >&5
    7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7306   (exit $ac_status); } &&
    7307          { ac_try='test -z "$ac_c_werror_flag"
    7308                          || test ! -s conftest.err'
    7309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7310   (eval $ac_try) 2>&5
    7311   ac_status=$?
    7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7313   (exit $ac_status); }; } &&
    7314          { ac_try='test -s conftest.$ac_objext'
    7315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7316   (eval $ac_try) 2>&5
    7317   ac_status=$?
    7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7319   (exit $ac_status); }; }; then
    7320   ac_cv_header_stdc=yes
    7321 else
    7322   echo "$as_me: failed program was:" >&5
    7323 sed 's/^/| /' conftest.$ac_ext >&5
    7324 
    7325 ac_cv_header_stdc=no
    7326 fi
    7327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7328 
    7329 if test $ac_cv_header_stdc = yes; then
    7330   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    7331   cat >conftest.$ac_ext <<_ACEOF
    7332 /* confdefs.h.  */
    7333 _ACEOF
    7334 cat confdefs.h >>conftest.$ac_ext
    7335 cat >>conftest.$ac_ext <<_ACEOF
    7336 /* end confdefs.h.  */
    7337 #include <string.h>
    7338 
    7339 _ACEOF
    7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    7341   $EGREP "memchr" >/dev/null 2>&1; then
    7342   :
    7343 else
    7344   ac_cv_header_stdc=no
    7345 fi
    7346 rm -f conftest*
    7347 
    7348 fi
    7349 
    7350 if test $ac_cv_header_stdc = yes; then
    7351   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    7352   cat >conftest.$ac_ext <<_ACEOF
    7353 /* confdefs.h.  */
    7354 _ACEOF
    7355 cat confdefs.h >>conftest.$ac_ext
    7356 cat >>conftest.$ac_ext <<_ACEOF
    7357 /* end confdefs.h.  */
    7358 #include <stdlib.h>
    7359 
    7360 _ACEOF
    7361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    7362   $EGREP "free" >/dev/null 2>&1; then
    7363   :
    7364 else
    7365   ac_cv_header_stdc=no
    7366 fi
    7367 rm -f conftest*
    7368 
    7369 fi
    7370 
    7371 if test $ac_cv_header_stdc = yes; then
    7372   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    7373   if test "$cross_compiling" = yes; then
    7374   :
    7375 else
    7376   cat >conftest.$ac_ext <<_ACEOF
    7377 /* confdefs.h.  */
    7378 _ACEOF
    7379 cat confdefs.h >>conftest.$ac_ext
    7380 cat >>conftest.$ac_ext <<_ACEOF
    7381 /* end confdefs.h.  */
    7382 #include <ctype.h>
    7383 #if ((' ' & 0x0FF) == 0x020)
    7384 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    7385 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    7386 #else
    7387 # define ISLOWER(c) \
    7388                    (('a' <= (c) && (c) <= 'i') \
    7389                      || ('j' <= (c) && (c) <= 'r') \
    7390                      || ('s' <= (c) && (c) <= 'z'))
    7391 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    7392 #endif
    7393 
    7394 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    7395 int
    7396 main ()
    7397 {
    7398   int i;
    7399   for (i = 0; i < 256; i++)
    7400     if (XOR (islower (i), ISLOWER (i))
    7401         || toupper (i) != TOUPPER (i))
    7402       exit(2);
    7403   exit (0);
    7404 }
    7405 _ACEOF
    7406 rm -f conftest$ac_exeext
    7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7408   (eval $ac_link) 2>&5
    7409   ac_status=$?
    7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7413   (eval $ac_try) 2>&5
    7414   ac_status=$?
    7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7416   (exit $ac_status); }; }; then
    7417   :
    7418 else
    7419   echo "$as_me: program exited with status $ac_status" >&5
    7420 echo "$as_me: failed program was:" >&5
    7421 sed 's/^/| /' conftest.$ac_ext >&5
    7422 
    7423 ( exit $ac_status )
    7424 ac_cv_header_stdc=no
    7425 fi
    7426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7427 fi
    7428 fi
    7429 fi
    7430 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    7431 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    7432 if test $ac_cv_header_stdc = yes; then
    7433 
    7434 cat >>confdefs.h <<\_ACEOF
    7435 #define STDC_HEADERS 1
    7436 _ACEOF
    7437 
    7438 fi
    7439 
    7440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    7441 
    7442 
    7443 
    7444 
    7445 
    7446 
    7447 
    7448 
    7449 
    7450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    7451                   inttypes.h stdint.h unistd.h
    7452 do
    7453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    7454 echo "$as_me:$LINENO: checking for $ac_header" >&5
    7455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    7457   echo $ECHO_N "(cached) $ECHO_C" >&6
    7458 else
    7459   cat >conftest.$ac_ext <<_ACEOF
    7460 /* confdefs.h.  */
    7461 _ACEOF
    7462 cat confdefs.h >>conftest.$ac_ext
    7463 cat >>conftest.$ac_ext <<_ACEOF
    7464 /* end confdefs.h.  */
    7465 $ac_includes_default
    7466 
    7467 #include <$ac_header>
    7468 _ACEOF
    7469 rm -f conftest.$ac_objext
    7470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7471   (eval $ac_compile) 2>conftest.er1
    7472   ac_status=$?
    7473   grep -v '^ *+' conftest.er1 >conftest.err
    7474   rm -f conftest.er1
    7475   cat conftest.err >&5
    7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7477   (exit $ac_status); } &&
    7478          { ac_try='test -z "$ac_c_werror_flag"
    7479                          || test ! -s conftest.err'
    7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7481   (eval $ac_try) 2>&5
    7482   ac_status=$?
    7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7484   (exit $ac_status); }; } &&
    7485          { ac_try='test -s conftest.$ac_objext'
    7486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7487   (eval $ac_try) 2>&5
    7488   ac_status=$?
    7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7490   (exit $ac_status); }; }; then
    7491   eval "$as_ac_Header=yes"
    7492 else
    7493   echo "$as_me: failed program was:" >&5
    7494 sed 's/^/| /' conftest.$ac_ext >&5
    7495 
    7496 eval "$as_ac_Header=no"
    7497 fi
    7498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7499 fi
    7500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    7501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    7502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    7503   cat >>confdefs.h <<_ACEOF
    7504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    7505 _ACEOF
    7506 
    7507 fi
    7508 
    7509 done
    7510 
    7511 
    75128429
    75138430for ac_header in dlfcn.h
     
    79898906
    79908907# Provide some information about the compiler.
    7991 echo "$as_me:7991:" \
     8908echo "$as_me:8908:" \
    79928909     "checking for Fortran 77 compiler version" >&5
    79938910ac_compiler=`set X $ac_compile; echo $2`
     
    90569973   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    90579974   -e 's:$: $lt_compiler_flag:'`
    9058    (eval echo "\"\$as_me:9058: $lt_compile\"" >&5)
     9975   (eval echo "\"\$as_me:9975: $lt_compile\"" >&5)
    90599976   (eval "$lt_compile" 2>conftest.err)
    90609977   ac_status=$?
    90619978   cat conftest.err >&5
    9062    echo "$as_me:9062: \$? = $ac_status" >&5
     9979   echo "$as_me:9979: \$? = $ac_status" >&5
    90639980   if (exit $ac_status) && test -s "$ac_outfile"; then
    90649981     # The compiler can only warn and ignore the option if not recognized
     
    932410241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    932510242   -e 's:$: $lt_compiler_flag:'`
    9326    (eval echo "\"\$as_me:9326: $lt_compile\"" >&5)
     10243   (eval echo "\"\$as_me:10243: $lt_compile\"" >&5)
    932710244   (eval "$lt_compile" 2>conftest.err)
    932810245   ac_status=$?
    932910246   cat conftest.err >&5
    9330    echo "$as_me:9330: \$? = $ac_status" >&5
     10247   echo "$as_me:10247: \$? = $ac_status" >&5
    933110248   if (exit $ac_status) && test -s "$ac_outfile"; then
    933210249     # The compiler can only warn and ignore the option if not recognized
     
    942810345   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    942910346   -e 's:$: $lt_compiler_flag:'`
    9430    (eval echo "\"\$as_me:9430: $lt_compile\"" >&5)
     10347   (eval echo "\"\$as_me:10347: $lt_compile\"" >&5)
    943110348   (eval "$lt_compile" 2>out/conftest.err)
    943210349   ac_status=$?
    943310350   cat out/conftest.err >&5
    9434    echo "$as_me:9434: \$? = $ac_status" >&5
     10351   echo "$as_me:10351: \$? = $ac_status" >&5
    943510352   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    943610353   then
     
    1177312690  lt_status=$lt_dlunknown
    1177412691  cat > conftest.$ac_ext <<EOF
    11775 #line 11775 "configure"
     12692#line 12692 "configure"
    1177612693#include "confdefs.h"
    1177712694
     
    1187312790  lt_status=$lt_dlunknown
    1187412791  cat > conftest.$ac_ext <<EOF
    11875 #line 11875 "configure"
     12792#line 12792 "configure"
    1187612793#include "confdefs.h"
    1187712794
     
    1421715134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1421815135   -e 's:$: $lt_compiler_flag:'`
    14219    (eval echo "\"\$as_me:14219: $lt_compile\"" >&5)
     15136   (eval echo "\"\$as_me:15136: $lt_compile\"" >&5)
    1422015137   (eval "$lt_compile" 2>conftest.err)
    1422115138   ac_status=$?
    1422215139   cat conftest.err >&5
    14223    echo "$as_me:14223: \$? = $ac_status" >&5
     15140   echo "$as_me:15140: \$? = $ac_status" >&5
    1422415141   if (exit $ac_status) && test -s "$ac_outfile"; then
    1422515142     # The compiler can only warn and ignore the option if not recognized
     
    1432115238   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1432215239   -e 's:$: $lt_compiler_flag:'`
    14323    (eval echo "\"\$as_me:14323: $lt_compile\"" >&5)
     15240   (eval echo "\"\$as_me:15240: $lt_compile\"" >&5)
    1432415241   (eval "$lt_compile" 2>out/conftest.err)
    1432515242   ac_status=$?
    1432615243   cat out/conftest.err >&5
    14327    echo "$as_me:14327: \$? = $ac_status" >&5
     15244   echo "$as_me:15244: \$? = $ac_status" >&5
    1432815245   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1432915246   then
     
    1589116808   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1589216809   -e 's:$: $lt_compiler_flag:'`
    15893    (eval echo "\"\$as_me:15893: $lt_compile\"" >&5)
     16810   (eval echo "\"\$as_me:16810: $lt_compile\"" >&5)
    1589416811   (eval "$lt_compile" 2>conftest.err)
    1589516812   ac_status=$?
    1589616813   cat conftest.err >&5
    15897    echo "$as_me:15897: \$? = $ac_status" >&5
     16814   echo "$as_me:16814: \$? = $ac_status" >&5
    1589816815   if (exit $ac_status) && test -s "$ac_outfile"; then
    1589916816     # The compiler can only warn and ignore the option if not recognized
     
    1599516912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1599616913   -e 's:$: $lt_compiler_flag:'`
    15997    (eval echo "\"\$as_me:15997: $lt_compile\"" >&5)
     16914   (eval echo "\"\$as_me:16914: $lt_compile\"" >&5)
    1599816915   (eval "$lt_compile" 2>out/conftest.err)
    1599916916   ac_status=$?
    1600016917   cat out/conftest.err >&5
    16001    echo "$as_me:16001: \$? = $ac_status" >&5
     16918   echo "$as_me:16918: \$? = $ac_status" >&5
    1600216919   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1600316920   then
     
    1820219119   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1820319120   -e 's:$: $lt_compiler_flag:'`
    18204    (eval echo "\"\$as_me:18204: $lt_compile\"" >&5)
     19121   (eval echo "\"\$as_me:19121: $lt_compile\"" >&5)
    1820519122   (eval "$lt_compile" 2>conftest.err)
    1820619123   ac_status=$?
    1820719124   cat conftest.err >&5
    18208    echo "$as_me:18208: \$? = $ac_status" >&5
     19125   echo "$as_me:19125: \$? = $ac_status" >&5
    1820919126   if (exit $ac_status) && test -s "$ac_outfile"; then
    1821019127     # The compiler can only warn and ignore the option if not recognized
     
    1847019387   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1847119388   -e 's:$: $lt_compiler_flag:'`
    18472    (eval echo "\"\$as_me:18472: $lt_compile\"" >&5)
     19389   (eval echo "\"\$as_me:19389: $lt_compile\"" >&5)
    1847319390   (eval "$lt_compile" 2>conftest.err)
    1847419391   ac_status=$?
    1847519392   cat conftest.err >&5
    18476    echo "$as_me:18476: \$? = $ac_status" >&5
     19393   echo "$as_me:19393: \$? = $ac_status" >&5
    1847719394   if (exit $ac_status) && test -s "$ac_outfile"; then
    1847819395     # The compiler can only warn and ignore the option if not recognized
     
    1857419491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1857519492   -e 's:$: $lt_compiler_flag:'`
    18576    (eval echo "\"\$as_me:18576: $lt_compile\"" >&5)
     19493   (eval echo "\"\$as_me:19493: $lt_compile\"" >&5)
    1857719494   (eval "$lt_compile" 2>out/conftest.err)
    1857819495   ac_status=$?
    1857919496   cat out/conftest.err >&5
    18580    echo "$as_me:18580: \$? = $ac_status" >&5
     19497   echo "$as_me:19497: \$? = $ac_status" >&5
    1858119498   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1858219499   then
     
    2321324130s,@ECHO_T@,$ECHO_T,;t t
    2321424131s,@LIBS@,$LIBS,;t t
     24132s,@CXX@,$CXX,;t t
     24133s,@CXXFLAGS@,$CXXFLAGS,;t t
     24134s,@LDFLAGS@,$LDFLAGS,;t t
     24135s,@CPPFLAGS@,$CPPFLAGS,;t t
     24136s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     24137s,@EXEEXT@,$EXEEXT,;t t
     24138s,@OBJEXT@,$OBJEXT,;t t
     24139s,@CXXCPP@,$CXXCPP,;t t
     24140s,@EGREP@,$EGREP,;t t
    2321524141s,@build@,$build,;t t
    2321624142s,@build_cpu@,$build_cpu,;t t
     
    2322824154s,@CC@,$CC,;t t
    2322924155s,@CFLAGS@,$CFLAGS,;t t
    23230 s,@LDFLAGS@,$LDFLAGS,;t t
    23231 s,@CPPFLAGS@,$CPPFLAGS,;t t
    2323224156s,@ac_ct_CC@,$ac_ct_CC,;t t
    23233 s,@EXEEXT@,$EXEEXT,;t t
    23234 s,@OBJEXT@,$OBJEXT,;t t
    2323524157s,@MPICC@,$MPICC,;t t
    2323624158s,@CXXDEFS@,$CXXDEFS,;t t
     
    2323824160s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
    2323924161s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
    23240 s,@CXX@,$CXX,;t t
    23241 s,@CXXFLAGS@,$CXXFLAGS,;t t
    23242 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    2324324162s,@MPICXX@,$MPICXX,;t t
    23244 s,@EGREP@,$EGREP,;t t
    2324524163s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    2324624164s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     
    2330324221s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    2330424222s,@CPP@,$CPP,;t t
    23305 s,@CXXCPP@,$CXXCPP,;t t
    2330624223s,@F77@,$F77,;t t
    2330724224s,@FFLAGS@,$FFLAGS,;t t
  • trunk/Couenne/configure.ac

    r158 r191  
    3030# /usr/local.
    3131AC_PREFIX_DEFAULT([`pwd`])
     32
     33# for readnl.cpp
     34AC_COIN_CHECK_CXX_CHEADER(stdint)
    3235
    3336#############################################################################
  • trunk/Couenne/src/bound_tightening/tightenBounds.cpp

    r141 r191  
    5151      continue;
    5252
     53    CouNumber &lower_i = Lb (i);
     54    CouNumber &upper_i = Ub (i);
     55
    5356    // early test to avoid a loop
    5457
    55     if ((Lb (i) > Ub (i) + COUENNE_EPS * (1 + CoinMin (fabs (Lb (i)), fabs (Ub (i))))) ||
    56         (Ub (i) < - MAX_BOUND) ||
    57         (Lb (i) >   MAX_BOUND)) {
     58    if ((lower_i > upper_i + COUENNE_EPS * (1 + CoinMin (fabs (lower_i), fabs (upper_i)))) ||
     59        (upper_i < - MAX_BOUND) ||
     60        (lower_i >   MAX_BOUND)) {
    5861
    5962      if (Jnlst()->ProduceOutput(J_ITERSUMMARY, J_BOUNDTIGHTENING)) {
    6063
    6164        Jnlst()->Printf(J_ITERSUMMARY, J_BOUNDTIGHTENING,
    62                         "pre-check: w_%d has infeasible bounds [%.10e,%.10e]. ", i, Lb (i), Ub (i));
     65                        "pre-check: w_%d has infeasible bounds [%.10e,%.10e]. ", i, lower_i, upper_i);
    6366
    6467        if (Jnlst()->ProduceOutput(J_DETAILED, J_BOUNDTIGHTENING)) {
     
    7679    /*if ((Var (i) -> Type () == VAR) &&
    7780        (Var (i) -> isInteger ())) {
    78       Lb (i) = ceil  (Lb (i) - COUENNE_EPS);
    79       Ub (i) = floor (Ub (i) + COUENNE_EPS);
     81      lower_i = ceil  (lower_i - COUENNE_EPS);
     82      upper_i = floor (upper_i + COUENNE_EPS);
    8083      }*/
    8184
    8285    if (Var (i) -> Type () == AUX) {
    83         // TODO: also test if any indep variable of this expression
    84         // have changed. If not, skip
     86      // TODO: also test if any indep variable of this expression
     87      // have changed. If not, skip
    8588
    8689      CouNumber ll, uu;
     
    116119      // check if lower bound got higher
    117120      if ((ll > - COUENNE_INFINITY) &&
    118           (ll >= Lb (i) + COUENNE_EPS) &&
     121          (ll >= lower_i + COUENNE_EPS) &&
    119122          ((fabs (ll)        < COUENNE_EPS) ||
    120            (fabs (Lb (i)) < COUENNE_EPS) ||
    121            (fabs (ll / (Lb (i)) - 1) > COUENNE_EPS)) ) {
     123           (fabs (lower_i) < COUENNE_EPS) ||
     124           (fabs (ll / (lower_i) - 1) > COUENNE_EPS)) ) {
    122125
    123126        if (Jnlst()->ProduceOutput(J_DETAILED, J_BOUNDTIGHTENING)) {
     
    125128          Jnlst()->Printf(J_DETAILED, J_BOUNDTIGHTENING,
    126129                          "  prop L %2d [%g,(%g)] -> [%g,(%g)] (%g) ",
    127                           i, Lb (i), Ub (i), ll, uu, Lb (i) - ll);
     130                          i, lower_i, upper_i, ll, uu, lower_i - ll);
    128131          Var (i) -> print (std::cout);
    129132
     
    136139
    137140          if (optimum_ &&
    138               (optimum_ [i] >= Lb (i)) &&
     141              (optimum_ [i] >= lower_i) &&
    139142              (optimum_ [i] <= ll - COUENNE_EPS)) {
    140143
    141144            Jnlst()->Printf(J_STRONGWARNING, J_BOUNDTIGHTENING,
    142145                            "Couenne: propagating l_%d cuts optimum: [%g --> %g -X-> %g] :: ",
    143                             i, Lb (i), optimum_ [i], ll);
     146                            i, lower_i, optimum_ [i], ll);
    144147            Var (i) -> Lb () -> print (std::cout);
    145148            Jnlst()->Printf(J_DETAILED, J_BOUNDTIGHTENING," --- ");
     
    149152        }
    150153
    151         Lb (i) = ll;
    152 
    153         if (ll > Ub (i) + COUENNE_EPS * (1. + CoinMin (fabs (ll), fabs (Ub (i))))) {
     154        lower_i = ll;
     155
     156        if (ll > upper_i + COUENNE_EPS * (1. + CoinMin (fabs (ll), fabs (upper_i)))) {
    154157          Jnlst () -> Printf (J_ITERSUMMARY, J_BOUNDTIGHTENING,
    155                               "just-check: w_%d has infeasible bounds [%g,%g]. ", i, Lb (i), Ub (i));
     158                              "just-check: w_%d has infeasible bounds [%g,%g]. ", i, lower_i, upper_i);
    156159          return -1;
    157160        }
     
    163166      // check if upper bound got lower
    164167      if ((uu < COUENNE_INFINITY) &&
    165           (uu <= Ub (i) - COUENNE_EPS) &&
     168          (uu <= upper_i - COUENNE_EPS) &&
    166169          ((fabs (uu)      < COUENNE_EPS) ||
    167            (fabs (Ub (i)) < COUENNE_EPS) ||
    168            (fabs (uu / (Ub (i)) - 1) > COUENNE_EPS)) ) {
     170           (fabs (upper_i) < COUENNE_EPS) ||
     171           (fabs (uu / (upper_i) - 1) > COUENNE_EPS)) ) {
    169172        //      if ((uu < COUENNE_INFINITY) && (uu <= ub_ [i+j] - COUENNE_EPS)) {
    170173
     
    178181          Jnlst()->Printf(J_DETAILED, J_BOUNDTIGHTENING,
    179182                          "  prop U %2d [(%g),%g] -> [(%g),%g] (%g) ",
    180                           i, Lb (i), Ub (i), ll, uu, Ub (i) - uu);
     183                          i, lower_i, upper_i, ll, uu, upper_i - uu);
    181184          Var (i) -> print (std::cout);
    182185
     
    189192
    190193          if (optimum_ &&
    191               (optimum_ [i] <= Ub (i)) &&
     194              (optimum_ [i] <= upper_i) &&
    192195              (optimum_ [i] >= uu + COUENNE_EPS)) {
    193196
    194197            Jnlst()->Printf(J_STRONGWARNING, J_BOUNDTIGHTENING,
    195198                            "Couenne: propagating u_%d cuts optimum: [%g <-X- %g <-- %g] :: ",
    196                             i, uu, optimum_ [i], Ub (i));
     199                            i, uu, optimum_ [i], upper_i);
    197200            Var (i) -> Lb () -> print (std::cout);
    198201            Jnlst()->Printf(J_DETAILED, J_BOUNDTIGHTENING," --- ");
     
    202205        }
    203206
    204         Ub (i) = uu;
    205 
    206         if (uu < Lb (i) - COUENNE_EPS) {
     207        upper_i = uu;
     208
     209        if (uu < lower_i - COUENNE_EPS) {
    207210          Jnlst () -> Printf (J_ITERSUMMARY, J_BOUNDTIGHTENING,
    208                               "just-check: w_%d has infeasible bounds [%g,%g]. ", i, Lb (i), Ub (i));
     211                              "just-check: w_%d has infeasible bounds [%g,%g]. ", i, lower_i, upper_i);
    209212          return -1;
    210213        }
  • trunk/Couenne/src/branch/CouenneBranchingObject.cpp

    r141 r191  
    1 /* $Id$ */
    2 /*
     1/* $Id$
     2 *
    33 * Name:    CouenneBranchingObject.cpp
    44 * Authors: Pierre Bonami, IBM Corp.
  • trunk/Couenne/src/branch/CouenneObject.cpp

    r141 r191  
    498498  if (info &&
    499499      ((pseudoMultType_ == INTERVAL_LP) ||
    500        (pseudoMultType_ == INTERVAL_LP_REV))) {
     500       (pseudoMultType_ == INTERVAL_LP_REV)))
    501501
    502502    point = info -> solution_ [index];
    503503
    504     CouNumber delta = closeToBounds * (info -> upper_ [index] - info -> lower_ [index]);
    505 
    506     if      (point < info -> lower_ [index] + delta)
    507       point        = info -> lower_ [index] + delta;
    508     else if (point > info -> upper_ [index] - delta)
    509       point        = info -> upper_ [index] - delta;
    510   }
    511504  else if (brpoint &&
    512505           ((pseudoMultType_ == INTERVAL_BR) ||
     
    514507   
    515508    point = *brpoint;
     509
     510  // now move it away from the bounds
     511
     512  point = midInterval (point,
     513                       info -> lower_ [index],
     514                       info -> upper_ [index]);
     515
     516  CouNumber delta = closeToBounds * (info -> upper_ [index] - info -> lower_ [index]);
     517
     518  if      (point < info -> lower_ [index] + delta)
     519    point        = info -> lower_ [index] + delta;
     520  else if (point > info -> upper_ [index] - delta)
     521    point        = info -> upper_ [index] - delta;
    516522
    517523  ///////////////////////////////////////////////////////////
     
    540546  }
    541547
     548//   if (downEstimate_ <= 0.0 || upEstimate_ <= 0.0)
     549//     printf ("%g [%g,%g] ---> [%g,%g]\n",
     550//          point,
     551//          info -> lower_ [index],
     552//          info -> upper_ [index],
     553//          downEstimate_, upEstimate_);
     554
    542555  if (reference_ -> isInteger ()) {
    543556    if (downEstimate_ <       point  - floor (point)) downEstimate_ =       point  - floor (point);
  • trunk/Couenne/src/branch/doStrongBranching.cpp

    r179 r191  
    116116      /* Try the first direction.  Each subsequent call to branch()
    117117         performs the specified branch and advances the branch object
    118          state to the next branch alternative.) */
     118         state to the next branch alternative. */
    119119
    120120      int
     
    166166      // can check if we got solution
    167167      // status is 0 finished, 1 infeasible and 2 unfinished and 3 is solution
     168
     169      /*if (CouObj)
     170        jnlst_ -> Printf (J_ITERSUMMARY, J_BRANCHING, "dnEst %g upEst %g\n",
     171                          CouObj->downEstimate(),
     172                          CouObj->upEstimate());*/
    168173
    169174      // only update information if this branch is feasible
     
    238243      // can check if we got solution
    239244      // status is 0 finished, 1 infeasible and 2 unfinished and 3 is solution
     245
     246      /*if (CouObj)
     247        jnlst_ -> Printf (J_ITERSUMMARY, J_BRANCHING, "dnEst %g upEst %g\n",
     248                          CouObj->downEstimate(),
     249                          CouObj->upEstimate());*/
    240250
    241251      // only update information if this branch is feasible
  • trunk/Couenne/src/convex/operators/conv-exprGroup.cpp

    r141 r191  
    176176    }
    177177
    178     if (inf_lb) lb = -COUENNE_INFINITY;
    179     if (inf_ub) ub =  COUENNE_INFINITY;
    180 
    181     if (inf_lb && inf_ub) break; // no need to keep computing...
     178    if (inf_lb)
     179      lb = -COUENNE_INFINITY;
     180
     181    if (inf_ub) {
     182      ub =  COUENNE_INFINITY;
     183      if (inf_lb)
     184        break;
     185    }
     186
     187    //if (inf_lb && inf_ub) break; // no need to keep computing...
    182188  }
    183189}
  • trunk/Couenne/src/main/Makefile.am

    r135 r191  
    2929        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    3030        $(BONMINOBJDIR)/src/CbcBonmin/libbonmin.la \
     31        $(BONMINOBJDIR)/src/Algorithms/Branching/libbonbranching.la \
    3132        $(BONMINOBJDIR)/src/Interfaces/libbonmininterfaces.la \
    3233        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
  • trunk/Couenne/src/main/Makefile.in

    r135 r191  
    8484        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    8585        $(BONMINOBJDIR)/src/CbcBonmin/libbonmin.la \
     86        $(BONMINOBJDIR)/src/Algorithms/Branching/libbonbranching.la \
    8687        $(BONMINOBJDIR)/src/Interfaces/libbonmininterfaces.la \
    8788        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
     
    302303        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    303304        $(BONMINOBJDIR)/src/CbcBonmin/libbonmin.la \
     305        $(BONMINOBJDIR)/src/Algorithms/Branching/libbonbranching.la \
    304306        $(BONMINOBJDIR)/src/Interfaces/libbonmininterfaces.la \
    305307        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
Note: See TracChangeset for help on using the changeset viewer.