-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
executable file
·69 lines (54 loc) · 1.64 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
AC_INIT([colorize],[1.1],[[email protected]])
AM_INIT_AUTOMAKE
AC_GNU_SOURCE
AC_CANONICAL_HOST
case $host in
*-*-*linux*-*) AC_DEFINE([__LINUX__],1,[Linux operating system functions]) ;;
*-*-mingw32) CPPFLAGS="-DUNICODE -D_UNICODE $CPPFLAGS"
esac
AC_PROG_CC
AC_PROG_INSTALL
AC_CONFIG_FILES([Makefile src/Makefile])
AC_CONFIG_HEADER([config.h])
# Bring additional directories where things might be found into our
# search path. I don't know why autoconf doesn't do this by default
for spfx in /usr/local /opt/local /sw ; do
echo checking ${spfx}/include
if test -d ${spfx}/include; then
CFLAGS="-I${spfx}/include $CFLAGS"
CPPFLAGS="-I${spfx}/include $CPPFLAGS"
LDFLAGS="-L${spfx}/lib $LDFLAGS"
fi
done
# Checks for header files.
#AC_HEADER_DIRENT
#AC_HEADER_STDC
AC_CHECK_HEADERS([libgen.h])
# fcntl.h limits.h stdlib.h string.h sys/types.h sys/ioctl.h sys/param.h wchar.h unistd.h sys/stat.h sys/disk.h])
AC_CHECK_HEADER([inttypes.h],,AC_MSG_ERROR([You must have inttypes.h or some other C99 equivalent]),)
# These includes are required on FreeBSD
AC_CHECK_HEADERS([sys/mount.h],[],[],
[#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif])
#AC_HEADER_TIME
AC_C_BIGENDIAN
# Checks for typedefs, structures, and compiler characteristics.
#AC_C_CONST
#AC_TYPE_OFF_T
#AC_TYPE_SIZE_T
#AC_CHECK_MEMBERS([struct stat.st_blksize])
# Checks for library functions.
#AC_FUNC_CLOSEDIR_VOID
AC_FUNC_FSEEKO
AC_SYS_LARGEFILE
#AC_PROG_GCC_TRADITIONAL
#AC_FUNC_LSTAT
#AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
#AC_FUNC_MEMCMP
#AC_FUNC_STAT
AC_FUNC_VPRINTF
AC_OUTPUT