patch-configure_ac 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. $OpenBSD: patch-configure_ac,v 1.8 2017/05/04 15:20:24 espie Exp $
  2. SOVERSION defaults to 1.0. SHARED_LIBS, however, could be changed
  3. at any point. Ensure they are on sync in case INSTSONAME is used
  4. by a third party.
  5. --- configure.ac.orig
  6. +++ configure.ac
  7. @@ -465,7 +465,7 @@ esac
  8. if test $define_xopen_source = yes
  9. then
  10. - AC_DEFINE(_XOPEN_SOURCE, 600,
  11. + AC_DEFINE(_XOPEN_SOURCE, 700,
  12. Define to the level of X/Open that your system supports)
  13. # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
  14. @@ -475,7 +475,7 @@ then
  15. AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1,
  16. Define to activate Unix95-and-earlier features)
  17. - AC_DEFINE(_POSIX_C_SOURCE, 200112L, Define to activate features from IEEE Stds 1003.1-2001)
  18. + AC_DEFINE(_POSIX_C_SOURCE, 200809L, Define to activate features from IEEE Stds 1003.1-2001)
  19. fi
  20. @@ -916,6 +916,9 @@ if test $enable_shared = "yes"; then
  21. case $ac_sys_system in
  22. FreeBSD*)
  23. SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
  24. + ;;
  25. + OpenBSD*)
  26. + SOVERSION=${LIBpython2.7_VERSION}
  27. ;;
  28. esac
  29. INSTSONAME="$LDLIBRARY".$SOVERSION