From e46f2cdb540d6a9648aaebe8158f44b6e18df1d8 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Mon, 3 Jan 2011 10:40:56 +0000 Subject: [PATCH] autoconf: Tidy up header includes Tidy up our list of header includes so it's easier to see what we're testing for. The list is now one-per-line, in alphabetically sorted order. Note that this won't affect our use of the default include set, as autoconf will already have tested for all of those before it starts this CHECK_HEADERS run. Reviewed-on: http://gerrit.openafs.org/3612 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit c8fc94fb86255a2c5cbd1613b33e32ec3a4d3b21) Change-Id: I0b507dcd9578d1c041731f7f7923f27e33fc89df Reviewed-on: http://gerrit.openafs.org/9411 Reviewed-by: Derrick Brashear Reviewed-by: Andrew Deason Reviewed-by: Stephan Wiesand Tested-by: BuildBot --- acinclude.m4 | 49 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index e87b8bd73..bd4a43b77 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1294,16 +1294,47 @@ dnl checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_HEADER_DIRENT -AC_CHECK_HEADERS(stdlib.h string.h unistd.h fcntl.h sys/time.h sys/file.h grp.h) -AC_CHECK_HEADERS(netinet/in.h netdb.h sys/fcntl.h sys/mnttab.h sys/mntent.h) -AC_CHECK_HEADERS(mntent.h sys/vfs.h sys/param.h sys/fs_types.h sys/fstyp.h) -AC_CHECK_HEADERS(sys/mount.h strings.h termios.h signal.h sys/pag.h) -AC_CHECK_HEADERS(windows.h direct.h sys/ipc.h sys/resource.h) -AC_CHECK_HEADERS(security/pam_modules.h ucontext.h regex.h sys/statvfs.h sys/statfs.h sys/bitypes.h) +AC_CHECK_HEADERS([ \ + curses.h \ + direct.h \ + et/com_err.h \ + fcntl.h \ + grp.h \ + mntent.h \ + ncurses.h \ + ncurses/ncurses.h \ + netinet/in.h \ + netdb.h \ + regex.h \ + search.h \ + security/pam_modules.h \ + signal.h \ + stdlib.h \ + string.h \ + strings.h \ + sys/bitypes.h \ + sys/fcntl.h \ + sys/file.h \ + sys/fs_types.h \ + sys/fstyp.h \ + sys/ipc.h \ + sys/mntent.h \ + sys/mnttab.h \ + sys/mount.h \ + sys/pag.h \ + sys/param.h \ + sys/resource.h \ + sys/statfs.h \ + sys/statvfs.h \ + sys/time.h \ + sys/vfs.h \ + termios.h \ + ucontext.h \ + unistd.h \ + windows.h \ +]) + AC_CHECK_HEADERS(linux/errqueue.h,,,[#include ]) -AC_CHECK_HEADERS(et/com_err.h) -AC_CHECK_HEADERS(ncurses.h ncurses/ncurses.h curses.h) -AC_CHECK_HEADERS(search.h) AC_CHECK_TYPES([fsblkcnt_t],,,[ #include -- 2.39.5