Commit | Line | Data |
---|---|---|
c627d613 AT |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | AC_INIT(byteorder.h) | |
3 | AC_CONFIG_HEADER(config.h) | |
4 | ||
5 | dnl Checks for programs. | |
6 | AC_PROG_CC | |
7 | AC_PROG_INSTALL | |
8 | AC_SUBST(SHELL) | |
9 | ||
10 | AC_HEADER_DIRENT | |
11 | AC_HEADER_STDC | |
12 | AC_HEADER_TIME | |
13 | AC_HEADER_SYS_WAIT | |
14 | AC_CHECK_HEADERS(sys/fcntl.h fcntl.h sys/time.h unistd.h utime.h grp.h) | |
15 | AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h) | |
16 | ||
17 | AC_CHECK_SIZEOF(int) | |
18 | AC_CHECK_SIZEOF(long) | |
19 | AC_CHECK_SIZEOF(short) | |
20 | ||
21 | AC_C_INLINE | |
22 | ||
23 | AC_TYPE_SIGNAL | |
24 | AC_TYPE_UID_T | |
25 | AC_TYPE_MODE_T | |
26 | AC_TYPE_OFF_T | |
27 | AC_TYPE_SIZE_T | |
28 | AC_TYPE_PID_T | |
29 | AC_STRUCT_ST_RDEV | |
30 | ||
31 | echo -n "checking for errno in errno.h... " | |
32 | AC_TRY_COMPILE([#include <errno.h>],[int i = errno], | |
33 | echo yes; AC_DEFINE(HAVE_ERRNO_DECL), | |
34 | echo no) | |
35 | ||
36 | AC_FUNC_MEMCMP | |
37 | AC_FUNC_MMAP | |
38 | AC_FUNC_UTIME_NULL | |
39 | AC_CHECK_FUNCS(waitpid strtok pipe getcwd mkdir strdup strerror chown chmod mknod) | |
40 | AC_CHECK_FUNCS(fchmod fstat strchr bcopy bzero readlink utime utimes getopt_long) | |
41 | ||
42 | echo -n "checking for working fnmatch... " | |
43 | AC_TRY_RUN([#include <fnmatch.h> | |
44 | main() { exit(fnmatch("*.o", "x.o", 0) == 0? 0: 1); }], | |
45 | echo yes;AC_DEFINE(HAVE_FNMATCH), | |
46 | echo no) | |
47 | ||
48 | AC_OUTPUT(Makefile) |