ObjFW  Check-in [50cc659245]

Overview
Comment:configure: Fix check for net/if.h on macOS 10.5
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 50cc659245614415fc8cb796dca7bb772f86078bf89439b95c48a407c4327d28
User & Date: js on 2023-08-29 12:00:05
Other Links: manifest | tags
Context
2023-08-29
12:16
Fix compilation with Apple GCC 4.0.1 & 4.2.1 check-in: b5e3f01a59 user: js tags: trunk
12:00
configure: Fix check for net/if.h on macOS 10.5 check-in: 50cc659245 user: js tags: trunk
11:24
configure: Fix for autoconf 2.61 check-in: 73234a33ca user: js tags: trunk
Changes

Modified configure.ac from [74c34573f2] to [4cb997c451].

1402
1403
1404
1405
1406
1407
1408
1409






1410
1411
1412
1413
1414
1415
1416
1402
1403
1404
1405
1406
1407
1408

1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421







-
+
+
+
+
+
+







			[Whether we have netinet/in.h])
	])
	AC_CHECK_HEADER(netinet/tcp.h, [
		AC_DEFINE(OF_HAVE_NETINET_TCP_H, 1,
			[Whether we have netinet/tcp.h])
	])
	AC_CHECK_HEADERS([arpa/inet.h netdb.h sys/sockio.h])
	AC_CHECK_HEADERS([net/if.h net/if_arp.h net/if_dl.h net/if_types.h])
	AC_CHECK_HEADERS([net/if.h], [], [], [
		#ifdef OF_HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
	])
	AC_CHECK_HEADERS([net/if_arp.h net/if_dl.h net/if_types.h])
	AC_CHECK_FUNCS([if_indextoname if_nametoindex if_nameindex])
	AC_CHECK_TYPES([struct sockaddr_dl], [], [], [
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_NET_IF_DL_H
		# include <net/if_dl.h>