annotate configure.in @ 47:fd610bb817bc

Updated specfile, added new configure options and improved detections
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 21 Jun 2003 20:50:02 +0000
parents 3c609b6d5a02
children b3e17bb32b21
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
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
5 dnl Require autoconf 2.56 or later
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
6 AC_PREREQ(2.56)
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
43
3c609b6d5a02 Automagic updating of spec.in-file via configure
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
9 AC_INIT(XMMS-SID, 0.8.0alpha0, ccr@tnsp.org)
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
10 AC_COPYRIGHT([[(C) 2002-2003 Matti 'ccr' Hämäläinen]])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
11 AC_CONFIG_SRCDIR(src/xmms-sid.h)
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
12 AM_INIT_AUTOMAKE
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
13 AC_CONFIG_HEADERS(src/config.h)
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
14
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
15
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
16 dnl ***
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
17 dnl *** Define some templates
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
18 dnl ***
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
19 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.])
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
20 AH_TEMPLATE([HAVE_UNSIGNEDPCM],[Define if your audiodevice supports _ONLY_ UNSIGNED PCM samples, otherwise leave undefined.])
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
21 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you have and want to use libSIDPlay 1])
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
22 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you have and want to use libSIDPlay 2])
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
23 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
24 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
25
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 dnl *** Some general checks
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
30 AC_PREFIX_PROGRAM(xmms)
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 AC_DISABLE_STATIC
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32 AC_LIBTOOL_DLOPEN
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 AM_PROG_LIBTOOL
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 dnl *** Checks for programs
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
39 AC_PROG_CXX
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 AC_PROG_CC
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
41 AC_PROG_CPP
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 AC_PROG_INSTALL
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
44
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
45 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
46 dnl *** Checks for generic libraries
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
47 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
48 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/)]))
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
49 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)
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
50
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
51
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
52 dnl ***
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
53 dnl *** Check some options
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
54 dnl ***
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
55 AC_ARG_WITH(unsigned-pcm,
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 --with-unsigned-pcm Prefer UNsigned PCM format for audio. Use
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
58 this option if your audio hardware does not
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
59 support signed format PCM samples.],
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
60 [
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
61 AC_DEFINE(HAVE_UNSIGNEDPCM)
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
62 ],[])
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
63
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
64
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
65 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
66 dnl *** libSIDPlay 1 options
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
67 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
68 AC_ARG_WITH(sidplay1,
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
69 [
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
70 --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX],
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
71 [
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
72 if test "$withval" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
73 xs_sidplay1=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
74 xs_sidplay1_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
75 xs_sidplay1_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
76 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
77 if test "$withval" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
78 xs_sidplay1=no
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
79 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
80 xs_sidplay1=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
81 xs_sidplay1_includes="$withval/include"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
82 xs_sidplay1_library="$withval/lib"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
83 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
84 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
85 ],[
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
86 xs_sidplay1=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
87 xs_sidplay1_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
88 xs_sidplay1_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
89 ])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
90
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
91 AC_ARG_WITH(sidplay1-inc,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
92 [ --with-sidplay1-inc=DIR Where the SIDPlay1 headers are located],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
93 [xs_sidplay1_includes="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
94
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
95 AC_ARG_WITH(sidplay1-lib,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
96 [ --with-sidplay1-lib=DIR Where the SIDPlay1 library is installed],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
97 [xs_sidplay1_library="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
98
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
99
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
100 dnl ***
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
101 dnl *** libSIDPlay 2 options
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
102 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
103 AC_ARG_WITH(sidplay2,
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
104 [
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
105 --with-sidplay2=PREFIX Enable SIDPlay2 with install-PREFIX],
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
106 [
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
107 if test "$withval" = yes; then
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
108 xs_sidplay1=no
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
109 xs_sidplay2=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
110 xs_sidplay2_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
111 xs_sidplay2_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
112 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
113 if test "$withval" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
114 xs_sidplay2=no
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
115 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
116 xs_sidplay2=yes
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
117 xs_sidplay1=no
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
118 xs_sidplay2_includes="$withval/include"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
119 xs_sidplay2_library="$withval/lib"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
120 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
121 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
122 ],[
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
123 xs_sidplay2=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
124 xs_sidplay2_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
125 xs_sidplay2_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
126 ])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
127
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
128 AC_ARG_WITH(sidplay2-inc,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
129 [ --with-sidplay2-inc=DIR Where the SIDPlay2 headers are located],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
130 [xs_sidplay2_includes="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
131
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
132 AC_ARG_WITH(sidplay2-lib,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
133 [ --with-sidplay2-lib=DIR Where the SIDPlay2 library is installed],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
134 [xs_sidplay2_library="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
135
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
136
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
137 dnl *** Determine if libraries are wanted and available
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
138 OPT_SIDPLAY1="no"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
139 if test "$xs_sidplay1" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
140 XS_PATH_LIBSIDPLAY1
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
141 if test "$xs_have_sidplay1" = yes; then
33
9cf8092ec7d3 More improvements on configuration, updated documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
142 AC_DEFINE(HAVE_SIDPLAY1)
43
3c609b6d5a02 Automagic updating of spec.in-file via configure
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
143 AC_SUBST(REQUIRE_LIBRARY,[libsidplay.so.1])
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
144 OPT_SIDPLAY1="yes"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
145 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
146 AC_MSG_ERROR([libSIDPlay1 library and/or headers were not found!])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
147 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
148 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
149
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
150
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
151 OPT_SIDPLAY2="no"
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
152 if test "$OPT_SIDPLAY1" = no; then
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
153 if test "$xs_sidplay2" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
154 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
155 XS_PATH_LIBSIDPLAY2
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
156 if test "$xs_have_sidplay2" = yes; then
33
9cf8092ec7d3 More improvements on configuration, updated documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
157 AC_DEFINE(HAVE_SIDPLAY2)
43
3c609b6d5a02 Automagic updating of spec.in-file via configure
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
158 AC_SUBST(REQUIRE_LIBRARY,[libsidplay2.so.1])
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
159 OPT_SIDPLAY2="yes"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
160 BUILDERS_FIND
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
161 BUILDERS_FIND_RESID
33
9cf8092ec7d3 More improvements on configuration, updated documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
162 BUILDERS_FIND_HARDSID
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
163 if test "$builders_available" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
164 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]);
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
165 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
166 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
167 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
168 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
169 fi
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
170 fi
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
171
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
172
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
173 dnl *** Check if we have some emulator library available?
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
174 if test "$OPT_SIDPLAY1" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
175 if test "$OPT_SIDPLAY2" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
176 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
177 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
178 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
179
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
180 dnl ***
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
181 dnl *** Checks for header files, types and functions
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
182 dnl ***
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
183 AC_HEADER_STDC
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
184 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
185
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
186 AC_HEADER_STDBOOL
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
187 AC_TYPE_SIZE_T
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
188 AC_C_CONST
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
189 AC_C_INLINE
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
190 AC_C_VOLATILE
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
191 AC_C_BIGENDIAN
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
192
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
193 AC_FUNC_MALLOC
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
194 AC_TYPE_SIGNAL
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
195 AC_FUNC_STAT
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
196 AC_CHECK_FUNCS([memset strcasecmp strerror strrchr])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
197
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
198
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
199 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
200 dnl *** Check XMMS version
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
201 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
202 AM_PATH_XMMS(1.2.0,, [
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
203 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.])
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
204 ])
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
205 libdir=$XMMS_INPUT_PLUGIN_DIR
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
206
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
207 XMMS_TEST_VERSION($XMMS_VERSION, 1.2.5, [
33
9cf8092ec7d3 More improvements on configuration, updated documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
208 AC_DEFINE(HAVE_XMMSEXTRA)
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
209 OPT_XMMSEXTRA="yes"
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
210 ], [
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
211 OPT_XMMSEXTRA="no"
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
212 ])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
213
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
214
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
215 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
216 dnl *** And finally, output the all generatable files!
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
217 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
218 AC_CONFIG_FILES([
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
219 Makefile
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
220 src/Makefile
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
221 xmms-sid.spec
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
222 ])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
223 AC_OUTPUT
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
224
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
225
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
226 dnl ***
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
227 dnl *** Show the result message
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
228 dnl ***
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
229 AC_MSG_RESULT([
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
230 XMMS-SID has been configured successfully:
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
231
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
232 Installation directory : $libdir
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
233 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
234 libSIDPlay 1 support : $OPT_SIDPLAY1
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
235 libSIDPlay 2 support : $OPT_SIDPLAY2
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
236 Included builders : $xs_builders
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
237
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
238 ])