ObjFW  Check-in [4d0e45544c]

Overview
Comment:configure: Check for struct ifreq for ofatalkcfg
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4d0e45544c71e6b877aa5310a2ea5b7f5588609bc815ae91242af2f2a1ac1c7d
User & Date: js on 2023-04-12 13:23:22
Other Links: manifest | tags
Context
2023-04-12
21:18
utils/ofatalkcfg: Make GCC happy check-in: e63e352467 user: js tags: trunk
13:23
configure: Check for struct ifreq for ofatalkcfg check-in: 4d0e45544c user: js tags: trunk
10:41
utils/ofatalkcfg: Only use SOCK_RAW on macOS check-in: 0275bd6301 user: js tags: trunk
Changes

Modified configure.ac from [e8ddf2bebf] to [671a67f9d4].

1684
1685
1686
1687
1688
1689
1690
1691

1692





1693
1694
1695
1696
1697
1698
1699
1684
1685
1686
1687
1688
1689
1690

1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704







-
+

+
+
+
+
+







			egrep_cpp_yes
			#endif
		], [
			AC_DEFINE(OF_HAVE_APPLETALK, 1,
			    [Whether we have AppleTalk])
			AC_SUBST(USE_SRCS_APPLETALK, '${SRCS_APPLETALK}')

			AS_IF([test x"ac_cv_header_net_if_h" = x"yes"] [
			AC_CHECK_MEMBERS([struct ifreq.ifr_name], [
				AC_SUBST(OFATALKCFG, ofatalkcfg)
			], [], [
				#ifdef OF_HAVE_SYS_SOCKET_H
				# include <sys/socket.h>
				#endif
				#include <net/if.h>
			])
		])
	])

	AC_CHECK_FUNCS(paccept accept4, break)

	AC_CHECK_FUNCS(kqueue1 kqueue, [