summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-06-29 04:59:25 (GMT)
committerGitHub <noreply@github.com>2021-06-29 04:59:25 (GMT)
commit4ff544f9977da3bd54eac03cc124961eea7c4daf (patch)
treed23a3d50fbeb2c1eca882db4d48726173f25097c /configure.ac
parent734d317da9c759799c92ff47e05e3be7e3e969a9 (diff)
downloadhdf5-4ff544f9977da3bd54eac03cc124961eea7c4daf.zip
hdf5-4ff544f9977da3bd54eac03cc124961eea7c4daf.tar.gz
hdf5-4ff544f9977da3bd54eac03cc124961eea7c4daf.tar.bz2
Cleans up POSIX/C bits in H5private.h (#804)
* Cleans up POSIX/C bits in H5private.h * Assume difftime exists (C89) * Reorg AC_CHECK_HEADERS so headers are in alphabetical order * Split off networking-related AC_CHECK_HEADERS * Remove unused UNAME_CYGWIN from configure.ac * Remove checks for unused sys/timeb.h * Tidying pass over H5private.h HD prefix macros * Tidy H5win32defs.h * Add HD prefix to various scanf calls * Committing clang-format changes * Fixes to the alarm(2) code used in the tests to make Windows happy Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac25
1 files changed, 10 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index dbeb968..3dd7328 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1225,11 +1225,9 @@ AC_CHECK_LIB([dl], [dlopen])
##
## Unix
-AC_CHECK_HEADERS([sys/resource.h sys/time.h unistd.h sys/ioctl.h sys/stat.h])
-AC_CHECK_HEADERS([sys/socket.h sys/types.h sys/file.h])
-AC_CHECK_HEADERS([features.h])
-AC_CHECK_HEADERS([dirent.h])
-AC_CHECK_HEADERS([netdb.h netinet/in.h arpa/inet.h])
+AC_CHECK_HEADERS([dirent.h features.h unistd.h])
+AC_CHECK_HEADERS([sys/file.h sys/ioctl.h sys/resource.h])
+AC_CHECK_HEADERS([sys/stat.h sys/time.h sys/types.h])
## Darwin
AC_SUBST([H5_IS_DARWIN])
@@ -1242,20 +1240,17 @@ case $host_os in
esac
## Windows
+## The winsock header is needed for gethostname
+AC_CHECK_HEADERS([winsock2.h])
case "`uname`" in
- CYGWIN*)
- AC_CHECK_HEADERS([sys/timeb.h])
- UNAME_CYGWIN="yes"
- ;;
MINGW*)
- AC_CHECK_HEADERS([winsock2.h sys/timeb.h])
AC_HAVE_LIBRARY([ws2_32])
;;
- *)
- AC_CHECK_HEADERS([winsock2.h sys/timeb.h])
- ;;
esac
+# Mirror VFD networking
+AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h sys/socket.h])
+
## ----------------------------------------------------------------------
## Some platforms require that all symbols are resolved when a library
## is linked. We can use the -no-undefined flag to tell libtool that
@@ -2007,12 +2002,12 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
## NOTE: clock_gettime may require linking to the rt or posix4 library
## so we'll search for it before calling AC_CHECK_FUNCS.
AC_SEARCH_LIBS([clock_gettime], [rt posix4])
-AC_CHECK_FUNCS([alarm clock_gettime difftime fcntl flock fork])
+AC_CHECK_FUNCS([alarm asprintf clock_gettime fcntl flock fork])
AC_CHECK_FUNCS([gethostname getrusage gettimeofday])
AC_CHECK_FUNCS([lstat rand_r random setsysinfo])
AC_CHECK_FUNCS([siglongjmp sigsetjmp sigprocmask])
AC_CHECK_FUNCS([srandom strdup symlink])
-AC_CHECK_FUNCS([tmpfile asprintf vasprintf waitpid])
+AC_CHECK_FUNCS([tmpfile vasprintf waitpid])
## ----------------------------------------------------------------------
## Check compiler characteristics