Max Kellermann
373706c92b
configure.ac: add macro MPD_DEFINE_CONDITIONAL
2014-12-22 10:31:50 +01:00
Max Kellermann
062fef36f9
m4/mpd_auto: fix description in AC_DEFINE()
2014-12-22 10:19:13 +01:00
Max Kellermann
0f0245625a
configure.ac: add macro MPD_ENABLE_AUTO_LIB
2014-12-09 21:19:09 +01:00
Max Kellermann
8e1585aa8a
m4/mpd_auto.m4: fix option description in MPD_ARG_ENABLE
...
Was using the wrong variable. Regression by commit 16f870aa
2014-12-09 21:18:27 +01:00
Max Kellermann
16f870aa41
m4/mpd_auto.m4: move code to MPD_ARG_ENABLE
2014-12-08 21:54:02 +01:00
Max Kellermann
16f729eb22
m4/mpd_auto.m4: fix displayed default value
...
Was hard-coded to "auto", and the macro parameter was ignored (in the
help text).
2014-12-08 18:38:52 +01:00
Max Kellermann
dd3752956a
m4/mpd_auto.m4: fix inverted assignment after auto-detection
...
Broken by commit cdbdcec
2014-11-24 18:27:04 +01:00
Max Kellermann
1a61b01315
configure.ac: add macro MPD_AUTO
2014-11-23 07:39:05 +01:00
Max Kellermann
c643b6ff16
configure.ac: add macro MPD_ENABLE_AUTO_PKG_LIB
2014-11-22 23:50:21 +01:00
Max Kellermann
b3f5b4932c
configure.ac: add macro MPD_ENABLE_AUTO_PKG
...
Simplify the definition of many build options.
2014-11-21 22:19:57 +01:00
Max Kellermann
cdbdcec715
m4/mpd_auto.m4: reduce "eval" bloat
...
Don't assign bash variables; instead, use the m4 parameters directly.
2014-11-21 14:39:33 +01:00
Max Kellermann
a0105b45ae
configure.ac: add function MPD_AUTO_LIB and use it
2013-10-17 00:09:08 +02:00
Denis Krjuchkov
0f1a180e15
mpd_auto.m4: Pass libraries to AC_CHECK_LIB in MPD_AUTO_PKG_LIB
...
Rationale: vanilla libid3tag does not have any pkg-config stuff
and fails to detect because symbols from libz are not found.
2013-01-03 19:59:41 +01:00
Max Kellermann
a1b8806422
configure.ac: fail if libid3tag was enabled explicitly, but not found
...
Add M4 function MPD_AUTO_PKG_LIB for pkg-config with AC_CHECK_LIB
fallback.
2011-09-01 10:58:36 +02:00
Max Kellermann
d23a23db10
configure.ac: added function MPD_AUTO_PRE
...
This function checks whether a prerequisite for a feature was found.
2009-04-15 22:23:46 +02:00
Max Kellermann
a6ed888f9f
configure.ac: print feature name in error message
...
When MPD_AUTO_DISABLED prints a fatal error message, include the
feature name. This might be an important piece of information for the
user, just in case the preceding line doesn't tell him.
2009-04-15 21:57:12 +02:00
Max Kellermann
7d9380fd91
configure.ac: fix error on disabled features
...
In the MPD_AUTO_DISABLED() function, I forgot to check for "explicitly
disabled".
2009-03-29 21:44:55 +02:00
Max Kellermann
87e0b1adc4
configure.ac: added M4 function MPD_AUTO_PKG() for ALSA
...
MPD_AUTO_PKG() runs pkg-config and then forwards control to
MPD_AUTO_RESULT(). This is a commonly used short cut.
2009-03-28 21:48:07 +01:00
Max Kellermann
53ed647b22
configure.ac: fail when ALSA is enabled but not found
...
This patch adds a small autoconf M4 library which deals with
auto-detected features. The default for those features is "auto",
which is like the old default: if the library is present on the
system, enable the feature, disable otherwise. If the user explicitly
enables that feature (--enable-alsa), and the library is not present,
configure must fail, because it cannot fulfill the request.
2009-03-28 11:10:40 +01:00