-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.in
42 lines (35 loc) · 1.06 KB
/
configure.in
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
AC_PREREQ(2.57)
AC_INIT([TiVoBridge], [1.0.1], [[email protected]])
AC_CONFIG_SRCDIR([src/tivobridge.c])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE(foreign)
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
LIB_SOCKET_NSL
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h string.h sys/socket.h])
AC_CHECK_HEADERS([unistd.h sys/select.h syslog.h])
AC_CREATE_STDINT_H([src/my_stdint.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
TYPE_SOCKLEN_T
AC_C_CONST
# Checks for library functions.
AC_FUNC_FORK
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([strchr])
AC_CHECK_FUNC([strdup],
AC_DEFINE_UNQUOTED([HAVE_STRDUP],[1],[Define if strdup function exists]),
AC_LIBOBJ([strdup]))
AC_FUNC_SELECT_ARGTYPES
# Checks for optional features
TVB_ARG_ENABLE([mdns], [no], [Multicast DNS support])
if test "$ac_cv_use_mdns" != no; then
AC_DEFINE([ENABLE_MDNS], [1],
[Define to 1 to enable Multicast DNS support])
fi
AC_OUTPUT([Makefile src/Makefile doc/Makefile])