You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
587 B

  1. --- a/configure.cmake
  2. +++ b/configure.cmake
  3. @@ -1018,9 +1018,12 @@ CHECK_STRUCT_HAS_MEMBER("struct sockaddr
  4. SET(CMAKE_EXTRA_INCLUDE_FILES)
  5. -CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_H)
  6. -IF(NOT HAVE_UCONTEXT_H)
  7. - CHECK_INCLUDE_FILE(sys/ucontext.h HAVE_UCONTEXT_H)
  8. +CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_HEADER)
  9. +IF(NOT HAVE_UCONTEXT_HEADER)
  10. + CHECK_INCLUDE_FILE(sys/ucontext.h HAVE_UCONTEXT_HEADER)
  11. +ENDIF()
  12. +IF(HAVE_UCONTEXT_HEADER)
  13. + CHECK_FUNCTION_EXISTS(makecontext HAVE_UCONTEXT_H)
  14. ENDIF()
  15. IF(HAVE_UCONTEXT_H)
  16. CHECK_FUNCTION_EXISTS(makecontext HAVE_UCONTEXT_H)