Mercurial > hg > xmms-sid
annotate configure.ac @ 810:0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
default.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 07 Nov 2012 12:52:46 +0200 |
parents | 9372ea9efcf1 |
children | 81b3fe49ad54 |
rev | line source |
---|---|
1 | 1 dnl *** |
2 dnl *** Process this file with autoconf to produce a configure script. | |
3 dnl *** | |
4 | |
472 | 5 dnl Require autoconf 2.60 or later |
6 AC_PREREQ([2.60]) | |
10 | 7 |
8 dnl Initialize | |
804
7a716a3972f3
Change version to 0.8.9x, to indicate alpha/beta of 0.9
Matti Hamalainen <ccr@tnsp.org>
parents:
800
diff
changeset
|
9 AC_INIT([XMMS-SID], [0.8.90], [ccr@tnsp.org]) |
733 | 10 AC_COPYRIGHT([[(C) 2003-2012 Matti 'ccr' Hamalainen]]) |
158 | 11 AC_CONFIG_SRCDIR([src/xmms-sid.h]) |
10 | 12 AM_INIT_AUTOMAKE |
158 | 13 AC_CONFIG_HEADERS([src/config.h]) |
806 | 14 AM_GNU_GETTEXT_VERSION([0.18.1]) |
433 | 15 AM_GNU_GETTEXT([external]) |
35 | 16 |
17 | |
18 dnl *** | |
19 dnl *** Define some templates | |
20 dnl *** | |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
21 AH_TEMPLATE([HAVE_SONG_POSITION], [Define if you have XMMS patched with the songpos patch.]) |
810
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
22 AH_TEMPLATE([HAVE_SIDPLAY1], [Define if you have and want to use libSIDPlay 1.]) |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
23 AH_TEMPLATE([HAVE_SIDPLAY2], [Define if you have and want to use libSIDPlay 2.]) |
743 | 24 AH_TEMPLATE([HAVE_SIDPLAY2_FP], [Define if you have and want to use libSIDPlay 2-FP http://sourceforge.net/projects/sidplay-residfp/]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
25 AH_TEMPLATE([HAVE_THEMETUNE], [Define if you want to build code to play XMMS-SID theme SID-tune. The tune needs to be installed too, though.]) |
810
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
26 AH_TEMPLATE([DEBUG], [Define if you wish to enable debug output to terminal.]) |
10 | 27 |
1 | 28 |
29 dnl *** | |
30 dnl *** Some general checks | |
31 dnl *** | |
248
a66c634b222a
Macro quotation cleanup to satisfy Automake 1.8 and friends.
Matti Hamalainen <ccr@tnsp.org>
parents:
247
diff
changeset
|
32 AC_PREFIX_PROGRAM([xmms]) |
1 | 33 AC_DISABLE_STATIC |
148 | 34 AC_LIB_RPATH |
1 | 35 AM_PROG_LIBTOOL |
397
c4e5604a8257
Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents:
386
diff
changeset
|
36 AC_SYS_LARGEFILE |
1 | 37 |
38 | |
39 dnl *** | |
40 dnl *** Checks for programs | |
41 dnl *** | |
42 AC_PROG_CC | |
35 | 43 AC_PROG_CPP |
303
e161aa3ba0c3
Fix order of CC/CXX macro calling, add check for CXXCPP
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
44 AC_PROG_CXX |
e161aa3ba0c3
Fix order of CC/CXX macro calling, add check for CXXCPP
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
45 AC_PROG_CXXCPP |
1 | 46 AC_PROG_INSTALL |
47 | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
48 |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
49 dnl *** |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
50 dnl *** Checks for generic libraries |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
51 dnl *** |
247 | 52 AC_CHECK_HEADER([pthread.h],,AC_MSG_ERROR([[*** POSIX thread support not found. Strange, maybe you don't have some development packages installed?]])) |
734
60c449d7e3b4
Update Gtk+1 version requirement to the last release.
Matti Hamalainen <ccr@tnsp.org>
parents:
733
diff
changeset
|
53 AM_PATH_GLIB([1.2.10],,AC_MSG_ERROR([[*** GLib >= 1.2.10 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/)]])) |
60c449d7e3b4
Update Gtk+1 version requirement to the last release.
Matti Hamalainen <ccr@tnsp.org>
parents:
733
diff
changeset
|
54 AM_PATH_GTK([1.2.10],,AC_MSG_ERROR([[*** Gtk+ >= 1.2.10 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]) |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
55 |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
56 |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
57 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
58 dnl *** Checks for header files, types and functions |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
59 dnl *** |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
60 AC_HEADER_STDC |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
61 AC_CHECK_HEADERS([stdlib.h string.h unistd.h]) |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
62 |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
63 AC_TYPE_SIZE_T |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
64 AC_C_CONST |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
65 AC_C_INLINE |
661
94f273bcafcf
Sanitize configure in by removing unneeded checks.
Matti Hamalainen <ccr@tnsp.org>
parents:
614
diff
changeset
|
66 AC_CHECK_FUNCS([memset],[],[[*** memset function not found. Your libc has failed you.]]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
67 |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
68 |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
69 dnl *** |
810
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
70 dnl *** Enable debugging |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
71 dnl *** |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
72 AC_ARG_ENABLE([debug], |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
73 [AS_HELP_STRING([--enable-debug], [Enable debug output to terminal/console.])], |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
74 [ |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
75 if test "x$enableval" = "xyes"; then |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
76 xs_enable_debug=yes |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
77 else |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
78 xs_enable_debug=no |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
79 fi |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
80 ], [xs_enable_debug=no]) |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
81 if test "x$xs_enable_debug" = "xyes"; then |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
82 AC_DEFINE([DEBUG]) |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
83 fi |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
84 |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
85 |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
86 dnl *** |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
87 dnl *** Enable or disable themetune support/installation |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
88 dnl *** |
443 | 89 AC_ARG_ENABLE([themetune], |
707 | 90 [AS_HELP_STRING([--disable-themetune], |
91 [Disable XMMS-SID theme song-related code and installation of the SID-tune file. The tune is not under GNU GPL, refer to README for license.]) | |
92 ], [ | |
410 | 93 if test "x$enableval" = "xyes"; then |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
94 xs_have_themetune=yes |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
95 else |
443 | 96 if test "x$enableval" = "xno"; then |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
97 xs_have_themetune=no |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
98 else |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
99 xs_have_themetune=no |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
100 fi |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
101 fi |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
102 ], [xs_have_themetune=yes]) |
724 | 103 if test "x$xs_have_themetune" = "xyes"; then |
104 AC_DEFINE([HAVE_THEMETUNE]) | |
105 fi | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
106 |
1 | 107 |
10 | 108 dnl *** |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
109 dnl *** libSIDPlay1/2 options |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
110 dnl *** |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
111 XS_ARG_WITH([sidplay1], [libSIDPlay1], [XS_PATH_LIBSIDPLAY1]) |
410 | 112 if test "x$xs_have_sidplay1" = "xyes"; then |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
113 AC_DEFINE([HAVE_SIDPLAY1]) |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
114 fi |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
115 |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
116 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
117 xs_have_sidplay2_api="" |
800
1fe6005ed58c
Make it so that both libSIDPlay2 and libSIDPlay-FP can co-exist, though not
Matti Hamalainen <ccr@tnsp.org>
parents:
795
diff
changeset
|
118 XS_ARG_WITH([sidplayfp], [libSIDPlayFP], [XS_PATH_LIBSIDPLAYFP]) |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
119 |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
120 if test "x$xs_have_sidplayfp" = "xyes"; then |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
121 xs_have_sidplay2_api="(FP)" |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
122 xs_have_sidplay2_lib="yes" |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
123 AC_DEFINE([HAVE_SIDPLAY2]) |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
124 AC_DEFINE([HAVE_SIDPLAY2_FP]) |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
125 AC_DEFINE([HAVE_HARDSID_BUILDER]) |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
126 AC_DEFINE([HAVE_RESID_BUILDER]) |
795
3e305ce076e8
Make old libSIDPlay2 support work again, the one available in most distros, such as Debian.
Matti Hamalainen <ccr@tnsp.org>
parents:
747
diff
changeset
|
127 AC_DEFINE([HAVE_RESID_FP_BUILDER]) |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
128 |
800
1fe6005ed58c
Make it so that both libSIDPlay2 and libSIDPlay-FP can co-exist, though not
Matti Hamalainen <ccr@tnsp.org>
parents:
795
diff
changeset
|
129 else |
1fe6005ed58c
Make it so that both libSIDPlay2 and libSIDPlay-FP can co-exist, though not
Matti Hamalainen <ccr@tnsp.org>
parents:
795
diff
changeset
|
130 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2]) |
1fe6005ed58c
Make it so that both libSIDPlay2 and libSIDPlay-FP can co-exist, though not
Matti Hamalainen <ccr@tnsp.org>
parents:
795
diff
changeset
|
131 if test "x$xs_have_sidplay2" = "xyes"; then |
795
3e305ce076e8
Make old libSIDPlay2 support work again, the one available in most distros, such as Debian.
Matti Hamalainen <ccr@tnsp.org>
parents:
747
diff
changeset
|
132 xs_have_sidplay2_api="(non-COMI)" |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
133 xs_have_sidplay2_lib="yes" |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
134 AC_DEFINE([HAVE_SIDPLAY2]) |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
135 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
136 AC_LANG_PUSH([C++]) |
690
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
137 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
138 XS_BUILDERS_CHECK |
729
92c284766c49
Synchronize changes from Audacious port.
Matti Hamalainen <ccr@tnsp.org>
parents:
728
diff
changeset
|
139 xs_builders_available="no" |
795
3e305ce076e8
Make old libSIDPlay2 support work again, the one available in most distros, such as Debian.
Matti Hamalainen <ccr@tnsp.org>
parents:
747
diff
changeset
|
140 XS_BUILDERS_FIND([reSID_FP], [residfp-builder], [residfp.h], [ReSIDfpBuilder]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
141 XS_BUILDERS_FIND([reSID], [resid-builder], [resid.h], [ReSIDBuilder]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
142 XS_BUILDERS_FIND([HardSID], [hardsid-builder], [hardsid.h], [HardSID]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
143 if test "x$xs_builders_available" = "xno"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
144 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
145 fi |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
146 |
690
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
147 AC_LANG_POP([C++]) |
35 | 148 fi |
800
1fe6005ed58c
Make it so that both libSIDPlay2 and libSIDPlay-FP can co-exist, though not
Matti Hamalainen <ccr@tnsp.org>
parents:
795
diff
changeset
|
149 fi |
10 | 150 |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
151 |
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
152 dnl *** |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
153 dnl *** Check if we have some emulator library available? |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
154 dnl *** |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
155 if test "x$xs_have_sidplay1" != "xyes" -a "x$xs_have_sidplay2" != "xyes" -a "x$xs_have_sidplayfp" != "xyes"; then |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
156 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2/libSIDPlay-FP is required! Please read INSTALL for more information!]) |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
157 fi |
1 | 158 |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
159 |
35 | 160 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
161 dnl *** Song position patch check |
35 | 162 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
163 AC_MSG_CHECKING([for song position patch]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
164 tmp_CPPFLAGS="$CPPFLAGS" |
410 | 165 if test -d "$prefix"; then |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
166 CPPFLAGS="$CPPFLAGS -I${prefix}/include" |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
167 fi |
35 | 168 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
169 AC_EGREP_HEADER([set_song_position], [xmms/plugin.h], [ |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
170 xs_have_songpos="yes" |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
171 AC_DEFINE([HAVE_SONG_POSITION]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
172 ],[ |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
173 xs_have_songpos="no" |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
174 ]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
175 AC_MSG_RESULT([$xs_have_songpos]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
176 CPPFLAGS="$tmp_CPPFLAGS" |
35 | 177 |
1 | 178 |
179 dnl *** | |
10 | 180 dnl *** Check XMMS version |
1 | 181 dnl *** |
745
9dc5378cc806
Remove XMMS_EXTRA stuff, as we require XMMS 1.2.10+ now.
Matti Hamalainen <ccr@tnsp.org>
parents:
744
diff
changeset
|
182 AM_PATH_XMMS([1.2.10],, [ |
9dc5378cc806
Remove XMMS_EXTRA stuff, as we require XMMS 1.2.10+ now.
Matti Hamalainen <ccr@tnsp.org>
parents:
744
diff
changeset
|
183 AC_MSG_ERROR([*** XMMS >= 1.2.10 not found. You need XMMS v1.2.10 or later to use XMMS-SID plugin.]) |
10 | 184 ]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
185 libdir="$XMMS_INPUT_PLUGIN_DIR" |
1 | 186 |
187 | |
188 dnl *** | |
189 dnl *** And finally, output the all generatable files! | |
190 dnl *** | |
10 | 191 AC_CONFIG_FILES([ |
1 | 192 Makefile |
10 | 193 xmms-sid.spec |
431 | 194 po/Makefile.in |
1 | 195 ]) |
10 | 196 AC_OUTPUT |
197 | |
198 | |
199 dnl *** | |
200 dnl *** Show the result message | |
201 dnl *** | |
202 AC_MSG_RESULT([ | |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
203 $PACKAGE_STRING has been configured successfully: |
10 | 204 |
807
9372ea9efcf1
Add installation prefix to the configure informational output.
Matti Hamalainen <ccr@tnsp.org>
parents:
806
diff
changeset
|
205 Prefix : $prefix |
9372ea9efcf1
Add installation prefix to the configure informational output.
Matti Hamalainen <ccr@tnsp.org>
parents:
806
diff
changeset
|
206 Plugin installation directory : $libdir |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
207 Song-position patch : $xs_have_songpos |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
208 libSIDPlay 1 support : $xs_have_sidplay1 |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
209 libSIDPlay 2 support : $xs_have_sidplay2_lib $xs_have_sidplay2_api |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
210 Included builders : $xs_builders |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
211 XMMS-SID theme SID-tune : $xs_have_themetune |
472 | 212 Translations (i18n/nls) : $USE_NLS |
810
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
213 Debugging enabled : $xs_enable_debug |
10 | 214 ]) |