1
|
1 dnl ***
|
|
2 dnl *** Process this file with autoconf to produce a configure script.
|
|
3 dnl ***
|
|
4
|
10
|
5 dnl Require autoconf 2.54 or later
|
|
6 AC_PREREQ(2.54)
|
|
7
|
|
8 dnl Initialize
|
|
9 AC_INIT(xmms-sid, 0.8.0rc1, ccr@tnsp.org)
|
|
10 AC_COPYRIGHT([[(C) 2002 Michael Schwendt, Matti 'ccr' Hämäläinen]])
|
|
11 AC_CONFIG_SRCDIR(src/xmms-sid.h)
|
|
12 AM_INIT_AUTOMAKE
|
|
13 AC_CONFIG_HEADERS(config.h)
|
|
14
|
1
|
15
|
|
16 dnl ***
|
|
17 dnl *** Some general checks
|
|
18 dnl ***
|
|
19 AC_DISABLE_STATIC
|
|
20 AC_LIBTOOL_DLOPEN
|
|
21 AM_PROG_LIBTOOL
|
|
22
|
|
23
|
|
24 dnl ***
|
|
25 dnl *** Checks for programs
|
|
26 dnl ***
|
|
27 AC_PROG_CC
|
|
28 AC_PROG_CXX
|
10
|
29 dnl AC_PROG_CPP
|
1
|
30 AC_PROG_INSTALL
|
|
31 AC_HEADER_STDC
|
|
32
|
|
33
|
10
|
34 dnl ***
|
|
35 dnl *** Checks for libraries
|
|
36 dnl ***
|
|
37 AC_PATH_LIBSIDPLAY
|
|
38 dnl AC_PATH_LIBSIDPLAY2
|
1
|
39
|
10
|
40 AM_PATH_GLIB(1.2.8,,AC_MSG_ERROR([*** GLIB >= 1.2.8 not found. You either don't have GLIB at all or your GLIB is too old. Latest GLIB can be found from Gtk+ homepages (http://www.gtk.org/)]))
|
|
41
|
|
42 AM_PATH_GTK(1.2.8,,AC_MSG_ERROR([*** Gtk+ >= 1.2.8 not found. You either don't have Gtk+ at all or your Gtk+ is too old. Latest Gtk+ can be found from Gtk+ homepages (http://www.gtk.org/)]), gthread)
|
1
|
43
|
|
44
|
|
45 dnl ***
|
10
|
46 dnl *** Check XMMS version
|
1
|
47 dnl ***
|
10
|
48 AM_PATH_XMMS(1.2.0,, [
|
|
49 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.])
|
|
50 ])
|
|
51 libdir=$XMMS_INPUT_PLUGIN_DIR
|
1
|
52
|
10
|
53 XMMS_TEST_VERSION($XMMS_VERSION, 1.2.5, [
|
|
54 AC_DEFINE(HAVE_XMMSEXTRA)
|
|
55 OPT_XMMSEXTRA="yes"
|
|
56 ], [
|
|
57 OPT_XMMSEXTRA="no"
|
|
58 ])
|
1
|
59
|
|
60
|
|
61 dnl ***
|
10
|
62 dnl *** Check for optional settings
|
1
|
63 dnl ***
|
10
|
64 OPT_SUBSONGSEL="yes"
|
|
65
|
|
66 AC_ARG_ENABLE(subsongsel,
|
|
67 [
|
|
68 XMMS-SID specific options:
|
|
69 --disable-subsongsel Disable SIDAmp-style sub-song selector],
|
|
70 [
|
|
71 OPT_SUBSONGSEL="yes"
|
|
72 ], [
|
|
73 OPT_SUBSONGSEL="no"
|
|
74 ])
|
|
75
|
|
76 if test $OPT_SUBSONGSEL = "yes"; then
|
|
77 AC_DEFINE(USE_SUBSONGSEL)
|
1
|
78 fi
|
|
79
|
|
80
|
10
|
81 dnl ***
|
|
82 dnl *** Define some templates
|
|
83 dnl ***
|
|
84 AC_DEFINE(USE_SUBSONGSEL, 0, Define to 1 if user wants to use SIDAmp-style sub-song selector)
|
|
85 AC_DEFINE(HAVE_XMMSEXTRA, 0, Define to 1 if you have XMMS version 1.2.5 or later)
|
1
|
86
|
|
87
|
|
88 dnl ***
|
|
89 dnl *** And finally, output the all generatable files!
|
|
90 dnl ***
|
10
|
91 AC_CONFIG_FILES([
|
1
|
92 Makefile
|
|
93 src/Makefile
|
10
|
94 xmms-sid.spec
|
1
|
95 ])
|
10
|
96
|
|
97 AC_OUTPUT
|
|
98
|
|
99
|
|
100 dnl ***
|
|
101 dnl *** Show the result message
|
|
102 dnl ***
|
|
103 AC_MSG_RESULT([
|
|
104 XMMS-SID has been configured successfully:
|
|
105
|
|
106 Installation directory : $libdir
|
|
107 Sub-song selector enabled : $OPT_SUBSONGSEL
|
|
108 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA
|
|
109 libSIDPlay 1 : $have_sidplay
|
|
110 libSIDPlay 2 : $have_sidplay2
|
|
111
|
|
112 Now just run 'make && make install'!
|
|
113 ])
|