-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
47 lines (39 loc) · 1.28 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.69])
AC_INIT([zlog], [1.2.7], [[email protected]])
AC_CONFIG_SRCDIR([src/version.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
LT_INIT
AM_INIT_AUTOMAKE([foreign dist-bzip2])
# Checks for libraries.
AC_CHECK_LIB([pthread], [pthread_create])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h limits.h stdint.h stdlib.h string.h strings.h sys/time.h syslog.h unistd.h])
# Checks for programs
AC_CHECK_PROG([VAR_LYX], [lyx], [true], [false])
AC_CHECK_PROG([VAR_HEVEA], [hevea], [true], [false])
AM_CONDITIONAL([HAVE_LYX], [$VAR_LYX])
AM_CONDITIONAL([HAVE_HEVEA], [$VAR_HEVEA])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_REALLOC
AC_CHECK_FUNCS([atexit gethostname gettimeofday localtime_r memmove memset setenv strchr strrchr strtol])
AC_CONFIG_FILES([doc/Makefile
Makefile
src/Makefile
test/Makefile
tools/Makefile])
AC_OUTPUT