-
Notifications
You must be signed in to change notification settings - Fork 12
/
configure.ac
48 lines (39 loc) · 1.22 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([duff], [0.6], [[email protected]], [duff], [])
AC_CONFIG_SRCDIR([src/duff.c])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([check-news dist-bzip2])
AM_CONFIG_HEADER([src/config.h])
AC_GNU_SOURCE
AM_GNU_GETTEXT([external])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_LN_S
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_HEADERS([assert.h sys/param.h ctype.h errno.h limits.h locale.h stdio.h stdarg.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_SYS_LARGEFILE
AC_C_CONST
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_SIZE_T
AC_TYPE_OFF_T
# Check for endianness (for sha1-asaddi).
AC_C_BIGENDIAN([], [], [AC_MSG_ERROR([Unable to detect endianness.])])
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_FUNC_LSTAT
AC_FUNC_FSEEKO
AC_FUNC_CLOSEDIR_VOID
AC_CHECK_FUNCS([strdup strerror memset strchr strrchr strtoull], \
[], [AC_MSG_ERROR([Function not found])])
AC_CHECK_FUNCS([asprintf vasprintf])
AC_OUTPUT([Makefile lib/Makefile src/Makefile man/Makefile po/Makefile.in])