aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-02-14 14:52:24 -0800
committerGuy Harris <guy@alum.mit.edu>2015-02-14 22:53:15 +0000
commit1b43a80c0d19244608b0d01ff483445504d2e563 (patch)
tree02d82c32db3603f55ec9c776363850c3bc568fe6
parentbade5f31da755783d7b882b0605b619b3d1f8a84 (diff)
Note why some header checks are done even if unnecessary on UN*X.
Change-Id: I0ea8cbaed65922e4dd5e49bbb7578b392deb8c02 Reviewed-on: https://code.wireshark.org/review/7125 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6e21650455..8392611d8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2537,6 +2537,19 @@ AC_SUBST(LIBCAP_LIBS)
dnl Checks for header files.
dnl Some of these may not be needed: http://hacks.owlfolio.org/header-survey/
+dnl Note, however, that, whilst this script is generally run only on UN*Xes:
+dnl
+dnl 1) we also support building on and for Windows and not all of those
+dnl headers are present on Windows, so the code has to check a
+dnl #define *anyway* to determine whether to include the header
+dnl file
+dnl
+dnl and
+dnl
+dnl 2) this might also be run on Windows with a sufficiently UNIXy
+dnl environment such as Cygwin (although Wireshark should be built
+dnl natively rather than using Cygwin).
+dnl
AC_CHECK_HEADERS(fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h unistd.h)
AC_CHECK_HEADERS(sys/ioctl.h sys/param.h sys/socket.h sys/sockio.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h)
AC_CHECK_HEADERS(netinet/in.h)