File: configure.ac

package info (click to toggle)
minisapserver 0.3.6-1.1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 704 kB
  • ctags: 149
  • sloc: sh: 4,268; cpp: 1,079; makefile: 72
file content (66 lines) | stat: -rw-r--r-- 1,523 bytes parent folder | download | duplicates (2)
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
dnl Autoconf settings for mini-SAP-server
dnl $Id: configure.ac 344 2009-01-11 18:48:12Z courmisch $

AC_COPYRIGHT([Copyright (C) the VideoLAN team 1998-2009])

AC_INIT(miniSAPserver,0.3.6,streaming@videolan.org)
AC_PREREQ(2.50)

AC_CONFIG_SRCDIR(configure.ac)
AC_CONFIG_AUX_DIR(admin)
AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_HEADERS(config.h)

dnl ****************************
dnl        General checks
dnl ****************************
AC_PROG_CC
AC_PROG_CXX
AC_C_CONST
AC_HEADER_STDBOOL

AC_CHECK_FUNCS([clearenv])
RDC_REPLACE_FUNC_GETOPT_LONG


dnl ****************************
dnl        Features
dnl ****************************

AM_INIT_AUTOMAKE([check-news dist-bzip2 no-dist-gzip std-options])

dnl On the fly charset transcoding
AM_ICONV

RDC_STRUCT_SOCKADDR_LEN

dnl Enable/Disable slp
AS_IF([test "x${enable_slp}" == "x"],
	[enable_slp="no"])
AC_ARG_ENABLE(slp,
	[AC_HELP_STRING([--enable-slp],
			[enable SLP announcing (default disabled)])],
	[AS_IF([test "${enable_slp}" != "no"],
		[AC_CHECK_HEADERS(slp.h,,
			[AC_MSG_ERROR(["Unable to find SLP headers"])])
		 AC_DEFINE(CONFIG_SLP,,[SLP announcing support])
        ])
	])
AM_CONDITIONAL(CONFIG_SLP, [test "${enable_slp}" != "no"])

dnl Debug Mode
AC_ARG_ENABLE(debug,
	AC_HELP_STRING([--enable-debug],
			[enable debug mode (default enabled)]))

AS_IF([test "${enable_debug}" != "no"],[CFLAGS="${CFLAGS} -g"])


dnl ****************************
dnl       Output Files
dnl ****************************

AC_SUBST(CONFIG_SLP)
AC_SUBST(CFLAGS)

AC_OUTPUT(Makefile)