| 1 |
# Configuration for paxutils/lib/system.h. |
| 2 |
|
| 3 |
# Copyright (C) 2005-2023 Free Software Foundation, Inc. |
| 4 |
# This file is free software; the Free Software Foundation |
| 5 |
# gives unlimited permission to copy and/or distribute it, |
| 6 |
# with or without modifications, as long as this notice is preserved. |
| 7 |
|
| 8 |
AC_DEFUN([PU_SYSTEM],[ |
| 9 |
AC_CHECK_HEADERS_ONCE([string.h memory.h fcntl.h sys/time.h sys/wait.h \ |
| 10 |
sys/gentape.h sys/tape.h sys/device.h sys/param.h sys/tprintf.h sys/mtio.h \ |
| 11 |
sgtty.h sys/io/trioctl.h locale.h pwd.h grp.h]) |
| 12 |
|
| 13 |
AC_CHECK_HEADERS([sys/buf.h], [], [], |
| 14 |
[#if HAVE_SYS_PARAM_H |
| 15 |
#include <sys/param.h> |
| 16 |
#endif]) |
| 17 |
|
| 18 |
AC_CHECK_MEMBERS([struct stat.st_blksize]) |
| 19 |
AC_REQUIRE([AC_STRUCT_ST_BLOCKS]) |
| 20 |
|
| 21 |
AC_CHECK_FUNCS_ONCE(lstat mkfifo setlocale) |
| 22 |
AC_REQUIRE([gl_STDINT_H]) |
| 23 |
|
| 24 |
AC_SEARCH_LIBS(gethostbyname, nsl) |
| 25 |
]) |