fix default version number
[platform/upstream/flac.git] / configure.in
1 AC_INIT(src/flac/main.c)
2 AM_INIT_AUTOMAKE(flac, 0.6)
3
4 # We need two libtools, one that builds both shared and static, and
5 # one that builds only static.  This is because the resulting libtool
6 # does not allow us to choose which to build at runtime.
7 AM_PROG_LIBTOOL
8 sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static
9 chmod +x libtool-disable-static
10
11 AC_PROG_MAKE_SET
12
13 AC_ARG_ENABLE(debug,
14     [  --enable-debug    Turn on debugging],
15     [case "${enableval}" in
16         yes) debug=true ;;
17         no)  debug=false ;;
18         *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
19     esac],[debug=false])
20 AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
21
22 AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - xmms support will not be built]))
23 AM_CONDITIONAL(XMMS, test x$XMMS_INPUT_PLUGIN_DIR != x)
24
25 CFLAGS='-I./include -I $(top_srcdir)/include -Wall -W'
26 if test x$debug = xtrue; then
27   CFLAGS="$CFLAGS  -g -O0 -DDEBUG"
28 else
29   CFLAGS="$CFLAGS -O3 -DNDEBUG"
30 fi
31
32 AC_OUTPUT(      Makefile        \
33                 src/Makefile    \
34                 src/libFLAC/Makefile    \
35                 src/flac/Makefile       \
36                 src/plugin_xmms/Makefile        \
37                 src/test_streams/Makefile       \
38                 src/test_unit/Makefile  \
39                 test/Makefile   \
40         )