Statistics
| Branch: | Tag: | Revision:

dvbd / configure.ac @ 900cea42

History | View | Annotate | Download (1.4 KB)

1
AC_INIT(dvbd, 0.7.5)
2
AC_CONFIG_SRCDIR(src/dvbd.cpp)
3
AM_INIT_AUTOMAKE
4
AM_CONFIG_HEADER(config.h)
5
AC_PROG_CC
6
AC_PROG_CXX
7
AC_PROG_YACC
8
AM_PROG_LEX
9
AC_STDC_HEADERS
10
AC_HAVE_HEADERS(linux/dvb/dmx.h linux/dvb/frontend.h)
11

    
12
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14

    
15
AC_SUBST(DVBD_USER, dvbd)
16
AC_SUBST(DVBD_RUN_DIR, "`eval echo ${localstatedir}/run/dvbd`")
17
AC_SUBST(DVBD_SPOOL_DIR, "`eval echo ${localstatedir}/spool/dvbd`")
18
AC_SUBST(DVBD_LOG_DIR, "`eval echo ${localstatedir}/log`")
19
AC_SUBST(DVBD_ETC_DIR, "`eval echo ${sysconfdir}/dvbd`")
20
AC_DEFINE_UNQUOTED(DEFAULT_CONFIG_FILE, "${DVBD_ETC_DIR}/config", [Default configuration file])
21
AC_DEFINE_UNQUOTED(DEFAULT_SOCKET_FILE, "${DVBD_RUN_DIR}/dvbd.socket", [Default socket file])
22
AC_DEFINE_UNQUOTED(DEFAULT_PID_FILE, "${DVBD_RUN_DIR}/dvbd.pid", [Default pid file])
23
AC_DEFINE_UNQUOTED(DEFAULT_SCHEDULE_FILE, "${DVBD_SPOOL_DIR}/schedule", [Default schedule file])
24
AC_DEFINE_UNQUOTED(DEFAULT_LOG_FILE, "${DVBD_LOG_DIR}/dvbd.log", [Default log file])
25

    
26

    
27
AC_ARG_ENABLE([debug],
28
AS_HELP_STRING([--enable-debug], [Compile with debugging information]),
29
[ac_cv_enable_debug=${enableval}],
30
[ac_cv_enable_debug=no])
31

    
32
case $ac_cv_enable_debug in 
33
  no)  CXXFLAGS='-O3 -fomit-frame-pointer -Wall'
34
       AC_DEFINE(NDEBUG, 1, [Optimise assertions])
35
       ;;
36
  yes) CXXFLAGS='-g -Wall'
37
esac
38

    
39
AC_OUTPUT(Makefile src/Makefile dvbdguide/Makefile)