-
Notifications
You must be signed in to change notification settings - Fork 106
/
configure.ac
63 lines (50 loc) · 1.58 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
dnl Process this file with -*- autoconf -*- to produce a configure script.
AC_PREREQ(2.50)
AC_INIT(libConfuse, 2.8, https://github.com/martinh/libconfuse/issues, confuse)
AC_CONFIG_AUX_DIR(support)
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE([foreign dist-xz])
AM_SILENT_RULES([no])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR(src/confuse.c)
# Checks for programs.
# disable unnecessary compiler checks
AC_DEFUN([AC_PROG_F77], [:])
AC_DEFUN([AC_PROG_FC], [:])
AC_DEFUN([AC_PROG_CXX], [:])
AC_DEFUN([AC_PROG_CXXCPP], [:])
AC_DEFUN([AC_PROG_OBJC], [:])
AC_DEFUN([AC_PROG_OBJCCPP], [:])
AC_DEFUN([AC_LIBTOOL_CXX], [:])
AC_DEFUN([AC_LIBTOOL_F77], [:])
AC_PROG_CC
AM_PROG_LEX
LT_INIT([win32-dll])
# optional building of examples:
AC_ARG_ENABLE([examples],
[AC_HELP_STRING([--disable-examples], [don't build examples in examples])],
[], [enable_examples=yes])
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "$enable_examples" = yes])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.16.1])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([sys/stat.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_CHECK_FUNCS([strcasecmp strdup strndup setenv unsetenv _putenv])
dnl Check for the library containing inet_aton/inet_ntoa (for tests)
AC_SEARCH_LIBS([inet_ntoa], [socket nsl])
AC_CONFIG_FILES([Makefile \
src/Makefile \
examples/Makefile \
po/Makefile.in \
m4/Makefile \
tests/Makefile \
doc/Makefile \
doc/Doxyfile \
libconfuse.pc \
libconfuse.spec])
AC_OUTPUT