Skip to content

Commit 9b71cdd

Browse files
committed
attempt to fix autoconf ObjC runtime check
Signed-off-by: Daniel A. Steffen <das@apple.com>
1 parent 7aa5a40 commit 9b71cdd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

configure.ac

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,9 @@ AC_CHECK_HEADER([Foundation/Foundation.h],
374374
[have_foundation=true], [have_foundation=false]
375375
)
376376
AM_CONDITIONAL(HAVE_FOUNDATION, $have_foundation)
377-
AC_CHECK_HEADER([objc/runtime.h], [
377+
AC_CHECK_HEADER([objc/NSObject.h], [
378378
AC_DEFINE(HAVE_OBJC, 1, [Define if you have the Objective-C runtime])
379-
have_objc=true], [have_objc=false],
380-
[#include <objc/runtime.h>]
379+
have_objc=true], [have_objc=false]
381380
)
382381
AM_CONDITIONAL(USE_OBJC, $have_objc)
383382
AC_LANG_POP([Objective C])
@@ -417,7 +416,10 @@ AC_CHECK_FUNC([sem_init],
417416
[have_sem_init=true], [have_sem_init=false]
418417
)
419418

420-
AC_CHECK_HEADER(linux/futex.h, [have_futex=true], [have_futex=false])
419+
AC_CHECK_HEADER([linux/futex.h], [
420+
AC_DEFINE(HAVE_FUTEX, 1, [Define if linux/futex.h is present])
421+
have_futex=true], [have_futex=false]
422+
)
421423

422424
#
423425
# We support both Mach semaphores and POSIX semaphores; if the former are

0 commit comments

Comments
 (0)