198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
|
LIBS="-lobjc $LIBS"
], [
AC_MSG_ERROR([libobjc not found!])
])
;;
esac
AC_CHECK_FUNC(objc_getProperty,, [
AC_DEFINE(NEED_OBJC_PROPERTIES_INIT, 1,
[Whether objc_properties_init needs to be called])
AC_SUBST(OBJC_PROPERTIES_M, "objc_properties.m")
])
AC_CHECK_FUNC(objc_enumerationMutation, [
AC_DEFINE(HAVE_OBJC_ENUMERATIONMUTATION, 1,
[Whether we have objc_enumerationMutation])
])
case "$host_os" in
darwin*)
|
<
<
<
<
<
<
|
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
LIBS="-lobjc $LIBS"
], [
AC_MSG_ERROR([libobjc not found!])
])
;;
esac
AC_CHECK_FUNC(objc_enumerationMutation, [
AC_DEFINE(HAVE_OBJC_ENUMERATIONMUTATION, 1,
[Whether we have objc_enumerationMutation])
])
case "$host_os" in
darwin*)
|
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
|
AC_DEFINE(OF_THREADS, 1, [Whether we have threads])
AC_SUBST(OFTHREAD_M, "OFThread.m")
AC_SUBST(OFTHREADTESTS_M, "OFThreadTests.m")
AC_SUBST(OFHTTPREQUESTTESTS_M, "OFHTTPRequestTests.m")
AC_SUBST(THREADING_H, "threading.h")
AC_CHECK_FUNC(objc_sync_enter,, [
AC_SUBST(OBJC_SYNC_M, "objc_sync.m")
AC_DEFINE(NEED_OBJC_SYNC_INIT, 1,
[Whether objc_sync_init needs to be called])
])
atomic_ops="none"
AC_MSG_CHECKING(whether we have an atomic ops assembly implementation)
AC_EGREP_CPP(yes, [
#if defined(__GNUC__) && (defined(__i386__) || \
defined(__amd64__) || defined(__x86_64__))
yes
|
<
<
<
<
<
<
|
367
368
369
370
371
372
373
374
375
376
377
378
379
380
|
AC_DEFINE(OF_THREADS, 1, [Whether we have threads])
AC_SUBST(OFTHREAD_M, "OFThread.m")
AC_SUBST(OFTHREADTESTS_M, "OFThreadTests.m")
AC_SUBST(OFHTTPREQUESTTESTS_M, "OFHTTPRequestTests.m")
AC_SUBST(THREADING_H, "threading.h")
atomic_ops="none"
AC_MSG_CHECKING(whether we have an atomic ops assembly implementation)
AC_EGREP_CPP(yes, [
#if defined(__GNUC__) && (defined(__i386__) || \
defined(__amd64__) || defined(__x86_64__))
yes
|