ObjFW  Check-in [d31c61cee7]

Overview
Comment:Don't check for nanosleep() on AmigaOS / MorphOS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d31c61cee7618095085ca035633a64432a1d8561fbc8636966932850e0241e97
User & Date: js on 2020-12-31 14:34:55
Other Links: manifest | tags
Context
2020-12-31
17:17
Work around broken <inttypes.h> on HP-UX check-in: 6a38440dd3 user: js tags: trunk
14:34
Don't check for nanosleep() on AmigaOS / MorphOS check-in: d31c61cee7 user: js tags: trunk
2020-12-30
14:53
OFKqueueKernelEventObserver: Fix type of udata check-in: 3b41905658 user: js tags: trunk
Changes

Modified configure.ac from [f4b0a15726] to [6a080fb100].

1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211

1212

1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
	], [
		AC_MSG_RESULT(no)
	])
	OBJCFLAGS="$old_OBJCFLAGS"
])

AC_CHECK_HEADERS(dirent.h)
AC_CHECK_FUNCS([sysconf gmtime_r localtime_r nanosleep])

case "$host_os" in
amigaos* | morphos*)

	dnl There is a symbol, but we cannot use fcntl() for sockets on

	dnl AmigaOS / MorphOS.
	;;
*)
	AC_CHECK_HEADERS(fcntl.h)
	AC_CHECK_FUNCS(fcntl)
	;;
esac

AC_CHECK_HEADERS(xlocale.h)
AC_CHECK_FUNCS([strtod_l strtof_l asprintf_l])
AS_IF([test x"$gnu_source" != x"yes" -a \( \
    x"$ac_cv_func_strtod_l" = x"yes" -o x"$ac_cv_func_strtof_l" = x"yes" -o \







|



>
|
>
|



|







1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
	], [
		AC_MSG_RESULT(no)
	])
	OBJCFLAGS="$old_OBJCFLAGS"
])

AC_CHECK_HEADERS(dirent.h)
AC_CHECK_FUNCS([sysconf gmtime_r localtime_r])

case "$host_os" in
amigaos* | morphos*)
	dnl We don't want fcntl() or nanosleep() on AmigaOS / MorphOS, despite
	dnl a symbol existing. The reason is that we cannot use fcntl() for
	dnl sockets and that nanosleep() is yet another function that uses
	dnl errno, so would need to be passed from the linklib.
	;;
*)
	AC_CHECK_HEADERS(fcntl.h)
	AC_CHECK_FUNCS([fcntl nanosleep])
	;;
esac

AC_CHECK_HEADERS(xlocale.h)
AC_CHECK_FUNCS([strtod_l strtof_l asprintf_l])
AS_IF([test x"$gnu_source" != x"yes" -a \( \
    x"$ac_cv_func_strtod_l" = x"yes" -o x"$ac_cv_func_strtof_l" = x"yes" -o \