Changeset 774


Ignore:
Timestamp:
May 18, 2006 6:22:53 PM (14 years ago)
Author:
andreasw
Message:

several fixes for Cygwin; corrected -no-undefined for Darwin

Location:
trunk/Clp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/Makefile.in

    r766 r774  
    115115CC = @CC@
    116116CCDEPMODE = @CCDEPMODE@
     117CDEFS = @CDEFS@
    117118CFLAGS = @CFLAGS@
    118119CLPOBJDIR = @CLPOBJDIR@
  • trunk/Clp/configure

    r771 r774  
    474474#endif"
    475475
    476 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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE COIN_DEBUG_TRUE COIN_DEBUG_FALSE CXXDEFS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT 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 CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake BUILDTOOLSDIR AUX_DIR HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE MAINTAINER_SMALL_TRUE MAINTAINER_SMALL_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_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 pkg_lib_dir pkg_include_dir pkg_bin_dir COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBOBJS LTLIBOBJS'
     476ac_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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE COIN_DEBUG_TRUE COIN_DEBUG_FALSE CDEFS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXXDEFS CXX CXXFLAGS ac_ct_CXX 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 BUILDTOOLSDIR AUX_DIR HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE MAINTAINER_SMALL_TRUE MAINTAINER_SMALL_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 pkg_lib_dir pkg_include_dir pkg_bin_dir COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBOBJS LTLIBOBJS'
    477477ac_subst_files=''
    478478
     
    915915ac_cv_env_target_alias_set=${target_alias+set}
    916916ac_cv_env_target_alias_value=$target_alias
     917ac_env_CDEFS_set=${CDEFS+set}
     918ac_env_CDEFS_value=$CDEFS
     919ac_cv_env_CDEFS_set=${CDEFS+set}
     920ac_cv_env_CDEFS_value=$CDEFS
     921ac_env_CC_set=${CC+set}
     922ac_env_CC_value=$CC
     923ac_cv_env_CC_set=${CC+set}
     924ac_cv_env_CC_value=$CC
     925ac_env_CFLAGS_set=${CFLAGS+set}
     926ac_env_CFLAGS_value=$CFLAGS
     927ac_cv_env_CFLAGS_set=${CFLAGS+set}
     928ac_cv_env_CFLAGS_value=$CFLAGS
     929ac_env_LDFLAGS_set=${LDFLAGS+set}
     930ac_env_LDFLAGS_value=$LDFLAGS
     931ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     932ac_cv_env_LDFLAGS_value=$LDFLAGS
     933ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     934ac_env_CPPFLAGS_value=$CPPFLAGS
     935ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     936ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    917937ac_env_CXXDEFS_set=${CXXDEFS+set}
    918938ac_env_CXXDEFS_value=$CXXDEFS
     
    927947ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    928948ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    929 ac_env_LDFLAGS_set=${LDFLAGS+set}
    930 ac_env_LDFLAGS_value=$LDFLAGS
    931 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    932 ac_cv_env_LDFLAGS_value=$LDFLAGS
    933 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    934 ac_env_CPPFLAGS_value=$CPPFLAGS
    935 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    936 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    937 ac_env_CC_set=${CC+set}
    938 ac_env_CC_value=$CC
    939 ac_cv_env_CC_set=${CC+set}
    940 ac_cv_env_CC_value=$CC
    941 ac_env_CFLAGS_set=${CFLAGS+set}
    942 ac_env_CFLAGS_value=$CFLAGS
    943 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    944 ac_cv_env_CFLAGS_value=$CFLAGS
    945949ac_env_CPP_set=${CPP+set}
    946950ac_env_CPP_value=$CPP
     
    10641068
    10651069Some influential environment variables:
    1066   CXXDEFS     Additional -D flags to be used when compiling C++ code.
    1067   CXX         C++ compiler command
    1068   CXXFLAGS    C++ compiler flags
     1070  CDEFS       Additional -D flags to be used when compiling C code.
     1071  CC          C compiler command
     1072  CFLAGS      C compiler flags
    10691073  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    10701074              nonstandard directory <lib dir>
    10711075  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    10721076              headers in a nonstandard directory <include dir>
    1073   CC          C compiler command
    1074   CFLAGS      C compiler flags
     1077  CXXDEFS     Additional -D flags to be used when compiling C++ code.
     1078  CXX         C++ compiler command
     1079  CXXFLAGS    C++ compiler flags
    10751080  CPP         C preprocessor
    10761081  CXXCPP      C++ preprocessor
     
    16311636
    16321637
    1633 # A makefile conditional that is set to true if
    1634 
    16351638
    16361639# Check if user wants to produce debugging code
     
    16811684
    16821685
    1683 # This package is written in C++
    1684 ac_ext=cc
    1685 ac_cpp='$CXXCPP $CPPFLAGS'
    1686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1689 
    1690 
    16911686# Get the name of the C++ compiler and appropriate compiler options
    16921687
    1693 ac_ext=cc
    1694 ac_cpp='$CXXCPP $CPPFLAGS'
    1695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1698 
    1699 
    1700 
    1701 
    1702 coin_has_cxx=yes
    1703 
    1704 save_cxxflags="$CXXFLAGS"
     1688ac_ext=c
     1689ac_cpp='$CPP $CPPFLAGS'
     1690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1692ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1693
     1694
     1695# For consistency, we set the C compiler to the same value of the C++
     1696# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
     1697if test x"$CXX" != x; then
     1698  case $CXX in
     1699    cl*)
     1700      if test x"$CC" = x; then
     1701        CC="$CXX"
     1702        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
     1703echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
     1704      fi
     1705      ;;
     1706  esac
     1707fi
     1708
     1709
     1710
     1711coin_has_cc=yes
     1712
     1713save_cflags="$CFLAGS"
    17051714case $build in
    17061715  *-cygwin* | *-mingw*)
    1707              comps="g++ cl" ;;
    1708   *-darwin*) comps="g++ c++ CC" ;;
    1709           *) comps="xlC aCC CC g++ c++ pgCC icpc" ;;
     1716             comps="gcc cl" ;;
     1717  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
     1718  *)         comps="xlc cc gcc pgcc icc" ;;
    17101719esac
    1711 ac_ext=cc
    1712 ac_cpp='$CXXCPP $CPPFLAGS'
    1713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     1720ac_ext=c
     1721ac_cpp='$CPP $CPPFLAGS'
     1722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1724ac_compiler_gnu=$ac_cv_c_compiler_gnu
    17161725if test -n "$ac_tool_prefix"; then
    1717   for ac_prog in $CCC $comps
     1726  for ac_prog in $comps
    17181727  do
    17191728    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    17211730echo "$as_me:$LINENO: checking for $ac_word" >&5
    17221731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1723 if test "${ac_cv_prog_CXX+set}" = set; then
     1732if test "${ac_cv_prog_CC+set}" = set; then
    17241733  echo $ECHO_N "(cached) $ECHO_C" >&6
    17251734else
    1726   if test -n "$CXX"; then
    1727   ac_cv_prog_CXX="$CXX" # Let the user override the test.
     1735  if test -n "$CC"; then
     1736  ac_cv_prog_CC="$CC" # Let the user override the test.
    17281737else
    17291738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    17341743  for ac_exec_ext in '' $ac_executable_extensions; do
    17351744  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1736     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1745    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    17371746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    17381747    break 2
     
    17431752fi
    17441753fi
    1745 CXX=$ac_cv_prog_CXX
    1746 if test -n "$CXX"; then
    1747   echo "$as_me:$LINENO: result: $CXX" >&5
    1748 echo "${ECHO_T}$CXX" >&6
     1754CC=$ac_cv_prog_CC
     1755if test -n "$CC"; then
     1756  echo "$as_me:$LINENO: result: $CC" >&5
     1757echo "${ECHO_T}$CC" >&6
    17491758else
    17501759  echo "$as_me:$LINENO: result: no" >&5
     
    17521761fi
    17531762
    1754     test -n "$CXX" && break
     1763    test -n "$CC" && break
    17551764  done
    17561765fi
    1757 if test -z "$CXX"; then
    1758   ac_ct_CXX=$CXX
    1759   for ac_prog in $CCC $comps
     1766if test -z "$CC"; then
     1767  ac_ct_CC=$CC
     1768  for ac_prog in $comps
    17601769do
    17611770  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    17631772echo "$as_me:$LINENO: checking for $ac_word" >&5
    17641773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1765 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    17661775  echo $ECHO_N "(cached) $ECHO_C" >&6
    17671776else
    1768   if test -n "$ac_ct_CXX"; then
    1769   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1777  if test -n "$ac_ct_CC"; then
     1778  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    17701779else
    17711780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    17761785  for ac_exec_ext in '' $ac_executable_extensions; do
    17771786  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1778     ac_cv_prog_ac_ct_CXX="$ac_prog"
     1787    ac_cv_prog_ac_ct_CC="$ac_prog"
    17791788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    17801789    break 2
     
    17851794fi
    17861795fi
    1787 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    1788 if test -n "$ac_ct_CXX"; then
    1789   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    1790 echo "${ECHO_T}$ac_ct_CXX" >&6
     1796ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1797if test -n "$ac_ct_CC"; then
     1798  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1799echo "${ECHO_T}$ac_ct_CC" >&6
    17911800else
    17921801  echo "$as_me:$LINENO: result: no" >&5
     
    17941803fi
    17951804
    1796   test -n "$ac_ct_CXX" && break
     1805  test -n "$ac_ct_CC" && break
    17971806done
    1798 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    1799 
    1800   CXX=$ac_ct_CXX
    1801 fi
    1802 
     1807
     1808  CC=$ac_ct_CC
     1809fi
     1810
     1811
     1812test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1813See \`config.log' for more details." >&5
     1814echo "$as_me: error: no acceptable C compiler found in \$PATH
     1815See \`config.log' for more details." >&2;}
     1816   { (exit 1); exit 1; }; }
    18031817
    18041818# Provide some information about the compiler.
    18051819echo "$as_me:$LINENO:" \
    1806      "checking for C++ compiler version" >&5
     1820     "checking for C compiler version" >&5
    18071821ac_compiler=`set X $ac_compile; echo $2`
    18081822{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     
    18421856# It will help us diagnose broken compilers, and finding out an intuition
    18431857# of exeext.
    1844 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
    1845 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
     1858echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1859echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    18461860ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    18471861if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     
    18861900sed 's/^/| /' conftest.$ac_ext >&5
    18871901
    1888 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
     1902{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
    18891903See \`config.log' for more details." >&5
    1890 echo "$as_me: error: C++ compiler cannot create executables
     1904echo "$as_me: error: C compiler cannot create executables
    18911905See \`config.log' for more details." >&2;}
    18921906   { (exit 77); exit 77; }; }
     
    18991913# Check the compiler produces executables we can run.  If not, either
    19001914# the compiler is broken, or we cross compile.
    1901 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
    1902 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
     1915echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     1916echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    19031917# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    19041918# If not cross compiling, check that we can run a simple program.
     
    19151929        cross_compiling=yes
    19161930    else
    1917         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
     1931        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    19181932If you meant to cross compile, use \`--host'.
    19191933See \`config.log' for more details." >&5
    1920 echo "$as_me: error: cannot run C++ compiled programs.
     1934echo "$as_me: error: cannot run C compiled programs.
    19211935If you meant to cross compile, use \`--host'.
    19221936See \`config.log' for more details." >&2;}
     
    20232037OBJEXT=$ac_cv_objext
    20242038ac_objext=$OBJEXT
    2025 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    2026 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    2027 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    2028   echo $ECHO_N "(cached) $ECHO_C" >&6
    2029 else
    2030   cat >conftest.$ac_ext <<_ACEOF
    2031 /* confdefs.h.  */
    2032 _ACEOF
    2033 cat confdefs.h >>conftest.$ac_ext
    2034 cat >>conftest.$ac_ext <<_ACEOF
    2035 /* end confdefs.h.  */
    2036 
    2037 int
    2038 main ()
    2039 {
    2040 #ifndef __GNUC__
    2041        choke me
    2042 #endif
    2043 
    2044   ;
    2045   return 0;
    2046 }
    2047 _ACEOF
    2048 rm -f conftest.$ac_objext
    2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2050   (eval $ac_compile) 2>conftest.er1
    2051   ac_status=$?
    2052   grep -v '^ *+' conftest.er1 >conftest.err
    2053   rm -f conftest.er1
    2054   cat conftest.err >&5
    2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2056   (exit $ac_status); } &&
    2057          { ac_try='test -z "$ac_cxx_werror_flag"
    2058                          || test ! -s conftest.err'
    2059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2060   (eval $ac_try) 2>&5
    2061   ac_status=$?
    2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2063   (exit $ac_status); }; } &&
    2064          { ac_try='test -s conftest.$ac_objext'
    2065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2066   (eval $ac_try) 2>&5
    2067   ac_status=$?
    2068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2069   (exit $ac_status); }; }; then
    2070   ac_compiler_gnu=yes
    2071 else
    2072   echo "$as_me: failed program was:" >&5
    2073 sed 's/^/| /' conftest.$ac_ext >&5
    2074 
    2075 ac_compiler_gnu=no
    2076 fi
    2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    2079 
    2080 fi
    2081 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    2082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    2083 GXX=`test $ac_compiler_gnu = yes && echo yes`
    2084 ac_test_CXXFLAGS=${CXXFLAGS+set}
    2085 ac_save_CXXFLAGS=$CXXFLAGS
    2086 CXXFLAGS="-g"
    2087 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    2088 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    2089 if test "${ac_cv_prog_cxx_g+set}" = set; then
    2090   echo $ECHO_N "(cached) $ECHO_C" >&6
    2091 else
    2092   cat >conftest.$ac_ext <<_ACEOF
    2093 /* confdefs.h.  */
    2094 _ACEOF
    2095 cat confdefs.h >>conftest.$ac_ext
    2096 cat >>conftest.$ac_ext <<_ACEOF
    2097 /* end confdefs.h.  */
    2098 
    2099 int
    2100 main ()
    2101 {
    2102 
    2103   ;
    2104   return 0;
    2105 }
    2106 _ACEOF
    2107 rm -f conftest.$ac_objext
    2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2109   (eval $ac_compile) 2>conftest.er1
    2110   ac_status=$?
    2111   grep -v '^ *+' conftest.er1 >conftest.err
    2112   rm -f conftest.er1
    2113   cat conftest.err >&5
    2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2115   (exit $ac_status); } &&
    2116          { ac_try='test -z "$ac_cxx_werror_flag"
    2117                          || test ! -s conftest.err'
    2118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2119   (eval $ac_try) 2>&5
    2120   ac_status=$?
    2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2122   (exit $ac_status); }; } &&
    2123          { ac_try='test -s conftest.$ac_objext'
    2124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2125   (eval $ac_try) 2>&5
    2126   ac_status=$?
    2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2128   (exit $ac_status); }; }; then
    2129   ac_cv_prog_cxx_g=yes
    2130 else
    2131   echo "$as_me: failed program was:" >&5
    2132 sed 's/^/| /' conftest.$ac_ext >&5
    2133 
    2134 ac_cv_prog_cxx_g=no
    2135 fi
    2136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2137 fi
    2138 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    2139 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    2140 if test "$ac_test_CXXFLAGS" = set; then
    2141   CXXFLAGS=$ac_save_CXXFLAGS
    2142 elif test $ac_cv_prog_cxx_g = yes; then
    2143   if test "$GXX" = yes; then
    2144     CXXFLAGS="-g -O2"
    2145   else
    2146     CXXFLAGS="-g"
    2147   fi
    2148 else
    2149   if test "$GXX" = yes; then
    2150     CXXFLAGS="-O2"
    2151   else
    2152     CXXFLAGS=
    2153   fi
    2154 fi
    2155 for ac_declaration in \
    2156    '' \
    2157    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2158    'extern "C" void std::exit (int); using std::exit;' \
    2159    'extern "C" void exit (int) throw ();' \
    2160    'extern "C" void exit (int);' \
    2161    'void exit (int);'
    2162 do
    2163   cat >conftest.$ac_ext <<_ACEOF
    2164 /* confdefs.h.  */
    2165 _ACEOF
    2166 cat confdefs.h >>conftest.$ac_ext
    2167 cat >>conftest.$ac_ext <<_ACEOF
    2168 /* end confdefs.h.  */
    2169 $ac_declaration
    2170 #include <stdlib.h>
    2171 int
    2172 main ()
    2173 {
    2174 exit (42);
    2175   ;
    2176   return 0;
    2177 }
    2178 _ACEOF
    2179 rm -f conftest.$ac_objext
    2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2181   (eval $ac_compile) 2>conftest.er1
    2182   ac_status=$?
    2183   grep -v '^ *+' conftest.er1 >conftest.err
    2184   rm -f conftest.er1
    2185   cat conftest.err >&5
    2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2187   (exit $ac_status); } &&
    2188          { ac_try='test -z "$ac_cxx_werror_flag"
    2189                          || test ! -s conftest.err'
    2190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2191   (eval $ac_try) 2>&5
    2192   ac_status=$?
    2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2194   (exit $ac_status); }; } &&
    2195          { ac_try='test -s conftest.$ac_objext'
    2196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2197   (eval $ac_try) 2>&5
    2198   ac_status=$?
    2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2200   (exit $ac_status); }; }; then
    2201   :
    2202 else
    2203   echo "$as_me: failed program was:" >&5
    2204 sed 's/^/| /' conftest.$ac_ext >&5
    2205 
    2206 continue
    2207 fi
    2208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2209   cat >conftest.$ac_ext <<_ACEOF
    2210 /* confdefs.h.  */
    2211 _ACEOF
    2212 cat confdefs.h >>conftest.$ac_ext
    2213 cat >>conftest.$ac_ext <<_ACEOF
    2214 /* end confdefs.h.  */
    2215 $ac_declaration
    2216 int
    2217 main ()
    2218 {
    2219 exit (42);
    2220   ;
    2221   return 0;
    2222 }
    2223 _ACEOF
    2224 rm -f conftest.$ac_objext
    2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2226   (eval $ac_compile) 2>conftest.er1
    2227   ac_status=$?
    2228   grep -v '^ *+' conftest.er1 >conftest.err
    2229   rm -f conftest.er1
    2230   cat conftest.err >&5
    2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2232   (exit $ac_status); } &&
    2233          { ac_try='test -z "$ac_cxx_werror_flag"
    2234                          || test ! -s conftest.err'
    2235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2236   (eval $ac_try) 2>&5
    2237   ac_status=$?
    2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2239   (exit $ac_status); }; } &&
    2240          { ac_try='test -s conftest.$ac_objext'
    2241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2242   (eval $ac_try) 2>&5
    2243   ac_status=$?
    2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2245   (exit $ac_status); }; }; then
    2246   break
    2247 else
    2248   echo "$as_me: failed program was:" >&5
    2249 sed 's/^/| /' conftest.$ac_ext >&5
    2250 
    2251 fi
    2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2253 done
    2254 rm -f conftest*
    2255 if test -n "$ac_declaration"; then
    2256   echo '#ifdef __cplusplus' >>confdefs.h
    2257   echo $ac_declaration      >>confdefs.h
    2258   echo '#endif'             >>confdefs.h
    2259 fi
    2260 
    2261 ac_ext=cc
    2262 ac_cpp='$CXXCPP $CPPFLAGS'
    2263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2266 
    2267 CXXFLAGS="$save_cxxflags"
    2268 
    2269 echo "$as_me:$LINENO: checking for C++ compiler options" >&5
    2270 echo $ECHO_N "checking for C++ compiler options... $ECHO_C" >&6
    2271 if test "${coin_cv_cxxflags+set}" = set; then
    2272   echo $ECHO_N "(cached) $ECHO_C" >&6
    2273 else
    2274   if test x"$CXXFLAGS" = x; then
    2275 
    2276 # ToDo decide whether we want -DNDEBUG for optimization
    2277   coin_add_cxxflags=
    2278   coin_opt_cxxflags=
    2279   coin_dbg_cxxflags=
    2280   coin_warn_cxxflags=
    2281 
    2282   if test "$GXX" = "yes"; then
    2283     case "$CXX" in
    2284       icpc | */icpc)
    2285         ;;
    2286       *)
    2287 # ToDo decide about unroll-loops
    2288         coin_opt_cxxflags="-O3 -fomit-frame-pointer"
    2289         coin_add_cxxflags="-pipe"
    2290         coin_dbg_cxxflags="-g"
    2291         coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
    2292 
    2293         case $build in
    2294           *-cygwin*)
    2295             CXXFLAGS="-mno-cygwin"
    2296             cat >conftest.$ac_ext <<_ACEOF
    2297 /* confdefs.h.  */
    2298 _ACEOF
    2299 cat confdefs.h >>conftest.$ac_ext
    2300 cat >>conftest.$ac_ext <<_ACEOF
    2301 /* end confdefs.h.  */
    2302 
    2303 int
    2304 main ()
    2305 {
    2306 int i=0; i++;
    2307   ;
    2308   return 0;
    2309 }
    2310 _ACEOF
    2311 rm -f conftest.$ac_objext conftest$ac_exeext
    2312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2313   (eval $ac_link) 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); } &&
    2320          { ac_try='test -z "$ac_cxx_werror_flag"
    2321                          || test ! -s conftest.err'
    2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2323   (eval $ac_try) 2>&5
    2324   ac_status=$?
    2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2326   (exit $ac_status); }; } &&
    2327          { ac_try='test -s conftest$ac_exeext'
    2328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2329   (eval $ac_try) 2>&5
    2330   ac_status=$?
    2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2332   (exit $ac_status); }; }; then
    2333   coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
    2334 else
    2335   echo "$as_me: failed program was:" >&5
    2336 sed 's/^/| /' conftest.$ac_ext >&5
    2337 
    2338 fi
    2339 rm -f conftest.err conftest.$ac_objext \
    2340       conftest$ac_exeext conftest.$ac_ext
    2341             CXXFLAGS=
    2342             ;;
    2343         esac
    2344         ;;
    2345     esac
    2346   fi
    2347   if test -z "$coin_opt_cxxflags"; then
    2348     case $build in
    2349       *-cygwin* | *-mingw*)
    2350         case "$CXX" in
    2351           cl | */cl)
    2352             coin_opt_cxxflags='-O2'
    2353             coin_add_cxxflags='-nologo -GX -GR -MT'
    2354             coin_dbg_cxxflags='-Yd'
    2355             ;;
    2356         esac
    2357         ;;
    2358       *-linux-*)
    2359         case "$CXX" in
    2360           icpc | */icpc)
    2361             coin_opt_cxxflags="-O3 -ip"
    2362             coin_add_cxxflags=""
    2363             coin_dbg_cxxflags="-g"
    2364             # Check if -i_dynamic is necessary (for new glibc library)
    2365             CXXFLAGS=
    2366             cat >conftest.$ac_ext <<_ACEOF
    2367 /* confdefs.h.  */
    2368 _ACEOF
    2369 cat confdefs.h >>conftest.$ac_ext
    2370 cat >>conftest.$ac_ext <<_ACEOF
    2371 /* end confdefs.h.  */
    2372 
    2373 int
    2374 main ()
    2375 {
    2376 int i=0; i++;
    2377   ;
    2378   return 0;
    2379 }
    2380 _ACEOF
    2381 rm -f conftest.$ac_objext conftest$ac_exeext
    2382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2383   (eval $ac_link) 2>conftest.er1
    2384   ac_status=$?
    2385   grep -v '^ *+' conftest.er1 >conftest.err
    2386   rm -f conftest.er1
    2387   cat conftest.err >&5
    2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2389   (exit $ac_status); } &&
    2390          { ac_try='test -z "$ac_cxx_werror_flag"
    2391                          || test ! -s conftest.err'
    2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2393   (eval $ac_try) 2>&5
    2394   ac_status=$?
    2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2396   (exit $ac_status); }; } &&
    2397          { ac_try='test -s conftest$ac_exeext'
    2398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2399   (eval $ac_try) 2>&5
    2400   ac_status=$?
    2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2402   (exit $ac_status); }; }; then
    2403   :
    2404 else
    2405   echo "$as_me: failed program was:" >&5
    2406 sed 's/^/| /' conftest.$ac_ext >&5
    2407 
    2408 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
    2409 fi
    2410 rm -f conftest.err conftest.$ac_objext \
    2411       conftest$ac_exeext conftest.$ac_ext
    2412             ;;
    2413           pgCC | */pgCC)
    2414             coin_opt_cxxflags="-fast"
    2415             coin_add_cxxflags="-Kieee -pc 64"
    2416             coin_dbg_cxxflags="-g"
    2417             ;;
    2418         esac
    2419         ;;
    2420       *-ibm-*)
    2421         case "$CXX" in
    2422           xlC* | */xlC* | mpxlC* | */mpxlC*)
    2423             coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
    2424             coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
    2425             coin_dbg_cxxflags="-g"
    2426             ;;
    2427         esac
    2428         ;;
    2429       *-hp-*)
    2430         case "$CXX" in
    2431           aCC | */aCC )
    2432             coin_opt_cxxflags="-O"
    2433             coin_add_cxxflags="-AA"
    2434             coin_dbg_cxxflags="-g"
    2435             ;;
    2436         esac
    2437         ;;
    2438       *-sun-*)
    2439           coin_opt_cxxflags="-O4 -xtarget=native"
    2440           coin_dbg_cxxflags="-g"
    2441         ;;
    2442     esac
    2443   fi
    2444 
    2445   if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
    2446     coin_dbg_cxxflags="-g"
    2447   fi
    2448 
    2449   if test "$coin_debug_compile" = "true"; then
    2450     CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
    2451   else
    2452     if test -z "$coin_opt_cxxflags"; then
    2453       # Try if -O option works if nothing else is set
    2454       CXXFLAGS="-O"
    2455       cat >conftest.$ac_ext <<_ACEOF
    2456 /* confdefs.h.  */
    2457 _ACEOF
    2458 cat confdefs.h >>conftest.$ac_ext
    2459 cat >>conftest.$ac_ext <<_ACEOF
    2460 /* end confdefs.h.  */
    2461 
    2462 int
    2463 main ()
    2464 {
    2465 int i=0; i++;
    2466   ;
    2467   return 0;
    2468 }
    2469 _ACEOF
    2470 rm -f conftest.$ac_objext conftest$ac_exeext
    2471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2472   (eval $ac_link) 2>conftest.er1
    2473   ac_status=$?
    2474   grep -v '^ *+' conftest.er1 >conftest.err
    2475   rm -f conftest.er1
    2476   cat conftest.err >&5
    2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2478   (exit $ac_status); } &&
    2479          { ac_try='test -z "$ac_cxx_werror_flag"
    2480                          || test ! -s conftest.err'
    2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2482   (eval $ac_try) 2>&5
    2483   ac_status=$?
    2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2485   (exit $ac_status); }; } &&
    2486          { ac_try='test -s conftest$ac_exeext'
    2487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2488   (eval $ac_try) 2>&5
    2489   ac_status=$?
    2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2491   (exit $ac_status); }; }; then
    2492   coin_opt_cxxflags="-O"
    2493 else
    2494   echo "$as_me: failed program was:" >&5
    2495 sed 's/^/| /' conftest.$ac_ext >&5
    2496 
    2497 fi
    2498 rm -f conftest.err conftest.$ac_objext \
    2499       conftest$ac_exeext conftest.$ac_ext
    2500     fi
    2501     CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $CXXDEFS $coin_warn_cxxflags"
    2502   fi
    2503 fi
    2504 
    2505 # Try if CXXFLAGS works
    2506 cat >conftest.$ac_ext <<_ACEOF
    2507 /* confdefs.h.  */
    2508 _ACEOF
    2509 cat confdefs.h >>conftest.$ac_ext
    2510 cat >>conftest.$ac_ext <<_ACEOF
    2511 /* end confdefs.h.  */
    2512 
    2513 int
    2514 main ()
    2515 {
    2516 int i=0; i++;
    2517   ;
    2518   return 0;
    2519 }
    2520 _ACEOF
    2521 rm -f conftest.$ac_objext conftest$ac_exeext
    2522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2523   (eval $ac_link) 2>conftest.er1
    2524   ac_status=$?
    2525   grep -v '^ *+' conftest.er1 >conftest.err
    2526   rm -f conftest.er1
    2527   cat conftest.err >&5
    2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2529   (exit $ac_status); } &&
    2530          { ac_try='test -z "$ac_cxx_werror_flag"
    2531                          || test ! -s conftest.err'
    2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2533   (eval $ac_try) 2>&5
    2534   ac_status=$?
    2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2536   (exit $ac_status); }; } &&
    2537          { ac_try='test -s conftest$ac_exeext'
    2538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2539   (eval $ac_try) 2>&5
    2540   ac_status=$?
    2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2542   (exit $ac_status); }; }; then
    2543   :
    2544 else
    2545   echo "$as_me: failed program was:" >&5
    2546 sed 's/^/| /' conftest.$ac_ext >&5
    2547 
    2548 CXXFLAGS=
    2549 fi
    2550 rm -f conftest.err conftest.$ac_objext \
    2551       conftest$ac_exeext conftest.$ac_ext
    2552 if test -z "$CXXFLAGS"; then
    2553   { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
    2554 echo "$as_me: WARNING: The flags CXXFLAGS=\"$CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
    2555   CXXFLAGS='-O'
    2556   cat >conftest.$ac_ext <<_ACEOF
    2557 /* confdefs.h.  */
    2558 _ACEOF
    2559 cat confdefs.h >>conftest.$ac_ext
    2560 cat >>conftest.$ac_ext <<_ACEOF
    2561 /* end confdefs.h.  */
    2562 
    2563 int
    2564 main ()
    2565 {
    2566 int i=0; i++;
    2567   ;
    2568   return 0;
    2569 }
    2570 _ACEOF
    2571 rm -f conftest.$ac_objext conftest$ac_exeext
    2572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2573   (eval $ac_link) 2>conftest.er1
    2574   ac_status=$?
    2575   grep -v '^ *+' conftest.er1 >conftest.err
    2576   rm -f conftest.er1
    2577   cat conftest.err >&5
    2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2579   (exit $ac_status); } &&
    2580          { ac_try='test -z "$ac_cxx_werror_flag"
    2581                          || test ! -s conftest.err'
    2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2583   (eval $ac_try) 2>&5
    2584   ac_status=$?
    2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2586   (exit $ac_status); }; } &&
    2587          { ac_try='test -s conftest$ac_exeext'
    2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2589   (eval $ac_try) 2>&5
    2590   ac_status=$?
    2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2592   (exit $ac_status); }; }; then
    2593   :
    2594 else
    2595   echo "$as_me: failed program was:" >&5
    2596 sed 's/^/| /' conftest.$ac_ext >&5
    2597 
    2598 CXXFLAGS=
    2599 fi
    2600 rm -f conftest.err conftest.$ac_objext \
    2601       conftest$ac_exeext conftest.$ac_ext
    2602   if test -z "$CXXFLAGS"; then
    2603     { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
    2604 echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
    2605   fi
    2606 fi
    2607 coin_cv_cxxflags="$CXXFLAGS"
    2608 
    2609 fi
    2610 echo "$as_me:$LINENO: result: $coin_cv_cxxflags" >&5
    2611 echo "${ECHO_T}$coin_cv_cxxflags" >&6 # AC_CACHE_CHECK([for C++ compiler options CXXFLAGS]
    2612 CXXFLAGS="$coin_cv_cxxflags"
    2613 
    2614 ac_ext=cc
    2615 ac_cpp='$CXXCPP $CPPFLAGS'
    2616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2619 
    2620 
    2621 
    2622 # Initialize automake and libtool
    2623 
    2624 # On Cygwin, building DLLs doesn't work
    2625 case $build in
    2626   *-cygwin*)
    2627     coin_disable_shared=yes
    2628   ;;
    2629   *-mingw*)
    2630     case $CXX in
    2631       cl)
    2632         coin_disable_shared=yes
    2633     ;;
    2634     esac
    2635   ;;
    2636 esac
    2637 if test x"$coin_disable_shared" = xyes; then
    2638   if test x"$enable_shared" = xyes; then
    2639     { echo "$as_me:$LINENO: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&5
    2640 echo "$as_me: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&2;}
    2641   fi
    2642   enable_shared=no
    2643 fi
    2644 # By default, we only want the shared objects to be compiled
    2645 # Check whether --enable-static or --disable-static was given.
    2646 if test "${enable_static+set}" = set; then
    2647   enableval="$enable_static"
    2648   p=${PACKAGE-default}
    2649     case $enableval in
    2650     yes) enable_static=yes ;;
    2651     no) enable_static=no ;;
    2652     *)
    2653      enable_static=no
    2654       # Look at the argument we got.  We use all the common list separators.
    2655       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    2656       for pkg in $enableval; do
    2657         IFS="$lt_save_ifs"
    2658         if test "X$pkg" = "X$p"; then
    2659           enable_static=yes
    2660         fi
    2661       done
    2662       IFS="$lt_save_ifs"
    2663       ;;
    2664     esac
    2665 else
    2666   enable_static=no
    2667 fi;
    2668 
    2669 
    2670 
    2671 echo "$as_me:$LINENO: checking for egrep" >&5
    2672 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    2673 if test "${ac_cv_prog_egrep+set}" = set; then
    2674   echo $ECHO_N "(cached) $ECHO_C" >&6
    2675 else
    2676   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    2677     then ac_cv_prog_egrep='grep -E'
    2678     else ac_cv_prog_egrep='egrep'
    2679     fi
    2680 fi
    2681 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    2682 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    2683  EGREP=$ac_cv_prog_egrep
    2684 
    2685 
    2686 am__api_version="1.9"
    2687 # Find a good install program.  We prefer a C program (faster),
    2688 # so one script is as good as another.  But avoid the broken or
    2689 # incompatible versions:
    2690 # SysV /etc/install, /usr/sbin/install
    2691 # SunOS /usr/etc/install
    2692 # IRIX /sbin/install
    2693 # AIX /bin/install
    2694 # AmigaOS /C/install, which installs bootblocks on floppy discs
    2695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    2696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    2697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    2698 # OS/2's system install, which has a completely different semantic
    2699 # ./install, which can be erroneously created by make from ./install.sh.
    2700 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    2701 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    2702 if test -z "$INSTALL"; then
    2703 if test "${ac_cv_path_install+set}" = set; then
    2704   echo $ECHO_N "(cached) $ECHO_C" >&6
    2705 else
    2706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2707 for as_dir in $PATH
    2708 do
    2709   IFS=$as_save_IFS
    2710   test -z "$as_dir" && as_dir=.
    2711   # Account for people who put trailing slashes in PATH elements.
    2712 case $as_dir/ in
    2713   ./ | .// | /cC/* | \
    2714   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    2715   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    2716   /usr/ucb/* ) ;;
    2717   *)
    2718     # OSF1 and SCO ODT 3.0 have their own names for install.
    2719     # Don't use installbsd from OSF since it installs stuff as root
    2720     # by default.
    2721     for ac_prog in ginstall scoinst install; do
    2722       for ac_exec_ext in '' $ac_executable_extensions; do
    2723         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    2724           if test $ac_prog = install &&
    2725             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2726             # AIX install.  It has an incompatible calling convention.
    2727             :
    2728           elif test $ac_prog = install &&
    2729             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2730             # program-specific install script used by HP pwplus--don't use.
    2731             :
    2732           else
    2733             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    2734             break 3
    2735           fi
    2736         fi
    2737       done
    2738     done
    2739     ;;
    2740 esac
    2741 done
    2742 
    2743 
    2744 fi
    2745   if test "${ac_cv_path_install+set}" = set; then
    2746     INSTALL=$ac_cv_path_install
    2747   else
    2748     # As a last resort, use the slow shell script.  We don't cache a
    2749     # path for INSTALL within a source directory, because that will
    2750     # break other packages using the cache if that directory is
    2751     # removed, or if the path is relative.
    2752     INSTALL=$ac_install_sh
    2753   fi
    2754 fi
    2755 echo "$as_me:$LINENO: result: $INSTALL" >&5
    2756 echo "${ECHO_T}$INSTALL" >&6
    2757 
    2758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    2759 # It thinks the first close brace ends the variable substitution.
    2760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    2761 
    2762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    2763 
    2764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    2765 
    2766 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
    2767 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
    2768 # Just in case
    2769 sleep 1
    2770 echo timestamp > conftest.file
    2771 # Do `set' in a subshell so we don't clobber the current shell's
    2772 # arguments.  Must try -L first in case configure is actually a
    2773 # symlink; some systems play weird games with the mod time of symlinks
    2774 # (eg FreeBSD returns the mod time of the symlink's containing
    2775 # directory).
    2776 if (
    2777    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
    2778    if test "$*" = "X"; then
    2779       # -L didn't work.
    2780       set X `ls -t $srcdir/configure conftest.file`
    2781    fi
    2782    rm -f conftest.file
    2783    if test "$*" != "X $srcdir/configure conftest.file" \
    2784       && test "$*" != "X conftest.file $srcdir/configure"; then
    2785 
    2786       # If neither matched, then we have a broken ls.  This can happen
    2787       # if, for instance, CONFIG_SHELL is bash and it inherits a
    2788       # broken ls alias from the environment.  This has actually
    2789       # happened.  Such a system could not be considered "sane".
    2790       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
    2791 alias in your environment" >&5
    2792 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
    2793 alias in your environment" >&2;}
    2794    { (exit 1); exit 1; }; }
    2795    fi
    2796 
    2797    test "$2" = conftest.file
    2798    )
    2799 then
    2800    # Ok.
    2801    :
    2802 else
    2803    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
    2804 Check your system clock" >&5
    2805 echo "$as_me: error: newly created file is older than distributed files!
    2806 Check your system clock" >&2;}
    2807    { (exit 1); exit 1; }; }
    2808 fi
    2809 echo "$as_me:$LINENO: result: yes" >&5
    2810 echo "${ECHO_T}yes" >&6
    2811 test "$program_prefix" != NONE &&
    2812   program_transform_name="s,^,$program_prefix,;$program_transform_name"
    2813 # Use a double $ so make ignores it.
    2814 test "$program_suffix" != NONE &&
    2815   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
    2816 # Double any \ or $.  echo might interpret backslashes.
    2817 # By default was `s,x,x', remove it if useless.
    2818 cat <<\_ACEOF >conftest.sed
    2819 s/[\\$]/&&/g;s/;s,x,x,$//
    2820 _ACEOF
    2821 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    2822 rm conftest.sed
    2823 
    2824 # expand $ac_aux_dir to an absolute path
    2825 am_aux_dir=`cd $ac_aux_dir && pwd`
    2826 
    2827 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    2828 # Use eval to expand $SHELL
    2829 if eval "$MISSING --run true"; then
    2830   am_missing_run="$MISSING --run "
    2831 else
    2832   am_missing_run=
    2833   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
    2834 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
    2835 fi
    2836 
    2837 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    2838   # We used to keeping the `.' as first argument, in order to
    2839   # allow $(mkdir_p) to be used without argument.  As in
    2840   #   $(mkdir_p) $(somedir)
    2841   # where $(somedir) is conditionally defined.  However this is wrong
    2842   # for two reasons:
    2843   #  1. if the package is installed by a user who cannot write `.'
    2844   #     make install will fail,
    2845   #  2. the above comment should most certainly read
    2846   #     $(mkdir_p) $(DESTDIR)$(somedir)
    2847   #     so it does not work when $(somedir) is undefined and
    2848   #     $(DESTDIR) is not.
    2849   #  To support the latter case, we have to write
    2850   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
    2851   #  so the `.' trick is pointless.
    2852   mkdir_p='mkdir -p --'
    2853 else
    2854   # On NextStep and OpenStep, the `mkdir' command does not
    2855   # recognize any option.  It will interpret all options as
    2856   # directories to create, and then abort because `.' already
    2857   # exists.
    2858   for d in ./-p ./--version;
    2859   do
    2860     test -d $d && rmdir $d
    2861   done
    2862   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    2863   if test -f "$ac_aux_dir/mkinstalldirs"; then
    2864     mkdir_p='$(mkinstalldirs)'
    2865   else
    2866     mkdir_p='$(install_sh) -d'
    2867   fi
    2868 fi
    2869 
    2870 for ac_prog in gawk mawk nawk awk
    2871 do
    2872   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2873 set dummy $ac_prog; ac_word=$2
    2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2876 if test "${ac_cv_prog_AWK+set}" = set; then
    2877   echo $ECHO_N "(cached) $ECHO_C" >&6
    2878 else
    2879   if test -n "$AWK"; then
    2880   ac_cv_prog_AWK="$AWK" # Let the user override the test.
    2881 else
    2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2883 for as_dir in $PATH
    2884 do
    2885   IFS=$as_save_IFS
    2886   test -z "$as_dir" && as_dir=.
    2887   for ac_exec_ext in '' $ac_executable_extensions; do
    2888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2889     ac_cv_prog_AWK="$ac_prog"
    2890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2891     break 2
    2892   fi
    2893 done
    2894 done
    2895 
    2896 fi
    2897 fi
    2898 AWK=$ac_cv_prog_AWK
    2899 if test -n "$AWK"; then
    2900   echo "$as_me:$LINENO: result: $AWK" >&5
    2901 echo "${ECHO_T}$AWK" >&6
    2902 else
    2903   echo "$as_me:$LINENO: result: no" >&5
    2904 echo "${ECHO_T}no" >&6
    2905 fi
    2906 
    2907   test -n "$AWK" && break
    2908 done
    2909 
    2910 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    2911 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    2912 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    2913 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2914   echo $ECHO_N "(cached) $ECHO_C" >&6
    2915 else
    2916   cat >conftest.make <<\_ACEOF
    2917 all:
    2918         @echo 'ac_maketemp="$(MAKE)"'
    2919 _ACEOF
    2920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2921 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    2922 if test -n "$ac_maketemp"; then
    2923   eval ac_cv_prog_make_${ac_make}_set=yes
    2924 else
    2925   eval ac_cv_prog_make_${ac_make}_set=no
    2926 fi
    2927 rm -f conftest.make
    2928 fi
    2929 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2930   echo "$as_me:$LINENO: result: yes" >&5
    2931 echo "${ECHO_T}yes" >&6
    2932   SET_MAKE=
    2933 else
    2934   echo "$as_me:$LINENO: result: no" >&5
    2935 echo "${ECHO_T}no" >&6
    2936   SET_MAKE="MAKE=${MAKE-make}"
    2937 fi
    2938 
    2939 rm -rf .tst 2>/dev/null
    2940 mkdir .tst 2>/dev/null
    2941 if test -d .tst; then
    2942   am__leading_dot=.
    2943 else
    2944   am__leading_dot=_
    2945 fi
    2946 rmdir .tst 2>/dev/null
    2947 
    2948 DEPDIR="${am__leading_dot}deps"
    2949 
    2950           ac_config_commands="$ac_config_commands depfiles"
    2951 
    2952 
    2953 am_make=${MAKE-make}
    2954 cat > confinc << 'END'
    2955 am__doit:
    2956         @echo done
    2957 .PHONY: am__doit
    2958 END
    2959 # If we don't find an include directive, just comment out the code.
    2960 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
    2961 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
    2962 am__include="#"
    2963 am__quote=
    2964 _am_result=none
    2965 # First try GNU make style include.
    2966 echo "include confinc" > confmf
    2967 # We grep out `Entering directory' and `Leaving directory'
    2968 # messages which can occur if `w' ends up in MAKEFLAGS.
    2969 # In particular we don't look at `^make:' because GNU make might
    2970 # be invoked under some other name (usually "gmake"), in which
    2971 # case it prints its new name instead of `make'.
    2972 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
    2973    am__include=include
    2974    am__quote=
    2975    _am_result=GNU
    2976 fi
    2977 # Now try BSD make style include.
    2978 if test "$am__include" = "#"; then
    2979    echo '.include "confinc"' > confmf
    2980    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
    2981       am__include=.include
    2982       am__quote="\""
    2983       _am_result=BSD
    2984    fi
    2985 fi
    2986 
    2987 
    2988 echo "$as_me:$LINENO: result: $_am_result" >&5
    2989 echo "${ECHO_T}$_am_result" >&6
    2990 rm -f confinc confmf
    2991 
    2992 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
    2993 if test "${enable_dependency_tracking+set}" = set; then
    2994   enableval="$enable_dependency_tracking"
    2995 
    2996 fi;
    2997 if test "x$enable_dependency_tracking" != xno; then
    2998   am_depcomp="$ac_aux_dir/depcomp"
    2999   AMDEPBACKSLASH='\'
    3000 fi
    3001 
    3002 
    3003 if test "x$enable_dependency_tracking" != xno; then
    3004   AMDEP_TRUE=
    3005   AMDEP_FALSE='#'
    3006 else
    3007   AMDEP_TRUE='#'
    3008   AMDEP_FALSE=
    3009 fi
    3010 
    3011 
    3012 
    3013 ac_ext=c
    3014 ac_cpp='$CPP $CPPFLAGS'
    3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3018 if test -n "$ac_tool_prefix"; then
    3019   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    3020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    3021 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3023 if test "${ac_cv_prog_CC+set}" = set; then
    3024   echo $ECHO_N "(cached) $ECHO_C" >&6
    3025 else
    3026   if test -n "$CC"; then
    3027   ac_cv_prog_CC="$CC" # Let the user override the test.
    3028 else
    3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3030 for as_dir in $PATH
    3031 do
    3032   IFS=$as_save_IFS
    3033   test -z "$as_dir" && as_dir=.
    3034   for ac_exec_ext in '' $ac_executable_extensions; do
    3035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3036     ac_cv_prog_CC="${ac_tool_prefix}gcc"
    3037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3038     break 2
    3039   fi
    3040 done
    3041 done
    3042 
    3043 fi
    3044 fi
    3045 CC=$ac_cv_prog_CC
    3046 if test -n "$CC"; then
    3047   echo "$as_me:$LINENO: result: $CC" >&5
    3048 echo "${ECHO_T}$CC" >&6
    3049 else
    3050   echo "$as_me:$LINENO: result: no" >&5
    3051 echo "${ECHO_T}no" >&6
    3052 fi
    3053 
    3054 fi
    3055 if test -z "$ac_cv_prog_CC"; then
    3056   ac_ct_CC=$CC
    3057   # Extract the first word of "gcc", so it can be a program name with args.
    3058 set dummy gcc; ac_word=$2
    3059 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    3062   echo $ECHO_N "(cached) $ECHO_C" >&6
    3063 else
    3064   if test -n "$ac_ct_CC"; then
    3065   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    3066 else
    3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3068 for as_dir in $PATH
    3069 do
    3070   IFS=$as_save_IFS
    3071   test -z "$as_dir" && as_dir=.
    3072   for ac_exec_ext in '' $ac_executable_extensions; do
    3073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3074     ac_cv_prog_ac_ct_CC="gcc"
    3075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3076     break 2
    3077   fi
    3078 done
    3079 done
    3080 
    3081 fi
    3082 fi
    3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    3084 if test -n "$ac_ct_CC"; then
    3085   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    3086 echo "${ECHO_T}$ac_ct_CC" >&6
    3087 else
    3088   echo "$as_me:$LINENO: result: no" >&5
    3089 echo "${ECHO_T}no" >&6
    3090 fi
    3091 
    3092   CC=$ac_ct_CC
    3093 else
    3094   CC="$ac_cv_prog_CC"
    3095 fi
    3096 
    3097 if test -z "$CC"; then
    3098   if test -n "$ac_tool_prefix"; then
    3099   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    3100 set dummy ${ac_tool_prefix}cc; ac_word=$2
    3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3103 if test "${ac_cv_prog_CC+set}" = set; then
    3104   echo $ECHO_N "(cached) $ECHO_C" >&6
    3105 else
    3106   if test -n "$CC"; then
    3107   ac_cv_prog_CC="$CC" # Let the user override the test.
    3108 else
    3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3110 for as_dir in $PATH
    3111 do
    3112   IFS=$as_save_IFS
    3113   test -z "$as_dir" && as_dir=.
    3114   for ac_exec_ext in '' $ac_executable_extensions; do
    3115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3116     ac_cv_prog_CC="${ac_tool_prefix}cc"
    3117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3118     break 2
    3119   fi
    3120 done
    3121 done
    3122 
    3123 fi
    3124 fi
    3125 CC=$ac_cv_prog_CC
    3126 if test -n "$CC"; then
    3127   echo "$as_me:$LINENO: result: $CC" >&5
    3128 echo "${ECHO_T}$CC" >&6
    3129 else
    3130   echo "$as_me:$LINENO: result: no" >&5
    3131 echo "${ECHO_T}no" >&6
    3132 fi
    3133 
    3134 fi
    3135 if test -z "$ac_cv_prog_CC"; then
    3136   ac_ct_CC=$CC
    3137   # Extract the first word of "cc", so it can be a program name with args.
    3138 set dummy cc; ac_word=$2
    3139 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    3142   echo $ECHO_N "(cached) $ECHO_C" >&6
    3143 else
    3144   if test -n "$ac_ct_CC"; then
    3145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    3146 else
    3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3148 for as_dir in $PATH
    3149 do
    3150   IFS=$as_save_IFS
    3151   test -z "$as_dir" && as_dir=.
    3152   for ac_exec_ext in '' $ac_executable_extensions; do
    3153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3154     ac_cv_prog_ac_ct_CC="cc"
    3155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3156     break 2
    3157   fi
    3158 done
    3159 done
    3160 
    3161 fi
    3162 fi
    3163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    3164 if test -n "$ac_ct_CC"; then
    3165   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    3166 echo "${ECHO_T}$ac_ct_CC" >&6
    3167 else
    3168   echo "$as_me:$LINENO: result: no" >&5
    3169 echo "${ECHO_T}no" >&6
    3170 fi
    3171 
    3172   CC=$ac_ct_CC
    3173 else
    3174   CC="$ac_cv_prog_CC"
    3175 fi
    3176 
    3177 fi
    3178 if test -z "$CC"; then
    3179   # Extract the first word of "cc", so it can be a program name with args.
    3180 set dummy cc; ac_word=$2
    3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3183 if test "${ac_cv_prog_CC+set}" = set; then
    3184   echo $ECHO_N "(cached) $ECHO_C" >&6
    3185 else
    3186   if test -n "$CC"; then
    3187   ac_cv_prog_CC="$CC" # Let the user override the test.
    3188 else
    3189   ac_prog_rejected=no
    3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3191 for as_dir in $PATH
    3192 do
    3193   IFS=$as_save_IFS
    3194   test -z "$as_dir" && as_dir=.
    3195   for ac_exec_ext in '' $ac_executable_extensions; do
    3196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3197     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    3198        ac_prog_rejected=yes
    3199        continue
    3200      fi
    3201     ac_cv_prog_CC="cc"
    3202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3203     break 2
    3204   fi
    3205 done
    3206 done
    3207 
    3208 if test $ac_prog_rejected = yes; then
    3209   # We found a bogon in the path, so make sure we never use it.
    3210   set dummy $ac_cv_prog_CC
    3211   shift
    3212   if test $# != 0; then
    3213     # We chose a different compiler from the bogus one.
    3214     # However, it has the same basename, so the bogon will be chosen
    3215     # first if we set CC to just the basename; use the full file name.
    3216     shift
    3217     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    3218   fi
    3219 fi
    3220 fi
    3221 fi
    3222 CC=$ac_cv_prog_CC
    3223 if test -n "$CC"; then
    3224   echo "$as_me:$LINENO: result: $CC" >&5
    3225 echo "${ECHO_T}$CC" >&6
    3226 else
    3227   echo "$as_me:$LINENO: result: no" >&5
    3228 echo "${ECHO_T}no" >&6
    3229 fi
    3230 
    3231 fi
    3232 if test -z "$CC"; then
    3233   if test -n "$ac_tool_prefix"; then
    3234   for ac_prog in cl
    3235   do
    3236     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    3237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    3238 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3240 if test "${ac_cv_prog_CC+set}" = set; then
    3241   echo $ECHO_N "(cached) $ECHO_C" >&6
    3242 else
    3243   if test -n "$CC"; then
    3244   ac_cv_prog_CC="$CC" # Let the user override the test.
    3245 else
    3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3247 for as_dir in $PATH
    3248 do
    3249   IFS=$as_save_IFS
    3250   test -z "$as_dir" && as_dir=.
    3251   for ac_exec_ext in '' $ac_executable_extensions; do
    3252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3253     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    3254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3255     break 2
    3256   fi
    3257 done
    3258 done
    3259 
    3260 fi
    3261 fi
    3262 CC=$ac_cv_prog_CC
    3263 if test -n "$CC"; then
    3264   echo "$as_me:$LINENO: result: $CC" >&5
    3265 echo "${ECHO_T}$CC" >&6
    3266 else
    3267   echo "$as_me:$LINENO: result: no" >&5
    3268 echo "${ECHO_T}no" >&6
    3269 fi
    3270 
    3271     test -n "$CC" && break
    3272   done
    3273 fi
    3274 if test -z "$CC"; then
    3275   ac_ct_CC=$CC
    3276   for ac_prog in cl
    3277 do
    3278   # Extract the first word of "$ac_prog", so it can be a program name with args.
    3279 set dummy $ac_prog; ac_word=$2
    3280 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    3283   echo $ECHO_N "(cached) $ECHO_C" >&6
    3284 else
    3285   if test -n "$ac_ct_CC"; then
    3286   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    3287 else
    3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3289 for as_dir in $PATH
    3290 do
    3291   IFS=$as_save_IFS
    3292   test -z "$as_dir" && as_dir=.
    3293   for ac_exec_ext in '' $ac_executable_extensions; do
    3294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3295     ac_cv_prog_ac_ct_CC="$ac_prog"
    3296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3297     break 2
    3298   fi
    3299 done
    3300 done
    3301 
    3302 fi
    3303 fi
    3304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    3305 if test -n "$ac_ct_CC"; then
    3306   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    3307 echo "${ECHO_T}$ac_ct_CC" >&6
    3308 else
    3309   echo "$as_me:$LINENO: result: no" >&5
    3310 echo "${ECHO_T}no" >&6
    3311 fi
    3312 
    3313   test -n "$ac_ct_CC" && break
    3314 done
    3315 
    3316   CC=$ac_ct_CC
    3317 fi
    3318 
    3319 fi
    3320 
    3321 
    3322 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    3323 See \`config.log' for more details." >&5
    3324 echo "$as_me: error: no acceptable C compiler found in \$PATH
    3325 See \`config.log' for more details." >&2;}
    3326    { (exit 1); exit 1; }; }
    3327 
    3328 # Provide some information about the compiler.
    3329 echo "$as_me:$LINENO:" \
    3330      "checking for C compiler version" >&5
    3331 ac_compiler=`set X $ac_compile; echo $2`
    3332 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    3333   (eval $ac_compiler --version </dev/null >&5) 2>&5
    3334   ac_status=$?
    3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3336   (exit $ac_status); }
    3337 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    3338   (eval $ac_compiler -v </dev/null >&5) 2>&5
    3339   ac_status=$?
    3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3341   (exit $ac_status); }
    3342 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    3343   (eval $ac_compiler -V </dev/null >&5) 2>&5
    3344   ac_status=$?
    3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3346   (exit $ac_status); }
    3347 
    33482039echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    33492040echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     
    37402431ac_compiler_gnu=$ac_cv_c_compiler_gnu
    37412432
    3742 depcc="$CC"   am_compiler_list=
    3743 
    3744 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    3745 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    3746 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     2433CFLAGS="$save_cflags"
     2434
     2435echo "$as_me:$LINENO: checking for C compiler options" >&5
     2436echo $ECHO_N "checking for C compiler options... $ECHO_C" >&6
     2437if test "${coin_cv_cflags+set}" = set; then
    37472438  echo $ECHO_N "(cached) $ECHO_C" >&6
    37482439else
    3749   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    3750   # We make a subdir and do the tests there.  Otherwise we can end up
    3751   # making bogus files that we don't know about and never remove.  For
    3752   # instance it was reported that on HP-UX the gcc test will end up
    3753   # making a dummy file named `D' -- because `-MD' means `put the output
    3754   # in D'.
    3755   mkdir conftest.dir
    3756   # Copy depcomp to subdir because otherwise we won't find it if we're
    3757   # using a relative directory.
    3758   cp "$am_depcomp" conftest.dir
    3759   cd conftest.dir
    3760   # We will build objects and dependencies in a subdirectory because
    3761   # it helps to detect inapplicable dependency modes.  For instance
    3762   # both Tru64's cc and ICC support -MD to output dependencies as a
    3763   # side effect of compilation, but ICC will put the dependencies in
    3764   # the current directory while Tru64 will put them in the object
    3765   # directory.
    3766   mkdir sub
    3767 
    3768   am_cv_CC_dependencies_compiler_type=none
    3769   if test "$am_compiler_list" = ""; then
    3770      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     2440  if test x"$CFLAGS" = x; then
     2441
     2442  coin_add_cflags=
     2443  coin_opt_cflags=
     2444  coin_dbg_cflags=
     2445  coin_warn_cflags=
     2446
     2447  if test "$GCC" = "yes"; then
     2448    case "$CC" in
     2449      icc | */icc)
     2450        ;;
     2451      *)
     2452        coin_opt_cflags="-O3 -fomit-frame-pointer"
     2453        coin_add_cflags="-pipe"
     2454        coin_dbg_cflags="-g"
     2455        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
     2456
     2457        case $build in
     2458          *-cygwin*)
     2459            CFLAGS="-mno-cygwin"
     2460            cat >conftest.$ac_ext <<_ACEOF
     2461/* confdefs.h.  */
     2462_ACEOF
     2463cat confdefs.h >>conftest.$ac_ext
     2464cat >>conftest.$ac_ext <<_ACEOF
     2465/* end confdefs.h.  */
     2466
     2467int
     2468main ()
     2469{
     2470int i=0; i++;
     2471  ;
     2472  return 0;
     2473}
     2474_ACEOF
     2475rm -f conftest.$ac_objext conftest$ac_exeext
     2476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2477  (eval $ac_link) 2>conftest.er1
     2478  ac_status=$?
     2479  grep -v '^ *+' conftest.er1 >conftest.err
     2480  rm -f conftest.er1
     2481  cat conftest.err >&5
     2482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2483  (exit $ac_status); } &&
     2484         { ac_try='test -z "$ac_c_werror_flag"
     2485                         || test ! -s conftest.err'
     2486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2487  (eval $ac_try) 2>&5
     2488  ac_status=$?
     2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2490  (exit $ac_status); }; } &&
     2491         { ac_try='test -s conftest$ac_exeext'
     2492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2493  (eval $ac_try) 2>&5
     2494  ac_status=$?
     2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2496  (exit $ac_status); }; }; then
     2497  coin_add_cflags="-mno-cygwin $coin_add_cflags"
     2498else
     2499  echo "$as_me: failed program was:" >&5
     2500sed 's/^/| /' conftest.$ac_ext >&5
     2501
     2502fi
     2503rm -f conftest.err conftest.$ac_objext \
     2504      conftest$ac_exeext conftest.$ac_ext
     2505            CFLAGS=
     2506          ;;
     2507        esac
     2508        ;;
     2509    esac
    37712510  fi
    3772   for depmode in $am_compiler_list; do
    3773     # Setup a source with many dependencies, because some compilers
    3774     # like to wrap large dependency lists on column 80 (with \), and
    3775     # we should not choose a depcomp mode which is confused by this.
    3776     #
    3777     # We need to recreate these files for each test, as the compiler may
    3778     # overwrite some of them when testing with obscure command lines.
    3779     # This happens at least with the AIX C compiler.
    3780     : > sub/conftest.c
    3781     for i in 1 2 3 4 5 6; do
    3782       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    3783       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    3784       # Solaris 8's {/usr,}/bin/sh.
    3785       touch sub/conftst$i.h
     2511  if test -z "$coin_opt_cflags"; then
     2512    case $build in
     2513      *-cygwin* | *-mingw*)
     2514        case "$CC" in
     2515          cl | */cl)
     2516            coin_opt_cflags='-O2'
     2517            coin_add_cflags='-nologo'
     2518            coin_dbg_cflags='-Yd'
     2519            ;;
     2520        esac
     2521        ;;
     2522      *-linux-*)
     2523        case "$CC" in
     2524          icc | */icc)
     2525            coin_opt_cflags="-O3 -ip"
     2526            coin_add_cflags=""
     2527            coin_dbg_cflags="-g"
     2528            # Check if -i_dynamic is necessary (for new glibc library)
     2529            CFLAGS=
     2530            cat >conftest.$ac_ext <<_ACEOF
     2531/* confdefs.h.  */
     2532_ACEOF
     2533cat confdefs.h >>conftest.$ac_ext
     2534cat >>conftest.$ac_ext <<_ACEOF
     2535/* end confdefs.h.  */
     2536
     2537int
     2538main ()
     2539{
     2540int i=0; i++;
     2541  ;
     2542  return 0;
     2543}
     2544_ACEOF
     2545rm -f conftest.$ac_objext conftest$ac_exeext
     2546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2547  (eval $ac_link) 2>conftest.er1
     2548  ac_status=$?
     2549  grep -v '^ *+' conftest.er1 >conftest.err
     2550  rm -f conftest.er1
     2551  cat conftest.err >&5
     2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2553  (exit $ac_status); } &&
     2554         { ac_try='test -z "$ac_c_werror_flag"
     2555                         || test ! -s conftest.err'
     2556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2557  (eval $ac_try) 2>&5
     2558  ac_status=$?
     2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2560  (exit $ac_status); }; } &&
     2561         { ac_try='test -s conftest$ac_exeext'
     2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2563  (eval $ac_try) 2>&5
     2564  ac_status=$?
     2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2566  (exit $ac_status); }; }; then
     2567  :
     2568else
     2569  echo "$as_me: failed program was:" >&5
     2570sed 's/^/| /' conftest.$ac_ext >&5
     2571
     2572coin_add_cflags="-i_dynamic $coin_add_cflags"
     2573fi
     2574rm -f conftest.err conftest.$ac_objext \
     2575      conftest$ac_exeext conftest.$ac_ext
     2576            ;;
     2577          pgcc | */pgcc)
     2578            coin_opt_cflags="-fast"
     2579            coin_add_cflags="-Kieee -pc 64"
     2580            coin_dbg_cflags="-g"
     2581            ;;
     2582        esac
     2583        ;;
     2584      *-ibm-*)
     2585        case "$CC" in
     2586          xlc* | */xlc* | mpxlc* | */mpxlc*)
     2587            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
     2588            coin_add_cflags="-bmaxdata:0x80000000"
     2589            coin_dbg_cflags="-g"
     2590          ;;
     2591        esac
     2592        ;;
     2593      *-hp-*)
     2594        coin_opt_cflags="-O"
     2595        coin_add_cflags="-Ae"
     2596        coin_dbg_cflags="-g"
     2597        ;;
     2598      *-sun-*)
     2599        coin_opt_cflags="-xO4 -xtarget=native"
     2600        coin_dbg_cflags="-g"
     2601        ;;
     2602      *-sgi-*)
     2603        coin_opt_cflags="-O -OPT:Olimit=0"
     2604        coin_dbg_cflags="-g"
     2605        ;;
     2606    esac
     2607  fi
     2608
     2609  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
     2610    coin_dbg_cflags="-g"
     2611  fi
     2612
     2613  if test "$coin_debug_compile" = "true"; then
     2614    CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
     2615  else
     2616    if test -z "$coin_opt_cflags"; then
     2617      # Try if -O option works if nothing else is set
     2618      CFLAGS="-O"
     2619      cat >conftest.$ac_ext <<_ACEOF
     2620/* confdefs.h.  */
     2621_ACEOF
     2622cat confdefs.h >>conftest.$ac_ext
     2623cat >>conftest.$ac_ext <<_ACEOF
     2624/* end confdefs.h.  */
     2625
     2626int
     2627main ()
     2628{
     2629int i=0; i++;
     2630  ;
     2631  return 0;
     2632}
     2633_ACEOF
     2634rm -f conftest.$ac_objext conftest$ac_exeext
     2635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2636  (eval $ac_link) 2>conftest.er1
     2637  ac_status=$?
     2638  grep -v '^ *+' conftest.er1 >conftest.err
     2639  rm -f conftest.er1
     2640  cat conftest.err >&5
     2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2642  (exit $ac_status); } &&
     2643         { ac_try='test -z "$ac_c_werror_flag"
     2644                         || test ! -s conftest.err'
     2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2646  (eval $ac_try) 2>&5
     2647  ac_status=$?
     2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2649  (exit $ac_status); }; } &&
     2650         { ac_try='test -s conftest$ac_exeext'
     2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2652  (eval $ac_try) 2>&5
     2653  ac_status=$?
     2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2655  (exit $ac_status); }; }; then
     2656  coin_opt_cflags="-O"
     2657else
     2658  echo "$as_me: failed program was:" >&5
     2659sed 's/^/| /' conftest.$ac_ext >&5
     2660
     2661fi
     2662rm -f conftest.err conftest.$ac_objext \
     2663      conftest$ac_exeext conftest.$ac_ext
     2664    fi
     2665    CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $CDEFS $coin_warn_cflags"
     2666  fi
     2667fi
     2668
     2669# Try if CFLAGS works
     2670cat >conftest.$ac_ext <<_ACEOF
     2671/* confdefs.h.  */
     2672_ACEOF
     2673cat confdefs.h >>conftest.$ac_ext
     2674cat >>conftest.$ac_ext <<_ACEOF
     2675/* end confdefs.h.  */
     2676
     2677int
     2678main ()
     2679{
     2680int i=0; i++;
     2681  ;
     2682  return 0;
     2683}
     2684_ACEOF
     2685rm -f conftest.$ac_objext conftest$ac_exeext
     2686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2687  (eval $ac_link) 2>conftest.er1
     2688  ac_status=$?
     2689  grep -v '^ *+' conftest.er1 >conftest.err
     2690  rm -f conftest.er1
     2691  cat conftest.err >&5
     2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2693  (exit $ac_status); } &&
     2694         { ac_try='test -z "$ac_c_werror_flag"
     2695                         || test ! -s conftest.err'
     2696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2697  (eval $ac_try) 2>&5
     2698  ac_status=$?
     2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2700  (exit $ac_status); }; } &&
     2701         { ac_try='test -s conftest$ac_exeext'
     2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2703  (eval $ac_try) 2>&5
     2704  ac_status=$?
     2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2706  (exit $ac_status); }; }; then
     2707  :
     2708else
     2709  echo "$as_me: failed program was:" >&5
     2710sed 's/^/| /' conftest.$ac_ext >&5
     2711
     2712CFLAGS=
     2713fi
     2714rm -f conftest.err conftest.$ac_objext \
     2715      conftest$ac_exeext conftest.$ac_ext
     2716if test -z "$CFLAGS"; then
     2717  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
     2718echo "$as_me: WARNING: The value CFLAGS=\"$CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
     2719  CFLAGS='-O'
     2720  cat >conftest.$ac_ext <<_ACEOF
     2721/* confdefs.h.  */
     2722_ACEOF
     2723cat confdefs.h >>conftest.$ac_ext
     2724cat >>conftest.$ac_ext <<_ACEOF
     2725/* end confdefs.h.  */
     2726
     2727int
     2728main ()
     2729{
     2730int i=0; i++;
     2731  ;
     2732  return 0;
     2733}
     2734_ACEOF
     2735rm -f conftest.$ac_objext conftest$ac_exeext
     2736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2737  (eval $ac_link) 2>conftest.er1
     2738  ac_status=$?
     2739  grep -v '^ *+' conftest.er1 >conftest.err
     2740  rm -f conftest.er1
     2741  cat conftest.err >&5
     2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2743  (exit $ac_status); } &&
     2744         { ac_try='test -z "$ac_c_werror_flag"
     2745                         || test ! -s conftest.err'
     2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2747  (eval $ac_try) 2>&5
     2748  ac_status=$?
     2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2750  (exit $ac_status); }; } &&
     2751         { ac_try='test -s conftest$ac_exeext'
     2752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2753  (eval $ac_try) 2>&5
     2754  ac_status=$?
     2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2756  (exit $ac_status); }; }; then
     2757  :
     2758else
     2759  echo "$as_me: failed program was:" >&5
     2760sed 's/^/| /' conftest.$ac_ext >&5
     2761
     2762CFLAGS=
     2763fi
     2764rm -f conftest.err conftest.$ac_objext \
     2765      conftest$ac_exeext conftest.$ac_ext
     2766  if test -z "$CFLAGS"; then
     2767    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
     2768echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
     2769  fi
     2770fi
     2771coin_cv_cflags="$CFLAGS"
     2772
     2773fi
     2774echo "$as_me:$LINENO: result: $coin_cv_cflags" >&5
     2775echo "${ECHO_T}$coin_cv_cflags" >&6 # AC_CACHE_CHECK([for C compiler options CXXFLAGS]
     2776CFLAGS="$coin_cv_cflags"
     2777
     2778ac_ext=c
     2779ac_cpp='$CPP $CPPFLAGS'
     2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2782ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2783
     2784
     2785
     2786 #Let's try if that overcomes configuration problem with VC++ 6.0
     2787ac_ext=cc
     2788ac_cpp='$CXXCPP $CPPFLAGS'
     2789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2792
     2793
     2794
     2795
     2796coin_has_cxx=yes
     2797
     2798save_cxxflags="$CXXFLAGS"
     2799case $build in
     2800  *-cygwin* | *-mingw*)
     2801             comps="g++ cl" ;;
     2802  *-darwin*) comps="g++ c++ CC" ;;
     2803          *) comps="xlC aCC CC g++ c++ pgCC icpc" ;;
     2804esac
     2805ac_ext=cc
     2806ac_cpp='$CXXCPP $CPPFLAGS'
     2807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2810if test -n "$ac_tool_prefix"; then
     2811  for ac_prog in $CCC $comps
     2812  do
     2813    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2815echo "$as_me:$LINENO: checking for $ac_word" >&5
     2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2817if test "${ac_cv_prog_CXX+set}" = set; then
     2818  echo $ECHO_N "(cached) $ECHO_C" >&6
     2819else
     2820  if test -n "$CXX"; then
     2821  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     2822else
     2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2824for as_dir in $PATH
     2825do
     2826  IFS=$as_save_IFS
     2827  test -z "$as_dir" && as_dir=.
     2828  for ac_exec_ext in '' $ac_executable_extensions; do
     2829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2830    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     2831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2832    break 2
     2833  fi
     2834done
     2835done
     2836
     2837fi
     2838fi
     2839CXX=$ac_cv_prog_CXX
     2840if test -n "$CXX"; then
     2841  echo "$as_me:$LINENO: result: $CXX" >&5
     2842echo "${ECHO_T}$CXX" >&6
     2843else
     2844  echo "$as_me:$LINENO: result: no" >&5
     2845echo "${ECHO_T}no" >&6
     2846fi
     2847
     2848    test -n "$CXX" && break
     2849  done
     2850fi
     2851if test -z "$CXX"; then
     2852  ac_ct_CXX=$CXX
     2853  for ac_prog in $CCC $comps
     2854do
     2855  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2856set dummy $ac_prog; ac_word=$2
     2857echo "$as_me:$LINENO: checking for $ac_word" >&5
     2858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2859if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     2860  echo $ECHO_N "(cached) $ECHO_C" >&6
     2861else
     2862  if test -n "$ac_ct_CXX"; then
     2863  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     2864else
     2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2866for as_dir in $PATH
     2867do
     2868  IFS=$as_save_IFS
     2869  test -z "$as_dir" && as_dir=.
     2870  for ac_exec_ext in '' $ac_executable_extensions; do
     2871  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2872    ac_cv_prog_ac_ct_CXX="$ac_prog"
     2873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2874    break 2
     2875  fi
     2876done
     2877done
     2878
     2879fi
     2880fi
     2881ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     2882if test -n "$ac_ct_CXX"; then
     2883  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     2884echo "${ECHO_T}$ac_ct_CXX" >&6
     2885else
     2886  echo "$as_me:$LINENO: result: no" >&5
     2887echo "${ECHO_T}no" >&6
     2888fi
     2889
     2890  test -n "$ac_ct_CXX" && break
     2891done
     2892test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     2893
     2894  CXX=$ac_ct_CXX
     2895fi
     2896
     2897
     2898# Provide some information about the compiler.
     2899echo "$as_me:$LINENO:" \
     2900     "checking for C++ compiler version" >&5
     2901ac_compiler=`set X $ac_compile; echo $2`
     2902{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2903  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2904  ac_status=$?
     2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2906  (exit $ac_status); }
     2907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2908  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2909  ac_status=$?
     2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2911  (exit $ac_status); }
     2912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2913  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2914  ac_status=$?
     2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2916  (exit $ac_status); }
     2917
     2918echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     2919echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     2920if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     2921  echo $ECHO_N "(cached) $ECHO_C" >&6
     2922else
     2923  cat >conftest.$ac_ext <<_ACEOF
     2924/* confdefs.h.  */
     2925_ACEOF
     2926cat confdefs.h >>conftest.$ac_ext
     2927cat >>conftest.$ac_ext <<_ACEOF
     2928/* end confdefs.h.  */
     2929
     2930int
     2931main ()
     2932{
     2933#ifndef __GNUC__
     2934       choke me
     2935#endif
     2936
     2937  ;
     2938  return 0;
     2939}
     2940_ACEOF
     2941rm -f conftest.$ac_objext
     2942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2943  (eval $ac_compile) 2>conftest.er1
     2944  ac_status=$?
     2945  grep -v '^ *+' conftest.er1 >conftest.err
     2946  rm -f conftest.er1
     2947  cat conftest.err >&5
     2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2949  (exit $ac_status); } &&
     2950         { ac_try='test -z "$ac_cxx_werror_flag"
     2951                         || test ! -s conftest.err'
     2952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2953  (eval $ac_try) 2>&5
     2954  ac_status=$?
     2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2956  (exit $ac_status); }; } &&
     2957         { ac_try='test -s conftest.$ac_objext'
     2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2959  (eval $ac_try) 2>&5
     2960  ac_status=$?
     2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2962  (exit $ac_status); }; }; then
     2963  ac_compiler_gnu=yes
     2964else
     2965  echo "$as_me: failed program was:" >&5
     2966sed 's/^/| /' conftest.$ac_ext >&5
     2967
     2968ac_compiler_gnu=no
     2969fi
     2970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2971ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     2972
     2973fi
     2974echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     2975echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     2976GXX=`test $ac_compiler_gnu = yes && echo yes`
     2977ac_test_CXXFLAGS=${CXXFLAGS+set}
     2978ac_save_CXXFLAGS=$CXXFLAGS
     2979CXXFLAGS="-g"
     2980echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     2981echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     2982if test "${ac_cv_prog_cxx_g+set}" = set; then
     2983  echo $ECHO_N "(cached) $ECHO_C" >&6
     2984else
     2985  cat >conftest.$ac_ext <<_ACEOF
     2986/* confdefs.h.  */
     2987_ACEOF
     2988cat confdefs.h >>conftest.$ac_ext
     2989cat >>conftest.$ac_ext <<_ACEOF
     2990/* end confdefs.h.  */
     2991
     2992int
     2993main ()
     2994{
     2995
     2996  ;
     2997  return 0;
     2998}
     2999_ACEOF
     3000rm -f conftest.$ac_objext
     3001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3002  (eval $ac_compile) 2>conftest.er1
     3003  ac_status=$?
     3004  grep -v '^ *+' conftest.er1 >conftest.err
     3005  rm -f conftest.er1
     3006  cat conftest.err >&5
     3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3008  (exit $ac_status); } &&
     3009         { ac_try='test -z "$ac_cxx_werror_flag"
     3010                         || test ! -s conftest.err'
     3011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3012  (eval $ac_try) 2>&5
     3013  ac_status=$?
     3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3015  (exit $ac_status); }; } &&
     3016         { ac_try='test -s conftest.$ac_objext'
     3017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3018  (eval $ac_try) 2>&5
     3019  ac_status=$?
     3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3021  (exit $ac_status); }; }; then
     3022  ac_cv_prog_cxx_g=yes
     3023else
     3024  echo "$as_me: failed program was:" >&5
     3025sed 's/^/| /' conftest.$ac_ext >&5
     3026
     3027ac_cv_prog_cxx_g=no
     3028fi
     3029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3030fi
     3031echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     3032echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3033if test "$ac_test_CXXFLAGS" = set; then
     3034  CXXFLAGS=$ac_save_CXXFLAGS
     3035elif test $ac_cv_prog_cxx_g = yes; then
     3036  if test "$GXX" = yes; then
     3037    CXXFLAGS="-g -O2"
     3038  else
     3039    CXXFLAGS="-g"
     3040  fi
     3041else
     3042  if test "$GXX" = yes; then
     3043    CXXFLAGS="-O2"
     3044  else
     3045    CXXFLAGS=
     3046  fi
     3047fi
     3048for ac_declaration in \
     3049   '' \
     3050   'extern "C" void std::exit (int) throw (); using std::exit;' \
     3051   'extern "C" void std::exit (int); using std::exit;' \
     3052   'extern "C" void exit (int) throw ();' \
     3053   'extern "C" void exit (int);' \
     3054   'void exit (int);'
     3055do
     3056  cat >conftest.$ac_ext <<_ACEOF
     3057/* confdefs.h.  */
     3058_ACEOF
     3059cat confdefs.h >>conftest.$ac_ext
     3060cat >>conftest.$ac_ext <<_ACEOF
     3061/* end confdefs.h.  */
     3062$ac_declaration
     3063#include <stdlib.h>
     3064int
     3065main ()
     3066{
     3067exit (42);
     3068  ;
     3069  return 0;
     3070}
     3071_ACEOF
     3072rm -f conftest.$ac_objext
     3073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3074  (eval $ac_compile) 2>conftest.er1
     3075  ac_status=$?
     3076  grep -v '^ *+' conftest.er1 >conftest.err
     3077  rm -f conftest.er1
     3078  cat conftest.err >&5
     3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3080  (exit $ac_status); } &&
     3081         { ac_try='test -z "$ac_cxx_werror_flag"
     3082                         || test ! -s conftest.err'
     3083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3084  (eval $ac_try) 2>&5
     3085  ac_status=$?
     3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3087  (exit $ac_status); }; } &&
     3088         { ac_try='test -s conftest.$ac_objext'
     3089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3090  (eval $ac_try) 2>&5
     3091  ac_status=$?
     3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3093  (exit $ac_status); }; }; then
     3094  :
     3095else
     3096  echo "$as_me: failed program was:" >&5
     3097sed 's/^/| /' conftest.$ac_ext >&5
     3098
     3099continue
     3100fi
     3101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3102  cat >conftest.$ac_ext <<_ACEOF
     3103/* confdefs.h.  */
     3104_ACEOF
     3105cat confdefs.h >>conftest.$ac_ext
     3106cat >>conftest.$ac_ext <<_ACEOF
     3107/* end confdefs.h.  */
     3108$ac_declaration
     3109int
     3110main ()
     3111{
     3112exit (42);
     3113  ;
     3114  return 0;
     3115}
     3116_ACEOF
     3117rm -f conftest.$ac_objext
     3118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3119  (eval $ac_compile) 2>conftest.er1
     3120  ac_status=$?
     3121  grep -v '^ *+' conftest.er1 >conftest.err
     3122  rm -f conftest.er1
     3123  cat conftest.err >&5
     3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3125  (exit $ac_status); } &&
     3126         { ac_try='test -z "$ac_cxx_werror_flag"
     3127                         || test ! -s conftest.err'
     3128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3129  (eval $ac_try) 2>&5
     3130  ac_status=$?
     3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3132  (exit $ac_status); }; } &&
     3133         { ac_try='test -s conftest.$ac_objext'
     3134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3135  (eval $ac_try) 2>&5
     3136  ac_status=$?
     3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3138  (exit $ac_status); }; }; then
     3139  break
     3140else
     3141  echo "$as_me: failed program was:" >&5
     3142sed 's/^/| /' conftest.$ac_ext >&5
     3143
     3144fi
     3145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3146done
     3147rm -f conftest*
     3148if test -n "$ac_declaration"; then
     3149  echo '#ifdef __cplusplus' >>confdefs.h
     3150  echo $ac_declaration      >>confdefs.h
     3151  echo '#endif'             >>confdefs.h
     3152fi
     3153
     3154ac_ext=cc
     3155ac_cpp='$CXXCPP $CPPFLAGS'
     3156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     3159
     3160CXXFLAGS="$save_cxxflags"
     3161
     3162echo "$as_me:$LINENO: checking for C++ compiler options" >&5
     3163echo $ECHO_N "checking for C++ compiler options... $ECHO_C" >&6
     3164if test "${coin_cv_cxxflags+set}" = set; then
     3165  echo $ECHO_N "(cached) $ECHO_C" >&6
     3166else
     3167  if test x"$CXXFLAGS" = x; then
     3168
     3169# ToDo decide whether we want -DNDEBUG for optimization
     3170  coin_add_cxxflags=
     3171  coin_opt_cxxflags=
     3172  coin_dbg_cxxflags=
     3173  coin_warn_cxxflags=
     3174
     3175  if test "$GXX" = "yes"; then
     3176    case "$CXX" in
     3177      icpc | */icpc)
     3178        ;;
     3179      *)
     3180# ToDo decide about unroll-loops
     3181        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
     3182        coin_add_cxxflags="-pipe"
     3183        coin_dbg_cxxflags="-g"
     3184        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
     3185
     3186        case $build in
     3187          *-cygwin*)
     3188            CXXFLAGS="-mno-cygwin"
     3189            cat >conftest.$ac_ext <<_ACEOF
     3190/* confdefs.h.  */
     3191_ACEOF
     3192cat confdefs.h >>conftest.$ac_ext
     3193cat >>conftest.$ac_ext <<_ACEOF
     3194/* end confdefs.h.  */
     3195
     3196int
     3197main ()
     3198{
     3199int i=0; i++;
     3200  ;
     3201  return 0;
     3202}
     3203_ACEOF
     3204rm -f conftest.$ac_objext conftest$ac_exeext
     3205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3206  (eval $ac_link) 2>conftest.er1
     3207  ac_status=$?
     3208  grep -v '^ *+' conftest.er1 >conftest.err
     3209  rm -f conftest.er1
     3210  cat conftest.err >&5
     3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3212  (exit $ac_status); } &&
     3213         { ac_try='test -z "$ac_cxx_werror_flag"
     3214                         || test ! -s conftest.err'
     3215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3216  (eval $ac_try) 2>&5
     3217  ac_status=$?
     3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3219  (exit $ac_status); }; } &&
     3220         { ac_try='test -s conftest$ac_exeext'
     3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3222  (eval $ac_try) 2>&5
     3223  ac_status=$?
     3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3225  (exit $ac_status); }; }; then
     3226  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
     3227else
     3228  echo "$as_me: failed program was:" >&5
     3229sed 's/^/| /' conftest.$ac_ext >&5
     3230
     3231fi
     3232rm -f conftest.err conftest.$ac_objext \
     3233      conftest$ac_exeext conftest.$ac_ext
     3234            CXXFLAGS=
     3235            ;;
     3236        esac
     3237        ;;
     3238    esac
     3239  fi
     3240  if test -z "$coin_opt_cxxflags"; then
     3241    case $build in
     3242      *-cygwin* | *-mingw*)
     3243        case "$CXX" in
     3244          cl | */cl)
     3245            coin_opt_cxxflags='-O2'
     3246            coin_add_cxxflags='-nologo -EHsc -GR -MT'
     3247            coin_dbg_cxxflags='-Yd'
     3248            ;;
     3249        esac
     3250        ;;
     3251      *-linux-*)
     3252        case "$CXX" in
     3253          icpc | */icpc)
     3254            coin_opt_cxxflags="-O3 -ip"
     3255            coin_add_cxxflags=""
     3256            coin_dbg_cxxflags="-g"
     3257            # Check if -i_dynamic is necessary (for new glibc library)
     3258            CXXFLAGS=
     3259            cat >conftest.$ac_ext <<_ACEOF
     3260/* confdefs.h.  */
     3261_ACEOF
     3262cat confdefs.h >>conftest.$ac_ext
     3263cat >>conftest.$ac_ext <<_ACEOF
     3264/* end confdefs.h.  */
     3265
     3266int
     3267main ()
     3268{
     3269int i=0; i++;
     3270  ;
     3271  return 0;
     3272}
     3273_ACEOF
     3274rm -f conftest.$ac_objext conftest$ac_exeext
     3275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3276  (eval $ac_link) 2>conftest.er1
     3277  ac_status=$?
     3278  grep -v '^ *+' conftest.er1 >conftest.err
     3279  rm -f conftest.er1
     3280  cat conftest.err >&5
     3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3282  (exit $ac_status); } &&
     3283         { ac_try='test -z "$ac_cxx_werror_flag"
     3284                         || test ! -s conftest.err'
     3285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3286  (eval $ac_try) 2>&5
     3287  ac_status=$?
     3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3289  (exit $ac_status); }; } &&
     3290         { ac_try='test -s conftest$ac_exeext'
     3291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3292  (eval $ac_try) 2>&5
     3293  ac_status=$?
     3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3295  (exit $ac_status); }; }; then
     3296  :
     3297else
     3298  echo "$as_me: failed program was:" >&5
     3299sed 's/^/| /' conftest.$ac_ext >&5
     3300
     3301coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
     3302fi
     3303rm -f conftest.err conftest.$ac_objext \
     3304      conftest$ac_exeext conftest.$ac_ext
     3305            ;;
     3306          pgCC | */pgCC)
     3307            coin_opt_cxxflags="-fast"
     3308            coin_add_cxxflags="-Kieee -pc 64"
     3309            coin_dbg_cxxflags="-g"
     3310            ;;
     3311        esac
     3312        ;;
     3313      *-ibm-*)
     3314        case "$CXX" in
     3315          xlC* | */xlC* | mpxlC* | */mpxlC*)
     3316            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
     3317            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
     3318            coin_dbg_cxxflags="-g"
     3319            ;;
     3320        esac
     3321        ;;
     3322      *-hp-*)
     3323        case "$CXX" in
     3324          aCC | */aCC )
     3325            coin_opt_cxxflags="-O"
     3326            coin_add_cxxflags="-AA"
     3327            coin_dbg_cxxflags="-g"
     3328            ;;
     3329        esac
     3330        ;;
     3331      *-sun-*)
     3332          coin_opt_cxxflags="-O4 -xtarget=native"
     3333          coin_dbg_cxxflags="-g"
     3334        ;;
     3335    esac
     3336  fi
     3337
     3338  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
     3339    coin_dbg_cxxflags="-g"
     3340  fi
     3341
     3342  if test "$coin_debug_compile" = "true"; then
     3343    CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
     3344  else
     3345    if test -z "$coin_opt_cxxflags"; then
     3346      # Try if -O option works if nothing else is set
     3347      CXXFLAGS="-O"
     3348      cat >conftest.$ac_ext <<_ACEOF
     3349/* confdefs.h.  */
     3350_ACEOF
     3351cat confdefs.h >>conftest.$ac_ext
     3352cat >>conftest.$ac_ext <<_ACEOF
     3353/* end confdefs.h.  */
     3354
     3355int
     3356main ()
     3357{
     3358int i=0; i++;
     3359  ;
     3360  return 0;
     3361}
     3362_ACEOF
     3363rm -f conftest.$ac_objext conftest$ac_exeext
     3364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3365  (eval $ac_link) 2>conftest.er1
     3366  ac_status=$?
     3367  grep -v '^ *+' conftest.er1 >conftest.err
     3368  rm -f conftest.er1
     3369  cat conftest.err >&5
     3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3371  (exit $ac_status); } &&
     3372         { ac_try='test -z "$ac_cxx_werror_flag"
     3373                         || test ! -s conftest.err'
     3374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3375  (eval $ac_try) 2>&5
     3376  ac_status=$?
     3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3378  (exit $ac_status); }; } &&
     3379         { ac_try='test -s conftest$ac_exeext'
     3380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3381  (eval $ac_try) 2>&5
     3382  ac_status=$?
     3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3384  (exit $ac_status); }; }; then
     3385  coin_opt_cxxflags="-O"
     3386else
     3387  echo "$as_me: failed program was:" >&5
     3388sed 's/^/| /' conftest.$ac_ext >&5
     3389
     3390fi
     3391rm -f conftest.err conftest.$ac_objext \
     3392      conftest$ac_exeext conftest.$ac_ext
     3393    fi
     3394    CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $CXXDEFS $coin_warn_cxxflags"
     3395  fi
     3396fi
     3397
     3398# Try if CXXFLAGS works
     3399cat >conftest.$ac_ext <<_ACEOF
     3400/* confdefs.h.  */
     3401_ACEOF
     3402cat confdefs.h >>conftest.$ac_ext
     3403cat >>conftest.$ac_ext <<_ACEOF
     3404/* end confdefs.h.  */
     3405
     3406int
     3407main ()
     3408{
     3409int i=0; i++;
     3410  ;
     3411  return 0;
     3412}
     3413_ACEOF
     3414rm -f conftest.$ac_objext conftest$ac_exeext
     3415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3416  (eval $ac_link) 2>conftest.er1
     3417  ac_status=$?
     3418  grep -v '^ *+' conftest.er1 >conftest.err
     3419  rm -f conftest.er1
     3420  cat conftest.err >&5
     3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3422  (exit $ac_status); } &&
     3423         { ac_try='test -z "$ac_cxx_werror_flag"
     3424                         || test ! -s conftest.err'
     3425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3426  (eval $ac_try) 2>&5
     3427  ac_status=$?
     3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3429  (exit $ac_status); }; } &&
     3430         { ac_try='test -s conftest$ac_exeext'
     3431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3432  (eval $ac_try) 2>&5
     3433  ac_status=$?
     3434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3435  (exit $ac_status); }; }; then
     3436  :
     3437else
     3438  echo "$as_me: failed program was:" >&5
     3439sed 's/^/| /' conftest.$ac_ext >&5
     3440
     3441CXXFLAGS=
     3442fi
     3443rm -f conftest.err conftest.$ac_objext \
     3444      conftest$ac_exeext conftest.$ac_ext
     3445if test -z "$CXXFLAGS"; then
     3446  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
     3447echo "$as_me: WARNING: The flags CXXFLAGS=\"$CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
     3448  CXXFLAGS='-O'
     3449  cat >conftest.$ac_ext <<_ACEOF
     3450/* confdefs.h.  */
     3451_ACEOF
     3452cat confdefs.h >>conftest.$ac_ext
     3453cat >>conftest.$ac_ext <<_ACEOF
     3454/* end confdefs.h.  */
     3455
     3456int
     3457main ()
     3458{
     3459int i=0; i++;
     3460  ;
     3461  return 0;
     3462}
     3463_ACEOF
     3464rm -f conftest.$ac_objext conftest$ac_exeext
     3465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3466  (eval $ac_link) 2>conftest.er1
     3467  ac_status=$?
     3468  grep -v '^ *+' conftest.er1 >conftest.err
     3469  rm -f conftest.er1
     3470  cat conftest.err >&5
     3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3472  (exit $ac_status); } &&
     3473         { ac_try='test -z "$ac_cxx_werror_flag"
     3474                         || test ! -s conftest.err'
     3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3476  (eval $ac_try) 2>&5
     3477  ac_status=$?
     3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3479  (exit $ac_status); }; } &&
     3480         { ac_try='test -s conftest$ac_exeext'
     3481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3482  (eval $ac_try) 2>&5
     3483  ac_status=$?
     3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3485  (exit $ac_status); }; }; then
     3486  :
     3487else
     3488  echo "$as_me: failed program was:" >&5
     3489sed 's/^/| /' conftest.$ac_ext >&5
     3490
     3491CXXFLAGS=
     3492fi
     3493rm -f conftest.err conftest.$ac_objext \
     3494      conftest$ac_exeext conftest.$ac_ext
     3495  if test -z "$CXXFLAGS"; then
     3496    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
     3497echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
     3498  fi
     3499fi
     3500coin_cv_cxxflags="$CXXFLAGS"
     3501
     3502fi
     3503echo "$as_me:$LINENO: result: $coin_cv_cxxflags" >&5
     3504echo "${ECHO_T}$coin_cv_cxxflags" >&6 # AC_CACHE_CHECK([for C++ compiler options CXXFLAGS]
     3505CXXFLAGS="$coin_cv_cxxflags"
     3506
     3507ac_ext=c
     3508ac_cpp='$CPP $CPPFLAGS'
     3509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3511ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3512
     3513
     3514
     3515# Initialize automake and libtool
     3516
     3517# On Cygwin, building DLLs doesn't work
     3518case $build in
     3519  *-cygwin*)
     3520    coin_disable_shared=yes
     3521  ;;
     3522  *-mingw*)
     3523    case $CXX in
     3524      cl)
     3525        coin_disable_shared=yes
     3526    ;;
     3527    esac
     3528  ;;
     3529esac
     3530if test x"$coin_disable_shared" = xyes; then
     3531  if test x"$enable_shared" = xyes; then
     3532    { echo "$as_me:$LINENO: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&5
     3533echo "$as_me: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&2;}
     3534  fi
     3535  enable_shared=no
     3536fi
     3537# By default, we only want the shared objects to be compiled
     3538# Check whether --enable-static or --disable-static was given.
     3539if test "${enable_static+set}" = set; then
     3540  enableval="$enable_static"
     3541  p=${PACKAGE-default}
     3542    case $enableval in
     3543    yes) enable_static=yes ;;
     3544    no) enable_static=no ;;
     3545    *)
     3546     enable_static=no
     3547      # Look at the argument we got.  We use all the common list separators.
     3548      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     3549      for pkg in $enableval; do
     3550        IFS="$lt_save_ifs"
     3551        if test "X$pkg" = "X$p"; then
     3552          enable_static=yes
     3553        fi
     3554      done
     3555      IFS="$lt_save_ifs"
     3556      ;;
     3557    esac
     3558else
     3559  enable_static=no
     3560fi;
     3561
     3562
     3563
     3564echo "$as_me:$LINENO: checking for egrep" >&5
     3565echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3566if test "${ac_cv_prog_egrep+set}" = set; then
     3567  echo $ECHO_N "(cached) $ECHO_C" >&6
     3568else
     3569  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3570    then ac_cv_prog_egrep='grep -E'
     3571    else ac_cv_prog_egrep='egrep'
     3572    fi
     3573fi
     3574echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3575echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3576 EGREP=$ac_cv_prog_egrep
     3577
     3578
     3579am__api_version="1.9"
     3580# Find a good install program.  We prefer a C program (faster),
     3581# so one script is as good as another.  But avoid the broken or
     3582# incompatible versions:
     3583# SysV /etc/install, /usr/sbin/install
     3584# SunOS /usr/etc/install
     3585# IRIX /sbin/install
     3586# AIX /bin/install
     3587# AmigaOS /C/install, which installs bootblocks on floppy discs
     3588# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     3589# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     3590# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     3591# OS/2's system install, which has a completely different semantic
     3592# ./install, which can be erroneously created by make from ./install.sh.
     3593echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     3594echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     3595if test -z "$INSTALL"; then
     3596if test "${ac_cv_path_install+set}" = set; then
     3597  echo $ECHO_N "(cached) $ECHO_C" >&6
     3598else
     3599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3600for as_dir in $PATH
     3601do
     3602  IFS=$as_save_IFS
     3603  test -z "$as_dir" && as_dir=.
     3604  # Account for people who put trailing slashes in PATH elements.
     3605case $as_dir/ in
     3606  ./ | .// | /cC/* | \
     3607  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     3608  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     3609  /usr/ucb/* ) ;;
     3610  *)
     3611    # OSF1 and SCO ODT 3.0 have their own names for install.
     3612    # Don't use installbsd from OSF since it installs stuff as root
     3613    # by default.
     3614    for ac_prog in ginstall scoinst install; do
     3615      for ac_exec_ext in '' $ac_executable_extensions; do
     3616        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     3617          if test $ac_prog = install &&
     3618            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     3619            # AIX install.  It has an incompatible calling convention.
     3620            :
     3621          elif test $ac_prog = install &&
     3622            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     3623            # program-specific install script used by HP pwplus--don't use.
     3624            :
     3625          else
     3626            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     3627            break 3
     3628          fi
     3629        fi
     3630      done
    37863631    done
    3787     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    3788 
    3789     case $depmode in
    3790     nosideeffect)
    3791       # after this tag, mechanisms are not by side-effect, so they'll
    3792       # only be used when explicitly requested
    3793       if test "x$enable_dependency_tracking" = xyes; then
    3794         continue
    3795       else
    3796         break
    3797       fi
    3798       ;;
    3799     none) break ;;
    3800     esac
    3801     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    3802     # mode.  It turns out that the SunPro C++ compiler does not properly
    3803     # handle `-M -o', and we need to detect this.
    3804     if depmode=$depmode \
    3805        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    3806        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    3807        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    3808          >/dev/null 2>conftest.err &&
    3809        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    3810        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    3811        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    3812       # icc doesn't choke on unknown options, it will just issue warnings
    3813       # or remarks (even with -Werror).  So we grep stderr for any message
    3814       # that says an option was ignored or not supported.
    3815       # When given -MP, icc 7.0 and 7.1 complain thusly:
    3816       #   icc: Command line warning: ignoring option '-M'; no argument required
    3817       # The diagnosis changed in icc 8.0:
    3818       #   icc: Command line remark: option '-MP' not supported
    3819       if (grep 'ignoring option' conftest.err ||
    3820           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    3821         am_cv_CC_dependencies_compiler_type=$depmode
    3822         break
    3823       fi
    3824     fi
     3632    ;;
     3633esac
     3634done
     3635
     3636
     3637fi
     3638  if test "${ac_cv_path_install+set}" = set; then
     3639    INSTALL=$ac_cv_path_install
     3640  else
     3641    # As a last resort, use the slow shell script.  We don't cache a
     3642    # path for INSTALL within a source directory, because that will
     3643    # break other packages using the cache if that directory is
     3644    # removed, or if the path is relative.
     3645    INSTALL=$ac_install_sh
     3646  fi
     3647fi
     3648echo "$as_me:$LINENO: result: $INSTALL" >&5
     3649echo "${ECHO_T}$INSTALL" >&6
     3650
     3651# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     3652# It thinks the first close brace ends the variable substitution.
     3653test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     3654
     3655test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     3656
     3657test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     3658
     3659echo "$as_me:$LINENO: checking whether build environment is sane" >&5
     3660echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
     3661# Just in case
     3662sleep 1
     3663echo timestamp > conftest.file
     3664# Do `set' in a subshell so we don't clobber the current shell's
     3665# arguments.  Must try -L first in case configure is actually a
     3666# symlink; some systems play weird games with the mod time of symlinks
     3667# (eg FreeBSD returns the mod time of the symlink's containing
     3668# directory).
     3669if (
     3670   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
     3671   if test "$*" = "X"; then
     3672      # -L didn't work.
     3673      set X `ls -t $srcdir/configure conftest.file`
     3674   fi
     3675   rm -f conftest.file
     3676   if test "$*" != "X $srcdir/configure conftest.file" \
     3677      && test "$*" != "X conftest.file $srcdir/configure"; then
     3678
     3679      # If neither matched, then we have a broken ls.  This can happen
     3680      # if, for instance, CONFIG_SHELL is bash and it inherits a
     3681      # broken ls alias from the environment.  This has actually
     3682      # happened.  Such a system could not be considered "sane".
     3683      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
     3684alias in your environment" >&5
     3685echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
     3686alias in your environment" >&2;}
     3687   { (exit 1); exit 1; }; }
     3688   fi
     3689
     3690   test "$2" = conftest.file
     3691   )
     3692then
     3693   # Ok.
     3694   :
     3695else
     3696   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
     3697Check your system clock" >&5
     3698echo "$as_me: error: newly created file is older than distributed files!
     3699Check your system clock" >&2;}
     3700   { (exit 1); exit 1; }; }
     3701fi
     3702echo "$as_me:$LINENO: result: yes" >&5
     3703echo "${ECHO_T}yes" >&6
     3704test "$program_prefix" != NONE &&
     3705  program_transform_name="s,^,$program_prefix,;$program_transform_name"
     3706# Use a double $ so make ignores it.
     3707test "$program_suffix" != NONE &&
     3708  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
     3709# Double any \ or $.  echo might interpret backslashes.
     3710# By default was `s,x,x', remove it if useless.
     3711cat <<\_ACEOF >conftest.sed
     3712s/[\\$]/&&/g;s/;s,x,x,$//
     3713_ACEOF
     3714program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     3715rm conftest.sed
     3716
     3717# expand $ac_aux_dir to an absolute path
     3718am_aux_dir=`cd $ac_aux_dir && pwd`
     3719
     3720test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
     3721# Use eval to expand $SHELL
     3722if eval "$MISSING --run true"; then
     3723  am_missing_run="$MISSING --run "
     3724else
     3725  am_missing_run=
     3726  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
     3727echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
     3728fi
     3729
     3730if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
     3731  # We used to keeping the `.' as first argument, in order to
     3732  # allow $(mkdir_p) to be used without argument.  As in
     3733  #   $(mkdir_p) $(somedir)
     3734  # where $(somedir) is conditionally defined.  However this is wrong
     3735  # for two reasons:
     3736  #  1. if the package is installed by a user who cannot write `.'
     3737  #     make install will fail,
     3738  #  2. the above comment should most certainly read
     3739  #     $(mkdir_p) $(DESTDIR)$(somedir)
     3740  #     so it does not work when $(somedir) is undefined and
     3741  #     $(DESTDIR) is not.
     3742  #  To support the latter case, we have to write
     3743  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
     3744  #  so the `.' trick is pointless.
     3745  mkdir_p='mkdir -p --'
     3746else
     3747  # On NextStep and OpenStep, the `mkdir' command does not
     3748  # recognize any option.  It will interpret all options as
     3749  # directories to create, and then abort because `.' already
     3750  # exists.
     3751  for d in ./-p ./--version;
     3752  do
     3753    test -d $d && rmdir $d
    38253754  done
    3826 
    3827   cd ..
    3828   rm -rf conftest.dir
    3829 else
    3830   am_cv_CC_dependencies_compiler_type=none
    3831 fi
    3832 
    3833 fi
    3834 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
    3835 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
    3836 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    3837 
    3838 
    3839 
    3840 if
    3841   test "x$enable_dependency_tracking" != xno \
    3842   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
    3843   am__fastdepCC_TRUE=
    3844   am__fastdepCC_FALSE='#'
    3845 else
    3846   am__fastdepCC_TRUE='#'
    3847   am__fastdepCC_FALSE=
     3755  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
     3756  if test -f "$ac_aux_dir/mkinstalldirs"; then
     3757    mkdir_p='$(mkinstalldirs)'
     3758  else
     3759    mkdir_p='$(install_sh) -d'
     3760  fi
     3761fi
     3762
     3763for ac_prog in gawk mawk nawk awk
     3764do
     3765  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3766set dummy $ac_prog; ac_word=$2
     3767echo "$as_me:$LINENO: checking for $ac_word" >&5
     3768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3769if test "${ac_cv_prog_AWK+set}" = set; then
     3770  echo $ECHO_N "(cached) $ECHO_C" >&6
     3771else
     3772  if test -n "$AWK"; then
     3773  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     3774else
     3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3776for as_dir in $PATH
     3777do
     3778  IFS=$as_save_IFS
     3779  test -z "$as_dir" && as_dir=.
     3780  for ac_exec_ext in '' $ac_executable_extensions; do
     3781  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3782    ac_cv_prog_AWK="$ac_prog"
     3783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3784    break 2
     3785  fi
     3786done
     3787done
     3788
     3789fi
     3790fi
     3791AWK=$ac_cv_prog_AWK
     3792if test -n "$AWK"; then
     3793  echo "$as_me:$LINENO: result: $AWK" >&5
     3794echo "${ECHO_T}$AWK" >&6
     3795else
     3796  echo "$as_me:$LINENO: result: no" >&5
     3797echo "${ECHO_T}no" >&6
     3798fi
     3799
     3800  test -n "$AWK" && break
     3801done
     3802
     3803echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     3804echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     3805set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     3806if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     3807  echo $ECHO_N "(cached) $ECHO_C" >&6
     3808else
     3809  cat >conftest.make <<\_ACEOF
     3810all:
     3811        @echo 'ac_maketemp="$(MAKE)"'
     3812_ACEOF
     3813# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     3814eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     3815if test -n "$ac_maketemp"; then
     3816  eval ac_cv_prog_make_${ac_make}_set=yes
     3817else
     3818  eval ac_cv_prog_make_${ac_make}_set=no
     3819fi
     3820rm -f conftest.make
     3821fi
     3822if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     3823  echo "$as_me:$LINENO: result: yes" >&5
     3824echo "${ECHO_T}yes" >&6
     3825  SET_MAKE=
     3826else
     3827  echo "$as_me:$LINENO: result: no" >&5
     3828echo "${ECHO_T}no" >&6
     3829  SET_MAKE="MAKE=${MAKE-make}"
     3830fi
     3831
     3832rm -rf .tst 2>/dev/null
     3833mkdir .tst 2>/dev/null
     3834if test -d .tst; then
     3835  am__leading_dot=.
     3836else
     3837  am__leading_dot=_
     3838fi
     3839rmdir .tst 2>/dev/null
     3840
     3841DEPDIR="${am__leading_dot}deps"
     3842
     3843          ac_config_commands="$ac_config_commands depfiles"
     3844
     3845
     3846am_make=${MAKE-make}
     3847cat > confinc << 'END'
     3848am__doit:
     3849        @echo done
     3850.PHONY: am__doit
     3851END
     3852# If we don't find an include directive, just comment out the code.
     3853echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
     3854echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
     3855am__include="#"
     3856am__quote=
     3857_am_result=none
     3858# First try GNU make style include.
     3859echo "include confinc" > confmf
     3860# We grep out `Entering directory' and `Leaving directory'
     3861# messages which can occur if `w' ends up in MAKEFLAGS.
     3862# In particular we don't look at `^make:' because GNU make might
     3863# be invoked under some other name (usually "gmake"), in which
     3864# case it prints its new name instead of `make'.
     3865if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     3866   am__include=include
     3867   am__quote=
     3868   _am_result=GNU
     3869fi
     3870# Now try BSD make style include.
     3871if test "$am__include" = "#"; then
     3872   echo '.include "confinc"' > confmf
     3873   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     3874      am__include=.include
     3875      am__quote="\""
     3876      _am_result=BSD
     3877   fi
     3878fi
     3879
     3880
     3881echo "$as_me:$LINENO: result: $_am_result" >&5
     3882echo "${ECHO_T}$_am_result" >&6
     3883rm -f confinc confmf
     3884
     3885# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
     3886if test "${enable_dependency_tracking+set}" = set; then
     3887  enableval="$enable_dependency_tracking"
     3888
     3889fi;
     3890if test "x$enable_dependency_tracking" != xno; then
     3891  am_depcomp="$ac_aux_dir/depcomp"
     3892  AMDEPBACKSLASH='\'
     3893fi
     3894
     3895
     3896if test "x$enable_dependency_tracking" != xno; then
     3897  AMDEP_TRUE=
     3898  AMDEP_FALSE='#'
     3899else
     3900  AMDEP_TRUE='#'
     3901  AMDEP_FALSE=
    38483902fi
    38493903
     
    39233977
    39243978
    3925 ac_ext=cc
    3926 ac_cpp='$CXXCPP $CPPFLAGS'
    3927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     3979ac_ext=c
     3980ac_cpp='$CPP $CPPFLAGS'
     3981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3983ac_compiler_gnu=$ac_cv_c_compiler_gnu
    39303984
    39313985
     
    44784532*-*-irix6*)
    44794533  # Find out which ABI we are using.
    4480   echo '#line 4480 "configure"' > conftest.$ac_ext
     4534  echo '#line 4534 "configure"' > conftest.$ac_ext
    44814535  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    44824536  (eval $ac_compile) 2>&5
     
    56125666
    56135667# Provide some information about the compiler.
    5614 echo "$as_me:5614:" \
     5668echo "$as_me:5668:" \
    56155669     "checking for Fortran 77 compiler version" >&5
    56165670ac_compiler=`set X $ac_compile; echo $2`
     
    57505804
    57515805G77=`test $ac_compiler_gnu = yes && echo yes`
    5752 ac_ext=cc
    5753 ac_cpp='$CXXCPP $CPPFLAGS'
    5754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    5755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    5756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     5806ac_ext=c
     5807ac_cpp='$CPP $CPPFLAGS'
     5808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5810ac_compiler_gnu=$ac_cv_c_compiler_gnu
    57575811
    57585812
     
    66796733   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    66806734   -e 's:$: $lt_compiler_flag:'`
    6681    (eval echo "\"\$as_me:6681: $lt_compile\"" >&5)
     6735   (eval echo "\"\$as_me:6735: $lt_compile\"" >&5)
    66826736   (eval "$lt_compile" 2>conftest.err)
    66836737   ac_status=$?
    66846738   cat conftest.err >&5
    6685    echo "$as_me:6685: \$? = $ac_status" >&5
     6739   echo "$as_me:6739: \$? = $ac_status" >&5
    66866740   if (exit $ac_status) && test -s "$ac_outfile"; then
    66876741     # The compiler can only warn and ignore the option if not recognized
     
    69477001   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    69487002   -e 's:$: $lt_compiler_flag:'`
    6949    (eval echo "\"\$as_me:6949: $lt_compile\"" >&5)
     7003   (eval echo "\"\$as_me:7003: $lt_compile\"" >&5)
    69507004   (eval "$lt_compile" 2>conftest.err)
    69517005   ac_status=$?
    69527006   cat conftest.err >&5
    6953    echo "$as_me:6953: \$? = $ac_status" >&5
     7007   echo "$as_me:7007: \$? = $ac_status" >&5
    69547008   if (exit $ac_status) && test -s "$ac_outfile"; then
    69557009     # The compiler can only warn and ignore the option if not recognized
     
    70517105   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    70527106   -e 's:$: $lt_compiler_flag:'`
    7053    (eval echo "\"\$as_me:7053: $lt_compile\"" >&5)
     7107   (eval echo "\"\$as_me:7107: $lt_compile\"" >&5)
    70547108   (eval "$lt_compile" 2>out/conftest.err)
    70557109   ac_status=$?
    70567110   cat out/conftest.err >&5
    7057    echo "$as_me:7057: \$? = $ac_status" >&5
     7111   echo "$as_me:7111: \$? = $ac_status" >&5
    70587112   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    70597113   then
     
    93969450  lt_status=$lt_dlunknown
    93979451  cat > conftest.$ac_ext <<EOF
    9398 #line 9398 "configure"
     9452#line 9452 "configure"
    93999453#include "confdefs.h"
    94009454
     
    94969550  lt_status=$lt_dlunknown
    94979551  cat > conftest.$ac_ext <<EOF
    9498 #line 9498 "configure"
     9552#line 9552 "configure"
    94999553#include "confdefs.h"
    95009554
     
    1012010174
    1012110175
    10122 ac_ext=cc
    10123 ac_cpp='$CXXCPP $CPPFLAGS'
    10124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    10125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    10126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     10176ac_ext=c
     10177ac_cpp='$CPP $CPPFLAGS'
     10178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     10179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     10180ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1012710181
    1012810182CC="$lt_save_CC"
     
    1184011894   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1184111895   -e 's:$: $lt_compiler_flag:'`
    11842    (eval echo "\"\$as_me:11842: $lt_compile\"" >&5)
     11896   (eval echo "\"\$as_me:11896: $lt_compile\"" >&5)
    1184311897   (eval "$lt_compile" 2>conftest.err)
    1184411898   ac_status=$?
    1184511899   cat conftest.err >&5
    11846    echo "$as_me:11846: \$? = $ac_status" >&5
     11900   echo "$as_me:11900: \$? = $ac_status" >&5
    1184711901   if (exit $ac_status) && test -s "$ac_outfile"; then
    1184811902     # The compiler can only warn and ignore the option if not recognized
     
    1194411998   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1194511999   -e 's:$: $lt_compiler_flag:'`
    11946    (eval echo "\"\$as_me:11946: $lt_compile\"" >&5)
     12000   (eval echo "\"\$as_me:12000: $lt_compile\"" >&5)
    1194712001   (eval "$lt_compile" 2>out/conftest.err)
    1194812002   ac_status=$?
    1194912003   cat out/conftest.err >&5
    11950    echo "$as_me:11950: \$? = $ac_status" >&5
     12004   echo "$as_me:12004: \$? = $ac_status" >&5
    1195112005   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1195212006   then
     
    1313113185
    1313213186
    13133 ac_ext=cc
    13134 ac_cpp='$CXXCPP $CPPFLAGS'
    13135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    13136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    13137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     13187ac_ext=c
     13188ac_cpp='$CPP $CPPFLAGS'
     13189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     13190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     13191ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1313813192
    1313913193CC=$lt_save_CC
     
    1351413568   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1351513569   -e 's:$: $lt_compiler_flag:'`
    13516    (eval echo "\"\$as_me:13516: $lt_compile\"" >&5)
     13570   (eval echo "\"\$as_me:13570: $lt_compile\"" >&5)
    1351713571   (eval "$lt_compile" 2>conftest.err)
    1351813572   ac_status=$?
    1351913573   cat conftest.err >&5
    13520    echo "$as_me:13520: \$? = $ac_status" >&5
     13574   echo "$as_me:13574: \$? = $ac_status" >&5
    1352113575   if (exit $ac_status) && test -s "$ac_outfile"; then
    1352213576     # The compiler can only warn and ignore the option if not recognized
     
    1361813672   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1361913673   -e 's:$: $lt_compiler_flag:'`
    13620    (eval echo "\"\$as_me:13620: $lt_compile\"" >&5)
     13674   (eval echo "\"\$as_me:13674: $lt_compile\"" >&5)
    1362113675   (eval "$lt_compile" 2>out/conftest.err)
    1362213676   ac_status=$?
    1362313677   cat out/conftest.err >&5
    13624    echo "$as_me:13624: \$? = $ac_status" >&5
     13678   echo "$as_me:13678: \$? = $ac_status" >&5
    1362513679   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1362613680   then
     
    1571815772
    1571915773
    15720 ac_ext=cc
    15721 ac_cpp='$CXXCPP $CPPFLAGS'
    15722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    15723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    15724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     15774ac_ext=c
     15775ac_cpp='$CPP $CPPFLAGS'
     15776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     15777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     15778ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1572515779
    1572615780CC="$lt_save_CC"
     
    1582515879   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1582615880   -e 's:$: $lt_compiler_flag:'`
    15827    (eval echo "\"\$as_me:15827: $lt_compile\"" >&5)
     15881   (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
    1582815882   (eval "$lt_compile" 2>conftest.err)
    1582915883   ac_status=$?
    1583015884   cat conftest.err >&5
    15831    echo "$as_me:15831: \$? = $ac_status" >&5
     15885   echo "$as_me:15885: \$? = $ac_status" >&5
    1583215886   if (exit $ac_status) && test -s "$ac_outfile"; then
    1583315887     # The compiler can only warn and ignore the option if not recognized
     
    1609316147   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1609416148   -e 's:$: $lt_compiler_flag:'`
    16095    (eval echo "\"\$as_me:16095: $lt_compile\"" >&5)
     16149   (eval echo "\"\$as_me:16149: $lt_compile\"" >&5)
    1609616150   (eval "$lt_compile" 2>conftest.err)
    1609716151   ac_status=$?
    1609816152   cat conftest.err >&5
    16099    echo "$as_me:16099: \$? = $ac_status" >&5
     16153   echo "$as_me:16153: \$? = $ac_status" >&5
    1610016154   if (exit $ac_status) && test -s "$ac_outfile"; then
    1610116155     # The compiler can only warn and ignore the option if not recognized
     
    1619716251   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1619816252   -e 's:$: $lt_compiler_flag:'`
    16199    (eval echo "\"\$as_me:16199: $lt_compile\"" >&5)
     16253   (eval echo "\"\$as_me:16253: $lt_compile\"" >&5)
    1620016254   (eval "$lt_compile" 2>out/conftest.err)
    1620116255   ac_status=$?
    1620216256   cat out/conftest.err >&5
    16203    echo "$as_me:16203: \$? = $ac_status" >&5
     16257   echo "$as_me:16257: \$? = $ac_status" >&5
    1620416258   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1620516259   then
     
    1667316727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1667416728  (exit $ac_status); } &&
    16675          { ac_try='test -z "$ac_cxx_werror_flag"
     16729         { ac_try='test -z "$ac_c_werror_flag"
    1667616730                         || test ! -s conftest.err'
    1667716731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     
    1673416788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1673516789  (exit $ac_status); } &&
    16736          { ac_try='test -z "$ac_cxx_werror_flag"
     16790         { ac_try='test -z "$ac_c_werror_flag"
    1673716791                         || test ! -s conftest.err'
    1673816792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     
    1831718371
    1831818372
    18319 ac_ext=cc
    18320 ac_cpp='$CXXCPP $CPPFLAGS'
    18321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    18322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    18323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     18373ac_ext=c
     18374ac_cpp='$CPP $CPPFLAGS'
     18375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     18376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     18377ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1832418378
    1832518379CC="$lt_save_CC"
     
    1879818852
    1879918853
    18800 ac_ext=cc
    18801 ac_cpp='$CXXCPP $CPPFLAGS'
    18802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    18803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    18804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     18854ac_ext=c
     18855ac_cpp='$CPP $CPPFLAGS'
     18856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     18857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     18858ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1880518859
    1880618860CC="$lt_save_CC"
     
    1901019064
    1901119065
     19066
     19067
     19068depcc="$CC"   am_compiler_list=
     19069
     19070echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     19071echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     19072if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     19073  echo $ECHO_N "(cached) $ECHO_C" >&6
     19074else
     19075  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     19076  # We make a subdir and do the tests there.  Otherwise we can end up
     19077  # making bogus files that we don't know about and never remove.  For
     19078  # instance it was reported that on HP-UX the gcc test will end up
     19079  # making a dummy file named `D' -- because `-MD' means `put the output
     19080  # in D'.
     19081  mkdir conftest.dir
     19082  # Copy depcomp to subdir because otherwise we won't find it if we're
     19083  # using a relative directory.
     19084  cp "$am_depcomp" conftest.dir
     19085  cd conftest.dir
     19086  # We will build objects and dependencies in a subdirectory because
     19087  # it helps to detect inapplicable dependency modes.  For instance
     19088  # both Tru64's cc and ICC support -MD to output dependencies as a
     19089  # side effect of compilation, but ICC will put the dependencies in
     19090  # the current directory while Tru64 will put them in the object
     19091  # directory.
     19092  mkdir sub
     19093
     19094  am_cv_CC_dependencies_compiler_type=none
     19095  if test "$am_compiler_list" = ""; then
     19096     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     19097  fi
     19098  for depmode in $am_compiler_list; do
     19099    # Setup a source with many dependencies, because some compilers
     19100    # like to wrap large dependency lists on column 80 (with \), and
     19101    # we should not choose a depcomp mode which is confused by this.
     19102    #
     19103    # We need to recreate these files for each test, as the compiler may
     19104    # overwrite some of them when testing with obscure command lines.
     19105    # This happens at least with the AIX C compiler.
     19106    : > sub/conftest.c
     19107    for i in 1 2 3 4 5 6; do
     19108      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     19109      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     19110      # Solaris 8's {/usr,}/bin/sh.
     19111      touch sub/conftst$i.h
     19112    done
     19113    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     19114
     19115    case $depmode in
     19116    nosideeffect)
     19117      # after this tag, mechanisms are not by side-effect, so they'll
     19118      # only be used when explicitly requested
     19119      if test "x$enable_dependency_tracking" = xyes; then
     19120        continue
     19121      else
     19122        break
     19123      fi
     19124      ;;
     19125    none) break ;;
     19126    esac
     19127    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     19128    # mode.  It turns out that the SunPro C++ compiler does not properly
     19129    # handle `-M -o', and we need to detect this.
     19130    if depmode=$depmode \
     19131       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     19132       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     19133       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     19134         >/dev/null 2>conftest.err &&
     19135       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     19136       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     19137       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     19138      # icc doesn't choke on unknown options, it will just issue warnings
     19139      # or remarks (even with -Werror).  So we grep stderr for any message
     19140      # that says an option was ignored or not supported.
     19141      # When given -MP, icc 7.0 and 7.1 complain thusly:
     19142      #   icc: Command line warning: ignoring option '-M'; no argument required
     19143      # The diagnosis changed in icc 8.0:
     19144      #   icc: Command line remark: option '-MP' not supported
     19145      if (grep 'ignoring option' conftest.err ||
     19146          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     19147        am_cv_CC_dependencies_compiler_type=$depmode
     19148        break
     19149      fi
     19150    fi
     19151  done
     19152
     19153  cd ..
     19154  rm -rf conftest.dir
     19155else
     19156  am_cv_CC_dependencies_compiler_type=none
     19157fi
     19158
     19159fi
     19160echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
     19161echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     19162CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
     19163
     19164
     19165
     19166if
     19167  test "x$enable_dependency_tracking" != xno \
     19168  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     19169  am__fastdepCC_TRUE=
     19170  am__fastdepCC_FALSE='#'
     19171else
     19172  am__fastdepCC_TRUE='#'
     19173  am__fastdepCC_FALSE=
     19174fi
    1901219175
    1901319176
     
    1967319836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1967419837  (exit $ac_status); } &&
    19675          { ac_try='test -z "$ac_cxx_werror_flag"
     19838         { ac_try='test -z "$ac_c_werror_flag"
    1967619839                         || test ! -s conftest.err'
    1967719840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     
    1975019913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1975119914  (exit $ac_status); } &&
    19752          { ac_try='test -z "$ac_cxx_werror_flag"
     19915         { ac_try='test -z "$ac_c_werror_flag"
    1975319916                         || test ! -s conftest.err'
    1975419917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     
    1980519968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1980619969  (exit $ac_status); } &&
    19807          { ac_try='test -z "$ac_cxx_werror_flag"
     19970         { ac_try='test -z "$ac_c_werror_flag"
    1980819971                         || test ! -s conftest.err'
    1980919972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     
    1988220045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1988320046  (exit $ac_status); } &&
    19884          { ac_try='test -z "$ac_cxx_werror_flag"
     20047         { ac_try='test -z "$ac_c_werror_flag"
    1988520048                         || test ! -s conftest.err'
    1988620049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     
    2005420217   { (exit 1); exit 1; }; }
    2005520218fi
     20219if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
     20220  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
     20221Usually this means the macro was only invoked conditionally." >&5
     20222echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
     20223Usually this means the macro was only invoked conditionally." >&2;}
     20224   { (exit 1); exit 1; }; }
     20225fi
    2005620226if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
    2005720227  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
     
    2007920249Usually this means the macro was only invoked conditionally." >&5
    2008020250echo "$as_me: error: conditional \"MAINTAINER_SMALL\" was never defined.
    20081 Usually this means the macro was only invoked conditionally." >&2;}
    20082    { (exit 1); exit 1; }; }
    20083 fi
    20084 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
    20085   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
    20086 Usually this means the macro was only invoked conditionally." >&5
    20087 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
    2008820251Usually this means the macro was only invoked conditionally." >&2;}
    2008920252   { (exit 1); exit 1; }; }
     
    2064720810s,@COIN_DEBUG_TRUE@,$COIN_DEBUG_TRUE,;t t
    2064820811s,@COIN_DEBUG_FALSE@,$COIN_DEBUG_FALSE,;t t
     20812s,@CDEFS@,$CDEFS,;t t
     20813s,@CC@,$CC,;t t
     20814s,@CFLAGS@,$CFLAGS,;t t
     20815s,@LDFLAGS@,$LDFLAGS,;t t
     20816s,@CPPFLAGS@,$CPPFLAGS,;t t
     20817s,@ac_ct_CC@,$ac_ct_CC,;t t
     20818s,@EXEEXT@,$EXEEXT,;t t
     20819s,@OBJEXT@,$OBJEXT,;t t
    2064920820s,@CXXDEFS@,$CXXDEFS,;t t
    2065020821s,@CXX@,$CXX,;t t
    2065120822s,@CXXFLAGS@,$CXXFLAGS,;t t
    20652 s,@LDFLAGS@,$LDFLAGS,;t t
    20653 s,@CPPFLAGS@,$CPPFLAGS,;t t
    2065420823s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    20655 s,@EXEEXT@,$EXEEXT,;t t
    20656 s,@OBJEXT@,$OBJEXT,;t t
    2065720824s,@EGREP@,$EGREP,;t t
    2065820825s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     
    2068420851s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
    2068520852s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
     20853s,@CCDEPMODE@,$CCDEPMODE,;t t
     20854s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
     20855s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
    2068620856s,@CXXDEPMODE@,$CXXDEPMODE,;t t
    2068720857s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
     
    2069920869s,@MAINTAINER_SMALL_TRUE@,$MAINTAINER_SMALL_TRUE,;t t
    2070020870s,@MAINTAINER_SMALL_FALSE@,$MAINTAINER_SMALL_FALSE,;t t
    20701 s,@CC@,$CC,;t t
    20702 s,@CFLAGS@,$CFLAGS,;t t
    20703 s,@ac_ct_CC@,$ac_ct_CC,;t t
    20704 s,@CCDEPMODE@,$CCDEPMODE,;t t
    20705 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
    20706 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
    2070720871s,@host@,$host,;t t
    2070820872s,@host_cpu@,$host_cpu,;t t
  • trunk/Clp/configure.ac

    r764 r774  
    4949AC_COIN_DEBUG_COMPILE
    5050
    51 # This package is written in C++
    52 AC_LANG(C++)
    53 
    5451# Get the name of the C++ compiler and appropriate compiler options
    5552AC_COIN_PROG_CXX
  • trunk/Clp/src/Makefile.in

    r773 r774  
    132132CC = @CC@
    133133CCDEPMODE = @CCDEPMODE@
     134CDEFS = @CDEFS@
    134135CFLAGS = @CFLAGS@
    135136CLPOBJDIR = @CLPOBJDIR@
  • trunk/Clp/test/Makefile.in

    r771 r774  
    7171CC = @CC@
    7272CCDEPMODE = @CCDEPMODE@
     73CDEFS = @CDEFS@
    7374CFLAGS = @CFLAGS@
    7475CLPOBJDIR = @CLPOBJDIR@
Note: See TracChangeset for help on using the changeset viewer.