Skip to content

Commit

Permalink
attempt to fix autoconf ObjC runtime check
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel A. Steffen <das@apple.com>
  • Loading branch information
das committed Jun 4, 2017
1 parent 7aa5a40 commit 9b71cdd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions configure.ac
Expand Up @@ -374,10 +374,9 @@ AC_CHECK_HEADER([Foundation/Foundation.h],
[have_foundation=true], [have_foundation=false]
)
AM_CONDITIONAL(HAVE_FOUNDATION, $have_foundation)
AC_CHECK_HEADER([objc/runtime.h], [
AC_CHECK_HEADER([objc/NSObject.h], [
AC_DEFINE(HAVE_OBJC, 1, [Define if you have the Objective-C runtime])
have_objc=true], [have_objc=false],
[#include <objc/runtime.h>]
have_objc=true], [have_objc=false]
)
AM_CONDITIONAL(USE_OBJC, $have_objc)
AC_LANG_POP([Objective C])
Expand Down Expand Up @@ -417,7 +416,10 @@ AC_CHECK_FUNC([sem_init],
[have_sem_init=true], [have_sem_init=false]
)

AC_CHECK_HEADER(linux/futex.h, [have_futex=true], [have_futex=false])
AC_CHECK_HEADER([linux/futex.h], [
AC_DEFINE(HAVE_FUTEX, 1, [Define if linux/futex.h is present])
have_futex=true], [have_futex=false]
)

#
# We support both Mach semaphores and POSIX semaphores; if the former are
Expand Down

0 comments on commit 9b71cdd

Please sign in to comment.