File: configure.ac

package info (click to toggle)
silverjuke 18.2.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,048 kB
  • sloc: cpp: 117,242; ansic: 68,210; sh: 3,917; xml: 1,241; python: 508; makefile: 352; pascal: 143; php: 99; sed: 16
file content (79 lines) | stat: -rw-r--r-- 2,525 bytes parent folder | download
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
67
68
69
70
71
72
73
74
75
76
77
78
79
# Process this file with autoconf to produce a configure script.
#
# Copyright © 2015 Björn Petersen
# Copyright © 2015 Dr. Tobias Quathamer
#
# This file is part of silverjuke.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Set up autoconf
AC_PREREQ([2.69])
AC_INIT([silverjuke], [18.2.1], [r10s@b44t.com])
AC_CONFIG_MACRO_DIR([m4])

# AC_CONFIG_SRCDIR just checks a single file to make sure, we're in the correct directory
AC_CONFIG_SRCDIR([src/sjbase/mainapp.cpp])

# Set up automake
AM_INIT_AUTOMAKE([1.13 foreign subdir-objects silent-rules no-dist-gzip dist-xz])
AM_MAINTAINER_MODE

# Set up gettext
AM_GNU_GETTEXT_REQUIRE_VERSION([0.21])
AM_GNU_GETTEXT([external])
#AC_DEFINE([GETTEXT_PACKAGE], ["silverjuke"], [Gettext package name.])

# Checks for programs
AC_PROG_CXX
AC_PROG_CC
PKG_PROG_PKG_CONFIG

# Detect rst2man, needed for building the manpage
AC_PATH_PROG([RST2MAN], [rst2man], [no])
if test x"$RST2MAN" == x"no" ; then
    AC_MSG_ERROR([rst2man is required.])
fi

# Detect the needed libraries
PKG_CHECK_MODULES([ZLIB], [zlib])
PKG_CHECK_MODULES([SQLITE3], [sqlite3])
PKG_CHECK_MODULES([GST], [gstreamer-1.0 gstreamer-plugins-base-1.0])
PKG_CHECK_MODULES([GL], [gl])
PKG_CHECK_MODULES([UPNP], [libupnp])

# Check for endian.h to determine endianness for "src/see" library
AC_CHECK_HEADERS([endian.h])

# wxWidgets -- we assume that if wx-config is found, wxWidgets is successfully installed.
AC_PATH_PROG([WX_CONFIG], [wx-config], [no], [$PATH:/usr/local/bin])
if test x"$WX_CONFIG" = x"no" ; then
	AC_MSG_ERROR([wx-config not found. Is wxWidgets installed? Is wx-config in your path? Try eg. apt-get install libwxgtk3.0-dev])
fi
WX_CPPFLAGS="`$WX_CONFIG --cppflags`"
WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
WX_LIBS="`$WX_CONFIG --libs std,gl`"

AC_SUBST(WX_CPPFLAGS)
AC_SUBST(WX_CXXFLAGS)
AC_SUBST(WX_LIBS)

# Write configuration files
AC_CONFIG_FILES([
	Makefile
	po/Makefile.in
])

# Terminate script
AC_OUTPUT