-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
46 lines (38 loc) · 1.23 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
AC_PREREQ(2.59)
AC_INIT([xml-coreutils],[0.8.1],[laird@lbreyer.com])
AC_CONFIG_AUX_DIR(config)
AC_CANONICAL_SYSTEM
AC_GNU_SOURCE
AM_INIT_AUTOMAKE([xml-coreutils],[0.8.1],[laird@lbreyer.com])
AM_CONFIG_HEADER(src/config.h)
## Checks for programs
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LEX
AC_PROG_YACC
## Checks for libraries.
AC_CHECK_LIB([expat],[XML_ParseBuffer],,[AC_MSG_ERROR([Missing libexpat])])
## Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([features.h langinfo.h unistd.h sys/types.h sys/mman.h mman.h])
AC_CHECK_HEADERS([wchar.h wctype.h],,
[
AC_MSG_WARN([No wide character headers, disabling full internationalization.])
])
AC_CHECK_HEADERS([expat.h],,[AC_MSG_ERROR([Missing expat.h])])
## Check for slang
AC_CHECK_LIB([slang],[SLsmg_init_smg],
AC_CHECK_HEADERS([slang.h],,[AC_MSG_WARN([Missing slang.h])]),
[AC_MSG_WARN([Missing libslang2])])
AM_CONDITIONAL([WITH_SLANG],[test "$ac_cv_header_slang_h" = "yes"])
## Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_TYPE_OFF_T
## Checks for library functions.
AC_FUNC_VPRINTF
AC_FUNC_SETMODE_DOS
AC_FUNC_MBRTOWC
AC_CHECK_FUNCS([sigaction])
AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile src/tests/Makefile man/Makefile])
AC_OUTPUT