-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
55 lines (42 loc) · 1.35 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
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.60)
AC_INIT([enter],[svn],[[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/enter.c])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_AUX_DIR([build-tools])
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
AM_MAINTAINER_MODE([enable])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AM_PROG_CC_C_O
AC_PROG_SED
PKG_PROG_PKG_CONFIG
# Checks for libraries.
PKG_CHECK_MODULES([XAU],[xau >= 1.0.5])
AC_SUBST(XAU_CFLAGS)
AC_SUBST(XAU_LIBS)
PKG_CHECK_MODULES([GTK],[gtk+-2.0 >= 2.20.1])
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
# Check for required headers.
AC_CHECK_HEADERS([errno.h grp.h pwd.h signal.h stdlib.h string.h sys/stat.h sys/types.h sys/wait.h unistd.h], [],
[AC_MSG_ERROR([Required header not found.])])
# Check for optional headers.
AC_CHECK_HEADERS([shadow.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_FUNC_FORK
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([endpwent getusershell memset strdup setenv getspnam \
strerror atexit gethostname], [],
[AC_MSG_ERROR([Required function not found.])])
AC_CHECK_LIB([crypt],[crypt])
DEBUG_CFLAGS="-fno-builtin -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations"
AC_SUBST([DEBUG_CFLAGS])
AC_OUTPUT([Makefile
data/Makefile
doc/Makefile
src/Makefile])