Changeset 3275


Ignore:
Timestamp:
Jan 13, 2015 8:06:36 PM (5 years ago)
Author:
tkr
Message:

Disabling dependency linking with Visual Studio by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/0.8/coin.m4

    r3272 r3275  
    15371537  enable_shared=yes;
    15381538else
    1539   # On Cygwin and AIX, building DLLs doesn't work
    15401539  case $build in
    15411540    *-cygwin* | *-mingw*)
     
    15441543        case "$CC" in
    15451544          clang* )
    1546             AC_MSG_WARN([DLL building not supported. I'm disabling your choice.])
     1545            AC_MSG_WARN([Building of DLLs not supported in this configuration.])
    15471546            ;;
    15481547          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    1549             AC_MSG_NOTICE([DLL building not supported, but will build with -MD(d) instead of -MT(d).])
     1548            AC_MSG_NOTICE([Building of DLLs not supported in this configuration.])
    15501549            ;;
    15511550          *gcc*)
     
    15531552              coin_disable_shared=no
    15541553            else
    1555               AC_MSG_WARN([To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking])
     1554              AC_MSG_WARN([Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built])
    15561555            fi
    15571556            ;;
    15581557          *)
    1559             AC_MSG_WARN([DLL building not supported. I'm disabling your choice.])
     1558            AC_MSG_WARN([Building of DLLs not supported in this configuration.])
    15601559            ;;
    15611560        esac
     
    15661565      platform=AIX
    15671566      if test x"$enable_shared" = xyes; then
    1568         AC_MSG_WARN([Shared objects are not supported. I'm disabling your choice.])
     1567        AC_MSG_WARN([Shared objects are not supported.])
    15691568      fi
    15701569    ;;
     
    16631662AC_ARG_ENABLE([dependency-linking],[],
    16641663  [dependency_linking="$enableval"],
    1665   [dependency_linking=yes])
    1666 
    1667 # ToDo
    1668 # For now, don't use the -no-undefined flag, since the Makefiles are
    1669 # not yet set up that way.  But we need to fix this, when we want
    1670 # to comile DLLs under Windows.
     1664  [dependency_linking=auto])
     1665
     1666if test "$dependency_linking" = auto; then
     1667  # On Cygwin and AIX, building DLLs doesn't work
     1668  dependency_linking=no
     1669  if test x"$enable_shared" = xyes; then
     1670    case $build in
     1671      *-cygwin* | *-mingw*)
     1672        case "$CC" in
     1673          clang* )
     1674            dependency_linking=yes
     1675            ;;
     1676          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     1677            dependency_linking=no
     1678            ;;
     1679          *gcc*)
     1680            dependency_linking=yes
     1681            ;;
     1682          *)
     1683            dependency_linking=yes
     1684            ;;
     1685        esac
     1686        ;;
     1687      *)
     1688        dependency_linking=yes
     1689        ;;
     1690    esac
     1691  fi
     1692fi
     1693
    16711694if test "$dependency_linking" = yes ;
    16721695then
Note: See TracChangeset for help on using the changeset viewer.