annotate configure.in @ 23:469efc05e01e

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