blob: effd1f4d54d5e2c487ca6767a740d5d06df7bd8e [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# FLAC - Free Lossless Audio Codec
Josh Coalsone74bd952007-02-02 06:58:19 +00002# Copyright (C) 2001,2002,2003,2004,2005,2006,2007 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 Coalson73296972007-07-07 06:10:35 +000022AM_INIT_AUTOMAKE(flac, 1.2.0)
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 Coalson9f429ba2001-01-19 22:39:39 +000028# We need two libtools, one that builds both shared and static, and
29# one that builds only static. This is because the resulting libtool
30# does not allow us to choose which to build at runtime.
31AM_PROG_LIBTOOL
32sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static
33chmod +x libtool-disable-static
34
Josh Coalson33f4ce52005-09-02 05:07:35 +000035AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
36
Josh Coalson985dd8d2004-07-29 05:25:36 +000037AM_PROG_AS
Josh Coalson57ba6f42002-06-07 05:27:37 +000038AC_PROG_CXX
Josh Coalson9f429ba2001-01-19 22:39:39 +000039AC_PROG_MAKE_SET
40
Josh Coalson6977bda2006-05-22 00:07:21 +000041AC_SYS_LARGEFILE
42AC_FUNC_FSEEKO
43
Josh Coalson833bdac2007-06-16 00:37:42 +000044AC_CHECK_SIZEOF(void*,0)
45
Josh Coalsonb1ec7962006-05-24 04:41:36 +000046#@@@ new name is AC_CONFIG_HEADERS
47AM_CONFIG_HEADER(config.h)
48
Josh Coalsond82251b2007-01-28 17:36:10 +000049AC_C_BIGENDIAN
50
Josh Coalson27ae3482005-01-27 03:59:55 +000051AC_CHECK_TYPES(socklen_t, [], [])
52
Josh Coalson5a804ca2002-05-17 06:08:13 +000053dnl check for getopt in standard library
54dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )
55AC_CHECK_FUNCS(getopt_long, [], [])
56
Josh Coalson5a804ca2002-05-17 06:08:13 +000057case "$host_cpu" in
Josh Coalsonb1ec7962006-05-24 04:41:36 +000058 i*86)
59 cpu_ia32=true
60 AC_DEFINE(FLAC__CPU_IA32)
61 AH_TEMPLATE(FLAC__CPU_IA32, [define if building for ia32/i386])
62 ;;
63 powerpc)
64 cpu_ppc=true
65 AC_DEFINE(FLAC__CPU_PPC)
66 AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC])
67 ;;
68 sparc)
69 cpu_sparc=true
70 AC_DEFINE(FLAC__CPU_SPARC)
71 AH_TEMPLATE(FLAC__CPU_SPARC, [define if building for SPARC])
72 ;;
Josh Coalsoncf030c82001-05-23 20:59:48 +000073esac
Josh Coalsonb1ec7962006-05-24 04:41:36 +000074AM_CONDITIONAL(FLaC__CPU_IA32, test "x$cpu_ia32" = xtrue)
75AM_CONDITIONAL(FLaC__CPU_PPC, test "x$cpu_ppc" = xtrue)
76AM_CONDITIONAL(FLaC__CPU_SPARC, test "x$cpu_sparc" = xtrue)
Josh Coalson330fc082007-08-01 03:03:51 +000077
Josh Coalsonda0adb22001-06-18 23:07:19 +000078case "$host" in
Josh Coalsonc0852172003-04-27 08:32:41 +000079 i386-*-openbsd3.[[0-3]]) OBJ_FORMAT=aoutb ;;
Josh Coalson91018c82005-12-02 05:31:29 +000080 *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;;
Josh Coalson955aed92006-11-11 22:51:58 +000081 *-*-darwin*) OBJ_FORMAT=macho ;;
Josh Coalsonda0adb22001-06-18 23:07:19 +000082 *) OBJ_FORMAT=elf ;;
83esac
Josh Coalson27ae3482005-01-27 03:59:55 +000084AC_SUBST(OBJ_FORMAT)
Josh Coalson330fc082007-08-01 03:03:51 +000085
86# only needed because of ntohl() usage, can get rid of after that's gone:
87case "$host" in
88 *-*-cygwin|*mingw*) MINGW_WINSOCK_LIBS=-lwsock32 ;;
89 *) MINGW_WINSOCK_LIBS= ;;
90esac
91AC_SUBST(MINGW_WINSOCK_LIBS)
92
Josh Coalson27ae3482005-01-27 03:59:55 +000093case "$host" in
Josh Coalsonb1ec7962006-05-24 04:41:36 +000094 *-pc-linux-gnu)
95 sys_linux=true
96 AC_DEFINE(FLAC__SYS_LINUX)
97 AH_TEMPLATE(FLAC__SYS_LINUX, [define if building for Linux])
98 ;;
99 *-*-darwin*)
100 sys_darwin=true
101 AC_DEFINE(FLAC__SYS_DARWIN)
102 AH_TEMPLATE(FLAC__SYS_DARWIN, [define if building for Darwin / MacOS X])
103 ;;
Josh Coalson27ae3482005-01-27 03:59:55 +0000104esac
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000105AM_CONDITIONAL(FLaC__SYS_DARWIN, test "x$sys_darwin" = xtrue)
106AM_CONDITIONAL(FLaC__SYS_LINUX, test "x$sys_linux" = xtrue)
Josh Coalsoncf030c82001-05-23 20:59:48 +0000107
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000108if test "x$cpu_ia32" = xtrue ; then
Josh Coalson0e3576e2001-05-25 00:07:51 +0000109AC_DEFINE(FLAC__ALIGN_MALLOC_DATA)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000110AH_TEMPLATE(FLAC__ALIGN_MALLOC_DATA, [define to align allocated memory on 32-byte boundaries])
Josh Coalson0e3576e2001-05-25 00:07:51 +0000111fi
Josh Coalsoncf030c82001-05-23 20:59:48 +0000112
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000113AC_ARG_ENABLE(asm-optimizations, AC_HELP_STRING([--disable-asm-optimizations], [Don't use any assembly optimization routines]), asm_opt=no, asm_opt=yes)
114AM_CONDITIONAL(FLaC__NO_ASM, test "x$asm_opt" = xno)
115if test "x$asm_opt" = xno ; then
Josh Coalson0e3576e2001-05-25 00:07:51 +0000116AC_DEFINE(FLAC__NO_ASM)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000117AH_TEMPLATE(FLAC__NO_ASM, [define to disable use of assembly code])
Josh Coalson0e3576e2001-05-25 00:07:51 +0000118fi
Josh Coalsoncf030c82001-05-23 20:59:48 +0000119
Josh Coalson9f429ba2001-01-19 22:39:39 +0000120AC_ARG_ENABLE(debug,
Josh Coalsonde9091e2006-05-25 02:48:22 +0000121AC_HELP_STRING([--enable-debug], [Turn on debugging]),
Josh Coalsonda0adb22001-06-18 23:07:19 +0000122[case "${enableval}" in
123 yes) debug=true ;;
124 no) debug=false ;;
125 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
126esac],[debug=false])
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000127AM_CONDITIONAL(DEBUG, test "x$debug" = xtrue)
Josh Coalson9f429ba2001-01-19 22:39:39 +0000128
Josh Coalsonbb14ae82001-12-04 06:46:35 +0000129AC_ARG_ENABLE(sse,
Josh Coalsonde9091e2006-05-25 02:48:22 +0000130AC_HELP_STRING([--enable-sse], [Enable SSE support by asserting that the OS supports SSE instructions]),
Josh Coalsond01b13a2001-07-18 00:27:06 +0000131[case "${enableval}" in
132 yes) sse_os=true ;;
133 no) sse_os=false ;;
Josh Coalsonbb14ae82001-12-04 06:46:35 +0000134 *) AC_MSG_ERROR(bad value ${enableval} for --enable-sse) ;;
Josh Coalsond01b13a2001-07-18 00:27:06 +0000135esac],[sse_os=false])
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000136AM_CONDITIONAL(FLaC__SSE_OS, test "x$sse_os" = xtrue)
137if test "x$sse_os" = xtrue ; then
Josh Coalsond01b13a2001-07-18 00:27:06 +0000138AC_DEFINE(FLAC__SSE_OS)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000139AH_TEMPLATE(FLAC__SSE_OS, [define if your operating system supports SSE instructions])
Josh Coalsond01b13a2001-07-18 00:27:06 +0000140fi
141
Josh Coalson28311cf2002-12-26 19:35:19 +0000142AC_ARG_ENABLE(3dnow,
Josh Coalsonde9091e2006-05-25 02:48:22 +0000143AC_HELP_STRING([--disable-3dnow], [Disable 3DNOW! optimizations]),
Josh Coalson28311cf2002-12-26 19:35:19 +0000144[case "${enableval}" in
145 yes) use_3dnow=true ;;
146 no) use_3dnow=false ;;
147 *) AC_MSG_ERROR(bad value ${enableval} for --enable-3dnow) ;;
148esac],[use_3dnow=true])
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000149AM_CONDITIONAL(FLaC__USE_3DNOW, test "x$use_3dnow" = xtrue)
150if test "x$use_3dnow" = xtrue ; then
Josh Coalsonc69f8782001-11-13 23:08:22 +0000151AC_DEFINE(FLAC__USE_3DNOW)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000152AH_TEMPLATE(FLAC__USE_3DNOW, [define to enable use of 3Dnow! instructions])
Josh Coalsonc69f8782001-11-13 23:08:22 +0000153fi
154
Josh Coalson3aadd102004-07-27 01:13:16 +0000155AC_ARG_ENABLE(altivec,
Josh Coalsonde9091e2006-05-25 02:48:22 +0000156AC_HELP_STRING([--disable-altivec], [Disable Altivec optimizations]),
Josh Coalson3aadd102004-07-27 01:13:16 +0000157[case "${enableval}" in
158 yes) use_altivec=true ;;
159 no) use_altivec=false ;;
160 *) AC_MSG_ERROR(bad value ${enableval} for --enable-altivec) ;;
161esac],[use_altivec=true])
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000162AM_CONDITIONAL(FLaC__USE_ALTIVEC, test "x$use_altivec" = xtrue)
163if test "x$use_altivec" = xtrue ; then
Josh Coalson3aadd102004-07-27 01:13:16 +0000164AC_DEFINE(FLAC__USE_ALTIVEC)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000165AH_TEMPLATE(FLAC__USE_ALTIVEC, [define to enable use of Altivec instructions])
Josh Coalson3aadd102004-07-27 01:13:16 +0000166fi
167
Josh Coalsonde9091e2006-05-25 02:48:22 +0000168AC_ARG_ENABLE(thorough-tests,
169AC_HELP_STRING([--disable-thorough-tests], [Disable thorough (long) testing, do only basic tests]),
170[case "${enableval}" in
171 yes) thorough_tests=true ;;
172 no) thorough_tests=false ;;
173 *) AC_MSG_ERROR(bad value ${enableval} for --enable-thorough-tests) ;;
174esac],[thorough_tests=true])
Josh Coalson9b145182002-08-30 05:39:36 +0000175AC_ARG_ENABLE(exhaustive-tests,
Josh Coalsonde9091e2006-05-25 02:48:22 +0000176AC_HELP_STRING([--enable-exhaustive-tests], [Enable exhaustive testing (VERY long)]),
Josh Coalson9b145182002-08-30 05:39:36 +0000177[case "${enableval}" in
178 yes) exhaustive_tests=true ;;
179 no) exhaustive_tests=false ;;
180 *) AC_MSG_ERROR(bad value ${enableval} for --enable-exhaustive-tests) ;;
181esac],[exhaustive_tests=false])
Josh Coalsonde9091e2006-05-25 02:48:22 +0000182if test "x$thorough_tests" = xfalse ; then
183FLAC__TEST_LEVEL=0
184elif test "x$exhaustive_tests" = xfalse ; then
185FLAC__TEST_LEVEL=1
186else
187FLAC__TEST_LEVEL=2
Josh Coalson962bb3b2002-12-28 07:08:31 +0000188fi
Josh Coalsonde9091e2006-05-25 02:48:22 +0000189AC_SUBST(FLAC__TEST_LEVEL)
Josh Coalsond1923622002-12-05 06:36:12 +0000190
191AC_ARG_ENABLE(valgrind-testing,
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000192AC_HELP_STRING([--enable-valgrind-testing], [Run all tests inside Valgrind]),
Josh Coalsond1923622002-12-05 06:36:12 +0000193[case "${enableval}" in
Josh Coalsonde9091e2006-05-25 02:48:22 +0000194 yes) FLAC__TEST_WITH_VALGRIND=yes ;;
195 no) FLAC__TEST_WITH_VALGRIND=no ;;
Josh Coalsond1923622002-12-05 06:36:12 +0000196 *) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind-testing) ;;
Josh Coalsonde9091e2006-05-25 02:48:22 +0000197esac],[FLAC__TEST_WITH_VALGRIND=no])
198AC_SUBST(FLAC__TEST_WITH_VALGRIND)
Josh Coalson9b145182002-08-30 05:39:36 +0000199
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000200AC_ARG_ENABLE(doxygen-docs,
201AC_HELP_STRING([--disable-doxygen-docs], [Disable API documentation building via Doxygen]),
202[case "${enableval}" in
203 yes) enable_doxygen_docs=true ;;
204 no) enable_doxygen_docs=false ;;
205 *) AC_MSG_ERROR(bad value ${enableval} for --enable-doxygen-docs) ;;
206esac],[enable_doxygen_docs=true])
Josh Coalsonc933c932006-05-25 04:21:43 +0000207if test "x$enable_doxygen_docs" != xfalse ; then
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000208 AC_CHECK_PROGS(DOXYGEN, doxygen)
209fi
210AM_CONDITIONAL(FLaC__HAS_DOXYGEN, test -n "$DOXYGEN")
211
Josh Coalsonc933c932006-05-25 04:21:43 +0000212AC_ARG_ENABLE(local-xmms-plugin,
213AC_HELP_STRING([--enable-local-xmms-plugin], [Install XMMS plugin to ~/.xmms/Plugins instead of system location]),
214[case "${enableval}" in
215 yes) install_xmms_plugin_locally=true ;;
216 no) install_xmms_plugin_locally=false ;;
217 *) AC_MSG_ERROR(bad value ${enableval} for --enable-local-xmms-plugin) ;;
218esac],[install_xmms_plugin_locally=false])
219AM_CONDITIONAL(FLaC__INSTALL_XMMS_PLUGIN_LOCALLY, test "x$install_xmms_plugin_locally" = xtrue)
220
221AC_ARG_ENABLE(xmms-plugin,
222AC_HELP_STRING([--disable-xmms-plugin], [Do not build XMMS plugin]),
223[case "${enableval}" in
224 yes) enable_xmms_plugin=true ;;
225 no) enable_xmms_plugin=false ;;
226 *) AC_MSG_ERROR(bad value ${enableval} for --enable-xmms-plugin) ;;
227esac],[enable_xmms_plugin=true])
228if test "x$enable_xmms_plugin" != xfalse ; then
229 AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - XMMS support will not be built]))
230fi
231AM_CONDITIONAL(FLaC__HAS_XMMS, test -n "$XMMS_INPUT_PLUGIN_DIR")
232
Josh Coalson367c1582007-08-29 05:45:19 +0000233dnl build FLAC++ or not
234AC_ARG_ENABLE([cpplibs],
235AC_HELP_STRING([--disable-cpplibs], [Do not build libFLAC++]),
236[case "${enableval}" in
237 yes) disable_cpplibs=false ;;
238 no) disable_cpplibs=true ;;
239 *) AC_MSG_ERROR(bad value ${enableval} for --enable-cpplibs) ;;
240esac], [disable_cpplibs=false])
241AM_CONDITIONAL(FLaC__WITH_CPPLIBS, [test "x$disable_cpplibs" != xtrue])
242
Josh Coalsone2fece22002-09-09 21:54:28 +0000243dnl check for ogg library
Josh Coalsonc0f51e72007-02-09 16:18:38 +0000244AC_ARG_ENABLE([ogg],
245 AC_HELP_STRING([--disable-ogg], [Disable ogg support (default: test for libogg)]),
246 [ want_ogg=$enableval ], [ want_ogg=yes ] )
247
248if test "x$want_ogg" != "xno"; then
249 XIPH_PATH_OGG(have_ogg=yes, AC_MSG_WARN([*** Ogg development enviroment not installed - Ogg support will not be built]))
250fi
251
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000252AM_CONDITIONAL(FLaC__HAS_OGG, [test "x$have_ogg" = xyes])
253if test "x$have_ogg" = xyes ; then
Josh Coalsonc8a7d352001-11-11 03:59:46 +0000254AC_DEFINE(FLAC__HAS_OGG)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000255AH_TEMPLATE(FLAC__HAS_OGG, [define if you have the ogg library])
Josh Coalsonc8a7d352001-11-11 03:59:46 +0000256fi
Josh Coalsonf7fc5c82001-10-31 18:31:36 +0000257
Josh Coalson130cbb52002-07-16 16:12:27 +0000258dnl check for i18n(internationalization); these are from libiconv/gettext
Josh Coalson412fa3b2002-07-11 06:15:30 +0000259AM_ICONV
260AM_LANGINFO_CODESET
261
Josh Coalson90e57162004-07-30 00:46:39 +0000262AC_CHECK_PROGS(DOCBOOK_TO_MAN, docbook-to-man docbook2man)
263AM_CONDITIONAL(FLaC__HAS_DOCBOOK_TO_MAN, test -n "$DOCBOOK_TO_MAN")
264if test -n "$DOCBOOK_TO_MAN" ; then
265AC_DEFINE(FLAC__HAS_DOCBOOK_TO_MAN)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000266AH_TEMPLATE(FLAC__HAS_DOCBOOK_TO_MAN, [define if you have docbook-to-man or docbook2man])
Josh Coalson90e57162004-07-30 00:46:39 +0000267fi
268
Josh Coalsonb9900222004-12-30 01:13:03 +0000269# only matters for x86
Josh Coalsoncf030c82001-05-23 20:59:48 +0000270AC_CHECK_PROGS(NASM, nasm)
271AM_CONDITIONAL(FLaC__HAS_NASM, test -n "$NASM")
Josh Coalson0e3576e2001-05-25 00:07:51 +0000272if test -n "$NASM" ; then
273AC_DEFINE(FLAC__HAS_NASM)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000274AH_TEMPLATE(FLAC__HAS_NASM, [define if you are compiling for x86 and have the NASM assembler])
Josh Coalson0e3576e2001-05-25 00:07:51 +0000275fi
Josh Coalson9f429ba2001-01-19 22:39:39 +0000276
Josh Coalsonb9900222004-12-30 01:13:03 +0000277# only matters for PowerPC
Josh Coalsona02b73f2005-03-02 05:21:06 +0000278AC_CHECK_PROGS(AS, as, as)
279AC_CHECK_PROGS(GAS, gas, gas)
280
Josh Coalsonfef93482006-11-17 06:51:53 +0000281# try -v (apple as) and --version (gas) at the same time
282test "$AS" = "as" && as --version -v < /dev/null 2>&1 | grep Apple >/dev/null || AS=gas
Josh Coalsona02b73f2005-03-02 05:21:06 +0000283
284AM_CONDITIONAL(FLaC__HAS_AS, test "$AS" = "as")
285AM_CONDITIONAL(FLaC__HAS_GAS, test "$AS" = "gas")
286if test "$AS" = "as" ; then
Josh Coalsonb9900222004-12-30 01:13:03 +0000287AC_DEFINE(FLAC__HAS_AS)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000288AH_TEMPLATE(FLAC__HAS_AS, [define if you are compiling for PowerPC and have the 'as' assembler])
Josh Coalsonb9900222004-12-30 01:13:03 +0000289fi
Josh Coalsona02b73f2005-03-02 05:21:06 +0000290if test "$AS" = "gas" ; then
Josh Coalsonb9900222004-12-30 01:13:03 +0000291# funniest. macro. ever.
292AC_DEFINE(FLAC__HAS_GAS)
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000293AH_TEMPLATE(FLAC__HAS_GAS, [define if you are compiling for PowerPC and have the 'gas' assembler])
Josh Coalsonb9900222004-12-30 01:13:03 +0000294fi
295
Josh Coalson8403c2a2007-07-31 00:25:52 +0000296CPPFLAGS='-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include'" $CPPFLAGS"
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000297if test "x$debug" = xtrue; then
Josh Coalson8403c2a2007-07-31 00:25:52 +0000298 CPPFLAGS="-DDEBUG $CPPFLAGS"
299 CFLAGS="-g $CFLAGS"
Josh Coalson9f429ba2001-01-19 22:39:39 +0000300else
Josh Coalson8403c2a2007-07-31 00:25:52 +0000301 CPPFLAGS="-DNDEBUG $CPPFLAGS"
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000302 if test "x$GCC" = xyes; then
Josh Coalson8403c2a2007-07-31 00:25:52 +0000303 CPPFLAGS="-DFLaC__INLINE=__inline__ $CPPFLAGS"
304 CFLAGS="-O3 -funroll-loops -finline-functions -Wall -W -Winline $CFLAGS"
Josh Coalsonda0adb22001-06-18 23:07:19 +0000305 fi
Josh Coalson9f429ba2001-01-19 22:39:39 +0000306fi
307
Josh Coalson92f7fa92006-10-09 05:34:21 +0000308#@@@
Josh Coalson3c8d2972005-01-30 18:44:04 +0000309AM_CONDITIONAL(FLaC__HAS_AS__TEMPORARILY_DISABLED, test "yes" = "no")
310AM_CONDITIONAL(FLaC__HAS_GAS__TEMPORARILY_DISABLED, test "yes" = "no")
311
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000312AC_CONFIG_FILES([ \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000313 Makefile \
314 src/Makefile \
315 src/libFLAC/Makefile \
Josh Coalson07e89cc2007-02-07 01:24:15 +0000316 src/libFLAC/flac.pc \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000317 src/libFLAC/ia32/Makefile \
Josh Coalson3aadd102004-07-27 01:13:16 +0000318 src/libFLAC/ppc/Makefile \
Josh Coalsonb9900222004-12-30 01:13:03 +0000319 src/libFLAC/ppc/as/Makefile \
320 src/libFLAC/ppc/gas/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000321 src/libFLAC/include/Makefile \
322 src/libFLAC/include/private/Makefile \
323 src/libFLAC/include/protected/Makefile \
324 src/libFLAC++/Makefile \
Josh Coalson07e89cc2007-02-07 01:24:15 +0000325 src/libFLAC++/flac++.pc \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000326 src/flac/Makefile \
327 src/metaflac/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000328 src/monkeys_audio_utilities/Makefile \
Josh Coalson1f99eac2002-08-23 06:45:23 +0000329 src/monkeys_audio_utilities/flac_mac/Makefile \
330 src/monkeys_audio_utilities/flac_ren/Makefile \
Josh Coalson1f99eac2002-08-23 06:45:23 +0000331 src/plugin_common/Makefile \
332 src/plugin_winamp2/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000333 src/plugin_winamp2/include/Makefile \
334 src/plugin_winamp2/include/winamp2/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000335 src/plugin_xmms/Makefile \
336 src/share/Makefile \
Josh Coalson3c043fd2002-10-25 04:57:05 +0000337 src/share/getopt/Makefile \
Josh Coalsonb8f8a072002-11-07 05:07:30 +0000338 src/share/grabbag/Makefile \
Josh Coalson9c650a52003-12-17 04:51:06 +0000339 src/share/replaygain_analysis/Makefile \
340 src/share/replaygain_synthesis/Makefile \
Josh Coalsone2999b72003-12-17 04:54:20 +0000341 src/share/replaygain_synthesis/include/Makefile \
342 src/share/replaygain_synthesis/include/private/Makefile \
Josh Coalson3c043fd2002-10-25 04:57:05 +0000343 src/share/utf8/Makefile \
Josh Coalson1dca1c22002-12-03 06:30:14 +0000344 src/test_grabbag/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000345 src/test_grabbag/cuesheet/Makefile \
Josh Coalson6a630c32006-09-29 14:58:56 +0000346 src/test_grabbag/picture/Makefile \
Josh Coalson6b21f662006-09-13 01:42:27 +0000347 src/test_libs_common/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000348 src/test_libFLAC/Makefile \
349 src/test_libFLAC++/Makefile \
Josh Coalson94b54992004-09-21 05:41:23 +0000350 src/test_seeking/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000351 src/test_streams/Makefile \
Josh Coalsonda0adb22001-06-18 23:07:19 +0000352 include/Makefile \
353 include/FLAC/Makefile \
Josh Coalson5a804ca2002-05-17 06:08:13 +0000354 include/FLAC++/Makefile \
355 include/share/Makefile \
Josh Coalsonb8f8a072002-11-07 05:07:30 +0000356 include/share/grabbag/Makefile \
Josh Coalson6b21f662006-09-13 01:42:27 +0000357 include/test_libs_common/Makefile \
Josh Coalson4c8f73a2001-07-22 07:27:45 +0000358 doc/Makefile \
Josh Coalson130cbb52002-07-16 16:12:27 +0000359 doc/html/Makefile \
360 doc/html/images/Makefile \
Josh Coalsona8d7b4e2007-02-14 06:12:24 +0000361 doc/html/images/hw/Makefile \
Josh Coalson130cbb52002-07-16 16:12:27 +0000362 doc/html/ru/Makefile \
Josh Coalson752a2ac2006-11-21 01:41:30 +0000363 m4/Makefile \
Josh Coalson4c8f73a2001-07-22 07:27:45 +0000364 man/Makefile \
Josh Coalson1d96b7e2002-07-24 06:13:33 +0000365 test/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000366 test/cuesheets/Makefile \
Josh Coalson6b21f662006-09-13 01:42:27 +0000367 test/flac-to-flac-metadata-test-files/Makefile \
368 test/metaflac-test-files/Makefile \
Josh Coalson66616f92006-10-03 01:07:24 +0000369 test/pictures/Makefile \
Josh Coalson1f99eac2002-08-23 06:45:23 +0000370 build/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000371 obj/Makefile \
372 obj/debug/Makefile \
Josh Coalsonb74fc982002-11-20 06:40:08 +0000373 obj/debug/bin/Makefile \
374 obj/debug/lib/Makefile \
Josh Coalson20809742003-01-10 04:39:20 +0000375 obj/release/Makefile \
Josh Coalsonb74fc982002-11-20 06:40:08 +0000376 obj/release/bin/Makefile \
377 obj/release/lib/Makefile \
Josh Coalsonb1ec7962006-05-24 04:41:36 +0000378])
379AC_OUTPUT