ObjFW  Diff

Differences From Artifact [94728735e5]:

To Artifact [228ea25515]:

  • File configure.ac — part of check-in [d76213374e] at 2020-11-29 02:44:17 on branch trunk — OFKernelEventObserver: Reorder #ifdefs

    Check for AmigaOS first, as we have a special implementation for it that
    uses WaitSelect() instead. This way, we no longer need to match $host_os
    to manually disable the pipe() check, which would break if one of the
    AmigaOS variants adds pipe() later on. (user: js, size: 50237) [annotate] [blame] [check-ins using]


1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335



1336
1337
1338
1339
1340
1341
1342
1343
1344
1322
1323
1324
1325
1326
1327
1328







1329
1330
1331


1332
1333
1334
1335
1336
1337
1338







-
-
-
-
-
-
-
+
+
+
-
-







			[Whether strerror_r returns char *])
	])
])

AC_CHECK_HEADERS(sys/utsname.h)
AC_CHECK_FUNCS(uname)

case "$host_os" in
	amigaos*)
		;;
	*)
		AC_CHECK_FUNC(pipe, [
			AC_DEFINE(OF_HAVE_PIPE, 1, [Whether we have pipe()])
		])
AC_CHECK_FUNC(pipe, [
	AC_DEFINE(OF_HAVE_PIPE, 1, [Whether we have pipe()])
])
		;;
esac

AC_ARG_ENABLE(sockets,
	AS_HELP_STRING([--disable-sockets], [disable socket support]))
AS_IF([test x"$enable_sockets" != x"no"], [
	AC_DEFINE(OF_HAVE_SOCKETS, 1, [Whether we have sockets])
	AC_SUBST(USE_SRCS_SOCKETS, '${SRCS_SOCKETS}')