-
Notifications
You must be signed in to change notification settings - Fork 21
/
configure.ac
67 lines (55 loc) · 1.59 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
AC_PREREQ(2.59)
AC_INIT([tnef],[1.4.18],[[email protected]])
AC_CONFIG_SRCDIR([src/tnef.c])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_LIBOBJ_DIR(src/replace)
dnl check for programs
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB
AC_CHECK_TOOL(AR, ar)
dnl check for libraries
AC_CHECK_LIB([intl],gettext)
dnl check for headers
AC_HEADER_STDC
AC_CHECK_HEADERS([libintl.h])
AC_CHECK_DECLS([basename])
dnl check for typedefs
AC_TYPE_SIZE_T
AC_HEADER_STAT
dnl check for structures
dnl check for compiler characteristics.
AC_C_CONST
AC_CHECK_SIZEOF(int)
dnl check for library functions
AC_REPLACE_FUNCS(strdup getopt_long basename)
AC_CHECK_FUNCS(strrchr memmove memset strtoul index rindex)
AC_FUNC_VPRINTF
AC_FUNC_MALLOC
dnl do not use this, will try to add in lstat.c which is unnecessary
dnl AC_FUNC_STAT
dnl check for system services
dnl extra arguments:
AM_MAINTAINER_MODE
AC_ARG_ENABLE( warnings,
[ --enable-warnings enable compile warnings],
AC_COMPILE_WARNINGS)
AC_ARG_ENABLE( debug,
[ --enable-debug enable debug build],
AC_DEBUG_COMPILE)
dnl output
AC_CONFIG_FILES([Makefile BUGS tnef.spec
doc/Makefile doc/tnef.1 doc/www/Makefile
doc/www/cgi-bin/Makefile doc/www/htdocs/Makefile
src/Makefile src/replace/Makefile
tests/Makefile
tests/cmdline/Makefile
tests/files/Makefile
tests/files/baselines/Makefile
tests/files/datafiles/Makefile])
AC_OUTPUT