Mercurial > hg > xmms-sid
comparison configure.in @ 10:364fe4a69c2b
Updating ...
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Jun 2003 13:45:05 +0000 |
parents | 183e7cbc1036 |
children | 469efc05e01e |
comparison
equal
deleted
inserted
replaced
9:50556bffe2ed | 10:364fe4a69c2b |
---|---|
1 dnl *** | 1 dnl *** |
2 dnl *** Process this file with autoconf to produce a configure script. | 2 dnl *** Process this file with autoconf to produce a configure script. |
3 dnl *** | 3 dnl *** |
4 | 4 |
5 AC_INIT(README) | 5 dnl Require autoconf 2.54 or later |
6 AM_INIT_AUTOMAKE(xmms-sid, 0.7.4) | 6 AC_PREREQ(2.54) |
7 | |
8 dnl Initialize | |
9 AC_INIT(xmms-sid, 0.8.0rc1, ccr@tnsp.org) | |
10 AC_COPYRIGHT([[(C) 2002 Michael Schwendt, Matti 'ccr' Hämäläinen]]) | |
11 AC_CONFIG_SRCDIR(src/xmms-sid.h) | |
12 AM_INIT_AUTOMAKE | |
13 AC_CONFIG_HEADERS(config.h) | |
14 | |
7 | 15 |
8 dnl *** | 16 dnl *** |
9 dnl *** Some general checks | 17 dnl *** Some general checks |
10 dnl *** | 18 dnl *** |
11 AC_DISABLE_STATIC | 19 AC_DISABLE_STATIC |
16 dnl *** | 24 dnl *** |
17 dnl *** Checks for programs | 25 dnl *** Checks for programs |
18 dnl *** | 26 dnl *** |
19 AC_PROG_CC | 27 AC_PROG_CC |
20 AC_PROG_CXX | 28 AC_PROG_CXX |
21 AC_PROG_CPP | 29 dnl AC_PROG_CPP |
22 AC_PROG_INSTALL | 30 AC_PROG_INSTALL |
23 AC_HEADER_STDC | 31 AC_HEADER_STDC |
24 | 32 |
33 | |
34 dnl *** | |
35 dnl *** Checks for libraries | |
36 dnl *** | |
25 AC_PATH_LIBSIDPLAY | 37 AC_PATH_LIBSIDPLAY |
38 dnl AC_PATH_LIBSIDPLAY2 | |
26 | 39 |
27 AM_PATH_XMMS(1.2.0, [ | 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/)])) |
28 # Check if the libdir has been set by user | |
29 #if test "x$libdir" = "x$exec_prefix/lib"; then | |
30 libdir=$XMMS_INPUT_PLUGIN_DIR | |
31 #fi | |
32 ], | |
33 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.] | |
34 )) | |
35 | 41 |
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) | |
36 | 43 |
37 | 44 |
38 dnl *** | 45 dnl *** |
39 dnl *** Checks for libraries. | 46 dnl *** Check XMMS version |
40 dnl *** | 47 dnl *** |
41 AM_PATH_GLIB(1.2.2,,AC_MSG_ERROR([*** GLIB >= 1.2.2 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/)])) | 48 AM_PATH_XMMS(1.2.0,, [ |
49 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.]) | |
50 ]) | |
51 libdir=$XMMS_INPUT_PLUGIN_DIR | |
42 | 52 |
43 AM_PATH_GTK(1.2.2,,AC_MSG_ERROR([*** Gtk+ >= 1.2.2 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) | 53 XMMS_TEST_VERSION($XMMS_VERSION, 1.2.5, [ |
54 AC_DEFINE(HAVE_XMMSEXTRA) | |
55 OPT_XMMSEXTRA="yes" | |
56 ], [ | |
57 OPT_XMMSEXTRA="no" | |
58 ]) | |
44 | 59 |
45 | 60 |
46 dnl *** | 61 dnl *** |
47 dnl *** Song position patch check | 62 dnl *** Check for optional settings |
48 dnl *** | 63 dnl *** |
49 AC_MSG_CHECKING([for song position patch]) | 64 OPT_SUBSONGSEL="yes" |
50 dnl botte hack | 65 |
51 tmp_CPPFLAGS=$CPPFLAGS | 66 AC_ARG_ENABLE(subsongsel, |
52 if test -d "$prefix" ;then | 67 [ |
53 CPPFLAGS="$CPPFLAGS -I${prefix}/include" | 68 XMMS-SID specific options: |
69 --disable-subsongsel Disable SIDAmp-style sub-song selector], | |
70 [ | |
71 OPT_SUBSONGSEL="yes" | |
72 ], [ | |
73 OPT_SUBSONGSEL="no" | |
74 ]) | |
75 | |
76 if test $OPT_SUBSONGSEL = "yes"; then | |
77 AC_DEFINE(USE_SUBSONGSEL) | |
54 fi | 78 fi |
55 | 79 |
56 AC_EGREP_HEADER(set_song_position,xmms/plugin.h, | |
57 AC_DEFINE(HAVE_SONG_POSITION) | |
58 AC_MSG_RESULT(yes),AC_MSG_RESULT(no)) | |
59 | 80 |
60 CPPFLAGS=$tmp_CPPFLAGS | 81 dnl *** |
82 dnl *** Define some templates | |
83 dnl *** | |
84 AC_DEFINE(USE_SUBSONGSEL, 0, Define to 1 if user wants to use SIDAmp-style sub-song selector) | |
85 AC_DEFINE(HAVE_XMMSEXTRA, 0, Define to 1 if you have XMMS version 1.2.5 or later) | |
61 | 86 |
62 | 87 |
63 dnl *** | 88 dnl *** |
64 dnl *** And finally, output the all generatable files! | 89 dnl *** And finally, output the all generatable files! |
65 dnl *** | 90 dnl *** |
66 | 91 AC_CONFIG_FILES([ |
67 AC_OUTPUT([ | |
68 Makefile | 92 Makefile |
69 src/Makefile | 93 src/Makefile |
70 dnl xmms-sid.spec | 94 xmms-sid.spec |
71 ]) | 95 ]) |
96 | |
97 AC_OUTPUT | |
98 | |
99 | |
100 dnl *** | |
101 dnl *** Show the result message | |
102 dnl *** | |
103 AC_MSG_RESULT([ | |
104 XMMS-SID has been configured successfully: | |
105 | |
106 Installation directory : $libdir | |
107 Sub-song selector enabled : $OPT_SUBSONGSEL | |
108 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA | |
109 libSIDPlay 1 : $have_sidplay | |
110 libSIDPlay 2 : $have_sidplay2 | |
111 | |
112 Now just run 'make && make install'! | |
113 ]) |