annotate configure.ac @ 841:483db1c33059

Add warning about libSIDPlayFP v1.x API flux.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 08 Nov 2012 21:52:41 +0200
parents 29f3c3f29c0d
children 9313d991957a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 dnl *** Process this file with autoconf to produce a configure script.
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
829
2531396c2718 Bump up autoconf version requirement.
Matti Hamalainen <ccr@tnsp.org>
parents: 828
diff changeset
5 dnl Require autoconf 2.65 or later
2531396c2718 Bump up autoconf version requirement.
Matti Hamalainen <ccr@tnsp.org>
parents: 828
diff changeset
6 AC_PREREQ([2.65])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
7
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
8 dnl Initialize
828
517c235cafb4 Bump version.
Matti Hamalainen <ccr@tnsp.org>
parents: 823
diff changeset
9 AC_INIT([XMMS-SID], [0.8.92], [ccr@tnsp.org])
733
ee48a7323280 Update copyright.
Matti Hamalainen <ccr@tnsp.org>
parents: 730
diff changeset
10 AC_COPYRIGHT([[(C) 2003-2012 Matti 'ccr' Hamalainen]])
158
2ae878523164 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 157
diff changeset
11 AC_CONFIG_SRCDIR([src/xmms-sid.h])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
12 AM_INIT_AUTOMAKE
158
2ae878523164 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 157
diff changeset
13 AC_CONFIG_HEADERS([src/config.h])
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 804
diff changeset
14 AM_GNU_GETTEXT_VERSION([0.18.1])
433
a0c3d277dc0e Fix gettext init macros
Matti Hamalainen <ccr@tnsp.org>
parents: 431
diff changeset
15 AM_GNU_GETTEXT([external])
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
16
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
17
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
18 dnl ***
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
19 dnl *** Define some templates
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
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.])
838
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
24 AH_TEMPLATE([HAVE_SIDPLAYFP], [Define if you have and want to use libSIDPlay2-FP http://sourceforge.net/projects/sidplay-residfp/])
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
25 AH_TEMPLATE([HAVE_SIDPLAYFP_V1], [Define if you are using v1.0.0 API of libSIDPlay2-FP.])
677
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_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
27 AH_TEMPLATE([DEBUG], [Define if you wish to enable debug output to terminal.])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
28
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 dnl *** Some general checks
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 AC_DISABLE_STATIC
148
1075c4d9f112 0.8.0rc1
Matti Hamalainen <ccr@tnsp.org>
parents: 143
diff changeset
35 AC_LIB_RPATH
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 AM_PROG_LIBTOOL
397
c4e5604a8257 Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents: 386
diff changeset
37 AC_SYS_LARGEFILE
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41 dnl *** Checks for programs
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43 AC_PROG_CC
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
44 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
45 AC_PROG_CXX
e161aa3ba0c3 Fix order of CC/CXX macro calling, add check for CXXCPP
Matti Hamalainen <ccr@tnsp.org>
parents: 269
diff changeset
46 AC_PROG_CXXCPP
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47 AC_PROG_INSTALL
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
48
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
49
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
50 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
51 dnl *** Checks for generic libraries
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
52 dnl ***
247
98279d92a78b Fix M4 macro quotations.
Matti Hamalainen <ccr@tnsp.org>
parents: 246
diff changeset
53 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
54 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
55 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
56
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
57
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
58 dnl ***
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
59 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
60 dnl ***
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
61 AC_HEADER_STDC
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
62 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
63
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
64 AC_TYPE_SIZE_T
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
65 AC_C_CONST
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
66 AC_C_INLINE
661
94f273bcafcf Sanitize configure in by removing unneeded checks.
Matti Hamalainen <ccr@tnsp.org>
parents: 614
diff changeset
67 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
68
254
d3a4d35f2a8f Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents: 248
diff changeset
69
d3a4d35f2a8f Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents: 248
diff changeset
70 dnl ***
810
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
71 dnl *** Enable debugging
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
72 dnl ***
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
73 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
74 [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
75 [
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
76 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
77 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
78 else
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
79 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
80 fi
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
81 ], [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
82 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
83 AC_DEFINE([DEBUG])
823
6f7fada39665 Add -fstack-protector-all to debug mode CC options.
Matti Hamalainen <ccr@tnsp.org>
parents: 818
diff changeset
84 CFLAGS="$CFLAGS -fstack-protector-all"
6f7fada39665 Add -fstack-protector-all to debug mode CC options.
Matti Hamalainen <ccr@tnsp.org>
parents: 818
diff changeset
85 CXXFLAGS="$CXXFLAGS -fstack-protector-all"
810
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
86 fi
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
87
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
88
0c2f8ee6be42 Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents: 807
diff changeset
89 dnl ***
254
d3a4d35f2a8f Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents: 248
diff changeset
90 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
91 dnl ***
443
62fc59951eda Cleanups
Matti Hamalainen <ccr@tnsp.org>
parents: 436
diff changeset
92 AC_ARG_ENABLE([themetune],
707
3ceec7ef374a Use AS_HELP_STRING macro.
Matti Hamalainen <ccr@tnsp.org>
parents: 704
diff changeset
93 [AS_HELP_STRING([--disable-themetune],
3ceec7ef374a Use AS_HELP_STRING macro.
Matti Hamalainen <ccr@tnsp.org>
parents: 704
diff changeset
94 [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.])
3ceec7ef374a Use AS_HELP_STRING macro.
Matti Hamalainen <ccr@tnsp.org>
parents: 704
diff changeset
95 ], [
410
4ba6416227e2 Cleanups
Matti Hamalainen <ccr@tnsp.org>
parents: 397
diff changeset
96 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
97 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
98 else
443
62fc59951eda Cleanups
Matti Hamalainen <ccr@tnsp.org>
parents: 436
diff changeset
99 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
100 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
101 else
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=no
254
d3a4d35f2a8f Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents: 248
diff changeset
103 fi
d3a4d35f2a8f Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents: 248
diff changeset
104 fi
677
0e879fb48b48 Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents: 674
diff changeset
105 ], [xs_have_themetune=yes])
724
a7342fc5d1db Fix themetune enabling.
Matti Hamalainen <ccr@tnsp.org>
parents: 723
diff changeset
106 if test "x$xs_have_themetune" = "xyes"; then
a7342fc5d1db Fix themetune enabling.
Matti Hamalainen <ccr@tnsp.org>
parents: 723
diff changeset
107 AC_DEFINE([HAVE_THEMETUNE])
a7342fc5d1db Fix themetune enabling.
Matti Hamalainen <ccr@tnsp.org>
parents: 723
diff changeset
108 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
109
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
110
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
111 dnl ***
677
0e879fb48b48 Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents: 674
diff changeset
112 dnl *** libSIDPlay1/2 options
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
113 dnl ***
677
0e879fb48b48 Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents: 674
diff changeset
114 XS_ARG_WITH([sidplay1], [libSIDPlay1], [XS_PATH_LIBSIDPLAY1])
410
4ba6416227e2 Cleanups
Matti Hamalainen <ccr@tnsp.org>
parents: 397
diff changeset
115 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
116 AC_DEFINE([HAVE_SIDPLAY1])
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
117 fi
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
118
744
c7fa50576c70 Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents: 743
diff changeset
119
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
120 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
121
c7fa50576c70 Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents: 743
diff changeset
122 if test "x$xs_have_sidplayfp" = "xyes"; then
838
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
123 AC_DEFINE([HAVE_SIDPLAYFP])
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_HARDSID_BUILDER])
c7fa50576c70 Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents: 743
diff changeset
125 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
126 AC_DEFINE([HAVE_RESID_FP_BUILDER])
839
29f3c3f29c0d Finalize libSIDPlay2 vs FP configuration stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 838
diff changeset
127 if test "x$xs_pkg_sidplayfp_v1" = "xyes"; then
29f3c3f29c0d Finalize libSIDPlay2 vs FP configuration stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 838
diff changeset
128 AC_DEFINE([HAVE_SIDPLAYFP_V1])
29f3c3f29c0d Finalize libSIDPlay2 vs FP configuration stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 838
diff changeset
129 xs_have_sidplay2_api="(FP v1.0 (alpha) API)"
29f3c3f29c0d Finalize libSIDPlay2 vs FP configuration stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 838
diff changeset
130 fi
29f3c3f29c0d Finalize libSIDPlay2 vs FP configuration stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 838
diff changeset
131 fi
744
c7fa50576c70 Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents: 743
diff changeset
132
838
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
133 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
134 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
135 if test "x$xs_have_sidplay2" = "xyes"; then
838
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
136 xs_have_sidplay2_api="(old non-COMI)"
744
c7fa50576c70 Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents: 743
diff changeset
137 AC_DEFINE([HAVE_SIDPLAY2])
c7fa50576c70 Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents: 743
diff changeset
138
677
0e879fb48b48 Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents: 674
diff changeset
139 AC_LANG_PUSH([C++])
690
5066bced5160 Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 689
diff changeset
140
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_CHECK
729
92c284766c49 Synchronize changes from Audacious port.
Matti Hamalainen <ccr@tnsp.org>
parents: 728
diff changeset
142 xs_builders_available="no"
838
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
143 dnl This is a faux check, to satisfy things
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
144 XS_BUILDERS_FIND([reSID_FP], [residfp-builder], [residfp.h], [ReSIDfpBuilder])
838
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
145 dnl These checks are real
677
0e879fb48b48 Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents: 674
diff changeset
146 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
147 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
148 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
149 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
150 fi
744
c7fa50576c70 Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents: 743
diff changeset
151
690
5066bced5160 Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 689
diff changeset
152 AC_LANG_POP([C++])
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
153 fi
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
154
125
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
155
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
156 dnl ***
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
157 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
158 dnl ***
744
c7fa50576c70 Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents: 743
diff changeset
159 if test "x$xs_have_sidplay1" != "xyes" -a "x$xs_have_sidplay2" != "xyes" -a "x$xs_have_sidplayfp" != "xyes"; then
838
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
160 AC_MSG_ERROR([Either libSIDPlay1, libSIDPlay2 or libSIDPlay2-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
161 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
162
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
163
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
164 dnl ***
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
165 dnl *** Song position patch check
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
166 dnl ***
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
167 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
168 tmp_CPPFLAGS="$CPPFLAGS"
410
4ba6416227e2 Cleanups
Matti Hamalainen <ccr@tnsp.org>
parents: 397
diff changeset
169 if test -d "$prefix"; then
446
3119716480ad Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 443
diff changeset
170 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
171 fi
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
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 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
174 xs_have_songpos="yes"
446
3119716480ad Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 443
diff changeset
175 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
176 ],[
677
0e879fb48b48 Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents: 674
diff changeset
177 xs_have_songpos="no"
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
178 ])
677
0e879fb48b48 Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents: 674
diff changeset
179 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
180 CPPFLAGS="$tmp_CPPFLAGS"
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
181
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
182
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
183 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
184 dnl *** Check XMMS version
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
185 dnl ***
745
9dc5378cc806 Remove XMMS_EXTRA stuff, as we require XMMS 1.2.10+ now.
Matti Hamalainen <ccr@tnsp.org>
parents: 744
diff changeset
186 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
187 AC_MSG_ERROR([*** XMMS >= 1.2.10 not found. You need XMMS v1.2.10 or later to use XMMS-SID plugin.])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
188 ])
677
0e879fb48b48 Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents: 674
diff changeset
189 libdir="$XMMS_INPUT_PLUGIN_DIR"
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
190
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
191
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
192 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
193 dnl *** And finally, output the all generatable files!
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
194 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
195 AC_CONFIG_FILES([
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
196 Makefile
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
197 xmms-sid.spec
431
a5ebf8595154 GNU gettext i18n support
Matti Hamalainen <ccr@tnsp.org>
parents: 410
diff changeset
198 po/Makefile.in
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
199 ])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
200 AC_OUTPUT
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
201
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
202
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
203 dnl ***
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
204 dnl *** Show the result message
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
205 dnl ***
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
206 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
207 $PACKAGE_STRING has been configured successfully:
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
208
807
9372ea9efcf1 Add installation prefix to the configure informational output.
Matti Hamalainen <ccr@tnsp.org>
parents: 806
diff changeset
209 Prefix : $prefix
9372ea9efcf1 Add installation prefix to the configure informational output.
Matti Hamalainen <ccr@tnsp.org>
parents: 806
diff changeset
210 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
211 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
212 libSIDPlay 1 support : $xs_have_sidplay1
838
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
213 libSIDPlay 2 support : $xs_have_sidplay2 $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
214 Included builders : $xs_builders
838
ae1f6418d093 libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents: 829
diff changeset
215 libSIDPlay 2-FP support : $xs_have_sidplayfp
677
0e879fb48b48 Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents: 674
diff changeset
216 XMMS-SID theme SID-tune : $xs_have_themetune
472
3f02945a0c48 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 447
diff changeset
217 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
218 Debugging enabled : $xs_enable_debug
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
219 ])
841
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
220
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
221 if test "x$xs_pkg_sidplayfp_v1" = "xyes"; then
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
222 echo ""
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
223 echo "WARNING! You seem to be using libSIDPlayFP v1.x, which is, at the"
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
224 echo "time of this release, still in alpha state. The API may not be compatible."
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
225 echo "If you experience any problems, downgrade to libSIDPlayFP release 0.3.7."
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
226 echo ""
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
227 echo "Or check if there are any newer releases of XMMS-SID that might support"
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
228 echo "the newer versions of libSIDPlayFP."
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
229 echo ""
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
230 echo "Or just use plain old libSIDPlay2."
483db1c33059 Add warning about libSIDPlayFP v1.x API flux.
Matti Hamalainen <ccr@tnsp.org>
parents: 839
diff changeset
231 fi