Changeset 527


Ignore:
Timestamp:
Feb 1, 2007 4:24:46 PM (12 years ago)
Author:
andreasw
Message:

reran autotools with latest coin.m4 in stable; replaced make by $(MAKE); generate libtool in base directory

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/Makefile.am

    r344 r527  
    9191
    9292test: all
    93         cd test; make test
     93        cd test; $(MAKE) test
    9494
    9595unitTest: test
    9696
    9797clean-local:
    98         if test -r test/Makefile; then cd test; make clean; fi
     98        if test -r test/Makefile; then cd test; $(MAKE) clean; fi
    9999
    100100distclean-local:
    101         if test -r test/Makefile; then cd test; make distclean; fi
     101        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    102102
    103103.PHONY: test unitTest
  • trunk/Cbc/Makefile.in

    r405 r527  
    249249abs_lib_dir = @abs_lib_dir@
    250250abs_source_dir = @abs_source_dir@
     251ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
    251252ac_ct_AR = @ac_ct_AR@
    252253ac_ct_CC = @ac_ct_CC@
     
    255256ac_ct_RANLIB = @ac_ct_RANLIB@
    256257ac_ct_STRIP = @ac_ct_STRIP@
     258ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
    257259am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    258260am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    788790
    789791test: all
    790         cd test; make test
     792        cd test; $(MAKE) test
    791793
    792794unitTest: test
    793795
    794796clean-local:
    795         if test -r test/Makefile; then cd test; make clean; fi
     797        if test -r test/Makefile; then cd test; $(MAKE) clean; fi
    796798
    797799distclean-local:
    798         if test -r test/Makefile; then cd test; make distclean; fi
     800        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    799801
    800802.PHONY: test unitTest
  • trunk/Cbc/configure

    r470 r527  
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LT_LDFLAGS RPATH_FLAGS CBCSRCDIR CBCOBJDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE SYMSRCDIR SYMOBJDIR COIN_HAS_SYM_TRUE COIN_HAS_SYM_FALSE VOLSRCDIR VOLOBJDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS CBCSRCDIR CBCOBJDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE SYMSRCDIR SYMOBJDIR COIN_HAS_SYM_TRUE COIN_HAS_SYM_FALSE VOLSRCDIR VOLOBJDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    10781078  --enable-debug-cbc compile this project (Cbc) with debug options
    10791079  --enable-doscompile     Under Cygwin, compile so that executables run under
    1080                           DOS (default: disabled)
     1080                          DOS. Set to mingw to use gcc/g++/ld with
     1081                          -mno-cygwin. Set to msvc to use cl/link. Default
     1082                          when mentioned: mingw. Default when not mentioned:
     1083                          disabled.
    10811084  --enable-static[=PKGS]
    10821085                          build static libraries [default=no]
     
    17081711# retrieved by svn if they are not there yet.
    17091712# Initialize the ADDLIBS variable
    1710 ADDLIBS='-lm'
     1713ADDLIBS="-lm $LIBS"
    17111714
    17121715
    17131716# Initialize the FADDLIBS variable (which is to be used with a fortran
    17141717# compiler and will not include FLIBS)
    1715 FADDLIBS=
     1718FADDLIBS="$LIBS"
    17161719
    17171720
     
    18281831    fi
    18291832    ;;
    1830 esac
    1831 
    1832 # Check whether --enable-doscompile or --disable-doscompile was given.
     1833 esac
     1834 case $enable_doscompile in
     1835   msvc)
     1836     if test "x${LD+set}" = xset; then :; else
     1837       LD=link
     1838     fi
     1839     ;;
     1840 esac
     1841
     1842
     1843 # Check whether --enable-doscompile or --disable-doscompile was given.
    18331844if test "${enable_doscompile+set}" = set; then
    18341845  enableval="$enable_doscompile"
    1835   if test "$enable_doscompile = yes"; then
    1836   case $build in
    1837     *-cygwin*) ;;
    1838     *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
    1839 echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
     1846  if test "$enable_doscompile" != no; then
     1847     case $build in
     1848       *-cygwin*) ;;
     1849       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
     1850echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
    18401851   { (exit 1); exit 1; }; } ;;
    1841   esac
    1842 fi
     1852     esac
     1853   fi
    18431854else
    18441855  enable_doscompile=no
    18451856fi;
     1857 case "$enable_doscompile" in
     1858   msvc|mingw|no) ;;
     1859   yes) enable_doscompile=mingw ;;
     1860   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
     1861                    Try configure --help=recursive." >&5
     1862echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
     1863                    Try configure --help=recursive." >&2;}
     1864   { (exit 1); exit 1; }; }
     1865      ;;
     1866  esac
     1867  if test "$enable_doscompile" != no ; then
     1868    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
     1869echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
     1870  fi
    18461871
    18471872
     
    18591884if test x"$CXX" != x; then
    18601885  case "$CXX" in
    1861     cl*)
     1886    cl* | */cl* | CL* | */CL*)
    18621887      if test x"$CC" = x; then
    18631888        CC="$CXX"
     
    18771902
    18781903save_cflags="$CFLAGS"
     1904# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
     1905# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
     1906# is likely to be a non-functional shell. But many installations will have
     1907# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
    18791908case $build in
    18801909  *-cygwin* | *-mingw*)
    1881              comps="gcc cl" ;;
     1910             if test "$enable_doscompile" = msvc ; then
     1911               comps="cl"
     1912             else
     1913               comps="gcc cl"
     1914             fi ;;
     1915  sparc-sun-solaris*)
     1916             comps="cc xlc gcc pgcc icc" ;;
    18821917  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    18831918  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     
    18851920
    18861921# We delete the cached value, since the test might not have been
    1887 # performed with out choise of compilers earlier
     1922# performed with our choice of compilers earlier
    18881923$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     1924# AC_MSG_NOTICE([C compiler candidates: $comps])
    18891925ac_ext=c
    18901926ac_cpp='$CPP $CPPFLAGS'
     
    26002636ac_compiler_gnu=$ac_cv_c_compiler_gnu
    26012637
     2638if test -z "$CC" ; then
     2639  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
     2640echo "$as_me: error: Failed to find a C compiler!" >&2;}
     2641   { (exit 1); exit 1; }; }
     2642fi
     2643# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     2644case "$CC" in
     2645  cl* | */cl* | CL* | */CL* )
     2646    if test "$ac_cv_prog_cc_g" = yes ; then
     2647      ac_cv_prog_cc_g=no
     2648      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     2649echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     2650    fi ;;
     2651esac
    26022652CFLAGS="$save_cflags"
    26032653
     
    26262676        coin_dbg_cflags="-g"
    26272677        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
    2628         if test "$enable_doscompile" = yes; then
    2629           case $build in
    2630             *-cygwin*)
    2631               CFLAGS="-mno-cygwin"
    2632               cat >conftest.$ac_ext <<_ACEOF
     2678        case $enable_doscompile in
     2679          mingw)
     2680            CFLAGS="-mno-cygwin"
     2681            cat >conftest.$ac_ext <<_ACEOF
    26332682/* confdefs.h.  */
    26342683_ACEOF
     
    26752724rm -f conftest.err conftest.$ac_objext \
    26762725      conftest$ac_exeext conftest.$ac_ext
    2677               CFLAGS=
    2678             ;;
    2679           esac
    2680         fi
     2726            CFLAGS=
     2727          ;;
     2728        esac
    26812729    esac
    26822730  fi
     
    26852733      *-cygwin* | *-mingw*)
    26862734        case "$CC" in
    2687           cl* | */cl*)
    2688             coin_opt_cflags='-O2'
    2689             coin_add_cflags='-nologo'
    2690             coin_dbg_cflags='-Yd'
     2735          cl* | */cl* | CL* | */CL*)
     2736            coin_opt_cflags='-MT -O2'
     2737            coin_add_cflags='-nologo -wd4996'
     2738            coin_dbg_cflags='-MTd'
    26912739            ;;
    26922740        esac
     
    28332881  fi
    28342882
     2883  # if PM doesn't want the warning messages, take them out
     2884  if test x"$coin_skip_warn_cflags" = xyes; then
     2885    coin_warn_cflags=
     2886  fi
     2887
    28352888  if test x${DBG_CFLAGS+set} != xset; then
    28362889    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
     
    28582911fi
    28592912
    2860 # Check if user wants to have additional CFLAGS options
    2861 
    2862 if test x"$ADD_CFLAGS" != x; then
    2863   CFLAGS="$CFLAGS $ADD_CFLAGS"
    2864 fi
     2913# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     2914
     2915case "$CFLAGS" in
     2916  *-mno-cygwin*)
     2917    if test x${CPPFLAGS+set} != xset ; then
     2918      CPPFLAGS="-mno-cygwin"
     2919    else
     2920      case "$CPPFLAGS" in
     2921        *-mno-cygwin*)
     2922          ;;
     2923        *)
     2924          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     2925          ;;
     2926      esac
     2927    fi ;;
     2928esac
    28652929
    28662930# Try if CFLAGS works
     
    29803044# Correct ADDLIBS initialization if we are using the MS compiler
    29813045case "$CC" in
    2982   cl*)
     3046  cl* | */cl* | CL* | */CL*)
    29833047    ADDLIBS=
    29843048    case $build in
     
    29883052    fi
    29893053    ;;
    2990 esac
     3054 esac
     3055 case $enable_doscompile in
     3056   msvc)
     3057     if test "x${LD+set}" = xset; then :; else
     3058       LD=link
     3059     fi
     3060     ;;
     3061 esac
    29913062
    29923063    ;;
     
    30183089
    30193090save_cxxflags="$CXXFLAGS"
     3091# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
    30203092case $build in
    30213093  *-cygwin* | *-mingw*)
    3022              comps="g++ cl" ;;
     3094             if test "$enable_doscompile" = msvc ; then
     3095               comps="cl"
     3096             else
     3097               comps="g++ cl"
     3098             fi ;;
     3099  sparc-sun-solaris*)
     3100             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
    30233101  *-darwin*) comps="g++ c++ CC" ;;
    30243102          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
     
    30263104
    30273105# We delete the cached value, since the test might not have been
    3028 # performed with out choise of compilers earlier
     3106# performed with our choice of compilers earlier
    30293107$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
     3108# AC_MSG_NOTICE([C++ compiler candidates: $comps])
    30303109ac_ext=cc
    30313110ac_cpp='$CXXCPP $CPPFLAGS'
     
    33833462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    33843463
     3464if test -z "$CXX" ; then
     3465  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
     3466echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
     3467   { (exit 1); exit 1; }; }
     3468fi
     3469
     3470# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     3471case "$CXX" in
     3472  cl* | */cl* | CL* | */CL* )
     3473    if test "$ac_cv_prog_cxx_g" = yes ; then
     3474      ac_cv_prog_cxx_g=no
     3475      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     3476echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     3477    fi ;;
     3478esac
    33853479CXXFLAGS="$save_cxxflags"
    33863480
     
    34113505        coin_dbg_cxxflags="-g"
    34123506        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
    3413         if test "$enable_doscompile" = yes; then
    3414           case $build in
    3415             *-cygwin*)
    3416               CXXFLAGS="-mno-cygwin"
    3417               cat >conftest.$ac_ext <<_ACEOF
     3507        case $enable_doscompile in
     3508          mingw)
     3509            CXXFLAGS="-mno-cygwin"
     3510            cat >conftest.$ac_ext <<_ACEOF
    34183511/* confdefs.h.  */
    34193512_ACEOF
     
    34603553rm -f conftest.err conftest.$ac_objext \
    34613554      conftest$ac_exeext conftest.$ac_ext
    3462               CXXFLAGS=
    3463               ;;
    3464           esac
    3465         fi
     3555            CXXFLAGS=
     3556            ;;
     3557        esac
    34663558    esac
    34673559  fi
     3560
     3561# Note that we do not need to cover GCC in the following tests.
     3562
    34683563  if test -z "$coin_opt_cxxflags"; then
    34693564    case $build in
    34703565      *-cygwin* | *-mingw*)
    34713566        case "$CXX" in
    3472           cl* | */cl*)
    3473             coin_opt_cxxflags='-O2'
    3474             coin_add_cxxflags='-nologo -EHsc -GR -MT'
    3475             coin_dbg_cxxflags='-Yd'
     3567          cl* | */cl* | CL* | */CL*)
     3568            # The MT and MTd options are mutually exclusive
     3569            coin_opt_cxxflags='-MT -O2'
     3570            coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
     3571            coin_dbg_cxxflags='-MTd'
    34763572            ;;
    34773573        esac
     
    35643660  fi
    35653661
     3662# Generic flag settings. If these don't work, add a case above.
     3663
    35663664  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
    35673665    coin_dbg_cxxflags="-g"
     
    36183716  fi
    36193717
     3718  # if PM doesn't want the warning messages, take them out
     3719  if test x"$coin_skip_warn_cxxflags" = xyes; then
     3720    coin_warn_cxxflags=
     3721  fi
     3722
     3723# Do final setup of flags based on values determined above.
     3724
    36203725  if test x${DBG_CXXFLAGS+set} != xset; then
    36213726    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
     
    36333738    CXXFLAGS="$OPT_CXXFLAGS"
    36343739  fi
     3740
     3741# Handle the case where CXXFLAGS was set externally.
    36353742else
    36363743  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     
    36423749  fi
    36433750fi
     3751
     3752# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     3753
     3754case "$CXXFLAGS" in
     3755  *-mno-cygwin*)
     3756    if test x${CPPFLAGS+set} != xset ; then
     3757      CPPFLAGS="-mno-cygwin"
     3758    else
     3759      case "$CPPFLAGS" in
     3760        *-mno-cygwin*)
     3761          ;;
     3762        *)
     3763          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     3764          ;;
     3765      esac
     3766    fi ;;
     3767esac
    36443768
    36453769# Try if CXXFLAGS works
     
    37583882
    37593883case "$CXX" in
    3760   cl*)
     3884  cl* | */cl* | CL* | */CL* )
    37613885    case $build in
    37623886  *-mingw*)
     
    37653889    fi
    37663890    ;;
    3767 esac
     3891 esac
     3892 case $enable_doscompile in
     3893   msvc)
     3894     if test "x${LD+set}" = xset; then :; else
     3895       LD=link
     3896     fi
     3897     ;;
     3898 esac
    37683899
    37693900    ;;
     
    37793910
    37803911# Initialize automake and libtool
     3912{
     3913
     3914
     3915
     3916# START
    37813917
    37823918# On Cygwin, building DLLs doesn't work
     
    38313967
    38323968
     3969
     3970# Initialize automake
    38333971echo "$as_me:$LINENO: checking for egrep" >&5
    38343972echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     
    41734311
    41744312
    4175 ac_ext=c
    4176 ac_cpp='$CPP $CPPFLAGS'
    4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4180 
    4181 if test x"" = x; then
    4182   hdr="#include <dlfcn.h>"
    4183 else
    4184   hdr=""
    4185 fi
    4186 
    4187 for ac_header in dlfcn.h
     4313
     4314
     4315# AC_MSG_NOTICE([Beginning automake initialisation.])
     4316# Stuff for automake
     4317# test to see if srcdir already configured
     4318if test "`cd $srcdir && pwd`" != "`pwd`" &&
     4319   test -f $srcdir/config.status; then
     4320  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
     4321echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
     4322   { (exit 1); exit 1; }; }
     4323fi
     4324
     4325# test whether we have cygpath
     4326if test -z "$CYGPATH_W"; then
     4327  if (cygpath --version) >/dev/null 2>/dev/null; then
     4328    CYGPATH_W='cygpath -w'
     4329  else
     4330    CYGPATH_W=echo
     4331  fi
     4332fi
     4333
     4334
     4335# Define the identity of the package.
     4336 PACKAGE='cbc'
     4337 VERSION='0.1'
     4338
     4339
     4340cat >>confdefs.h <<_ACEOF
     4341#define PACKAGE "$PACKAGE"
     4342_ACEOF
     4343
     4344
     4345cat >>confdefs.h <<_ACEOF
     4346#define VERSION "$VERSION"
     4347_ACEOF
     4348
     4349# Some tools Automake needs.
     4350
     4351ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
     4352
     4353
     4354AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
     4355
     4356
     4357AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
     4358
     4359
     4360AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
     4361
     4362
     4363MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
     4364
     4365install_sh=${install_sh-"$am_aux_dir/install-sh"}
     4366
     4367# Installed binaries are usually stripped using `strip' when the user
     4368# run `make install-strip'.  However `strip' might not be the right
     4369# tool to use in cross-compilation environments, therefore Automake
     4370# will honor the `STRIP' environment variable to overrule this program.
     4371if test "$cross_compiling" != no; then
     4372  if test -n "$ac_tool_prefix"; then
     4373  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
     4374set dummy ${ac_tool_prefix}strip; ac_word=$2
     4375echo "$as_me:$LINENO: checking for $ac_word" >&5
     4376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4377if test "${ac_cv_prog_STRIP+set}" = set; then
     4378  echo $ECHO_N "(cached) $ECHO_C" >&6
     4379else
     4380  if test -n "$STRIP"; then
     4381  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
     4382else
     4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4384for as_dir in $PATH
    41884385do
    4189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4190 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4386  IFS=$as_save_IFS
     4387  test -z "$as_dir" && as_dir=.
     4388  for ac_exec_ext in '' $ac_executable_extensions; do
     4389  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4390    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
     4391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4392    break 2
     4393  fi
     4394done
     4395done
     4396
     4397fi
     4398fi
     4399STRIP=$ac_cv_prog_STRIP
     4400if test -n "$STRIP"; then
     4401  echo "$as_me:$LINENO: result: $STRIP" >&5
     4402echo "${ECHO_T}$STRIP" >&6
     4403else
     4404  echo "$as_me:$LINENO: result: no" >&5
     4405echo "${ECHO_T}no" >&6
     4406fi
     4407
     4408fi
     4409if test -z "$ac_cv_prog_STRIP"; then
     4410  ac_ct_STRIP=$STRIP
     4411  # Extract the first word of "strip", so it can be a program name with args.
     4412set dummy strip; ac_word=$2
     4413echo "$as_me:$LINENO: checking for $ac_word" >&5
     4414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4415if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
    41934416  echo $ECHO_N "(cached) $ECHO_C" >&6
    41944417else
    4195   cat >conftest.$ac_ext <<_ACEOF
    4196 /* confdefs.h.  */
    4197 _ACEOF
    4198 cat confdefs.h >>conftest.$ac_ext
    4199 cat >>conftest.$ac_ext <<_ACEOF
    4200 /* end confdefs.h.  */
    4201 $hdr
    4202 
    4203 #include <$ac_header>
    4204 _ACEOF
    4205 rm -f conftest.$ac_objext
    4206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4207   (eval $ac_compile) 2>conftest.er1
    4208   ac_status=$?
    4209   grep -v '^ *+' conftest.er1 >conftest.err
    4210   rm -f conftest.er1
    4211   cat conftest.err >&5
    4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4213   (exit $ac_status); } &&
    4214          { ac_try='test -z "$ac_c_werror_flag"
    4215                          || test ! -s conftest.err'
    4216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4217   (eval $ac_try) 2>&5
    4218   ac_status=$?
    4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4220   (exit $ac_status); }; } &&
    4221          { ac_try='test -s conftest.$ac_objext'
    4222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4223   (eval $ac_try) 2>&5
    4224   ac_status=$?
    4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4226   (exit $ac_status); }; }; then
    4227   eval "$as_ac_Header=yes"
    4228 else
    4229   echo "$as_me: failed program was:" >&5
    4230 sed 's/^/| /' conftest.$ac_ext >&5
    4231 
    4232 eval "$as_ac_Header=no"
    4233 fi
    4234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4235 fi
    4236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4239   cat >>confdefs.h <<_ACEOF
    4240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4241 _ACEOF
    4242 
    4243 fi
    4244 
     4418  if test -n "$ac_ct_STRIP"; then
     4419  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
     4420else
     4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4422for as_dir in $PATH
     4423do
     4424  IFS=$as_save_IFS
     4425  test -z "$as_dir" && as_dir=.
     4426  for ac_exec_ext in '' $ac_executable_extensions; do
     4427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4428    ac_cv_prog_ac_ct_STRIP="strip"
     4429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4430    break 2
     4431  fi
    42454432done
    4246 
    4247 
    4248 ac_ext=c
    4249 ac_cpp='$CPP $CPPFLAGS'
    4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4253 
    4254 
    4255 # Check whether --enable-shared or --disable-shared was given.
     4433done
     4434
     4435  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
     4436fi
     4437fi
     4438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
     4439if test -n "$ac_ct_STRIP"; then
     4440  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
     4441echo "${ECHO_T}$ac_ct_STRIP" >&6
     4442else
     4443  echo "$as_me:$LINENO: result: no" >&5
     4444echo "${ECHO_T}no" >&6
     4445fi
     4446
     4447  STRIP=$ac_ct_STRIP
     4448else
     4449  STRIP="$ac_cv_prog_STRIP"
     4450fi
     4451
     4452fi
     4453INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
     4454
     4455# We need awk for the "check" target.  The system "awk" is bad on
     4456# some platforms.
     4457# Always define AMTAR for backward compatibility.
     4458
     4459AMTAR=${AMTAR-"${am_missing_run}tar"}
     4460
     4461am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
     4462
     4463
     4464
     4465
     4466depcc="$CC"   am_compiler_list=
     4467
     4468echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     4469echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     4470if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     4471  echo $ECHO_N "(cached) $ECHO_C" >&6
     4472else
     4473  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     4474  # We make a subdir and do the tests there.  Otherwise we can end up
     4475  # making bogus files that we don't know about and never remove.  For
     4476  # instance it was reported that on HP-UX the gcc test will end up
     4477  # making a dummy file named `D' -- because `-MD' means `put the output
     4478  # in D'.
     4479  mkdir conftest.dir
     4480  # Copy depcomp to subdir because otherwise we won't find it if we're
     4481  # using a relative directory.
     4482  cp "$am_depcomp" conftest.dir
     4483  cd conftest.dir
     4484  # We will build objects and dependencies in a subdirectory because
     4485  # it helps to detect inapplicable dependency modes.  For instance
     4486  # both Tru64's cc and ICC support -MD to output dependencies as a
     4487  # side effect of compilation, but ICC will put the dependencies in
     4488  # the current directory while Tru64 will put them in the object
     4489  # directory.
     4490  mkdir sub
     4491
     4492  am_cv_CC_dependencies_compiler_type=none
     4493  if test "$am_compiler_list" = ""; then
     4494     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     4495  fi
     4496  for depmode in $am_compiler_list; do
     4497    # Setup a source with many dependencies, because some compilers
     4498    # like to wrap large dependency lists on column 80 (with \), and
     4499    # we should not choose a depcomp mode which is confused by this.
     4500    #
     4501    # We need to recreate these files for each test, as the compiler may
     4502    # overwrite some of them when testing with obscure command lines.
     4503    # This happens at least with the AIX C compiler.
     4504    : > sub/conftest.c
     4505    for i in 1 2 3 4 5 6; do
     4506      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     4507      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     4508      # Solaris 8's {/usr,}/bin/sh.
     4509      touch sub/conftst$i.h
     4510    done
     4511    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     4512
     4513    case $depmode in
     4514    nosideeffect)
     4515      # after this tag, mechanisms are not by side-effect, so they'll
     4516      # only be used when explicitly requested
     4517      if test "x$enable_dependency_tracking" = xyes; then
     4518        continue
     4519      else
     4520        break
     4521      fi
     4522      ;;
     4523    none) break ;;
     4524    esac
     4525    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     4526    # mode.  It turns out that the SunPro C++ compiler does not properly
     4527    # handle `-M -o', and we need to detect this.
     4528    if depmode=$depmode \
     4529       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     4530       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     4531       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     4532         >/dev/null 2>conftest.err &&
     4533       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     4534       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     4535       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     4536      # icc doesn't choke on unknown options, it will just issue warnings
     4537      # or remarks (even with -Werror).  So we grep stderr for any message
     4538      # that says an option was ignored or not supported.
     4539      # When given -MP, icc 7.0 and 7.1 complain thusly:
     4540      #   icc: Command line warning: ignoring option '-M'; no argument required
     4541      # The diagnosis changed in icc 8.0:
     4542      #   icc: Command line remark: option '-MP' not supported
     4543      if (grep 'ignoring option' conftest.err ||
     4544          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     4545        am_cv_CC_dependencies_compiler_type=$depmode
     4546        break
     4547      fi
     4548    fi
     4549  done
     4550
     4551  cd ..
     4552  rm -rf conftest.dir
     4553else
     4554  am_cv_CC_dependencies_compiler_type=none
     4555fi
     4556
     4557fi
     4558echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
     4559echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     4560CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
     4561
     4562
     4563
     4564if
     4565  test "x$enable_dependency_tracking" != xno \
     4566  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     4567  am__fastdepCC_TRUE=
     4568  am__fastdepCC_FALSE='#'
     4569else
     4570  am__fastdepCC_TRUE='#'
     4571  am__fastdepCC_FALSE=
     4572fi
     4573
     4574
     4575depcc="$CXX"  am_compiler_list=
     4576
     4577echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     4578echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     4579if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
     4580  echo $ECHO_N "(cached) $ECHO_C" >&6
     4581else
     4582  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     4583  # We make a subdir and do the tests there.  Otherwise we can end up
     4584  # making bogus files that we don't know about and never remove.  For
     4585  # instance it was reported that on HP-UX the gcc test will end up
     4586  # making a dummy file named `D' -- because `-MD' means `put the output
     4587  # in D'.
     4588  mkdir conftest.dir
     4589  # Copy depcomp to subdir because otherwise we won't find it if we're
     4590  # using a relative directory.
     4591  cp "$am_depcomp" conftest.dir
     4592  cd conftest.dir
     4593  # We will build objects and dependencies in a subdirectory because
     4594  # it helps to detect inapplicable dependency modes.  For instance
     4595  # both Tru64's cc and ICC support -MD to output dependencies as a
     4596  # side effect of compilation, but ICC will put the dependencies in
     4597  # the current directory while Tru64 will put them in the object
     4598  # directory.
     4599  mkdir sub
     4600
     4601  am_cv_CXX_dependencies_compiler_type=none
     4602  if test "$am_compiler_list" = ""; then
     4603     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     4604  fi
     4605  for depmode in $am_compiler_list; do
     4606    # Setup a source with many dependencies, because some compilers
     4607    # like to wrap large dependency lists on column 80 (with \), and
     4608    # we should not choose a depcomp mode which is confused by this.
     4609    #
     4610    # We need to recreate these files for each test, as the compiler may
     4611    # overwrite some of them when testing with obscure command lines.
     4612    # This happens at least with the AIX C compiler.
     4613    : > sub/conftest.c
     4614    for i in 1 2 3 4 5 6; do
     4615      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     4616      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     4617      # Solaris 8's {/usr,}/bin/sh.
     4618      touch sub/conftst$i.h
     4619    done
     4620    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     4621
     4622    case $depmode in
     4623    nosideeffect)
     4624      # after this tag, mechanisms are not by side-effect, so they'll
     4625      # only be used when explicitly requested
     4626      if test "x$enable_dependency_tracking" = xyes; then
     4627        continue
     4628      else
     4629        break
     4630      fi
     4631      ;;
     4632    none) break ;;
     4633    esac
     4634    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     4635    # mode.  It turns out that the SunPro C++ compiler does not properly
     4636    # handle `-M -o', and we need to detect this.
     4637    if depmode=$depmode \
     4638       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     4639       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     4640       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     4641         >/dev/null 2>conftest.err &&
     4642       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     4643       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     4644       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     4645      # icc doesn't choke on unknown options, it will just issue warnings
     4646      # or remarks (even with -Werror).  So we grep stderr for any message
     4647      # that says an option was ignored or not supported.
     4648      # When given -MP, icc 7.0 and 7.1 complain thusly:
     4649      #   icc: Command line warning: ignoring option '-M'; no argument required
     4650      # The diagnosis changed in icc 8.0:
     4651      #   icc: Command line remark: option '-MP' not supported
     4652      if (grep 'ignoring option' conftest.err ||
     4653          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     4654        am_cv_CXX_dependencies_compiler_type=$depmode
     4655        break
     4656      fi
     4657    fi
     4658  done
     4659
     4660  cd ..
     4661  rm -rf conftest.dir
     4662else
     4663  am_cv_CXX_dependencies_compiler_type=none
     4664fi
     4665
     4666fi
     4667echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
     4668echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
     4669CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
     4670
     4671
     4672
     4673if
     4674  test "x$enable_dependency_tracking" != xno \
     4675  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
     4676  am__fastdepCXX_TRUE=
     4677  am__fastdepCXX_FALSE='#'
     4678else
     4679  am__fastdepCXX_TRUE='#'
     4680  am__fastdepCXX_FALSE=
     4681fi
     4682
     4683
     4684
     4685echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
     4686echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
     4687    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
     4688if test "${enable_maintainer_mode+set}" = set; then
     4689  enableval="$enable_maintainer_mode"
     4690  USE_MAINTAINER_MODE=$enableval
     4691else
     4692  USE_MAINTAINER_MODE=no
     4693fi;
     4694  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
     4695echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
     4696
     4697
     4698if test $USE_MAINTAINER_MODE = yes; then
     4699  MAINTAINER_MODE_TRUE=
     4700  MAINTAINER_MODE_FALSE='#'
     4701else
     4702  MAINTAINER_MODE_TRUE='#'
     4703  MAINTAINER_MODE_FALSE=
     4704fi
     4705
     4706  MAINT=$MAINTAINER_MODE_TRUE
     4707
     4708
     4709
     4710coin_have_externals=no
     4711if test "$enable_maintainer_mode" = yes; then
     4712
     4713  # If maintainer mode is chosen, we make sure that the correct versions
     4714  # of the tools are used, and that we know where libtool.m4 is (to
     4715  # recreate acinclude.m4)
     4716
     4717
     4718  LIBTOOLM4=
     4719  # Normally, $HOME
     4720  AUTOTOOLS_DFLT=$HOME
     4721
     4722  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
     4723echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
     4724if test "${ac_cv_use_correct_autotools+set}" = set; then
     4725  echo $ECHO_N "(cached) $ECHO_C" >&6
     4726else
     4727  ac_cv_use_correct_autotools=check
     4728fi
     4729echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
     4730echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
     4731
     4732  if test $ac_cv_use_correct_autotools = check; then
     4733    ac_cv_use_correct_autotools=yes
     4734    # Check if we have autoconf
     4735    # Extract the first word of "autoconf", so it can be a program name with args.
     4736set dummy autoconf; ac_word=$2
     4737echo "$as_me:$LINENO: checking for $ac_word" >&5
     4738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4739if test "${ac_cv_prog_have_autoconf+set}" = set; then
     4740  echo $ECHO_N "(cached) $ECHO_C" >&6
     4741else
     4742  if test -n "$have_autoconf"; then
     4743  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
     4744else
     4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4746for as_dir in $PATH
     4747do
     4748  IFS=$as_save_IFS
     4749  test -z "$as_dir" && as_dir=.
     4750  for ac_exec_ext in '' $ac_executable_extensions; do
     4751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4752    ac_cv_prog_have_autoconf="yes"
     4753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4754    break 2
     4755  fi
     4756done
     4757done
     4758
     4759  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
     4760fi
     4761fi
     4762have_autoconf=$ac_cv_prog_have_autoconf
     4763if test -n "$have_autoconf"; then
     4764  echo "$as_me:$LINENO: result: $have_autoconf" >&5
     4765echo "${ECHO_T}$have_autoconf" >&6
     4766else
     4767  echo "$as_me:$LINENO: result: no" >&5
     4768echo "${ECHO_T}no" >&6
     4769fi
     4770
     4771    if test $have_autoconf = no; then
     4772      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
     4773echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
     4774   { (exit 1); exit 1; }; }
     4775    fi
     4776
     4777    # Check whether autoconf is the correct version
     4778    correct_version='2.59'
     4779    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
     4780    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
     4781echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
     4782    autoconf --version > confauto.out 2>&1
     4783    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
     4784      echo "$as_me:$LINENO: result: yes" >&5
     4785echo "${ECHO_T}yes" >&6
     4786    else
     4787      rm -f confauto.out
     4788      echo "$as_me:$LINENO: result: no" >&5
     4789echo "${ECHO_T}no" >&6
     4790      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
     4791echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
     4792   { (exit 1); exit 1; }; }
     4793    fi
     4794    rm -f confauto.out
     4795
     4796    # Check if the executable autoconf is picked up from the correct location
     4797    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
     4798echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
     4799    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
     4800    autoconf_dir=`cd $autoconf_dir; pwd`
     4801    if test x$AUTOTOOLS_DIR = x; then
     4802      want_dir=$AUTOTOOLS_DFLT/bin
     4803    else
     4804      want_dir=$AUTOTOOLS_DIR/bin
     4805    fi
     4806    if test $autoconf_dir = `cd $want_dir; pwd`; then
     4807      echo "$as_me:$LINENO: result: yes" >&5
     4808echo "${ECHO_T}yes" >&6
     4809    else
     4810      rm -f confauto.out
     4811      echo "$as_me:$LINENO: result: no" >&5
     4812echo "${ECHO_T}no" >&6
     4813      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
     4814echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
     4815   { (exit 1); exit 1; }; }
     4816    fi
     4817
     4818    # Check if we have automake
     4819    # Extract the first word of "automake", so it can be a program name with args.
     4820set dummy automake; ac_word=$2
     4821echo "$as_me:$LINENO: checking for $ac_word" >&5
     4822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4823if test "${ac_cv_prog_have_automake+set}" = set; then
     4824  echo $ECHO_N "(cached) $ECHO_C" >&6
     4825else
     4826  if test -n "$have_automake"; then
     4827  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
     4828else
     4829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4830for as_dir in $PATH
     4831do
     4832  IFS=$as_save_IFS
     4833  test -z "$as_dir" && as_dir=.
     4834  for ac_exec_ext in '' $ac_executable_extensions; do
     4835  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4836    ac_cv_prog_have_automake="yes"
     4837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4838    break 2
     4839  fi
     4840done
     4841done
     4842
     4843  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
     4844fi
     4845fi
     4846have_automake=$ac_cv_prog_have_automake
     4847if test -n "$have_automake"; then
     4848  echo "$as_me:$LINENO: result: $have_automake" >&5
     4849echo "${ECHO_T}$have_automake" >&6
     4850else
     4851  echo "$as_me:$LINENO: result: no" >&5
     4852echo "${ECHO_T}no" >&6
     4853fi
     4854
     4855    if test $have_automake = no; then
     4856      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
     4857echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
     4858   { (exit 1); exit 1; }; }
     4859    fi
     4860
     4861    # Check whether automake is the correct version
     4862    correct_version='1.9.6'
     4863    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
     4864    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
     4865echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
     4866    automake --version > confauto.out 2>&1
     4867    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
     4868      echo "$as_me:$LINENO: result: yes" >&5
     4869echo "${ECHO_T}yes" >&6
     4870    else
     4871      rm -f confauto.out
     4872      echo "$as_me:$LINENO: result: no" >&5
     4873echo "${ECHO_T}no" >&6
     4874      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
     4875echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
     4876   { (exit 1); exit 1; }; }
     4877    fi
     4878    rm -f confauto.out
     4879
     4880    # Check if the executable automake is picked up from the correct location
     4881    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
     4882echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
     4883    automake_dir=`which automake | sed -e 's=/automake=='`
     4884    automake_dir=`cd $automake_dir; pwd`
     4885    if test x$AUTOTOOLS_DIR = x; then
     4886      want_dir=$AUTOTOOLS_DFLT/bin
     4887    else
     4888      want_dir=$AUTOTOOLS_DIR/bin
     4889    fi
     4890    if test $automake_dir = `cd $want_dir; pwd`; then
     4891      echo "$as_me:$LINENO: result: yes" >&5
     4892echo "${ECHO_T}yes" >&6
     4893    else
     4894      rm -f confauto.out
     4895      echo "$as_me:$LINENO: result: no" >&5
     4896echo "${ECHO_T}no" >&6
     4897      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
     4898echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
     4899   { (exit 1); exit 1; }; }
     4900    fi
     4901
     4902    # Check if this is the correct version of libtool (with escaped dots)
     4903    if test x$AUTOTOOLS_DIR = x; then
     4904      want_dir=$AUTOTOOLS_DFLT/share
     4905    else
     4906      want_dir=$AUTOTOOLS_DIR/share
     4907    fi
     4908    correct_version='1.5.22'
     4909    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
     4910    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
     4911echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
     4912echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
     4913if eval "test \"\${$as_ac_File+set}\" = set"; then
     4914  echo $ECHO_N "(cached) $ECHO_C" >&6
     4915else
     4916  test "$cross_compiling" = yes &&
     4917  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     4918echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     4919   { (exit 1); exit 1; }; }
     4920if test -r "$want_dir/libtool/ltmain.sh"; then
     4921  eval "$as_ac_File=yes"
     4922else
     4923  eval "$as_ac_File=no"
     4924fi
     4925fi
     4926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
     4927echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
     4928if test `eval echo '${'$as_ac_File'}'` = yes; then
     4929  have_ltmain=yes
     4930else
     4931  have_ltmain=no
     4932fi
     4933
     4934    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
     4935echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
     4936    if test $have_ltmain = yes; then
     4937    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
     4938        echo "$as_me:$LINENO: result: yes" >&5
     4939echo "${ECHO_T}yes" >&6
     4940      else
     4941        echo "$as_me:$LINENO: result: no" >&5
     4942echo "${ECHO_T}no" >&6
     4943        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
     4944echo "$as_me: error: You don't have the correct version of libtool." >&2;}
     4945   { (exit 1); exit 1; }; }
     4946      fi
     4947    else
     4948      echo "$as_me:$LINENO: result: no" >&5
     4949echo "${ECHO_T}no" >&6
     4950      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
     4951echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
     4952   { (exit 1); exit 1; }; }
     4953    fi
     4954  fi
     4955
     4956  # Check if we can find the libtool file
     4957  if test x$AUTOTOOLS_DIR = x; then
     4958    want_dir=$AUTOTOOLS_DFLT/share
     4959  else
     4960    want_dir=$AUTOTOOLS_DIR/share
     4961  fi
     4962  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
     4963echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
     4964echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
     4965if eval "test \"\${$as_ac_File+set}\" = set"; then
     4966  echo $ECHO_N "(cached) $ECHO_C" >&6
     4967else
     4968  test "$cross_compiling" = yes &&
     4969  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     4970echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     4971   { (exit 1); exit 1; }; }
     4972if test -r "$want_dir/aclocal/libtool.m4"; then
     4973  eval "$as_ac_File=yes"
     4974else
     4975  eval "$as_ac_File=no"
     4976fi
     4977fi
     4978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
     4979echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
     4980if test `eval echo '${'$as_ac_File'}'` = yes; then
     4981  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
     4982else
     4983  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
     4984echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
     4985   { (exit 1); exit 1; }; }
     4986fi
     4987
     4988
     4989  # Check if we have an Externals file
     4990  if test -r $srcdir/Externals; then
     4991    coin_have_externals=yes
     4992  fi
     4993  # Check if subversion is installed and understands https
     4994  # Extract the first word of "svn", so it can be a program name with args.
     4995set dummy svn; ac_word=$2
     4996echo "$as_me:$LINENO: checking for $ac_word" >&5
     4997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4998if test "${ac_cv_prog_have_svn+set}" = set; then
     4999  echo $ECHO_N "(cached) $ECHO_C" >&6
     5000else
     5001  if test -n "$have_svn"; then
     5002  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
     5003else
     5004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5005for as_dir in $PATH
     5006do
     5007  IFS=$as_save_IFS
     5008  test -z "$as_dir" && as_dir=.
     5009  for ac_exec_ext in '' $ac_executable_extensions; do
     5010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5011    ac_cv_prog_have_svn="yes"
     5012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5013    break 2
     5014  fi
     5015done
     5016done
     5017
     5018  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
     5019fi
     5020fi
     5021have_svn=$ac_cv_prog_have_svn
     5022if test -n "$have_svn"; then
     5023  echo "$as_me:$LINENO: result: $have_svn" >&5
     5024echo "${ECHO_T}$have_svn" >&6
     5025else
     5026  echo "$as_me:$LINENO: result: no" >&5
     5027echo "${ECHO_T}no" >&6
     5028fi
     5029
     5030  if test x$have_svn = xyes; then
     5031    echo "$as_me:$LINENO: checking whether svn understands https" >&5
     5032echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
     5033if test "${ac_cv_svn_understands_https+set}" = set; then
     5034  echo $ECHO_N "(cached) $ECHO_C" >&6
     5035else
     5036  svn --version > confauto.out 2>&1
     5037                    if $EGREP https confauto.out >/dev/null 2>&1; then
     5038                      ac_cv_svn_understands_https=yes
     5039                    else
     5040                      ac_cv_svn_understands_https=no
     5041                      have_svn=no
     5042                      ac_cv_prog_have_svn=no
     5043                    fi
     5044                    rm -f confauto.out
     5045fi
     5046echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
     5047echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
     5048  fi
     5049
     5050  # Find the location of the BuildTools directory
     5051  BUILDTOOLSDIR=
     5052  if test -r $srcdir/BuildTools/coin.m4; then
     5053    BUILDTOOLSDIR=$srcdir/BuildTools
     5054  else
     5055    if test -r $srcdir/../BuildTools/coin.m4; then
     5056      BUILDTOOLSDIR=$srcdir/../BuildTools
     5057    else
     5058      if test -r $srcdir/../../BuildTools/coin.m4; then
     5059        BUILDTOOLSDIR=$srcdir/../../BuildTools
     5060      else
     5061        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
     5062echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
     5063   { (exit 1); exit 1; }; }
     5064      fi
     5065    fi
     5066  fi
     5067
     5068
     5069  # The following variable is set to the name of the directory where
     5070  # the autotool scripts are located
     5071
     5072  AUX_DIR=$ac_aux_dir
     5073fi
     5074
     5075# helpful variable for the base directory of this package
     5076abs_source_dir=`cd $srcdir; pwd`
     5077
     5078
     5079# Stuff for example Makefiles
     5080if test x$prefix = xNONE; then
     5081  full_prefix=$ac_default_prefix
     5082else
     5083  full_prefix=$prefix
     5084fi
     5085full_prefix=`cd $full_prefix ; pwd`
     5086
     5087abs_lib_dir=$full_prefix/lib
     5088
     5089abs_include_dir=$full_prefix/include
     5090
     5091abs_bin_dir=$full_prefix/bin
     5092
     5093
     5094
     5095if test $coin_have_externals = yes && test x$have_svn = xyes; then
     5096  HAVE_EXTERNALS_TRUE=
     5097  HAVE_EXTERNALS_FALSE='#'
     5098else
     5099  HAVE_EXTERNALS_TRUE='#'
     5100  HAVE_EXTERNALS_FALSE=
     5101fi
     5102
     5103
     5104# AC_MSG_NOTICE([End automake initialisation.])
     5105
     5106
     5107
     5108unset ac_cv_file__________libtool
     5109unset ac_cv_file_______libtool
     5110unset ac_cv_file____libtool
     5111
     5112LIBTOOL=
     5113echo "$as_me:$LINENO: checking for ../libtool" >&5
     5114echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
     5115if test "${ac_cv_file____libtool+set}" = set; then
     5116  echo $ECHO_N "(cached) $ECHO_C" >&6
     5117else
     5118  test "$cross_compiling" = yes &&
     5119  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     5120echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     5121   { (exit 1); exit 1; }; }
     5122if test -r "../libtool"; then
     5123  ac_cv_file____libtool=yes
     5124else
     5125  ac_cv_file____libtool=no
     5126fi
     5127fi
     5128echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
     5129echo "${ECHO_T}$ac_cv_file____libtool" >&6
     5130if test $ac_cv_file____libtool = yes; then
     5131  coin_config_dir=..
     5132               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
     5133fi
     5134
     5135if test "x$LIBTOOL" = x; then
     5136  echo "$as_me:$LINENO: checking for ../../libtool" >&5
     5137echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
     5138if test "${ac_cv_file_______libtool+set}" = set; then
     5139  echo $ECHO_N "(cached) $ECHO_C" >&6
     5140else
     5141  test "$cross_compiling" = yes &&
     5142  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     5143echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     5144   { (exit 1); exit 1; }; }
     5145if test -r "../../libtool"; then
     5146  ac_cv_file_______libtool=yes
     5147else
     5148  ac_cv_file_______libtool=no
     5149fi
     5150fi
     5151echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
     5152echo "${ECHO_T}$ac_cv_file_______libtool" >&6
     5153if test $ac_cv_file_______libtool = yes; then
     5154  coin_config_dir=../..
     5155                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
     5156fi
     5157
     5158fi
     5159# if test "x$LIBTOOL" = x; then
     5160#   AC_CHECK_FILE([../../../libtool],
     5161#                 [coin_config_dir=../../..
     5162#                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
     5163# fi
     5164
     5165if test "x$LIBTOOL" = x; then
     5166# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
     5167  # Stuff for libtool
     5168  # Check whether --enable-shared or --disable-shared was given.
    42565169if test "${enable_shared+set}" = set; then
    42575170  enableval="$enable_shared"
     
    48015714*-*-irix6*)
    48025715  # Find out which ABI we are using.
    4803   echo '#line 4803 "configure"' > conftest.$ac_ext
     5716  echo '#line 5716 "configure"' > conftest.$ac_ext
    48045717  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    48055718  (eval $ac_compile) 2>&5
     
    59356848
    59366849# Provide some information about the compiler.
    5937 echo "$as_me:5937:" \
     6850echo "$as_me:6850:" \
    59386851     "checking for Fortran 77 compiler version" >&5
    59396852ac_compiler=`set X $ac_compile; echo $2`
     
    70027915   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    70037916   -e 's:$: $lt_compiler_flag:'`
    7004    (eval echo "\"\$as_me:7004: $lt_compile\"" >&5)
     7917   (eval echo "\"\$as_me:7917: $lt_compile\"" >&5)
    70057918   (eval "$lt_compile" 2>conftest.err)
    70067919   ac_status=$?
    70077920   cat conftest.err >&5
    7008    echo "$as_me:7008: \$? = $ac_status" >&5
     7921   echo "$as_me:7921: \$? = $ac_status" >&5
    70097922   if (exit $ac_status) && test -s "$ac_outfile"; then
    70107923     # The compiler can only warn and ignore the option if not recognized
     
    72708183   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    72718184   -e 's:$: $lt_compiler_flag:'`
    7272    (eval echo "\"\$as_me:7272: $lt_compile\"" >&5)
     8185   (eval echo "\"\$as_me:8185: $lt_compile\"" >&5)
    72738186   (eval "$lt_compile" 2>conftest.err)
    72748187   ac_status=$?
    72758188   cat conftest.err >&5
    7276    echo "$as_me:7276: \$? = $ac_status" >&5
     8189   echo "$as_me:8189: \$? = $ac_status" >&5
    72778190   if (exit $ac_status) && test -s "$ac_outfile"; then
    72788191     # The compiler can only warn and ignore the option if not recognized
     
    73748287   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    73758288   -e 's:$: $lt_compiler_flag:'`
    7376    (eval echo "\"\$as_me:7376: $lt_compile\"" >&5)
     8289   (eval echo "\"\$as_me:8289: $lt_compile\"" >&5)
    73778290   (eval "$lt_compile" 2>out/conftest.err)
    73788291   ac_status=$?
    73798292   cat out/conftest.err >&5
    7380    echo "$as_me:7380: \$? = $ac_status" >&5
     8293   echo "$as_me:8293: \$? = $ac_status" >&5
    73818294   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    73828295   then
     
    971910632  lt_status=$lt_dlunknown
    972010633  cat > conftest.$ac_ext <<EOF
    9721 #line 9721 "configure"
     10634#line 10634 "configure"
    972210635#include "confdefs.h"
    972310636
     
    981910732  lt_status=$lt_dlunknown
    982010733  cat > conftest.$ac_ext <<EOF
    9821 #line 9821 "configure"
     10734#line 10734 "configure"
    982210735#include "confdefs.h"
    982310736
     
    1216313076   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1216413077   -e 's:$: $lt_compiler_flag:'`
    12165    (eval echo "\"\$as_me:12165: $lt_compile\"" >&5)
     13078   (eval echo "\"\$as_me:13078: $lt_compile\"" >&5)
    1216613079   (eval "$lt_compile" 2>conftest.err)
    1216713080   ac_status=$?
    1216813081   cat conftest.err >&5
    12169    echo "$as_me:12169: \$? = $ac_status" >&5
     13082   echo "$as_me:13082: \$? = $ac_status" >&5
    1217013083   if (exit $ac_status) && test -s "$ac_outfile"; then
    1217113084     # The compiler can only warn and ignore the option if not recognized
     
    1226713180   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1226813181   -e 's:$: $lt_compiler_flag:'`
    12269    (eval echo "\"\$as_me:12269: $lt_compile\"" >&5)
     13182   (eval echo "\"\$as_me:13182: $lt_compile\"" >&5)
    1227013183   (eval "$lt_compile" 2>out/conftest.err)
    1227113184   ac_status=$?
    1227213185   cat out/conftest.err >&5
    12273    echo "$as_me:12273: \$? = $ac_status" >&5
     13186   echo "$as_me:13186: \$? = $ac_status" >&5
    1227413187   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1227513188   then
     
    1383714750   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1383814751   -e 's:$: $lt_compiler_flag:'`
    13839    (eval echo "\"\$as_me:13839: $lt_compile\"" >&5)
     14752   (eval echo "\"\$as_me:14752: $lt_compile\"" >&5)
    1384014753   (eval "$lt_compile" 2>conftest.err)
    1384114754   ac_status=$?
    1384214755   cat conftest.err >&5
    13843    echo "$as_me:13843: \$? = $ac_status" >&5
     14756   echo "$as_me:14756: \$? = $ac_status" >&5
    1384414757   if (exit $ac_status) && test -s "$ac_outfile"; then
    1384514758     # The compiler can only warn and ignore the option if not recognized
     
    1394114854   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1394214855   -e 's:$: $lt_compiler_flag:'`
    13943    (eval echo "\"\$as_me:13943: $lt_compile\"" >&5)
     14856   (eval echo "\"\$as_me:14856: $lt_compile\"" >&5)
    1394414857   (eval "$lt_compile" 2>out/conftest.err)
    1394514858   ac_status=$?
    1394614859   cat out/conftest.err >&5
    13947    echo "$as_me:13947: \$? = $ac_status" >&5
     14860   echo "$as_me:14860: \$? = $ac_status" >&5
    1394814861   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1394914862   then
     
    1614817061   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1614917062   -e 's:$: $lt_compiler_flag:'`
    16150    (eval echo "\"\$as_me:16150: $lt_compile\"" >&5)
     17063   (eval echo "\"\$as_me:17063: $lt_compile\"" >&5)
    1615117064   (eval "$lt_compile" 2>conftest.err)
    1615217065   ac_status=$?
    1615317066   cat conftest.err >&5
    16154    echo "$as_me:16154: \$? = $ac_status" >&5
     17067   echo "$as_me:17067: \$? = $ac_status" >&5
    1615517068   if (exit $ac_status) && test -s "$ac_outfile"; then
    1615617069     # The compiler can only warn and ignore the option if not recognized
     
    1641617329   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1641717330   -e 's:$: $lt_compiler_flag:'`
    16418    (eval echo "\"\$as_me:16418: $lt_compile\"" >&5)
     17331   (eval echo "\"\$as_me:17331: $lt_compile\"" >&5)
    1641917332   (eval "$lt_compile" 2>conftest.err)
    1642017333   ac_status=$?
    1642117334   cat conftest.err >&5
    16422    echo "$as_me:16422: \$? = $ac_status" >&5
     17335   echo "$as_me:17335: \$? = $ac_status" >&5
    1642317336   if (exit $ac_status) && test -s "$ac_outfile"; then
    1642417337     # The compiler can only warn and ignore the option if not recognized
     
    1652017433   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1652117434   -e 's:$: $lt_compiler_flag:'`
    16522    (eval echo "\"\$as_me:16522: $lt_compile\"" >&5)
     17435   (eval echo "\"\$as_me:17435: $lt_compile\"" >&5)
    1652317436   (eval "$lt_compile" 2>out/conftest.err)
    1652417437   ac_status=$?
    1652517438   cat out/conftest.err >&5
    16526    echo "$as_me:16526: \$? = $ac_status" >&5
     17439   echo "$as_me:17439: \$? = $ac_status" >&5
    1652717440   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1652817441   then
     
    1917820091
    1917920092
    19180 
    19181 
    19182 
    19183 
    19184 
    19185 # Initialize automake
    19186 
    19187 # Stuff for automake
    19188 # test to see if srcdir already configured
    19189 if test "`cd $srcdir && pwd`" != "`pwd`" &&
    19190    test -f $srcdir/config.status; then
    19191   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
    19192 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
    19193    { (exit 1); exit 1; }; }
    19194 fi
    19195 
    19196 # test whether we have cygpath
    19197 if test -z "$CYGPATH_W"; then
    19198   if (cygpath --version) >/dev/null 2>/dev/null; then
    19199     CYGPATH_W='cygpath -w'
    19200   else
    19201     CYGPATH_W=echo
    19202   fi
    19203 fi
    19204 
    19205 
    19206 # Define the identity of the package.
    19207  PACKAGE='cbc'
    19208  VERSION='0.1'
    19209 
    19210 
    19211 cat >>confdefs.h <<_ACEOF
    19212 #define PACKAGE "$PACKAGE"
    19213 _ACEOF
    19214 
    19215 
    19216 cat >>confdefs.h <<_ACEOF
    19217 #define VERSION "$VERSION"
    19218 _ACEOF
    19219 
    19220 # Some tools Automake needs.
    19221 
    19222 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
    19223 
    19224 
    19225 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
    19226 
    19227 
    19228 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
    19229 
    19230 
    19231 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
    19232 
    19233 
    19234 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
    19235 
    19236 install_sh=${install_sh-"$am_aux_dir/install-sh"}
    19237 
    19238 # Installed binaries are usually stripped using `strip' when the user
    19239 # run `make install-strip'.  However `strip' might not be the right
    19240 # tool to use in cross-compilation environments, therefore Automake
    19241 # will honor the `STRIP' environment variable to overrule this program.
    19242 if test "$cross_compiling" != no; then
    19243   if test -n "$ac_tool_prefix"; then
    19244   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
    19245 set dummy ${ac_tool_prefix}strip; ac_word=$2
    19246 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19248 if test "${ac_cv_prog_STRIP+set}" = set; then
    19249   echo $ECHO_N "(cached) $ECHO_C" >&6
    19250 else
    19251   if test -n "$STRIP"; then
    19252   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
    19253 else
    19254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19255 for as_dir in $PATH
    19256 do
    19257   IFS=$as_save_IFS
    19258   test -z "$as_dir" && as_dir=.
    19259   for ac_exec_ext in '' $ac_executable_extensions; do
    19260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19261     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    19262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19263     break 2
    19264   fi
    19265 done
    19266 done
    19267 
    19268 fi
    19269 fi
    19270 STRIP=$ac_cv_prog_STRIP
    19271 if test -n "$STRIP"; then
    19272   echo "$as_me:$LINENO: result: $STRIP" >&5
    19273 echo "${ECHO_T}$STRIP" >&6
    19274 else
    19275   echo "$as_me:$LINENO: result: no" >&5
    19276 echo "${ECHO_T}no" >&6
    19277 fi
    19278 
    19279 fi
    19280 if test -z "$ac_cv_prog_STRIP"; then
    19281   ac_ct_STRIP=$STRIP
    19282   # Extract the first word of "strip", so it can be a program name with args.
    19283 set dummy strip; ac_word=$2
    19284 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19286 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
    19287   echo $ECHO_N "(cached) $ECHO_C" >&6
    19288 else
    19289   if test -n "$ac_ct_STRIP"; then
    19290   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
    19291 else
    19292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19293 for as_dir in $PATH
    19294 do
    19295   IFS=$as_save_IFS
    19296   test -z "$as_dir" && as_dir=.
    19297   for ac_exec_ext in '' $ac_executable_extensions; do
    19298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19299     ac_cv_prog_ac_ct_STRIP="strip"
    19300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19301     break 2
    19302   fi
    19303 done
    19304 done
    19305 
    19306   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
    19307 fi
    19308 fi
    19309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
    19310 if test -n "$ac_ct_STRIP"; then
    19311   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
    19312 echo "${ECHO_T}$ac_ct_STRIP" >&6
    19313 else
    19314   echo "$as_me:$LINENO: result: no" >&5
    19315 echo "${ECHO_T}no" >&6
    19316 fi
    19317 
    19318   STRIP=$ac_ct_STRIP
    19319 else
    19320   STRIP="$ac_cv_prog_STRIP"
    19321 fi
    19322 
    19323 fi
    19324 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
    19325 
    19326 # We need awk for the "check" target.  The system "awk" is bad on
    19327 # some platforms.
    19328 # Always define AMTAR for backward compatibility.
    19329 
    19330 AMTAR=${AMTAR-"${am_missing_run}tar"}
    19331 
    19332 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
    19333 
    19334 
    19335 
    19336 
    19337 depcc="$CC"   am_compiler_list=
    19338 
    19339 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    19340 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    19341 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
    19342   echo $ECHO_N "(cached) $ECHO_C" >&6
    19343 else
    19344   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    19345   # We make a subdir and do the tests there.  Otherwise we can end up
    19346   # making bogus files that we don't know about and never remove.  For
    19347   # instance it was reported that on HP-UX the gcc test will end up
    19348   # making a dummy file named `D' -- because `-MD' means `put the output
    19349   # in D'.
    19350   mkdir conftest.dir
    19351   # Copy depcomp to subdir because otherwise we won't find it if we're
    19352   # using a relative directory.
    19353   cp "$am_depcomp" conftest.dir
    19354   cd conftest.dir
    19355   # We will build objects and dependencies in a subdirectory because
    19356   # it helps to detect inapplicable dependency modes.  For instance
    19357   # both Tru64's cc and ICC support -MD to output dependencies as a
    19358   # side effect of compilation, but ICC will put the dependencies in
    19359   # the current directory while Tru64 will put them in the object
    19360   # directory.
    19361   mkdir sub
    19362 
    19363   am_cv_CC_dependencies_compiler_type=none
    19364   if test "$am_compiler_list" = ""; then
    19365      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
    19366   fi
    19367   for depmode in $am_compiler_list; do
    19368     # Setup a source with many dependencies, because some compilers
    19369     # like to wrap large dependency lists on column 80 (with \), and
    19370     # we should not choose a depcomp mode which is confused by this.
    19371     #
    19372     # We need to recreate these files for each test, as the compiler may
    19373     # overwrite some of them when testing with obscure command lines.
    19374     # This happens at least with the AIX C compiler.
    19375     : > sub/conftest.c
    19376     for i in 1 2 3 4 5 6; do
    19377       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    19378       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    19379       # Solaris 8's {/usr,}/bin/sh.
    19380       touch sub/conftst$i.h
    19381     done
    19382     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    19383 
    19384     case $depmode in
    19385     nosideeffect)
    19386       # after this tag, mechanisms are not by side-effect, so they'll
    19387       # only be used when explicitly requested
    19388       if test "x$enable_dependency_tracking" = xyes; then
    19389         continue
    19390       else
    19391         break
    19392       fi
    19393       ;;
    19394     none) break ;;
    19395     esac
    19396     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    19397     # mode.  It turns out that the SunPro C++ compiler does not properly
    19398     # handle `-M -o', and we need to detect this.
    19399     if depmode=$depmode \
    19400        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    19401        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    19402        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    19403          >/dev/null 2>conftest.err &&
    19404        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    19405        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    19406        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    19407       # icc doesn't choke on unknown options, it will just issue warnings
    19408       # or remarks (even with -Werror).  So we grep stderr for any message
    19409       # that says an option was ignored or not supported.
    19410       # When given -MP, icc 7.0 and 7.1 complain thusly:
    19411       #   icc: Command line warning: ignoring option '-M'; no argument required
    19412       # The diagnosis changed in icc 8.0:
    19413       #   icc: Command line remark: option '-MP' not supported
    19414       if (grep 'ignoring option' conftest.err ||
    19415           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    19416         am_cv_CC_dependencies_compiler_type=$depmode
    19417         break
    19418       fi
    19419     fi
    19420   done
    19421 
    19422   cd ..
    19423   rm -rf conftest.dir
    19424 else
    19425   am_cv_CC_dependencies_compiler_type=none
    19426 fi
    19427 
    19428 fi
    19429 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
    19430 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
    19431 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    19432 
    19433 
    19434 
    19435 if
    19436   test "x$enable_dependency_tracking" != xno \
    19437   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
    19438   am__fastdepCC_TRUE=
    19439   am__fastdepCC_FALSE='#'
    19440 else
    19441   am__fastdepCC_TRUE='#'
    19442   am__fastdepCC_FALSE=
    19443 fi
    19444 
    19445 
    19446 depcc="$CXX"  am_compiler_list=
    19447 
    19448 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    19449 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    19450 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
    19451   echo $ECHO_N "(cached) $ECHO_C" >&6
    19452 else
    19453   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    19454   # We make a subdir and do the tests there.  Otherwise we can end up
    19455   # making bogus files that we don't know about and never remove.  For
    19456   # instance it was reported that on HP-UX the gcc test will end up
    19457   # making a dummy file named `D' -- because `-MD' means `put the output
    19458   # in D'.
    19459   mkdir conftest.dir
    19460   # Copy depcomp to subdir because otherwise we won't find it if we're
    19461   # using a relative directory.
    19462   cp "$am_depcomp" conftest.dir
    19463   cd conftest.dir
    19464   # We will build objects and dependencies in a subdirectory because
    19465   # it helps to detect inapplicable dependency modes.  For instance
    19466   # both Tru64's cc and ICC support -MD to output dependencies as a
    19467   # side effect of compilation, but ICC will put the dependencies in
    19468   # the current directory while Tru64 will put them in the object
    19469   # directory.
    19470   mkdir sub
    19471 
    19472   am_cv_CXX_dependencies_compiler_type=none
    19473   if test "$am_compiler_list" = ""; then
    19474      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
    19475   fi
    19476   for depmode in $am_compiler_list; do
    19477     # Setup a source with many dependencies, because some compilers
    19478     # like to wrap large dependency lists on column 80 (with \), and
    19479     # we should not choose a depcomp mode which is confused by this.
    19480     #
    19481     # We need to recreate these files for each test, as the compiler may
    19482     # overwrite some of them when testing with obscure command lines.
    19483     # This happens at least with the AIX C compiler.
    19484     : > sub/conftest.c
    19485     for i in 1 2 3 4 5 6; do
    19486       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    19487       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    19488       # Solaris 8's {/usr,}/bin/sh.
    19489       touch sub/conftst$i.h
    19490     done
    19491     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    19492 
    19493     case $depmode in
    19494     nosideeffect)
    19495       # after this tag, mechanisms are not by side-effect, so they'll
    19496       # only be used when explicitly requested
    19497       if test "x$enable_dependency_tracking" = xyes; then
    19498         continue
    19499       else
    19500         break
    19501       fi
    19502       ;;
    19503     none) break ;;
    19504     esac
    19505     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    19506     # mode.  It turns out that the SunPro C++ compiler does not properly
    19507     # handle `-M -o', and we need to detect this.
    19508     if depmode=$depmode \
    19509        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    19510        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    19511        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    19512          >/dev/null 2>conftest.err &&
    19513        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    19514        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    19515        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    19516       # icc doesn't choke on unknown options, it will just issue warnings
    19517       # or remarks (even with -Werror).  So we grep stderr for any message
    19518       # that says an option was ignored or not supported.
    19519       # When given -MP, icc 7.0 and 7.1 complain thusly:
    19520       #   icc: Command line warning: ignoring option '-M'; no argument required
    19521       # The diagnosis changed in icc 8.0:
    19522       #   icc: Command line remark: option '-MP' not supported
    19523       if (grep 'ignoring option' conftest.err ||
    19524           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    19525         am_cv_CXX_dependencies_compiler_type=$depmode
    19526         break
    19527       fi
    19528     fi
    19529   done
    19530 
    19531   cd ..
    19532   rm -rf conftest.dir
    19533 else
    19534   am_cv_CXX_dependencies_compiler_type=none
    19535 fi
    19536 
    19537 fi
    19538 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
    19539 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
    19540 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
    19541 
    19542 
    19543 
    19544 if
    19545   test "x$enable_dependency_tracking" != xno \
    19546   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
    19547   am__fastdepCXX_TRUE=
    19548   am__fastdepCXX_FALSE='#'
    19549 else
    19550   am__fastdepCXX_TRUE='#'
    19551   am__fastdepCXX_FALSE=
    19552 fi
    19553 
    19554 
    19555 
    19556 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
    19557 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
    19558     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    19559 if test "${enable_maintainer_mode+set}" = set; then
    19560   enableval="$enable_maintainer_mode"
    19561   USE_MAINTAINER_MODE=$enableval
    19562 else
    19563   USE_MAINTAINER_MODE=no
    19564 fi;
    19565   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
    19566 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
    19567 
    19568 
    19569 if test $USE_MAINTAINER_MODE = yes; then
    19570   MAINTAINER_MODE_TRUE=
    19571   MAINTAINER_MODE_FALSE='#'
    19572 else
    19573   MAINTAINER_MODE_TRUE='#'
    19574   MAINTAINER_MODE_FALSE=
    19575 fi
    19576 
    19577   MAINT=$MAINTAINER_MODE_TRUE
    19578 
    19579 
    19580 
    19581 coin_have_externals=no
    19582 if test "$enable_maintainer_mode" = yes; then
    19583 
    19584   # If maintainer mode is chosen, we make sure that the correct versions
    19585   # of the tools are used, and that we know where libtoo.m4 is (to
    19586   # recreate acinclude.m4)
    19587 
    19588 
    19589   LIBTOOLM4=
    19590 
    19591   # Check if we have autoconf
    19592   # Extract the first word of "autoconf", so it can be a program name with args.
    19593 set dummy autoconf; ac_word=$2
    19594 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19596 if test "${ac_cv_prog_have_autoconf+set}" = set; then
    19597   echo $ECHO_N "(cached) $ECHO_C" >&6
    19598 else
    19599   if test -n "$have_autoconf"; then
    19600   ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
    19601 else
    19602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19603 for as_dir in $PATH
    19604 do
    19605   IFS=$as_save_IFS
    19606   test -z "$as_dir" && as_dir=.
    19607   for ac_exec_ext in '' $ac_executable_extensions; do
    19608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19609     ac_cv_prog_have_autoconf="yes"
    19610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19611     break 2
    19612   fi
    19613 done
    19614 done
    19615 
    19616   test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
    19617 fi
    19618 fi
    19619 have_autoconf=$ac_cv_prog_have_autoconf
    19620 if test -n "$have_autoconf"; then
    19621   echo "$as_me:$LINENO: result: $have_autoconf" >&5
    19622 echo "${ECHO_T}$have_autoconf" >&6
    19623 else
    19624   echo "$as_me:$LINENO: result: no" >&5
    19625 echo "${ECHO_T}no" >&6
    19626 fi
    19627 
    19628   if test $have_autoconf = no; then
    19629     { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
    19630 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
    19631    { (exit 1); exit 1; }; }
    19632   fi
    19633 
    19634   # Check whether autoconf is the correct version
    19635   correct_version='2.59'
    19636   grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    19637   echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
    19638 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
    19639   autoconf --version > confauto.out 2>&1
    19640   if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
    19641     echo "$as_me:$LINENO: result: yes" >&5
    19642 echo "${ECHO_T}yes" >&6
    19643   else
    19644     rm -f confauto.out
    19645     echo "$as_me:$LINENO: result: no" >&5
    19646 echo "${ECHO_T}no" >&6
    19647     { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
    19648 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
    19649    { (exit 1); exit 1; }; }
    19650   fi
    19651   rm -f confauto.out
    19652 
    19653   # Check if the executable autoconf is picked up from the correct location
    19654   echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
    19655 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
    19656   autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
    19657   autoconf_dir=`cd $autoconf_dir; pwd`
    19658   if test x$AUTOTOOLS_DIR = x; then
    19659     want_dir=$HOME/bin
    19660   else
    19661     want_dir=$AUTOTOOLS_DIR/bin
    19662   fi
    19663   if test $autoconf_dir = `cd $want_dir; pwd`; then
    19664     echo "$as_me:$LINENO: result: yes" >&5
    19665 echo "${ECHO_T}yes" >&6
    19666   else
    19667     rm -f confauto.out
    19668     echo "$as_me:$LINENO: result: no" >&5
    19669 echo "${ECHO_T}no" >&6
    19670     { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5
    19671 echo "$as_me: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;}
    19672    { (exit 1); exit 1; }; }
    19673   fi
    19674 
    19675   # Check if we have automake
    19676   # Extract the first word of "automake", so it can be a program name with args.
    19677 set dummy automake; ac_word=$2
    19678 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19680 if test "${ac_cv_prog_have_automake+set}" = set; then
    19681   echo $ECHO_N "(cached) $ECHO_C" >&6
    19682 else
    19683   if test -n "$have_automake"; then
    19684   ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
    19685 else
    19686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19687 for as_dir in $PATH
    19688 do
    19689   IFS=$as_save_IFS
    19690   test -z "$as_dir" && as_dir=.
    19691   for ac_exec_ext in '' $ac_executable_extensions; do
    19692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19693     ac_cv_prog_have_automake="yes"
    19694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19695     break 2
    19696   fi
    19697 done
    19698 done
    19699 
    19700   test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
    19701 fi
    19702 fi
    19703 have_automake=$ac_cv_prog_have_automake
    19704 if test -n "$have_automake"; then
    19705   echo "$as_me:$LINENO: result: $have_automake" >&5
    19706 echo "${ECHO_T}$have_automake" >&6
    19707 else
    19708   echo "$as_me:$LINENO: result: no" >&5
    19709 echo "${ECHO_T}no" >&6
    19710 fi
    19711 
    19712   if test $have_automake = no; then
    19713     { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
    19714 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
    19715    { (exit 1); exit 1; }; }
    19716   fi
    19717 
    19718   # Check whether automake is the correct version
    19719   correct_version='1.9.6'
    19720   grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    19721   echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
    19722 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
    19723   automake --version > confauto.out 2>&1
    19724   if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
    19725     echo "$as_me:$LINENO: result: yes" >&5
    19726 echo "${ECHO_T}yes" >&6
    19727   else
    19728     rm -f confauto.out
    19729     echo "$as_me:$LINENO: result: no" >&5
    19730 echo "${ECHO_T}no" >&6
    19731     { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
    19732 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
    19733    { (exit 1); exit 1; }; }
    19734   fi
    19735   rm -f confauto.out
    19736 
    19737   # Check if the executable automake is picked up from the correct location
    19738   echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
    19739 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
    19740   automake_dir=`which automake | sed -e 's=/automake=='`
    19741   automake_dir=`cd $automake_dir; pwd`
    19742   if test x$AUTOTOOLS_DIR = x; then
    19743     want_dir=$HOME/bin
    19744   else
    19745     want_dir=$AUTOTOOLS_DIR/bin
    19746   fi
    19747   if test $automake_dir = `cd $want_dir; pwd`; then
    19748     echo "$as_me:$LINENO: result: yes" >&5
    19749 echo "${ECHO_T}yes" >&6
    19750   else
    19751     rm -f confauto.out
    19752     echo "$as_me:$LINENO: result: no" >&5
    19753 echo "${ECHO_T}no" >&6
    19754     { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5
    19755 echo "$as_me: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;}
    19756    { (exit 1); exit 1; }; }
    19757   fi
    19758 
    19759   # Check if we can find the libtool file
    19760   if test x$AUTOTOOLS_DIR = x; then
    19761     want_dir=$HOME/share
    19762   else
    19763     want_dir=$AUTOTOOLS_DIR/share
    19764   fi
    19765   as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
    19766 echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
    19767 echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
    19768 if eval "test \"\${$as_ac_File+set}\" = set"; then
    19769   echo $ECHO_N "(cached) $ECHO_C" >&6
    19770 else
    19771   test "$cross_compiling" = yes &&
    19772   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    19773 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    19774    { (exit 1); exit 1; }; }
    19775 if test -r "$want_dir/aclocal/libtool.m4"; then
    19776   eval "$as_ac_File=yes"
    19777 else
    19778   eval "$as_ac_File=no"
    19779 fi
    19780 fi
    19781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    19782 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    19783 if test `eval echo '${'$as_ac_File'}'` = yes; then
    19784   LIBTOOLM4="$want_dir/aclocal/libtool.m4"
    19785 else
    19786   { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
    19787 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
    19788    { (exit 1); exit 1; }; }
    19789 fi
    19790 
    19791 
    19792   # Check if this is the correct version of libtool (with escaped dots)
    19793   correct_version='1.5.22'
    19794   grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    19795   as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
    19796 echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
    19797 echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
    19798 if eval "test \"\${$as_ac_File+set}\" = set"; then
    19799   echo $ECHO_N "(cached) $ECHO_C" >&6
    19800 else
    19801   test "$cross_compiling" = yes &&
    19802   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    19803 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    19804    { (exit 1); exit 1; }; }
    19805 if test -r "$want_dir/libtool/ltmain.sh"; then
    19806   eval "$as_ac_File=yes"
    19807 else
    19808   eval "$as_ac_File=no"
    19809 fi
    19810 fi
    19811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    19812 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    19813 if test `eval echo '${'$as_ac_File'}'` = yes; then
    19814   have_ltmain=yes
    19815 else
    19816   have_ltmain=no
    19817 fi
    19818 
    19819   echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
    19820 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
    19821   if test $have_ltmain = yes; then
    19822     if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
    19823       echo "$as_me:$LINENO: result: yes" >&5
    19824 echo "${ECHO_T}yes" >&6
    19825     else
    19826       echo "$as_me:$LINENO: result: no" >&5
    19827 echo "${ECHO_T}no" >&6
    19828       { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
    19829 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
    19830    { (exit 1); exit 1; }; }
    19831     fi
    19832   else
    19833     echo "$as_me:$LINENO: result: no" >&5
    19834 echo "${ECHO_T}no" >&6
    19835     { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
    19836 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
    19837    { (exit 1); exit 1; }; }
    19838   fi
    19839 
    19840   # Check if we have an Externals file
    19841   if test -r $srcdir/Externals; then
    19842     coin_have_externals=yes
    19843   fi
    19844   # Check if subversion is installed and understands https
    19845   # Extract the first word of "svn", so it can be a program name with args.
    19846 set dummy svn; ac_word=$2
    19847 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19849 if test "${ac_cv_prog_have_svn+set}" = set; then
    19850   echo $ECHO_N "(cached) $ECHO_C" >&6
    19851 else
    19852   if test -n "$have_svn"; then
    19853   ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
    19854 else
    19855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19856 for as_dir in $PATH
    19857 do
    19858   IFS=$as_save_IFS
    19859   test -z "$as_dir" && as_dir=.
    19860   for ac_exec_ext in '' $ac_executable_extensions; do
    19861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19862     ac_cv_prog_have_svn="yes"
    19863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19864     break 2
    19865   fi
    19866 done
    19867 done
    19868 
    19869   test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
    19870 fi
    19871 fi
    19872 have_svn=$ac_cv_prog_have_svn
    19873 if test -n "$have_svn"; then
    19874   echo "$as_me:$LINENO: result: $have_svn" >&5
    19875 echo "${ECHO_T}$have_svn" >&6
    19876 else
    19877   echo "$as_me:$LINENO: result: no" >&5
    19878 echo "${ECHO_T}no" >&6
    19879 fi
    19880 
    19881   if test x$have_svn = xyes; then
    19882     echo "$as_me:$LINENO: checking svn understands https" >&5
    19883 echo $ECHO_N "checking svn understands https... $ECHO_C" >&6
    19884     svn --version > confauto.out 2>&1
    19885     if $EGREP https confauto.out >/dev/null 2>&1; then
    19886       echo "$as_me:$LINENO: result: yes" >&5
    19887 echo "${ECHO_T}yes" >&6
    19888     else
    19889       echo "$as_me:$LINENO: result: no" >&5
    19890 echo "${ECHO_T}no" >&6
    19891       have_svn=no
    19892     fi
    19893     rm -f confauto.out
    19894   fi
    19895 
    19896   # Find the location of the BuildTools directory
    19897   BUILDTOOLSDIR=
    19898   if test -r $srcdir/BuildTools/coin.m4; then
    19899     BUILDTOOLSDIR=$srcdir/BuildTools
    19900   else
    19901     if test -r $srcdir/../BuildTools/coin.m4; then
    19902       BUILDTOOLSDIR=$srcdir/../BuildTools
    19903     else
    19904       if test -r $srcdir/../../BuildTools/coin.m4; then
    19905         BUILDTOOLSDIR=$srcdir/../../BuildTools
    19906       else
    19907         { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
    19908 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
    19909    { (exit 1); exit 1; }; }
    19910       fi
    19911     fi
    19912   fi
    19913 
    19914 
    19915   # The following variable is set to the name of the directory where
    19916   # the autotool scripts are located
    19917 
    19918   AUX_DIR=$ac_aux_dir
    19919 fi
    19920 
    19921 # helpful variable for the base directory of this package
    19922 abs_source_dir=`cd $srcdir; pwd`
    19923 
    19924 
    19925 # Stuff for example Makefiles
    19926 if test x$prefix = xNONE; then
    19927   full_prefix=$ac_default_prefix
    19928 else
    19929   full_prefix=$prefix
    19930 fi
    19931 full_prefix=`cd $full_prefix ; pwd`
    19932 
    19933 abs_lib_dir=$full_prefix/lib
    19934 
    19935 abs_include_dir=$full_prefix/include
    19936 
    19937 abs_bin_dir=$full_prefix/bin
    19938 
    19939 
    19940 
    19941 if test $coin_have_externals = yes && test x$have_svn = xyes; then
    19942   HAVE_EXTERNALS_TRUE=
    19943   HAVE_EXTERNALS_FALSE='#'
    19944 else
    19945   HAVE_EXTERNALS_TRUE='#'
    19946   HAVE_EXTERNALS_FALSE=
    19947 fi
    19948 
    19949 
    19950 
    19951 # Stuff for libtool
    19952 
    19953 
    19954 # We check for this header here in a non-standard way to avoid warning
    19955 # messages
    19956 
    19957 
    19958 
    19959 
    19960 
    19961 
    19962 
     20093# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
     20094 # AC_REQUIRE([AC_COIN_DLFCN_H])
     20095
     20096# NEW: If libtool exists in the directory higher up, we use that one
     20097#      instead of creating a new one
     20098
     20099# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
     20100# out in front of this macro body. You'll notice that LIBTOOL is already
     20101# defined here.  We'll have to count on this macro not being called if libtool
     20102# already exists, or at least move the libtool fixes outside the conditional.
     20103# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
     20104# This test is therefore removed.  -- lh, 061214 --
     20105# if test "x$LIBTOOL" = x; then
     20106
     20107# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
     20108
     20109
     20110
     20111
     20112
     20113
     20114
     20115
     20116
     20117# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
    1996320118
    1996420119
     
    1998220137#          -e 'sYcompile_command=`\$echo "X\$compile_command" | \$Xsed -e '"'"'s%@OUTPUT@%'"'"'"\$output"'"'"'%g'"'"'`Ycompile_command=`\$echo "X\$compile_command" | \$Xsed -e '"'"'s%@OUTPUT@%'"'"'"\$output"'"'"'%g'"'"' | \$Xsed -e '"'"'s%@BACKSLASH@%\\\\\\\\\\\\\\\\%g'"'"'`Y' \
    1998320138
    19984 # Correct cygpath for minGW (ToDo!)
    19985 case $build in
    19986   *-mingw*)
    19987     CYGPATH_W=echo
    19988     ;;
    19989 esac
    19990 
    19991 case $build in
    19992   *-cygwin* | *-mingw*)
    19993   case "$CXX" in
    19994     cl* | */cl*)
    19995       { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
     20139  # Correct cygpath for minGW (ToDo!)
     20140  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
     20141echo "$as_me: Build is \"$build\"." >&6;}
     20142  case $build in
     20143    *-mingw*)
     20144      CYGPATH_W=echo
     20145      ;;
     20146  esac
     20147
     20148  case $build in
     20149    *-cygwin* | *-mingw*)
     20150    case "$CXX" in
     20151      cl* | */cl* | CL* | */CL*)
     20152        { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
    1999620153echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
    19997       sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
    19998           -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
    19999           -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
    20000           -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
    20001           -e 's%lib /OUT:%lib -OUT:%' \
    20002           -e "s%cygpath -w%$CYGPATH_W%" \
    20003           -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
    20004           -e 's/$AR t/lib -nologo -list/' \
    20005           -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
    20006           -e  's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
    20007       libtool > conftest.bla
    20008 
    20009       mv conftest.bla libtool
    20010       chmod 755 libtool
    20011       ;;
    20012     *)
    20013       { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
     20154        sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     20155            -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     20156            -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
     20157            -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
     20158            -e 's%lib /OUT:%lib -OUT:%' \
     20159            -e "s%cygpath -w%$CYGPATH_W%" \
     20160            -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
     20161            -e 's/$AR t/lib -nologo -list/' \
     20162            -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
     20163            -e  's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
     20164        libtool > conftest.bla
     20165
     20166        mv conftest.bla libtool
     20167        chmod 755 libtool
     20168        ;;
     20169      *)
     20170        { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
    2001420171echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
    20015       sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
    20016           -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
    20017           -e 's|libext="lib"|libext="a"|' \
    20018       libtool > conftest.bla
    20019 
    20020       mv conftest.bla libtool
    20021       chmod 755 libtool
    20022       ;;
     20172        sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     20173            -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
     20174            -e 's|libext="lib"|libext="a"|' \
     20175        libtool > conftest.bla
     20176
     20177        mv conftest.bla libtool
     20178        chmod 755 libtool
     20179        ;;
     20180    esac
    2002320181  esac
    20024 esac
    20025 
    20026 # ToDo
    20027 # For now, don't use the -no-undefined flag, since the Makefiles are
    20028 # not yet set up that way.  But we need to fix this, when we want
    20029 # to comile DLLs under Windows.
    20030 LT_LDFLAGS=
    20031 
    20032 
    20033 
    20034 # set RPATH_FLAGS to the compiler link flags required to hardcode location
    20035 # of the shared objects
    20036 RPATH_FLAGS=
     20182# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
     20183# the macro. -- lh, 061214 --
     20184# fi
     20185
     20186# AC_MSG_NOTICE([End libtool initialisation.])
     20187
     20188# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
     20189  # set RPATH_FLAGS to the compiler link flags required to hardcode location
     20190  # of the shared objects
     20191  RPATH_FLAGS=
    2003720192
    2003820193if test $enable_shared = yes; then
     
    2007520230
    2007620231
     20232else
     20233
     20234  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
     20235echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
     20236  # get all missing information from the config.log file
     20237
     20238  # output variables and defines
     20239  as_save_IFS=$IFS
     20240  IFS='
     20241'
     20242  for oneline in `cat $coin_config_dir/config.status`; do
     20243    case "$oneline" in
     20244         # First some automake conditionals
     20245      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
     20246      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
     20247      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
     20248      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
     20249        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
     20250#        echo "$command"
     20251        eval "$command"
     20252        ;;
     20253      s,@DEFS@* )
     20254        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
     20255#        echo "$command"
     20256        eval "$command"
     20257        ;;
     20258    esac
     20259  done
     20260  IFS=$as_save_IFS
     20261
     20262  # And some defines (assuming here that the packages base dir
     20263  # doesn't have a config.h file
     20264  for word in $defsline; do
     20265#    echo word $word
     20266    case $word in
     20267      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
     20268        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
     20269#        echo dd $i
     20270        echo $i >>confdefs.h
     20271        ;;
     20272    esac
     20273  done
     20274fi
     20275
     20276# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
     20277
     20278# ToDo
     20279# For now, don't use the -no-undefined flag, since the Makefiles are
     20280# not yet set up that way.  But we need to fix this, when we want
     20281# to comile DLLs under Windows.
     20282LT_LDFLAGS=
     20283
     20284
     20285#END
     20286}
    2007720287
    2007820288#############################################################################
     
    2065820868                    echo "$as_me:$LINENO: checking whether symbol CPXgetstat is available with CPX" >&5
    2065920869echo $ECHO_N "checking whether symbol CPXgetstat is available with CPX... $ECHO_C" >&6
     20870                    ac_ext=c
     20871ac_cpp='$CPP $CPPFLAGS'
     20872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20874ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20875
    2066020876# ToDo find out what to do about extern "C"
    2066120877#                    AC_TRY_LINK([extern "C" {void CPXgetstat();}],[CPXgetstat()],
     
    2071120927rm -f conftest.err conftest.$ac_objext \
    2071220928      conftest$ac_exeext conftest.$ac_ext
     20929                    ac_ext=c
     20930ac_cpp='$CPP $CPPFLAGS'
     20931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20933ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20934
    2071320935                    LIBS="$coin_save_LIBS"
    2071420936                  fi
     
    2081521037                    echo "$as_me:$LINENO: checking whether symbol glp_lpx_simplex is available with GLPK" >&5
    2081621038echo $ECHO_N "checking whether symbol glp_lpx_simplex is available with GLPK... $ECHO_C" >&6
     21039                    ac_ext=c
     21040ac_cpp='$CPP $CPPFLAGS'
     21041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21043ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21044
    2081721045# ToDo find out what to do about extern "C"
    2081821046#                    AC_TRY_LINK([extern "C" {void glp_lpx_simplex();}],[glp_lpx_simplex()],
     
    2086821096rm -f conftest.err conftest.$ac_objext \
    2086921097      conftest$ac_exeext conftest.$ac_ext
     21098                    ac_ext=c
     21099ac_cpp='$CPP $CPPFLAGS'
     21100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21102ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21103
    2087021104                    LIBS="$coin_save_LIBS"
    2087121105                  fi
     
    2104321277                    echo "$as_me:$LINENO: checking whether symbol MSK_openmosek is available with MSK" >&5
    2104421278echo $ECHO_N "checking whether symbol MSK_openmosek is available with MSK... $ECHO_C" >&6
     21279                    ac_ext=c
     21280ac_cpp='$CPP $CPPFLAGS'
     21281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21283ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21284
    2104521285# ToDo find out what to do about extern "C"
    2104621286#                    AC_TRY_LINK([extern "C" {void MSK_openmosek();}],[MSK_openmosek()],
     
    2109621336rm -f conftest.err conftest.$ac_objext \
    2109721337      conftest$ac_exeext conftest.$ac_ext
     21338                    ac_ext=c
     21339ac_cpp='$CPP $CPPFLAGS'
     21340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21342ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21343
    2109821344                    LIBS="$coin_save_LIBS"
    2109921345                  fi
     
    2120021446                    echo "$as_me:$LINENO: checking whether symbol ekk_simplex is available with OSL" >&5
    2120121447echo $ECHO_N "checking whether symbol ekk_simplex is available with OSL... $ECHO_C" >&6
     21448                    ac_ext=c
     21449ac_cpp='$CPP $CPPFLAGS'
     21450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21452ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21453
    2120221454# ToDo find out what to do about extern "C"
    2120321455#                    AC_TRY_LINK([extern "C" {void ekk_simplex();}],[ekk_simplex()],
     
    2125321505rm -f conftest.err conftest.$ac_objext \
    2125421506      conftest$ac_exeext conftest.$ac_ext
     21507                    ac_ext=c
     21508ac_cpp='$CPP $CPPFLAGS'
     21509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21511ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21512
    2125521513                    LIBS="$coin_save_LIBS"
    2125621514                  fi
     
    2145421712                    echo "$as_me:$LINENO: checking whether symbol XPRSsetintcontrol is available with XPR" >&5
    2145521713echo $ECHO_N "checking whether symbol XPRSsetintcontrol is available with XPR... $ECHO_C" >&6
     21714                    ac_ext=c
     21715ac_cpp='$CPP $CPPFLAGS'
     21716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21718ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21719
    2145621720# ToDo find out what to do about extern "C"
    2145721721#                    AC_TRY_LINK([extern "C" {void XPRSsetintcontrol();}],[XPRSsetintcontrol()],
     
    2150721771rm -f conftest.err conftest.$ac_objext \
    2150821772      conftest$ac_exeext conftest.$ac_ext
     21773                    ac_ext=c
     21774ac_cpp='$CPP $CPPFLAGS'
     21775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21777ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21778
    2150921779                    LIBS="$coin_save_LIBS"
    2151021780                  fi
     
    2154521815# Determine the name of the ASL library
    2154621816case "$CXX" in
    21547   cl* | */cl*)
     21817  cl* | */cl* | CL* | */CL*)
    2154821818    ampllib=amplsolv.lib ;;
    2154921819  *)
     
    2168821958
    2168921959if test "$use_asldir" != no; then
     21960  ac_ext=c
     21961ac_cpp='$CPP $CPPFLAGS'
     21962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21964ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21965
    2169021966  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    2169121967echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     
    2176222038_ACEOF
    2176322039
     22040  ac_ext=c
     22041ac_cpp='$CPP $CPPFLAGS'
     22042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22044ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22045
    2176422046else
    2176522047  coin_has_asl=no
     
    2183322115
    2183422116case "$CC" in
    21835   cl*) LIBEXT=lib ;;
     22117  cl* | */cl* | CL* | */CL*)
     22118       LIBEXT=lib ;;
    2183622119    *) LIBEXT=a ;;
    2183722120esac
     
    2272323006s,@ac_ct_F77@,$ac_ct_F77,;t t
    2272423007s,@LIBTOOL@,$LIBTOOL,;t t
     23008s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
     23009s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
     23010s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2272523011s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    22726 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2272723012s,@CBCSRCDIR@,$CBCSRCDIR,;t t
    2272823013s,@CBCOBJDIR@,$CBCOBJDIR,;t t
     
    2365323938  fi
    2365423939  case "$CC" in
    23655     cl* | */cl*)
    23656       lnkcmd=cp ;;
    23657   esac
    23658   case "$CXX" in
    23659     cl* | */cl*)
     23940    cl* | */cl* | CL* | */CL*)
    2366023941      lnkcmd=cp ;;
    2366123942  esac
    2366223943  if test "$lnkcmd" = cp; then
    23663     { echo "$as_me:$LINENO: Creating VPATH copies for data files" >&5
    23664 echo "$as_me: Creating VPATH copies for data files" >&6;}
     23944    { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
     23945echo "$as_me: Copying data files for VPATH configuration" >&6;}
    2366523946  else
    2366623947    echo "$as_me:$LINENO: checking whether ln -s works" >&5
     
    2368023961  fi
    2368123962  for file in $coin_vpath_link_files; do
     23963    dir=`(dirname "./$file") 2>/dev/null ||
     23964$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     23965         X"./$file" : 'X\(//\)[^/]' \| \
     23966         X"./$file" : 'X\(//\)$' \| \
     23967         X"./$file" : 'X\(/\)' \| \
     23968         .     : '\(.\)' 2>/dev/null ||
     23969echo X"./$file" |
     23970    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     23971          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     23972          /^X\(\/\/\)$/{ s//\1/; q; }
     23973          /^X\(\/\).*/{ s//\1/; q; }
     23974          s/.*/./; q'`
     23975    if test -d $dir; then : ; else
     23976      { if $as_mkdir_p; then
     23977    mkdir -p $dir
     23978  else
     23979    as_dir=$dir
     23980    as_dirs=
     23981    while test ! -d "$as_dir"; do
     23982      as_dirs="$as_dir $as_dirs"
     23983      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     23984$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     23985         X"$as_dir" : 'X\(//\)[^/]' \| \
     23986         X"$as_dir" : 'X\(//\)$' \| \
     23987         X"$as_dir" : 'X\(/\)' \| \
     23988         .     : '\(.\)' 2>/dev/null ||
     23989echo X"$as_dir" |
     23990    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     23991          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     23992          /^X\(\/\/\)$/{ s//\1/; q; }
     23993          /^X\(\/\).*/{ s//\1/; q; }
     23994          s/.*/./; q'`
     23995    done
     23996    test ! -n "$as_dirs" || mkdir $as_dirs
     23997  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
     23998echo "$as_me: error: cannot create directory $dir" >&2;}
     23999   { (exit 1); exit 1; }; }; }
     24000
     24001    fi
    2368224002    rm -f $file
    2368324003    $lnkcmd $abs_source_dir/$file $file
  • trunk/Cbc/src/Makefile.in

    r454 r527  
    386386abs_lib_dir = @abs_lib_dir@
    387387abs_source_dir = @abs_source_dir@
     388ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
    388389ac_ct_AR = @ac_ct_AR@
    389390ac_ct_CC = @ac_ct_CC@
     
    392393ac_ct_RANLIB = @ac_ct_RANLIB@
    393394ac_ct_STRIP = @ac_ct_STRIP@
     395ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
    394396am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    395397am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  • trunk/Cbc/test/Makefile.am

    r372 r527  
    1616
    1717test: ../src/cbc-generic$(EXEEXT) ../src/cbc$(EXEEXT)
    18         cd ../../Data/Netlib; make uncompress
    19         cd ../../Data/miplib3; make uncompress
     18        cd ../../Data/Netlib; $(MAKE) uncompress
     19        cd ../../Data/miplib3; $(MAKE) uncompress
    2020        ../src/cbc-generic$(EXEEXT) -miplib -unitTest
    2121        ../src/cbc$(EXEEXT) -unitTest -netlib
  • trunk/Cbc/test/Makefile.in

    r405 r527  
    202202abs_lib_dir = @abs_lib_dir@
    203203abs_source_dir = @abs_source_dir@
     204ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
    204205ac_ct_AR = @ac_ct_AR@
    205206ac_ct_CC = @ac_ct_CC@
     
    208209ac_ct_RANLIB = @ac_ct_RANLIB@
    209210ac_ct_STRIP = @ac_ct_STRIP@
     211ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
    210212am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    211213am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    426428
    427429test: ../src/cbc-generic$(EXEEXT) ../src/cbc$(EXEEXT)
    428         cd ../../Data/Netlib; make uncompress
    429         cd ../../Data/miplib3; make uncompress
     430        cd ../../Data/Netlib; $(MAKE) uncompress
     431        cd ../../Data/miplib3; $(MAKE) uncompress
    430432        ../src/cbc-generic$(EXEEXT) -miplib -unitTest
    431433        ../src/cbc$(EXEEXT) -unitTest -netlib
  • trunk/Makefile.am

    r344 r527  
    2424
    2525test: all
    26         cd Cbc; make test
     26        cd Cbc; $(MAKE) test
    2727
    2828unitTest: test
     
    3131        for dir in $(subdirs); do \
    3232          if test -r $$dir/test/Makefile; then \
    33             (cd $$dir; make test) \
     33            (cd $$dir; $(MAKE) test) \
    3434          fi; \
    3535        done
  • trunk/Makefile.in

    r458 r527  
    5050PRE_UNINSTALL = :
    5151POST_UNINSTALL = :
     52build_triplet = @build@
     53host_triplet = @host@
    5254DIST_COMMON = README $(am__configure_deps) \
    5355        $(srcdir)/BuildTools/Makemain.inc $(srcdir)/Makefile.am \
     
    8991distcleancheck_listfiles = find . -type f -print
    9092ACLOCAL = @ACLOCAL@
     93ADD_CFLAGS = @ADD_CFLAGS@
     94ADD_CXXFLAGS = @ADD_CXXFLAGS@
     95ADD_FFLAGS = @ADD_FFLAGS@
     96AMDEP_FALSE = @AMDEP_FALSE@
     97AMDEP_TRUE = @AMDEP_TRUE@
    9198AMTAR = @AMTAR@
     99AR = @AR@
    92100AUTOCONF = @AUTOCONF@
    93101AUTOHEADER = @AUTOHEADER@
     
    96104AWK = @AWK@
    97105BUILDTOOLSDIR = @BUILDTOOLSDIR@
     106CC = @CC@
     107CCDEPMODE = @CCDEPMODE@
     108CDEFS = @CDEFS@
     109CFLAGS = @CFLAGS@
    98110COIN_SKIP_PROJECTS = @COIN_SKIP_PROJECTS@
     111CPP = @CPP@
     112CPPFLAGS = @CPPFLAGS@
     113CXX = @CXX@
     114CXXCPP = @CXXCPP@
     115CXXDEFS = @CXXDEFS@
     116CXXDEPMODE = @CXXDEPMODE@
     117CXXFLAGS = @CXXFLAGS@
    99118CYGPATH_W = @CYGPATH_W@
     119DBG_CFLAGS = @DBG_CFLAGS@
     120DBG_CXXFLAGS = @DBG_CXXFLAGS@
     121DBG_FFLAGS = @DBG_FFLAGS@
    100122DEFS = @DEFS@
     123DEPDIR = @DEPDIR@
     124ECHO = @ECHO@
    101125ECHO_C = @ECHO_C@
    102126ECHO_N = @ECHO_N@
    103127ECHO_T = @ECHO_T@
    104128EGREP = @EGREP@
     129EXEEXT = @EXEEXT@
     130F77 = @F77@
     131FFLAGS = @FFLAGS@
    105132HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    106133HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    109136INSTALL_SCRIPT = @INSTALL_SCRIPT@
    110137INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
     138LDFLAGS = @LDFLAGS@
    111139LIBEXT = @LIBEXT@
    112140LIBOBJS = @LIBOBJS@
    113141LIBS = @LIBS@
     142LIBTOOL = @LIBTOOL@
    114143LIBTOOLM4 = @LIBTOOLM4@
     144LN_S = @LN_S@
    115145LTLIBOBJS = @LTLIBOBJS@
     146LT_LDFLAGS = @LT_LDFLAGS@
    116147MAINT = @MAINT@
    117148MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
    118149MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    119150MAKEINFO = @MAKEINFO@
     151MPICC = @MPICC@
     152MPICXX = @MPICXX@
     153MPIF77 = @MPIF77@
     154OBJEXT = @OBJEXT@
     155OPT_CFLAGS = @OPT_CFLAGS@
     156OPT_CXXFLAGS = @OPT_CXXFLAGS@
     157OPT_FFLAGS = @OPT_FFLAGS@
    120158PACKAGE = @PACKAGE@
    121159PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
     
    125163PACKAGE_VERSION = @PACKAGE_VERSION@
    126164PATH_SEPARATOR = @PATH_SEPARATOR@
     165RANLIB = @RANLIB@
     166RPATH_FLAGS = @RPATH_FLAGS@
    127167SET_MAKE = @SET_MAKE@
    128168SHELL = @SHELL@
     
    134174abs_lib_dir = @abs_lib_dir@
    135175abs_source_dir = @abs_source_dir@
     176ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
     177ac_ct_AR = @ac_ct_AR@
     178ac_ct_CC = @ac_ct_CC@
     179ac_ct_CXX = @ac_ct_CXX@
     180ac_ct_F77 = @ac_ct_F77@
     181ac_ct_RANLIB = @ac_ct_RANLIB@
    136182ac_ct_STRIP = @ac_ct_STRIP@
     183ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     184am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
     185am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     186am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
     187am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
     188am__include = @am__include@
    137189am__leading_dot = @am__leading_dot@
     190am__quote = @am__quote@
    138191am__tar = @am__tar@
    139192am__untar = @am__untar@
    140193bindir = @bindir@
     194build = @build@
    141195build_alias = @build_alias@
     196build_cpu = @build_cpu@
     197build_os = @build_os@
     198build_vendor = @build_vendor@
    142199datadir = @datadir@
    143200exec_prefix = @exec_prefix@
     
    145202have_automake = @have_automake@
    146203have_svn = @have_svn@
     204host = @host@
    147205host_alias = @host_alias@
     206host_cpu = @host_cpu@
     207host_os = @host_os@
     208host_vendor = @host_vendor@
    148209includedir = @includedir@
    149210infodir = @infodir@
     
    215276$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    216277        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     278
     279mostlyclean-libtool:
     280        -rm -f *.lo
     281
     282clean-libtool:
     283        -rm -rf .libs _libs
     284
     285distclean-libtool:
     286        -rm -f libtool
    217287uninstall-info-am:
    218288
     
    523593clean: clean-recursive
    524594
    525 clean-am: clean-generic mostlyclean-am
     595clean-am: clean-generic clean-libtool mostlyclean-am
    526596
    527597distclean: distclean-recursive
    528598        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    529599        -rm -f Makefile
    530 distclean-am: clean-am distclean-generic distclean-tags
     600distclean-am: clean-am distclean-generic distclean-libtool \
     601        distclean-tags
    531602
    532603dvi: dvi-recursive
     
    558629mostlyclean: mostlyclean-recursive
    559630
    560 mostlyclean-am: mostlyclean-generic
     631mostlyclean-am: mostlyclean-generic mostlyclean-libtool
    561632
    562633pdf: pdf-recursive
     
    573644
    574645.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
    575         check-am clean clean-generic clean-recursive ctags \
    576         ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
    577         dist-tarZ dist-zip distcheck distclean distclean-generic \
    578         distclean-recursive distclean-tags distcleancheck distdir \
    579         distuninstallcheck dvi dvi-am html html-am info info-am \
    580         install install-am install-data install-data-am install-exec \
    581         install-exec-am install-info install-info-am install-man \
    582         install-strip installcheck installcheck-am installdirs \
    583         installdirs-am maintainer-clean maintainer-clean-generic \
     646        check-am clean clean-generic clean-libtool clean-recursive \
     647        ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
     648        dist-shar dist-tarZ dist-zip distcheck distclean \
     649        distclean-generic distclean-libtool distclean-recursive \
     650        distclean-tags distcleancheck distdir distuninstallcheck dvi \
     651        dvi-am html html-am info info-am install install-am \
     652        install-data install-data-am install-exec install-exec-am \
     653        install-info install-info-am install-man install-strip \
     654        installcheck installcheck-am installdirs installdirs-am \
     655        maintainer-clean maintainer-clean-generic \
    584656        maintainer-clean-recursive mostlyclean mostlyclean-generic \
    585         mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
    586         uninstall uninstall-am uninstall-info-am
     657        mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
     658        tags tags-recursive uninstall uninstall-am uninstall-info-am
    587659
    588660
     
    592664
    593665test: all
    594         cd Cbc; make test
     666        cd Cbc; $(MAKE) test
    595667
    596668unitTest: test
     
    599671        for dir in $(subdirs); do \
    600672          if test -r $$dir/test/Makefile; then \
    601             (cd $$dir; make test) \
     673            (cd $$dir; $(MAKE) test) \
    602674          fi; \
    603675        done
  • trunk/configure

    r458 r527  
    251251
    252252
     253
     254# Check that we are running under the correct shell.
     255SHELL=${CONFIG_SHELL-/bin/sh}
     256
     257case X$ECHO in
     258X*--fallback-echo)
     259  # Remove one level of quotation (which was required for Make).
     260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
     261  ;;
     262esac
     263
     264echo=${ECHO-echo}
     265if test "X$1" = X--no-reexec; then
     266  # Discard the --no-reexec flag, and continue.
     267  shift
     268elif test "X$1" = X--fallback-echo; then
     269  # Avoid inline document here, it may be left over
     270  :
     271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
     272  # Yippee, $echo works!
     273  :
     274else
     275  # Restart under the correct shell.
     276  exec $SHELL "$0" --no-reexec ${1+"$@"}
     277fi
     278
     279if test "X$1" = X--fallback-echo; then
     280  # used as fallback echo
     281  shift
     282  cat <<EOF
     283$*
     284EOF
     285  exit 0
     286fi
     287
     288# The HP-UX ksh and POSIX shell print the target directory to stdout
     289# if CDPATH is set.
     290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     291
     292if test -z "$ECHO"; then
     293if test "X${echo_test_string+set}" != Xset; then
     294# find a string as large as possible, as long as the shell can cope with it
     295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
     296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
     297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
     298       echo_test_string=`eval $cmd` &&
     299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
     300    then
     301      break
     302    fi
     303  done
     304fi
     305
     306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
     307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
     308   test "X$echo_testing_string" = "X$echo_test_string"; then
     309  :
     310else
     311  # The Solaris, AIX, and Digital Unix default echo programs unquote
     312  # backslashes.  This makes it impossible to quote backslashes using
     313  #   echo "$something" | sed 's/\\/\\\\/g'
     314  #
     315  # So, first we look for a working echo in the user's PATH.
     316
     317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     318  for dir in $PATH /usr/ucb; do
     319    IFS="$lt_save_ifs"
     320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
     321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
     322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
     323       test "X$echo_testing_string" = "X$echo_test_string"; then
     324      echo="$dir/echo"
     325      break
     326    fi
     327  done
     328  IFS="$lt_save_ifs"
     329
     330  if test "X$echo" = Xecho; then
     331    # We didn't find a better echo, so look for alternatives.
     332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
     333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
     334       test "X$echo_testing_string" = "X$echo_test_string"; then
     335      # This shell has a builtin print -r that does the trick.
     336      echo='print -r'
     337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
     338         test "X$CONFIG_SHELL" != X/bin/ksh; then
     339      # If we have ksh, try running configure again with it.
     340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     341      export ORIGINAL_CONFIG_SHELL
     342      CONFIG_SHELL=/bin/ksh
     343      export CONFIG_SHELL
     344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
     345    else
     346      # Try using printf.
     347      echo='printf %s\n'
     348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
     349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
     350         test "X$echo_testing_string" = "X$echo_test_string"; then
     351        # Cool, printf works
     352        :
     353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     354           test "X$echo_testing_string" = 'X\t' &&
     355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     356           test "X$echo_testing_string" = "X$echo_test_string"; then
     357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
     358        export CONFIG_SHELL
     359        SHELL="$CONFIG_SHELL"
     360        export SHELL
     361        echo="$CONFIG_SHELL $0 --fallback-echo"
     362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     363           test "X$echo_testing_string" = 'X\t' &&
     364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     365           test "X$echo_testing_string" = "X$echo_test_string"; then
     366        echo="$CONFIG_SHELL $0 --fallback-echo"
     367      else
     368        # maybe with a smaller string...
     369        prev=:
     370
     371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
     372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
     373          then
     374            break
     375          fi
     376          prev="$cmd"
     377        done
     378
     379        if test "$prev" != 'sed 50q "$0"'; then
     380          echo_test_string=`eval $prev`
     381          export echo_test_string
     382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
     383        else
     384          # Oops.  We lost completely, so just stick with echo.
     385          echo=echo
     386        fi
     387      fi
     388    fi
     389  fi
     390fi
     391fi
     392
     393# Copy echo and quote the copy suitably for passing to libtool from
     394# the Makefile, instead of quoting the original, which is used later.
     395ECHO=$echo
     396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
     397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
     398fi
     399
     400
     401
     402
     403tagnames=${tagnames+${tagnames},}CXX
     404
     405tagnames=${tagnames+${tagnames},}F77
     406
    253407# Name of the host.
    254408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     
    283437ac_unique_file="configure.ac"
    284438ac_default_prefix=`pwd`
     439# Factoring default headers for most tests.
     440ac_includes_default="\
     441#include <stdio.h>
     442#if HAVE_SYS_TYPES_H
     443# include <sys/types.h>
     444#endif
     445#if HAVE_SYS_STAT_H
     446# include <sys/stat.h>
     447#endif
     448#if STDC_HEADERS
     449# include <stdlib.h>
     450# include <stddef.h>
     451#else
     452# if HAVE_STDLIB_H
     453#  include <stdlib.h>
     454# endif
     455#endif
     456#if HAVE_STRING_H
     457# if !STDC_HEADERS && HAVE_MEMORY_H
     458#  include <memory.h>
     459# endif
     460# include <string.h>
     461#endif
     462#if HAVE_STRINGS_H
     463# include <strings.h>
     464#endif
     465#if HAVE_INTTYPES_H
     466# include <inttypes.h>
     467#else
     468# if HAVE_STDINT_H
     469#  include <stdint.h>
     470# endif
     471#endif
     472#if HAVE_UNISTD_H
     473# include <unistd.h>
     474#endif"
     475
    285476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
    286477ac_subdirs_all="$ac_subdirs_all CoinUtils"
     
    293484ac_subdirs_all="$ac_subdirs_all Cgl"
    294485ac_subdirs_all="$ac_subdirs_all Cbc"
    295 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     486ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    296487ac_subst_files=''
    297488
     
    734925ac_cv_env_target_alias_set=${target_alias+set}
    735926ac_cv_env_target_alias_value=$target_alias
     927ac_env_CDEFS_set=${CDEFS+set}
     928ac_env_CDEFS_value=$CDEFS
     929ac_cv_env_CDEFS_set=${CDEFS+set}
     930ac_cv_env_CDEFS_value=$CDEFS
     931ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     932ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
     933ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     934ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
     935ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     936ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
     937ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     938ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
     939ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     940ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
     941ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     942ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
     943ac_env_CC_set=${CC+set}
     944ac_env_CC_value=$CC
     945ac_cv_env_CC_set=${CC+set}
     946ac_cv_env_CC_value=$CC
     947ac_env_CFLAGS_set=${CFLAGS+set}
     948ac_env_CFLAGS_value=$CFLAGS
     949ac_cv_env_CFLAGS_set=${CFLAGS+set}
     950ac_cv_env_CFLAGS_value=$CFLAGS
     951ac_env_LDFLAGS_set=${LDFLAGS+set}
     952ac_env_LDFLAGS_value=$LDFLAGS
     953ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     954ac_cv_env_LDFLAGS_value=$LDFLAGS
     955ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     956ac_env_CPPFLAGS_value=$CPPFLAGS
     957ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     958ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     959ac_env_MPICC_set=${MPICC+set}
     960ac_env_MPICC_value=$MPICC
     961ac_cv_env_MPICC_set=${MPICC+set}
     962ac_cv_env_MPICC_value=$MPICC
     963ac_env_CXXDEFS_set=${CXXDEFS+set}
     964ac_env_CXXDEFS_value=$CXXDEFS
     965ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
     966ac_cv_env_CXXDEFS_value=$CXXDEFS
     967ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
     968ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
     969ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
     970ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
     971ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
     972ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
     973ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
     974ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
     975ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
     976ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
     977ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
     978ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
     979ac_env_CXX_set=${CXX+set}
     980ac_env_CXX_value=$CXX
     981ac_cv_env_CXX_set=${CXX+set}
     982ac_cv_env_CXX_value=$CXX
     983ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     984ac_env_CXXFLAGS_value=$CXXFLAGS
     985ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     986ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     987ac_env_MPICXX_set=${MPICXX+set}
     988ac_env_MPICXX_value=$MPICXX
     989ac_cv_env_MPICXX_set=${MPICXX+set}
     990ac_cv_env_MPICXX_value=$MPICXX
     991ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
     992ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
     993ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
     994ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
     995ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
     996ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
     997ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
     998ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
     999ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
     1000ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
     1001ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
     1002ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
     1003ac_env_F77_set=${F77+set}
     1004ac_env_F77_value=$F77
     1005ac_cv_env_F77_set=${F77+set}
     1006ac_cv_env_F77_value=$F77
     1007ac_env_FFLAGS_set=${FFLAGS+set}
     1008ac_env_FFLAGS_value=$FFLAGS
     1009ac_cv_env_FFLAGS_set=${FFLAGS+set}
     1010ac_cv_env_FFLAGS_value=$FFLAGS
     1011ac_env_MPIF77_set=${MPIF77+set}
     1012ac_env_MPIF77_value=$MPIF77
     1013ac_cv_env_MPIF77_set=${MPIF77+set}
     1014ac_cv_env_MPIF77_value=$MPIF77
     1015ac_env_CPP_set=${CPP+set}
     1016ac_env_CPP_value=$CPP
     1017ac_cv_env_CPP_set=${CPP+set}
     1018ac_cv_env_CPP_value=$CPP
     1019ac_env_CXXCPP_set=${CXXCPP+set}
     1020ac_env_CXXCPP_value=$CXXCPP
     1021ac_cv_env_CXXCPP_set=${CXXCPP+set}
     1022ac_cv_env_CXXCPP_value=$CXXCPP
    7361023ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
    7371024ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
     
    8031090  --program-suffix=SUFFIX            append SUFFIX to installed program names
    8041091  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     1092
     1093System types:
     1094  --build=BUILD     configure for building on BUILD [guessed]
     1095  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    8051096_ACEOF
    8061097fi
     
    8151106  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    8161107  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     1108  --enable-debug          compile all projects with debug options tests
     1109  --enable-doscompile     Under Cygwin, compile so that executables run under
     1110                          DOS. Set to mingw to use gcc/g++/ld with
     1111                          -mno-cygwin. Set to msvc to use cl/link. Default
     1112                          when mentioned: mingw. Default when not mentioned:
     1113                          disabled.
     1114  --enable-static[=PKGS]
     1115                          build static libraries [default=no]
     1116  --disable-dependency-tracking  speeds up one-time build
     1117  --enable-dependency-tracking   do not reject slow dependency extractors
    8171118  --enable-maintainer-mode  enable make rules and dependencies not useful
    8181119                          (and sometimes confusing) to the casual installer
     1120  --enable-shared[=PKGS]
     1121                          build shared libraries [default=yes]
     1122  --enable-fast-install[=PKGS]
     1123                          optimize for fast installation [default=yes]
     1124  --disable-libtool-lock  avoid locking (might break parallel builds)
     1125
     1126Optional Packages:
     1127  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     1128  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1129  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
     1130  --with-pic              try to use only PIC/non-PIC objects [default=use
     1131                          both]
     1132  --with-tags[=TAGS]
     1133                          include additional configurations [automatic]
    8191134
    8201135Some influential environment variables:
     1136  CDEFS       Additional -D flags to be used when compiling C code.
     1137  ADD_CFLAGS  Additional C compiler options
     1138  DBG_CFLAGS  Debug C compiler options
     1139  OPT_CFLAGS  Optimize C compiler options
     1140  CC          C compiler command
     1141  CFLAGS      C compiler flags
     1142  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     1143              nonstandard directory <lib dir>
     1144  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     1145              headers in a nonstandard directory <include dir>
     1146  MPICC       C MPI Compiler
     1147  CXXDEFS     Additional -D flags to be used when compiling C++ code.
     1148  ADD_CXXFLAGS
     1149              Additional C++ compiler options
     1150  DBG_CXXFLAGS
     1151              Debug C++ compiler options
     1152  OPT_CXXFLAGS
     1153              Optimize C++ compiler options
     1154  CXX         C++ compiler command
     1155  CXXFLAGS    C++ compiler flags
     1156  MPICXX      C++ MPI Compiler
     1157  ADD_FFLAGS  Additional Fortran compiler options
     1158  DBG_FFLAGS  Debug Fortran compiler options
     1159  OPT_FFLAGS  Optimize Fortran compiler options
     1160  F77         Fortran 77 compiler command
     1161  FFLAGS      Fortran 77 compiler flags
     1162  MPIF77      Fortran MPI Compiler
     1163  CPP         C preprocessor
     1164  CXXCPP      C++ preprocessor
    8211165  COIN_SKIP_PROJECTS
    8221166              Set to the subdirectories of projects that should be skipped in
     
    12941638
    12951639#############################################################################
    1296 #     We only need automake to generate Makefiles for the distribution      #
     1640#              Create the libtool script for the subdirectories             #
    12971641#############################################################################
    12981642
    1299 # Initialize automake
    1300 echo "$as_me:$LINENO: checking for egrep" >&5
    1301 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    1302 if test "${ac_cv_prog_egrep+set}" = set; then
    1303   echo $ECHO_N "(cached) $ECHO_C" >&6
    1304 else
    1305   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    1306     then ac_cv_prog_egrep='grep -E'
    1307     else ac_cv_prog_egrep='egrep'
    1308     fi
    1309 fi
    1310 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    1311 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    1312  EGREP=$ac_cv_prog_egrep
    1313 
    1314 
    1315 am__api_version="1.9"
    13161643ac_aux_dir=
    13171644for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    13391666ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    13401667
     1668# Make sure we can run config.sub.
     1669$ac_config_sub sun4 >/dev/null 2>&1 ||
     1670  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     1671echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     1672   { (exit 1); exit 1; }; }
     1673
     1674echo "$as_me:$LINENO: checking build system type" >&5
     1675echo $ECHO_N "checking build system type... $ECHO_C" >&6
     1676if test "${ac_cv_build+set}" = set; then
     1677  echo $ECHO_N "(cached) $ECHO_C" >&6
     1678else
     1679  ac_cv_build_alias=$build_alias
     1680test -z "$ac_cv_build_alias" &&
     1681  ac_cv_build_alias=`$ac_config_guess`
     1682test -z "$ac_cv_build_alias" &&
     1683  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     1684echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     1685   { (exit 1); exit 1; }; }
     1686ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     1687  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     1688echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     1689   { (exit 1); exit 1; }; }
     1690
     1691fi
     1692echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     1693echo "${ECHO_T}$ac_cv_build" >&6
     1694build=$ac_cv_build
     1695build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1696build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1697build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1698
     1699
     1700
     1701# Check if user wants to produce debugging code
     1702
     1703echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
     1704echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
     1705
     1706# Check whether --enable-debug or --disable-debug was given.
     1707if test "${enable_debug+set}" = set; then
     1708  enableval="$enable_debug"
     1709  case "${enableval}" in
     1710   yes) coin_debug_compile=true
     1711        enable_shared=no
     1712        ;;
     1713   no)  coin_debug_compile=false
     1714        ;;
     1715   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
     1716echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
     1717   { (exit 1); exit 1; }; }
     1718        ;;
     1719esac
     1720else
     1721  coin_debug_compile=false
     1722fi;
     1723
     1724 # m4_ifvaln([],
     1725
     1726if test $coin_debug_compile = true; then
     1727  echo "$as_me:$LINENO: result: yes" >&5
     1728echo "${ECHO_T}yes" >&6
     1729else
     1730  echo "$as_me:$LINENO: result: no" >&5
     1731echo "${ECHO_T}no" >&6
     1732fi
     1733
     1734 # m4_ifvaln([],
     1735
     1736
     1737
     1738# Get the name of the C compiler and appropriate compiler options
     1739case $build in
     1740  *-mingw*)
     1741    if test "${LD+set}" = set; then :; else
     1742      LD=link
     1743    fi
     1744    ;;
     1745 esac
     1746 case $enable_doscompile in
     1747   msvc)
     1748     if test "x${LD+set}" = xset; then :; else
     1749       LD=link
     1750     fi
     1751     ;;
     1752 esac
     1753
     1754
     1755 # Check whether --enable-doscompile or --disable-doscompile was given.
     1756if test "${enable_doscompile+set}" = set; then
     1757  enableval="$enable_doscompile"
     1758  if test "$enable_doscompile" != no; then
     1759     case $build in
     1760       *-cygwin*) ;;
     1761       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
     1762echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
     1763   { (exit 1); exit 1; }; } ;;
     1764     esac
     1765   fi
     1766else
     1767  enable_doscompile=no
     1768fi;
     1769 case "$enable_doscompile" in
     1770   msvc|mingw|no) ;;
     1771   yes) enable_doscompile=mingw ;;
     1772   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
     1773                    Try configure --help=recursive." >&5
     1774echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
     1775                    Try configure --help=recursive." >&2;}
     1776   { (exit 1); exit 1; }; }
     1777      ;;
     1778  esac
     1779  if test "$enable_doscompile" != no ; then
     1780    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
     1781echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
     1782  fi
     1783
     1784
     1785
     1786
     1787ac_ext=c
     1788ac_cpp='$CPP $CPPFLAGS'
     1789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1791ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1792
     1793
     1794# For consistency, we set the C compiler to the same value of the C++
     1795# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
     1796if test x"$CXX" != x; then
     1797  case "$CXX" in
     1798    cl* | */cl* | CL* | */CL*)
     1799      if test x"$CC" = x; then
     1800        CC="$CXX"
     1801        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
     1802echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
     1803      fi
     1804      ;;
     1805  esac
     1806fi
     1807
     1808
     1809
     1810
     1811
     1812
     1813coin_has_cc=yes
     1814
     1815save_cflags="$CFLAGS"
     1816# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
     1817# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
     1818# is likely to be a non-functional shell. But many installations will have
     1819# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
     1820case $build in
     1821  *-cygwin* | *-mingw*)
     1822             if test "$enable_doscompile" = msvc ; then
     1823               comps="cl"
     1824             else
     1825               comps="gcc cl"
     1826             fi ;;
     1827  sparc-sun-solaris*)
     1828             comps="cc xlc gcc pgcc icc" ;;
     1829  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
     1830  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     1831esac
     1832
     1833# We delete the cached value, since the test might not have been
     1834# performed with our choice of compilers earlier
     1835$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     1836# AC_MSG_NOTICE([C compiler candidates: $comps])
     1837ac_ext=c
     1838ac_cpp='$CPP $CPPFLAGS'
     1839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1841ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1842if test -n "$ac_tool_prefix"; then
     1843  for ac_prog in $comps
     1844  do
     1845    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1846set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1847echo "$as_me:$LINENO: checking for $ac_word" >&5
     1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1849if test "${ac_cv_prog_CC+set}" = set; then
     1850  echo $ECHO_N "(cached) $ECHO_C" >&6
     1851else
     1852  if test -n "$CC"; then
     1853  ac_cv_prog_CC="$CC" # Let the user override the test.
     1854else
     1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1856for as_dir in $PATH
     1857do
     1858  IFS=$as_save_IFS
     1859  test -z "$as_dir" && as_dir=.
     1860  for ac_exec_ext in '' $ac_executable_extensions; do
     1861  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1862    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1864    break 2
     1865  fi
     1866done
     1867done
     1868
     1869fi
     1870fi
     1871CC=$ac_cv_prog_CC
     1872if test -n "$CC"; then
     1873  echo "$as_me:$LINENO: result: $CC" >&5
     1874echo "${ECHO_T}$CC" >&6
     1875else
     1876  echo "$as_me:$LINENO: result: no" >&5
     1877echo "${ECHO_T}no" >&6
     1878fi
     1879
     1880    test -n "$CC" && break
     1881  done
     1882fi
     1883if test -z "$CC"; then
     1884  ac_ct_CC=$CC
     1885  for ac_prog in $comps
     1886do
     1887  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1888set dummy $ac_prog; ac_word=$2
     1889echo "$as_me:$LINENO: checking for $ac_word" >&5
     1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1892  echo $ECHO_N "(cached) $ECHO_C" >&6
     1893else
     1894  if test -n "$ac_ct_CC"; then
     1895  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1896else
     1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1898for as_dir in $PATH
     1899do
     1900  IFS=$as_save_IFS
     1901  test -z "$as_dir" && as_dir=.
     1902  for ac_exec_ext in '' $ac_executable_extensions; do
     1903  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1904    ac_cv_prog_ac_ct_CC="$ac_prog"
     1905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1906    break 2
     1907  fi
     1908done
     1909done
     1910
     1911fi
     1912fi
     1913ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1914if test -n "$ac_ct_CC"; then
     1915  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1916echo "${ECHO_T}$ac_ct_CC" >&6
     1917else
     1918  echo "$as_me:$LINENO: result: no" >&5
     1919echo "${ECHO_T}no" >&6
     1920fi
     1921
     1922  test -n "$ac_ct_CC" && break
     1923done
     1924
     1925  CC=$ac_ct_CC
     1926fi
     1927
     1928
     1929test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1930See \`config.log' for more details." >&5
     1931echo "$as_me: error: no acceptable C compiler found in \$PATH
     1932See \`config.log' for more details." >&2;}
     1933   { (exit 1); exit 1; }; }
     1934
     1935# Provide some information about the compiler.
     1936echo "$as_me:$LINENO:" \
     1937     "checking for C compiler version" >&5
     1938ac_compiler=`set X $ac_compile; echo $2`
     1939{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1940  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1941  ac_status=$?
     1942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1943  (exit $ac_status); }
     1944{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1945  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1946  ac_status=$?
     1947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1948  (exit $ac_status); }
     1949{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1950  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1951  ac_status=$?
     1952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1953  (exit $ac_status); }
     1954
     1955cat >conftest.$ac_ext <<_ACEOF
     1956/* confdefs.h.  */
     1957_ACEOF
     1958cat confdefs.h >>conftest.$ac_ext
     1959cat >>conftest.$ac_ext <<_ACEOF
     1960/* end confdefs.h.  */
     1961
     1962int
     1963main ()
     1964{
     1965
     1966  ;
     1967  return 0;
     1968}
     1969_ACEOF
     1970ac_clean_files_save=$ac_clean_files
     1971ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1972# Try to create an executable without -o first, disregard a.out.
     1973# It will help us diagnose broken compilers, and finding out an intuition
     1974# of exeext.
     1975echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1976echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1977ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1978if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1979  (eval $ac_link_default) 2>&5
     1980  ac_status=$?
     1981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1982  (exit $ac_status); }; then
     1983  # Find the output, starting from the most likely.  This scheme is
     1984# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1985# resort.
     1986
     1987# Be careful to initialize this variable, since it used to be cached.
     1988# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1989ac_cv_exeext=
     1990# b.out is created by i960 compilers.
     1991for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1992do
     1993  test -f "$ac_file" || continue
     1994  case $ac_file in
     1995    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1996        ;;
     1997    conftest.$ac_ext )
     1998        # This is the source file.
     1999        ;;
     2000    [ab].out )
     2001        # We found the default executable, but exeext='' is most
     2002        # certainly right.
     2003        break;;
     2004    *.* )
     2005        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2006        # FIXME: I believe we export ac_cv_exeext for Libtool,
     2007        # but it would be cool to find out if it's true.  Does anybody
     2008        # maintain Libtool? --akim.
     2009        export ac_cv_exeext
     2010        break;;
     2011    * )
     2012        break;;
     2013  esac
     2014done
     2015else
     2016  echo "$as_me: failed program was:" >&5
     2017sed 's/^/| /' conftest.$ac_ext >&5
     2018
     2019{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
     2020See \`config.log' for more details." >&5
     2021echo "$as_me: error: C compiler cannot create executables
     2022See \`config.log' for more details." >&2;}
     2023   { (exit 77); exit 77; }; }
     2024fi
     2025
     2026ac_exeext=$ac_cv_exeext
     2027echo "$as_me:$LINENO: result: $ac_file" >&5
     2028echo "${ECHO_T}$ac_file" >&6
     2029
     2030# Check the compiler produces executables we can run.  If not, either
     2031# the compiler is broken, or we cross compile.
     2032echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2033echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     2034# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     2035# If not cross compiling, check that we can run a simple program.
     2036if test "$cross_compiling" != yes; then
     2037  if { ac_try='./$ac_file'
     2038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2039  (eval $ac_try) 2>&5
     2040  ac_status=$?
     2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2042  (exit $ac_status); }; }; then
     2043    cross_compiling=no
     2044  else
     2045    if test "$cross_compiling" = maybe; then
     2046        cross_compiling=yes
     2047    else
     2048        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     2049If you meant to cross compile, use \`--host'.
     2050See \`config.log' for more details." >&5
     2051echo "$as_me: error: cannot run C compiled programs.
     2052If you meant to cross compile, use \`--host'.
     2053See \`config.log' for more details." >&2;}
     2054   { (exit 1); exit 1; }; }
     2055    fi
     2056  fi
     2057fi
     2058echo "$as_me:$LINENO: result: yes" >&5
     2059echo "${ECHO_T}yes" >&6
     2060
     2061rm -f a.out a.exe conftest$ac_cv_exeext b.out
     2062ac_clean_files=$ac_clean_files_save
     2063# Check the compiler produces executables we can run.  If not, either
     2064# the compiler is broken, or we cross compile.
     2065echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2066echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     2067echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2068echo "${ECHO_T}$cross_compiling" >&6
     2069
     2070echo "$as_me:$LINENO: checking for suffix of executables" >&5
     2071echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     2072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2073  (eval $ac_link) 2>&5
     2074  ac_status=$?
     2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2076  (exit $ac_status); }; then
     2077  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     2078# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     2079# work properly (i.e., refer to `conftest.exe'), while it won't with
     2080# `rm'.
     2081for ac_file in conftest.exe conftest conftest.*; do
     2082  test -f "$ac_file" || continue
     2083  case $ac_file in
     2084    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2085    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2086          export ac_cv_exeext
     2087          break;;
     2088    * ) break;;
     2089  esac
     2090done
     2091else
     2092  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     2093See \`config.log' for more details." >&5
     2094echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     2095See \`config.log' for more details." >&2;}
     2096   { (exit 1); exit 1; }; }
     2097fi
     2098
     2099rm -f conftest$ac_cv_exeext
     2100echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     2101echo "${ECHO_T}$ac_cv_exeext" >&6
     2102
     2103rm -f conftest.$ac_ext
     2104EXEEXT=$ac_cv_exeext
     2105ac_exeext=$EXEEXT
     2106echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2107echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     2108if test "${ac_cv_objext+set}" = set; then
     2109  echo $ECHO_N "(cached) $ECHO_C" >&6
     2110else
     2111  cat >conftest.$ac_ext <<_ACEOF
     2112/* confdefs.h.  */
     2113_ACEOF
     2114cat confdefs.h >>conftest.$ac_ext
     2115cat >>conftest.$ac_ext <<_ACEOF
     2116/* end confdefs.h.  */
     2117
     2118int
     2119main ()
     2120{
     2121
     2122  ;
     2123  return 0;
     2124}
     2125_ACEOF
     2126rm -f conftest.o conftest.obj
     2127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2128  (eval $ac_compile) 2>&5
     2129  ac_status=$?
     2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2131  (exit $ac_status); }; then
     2132  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     2133  case $ac_file in
     2134    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     2135    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     2136       break;;
     2137  esac
     2138done
     2139else
     2140  echo "$as_me: failed program was:" >&5
     2141sed 's/^/| /' conftest.$ac_ext >&5
     2142
     2143{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     2144See \`config.log' for more details." >&5
     2145echo "$as_me: error: cannot compute suffix of object files: cannot compile
     2146See \`config.log' for more details." >&2;}
     2147   { (exit 1); exit 1; }; }
     2148fi
     2149
     2150rm -f conftest.$ac_cv_objext conftest.$ac_ext
     2151fi
     2152echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     2153echo "${ECHO_T}$ac_cv_objext" >&6
     2154OBJEXT=$ac_cv_objext
     2155ac_objext=$OBJEXT
     2156echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2157echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     2158if test "${ac_cv_c_compiler_gnu+set}" = set; then
     2159  echo $ECHO_N "(cached) $ECHO_C" >&6
     2160else
     2161  cat >conftest.$ac_ext <<_ACEOF
     2162/* confdefs.h.  */
     2163_ACEOF
     2164cat confdefs.h >>conftest.$ac_ext
     2165cat >>conftest.$ac_ext <<_ACEOF
     2166/* end confdefs.h.  */
     2167
     2168int
     2169main ()
     2170{
     2171#ifndef __GNUC__
     2172       choke me
     2173#endif
     2174
     2175  ;
     2176  return 0;
     2177}
     2178_ACEOF
     2179rm -f conftest.$ac_objext
     2180if { (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_c_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  ac_compiler_gnu=yes
     2202else
     2203  echo "$as_me: failed program was:" >&5
     2204sed 's/^/| /' conftest.$ac_ext >&5
     2205
     2206ac_compiler_gnu=no
     2207fi
     2208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2209ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2210
     2211fi
     2212echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2213echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2214GCC=`test $ac_compiler_gnu = yes && echo yes`
     2215ac_test_CFLAGS=${CFLAGS+set}
     2216ac_save_CFLAGS=$CFLAGS
     2217CFLAGS="-g"
     2218echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2219echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2220if test "${ac_cv_prog_cc_g+set}" = set; then
     2221  echo $ECHO_N "(cached) $ECHO_C" >&6
     2222else
     2223  cat >conftest.$ac_ext <<_ACEOF
     2224/* confdefs.h.  */
     2225_ACEOF
     2226cat confdefs.h >>conftest.$ac_ext
     2227cat >>conftest.$ac_ext <<_ACEOF
     2228/* end confdefs.h.  */
     2229
     2230int
     2231main ()
     2232{
     2233
     2234  ;
     2235  return 0;
     2236}
     2237_ACEOF
     2238rm -f conftest.$ac_objext
     2239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2240  (eval $ac_compile) 2>conftest.er1
     2241  ac_status=$?
     2242  grep -v '^ *+' conftest.er1 >conftest.err
     2243  rm -f conftest.er1
     2244  cat conftest.err >&5
     2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2246  (exit $ac_status); } &&
     2247         { ac_try='test -z "$ac_c_werror_flag"
     2248                         || test ! -s conftest.err'
     2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2250  (eval $ac_try) 2>&5
     2251  ac_status=$?
     2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2253  (exit $ac_status); }; } &&
     2254         { ac_try='test -s conftest.$ac_objext'
     2255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2256  (eval $ac_try) 2>&5
     2257  ac_status=$?
     2258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2259  (exit $ac_status); }; }; then
     2260  ac_cv_prog_cc_g=yes
     2261else
     2262  echo "$as_me: failed program was:" >&5
     2263sed 's/^/| /' conftest.$ac_ext >&5
     2264
     2265ac_cv_prog_cc_g=no
     2266fi
     2267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2268fi
     2269echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2270echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     2271if test "$ac_test_CFLAGS" = set; then
     2272  CFLAGS=$ac_save_CFLAGS
     2273elif test $ac_cv_prog_cc_g = yes; then
     2274  if test "$GCC" = yes; then
     2275    CFLAGS="-g -O2"
     2276  else
     2277    CFLAGS="-g"
     2278  fi
     2279else
     2280  if test "$GCC" = yes; then
     2281    CFLAGS="-O2"
     2282  else
     2283    CFLAGS=
     2284  fi
     2285fi
     2286echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2287echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2288if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2289  echo $ECHO_N "(cached) $ECHO_C" >&6
     2290else
     2291  ac_cv_prog_cc_stdc=no
     2292ac_save_CC=$CC
     2293cat >conftest.$ac_ext <<_ACEOF
     2294/* confdefs.h.  */
     2295_ACEOF
     2296cat confdefs.h >>conftest.$ac_ext
     2297cat >>conftest.$ac_ext <<_ACEOF
     2298/* end confdefs.h.  */
     2299#include <stdarg.h>
     2300#include <stdio.h>
     2301#include <sys/types.h>
     2302#include <sys/stat.h>
     2303/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2304struct buf { int x; };
     2305FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2306static char *e (p, i)
     2307     char **p;
     2308     int i;
     2309{
     2310  return p[i];
     2311}
     2312static char *f (char * (*g) (char **, int), char **p, ...)
     2313{
     2314  char *s;
     2315  va_list v;
     2316  va_start (v,p);
     2317  s = g (p, va_arg (v,int));
     2318  va_end (v);
     2319  return s;
     2320}
     2321
     2322/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2323   function prototypes and stuff, but not '\xHH' hex character constants.
     2324   These don't provoke an error unfortunately, instead are silently treated
     2325   as 'x'.  The following induces an error, until -std1 is added to get
     2326   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2327   array size at least.  It's necessary to write '\x00'==0 to get something
     2328   that's true only with -std1.  */
     2329int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2330
     2331int test (int i, double x);
     2332struct s1 {int (*f) (int a);};
     2333struct s2 {int (*f) (double a);};
     2334int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2335int argc;
     2336char **argv;
     2337int
     2338main ()
     2339{
     2340return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2341  ;
     2342  return 0;
     2343}
     2344_ACEOF
     2345# Don't try gcc -ansi; that turns off useful extensions and
     2346# breaks some systems' header files.
     2347# AIX                   -qlanglvl=ansi
     2348# Ultrix and OSF/1      -std1
     2349# HP-UX 10.20 and later -Ae
     2350# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2351# SVR4                  -Xc -D__EXTENSIONS__
     2352for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2353do
     2354  CC="$ac_save_CC $ac_arg"
     2355  rm -f conftest.$ac_objext
     2356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2357  (eval $ac_compile) 2>conftest.er1
     2358  ac_status=$?
     2359  grep -v '^ *+' conftest.er1 >conftest.err
     2360  rm -f conftest.er1
     2361  cat conftest.err >&5
     2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2363  (exit $ac_status); } &&
     2364         { ac_try='test -z "$ac_c_werror_flag"
     2365                         || test ! -s conftest.err'
     2366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2367  (eval $ac_try) 2>&5
     2368  ac_status=$?
     2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2370  (exit $ac_status); }; } &&
     2371         { ac_try='test -s conftest.$ac_objext'
     2372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2373  (eval $ac_try) 2>&5
     2374  ac_status=$?
     2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2376  (exit $ac_status); }; }; then
     2377  ac_cv_prog_cc_stdc=$ac_arg
     2378break
     2379else
     2380  echo "$as_me: failed program was:" >&5
     2381sed 's/^/| /' conftest.$ac_ext >&5
     2382
     2383fi
     2384rm -f conftest.err conftest.$ac_objext
     2385done
     2386rm -f conftest.$ac_ext conftest.$ac_objext
     2387CC=$ac_save_CC
     2388
     2389fi
     2390
     2391case "x$ac_cv_prog_cc_stdc" in
     2392  x|xno)
     2393    echo "$as_me:$LINENO: result: none needed" >&5
     2394echo "${ECHO_T}none needed" >&6 ;;
     2395  *)
     2396    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2397echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2398    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2399esac
     2400
     2401# Some people use a C++ compiler to compile C.  Since we use `exit',
     2402# in C++ we need to declare it.  In case someone uses the same compiler
     2403# for both compiling C and C++ we need to have the C++ compiler decide
     2404# the declaration of exit, since it's the most demanding environment.
     2405cat >conftest.$ac_ext <<_ACEOF
     2406#ifndef __cplusplus
     2407  choke me
     2408#endif
     2409_ACEOF
     2410rm -f conftest.$ac_objext
     2411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2412  (eval $ac_compile) 2>conftest.er1
     2413  ac_status=$?
     2414  grep -v '^ *+' conftest.er1 >conftest.err
     2415  rm -f conftest.er1
     2416  cat conftest.err >&5
     2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2418  (exit $ac_status); } &&
     2419         { ac_try='test -z "$ac_c_werror_flag"
     2420                         || test ! -s conftest.err'
     2421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2422  (eval $ac_try) 2>&5
     2423  ac_status=$?
     2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2425  (exit $ac_status); }; } &&
     2426         { ac_try='test -s conftest.$ac_objext'
     2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2428  (eval $ac_try) 2>&5
     2429  ac_status=$?
     2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2431  (exit $ac_status); }; }; then
     2432  for ac_declaration in \
     2433   '' \
     2434   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2435   'extern "C" void std::exit (int); using std::exit;' \
     2436   'extern "C" void exit (int) throw ();' \
     2437   'extern "C" void exit (int);' \
     2438   'void exit (int);'
     2439do
     2440  cat >conftest.$ac_ext <<_ACEOF
     2441/* confdefs.h.  */
     2442_ACEOF
     2443cat confdefs.h >>conftest.$ac_ext
     2444cat >>conftest.$ac_ext <<_ACEOF
     2445/* end confdefs.h.  */
     2446$ac_declaration
     2447#include <stdlib.h>
     2448int
     2449main ()
     2450{
     2451exit (42);
     2452  ;
     2453  return 0;
     2454}
     2455_ACEOF
     2456rm -f conftest.$ac_objext
     2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2458  (eval $ac_compile) 2>conftest.er1
     2459  ac_status=$?
     2460  grep -v '^ *+' conftest.er1 >conftest.err
     2461  rm -f conftest.er1
     2462  cat conftest.err >&5
     2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2464  (exit $ac_status); } &&
     2465         { ac_try='test -z "$ac_c_werror_flag"
     2466                         || test ! -s conftest.err'
     2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2468  (eval $ac_try) 2>&5
     2469  ac_status=$?
     2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2471  (exit $ac_status); }; } &&
     2472         { ac_try='test -s conftest.$ac_objext'
     2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2474  (eval $ac_try) 2>&5
     2475  ac_status=$?
     2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2477  (exit $ac_status); }; }; then
     2478  :
     2479else
     2480  echo "$as_me: failed program was:" >&5
     2481sed 's/^/| /' conftest.$ac_ext >&5
     2482
     2483continue
     2484fi
     2485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2486  cat >conftest.$ac_ext <<_ACEOF
     2487/* confdefs.h.  */
     2488_ACEOF
     2489cat confdefs.h >>conftest.$ac_ext
     2490cat >>conftest.$ac_ext <<_ACEOF
     2491/* end confdefs.h.  */
     2492$ac_declaration
     2493int
     2494main ()
     2495{
     2496exit (42);
     2497  ;
     2498  return 0;
     2499}
     2500_ACEOF
     2501rm -f conftest.$ac_objext
     2502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2503  (eval $ac_compile) 2>conftest.er1
     2504  ac_status=$?
     2505  grep -v '^ *+' conftest.er1 >conftest.err
     2506  rm -f conftest.er1
     2507  cat conftest.err >&5
     2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2509  (exit $ac_status); } &&
     2510         { ac_try='test -z "$ac_c_werror_flag"
     2511                         || test ! -s conftest.err'
     2512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2513  (eval $ac_try) 2>&5
     2514  ac_status=$?
     2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2516  (exit $ac_status); }; } &&
     2517         { ac_try='test -s conftest.$ac_objext'
     2518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2519  (eval $ac_try) 2>&5
     2520  ac_status=$?
     2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2522  (exit $ac_status); }; }; then
     2523  break
     2524else
     2525  echo "$as_me: failed program was:" >&5
     2526sed 's/^/| /' conftest.$ac_ext >&5
     2527
     2528fi
     2529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2530done
     2531rm -f conftest*
     2532if test -n "$ac_declaration"; then
     2533  echo '#ifdef __cplusplus' >>confdefs.h
     2534  echo $ac_declaration      >>confdefs.h
     2535  echo '#endif'             >>confdefs.h
     2536fi
     2537
     2538else
     2539  echo "$as_me: failed program was:" >&5
     2540sed 's/^/| /' conftest.$ac_ext >&5
     2541
     2542fi
     2543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2544ac_ext=c
     2545ac_cpp='$CPP $CPPFLAGS'
     2546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2548ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2549
     2550if test -z "$CC" ; then
     2551  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
     2552echo "$as_me: error: Failed to find a C compiler!" >&2;}
     2553   { (exit 1); exit 1; }; }
     2554fi
     2555# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     2556case "$CC" in
     2557  cl* | */cl* | CL* | */CL* )
     2558    if test "$ac_cv_prog_cc_g" = yes ; then
     2559      ac_cv_prog_cc_g=no
     2560      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     2561echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     2562    fi ;;
     2563esac
     2564CFLAGS="$save_cflags"
     2565
     2566# Check if a project specific CFLAGS variable has been set
     2567if test x$COIN_PRJCT != x; then
     2568  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
     2569  if test x$coin_tmp = xset; then
     2570    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
     2571  fi
     2572fi
     2573
     2574if test x"$CFLAGS" = x; then
     2575
     2576  coin_add_cflags=
     2577  coin_opt_cflags=
     2578  coin_dbg_cflags=
     2579  coin_warn_cflags=
     2580
     2581  if test "$GCC" = "yes"; then
     2582    case "$CC" in
     2583      icc* | */icc*)
     2584        ;;
     2585      *)
     2586        coin_opt_cflags="-O3 -fomit-frame-pointer"
     2587        coin_add_cflags="-pipe"
     2588        coin_dbg_cflags="-g"
     2589        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
     2590        case $enable_doscompile in
     2591          mingw)
     2592            CFLAGS="-mno-cygwin"
     2593            cat >conftest.$ac_ext <<_ACEOF
     2594/* confdefs.h.  */
     2595_ACEOF
     2596cat confdefs.h >>conftest.$ac_ext
     2597cat >>conftest.$ac_ext <<_ACEOF
     2598/* end confdefs.h.  */
     2599
     2600int
     2601main ()
     2602{
     2603int i=0; i++;
     2604  ;
     2605  return 0;
     2606}
     2607_ACEOF
     2608rm -f conftest.$ac_objext conftest$ac_exeext
     2609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2610  (eval $ac_link) 2>conftest.er1
     2611  ac_status=$?
     2612  grep -v '^ *+' conftest.er1 >conftest.err
     2613  rm -f conftest.er1
     2614  cat conftest.err >&5
     2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2616  (exit $ac_status); } &&
     2617         { ac_try='test -z "$ac_c_werror_flag"
     2618                         || test ! -s conftest.err'
     2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2620  (eval $ac_try) 2>&5
     2621  ac_status=$?
     2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2623  (exit $ac_status); }; } &&
     2624         { ac_try='test -s conftest$ac_exeext'
     2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2626  (eval $ac_try) 2>&5
     2627  ac_status=$?
     2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2629  (exit $ac_status); }; }; then
     2630  coin_add_cflags="-mno-cygwin $coin_add_cflags"
     2631else
     2632  echo "$as_me: failed program was:" >&5
     2633sed 's/^/| /' conftest.$ac_ext >&5
     2634
     2635fi
     2636rm -f conftest.err conftest.$ac_objext \
     2637      conftest$ac_exeext conftest.$ac_ext
     2638            CFLAGS=
     2639          ;;
     2640        esac
     2641    esac
     2642  fi
     2643  if test -z "$coin_opt_cflags"; then
     2644    case $build in
     2645      *-cygwin* | *-mingw*)
     2646        case "$CC" in
     2647          cl* | */cl* | CL* | */CL*)
     2648            coin_opt_cflags='-MT -O2'
     2649            coin_add_cflags='-nologo -wd4996'
     2650            coin_dbg_cflags='-MTd'
     2651            ;;
     2652        esac
     2653        ;;
     2654      *-linux-*)
     2655        case "$CC" in
     2656          icc* | */icc*)
     2657            coin_opt_cflags="-O3 -ip"
     2658            coin_add_cflags=""
     2659            coin_dbg_cflags="-g"
     2660            # Check if -i_dynamic is necessary (for new glibc library)
     2661            CFLAGS=
     2662            cat >conftest.$ac_ext <<_ACEOF
     2663/* confdefs.h.  */
     2664_ACEOF
     2665cat confdefs.h >>conftest.$ac_ext
     2666cat >>conftest.$ac_ext <<_ACEOF
     2667/* end confdefs.h.  */
     2668
     2669int
     2670main ()
     2671{
     2672int i=0; i++;
     2673  ;
     2674  return 0;
     2675}
     2676_ACEOF
     2677rm -f conftest.$ac_objext conftest$ac_exeext
     2678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2679  (eval $ac_link) 2>conftest.er1
     2680  ac_status=$?
     2681  grep -v '^ *+' conftest.er1 >conftest.err
     2682  rm -f conftest.er1
     2683  cat conftest.err >&5
     2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2685  (exit $ac_status); } &&
     2686         { ac_try='test -z "$ac_c_werror_flag"
     2687                         || test ! -s conftest.err'
     2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2689  (eval $ac_try) 2>&5
     2690  ac_status=$?
     2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2692  (exit $ac_status); }; } &&
     2693         { ac_try='test -s conftest$ac_exeext'
     2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2695  (eval $ac_try) 2>&5
     2696  ac_status=$?
     2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2698  (exit $ac_status); }; }; then
     2699  :
     2700else
     2701  echo "$as_me: failed program was:" >&5
     2702sed 's/^/| /' conftest.$ac_ext >&5
     2703
     2704coin_add_cflags="-i_dynamic $coin_add_cflags"
     2705fi
     2706rm -f conftest.err conftest.$ac_objext \
     2707      conftest$ac_exeext conftest.$ac_ext
     2708            ;;
     2709          pgcc* | */pgcc*)
     2710            coin_opt_cflags="-fast"
     2711            coin_add_cflags="-Kieee -pc 64"
     2712            coin_dbg_cflags="-g"
     2713            ;;
     2714        esac
     2715        ;;
     2716      *-ibm-*)
     2717        case "$CC" in
     2718          xlc* | */xlc* | mpxlc* | */mpxlc*)
     2719            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     2720            coin_add_cflags="-bmaxdata:0x80000000"
     2721            coin_dbg_cflags="-g"
     2722          ;;
     2723        esac
     2724        ;;
     2725      *-hp-*)
     2726        coin_opt_cflags="-O"
     2727        coin_add_cflags="-Ae"
     2728        coin_dbg_cflags="-g"
     2729        ;;
     2730      *-sun-*)
     2731        coin_opt_cflags="-xO4"
     2732        coin_dbg_cflags="-g"
     2733        ;;
     2734      *-sgi-*)
     2735        coin_opt_cflags="-O -OPT:Olimit=0"
     2736        coin_dbg_cflags="-g"
     2737        ;;
     2738    esac
     2739  fi
     2740
     2741  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
     2742    coin_dbg_cflags="-g"
     2743  fi
     2744
     2745  if test -z "$coin_opt_cflags"; then
     2746    # Try if -O option works if nothing else is set
     2747    CFLAGS="-O"
     2748    cat >conftest.$ac_ext <<_ACEOF
     2749/* confdefs.h.  */
     2750_ACEOF
     2751cat confdefs.h >>conftest.$ac_ext
     2752cat >>conftest.$ac_ext <<_ACEOF
     2753/* end confdefs.h.  */
     2754
     2755int
     2756main ()
     2757{
     2758int i=0; i++;
     2759  ;
     2760  return 0;
     2761}
     2762_ACEOF
     2763rm -f conftest.$ac_objext conftest$ac_exeext
     2764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2765  (eval $ac_link) 2>conftest.er1
     2766  ac_status=$?
     2767  grep -v '^ *+' conftest.er1 >conftest.err
     2768  rm -f conftest.er1
     2769  cat conftest.err >&5
     2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2771  (exit $ac_status); } &&
     2772         { ac_try='test -z "$ac_c_werror_flag"
     2773                         || test ! -s conftest.err'
     2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2775  (eval $ac_try) 2>&5
     2776  ac_status=$?
     2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2778  (exit $ac_status); }; } &&
     2779         { ac_try='test -s conftest$ac_exeext'
     2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2781  (eval $ac_try) 2>&5
     2782  ac_status=$?
     2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2784  (exit $ac_status); }; }; then
     2785  coin_opt_cflags="-O"
     2786else
     2787  echo "$as_me: failed program was:" >&5
     2788sed 's/^/| /' conftest.$ac_ext >&5
     2789
     2790fi
     2791rm -f conftest.err conftest.$ac_objext \
     2792      conftest$ac_exeext conftest.$ac_ext
     2793  fi
     2794
     2795  # if PM doesn't want the warning messages, take them out
     2796  if test x"$coin_skip_warn_cflags" = xyes; then
     2797    coin_warn_cflags=
     2798  fi
     2799
     2800  if test x${DBG_CFLAGS+set} != xset; then
     2801    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
     2802  fi
     2803  if test x${OPT_CFLAGS+set} != xset; then
     2804    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
     2805  fi
     2806
     2807  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
     2808  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
     2809
     2810  if test "$coin_debug_compile" = "true"; then
     2811    CFLAGS="$DBG_CFLAGS"
     2812  else
     2813    CFLAGS="$OPT_CFLAGS"
     2814  fi
     2815else
     2816  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
     2817  if test x${DBG_CFLAGS+set} != xset; then
     2818    DBG_CFLAGS="$CFLAGS"
     2819  fi
     2820  if test x${OPT_CFLAGS+set} != xset; then
     2821    OPT_CFLAGS="$CFLAGS"
     2822  fi
     2823fi
     2824
     2825# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     2826
     2827case "$CFLAGS" in
     2828  *-mno-cygwin*)
     2829    if test x${CPPFLAGS+set} != xset ; then
     2830      CPPFLAGS="-mno-cygwin"
     2831    else
     2832      case "$CPPFLAGS" in
     2833        *-mno-cygwin*)
     2834          ;;
     2835        *)
     2836          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     2837          ;;
     2838      esac
     2839    fi ;;
     2840esac
     2841
     2842# Try if CFLAGS works
     2843save_CFLAGS="$CFLAGS"
     2844cat >conftest.$ac_ext <<_ACEOF
     2845/* confdefs.h.  */
     2846_ACEOF
     2847cat confdefs.h >>conftest.$ac_ext
     2848cat >>conftest.$ac_ext <<_ACEOF
     2849/* end confdefs.h.  */
     2850
     2851int
     2852main ()
     2853{
     2854int i=0; i++;
     2855  ;
     2856  return 0;
     2857}
     2858_ACEOF
     2859rm -f conftest.$ac_objext conftest$ac_exeext
     2860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2861  (eval $ac_link) 2>conftest.er1
     2862  ac_status=$?
     2863  grep -v '^ *+' conftest.er1 >conftest.err
     2864  rm -f conftest.er1
     2865  cat conftest.err >&5
     2866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2867  (exit $ac_status); } &&
     2868         { ac_try='test -z "$ac_c_werror_flag"
     2869                         || test ! -s conftest.err'
     2870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2871  (eval $ac_try) 2>&5
     2872  ac_status=$?
     2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2874  (exit $ac_status); }; } &&
     2875         { ac_try='test -s conftest$ac_exeext'
     2876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2877  (eval $ac_try) 2>&5
     2878  ac_status=$?
     2879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2880  (exit $ac_status); }; }; then
     2881  :
     2882else
     2883  echo "$as_me: failed program was:" >&5
     2884sed 's/^/| /' conftest.$ac_ext >&5
     2885
     2886CFLAGS=
     2887fi
     2888rm -f conftest.err conftest.$ac_objext \
     2889      conftest$ac_exeext conftest.$ac_ext
     2890if test -z "$CFLAGS"; then
     2891  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
     2892echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
     2893  CFLAGS='-O'
     2894  cat >conftest.$ac_ext <<_ACEOF
     2895/* confdefs.h.  */
     2896_ACEOF
     2897cat confdefs.h >>conftest.$ac_ext
     2898cat >>conftest.$ac_ext <<_ACEOF
     2899/* end confdefs.h.  */
     2900
     2901int
     2902main ()
     2903{
     2904int i=0; i++;
     2905  ;
     2906  return 0;
     2907}
     2908_ACEOF
     2909rm -f conftest.$ac_objext conftest$ac_exeext
     2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2911  (eval $ac_link) 2>conftest.er1
     2912  ac_status=$?
     2913  grep -v '^ *+' conftest.er1 >conftest.err
     2914  rm -f conftest.er1
     2915  cat conftest.err >&5
     2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2917  (exit $ac_status); } &&
     2918         { ac_try='test -z "$ac_c_werror_flag"
     2919                         || test ! -s conftest.err'
     2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2921  (eval $ac_try) 2>&5
     2922  ac_status=$?
     2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2924  (exit $ac_status); }; } &&
     2925         { ac_try='test -s conftest$ac_exeext'
     2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2927  (eval $ac_try) 2>&5
     2928  ac_status=$?
     2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2930  (exit $ac_status); }; }; then
     2931  :
     2932else
     2933  echo "$as_me: failed program was:" >&5
     2934sed 's/^/| /' conftest.$ac_ext >&5
     2935
     2936CFLAGS=
     2937fi
     2938rm -f conftest.err conftest.$ac_objext \
     2939      conftest$ac_exeext conftest.$ac_ext
     2940  if test -z "$CFLAGS"; then
     2941    { 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
     2942echo "$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;}
     2943  fi
     2944fi
     2945
     2946{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
     2947echo "$as_me: C compiler options are: $CFLAGS" >&6;}
     2948
     2949
     2950if test x"$MPICC" = x; then :; else
     2951  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
     2952echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
     2953  CC="$MPICC"
     2954fi
     2955
     2956# Correct ADDLIBS initialization if we are using the MS compiler
     2957case "$CC" in
     2958  cl* | */cl* | CL* | */CL*)
     2959    ADDLIBS=
     2960    case $build in
     2961  *-mingw*)
     2962    if test "${LD+set}" = set; then :; else
     2963      LD=link
     2964    fi
     2965    ;;
     2966 esac
     2967 case $enable_doscompile in
     2968   msvc)
     2969     if test "x${LD+set}" = xset; then :; else
     2970       LD=link
     2971     fi
     2972     ;;
     2973 esac
     2974
     2975    ;;
     2976esac
     2977
     2978ac_ext=c
     2979ac_cpp='$CPP $CPPFLAGS'
     2980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2982ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2983
     2984
     2985
     2986# Get the name of the C++ compiler and appropriate compiler options
     2987
     2988 #Let's try if that overcomes configuration problem with VC++ 6.0
     2989
     2990ac_ext=cc
     2991ac_cpp='$CXXCPP $CPPFLAGS'
     2992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2995
     2996
     2997
     2998
     2999
     3000
     3001
     3002coin_has_cxx=yes
     3003
     3004save_cxxflags="$CXXFLAGS"
     3005# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
     3006case $build in
     3007  *-cygwin* | *-mingw*)
     3008             if test "$enable_doscompile" = msvc ; then
     3009               comps="cl"
     3010             else
     3011               comps="g++ cl"
     3012             fi ;;
     3013  sparc-sun-solaris*)
     3014             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
     3015  *-darwin*) comps="g++ c++ CC" ;;
     3016          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
     3017esac
     3018
     3019# We delete the cached value, since the test might not have been
     3020# performed with our choice of compilers earlier
     3021$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
     3022# AC_MSG_NOTICE([C++ compiler candidates: $comps])
     3023ac_ext=cc
     3024ac_cpp='$CXXCPP $CPPFLAGS'
     3025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     3028if test -n "$ac_tool_prefix"; then
     3029  for ac_prog in $CCC $comps
     3030  do
     3031    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3033echo "$as_me:$LINENO: checking for $ac_word" >&5
     3034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3035if test "${ac_cv_prog_CXX+set}" = set; then
     3036  echo $ECHO_N "(cached) $ECHO_C" >&6
     3037else
     3038  if test -n "$CXX"; then
     3039  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     3040else
     3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3042for as_dir in $PATH
     3043do
     3044  IFS=$as_save_IFS
     3045  test -z "$as_dir" && as_dir=.
     3046  for ac_exec_ext in '' $ac_executable_extensions; do
     3047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3048    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     3049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3050    break 2
     3051  fi
     3052done
     3053done
     3054
     3055fi
     3056fi
     3057CXX=$ac_cv_prog_CXX
     3058if test -n "$CXX"; then
     3059  echo "$as_me:$LINENO: result: $CXX" >&5
     3060echo "${ECHO_T}$CXX" >&6
     3061else
     3062  echo "$as_me:$LINENO: result: no" >&5
     3063echo "${ECHO_T}no" >&6
     3064fi
     3065
     3066    test -n "$CXX" && break
     3067  done
     3068fi
     3069if test -z "$CXX"; then
     3070  ac_ct_CXX=$CXX
     3071  for ac_prog in $CCC $comps
     3072do
     3073  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3074set dummy $ac_prog; ac_word=$2
     3075echo "$as_me:$LINENO: checking for $ac_word" >&5
     3076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3077if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     3078  echo $ECHO_N "(cached) $ECHO_C" >&6
     3079else
     3080  if test -n "$ac_ct_CXX"; then
     3081  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     3082else
     3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3084for as_dir in $PATH
     3085do
     3086  IFS=$as_save_IFS
     3087  test -z "$as_dir" && as_dir=.
     3088  for ac_exec_ext in '' $ac_executable_extensions; do
     3089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3090    ac_cv_prog_ac_ct_CXX="$ac_prog"
     3091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3092    break 2
     3093  fi
     3094done
     3095done
     3096
     3097fi
     3098fi
     3099ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     3100if test -n "$ac_ct_CXX"; then
     3101  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     3102echo "${ECHO_T}$ac_ct_CXX" >&6
     3103else
     3104  echo "$as_me:$LINENO: result: no" >&5
     3105echo "${ECHO_T}no" >&6
     3106fi
     3107
     3108  test -n "$ac_ct_CXX" && break
     3109done
     3110test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     3111
     3112  CXX=$ac_ct_CXX
     3113fi
     3114
     3115
     3116# Provide some information about the compiler.
     3117echo "$as_me:$LINENO:" \
     3118     "checking for C++ compiler version" >&5
     3119ac_compiler=`set X $ac_compile; echo $2`
     3120{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3121  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3122  ac_status=$?
     3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3124  (exit $ac_status); }
     3125{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3126  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3127  ac_status=$?
     3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3129  (exit $ac_status); }
     3130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3131  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3132  ac_status=$?
     3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3134  (exit $ac_status); }
     3135
     3136echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     3137echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     3138if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     3139  echo $ECHO_N "(cached) $ECHO_C" >&6
     3140else
     3141  cat >conftest.$ac_ext <<_ACEOF
     3142/* confdefs.h.  */
     3143_ACEOF
     3144cat confdefs.h >>conftest.$ac_ext
     3145cat >>conftest.$ac_ext <<_ACEOF
     3146/* end confdefs.h.  */
     3147
     3148int
     3149main ()
     3150{
     3151#ifndef __GNUC__
     3152       choke me
     3153#endif
     3154
     3155  ;
     3156  return 0;
     3157}
     3158_ACEOF
     3159rm -f conftest.$ac_objext
     3160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3161  (eval $ac_compile) 2>conftest.er1
     3162  ac_status=$?
     3163  grep -v '^ *+' conftest.er1 >conftest.err
     3164  rm -f conftest.er1
     3165  cat conftest.err >&5
     3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3167  (exit $ac_status); } &&
     3168         { ac_try='test -z "$ac_cxx_werror_flag"
     3169                         || test ! -s conftest.err'
     3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3171  (eval $ac_try) 2>&5
     3172  ac_status=$?
     3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3174  (exit $ac_status); }; } &&
     3175         { ac_try='test -s conftest.$ac_objext'
     3176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3177  (eval $ac_try) 2>&5
     3178  ac_status=$?
     3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3180  (exit $ac_status); }; }; then
     3181  ac_compiler_gnu=yes
     3182else
     3183  echo "$as_me: failed program was:" >&5
     3184sed 's/^/| /' conftest.$ac_ext >&5
     3185
     3186ac_compiler_gnu=no
     3187fi
     3188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3189ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     3190
     3191fi
     3192echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     3193echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     3194GXX=`test $ac_compiler_gnu = yes && echo yes`
     3195ac_test_CXXFLAGS=${CXXFLAGS+set}
     3196ac_save_CXXFLAGS=$CXXFLAGS
     3197CXXFLAGS="-g"
     3198echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     3199echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     3200if test "${ac_cv_prog_cxx_g+set}" = set; then
     3201  echo $ECHO_N "(cached) $ECHO_C" >&6
     3202else
     3203  cat >conftest.$ac_ext <<_ACEOF
     3204/* confdefs.h.  */
     3205_ACEOF
     3206cat confdefs.h >>conftest.$ac_ext
     3207cat >>conftest.$ac_ext <<_ACEOF
     3208/* end confdefs.h.  */
     3209
     3210int
     3211main ()
     3212{
     3213
     3214  ;
     3215  return 0;
     3216}
     3217_ACEOF
     3218rm -f conftest.$ac_objext
     3219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3220  (eval $ac_compile) 2>conftest.er1
     3221  ac_status=$?
     3222  grep -v '^ *+' conftest.er1 >conftest.err
     3223  rm -f conftest.er1
     3224  cat conftest.err >&5
     3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3226  (exit $ac_status); } &&
     3227         { ac_try='test -z "$ac_cxx_werror_flag"
     3228                         || test ! -s conftest.err'
     3229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3230  (eval $ac_try) 2>&5
     3231  ac_status=$?
     3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3233  (exit $ac_status); }; } &&
     3234         { ac_try='test -s conftest.$ac_objext'
     3235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3236  (eval $ac_try) 2>&5
     3237  ac_status=$?
     3238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3239  (exit $ac_status); }; }; then
     3240  ac_cv_prog_cxx_g=yes
     3241else
     3242  echo "$as_me: failed program was:" >&5
     3243sed 's/^/| /' conftest.$ac_ext >&5
     3244
     3245ac_cv_prog_cxx_g=no
     3246fi
     3247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3248fi
     3249echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     3250echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3251if test "$ac_test_CXXFLAGS" = set; then
     3252  CXXFLAGS=$ac_save_CXXFLAGS
     3253elif test $ac_cv_prog_cxx_g = yes; then
     3254  if test "$GXX" = yes; then
     3255    CXXFLAGS="-g -O2"
     3256  else
     3257    CXXFLAGS="-g"
     3258  fi
     3259else
     3260  if test "$GXX" = yes; then
     3261    CXXFLAGS="-O2"
     3262  else
     3263    CXXFLAGS=
     3264  fi
     3265fi
     3266for ac_declaration in \
     3267   '' \
     3268   'extern "C" void std::exit (int) throw (); using std::exit;' \
     3269   'extern "C" void std::exit (int); using std::exit;' \
     3270   'extern "C" void exit (int) throw ();' \
     3271   'extern "C" void exit (int);' \
     3272   'void exit (int);'
     3273do
     3274  cat >conftest.$ac_ext <<_ACEOF
     3275/* confdefs.h.  */
     3276_ACEOF
     3277cat confdefs.h >>conftest.$ac_ext
     3278cat >>conftest.$ac_ext <<_ACEOF
     3279/* end confdefs.h.  */
     3280$ac_declaration
     3281#include <stdlib.h>
     3282int
     3283main ()
     3284{
     3285exit (42);
     3286  ;
     3287  return 0;
     3288}
     3289_ACEOF
     3290rm -f conftest.$ac_objext
     3291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3292  (eval $ac_compile) 2>conftest.er1
     3293  ac_status=$?
     3294  grep -v '^ *+' conftest.er1 >conftest.err
     3295  rm -f conftest.er1
     3296  cat conftest.err >&5
     3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3298  (exit $ac_status); } &&
     3299         { ac_try='test -z "$ac_cxx_werror_flag"
     3300                         || test ! -s conftest.err'
     3301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3302  (eval $ac_try) 2>&5
     3303  ac_status=$?
     3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3305  (exit $ac_status); }; } &&
     3306         { ac_try='test -s conftest.$ac_objext'
     3307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3308  (eval $ac_try) 2>&5
     3309  ac_status=$?
     3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3311  (exit $ac_status); }; }; then
     3312  :
     3313else
     3314  echo "$as_me: failed program was:" >&5
     3315sed 's/^/| /' conftest.$ac_ext >&5
     3316
     3317continue
     3318fi
     3319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3320  cat >conftest.$ac_ext <<_ACEOF
     3321/* confdefs.h.  */
     3322_ACEOF
     3323cat confdefs.h >>conftest.$ac_ext
     3324cat >>conftest.$ac_ext <<_ACEOF
     3325/* end confdefs.h.  */
     3326$ac_declaration
     3327int
     3328main ()
     3329{
     3330exit (42);
     3331  ;
     3332  return 0;
     3333}
     3334_ACEOF
     3335rm -f conftest.$ac_objext
     3336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3337  (eval $ac_compile) 2>conftest.er1
     3338  ac_status=$?
     3339  grep -v '^ *+' conftest.er1 >conftest.err
     3340  rm -f conftest.er1
     3341  cat conftest.err >&5
     3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3343  (exit $ac_status); } &&
     3344         { ac_try='test -z "$ac_cxx_werror_flag"
     3345                         || test ! -s conftest.err'
     3346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3347  (eval $ac_try) 2>&5
     3348  ac_status=$?
     3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3350  (exit $ac_status); }; } &&
     3351         { ac_try='test -s conftest.$ac_objext'
     3352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3353  (eval $ac_try) 2>&5
     3354  ac_status=$?
     3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3356  (exit $ac_status); }; }; then
     3357  break
     3358else
     3359  echo "$as_me: failed program was:" >&5
     3360sed 's/^/| /' conftest.$ac_ext >&5
     3361
     3362fi
     3363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3364done
     3365rm -f conftest*
     3366if test -n "$ac_declaration"; then
     3367  echo '#ifdef __cplusplus' >>confdefs.h
     3368  echo $ac_declaration      >>confdefs.h
     3369  echo '#endif'             >>confdefs.h
     3370fi
     3371
     3372ac_ext=cc
     3373ac_cpp='$CXXCPP $CPPFLAGS'
     3374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     3377
     3378if test -z "$CXX" ; then
     3379  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
     3380echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
     3381   { (exit 1); exit 1; }; }
     3382fi
     3383
     3384# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     3385case "$CXX" in
     3386  cl* | */cl* | CL* | */CL* )
     3387    if test "$ac_cv_prog_cxx_g" = yes ; then
     3388      ac_cv_prog_cxx_g=no
     3389      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     3390echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     3391    fi ;;
     3392esac
     3393CXXFLAGS="$save_cxxflags"
     3394
     3395# Check if a project specific CXXFLAGS variable has been set
     3396if test x$COIN_PRJCT != x; then
     3397  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
     3398  if test x$coin_tmp = xset; then
     3399    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
     3400  fi
     3401fi
     3402
     3403if test x"$CXXFLAGS" = x; then
     3404
     3405# ToDo decide whether we want -DNDEBUG for optimization
     3406  coin_add_cxxflags=
     3407  coin_opt_cxxflags=
     3408  coin_dbg_cxxflags=
     3409  coin_warn_cxxflags=
     3410
     3411  if test "$GXX" = "yes"; then
     3412    case "$CXX" in
     3413      icpc* | */icpc*)
     3414        ;;
     3415      *)
     3416# ToDo decide about unroll-loops
     3417        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
     3418        coin_add_cxxflags="-pipe"
     3419        coin_dbg_cxxflags="-g"
     3420        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
     3421        case $enable_doscompile in
     3422          mingw)
     3423            CXXFLAGS="-mno-cygwin"
     3424            cat >conftest.$ac_ext <<_ACEOF
     3425/* confdefs.h.  */
     3426_ACEOF
     3427cat confdefs.h >>conftest.$ac_ext
     3428cat >>conftest.$ac_ext <<_ACEOF
     3429/* end confdefs.h.  */
     3430
     3431int
     3432main ()
     3433{
     3434int i=0; i++;
     3435  ;
     3436  return 0;
     3437}
     3438_ACEOF
     3439rm -f conftest.$ac_objext conftest$ac_exeext
     3440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3441  (eval $ac_link) 2>conftest.er1
     3442  ac_status=$?
     3443  grep -v '^ *+' conftest.er1 >conftest.err
     3444  rm -f conftest.er1
     3445  cat conftest.err >&5
     3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3447  (exit $ac_status); } &&
     3448         { ac_try='test -z "$ac_cxx_werror_flag"
     3449                         || test ! -s conftest.err'
     3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3451  (eval $ac_try) 2>&5
     3452  ac_status=$?
     3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3454  (exit $ac_status); }; } &&
     3455         { ac_try='test -s conftest$ac_exeext'
     3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3457  (eval $ac_try) 2>&5
     3458  ac_status=$?
     3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3460  (exit $ac_status); }; }; then
     3461  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
     3462else
     3463  echo "$as_me: failed program was:" >&5
     3464sed 's/^/| /' conftest.$ac_ext >&5
     3465
     3466fi
     3467rm -f conftest.err conftest.$ac_objext \
     3468      conftest$ac_exeext conftest.$ac_ext
     3469            CXXFLAGS=
     3470            ;;
     3471        esac
     3472    esac
     3473  fi
     3474
     3475# Note that we do not need to cover GCC in the following tests.
     3476
     3477  if test -z "$coin_opt_cxxflags"; then
     3478    case $build in
     3479      *-cygwin* | *-mingw*)
     3480        case "$CXX" in
     3481          cl* | */cl* | CL* | */CL*)
     3482            # The MT and MTd options are mutually exclusive
     3483            coin_opt_cxxflags='-MT -O2'
     3484            coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
     3485            coin_dbg_cxxflags='-MTd'
     3486            ;;
     3487        esac
     3488        ;;
     3489      *-linux-*)
     3490        case "$CXX" in
     3491          icpc* | */icpc*)
     3492            coin_opt_cxxflags="-O3 -ip"
     3493            coin_add_cxxflags=""
     3494            coin_dbg_cxxflags="-g"
     3495            # Check if -i_dynamic is necessary (for new glibc library)
     3496            CXXFLAGS=
     3497            cat >conftest.$ac_ext <<_ACEOF
     3498/* confdefs.h.  */
     3499_ACEOF
     3500cat confdefs.h >>conftest.$ac_ext
     3501cat >>conftest.$ac_ext <<_ACEOF
     3502/* end confdefs.h.  */
     3503
     3504int
     3505main ()
     3506{
     3507int i=0; i++;
     3508  ;
     3509  return 0;
     3510}
     3511_ACEOF
     3512rm -f conftest.$ac_objext conftest$ac_exeext
     3513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3514  (eval $ac_link) 2>conftest.er1
     3515  ac_status=$?
     3516  grep -v '^ *+' conftest.er1 >conftest.err
     3517  rm -f conftest.er1
     3518  cat conftest.err >&5
     3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3520  (exit $ac_status); } &&
     3521         { ac_try='test -z "$ac_cxx_werror_flag"
     3522                         || test ! -s conftest.err'
     3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3524  (eval $ac_try) 2>&5
     3525  ac_status=$?
     3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3527  (exit $ac_status); }; } &&
     3528         { ac_try='test -s conftest$ac_exeext'
     3529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3530  (eval $ac_try) 2>&5
     3531  ac_status=$?
     3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3533  (exit $ac_status); }; }; then
     3534  :
     3535else
     3536  echo "$as_me: failed program was:" >&5
     3537sed 's/^/| /' conftest.$ac_ext >&5
     3538
     3539coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
     3540fi
     3541rm -f conftest.err conftest.$ac_objext \
     3542      conftest$ac_exeext conftest.$ac_ext
     3543            ;;
     3544          pgCC* | */pgCC*)
     3545            coin_opt_cxxflags="-fast"
     3546            coin_add_cxxflags="-Kieee -pc 64"
     3547            coin_dbg_cxxflags="-g"
     3548            ;;
     3549        esac
     3550        ;;
     3551      *-ibm-*)
     3552        case "$CXX" in
     3553          xlC* | */xlC* | mpxlC* | */mpxlC*)
     3554            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     3555            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
     3556            coin_dbg_cxxflags="-g"
     3557            ;;
     3558        esac
     3559        ;;
     3560      *-hp-*)
     3561        case "$CXX" in
     3562          aCC* | */aCC* )
     3563            coin_opt_cxxflags="-O"
     3564            coin_add_cxxflags="-AA"
     3565            coin_dbg_cxxflags="-g"
     3566            ;;
     3567        esac
     3568        ;;
     3569      *-sun-*)
     3570          coin_opt_cxxflags="-O4"
     3571          coin_dbg_cxxflags="-g"
     3572        ;;
     3573    esac
     3574  fi
     3575
     3576# Generic flag settings. If these don't work, add a case above.
     3577
     3578  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
     3579    coin_dbg_cxxflags="-g"
     3580  fi
     3581
     3582  if test -z "$coin_opt_cxxflags"; then
     3583    # Try if -O option works if nothing else is set
     3584    CXXFLAGS=-O
     3585    cat >conftest.$ac_ext <<_ACEOF
     3586/* confdefs.h.  */
     3587_ACEOF
     3588cat confdefs.h >>conftest.$ac_ext
     3589cat >>conftest.$ac_ext <<_ACEOF
     3590/* end confdefs.h.  */
     3591
     3592int
     3593main ()
     3594{
     3595int i=0; i++;
     3596  ;
     3597  return 0;
     3598}
     3599_ACEOF
     3600rm -f conftest.$ac_objext conftest$ac_exeext
     3601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3602  (eval $ac_link) 2>conftest.er1
     3603  ac_status=$?
     3604  grep -v '^ *+' conftest.er1 >conftest.err
     3605  rm -f conftest.er1
     3606  cat conftest.err >&5
     3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3608  (exit $ac_status); } &&
     3609         { ac_try='test -z "$ac_cxx_werror_flag"
     3610                         || test ! -s conftest.err'
     3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3612  (eval $ac_try) 2>&5
     3613  ac_status=$?
     3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3615  (exit $ac_status); }; } &&
     3616         { ac_try='test -s conftest$ac_exeext'
     3617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3618  (eval $ac_try) 2>&5
     3619  ac_status=$?
     3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3621  (exit $ac_status); }; }; then
     3622  coin_opt_cxxflags="-O"
     3623else
     3624  echo "$as_me: failed program was:" >&5
     3625sed 's/^/| /' conftest.$ac_ext >&5
     3626
     3627fi
     3628rm -f conftest.err conftest.$ac_objext \
     3629      conftest$ac_exeext conftest.$ac_ext
     3630  fi
     3631
     3632  # if PM doesn't want the warning messages, take them out
     3633  if test x"$coin_skip_warn_cxxflags" = xyes; then
     3634    coin_warn_cxxflags=
     3635  fi
     3636
     3637# Do final setup of flags based on values determined above.
     3638
     3639  if test x${DBG_CXXFLAGS+set} != xset; then
     3640    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
     3641  fi
     3642  if test x${OPT_CXXFLAGS+set} != xset; then
     3643    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
     3644  fi
     3645
     3646  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     3647  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     3648
     3649  if test "$coin_debug_compile" = "true"; then
     3650    CXXFLAGS="$DBG_CXXFLAGS"
     3651  else
     3652    CXXFLAGS="$OPT_CXXFLAGS"
     3653  fi
     3654
     3655# Handle the case where CXXFLAGS was set externally.
     3656else
     3657  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     3658  if test x${DBG_CXXFLAGS+set} != xset; then
     3659    DBG_CXXFLAGS="$CXXFLAGS"
     3660  fi
     3661  if test x${OPT_CXXFLAGS+set} != xset; then
     3662    OPT_CXXFLAGS="$CXXFLAGS"
     3663  fi
     3664fi
     3665
     3666# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     3667
     3668case "$CXXFLAGS" in
     3669  *-mno-cygwin*)
     3670    if test x${CPPFLAGS+set} != xset ; then
     3671      CPPFLAGS="-mno-cygwin"
     3672    else
     3673      case "$CPPFLAGS" in
     3674        *-mno-cygwin*)
     3675          ;;
     3676        *)
     3677          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     3678          ;;
     3679      esac
     3680    fi ;;
     3681esac
     3682
     3683# Try if CXXFLAGS works
     3684save_CXXFLAGS="$CXXFLAGS"
     3685cat >conftest.$ac_ext <<_ACEOF
     3686/* confdefs.h.  */
     3687_ACEOF
     3688cat confdefs.h >>conftest.$ac_ext
     3689cat >>conftest.$ac_ext <<_ACEOF
     3690/* end confdefs.h.  */
     3691
     3692int
     3693main ()
     3694{
     3695int i=0; i++;
     3696  ;
     3697  return 0;
     3698}
     3699_ACEOF
     3700rm -f conftest.$ac_objext conftest$ac_exeext
     3701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3702  (eval $ac_link) 2>conftest.er1
     3703  ac_status=$?
     3704  grep -v '^ *+' conftest.er1 >conftest.err
     3705  rm -f conftest.er1
     3706  cat conftest.err >&5
     3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3708  (exit $ac_status); } &&
     3709         { ac_try='test -z "$ac_cxx_werror_flag"
     3710                         || test ! -s conftest.err'
     3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3712  (eval $ac_try) 2>&5
     3713  ac_status=$?
     3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3715  (exit $ac_status); }; } &&
     3716         { ac_try='test -s conftest$ac_exeext'
     3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3718  (eval $ac_try) 2>&5
     3719  ac_status=$?
     3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3721  (exit $ac_status); }; }; then
     3722  :
     3723else
     3724  echo "$as_me: failed program was:" >&5
     3725sed 's/^/| /' conftest.$ac_ext >&5
     3726
     3727CXXFLAGS=
     3728fi
     3729rm -f conftest.err conftest.$ac_objext \
     3730      conftest$ac_exeext conftest.$ac_ext
     3731if test -z "$CXXFLAGS"; then
     3732  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
     3733echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
     3734  CXXFLAGS='-O'
     3735  cat >conftest.$ac_ext <<_ACEOF
     3736/* confdefs.h.  */
     3737_ACEOF
     3738cat confdefs.h >>conftest.$ac_ext
     3739cat >>conftest.$ac_ext <<_ACEOF
     3740/* end confdefs.h.  */
     3741
     3742int
     3743main ()
     3744{
     3745int i=0; i++;
     3746  ;
     3747  return 0;
     3748}
     3749_ACEOF
     3750rm -f conftest.$ac_objext conftest$ac_exeext
     3751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3752  (eval $ac_link) 2>conftest.er1
     3753  ac_status=$?
     3754  grep -v '^ *+' conftest.er1 >conftest.err
     3755  rm -f conftest.er1
     3756  cat conftest.err >&5
     3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3758  (exit $ac_status); } &&
     3759         { ac_try='test -z "$ac_cxx_werror_flag"
     3760                         || test ! -s conftest.err'
     3761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3762  (eval $ac_try) 2>&5
     3763  ac_status=$?
     3764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3765  (exit $ac_status); }; } &&
     3766         { ac_try='test -s conftest$ac_exeext'
     3767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3768  (eval $ac_try) 2>&5
     3769  ac_status=$?
     3770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3771  (exit $ac_status); }; }; then
     3772  :
     3773else
     3774  echo "$as_me: failed program was:" >&5
     3775sed 's/^/| /' conftest.$ac_ext >&5
     3776
     3777CXXFLAGS=
     3778fi
     3779rm -f conftest.err conftest.$ac_objext \
     3780      conftest$ac_exeext conftest.$ac_ext
     3781  if test -z "$CXXFLAGS"; then
     3782    { 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
     3783echo "$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;}
     3784  fi
     3785fi
     3786
     3787{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
     3788echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
     3789
     3790
     3791if test x"$MPICXX" = x; then :; else
     3792  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
     3793echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
     3794  CXX="$MPICXX"
     3795fi
     3796
     3797case "$CXX" in
     3798  cl* | */cl* | CL* | */CL* )
     3799    case $build in
     3800  *-mingw*)
     3801    if test "${LD+set}" = set; then :; else
     3802      LD=link
     3803    fi
     3804    ;;
     3805 esac
     3806 case $enable_doscompile in
     3807   msvc)
     3808     if test "x${LD+set}" = xset; then :; else
     3809       LD=link
     3810     fi
     3811     ;;
     3812 esac
     3813
     3814    ;;
     3815esac
     3816
     3817ac_ext=c
     3818ac_cpp='$CPP $CPPFLAGS'
     3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3821ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3822
     3823
     3824
     3825# Get the name of the Fortran compiler and appropriate compiler options
     3826case $build in
     3827  *-cygwin* | *-mingw*)
     3828     if test "$enable_doscompile" = msvc ; then
     3829       coin_f77_comps="ifort fl32"
     3830     else
     3831       coin_f77_comps="gfortran g77 ifort fl32"
     3832     fi ;;
     3833  sparc-sun-solaris*)
     3834     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3835  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3836 esac
     3837
     3838
     3839
     3840
     3841
     3842
     3843ac_ext=f
     3844ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3845ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3846ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3847
     3848
     3849
     3850
     3851
     3852
     3853coin_has_f77=yes
     3854
     3855save_fflags="$FFLAGS"
     3856
     3857# We delete the cached value, since the test might not have been
     3858# performed with our choice of compilers earlier
     3859$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
     3860
     3861# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
     3862# coin_f77_comps to see if there's a program that matches one of the names.
     3863# If there's no such program, F77 = unavailable. If we match the name,
     3864# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
     3865# compiler.
     3866# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
     3867
     3868
     3869{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
     3870echo "$as_me: Trying to determine Fortran compiler name" >&6;}
     3871for ac_prog in $coin_f77_comps
     3872do
     3873  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3874set dummy $ac_prog; ac_word=$2
     3875echo "$as_me:$LINENO: checking for $ac_word" >&5
     3876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3877if test "${ac_cv_prog_F77+set}" = set; then
     3878  echo $ECHO_N "(cached) $ECHO_C" >&6
     3879else
     3880  if test -n "$F77"; then
     3881  ac_cv_prog_F77="$F77" # Let the user override the test.
     3882else
     3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3884for as_dir in $PATH
     3885do
     3886  IFS=$as_save_IFS
     3887  test -z "$as_dir" && as_dir=.
     3888  for ac_exec_ext in '' $ac_executable_extensions; do
     3889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3890    ac_cv_prog_F77="$ac_prog"
     3891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3892    break 2
     3893  fi
     3894done
     3895done
     3896
     3897fi
     3898fi
     3899F77=$ac_cv_prog_F77
     3900if test -n "$F77"; then
     3901  echo "$as_me:$LINENO: result: $F77" >&5
     3902echo "${ECHO_T}$F77" >&6
     3903else
     3904  echo "$as_me:$LINENO: result: no" >&5
     3905echo "${ECHO_T}no" >&6
     3906fi
     3907
     3908  test -n "$F77" && break
     3909done
     3910test -n "$F77" || F77="unavailable"
     3911
     3912
     3913if test "$F77" != "unavailable" ; then
     3914  ac_ext=f
     3915ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3916ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3917ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3918if test -n "$ac_tool_prefix"; then
     3919  for ac_prog in $coin_f77_comps
     3920  do
     3921    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3922set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3923echo "$as_me:$LINENO: checking for $ac_word" >&5
     3924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3925if test "${ac_cv_prog_F77+set}" = set; then
     3926  echo $ECHO_N "(cached) $ECHO_C" >&6
     3927else
     3928  if test -n "$F77"; then
     3929  ac_cv_prog_F77="$F77" # Let the user override the test.
     3930else
     3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3932for as_dir in $PATH
     3933do
     3934  IFS=$as_save_IFS
     3935  test -z "$as_dir" && as_dir=.
     3936  for ac_exec_ext in '' $ac_executable_extensions; do
     3937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3938    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     3939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3940    break 2
     3941  fi
     3942done
     3943done
     3944
     3945fi
     3946fi
     3947F77=$ac_cv_prog_F77
     3948if test -n "$F77"; then
     3949  echo "$as_me:$LINENO: result: $F77" >&5
     3950echo "${ECHO_T}$F77" >&6
     3951else
     3952  echo "$as_me:$LINENO: result: no" >&5
     3953echo "${ECHO_T}no" >&6
     3954fi
     3955
     3956    test -n "$F77" && break
     3957  done
     3958fi
     3959if test -z "$F77"; then
     3960  ac_ct_F77=$F77
     3961  for ac_prog in $coin_f77_comps
     3962do
     3963  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3964set dummy $ac_prog; ac_word=$2
     3965echo "$as_me:$LINENO: checking for $ac_word" >&5
     3966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3967if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     3968  echo $ECHO_N "(cached) $ECHO_C" >&6
     3969else
     3970  if test -n "$ac_ct_F77"; then
     3971  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     3972else
     3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3974for as_dir in $PATH
     3975do
     3976  IFS=$as_save_IFS
     3977  test -z "$as_dir" && as_dir=.
     3978  for ac_exec_ext in '' $ac_executable_extensions; do
     3979  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3980    ac_cv_prog_ac_ct_F77="$ac_prog"
     3981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3982    break 2
     3983  fi
     3984done
     3985done
     3986
     3987fi
     3988fi
     3989ac_ct_F77=$ac_cv_prog_ac_ct_F77
     3990if test -n "$ac_ct_F77"; then
     3991  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
     3992echo "${ECHO_T}$ac_ct_F77" >&6
     3993else
     3994  echo "$as_me:$LINENO: result: no" >&5
     3995echo "${ECHO_T}no" >&6
     3996fi
     3997
     3998  test -n "$ac_ct_F77" && break
     3999done
     4000
     4001  F77=$ac_ct_F77
     4002fi
     4003
     4004
     4005# Provide some information about the compiler.
     4006echo "$as_me:4006:" \
     4007     "checking for Fortran 77 compiler version" >&5
     4008ac_compiler=`set X $ac_compile; echo $2`
     4009{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     4010  (eval $ac_compiler --version </dev/null >&5) 2>&5
     4011  ac_status=$?
     4012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4013  (exit $ac_status); }
     4014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     4015  (eval $ac_compiler -v </dev/null >&5) 2>&5
     4016  ac_status=$?
     4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4018  (exit $ac_status); }
     4019{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     4020  (eval $ac_compiler -V </dev/null >&5) 2>&5
     4021  ac_status=$?
     4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4023  (exit $ac_status); }
     4024rm -f a.out
     4025
     4026# If we don't use `.F' as extension, the preprocessor is not run on the
     4027# input file.  (Note that this only needs to work for GNU compilers.)
     4028ac_save_ext=$ac_ext
     4029ac_ext=F
     4030echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
     4031echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
     4032if test "${ac_cv_f77_compiler_gnu+set}" = set; then
     4033  echo $ECHO_N "(cached) $ECHO_C" >&6
     4034else
     4035  cat >conftest.$ac_ext <<_ACEOF
     4036      program main
     4037#ifndef __GNUC__
     4038       choke me
     4039#endif
     4040
     4041      end
     4042_ACEOF
     4043rm -f conftest.$ac_objext
     4044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4045  (eval $ac_compile) 2>conftest.er1
     4046  ac_status=$?
     4047  grep -v '^ *+' conftest.er1 >conftest.err
     4048  rm -f conftest.er1
     4049  cat conftest.err >&5
     4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4051  (exit $ac_status); } &&
     4052         { ac_try='test -z "$ac_f77_werror_flag"
     4053                         || test ! -s conftest.err'
     4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4055  (eval $ac_try) 2>&5
     4056  ac_status=$?
     4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4058  (exit $ac_status); }; } &&
     4059         { ac_try='test -s conftest.$ac_objext'
     4060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4061  (eval $ac_try) 2>&5
     4062  ac_status=$?
     4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4064  (exit $ac_status); }; }; then
     4065  ac_compiler_gnu=yes
     4066else
     4067  echo "$as_me: failed program was:" >&5
     4068sed 's/^/| /' conftest.$ac_ext >&5
     4069
     4070ac_compiler_gnu=no
     4071fi
     4072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4073ac_cv_f77_compiler_gnu=$ac_compiler_gnu
     4074
     4075fi
     4076echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
     4077echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
     4078ac_ext=$ac_save_ext
     4079ac_test_FFLAGS=${FFLAGS+set}
     4080ac_save_FFLAGS=$FFLAGS
     4081FFLAGS=
     4082echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
     4083echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
     4084if test "${ac_cv_prog_f77_g+set}" = set; then
     4085  echo $ECHO_N "(cached) $ECHO_C" >&6
     4086else
     4087  FFLAGS=-g
     4088cat >conftest.$ac_ext <<_ACEOF
     4089      program main
     4090
     4091      end
     4092_ACEOF
     4093rm -f conftest.$ac_objext
     4094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4095  (eval $ac_compile) 2>conftest.er1
     4096  ac_status=$?
     4097  grep -v '^ *+' conftest.er1 >conftest.err
     4098  rm -f conftest.er1
     4099  cat conftest.err >&5
     4100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4101  (exit $ac_status); } &&
     4102         { ac_try='test -z "$ac_f77_werror_flag"
     4103                         || test ! -s conftest.err'
     4104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4105  (eval $ac_try) 2>&5
     4106  ac_status=$?
     4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4108  (exit $ac_status); }; } &&
     4109         { ac_try='test -s conftest.$ac_objext'
     4110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4111  (eval $ac_try) 2>&5
     4112  ac_status=$?
     4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4114  (exit $ac_status); }; }; then
     4115  ac_cv_prog_f77_g=yes
     4116else
     4117  echo "$as_me: failed program was:" >&5
     4118sed 's/^/| /' conftest.$ac_ext >&5
     4119
     4120ac_cv_prog_f77_g=no
     4121fi
     4122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4123
     4124fi
     4125echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
     4126echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
     4127if test "$ac_test_FFLAGS" = set; then
     4128  FFLAGS=$ac_save_FFLAGS
     4129elif test $ac_cv_prog_f77_g = yes; then
     4130  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     4131    FFLAGS="-g -O2"
     4132  else
     4133    FFLAGS="-g"
     4134  fi
     4135else
     4136  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     4137    FFLAGS="-O2"
     4138  else
     4139    FFLAGS=
     4140  fi
     4141fi
     4142
     4143G77=`test $ac_compiler_gnu = yes && echo yes`
     4144ac_ext=f
     4145ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4146ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4147ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4148
     4149else
     4150  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
     4151echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
     4152fi
     4153
     4154FFLAGS="$save_fflags"
     4155
     4156# Check if a project specific FFLAGS variable has been set
     4157if test x$COIN_PRJCT != x; then
     4158  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
     4159  if test x$coin_tmp = xset; then
     4160    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
     4161  fi
     4162fi
     4163
     4164if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
     4165
     4166  coin_add_fflags=
     4167  coin_opt_fflags=
     4168  coin_dbg_fflags=
     4169  coin_warn_fflags=
     4170
     4171  if test "$G77" = "yes"; then
     4172    coin_opt_fflags="-O3 -fomit-frame-pointer"
     4173    coin_add_fflags="-pipe"
     4174    coin_dbg_fflags="-g"
     4175    case $enable_doscompile in
     4176      mingw)
     4177        FFLAGS="-mno-cygwin"
     4178        cat >conftest.$ac_ext <<_ACEOF
     4179      program main
     4180      write(*,*) 'Hello world'
     4181      end
     4182_ACEOF
     4183rm -f conftest.$ac_objext conftest$ac_exeext
     4184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4185  (eval $ac_link) 2>conftest.er1
     4186  ac_status=$?
     4187  grep -v '^ *+' conftest.er1 >conftest.err
     4188  rm -f conftest.er1
     4189  cat conftest.err >&5
     4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4191  (exit $ac_status); } &&
     4192         { ac_try='test -z "$ac_f77_werror_flag"
     4193                         || test ! -s conftest.err'
     4194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4195  (eval $ac_try) 2>&5
     4196  ac_status=$?
     4197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4198  (exit $ac_status); }; } &&
     4199         { ac_try='test -s conftest$ac_exeext'
     4200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4201  (eval $ac_try) 2>&5
     4202  ac_status=$?
     4203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4204  (exit $ac_status); }; }; then
     4205  coin_add_fflags="-mno-cygwin $coin_add_fflags"
     4206else
     4207  echo "$as_me: failed program was:" >&5
     4208sed 's/^/| /' conftest.$ac_ext >&5
     4209
     4210fi
     4211rm -f conftest.err conftest.$ac_objext \
     4212      conftest$ac_exeext conftest.$ac_ext
     4213        FFLAGS=
     4214      ;;
     4215    esac
     4216  else
     4217    case $build in
     4218      *-cygwin* | *-mingw*)
     4219        case $F77 in
     4220          ifort* | */ifort* | IFORT* | */IFORT* )
     4221            coin_opt_fflags='-O3'
     4222            coin_add_fflags='-nologo -MT'
     4223            coin_dbg_fflags='-debug'
     4224          ;;
     4225        esac
     4226        ;;
     4227      *-linux-*)
     4228        case $F77 in
     4229          ifc* | */ifc* | ifort* | */ifort*)
     4230            coin_opt_fflags="-O3 -ip"
     4231            coin_add_fflags="-cm -w90 -w95"
     4232            coin_dbg_fflags="-g -CA -CB -CS"
     4233            # Check if -i_dynamic is necessary (for new glibc library)
     4234            FFLAGS=
     4235            cat >conftest.$ac_ext <<_ACEOF
     4236      program main
     4237      write(*,*) 'Hello world'
     4238      end
     4239_ACEOF
     4240rm -f conftest.$ac_objext conftest$ac_exeext
     4241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4242  (eval $ac_link) 2>conftest.er1
     4243  ac_status=$?
     4244  grep -v '^ *+' conftest.er1 >conftest.err
     4245  rm -f conftest.er1
     4246  cat conftest.err >&5
     4247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4248  (exit $ac_status); } &&
     4249         { ac_try='test -z "$ac_f77_werror_flag"
     4250                         || test ! -s conftest.err'
     4251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4252  (eval $ac_try) 2>&5
     4253  ac_status=$?
     4254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4255  (exit $ac_status); }; } &&
     4256         { ac_try='test -s conftest$ac_exeext'
     4257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4258  (eval $ac_try) 2>&5
     4259  ac_status=$?
     4260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4261  (exit $ac_status); }; }; then
     4262  :
     4263else
     4264  echo "$as_me: failed program was:" >&5
     4265sed 's/^/| /' conftest.$ac_ext >&5
     4266
     4267coin_add_fflags="-i_dynamic $coin_add_fflags"
     4268fi
     4269rm -f conftest.err conftest.$ac_objext \
     4270      conftest$ac_exeext conftest.$ac_ext
     4271            ;;
     4272          pgf77* | */pgf77* | pgf90* | */pgf90*)
     4273            coin_opt_fflags="-fast"
     4274            coin_add_fflags="-Kieee -pc 64"
     4275            coin_dbg_fflags="-g"
     4276          ;;
     4277        esac
     4278        ;;
     4279      *-ibm-*)
     4280        case "$F77" in
     4281          xlf* | */xlf* | mpxlf* | */mpxlf* )
     4282            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     4283            coin_add_fflags="-bmaxdata:0x80000000"
     4284            coin_dbg_fflags="-g -C"
     4285            ;;
     4286        esac
     4287        ;;
     4288      *-hp-*)
     4289        coin_opt_fflags="+O3"
     4290        coin_add_fflags="+U77"
     4291        coin_dbg_fflags="-C -g"
     4292        ;;
     4293      *-sun-*)
     4294        coin_opt_fflags="-O4"
     4295        coin_dbg_fflags="-g"
     4296        ;;
     4297      *-sgi-*)
     4298        coin_opt_fflags="-O5 -OPT:Olimit=0"
     4299        coin_dbg_fflags="-g"
     4300        ;;
     4301    esac
     4302  fi
     4303
     4304  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
     4305    coin_dbg_fflags="-g"
     4306  fi
     4307
     4308  if test -z "$coin_opt_fflags"; then
     4309    # Try if -O option works if nothing else is set
     4310    FFLAGS=-O
     4311    cat >conftest.$ac_ext <<_ACEOF
     4312      program main
     4313      integer i
     4314      end
     4315_ACEOF
     4316rm -f conftest.$ac_objext conftest$ac_exeext
     4317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4318  (eval $ac_link) 2>conftest.er1
     4319  ac_status=$?
     4320  grep -v '^ *+' conftest.er1 >conftest.err
     4321  rm -f conftest.er1
     4322  cat conftest.err >&5
     4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4324  (exit $ac_status); } &&
     4325         { ac_try='test -z "$ac_f77_werror_flag"
     4326                         || test ! -s conftest.err'
     4327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4328  (eval $ac_try) 2>&5
     4329  ac_status=$?
     4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4331  (exit $ac_status); }; } &&
     4332         { ac_try='test -s conftest$ac_exeext'
     4333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4334  (eval $ac_try) 2>&5
     4335  ac_status=$?
     4336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4337  (exit $ac_status); }; }; then
     4338  coin_opt_fflags="-O"
     4339else
     4340  echo "$as_me: failed program was:" >&5
     4341sed 's/^/| /' conftest.$ac_ext >&5
     4342
     4343fi
     4344rm -f conftest.err conftest.$ac_objext \
     4345      conftest$ac_exeext conftest.$ac_ext
     4346  fi
     4347
     4348  # if PM doesn't want the warning messages, take them out
     4349  if test x"$coin_skip_warn_fflags" = xyes; then
     4350    coin_warn_fflags=
     4351  fi
     4352
     4353  if test x${DBG_FFLAGS+set} != xset; then
     4354    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
     4355  fi
     4356  if test x${OPT_FFLAGS+set} != xset; then
     4357    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
     4358  fi
     4359
     4360  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
     4361  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
     4362
     4363  if test "$coin_debug_compile" = "true"; then
     4364    FFLAGS="$DBG_FFLAGS"
     4365  else
     4366    FFLAGS="$OPT_FFLAGS"
     4367  fi
     4368else
     4369  FFLAGS="$FFLAGS $ADD_FFLAGS"
     4370  if test x${DBG_FFLAGS+set} != xset; then
     4371    DBG_FFLAGS="$FFLAGS"
     4372  fi
     4373  if test x${OPT_FFLAGS+set} != xset; then
     4374    OPT_FFLAGS="$FFLAGS"
     4375  fi
     4376fi
     4377
     4378# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
     4379case "$FFLAGS" in
     4380  *-mno-cygwin*)
     4381    if test x${CPPFLAGS+set} != xset ; then
     4382      CPPFLAGS="-mno-cygwin"
     4383    else
     4384      case "$CPPFLAGS" in
     4385        *-mno-cygwin*)
     4386          ;;
     4387        *)
     4388          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     4389          ;;
     4390      esac
     4391    fi ;;
     4392esac
     4393
     4394# Try if FFLAGS works
     4395if test "$F77" != "unavailable" ; then
     4396  cat >conftest.$ac_ext <<_ACEOF
     4397      program main
     4398      integer i
     4399      end
     4400_ACEOF
     4401rm -f conftest.$ac_objext conftest$ac_exeext
     4402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4403  (eval $ac_link) 2>conftest.er1
     4404  ac_status=$?
     4405  grep -v '^ *+' conftest.er1 >conftest.err
     4406  rm -f conftest.er1
     4407  cat conftest.err >&5
     4408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4409  (exit $ac_status); } &&
     4410         { ac_try='test -z "$ac_f77_werror_flag"
     4411                         || test ! -s conftest.err'
     4412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4413  (eval $ac_try) 2>&5
     4414  ac_status=$?
     4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4416  (exit $ac_status); }; } &&
     4417         { ac_try='test -s conftest$ac_exeext'
     4418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4419  (eval $ac_try) 2>&5
     4420  ac_status=$?
     4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4422  (exit $ac_status); }; }; then
     4423  :
     4424else
     4425  echo "$as_me: failed program was:" >&5
     4426sed 's/^/| /' conftest.$ac_ext >&5
     4427
     4428FFLAGS=
     4429fi
     4430rm -f conftest.err conftest.$ac_objext \
     4431      conftest$ac_exeext conftest.$ac_ext
     4432  if test -z "$FFLAGS"; then
     4433    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
     4434echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
     4435    FFLAGS='-O'
     4436    cat >conftest.$ac_ext <<_ACEOF
     4437      program main
     4438      integer i
     4439      end
     4440_ACEOF
     4441rm -f conftest.$ac_objext conftest$ac_exeext
     4442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4443  (eval $ac_link) 2>conftest.er1
     4444  ac_status=$?
     4445  grep -v '^ *+' conftest.er1 >conftest.err
     4446  rm -f conftest.er1
     4447  cat conftest.err >&5
     4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4449  (exit $ac_status); } &&
     4450         { ac_try='test -z "$ac_f77_werror_flag"
     4451                         || test ! -s conftest.err'
     4452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4453  (eval $ac_try) 2>&5
     4454  ac_status=$?
     4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4456  (exit $ac_status); }; } &&
     4457         { ac_try='test -s conftest$ac_exeext'
     4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4459  (eval $ac_try) 2>&5
     4460  ac_status=$?
     4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4462  (exit $ac_status); }; }; then
     4463  :
     4464else
     4465  echo "$as_me: failed program was:" >&5
     4466sed 's/^/| /' conftest.$ac_ext >&5
     4467
     4468FFLAGS=
     4469fi
     4470rm -f conftest.err conftest.$ac_objext \
     4471      conftest$ac_exeext conftest.$ac_ext
     4472    if test -z "$FFLAGS"; then
     4473      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
     4474echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
     4475    fi
     4476  fi
     4477fi
     4478
     4479{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
     4480echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
     4481
     4482
     4483if test x"$MPIF77" = x; then :; else
     4484  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
     4485echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
     4486  F77="$MPIF77"
     4487fi
     4488
     4489case "$F77" in
     4490  ifort* | */ifort* | IFORT* | */IFORT*)
     4491    case $build in
     4492  *-mingw*)
     4493    if test "${LD+set}" = set; then :; else
     4494      LD=link
     4495    fi
     4496    ;;
     4497 esac
     4498 case $enable_doscompile in
     4499   msvc)
     4500     if test "x${LD+set}" = xset; then :; else
     4501       LD=link
     4502     fi
     4503     ;;
     4504 esac
     4505
     4506    ;;
     4507esac
     4508
     4509ac_ext=c
     4510ac_cpp='$CPP $CPPFLAGS'
     4511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4513ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4514
     4515
     4516
     4517# Initialize automake and libtool
     4518# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
     4519{
     4520
     4521
     4522
     4523# START
     4524
     4525# On Cygwin, building DLLs doesn't work
     4526case $build in
     4527  *-cygwin*)
     4528    coin_disable_shared=yes
     4529    platform=Cygwin
     4530  ;;
     4531  *-mingw*)
     4532    coin_disable_shared=yes
     4533    platform="Msys"
     4534#    case "$CXX" in
     4535#      cl*)
     4536#        coin_disable_shared=yes
     4537#        platform="Msys with cl"
     4538#    ;;
     4539#    esac
     4540  ;;
     4541esac
     4542if test x"$coin_disable_shared" = xyes; then
     4543  if test x"$enable_shared" = xyes; then
     4544    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
     4545echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
     4546  fi
     4547  enable_shared=no
     4548fi
     4549# By default, we only want the shared objects to be compiled
     4550# Check whether --enable-static or --disable-static was given.
     4551if test "${enable_static+set}" = set; then
     4552  enableval="$enable_static"
     4553  p=${PACKAGE-default}
     4554    case $enableval in
     4555    yes) enable_static=yes ;;
     4556    no) enable_static=no ;;
     4557    *)
     4558     enable_static=no
     4559      # Look at the argument we got.  We use all the common list separators.
     4560      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     4561      for pkg in $enableval; do
     4562        IFS="$lt_save_ifs"
     4563        if test "X$pkg" = "X$p"; then
     4564          enable_static=yes
     4565        fi
     4566      done
     4567      IFS="$lt_save_ifs"
     4568      ;;
     4569    esac
     4570else
     4571  enable_static=no
     4572fi;
     4573
     4574
     4575
     4576
     4577# Initialize automake
     4578echo "$as_me:$LINENO: checking for egrep" >&5
     4579echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     4580if test "${ac_cv_prog_egrep+set}" = set; then
     4581  echo $ECHO_N "(cached) $ECHO_C" >&6
     4582else
     4583  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     4584    then ac_cv_prog_egrep='grep -E'
     4585    else ac_cv_prog_egrep='egrep'
     4586    fi
     4587fi
     4588echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     4589echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     4590 EGREP=$ac_cv_prog_egrep
     4591
     4592
     4593am__api_version="1.9"
    13414594# Find a good install program.  We prefer a C program (faster),
    13424595# so one script is as good as another.  But avoid the broken or
     
    16004853rmdir .tst 2>/dev/null
    16014854
    1602 
     4855DEPDIR="${am__leading_dot}deps"
     4856
     4857          ac_config_commands="$ac_config_commands depfiles"
     4858
     4859
     4860am_make=${MAKE-make}
     4861cat > confinc << 'END'
     4862am__doit:
     4863        @echo done
     4864.PHONY: am__doit
     4865END
     4866# If we don't find an include directive, just comment out the code.
     4867echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
     4868echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
     4869am__include="#"
     4870am__quote=
     4871_am_result=none
     4872# First try GNU make style include.
     4873echo "include confinc" > confmf
     4874# We grep out `Entering directory' and `Leaving directory'
     4875# messages which can occur if `w' ends up in MAKEFLAGS.
     4876# In particular we don't look at `^make:' because GNU make might
     4877# be invoked under some other name (usually "gmake"), in which
     4878# case it prints its new name instead of `make'.
     4879if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     4880   am__include=include
     4881   am__quote=
     4882   _am_result=GNU
     4883fi
     4884# Now try BSD make style include.
     4885if test "$am__include" = "#"; then
     4886   echo '.include "confinc"' > confmf
     4887   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     4888      am__include=.include
     4889      am__quote="\""
     4890      _am_result=BSD
     4891   fi
     4892fi
     4893
     4894
     4895echo "$as_me:$LINENO: result: $_am_result" >&5
     4896echo "${ECHO_T}$_am_result" >&6
     4897rm -f confinc confmf
     4898
     4899# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
     4900if test "${enable_dependency_tracking+set}" = set; then
     4901  enableval="$enable_dependency_tracking"
     4902
     4903fi;
     4904if test "x$enable_dependency_tracking" != xno; then
     4905  am_depcomp="$ac_aux_dir/depcomp"
     4906  AMDEPBACKSLASH='\'
     4907fi
     4908
     4909
     4910if test "x$enable_dependency_tracking" != xno; then
     4911  AMDEP_TRUE=
     4912  AMDEP_FALSE='#'
     4913else
     4914  AMDEP_TRUE='#'
     4915  AMDEP_FALSE=
     4916fi
     4917
     4918
     4919
     4920
     4921
     4922# AC_MSG_NOTICE([Beginning automake initialisation.])
    16034923# Stuff for automake
    16044924# test to see if srcdir already configured
     
    17515071
    17525072
     5073depcc="$CC"   am_compiler_list=
     5074
     5075echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     5076echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     5077if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     5078  echo $ECHO_N "(cached) $ECHO_C" >&6
     5079else
     5080  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     5081  # We make a subdir and do the tests there.  Otherwise we can end up
     5082  # making bogus files that we don't know about and never remove.  For
     5083  # instance it was reported that on HP-UX the gcc test will end up
     5084  # making a dummy file named `D' -- because `-MD' means `put the output
     5085  # in D'.
     5086  mkdir conftest.dir
     5087  # Copy depcomp to subdir because otherwise we won't find it if we're
     5088  # using a relative directory.
     5089  cp "$am_depcomp" conftest.dir
     5090  cd conftest.dir
     5091  # We will build objects and dependencies in a subdirectory because
     5092  # it helps to detect inapplicable dependency modes.  For instance
     5093  # both Tru64's cc and ICC support -MD to output dependencies as a
     5094  # side effect of compilation, but ICC will put the dependencies in
     5095  # the current directory while Tru64 will put them in the object
     5096  # directory.
     5097  mkdir sub
     5098
     5099  am_cv_CC_dependencies_compiler_type=none
     5100  if test "$am_compiler_list" = ""; then
     5101     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     5102  fi
     5103  for depmode in $am_compiler_list; do
     5104    # Setup a source with many dependencies, because some compilers
     5105    # like to wrap large dependency lists on column 80 (with \), and
     5106    # we should not choose a depcomp mode which is confused by this.
     5107    #
     5108    # We need to recreate these files for each test, as the compiler may
     5109    # overwrite some of them when testing with obscure command lines.
     5110    # This happens at least with the AIX C compiler.
     5111    : > sub/conftest.c
     5112    for i in 1 2 3 4 5 6; do
     5113      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     5114      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     5115      # Solaris 8's {/usr,}/bin/sh.
     5116      touch sub/conftst$i.h
     5117    done
     5118    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     5119
     5120    case $depmode in
     5121    nosideeffect)
     5122      # after this tag, mechanisms are not by side-effect, so they'll
     5123      # only be used when explicitly requested
     5124      if test "x$enable_dependency_tracking" = xyes; then
     5125        continue
     5126      else
     5127        break
     5128      fi
     5129      ;;
     5130    none) break ;;
     5131    esac
     5132    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     5133    # mode.  It turns out that the SunPro C++ compiler does not properly
     5134    # handle `-M -o', and we need to detect this.
     5135    if depmode=$depmode \
     5136       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     5137       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     5138       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     5139         >/dev/null 2>conftest.err &&
     5140       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     5141       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     5142       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     5143      # icc doesn't choke on unknown options, it will just issue warnings
     5144      # or remarks (even with -Werror).  So we grep stderr for any message
     5145      # that says an option was ignored or not supported.
     5146      # When given -MP, icc 7.0 and 7.1 complain thusly:
     5147      #   icc: Command line warning: ignoring option '-M'; no argument required
     5148      # The diagnosis changed in icc 8.0:
     5149      #   icc: Command line remark: option '-MP' not supported
     5150      if (grep 'ignoring option' conftest.err ||
     5151          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     5152        am_cv_CC_dependencies_compiler_type=$depmode
     5153        break
     5154      fi
     5155    fi
     5156  done
     5157
     5158  cd ..
     5159  rm -rf conftest.dir
     5160else
     5161  am_cv_CC_dependencies_compiler_type=none
     5162fi
     5163
     5164fi
     5165echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
     5166echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     5167CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
     5168
     5169
     5170
     5171if
     5172  test "x$enable_dependency_tracking" != xno \
     5173  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     5174  am__fastdepCC_TRUE=
     5175  am__fastdepCC_FALSE='#'
     5176else
     5177  am__fastdepCC_TRUE='#'
     5178  am__fastdepCC_FALSE=
     5179fi
     5180
     5181
     5182depcc="$CXX"  am_compiler_list=
     5183
     5184echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     5185echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     5186if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
     5187  echo $ECHO_N "(cached) $ECHO_C" >&6
     5188else
     5189  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     5190  # We make a subdir and do the tests there.  Otherwise we can end up
     5191  # making bogus files that we don't know about and never remove.  For
     5192  # instance it was reported that on HP-UX the gcc test will end up
     5193  # making a dummy file named `D' -- because `-MD' means `put the output
     5194  # in D'.
     5195  mkdir conftest.dir
     5196  # Copy depcomp to subdir because otherwise we won't find it if we're
     5197  # using a relative directory.
     5198  cp "