blob: 09b5c7147689fb6f39eb93a101921d6c3e07b78f [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# FLAC - Free Lossless Audio Codec
Josh Coalson95643902004-01-17 04:14:43 +00002# Copyright (C) 2001,2002,2003,2004 Josh Coalson
Josh Coalson6b05bc52001-06-08 00:13:21 +00003#
Josh Coalsone8a76012003-02-07 00:14:32 +00004# This file is part the FLAC project. FLAC is comprised of several
5# components distributed under difference licenses. The codec libraries
6# are distributed under Xiph.Org's BSD-like license (see the file
7# COPYING.Xiph in this distribution). All other programs, libraries, and
8# plugins are distributed under the GPL (see COPYING.GPL). The documentation
9# is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
10# FLAC distribution contains at the top the terms under which it may be
11# distributed.
Josh Coalson6b05bc52001-06-08 00:13:21 +000012#
Josh Coalsone8a76012003-02-07 00:14:32 +000013# Since this particular file is relevant to all components of FLAC,
14# it may be distributed under the Xiph.Org license, which is the least
15# restrictive of those mentioned above. See the file COPYING.Xiph in this
16# distribution.
Josh Coalson6b05bc52001-06-08 00:13:21 +000017
Josh Coalson0e3576e2001-05-25 00:07:51 +000018# NOTE that for many of the AM_CONDITIONALs we use the prefix FLaC__
Josh Coalsoncf030c82001-05-23 20:59:48 +000019# instead of FLAC__ since autoconf triggers off 'AC_' in strings
20
Josh Coalson9f429ba2001-01-19 22:39:39 +000021AC_INIT(src/flac/main.c)
Josh Coalson63ee53d2004-07-25 20:57:28 +000022AM_INIT_AUTOMAKE(flac, 1.1.1-beta1)
Josh Coalson9f429ba2001-01-19 22:39:39 +000023
Matt Zimmerman057b5322002-10-05 14:41:19 +000024# Don't automagically regenerate autoconf/automake generated files unless
25# explicitly requested. Eases autobuilding -mdz
26AM_MAINTAINER_MODE
27
Josh Coalsone2fece22002-09-09 21:54:28 +000028# Function to configure paths for id3lib; search for 'meat' to get to the end.
29# adapted from ogg.m4
30# This is here until id3lib comes with an equivalent.
31# It is inline with configure.in instead of a separate file as a courtesy to users unaware of the -I flag to aclocal
32dnl LOCAL__PATH_ID3LIB([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
33dnl Test for libid3, and define ID3LIB_CFLAGS and ID3LIB_LIBS
34dnl
Josh Coalsona9414542004-07-20 01:24:48 +000035AC_DEFUN([LOCAL__PATH_ID3LIB],
Josh Coalsone2fece22002-09-09 21:54:28 +000036[dnl
37dnl Get the cflags and libraries
38dnl
39AC_ARG_WITH(id3lib,[ --with-id3lib=PFX Prefix where libid3 is installed (optional)], id3lib_prefix="$withval", id3lib_prefix="")
40AC_ARG_WITH(id3lib-libraries,[ --with-id3lib-libraries=DIR Directory where libid3 library is installed (optional)], id3lib_libraries="$withval", id3lib_libraries="")
41AC_ARG_WITH(id3lib-includes,[ --with-id3lib-includes=DIR Directory where libid3 header files are installed (optional)], id3lib_includes="$withval", id3lib_includes="")
42AC_ARG_ENABLE(id3libtest, [ --disable-id3libtest Do not try to compile and run a test id3lib program],, enable_id3libtest=yes)
43
44 if test "x$id3lib_libraries" != "x" ; then
45 ID3LIB_LIBS="-L$id3lib_libraries"
46 elif test "x$id3lib_prefix" != "x" ; then
47 ID3LIB_LIBS="-L$id3lib_prefix/lib"
48 elif test "x$prefix" != "xNONE" ; then
Josh Coalson42a167f2004-05-26 20:20:22 +000049 ID3LIB_LIBS="-L$libdir"
Josh Coalsone2fece22002-09-09 21:54:28 +000050 fi
51
52 ID3LIB_LIBS="$ID3LIB_LIBS -lid3"
53
54 if test "x$id3lib_includes" != "x" ; then
55 ID3LIB_CFLAGS="-I$id3lib_includes"
56 elif test "x$id3lib_prefix" != "x" ; then
57 ID3LIB_CFLAGS="-I$id3lib_prefix/include"
58 elif test "$prefix" != "xNONE"; then
59 ID3LIB_CFLAGS="-I$prefix/include"
60 fi
61
62 AC_MSG_CHECKING(for id3lib)
63
64
65 if test "x$enable_id3libtest" = "xyes" ; then
66 id3lib_found=""
67 else
68 id3lib_found="yes"
69 fi
70 dnl There is some confusion over what libraries libid3 needs
71 dnl so we must be pessimistic and try all permutations:
72 dnl "-lid3" "-lid3 -lstdc++" "-lid3 -lz" "-lid3 -lz -lstdc++"
73 for xtra_stdcpp in "" " -lstdc++" ; do
74 for xtra_z in "" " -lz" ; do
75 if test "x$id3lib_found" = "x" ; then
76 ac_save_CFLAGS="$CFLAGS"
77 ac_save_LIBS="$LIBS"
78 CFLAGS="$CFLAGS $ID3LIB_CFLAGS"
79 LIBS="$LIBS $ID3LIB_LIBS$xtra_stdcpp$xtra_z"
80 rm -f conf.id3libtest
81 AC_TRY_RUN([
82#include <stdio.h>
83#include <stdlib.h>
84#include <string.h>
85#include <id3.h>
86int main () { system("touch conf.id3libtest"); return 0; }
87], id3lib_found=yes,,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
88 CFLAGS="$ac_save_CFLAGS"
89 LIBS="$ac_save_LIBS"
90 fi
91 if test "x$id3lib_found" = "xyes" ; then
92 ID3LIB_LIBS="$ID3LIB_LIBS$xtra_stdcpp$xtra_z"
93 fi
94 done
95 done
96
97 if test "x$id3lib_found" = "xyes" ; then
98 AC_MSG_RESULT(yes)
99 ifelse([$1], , :, [$1])
100 else
101 AC_MSG_RESULT(no)
102 if test -f conf.id3libtest ; then
103 :
104 else
105 echo "*** Could not run id3lib test program, checking why..."
106 CFLAGS="$CFLAGS $ID3LIB_CFLAGS"
107 LIBS="$LIBS $ID3LIB_LIBS"
108 AC_TRY_LINK([
109#include <stdio.h>
110#include <id3.h>
111], [ return 0; ],
112 [ echo "*** The test program compiled, but did not run. This usually means"
113 echo "*** that the run-time linker is not finding id3lib or finding the wrong"
114 echo "*** version of id3lib. If it is not finding id3lib, you'll need to set your"
115 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
116 echo "*** to the installed location Also, make sure you have run ldconfig if that"
117 echo "*** is required on your system"
118 echo "***"
119 echo "*** If you have an old version installed, it is best to remove it, although"
120 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
121 [ echo "*** The test program failed to compile or link. See the file config.log for the"
122 echo "*** exact error that occured. This usually means id3lib was incorrectly installed"
123 echo "*** or that you have moved id3lib since it was installed." ])
124 CFLAGS="$ac_save_CFLAGS"
125 LIBS="$ac_save_LIBS"
126 fi
127 ID3LIB_CFLAGS=""
128 ID3LIB_LIBS=""
129 ifelse([$2], , :, [$2])
130 fi
131 AC_SUBST(ID3LIB_CFLAGS)
132 AC_SUBST(ID3LIB_LIBS)
133 rm -f conf.id3libtest
134])
135
136
137dnl Now the meat of configure.in:
138
Josh Coalson9f429ba2001-01-19 22:39:39 +0000139# We need two libtools, one that builds both shared and static, and
140# one that builds only static. This is because the resulting libtool
141# does not allow us to choose which to build at runtime.
142AM_PROG_LIBTOOL
143sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static
144chmod +x libtool-disable-static
145
Josh Coalson985dd8d2004-07-29 05:25:36 +0000146AM_PROG_AS
Josh Coalson57ba6f42002-06-07 05:27:37 +0000147AC_PROG_CXX
Josh Coalson9f429ba2001-01-19 22:39:39 +0000148AC_PROG_MAKE_SET
149
Josh Coalson5a804ca2002-05-17 06:08:13 +0000150dnl check for getopt in standard library
151dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )
152AC_CHECK_FUNCS(getopt_long, [], [])
153
Josh Coalsondef8eb82001-05-23 22:08:27 +0000154AC_CANONICAL_HOST
Josh Coalson5a804ca2002-05-17 06:08:13 +0000155case "$host_cpu" in
Josh Coalson0e3576e2001-05-25 00:07:51 +0000156 i*86) cpu_ia32=true ; AC_DEFINE(FLAC__CPU_IA32) ;;
157 powerpc) cpu_ppc=true ; AC_DEFINE(FLAC__CPU_PPC) ;;
158 sparc) cpu_sparc=true ; AC_DEFINE(FLAC__CPU_SPARC) ;;
Josh Coalsoncf030c82001-05-23 20:59:48 +0000159esac
160AM_CONDITIONAL(FLaC__CPU_IA32, test x$cpu_ia32 = xtrue)
161AM_CONDITIONAL(FLaC__CPU_PPC, test x$cpu_ppc = xtrue)
162AM_CONDITIONAL(FLaC__CPU_SPARC, test x$cpu_sparc = xtrue)
Josh Coalsonda0adb22001-06-18 23:07:19 +0000163case "$host" in
Josh Coalsonc0852172003-04-27 08:32:41 +0000164 i386-*-openbsd3.[[0-3]]) OBJ_FORMAT=aoutb ;;
Josh Coalsonda0adb22001-06-18 23:07:19 +0000165 *) OBJ_FORMAT=elf ;;
166esac
167AC_SUBST(OBJ_FORMAT)
Josh Coalsoncf030c82001-05-23 20:59:48 +0000168
Josh Coalson0e3576e2001-05-25 00:07:51 +0000169if test x$cpu_ia32 = xtrue ; then
170AC_DEFINE(FLAC__ALIGN_MALLOC_DATA)
171fi
Josh Coalsoncf030c82001-05-23 20:59:48 +0000172
173AC_ARG_ENABLE(asm-optimizations, [ --disable-asm-optimizations Don't use any assembly optimization routines], asm_opt=no, asm_opt=yes)
174AM_CONDITIONAL(FLaC__NO_ASM, test x$asm_opt = xno)
Josh Coalson0e3576e2001-05-25 00:07:51 +0000175if test x$asm_opt = xno ; then
176AC_DEFINE(FLAC__NO_ASM)
177fi
Josh Coalsoncf030c82001-05-23 20:59:48 +0000178
Josh Coalson9f429ba2001-01-19 22:39:39 +0000179AC_ARG_ENABLE(debug,
Josh Coalsonda0adb22001-06-18 23:07:19 +0000180[ --enable-debug Turn on debugging],
181[case "${enableval}" in
182 yes) debug=true ;;
183 no) debug=false ;;
184 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
185esac],[debug=false])
Josh Coalson9f429ba2001-01-19 22:39:39 +0000186AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
187
Josh Coalsonbb14ae82001-12-04 06:46:35 +0000188AC_ARG_ENABLE(sse,
189[ --enable-sse Enable SSE support by asserting that the OS supports SSE instructions],
Josh Coalsond01b13a2001-07-18 00:27:06 +0000190[case "${enableval}" in
191 yes) sse_os=true ;;
192 no) sse_os=false ;;
Josh Coalsonbb14ae82001-12-04 06:46:35 +0000193 *) AC_MSG_ERROR(bad value ${enableval} for --enable-sse) ;;
Josh Coalsond01b13a2001-07-18 00:27:06 +0000194esac],[sse_os=false])
195AM_CONDITIONAL(FLaC__SSE_OS, test x$sse_os = xtrue)
196if test x$sse_os = xtrue ; then
197AC_DEFINE(FLAC__SSE_OS)
198fi
199
Josh Coalson28311cf2002-12-26 19:35:19 +0000200AC_ARG_ENABLE(3dnow,
201[ --disable-3dnow Disable 3DNOW! optimizations],
202[case "${enableval}" in
203 yes) use_3dnow=true ;;
204 no) use_3dnow=false ;;
205 *) AC_MSG_ERROR(bad value ${enableval} for --enable-3dnow) ;;
206esac],[use_3dnow=true])
207AM_CONDITIONAL(FLaC__USE_3DNOW, test x$use_3dnow = xtrue)
208if test x$use_3dnow = xtrue ; then
Josh Coalsonc69f8782001-11-13 23:08:22 +0000209AC_DEFINE(FLAC__USE_3DNOW)
210fi
211
Josh Coalson3aadd102004-07-27 01:13:16 +0000212AC_ARG_ENABLE(altivec,
213[ --disable-altivec Disable Altivec optimizations],
214[case "${enableval}" in
215 yes) use_altivec=true ;;
216 no) use_altivec=false ;;
217 *) AC_MSG_ERROR(bad value ${enableval} for --enable-altivec) ;;
218esac],[use_altivec=true])
219AM_CONDITIONAL(FLaC__USE_ALTIVEC, test x$use_altivec = xtrue)
220if test x$use_altivec = xtrue ; then
221AC_DEFINE(FLAC__USE_ALTIVEC)
222fi
223
Josh Coalson3d730722003-01-14 06:59:50 +0000224AC_ARG_ENABLE(local-xmms-plugin,
225[ --enable-local-xmms-plugin Install XMMS plugin to ~/.xmms/Plugins instead of system location],
226[case "${enableval}" in
227 yes) install_xmms_plugin_locally=true ;;
228 no) install_xmms_plugin_locally=false ;;
229 *) AC_MSG_ERROR(bad value ${enableval} for --enable-local-xmms-plugin) ;;
230esac],[install_xmms_plugin_locally=false])
231AM_CONDITIONAL(FLaC__INSTALL_XMMS_PLUGIN_LOCALLY, test x$install_xmms_plugin_locally = xtrue)
232
Josh Coalson9b145182002-08-30 05:39:36 +0000233AC_ARG_ENABLE(exhaustive-tests,
Josh Coalsonb7767932002-09-17 05:36:39 +0000234[ --enable-exhaustive-tests Enable exhaustive testing],
Josh Coalson9b145182002-08-30 05:39:36 +0000235[case "${enableval}" in
236 yes) exhaustive_tests=true ;;
237 no) exhaustive_tests=false ;;
238 *) AC_MSG_ERROR(bad value ${enableval} for --enable-exhaustive-tests) ;;
239esac],[exhaustive_tests=false])
240AM_CONDITIONAL(FLaC__EXHAUSTIVE_TESTS, test x$exhaustive_tests = xtrue)
Josh Coalson962bb3b2002-12-28 07:08:31 +0000241if test x$exhaustive_tests = xtrue ; then
242AC_DEFINE(FLAC__EXHAUSTIVE_TESTS)
243fi
Josh Coalsond1923622002-12-05 06:36:12 +0000244
245AC_ARG_ENABLE(valgrind-testing,
246[ --enable-valgrind-testing Run all tests inside Valgrind],
247[case "${enableval}" in
248 yes) valgrind_testing=true ;;
249 no) valgrind_testing=false ;;
250 *) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind-testing) ;;
251esac],[valgrind_testing=false])
252AM_CONDITIONAL(FLaC__VALGRIND_TESTING, test x$valgrind_testing = xtrue)
Josh Coalson962bb3b2002-12-28 07:08:31 +0000253if test x$valgrind_testing = xtrue ; then
254AC_DEFINE(FLAC__VALGRIND_TESTING)
255fi
Josh Coalson9b145182002-08-30 05:39:36 +0000256
Josh Coalsone2fece22002-09-09 21:54:28 +0000257dnl check for ogg library
Josh Coalson3f6c9982002-09-05 05:40:58 +0000258XIPH_PATH_OGG(have_ogg=yes, AC_MSG_WARN([*** Ogg development enviroment not installed - Ogg support will not be built]))
Josh Coalsonc8a7d352001-11-11 03:59:46 +0000259AM_CONDITIONAL(FLaC__HAS_OGG, [test x$have_ogg = xyes])
260if test x$have_ogg = xyes ; then
261AC_DEFINE(FLAC__HAS_OGG)
262fi
Josh Coalsonf7fc5c82001-10-31 18:31:36 +0000263
Josh Coalson9f429ba2001-01-19 22:39:39 +0000264AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - xmms support will not be built]))
Josh Coalsoncf030c82001-05-23 20:59:48 +0000265AM_CONDITIONAL(FLaC__HAS_XMMS, test x$XMMS_INPUT_PLUGIN_DIR != x)
266
Josh Coalson130cbb52002-07-16 16:12:27 +0000267dnl check for i18n(internationalization); these are from libiconv/gettext
Josh Coalson412fa3b2002-07-11 06:15:30 +0000268AM_ICONV
269AM_LANGINFO_CODESET
270
Josh Coalsone2fece22002-09-09 21:54:28 +0000271dnl check for id3lib library
272dnl LOCAL__PATH_ID3LIB is defined by us, and will be until such time as id3lib supplies one
273LOCAL__PATH_ID3LIB(have_id3lib=yes, AC_MSG_WARN([*** id3lib not found - id3v2 support will not be built]))
Josh Coalson412fa3b2002-07-11 06:15:30 +0000274AM_CONDITIONAL(FLaC__HAS_ID3LIB, [test x$have_id3lib = xyes])
275if test x$have_id3lib = xyes ; then
276AC_DEFINE(FLAC__HAS_ID3LIB)
Josh Coalson412fa3b2002-07-11 06:15:30 +0000277
Josh Coalsone2fece22002-09-09 21:54:28 +0000278dnl expected id3lib version for cross compiling
Josh Coalson412fa3b2002-07-11 06:15:30 +0000279ID3LIB_MAJOR=3
280ID3LIB_MINOR=8
281ID3LIB_PATCH=0
282
Josh Coalsone2fece22002-09-09 21:54:28 +0000283CFLAGS_save_blah_blah_blah=$CFLAGS
284CFLAGS="$ID3LIB_CFLAGS $CFLAGS"
285LIBS_save_blah_blah_blah=$LIBS
286LIBS="$ID3LIB_LIBS $LIBS"
Josh Coalson412fa3b2002-07-11 06:15:30 +0000287AC_MSG_CHECKING(for id3lib version)
288 AC_TRY_RUN([
289#include <id3.h>
290#include <stdio.h>
Josh Coalson3d8a96e2002-08-27 05:51:19 +0000291int
Josh Coalson412fa3b2002-07-11 06:15:30 +0000292main ()
293{
Josh Coalson3d8a96e2002-08-27 05:51:19 +0000294 FILE *output;
295 output=fopen("conftest.id3","w");
296 fprintf(output,"ID3LIB_MAJOR=%d\nID3LIB_MINOR=%d\nID3LIB_PATCH=%d\n",ID3LIB_MAJOR_VERSION,ID3LIB_MINOR_VERSION,ID3LIB_PATCH_VERSION);
297 fclose(output);
298 exit(0);
Josh Coalson412fa3b2002-07-11 06:15:30 +0000299}
Josh Coalson1ce20b62002-10-23 22:18:37 +0000300], . ./conftest.id3; echo "${ID3LIB_MAJOR}.${ID3LIB_MINOR}.${ID3LIB_PATCH}", AC_MSG_WARN(could not determine id3lib version),[echo $ac_n "cross compiling; assuming ${ID3LIB_MAJOR}.${ID3LIB_MINOR}.${ID3LIB_PATCH} $ac_c"])
Josh Coalson412fa3b2002-07-11 06:15:30 +0000301AC_DEFINE_UNQUOTED(ID3LIB_MAJOR, $ID3LIB_MAJOR)
302AC_DEFINE_UNQUOTED(ID3LIB_MINOR, $ID3LIB_MINOR)
303AC_DEFINE_UNQUOTED(ID3LIB_PATCH, $ID3LIB_PATCH)
Josh Coalsone2fece22002-09-09 21:54:28 +0000304CFLAGS=$CFLAGS_save_blah_blah_blah
Josh Coalson412fa3b2002-07-11 06:15:30 +0000305LIBS=$LIBS_save_blah_blah_blah
Josh Coalsone2fece22002-09-09 21:54:28 +0000306fi
Josh Coalson412fa3b2002-07-11 06:15:30 +0000307
Josh Coalson20809742003-01-10 04:39:20 +0000308AC_CHECK_PROGS(DOXYGEN, doxygen)
309AM_CONDITIONAL(FLaC__HAS_DOXYGEN, test -n "$DOXYGEN")
310if test -n "$DOXYGEN" ; then
311AC_DEFINE(FLAC__HAS_DOXYGEN)
312fi
313
Josh Coalson90e57162004-07-30 00:46:39 +0000314AC_CHECK_PROGS(DOCBOOK_TO_MAN, docbook-to-man docbook2man)
315AM_CONDITIONAL(FLaC__HAS_DOCBOOK_TO_MAN, test -n "$DOCBOOK_TO_MAN")
316if test -n "$DOCBOOK_TO_MAN" ; then
317AC_DEFINE(FLAC__HAS_DOCBOOK_TO_MAN)
318fi
319
Josh Coalsoncf030c82001-05-23 20:59:48 +0000320AC_CHECK_PROGS(NASM, nasm)
321AM_CONDITIONAL(FLaC__HAS_NASM, test -n "$NASM")
Josh Coalson0e3576e2001-05-25 00:07:51 +0000322if test -n "$NASM" ; then
323AC_DEFINE(FLAC__HAS_NASM)
324fi
Josh Coalson9f429ba2001-01-19 22:39:39 +0000325
Josh Coalson57ba6f42002-06-07 05:27:37 +0000326OUR_CFLAGS_HEAD='-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include'
Josh Coalson9f429ba2001-01-19 22:39:39 +0000327if test x$debug = xtrue; then
Josh Coalson20809742003-01-10 04:39:20 +0000328 OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -g -O0 -DDEBUG"
Josh Coalson9f429ba2001-01-19 22:39:39 +0000329else
Josh Coalson1e704552003-05-19 23:59:49 +0000330 OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O2 -DNDEBUG"
Josh Coalsonda0adb22001-06-18 23:07:19 +0000331 if test x$GCC = xyes; then
Josh Coalson1e704552003-05-19 23:59:49 +0000332 OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O3 -fomit-frame-pointer -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__"
Josh Coalsonda0adb22001-06-18 23:07:19 +0000333 fi
Josh Coalson9f429ba2001-01-19 22:39:39 +0000334fi
Josh Coalson20809742003-01-10 04:39:20 +0000335CFLAGS="$OUR_CFLAGS_HEAD $CFLAGS"
336CXXFLAGS="$OUR_CFLAGS_HEAD $CXXFLAGS"
Josh Coalson9f429ba2001-01-19 22:39:39 +0000337
Matt Zimmermane5259172002-10-10 16:51:06 +0000338AM_CONFIG_HEADER(config.h)
Josh Coalsonf0a8c4f2003-01-15 03:17:51 +0000339AH_TEMPLATE(FLAC__ALIGN_MALLOC_DATA, [define to align allocated memory on 32-byte boundaries])
Matt Zimmermane5259172002-10-10 16:51:06 +0000340AH_TEMPLATE(FLAC__CPU_IA32, [define if building for ia32/i386])
341AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC])
342AH_TEMPLATE(FLAC__CPU_SPARC, [define if building for SPARC])
Josh Coalson32386732003-01-02 07:29:58 +0000343AH_TEMPLATE(FLAC__EXHAUSTIVE_TESTS, [define to run even more tests])
344AH_TEMPLATE(FLAC__VALGRIND_TESTING, [define to enable use of Valgrind in testers])
Josh Coalson20809742003-01-10 04:39:20 +0000345AH_TEMPLATE(FLAC__HAS_DOXYGEN, [define if you have Doxygen])
Josh Coalson90e57162004-07-30 00:46:39 +0000346AH_TEMPLATE(FLAC__HAS_DOCBOOK_TO_MAN, [define if you have docbook-to-man or docbook2man])
Matt Zimmermane5259172002-10-10 16:51:06 +0000347AH_TEMPLATE(FLAC__HAS_ID3LIB, [define if you have the id3lib library])
348AH_TEMPLATE(FLAC__HAS_NASM, [define if you have the NASM assembler])
349AH_TEMPLATE(FLAC__HAS_OGG, [define if you have the ogg library])
350AH_TEMPLATE(FLAC__NO_ASM, [define to disable use of assembly code])
Josh Coalson20809742003-01-10 04:39:20 +0000351AH_TEMPLATE(FLAC__SSE_OS, [define if your operating system supports SSE instructions])
Matt Zimmermane5259172002-10-10 16:51:06 +0000352AH_TEMPLATE(FLAC__USE_3DNOW, [define to enable use of 3Dnow! instructions])
Josh Coalson3aadd102004-07-27 01:13:16 +0000353AH_TEMPLATE(FLAC__USE_ALTIVEC, [define to enable use of Altivec instructions])
Matt Zimmermane5259172002-10-10 16:51:06 +0000354AH_TEMPLATE(ID3LIB_MAJOR, [define to major version number of id3lib])
355AH_TEMPLATE(ID3LIB_MINOR, [define to minor version number of id3lib])
356AH_TEMPLATE(ID3LIB_PATCH, [define to patch level of id3lib])
357
uid38180b4bc14b2002-09-09 20:53:08 +0000358AC_OUTPUT( \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000359 Makefile \
360 src/Makefile \
361 src/libFLAC/Makefile \
362 src/libFLAC/ia32/Makefile \
Josh Coalson3aadd102004-07-27 01:13:16 +0000363 src/libFLAC/ppc/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000364 src/libFLAC/include/Makefile \
365 src/libFLAC/include/private/Makefile \
366 src/libFLAC/include/protected/Makefile \
367 src/libFLAC++/Makefile \
Josh Coalsonc49380d2002-08-07 17:38:08 +0000368 src/libOggFLAC/Makefile \
369 src/libOggFLAC/include/Makefile \
Josh Coalsonce3dd362003-12-17 05:26:34 +0000370 src/libOggFLAC/include/private/Makefile \
Josh Coalsonc49380d2002-08-07 17:38:08 +0000371 src/libOggFLAC/include/protected/Makefile \
372 src/libOggFLAC++/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000373 src/flac/Makefile \
374 src/metaflac/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000375 src/monkeys_audio_utilities/Makefile \
Josh Coalson1f99eac2002-08-23 06:45:23 +0000376 src/monkeys_audio_utilities/flac_mac/Makefile \
377 src/monkeys_audio_utilities/flac_ren/Makefile \
Josh Coalson1f99eac2002-08-23 06:45:23 +0000378 src/plugin_common/Makefile \
379 src/plugin_winamp2/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000380 src/plugin_winamp2/include/Makefile \
381 src/plugin_winamp2/include/winamp2/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000382 src/plugin_xmms/Makefile \
383 src/share/Makefile \
Josh Coalson3c043fd2002-10-25 04:57:05 +0000384 src/share/getopt/Makefile \
Josh Coalsonb8f8a072002-11-07 05:07:30 +0000385 src/share/grabbag/Makefile \
Josh Coalson9c650a52003-12-17 04:51:06 +0000386 src/share/replaygain_analysis/Makefile \
387 src/share/replaygain_synthesis/Makefile \
Josh Coalsone2999b72003-12-17 04:54:20 +0000388 src/share/replaygain_synthesis/include/Makefile \
389 src/share/replaygain_synthesis/include/private/Makefile \
Josh Coalson3c043fd2002-10-25 04:57:05 +0000390 src/share/utf8/Makefile \
Josh Coalson1dca1c22002-12-03 06:30:14 +0000391 src/test_grabbag/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000392 src/test_grabbag/cuesheet/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000393 src/test_libFLAC/Makefile \
394 src/test_libFLAC++/Makefile \
Josh Coalson1f99eac2002-08-23 06:45:23 +0000395 src/test_libOggFLAC/Makefile \
396 src/test_libOggFLAC++/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000397 src/test_streams/Makefile \
Josh Coalsonda0adb22001-06-18 23:07:19 +0000398 include/Makefile \
399 include/FLAC/Makefile \
Josh Coalson5a804ca2002-05-17 06:08:13 +0000400 include/FLAC++/Makefile \
Josh Coalson1f99eac2002-08-23 06:45:23 +0000401 include/OggFLAC/Makefile \
402 include/OggFLAC++/Makefile \
Josh Coalson5a804ca2002-05-17 06:08:13 +0000403 include/share/Makefile \
Josh Coalsonb8f8a072002-11-07 05:07:30 +0000404 include/share/grabbag/Makefile \
Josh Coalson4c8f73a2001-07-22 07:27:45 +0000405 doc/Makefile \
Josh Coalson130cbb52002-07-16 16:12:27 +0000406 doc/html/Makefile \
407 doc/html/images/Makefile \
408 doc/html/ru/Makefile \
Josh Coalson4c8f73a2001-07-22 07:27:45 +0000409 man/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000410 test/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000411 test/cuesheets/Makefile \
Josh Coalson1f99eac2002-08-23 06:45:23 +0000412 build/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000413 obj/Makefile \
414 obj/debug/Makefile \
Josh Coalsonb74fc982002-11-20 06:40:08 +0000415 obj/debug/bin/Makefile \
416 obj/debug/lib/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000417 obj/release/Makefile \
Josh Coalsonb74fc982002-11-20 06:40:08 +0000418 obj/release/bin/Makefile \
419 obj/release/lib/Makefile \
Josh Coalson1f99eac2002-08-23 06:45:23 +0000420 flac.pbproj/Makefile \
Josh Coalsonda0adb22001-06-18 23:07:19 +0000421)