blob: 0b61cb435bbdaa31242e5d7790cc26733a5b2f10 [file] [log] [blame]
Josh Coalson9f429ba2001-01-19 22:39:39 +00001AC_INIT(src/flac/main.c)
Josh Coalson2689b942001-02-23 21:13:02 +00002AM_INIT_AUTOMAKE(flac, 0.8)
Josh Coalson9f429ba2001-01-19 22:39:39 +00003
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.
7AM_PROG_LIBTOOL
8sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static
9chmod +x libtool-disable-static
10
11AC_PROG_MAKE_SET
12
13AC_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])
20AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
21
22AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - xmms support will not be built]))
23AM_CONDITIONAL(XMMS, test x$XMMS_INPUT_PLUGIN_DIR != x)
24
25CFLAGS='-I./include -I $(top_srcdir)/include -Wall -W'
26if test x$debug = xtrue; then
27 CFLAGS="$CFLAGS -g -O0 -DDEBUG"
28else
Josh Coalson230e0f52001-02-05 23:19:09 +000029 CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -funroll-loops -ffast-math -finline-functions -DNDEBUG"
Josh Coalson9f429ba2001-01-19 22:39:39 +000030fi
31
32AC_OUTPUT( Makefile \
33 src/Makefile \
34 src/libFLAC/Makefile \
35 src/flac/Makefile \
Josh Coalsonb72c5502001-03-08 20:31:05 +000036 src/metaflac/Makefile \
Josh Coalson9f429ba2001-01-19 22:39:39 +000037 src/plugin_xmms/Makefile \
38 src/test_streams/Makefile \
39 src/test_unit/Makefile \
40 test/Makefile \
41 )