Mercurial > hg > xmms-sid
annotate configure.in @ 703:904346a19160
Require gettext 0.14 instead of 0.16.1
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 12 Jun 2008 17:33:13 +0300 |
parents | 7ebbd2a70ac2 |
children | bc1439af0c7e |
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 | |
697 | 9 AC_INIT([XMMS-SID], [0.8.0beta19], [ccr@tnsp.org]) |
674
1c9fad120bbc
Use ASCII translitteration instead of ISO-8859-1 scands.
Matti Hamalainen <ccr@tnsp.org>
parents:
673
diff
changeset
|
10 AC_COPYRIGHT([[(C) 2003-2008 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]) |
703
904346a19160
Require gettext 0.14 instead of 0.16.1
Matti Hamalainen <ccr@tnsp.org>
parents:
697
diff
changeset
|
14 AM_GNU_GETTEXT_VERSION([0.14]) |
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.]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
22 AH_TEMPLATE([HAVE_XMMSEXTRA], [Define if you have XMMS version 1.2.5 or later and you want XMMS-SID to support some extra features.]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
23 AH_TEMPLATE([HAVE_SIDPLAY1], [Define if you have and want to use libSIDPlay 1]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
24 AH_TEMPLATE([HAVE_SIDPLAY2], [Define if you have and want to use libSIDPlay 2]) |
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_SIDPLAY2_COMI], [Define if you have libSIDPlay2 v2.2.x or later (or CVS version) with the new COMI API]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
26 AH_TEMPLATE([HAVE_SIDPLAY2_DISTORTION], [Define if you have libSIDPlay2 + reSID with Antti Lankila's distortion patches (v10 and possibly later) http://bel.fi/~alankila/c64-sw/]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
27 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.]) |
10 | 28 |
1 | 29 |
30 dnl *** | |
31 dnl *** Some general checks | |
32 dnl *** | |
248
a66c634b222a
Macro quotation cleanup to satisfy Automake 1.8 and friends.
Matti Hamalainen <ccr@tnsp.org>
parents:
247
diff
changeset
|
33 AC_PREFIX_PROGRAM([xmms]) |
1 | 34 AC_DISABLE_STATIC |
35 AC_LIBTOOL_DLOPEN | |
148 | 36 AC_LIB_RPATH |
1 | 37 AM_PROG_LIBTOOL |
397
c4e5604a8257
Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents:
386
diff
changeset
|
38 AC_SYS_LARGEFILE |
1 | 39 |
40 | |
41 dnl *** | |
42 dnl *** Checks for programs | |
43 dnl *** | |
44 AC_PROG_CC | |
35 | 45 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
|
46 AC_PROG_CXX |
e161aa3ba0c3
Fix order of CC/CXX macro calling, add check for CXXCPP
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
47 AC_PROG_CXXCPP |
1 | 48 AC_PROG_INSTALL |
49 | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
50 |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
51 dnl *** |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
52 dnl *** Checks for generic libraries |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
53 dnl *** |
247 | 54 AC_CHECK_HEADER([pthread.h],,AC_MSG_ERROR([[*** POSIX thread support not found. Strange, maybe you don't have some development packages installed?]])) |
55 AM_PATH_GLIB([1.2.5],,AC_MSG_ERROR([[*** GLib >= 1.2.5 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/)]])) | |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
56 AM_PATH_GTK([1.2.5],,AC_MSG_ERROR([[*** Gtk+ >= 1.2.5 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
|
57 |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
58 |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
59 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
60 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
|
61 dnl *** |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
62 AC_HEADER_STDC |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
63 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
|
64 |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
65 AC_TYPE_SIZE_T |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
66 AC_C_CONST |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
67 AC_C_INLINE |
661
94f273bcafcf
Sanitize configure in by removing unneeded checks.
Matti Hamalainen <ccr@tnsp.org>
parents:
614
diff
changeset
|
68 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
|
69 |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
70 |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
71 dnl *** |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
72 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
|
73 dnl *** |
443 | 74 AC_ARG_ENABLE([themetune], |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
75 [ |
261
5b107e78c7c0
Improve '--disable-themetune' option indentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
76 --disable-themetune Disable XMMS-SID theme song-related code and |
5b107e78c7c0
Improve '--disable-themetune' option indentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
77 installation of the SID-tune file. The tune is |
5b107e78c7c0
Improve '--disable-themetune' option indentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
78 not under GNU GPL, refer to README for license. |
443 | 79 ],[ |
410 | 80 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
|
81 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
|
82 else |
443 | 83 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
|
84 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
|
85 else |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
86 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
|
87 fi |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
88 fi |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
89 ], [xs_have_themetune=yes]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
90 AC_DEFINE([HAVE_THEMETUNE], [test "x$xs_have_themetune" = "xyes"]) |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
91 |
1 | 92 |
10 | 93 dnl *** |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
94 dnl *** libSIDPlay1/2 options |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
95 dnl *** |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
96 XS_ARG_WITH([sidplay1], [libSIDPlay1], [XS_PATH_LIBSIDPLAY1]) |
410 | 97 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
|
98 AC_DEFINE([HAVE_SIDPLAY1]) |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
99 fi |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
100 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
101 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
102 xs_have_sidplay2_api="" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
103 xs_have_distortion="no" |
410 | 104 if test "x$xs_have_sidplay2" = "xyes"; then |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
105 AC_DEFINE([HAVE_SIDPLAY2]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
106 AC_LANG_PUSH([C++]) |
690
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
107 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
108 XS_BUILDERS_CHECK |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
109 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
|
110 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
|
111 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
|
112 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
|
113 fi |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
114 |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
115 dnl *** Check for new COMI API |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
116 AC_MSG_CHECKING([libSIDPlay2 API style]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
117 tmp_CPPFLAGS="$CPPFLAGS" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
118 if test -d "$xs_sidplay2_includes"; then |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
119 CPPFLAGS="$CPPFLAGS -I${xs_sidplay2_includes}" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
120 fi |
690
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
121 AC_EGREP_HEADER([SIDIID], [sidplay/sidplay2.h], |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
122 [xs_have_sidplay2_api="yes"], |
696
52d1cd646f08
Warn about broken API version.
Matti Hamalainen <ccr@tnsp.org>
parents:
690
diff
changeset
|
123 [xs_have_sidplay2_api="(old style API)"] |
690
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
124 ) |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
125 if test "x$xs_have_sidplay2_api" = "xyes"; then |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
126 AC_LINK_IFELSE([ |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
127 AC_LANG_PROGRAM( |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
128 [#include <sidplay/sidunknown.h>], |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
129 [ISidUnknown *i;]) |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
130 ], [ |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
131 xs_have_sidplay2_api="(new COMI style API)" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
132 AC_DEFINE([HAVE_SIDPLAY2_COMI]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
133 ],[ |
696
52d1cd646f08
Warn about broken API version.
Matti Hamalainen <ccr@tnsp.org>
parents:
690
diff
changeset
|
134 xs_have_sidplay2_api="(broken version!)" |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
135 ]) |
690
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
136 fi |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
137 AC_MSG_RESULT([$xs_have_sidplay2_api]) |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
138 |
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
139 AC_LANG_POP([C++]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
140 |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
141 dnl *** Check for distortion patch |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
142 AC_MSG_CHECKING([libSIDPlay2+reSID distortion patch]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
143 AC_EGREP_HEADER([minimumfetresistance], [sidplay/sidtypes.h], [ |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
144 xs_have_distortion="yes" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
145 AC_DEFINE([HAVE_SIDPLAY2_DISTORTION]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
146 ],[ |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
147 xs_have_distortion="no" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
148 ]) |
690
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
149 AC_MSG_RESULT([$xs_have_distortion]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
150 CPPFLAGS="$tmp_CPPFLAGS" |
35 | 151 fi |
10 | 152 |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
153 |
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
154 dnl *** |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
155 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
|
156 dnl *** |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
157 if test "x$xs_have_sidplay1" = "xno" && test "x$xs_have_sidplay2" = "xno"; then |
443 | 158 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 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
|
159 fi |
1 | 160 |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
161 |
35 | 162 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
163 dnl *** Song position patch check |
35 | 164 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
165 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
|
166 tmp_CPPFLAGS="$CPPFLAGS" |
410 | 167 if test -d "$prefix"; then |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
168 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
|
169 fi |
35 | 170 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
171 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
|
172 xs_have_songpos="yes" |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
173 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
|
174 ],[ |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
175 xs_have_songpos="no" |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
176 ]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
177 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
|
178 CPPFLAGS="$tmp_CPPFLAGS" |
35 | 179 |
1 | 180 |
181 dnl *** | |
10 | 182 dnl *** Check XMMS version |
1 | 183 dnl *** |
443 | 184 AM_PATH_XMMS([1.2.0],, [ |
10 | 185 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.]) |
186 ]) | |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
187 libdir="$XMMS_INPUT_PLUGIN_DIR" |
1 | 188 |
443 | 189 XMMS_TEST_VERSION([$XMMS_VERSION], [1.2.5], [ |
190 AC_DEFINE([HAVE_XMMSEXTRA]) | |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
191 xs_have_xmmsextra="yes" |
10 | 192 ], [ |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
193 xs_have_xmmsextra="no" |
10 | 194 ]) |
1 | 195 |
196 | |
197 dnl *** | |
198 dnl *** And finally, output the all generatable files! | |
199 dnl *** | |
10 | 200 AC_CONFIG_FILES([ |
1 | 201 Makefile |
10 | 202 xmms-sid.spec |
431 | 203 po/Makefile.in |
1 | 204 ]) |
10 | 205 AC_OUTPUT |
206 | |
207 | |
208 dnl *** | |
209 dnl *** Show the result message | |
210 dnl *** | |
211 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
|
212 $PACKAGE_STRING has been configured successfully: |
10 | 213 |
214 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
|
215 XMMS >= v1.2.5 extra features : $xs_have_xmmsextra |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
216 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
|
217 libSIDPlay 1 support : $xs_have_sidplay1 |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
218 libSIDPlay 2 support : $xs_have_sidplay2 $xs_have_sidplay2_api |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
219 With distortion patch? : $xs_have_distortion |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
220 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
|
221 XMMS-SID theme SID-tune : $xs_have_themetune |
472 | 222 Translations (i18n/nls) : $USE_NLS |
10 | 223 ]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
224 |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
225 if test "x$xs_have_distortion" = "xyes"; then |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
226 echo "***" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
227 echo "*** WARNING! A version of libSIDPlay2 with Antti Lankila's distortion" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
228 echo "*** patches has been detected. Due to the fast-changing nature of this" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
229 echo "*** particular patch-set, it is possible that this version of XMMS-SID" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
230 echo "*** may be incompatible." |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
231 echo "***" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
232 echo "*** If you encounter any compilation problems, try a non-patched" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
233 echo "*** version of libSIDPlay2+reSID." |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
234 echo "***" |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
235 fi |