comparison configure.in @ 157:fa3e593b6a5e

FLAC decoder added.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 09 Nov 2001 21:43:49 +0000
parents 1a0cf9aeee2a
children 3ccce5bb41c0
comparison
equal deleted inserted replaced
156:ac46d8db8a8c 157:fa3e593b6a5e
139 AC_ARG_ENABLE(midi, 139 AC_ARG_ENABLE(midi,
140 [ --enable-midi enable MIDI music via a pipe [default=no]], 140 [ --enable-midi enable MIDI music via a pipe [default=no]],
141 , enable_midi=no) 141 , enable_midi=no)
142 if test x$enable_midi = xyes; then 142 if test x$enable_midi = xyes; then
143 AC_DEFINE(SOUND_SUPPORTS_MIDI) 143 AC_DEFINE(SOUND_SUPPORTS_MIDI)
144 fi
145
146 dnl Check for libFLAC
147 AC_ARG_ENABLE(flac,
148 [ --enable-flac enable FLAC decoding via libFLAC [default=yes]],
149 , enable_flac=yes)
150 if test x$enable_flac = xyes; then
151 AC_CHECK_HEADER(FLAC/all.h, have_flac_hdr=yes)
152 AC_CHECK_LIB(FLAC, FLAC__stream_decoder_new, have_flac_lib=yes)
153 if test x$have_flac_hdr = xyes -a x$have_flac_lib = xyes; then
154 LIBS="$LIBS -lFLAC"
155 AC_DEFINE(SOUND_SUPPORTS_FLAC)
156 fi
144 fi 157 fi
145 158
146 dnl Check for SMPEG 159 dnl Check for SMPEG
147 AC_ARG_ENABLE(smpeg, 160 AC_ARG_ENABLE(smpeg,
148 [ --enable-smpeg enable MP3 music via smpeg [default=yes]], 161 [ --enable-smpeg enable MP3 music via smpeg [default=yes]],
171 fi 184 fi
172 fi 185 fi
173 186
174 dnl Check for vorbis 187 dnl Check for vorbis
175 AC_ARG_ENABLE(vorbis, 188 AC_ARG_ENABLE(vorbis,
176 [ --enable-vorbis enable OGG music via vorbis [default=yes]], 189 [ --enable-vorbis enable OGG decoding via vorbis [default=yes]],
177 , enable_vorbis=yes) 190 , enable_vorbis=yes)
178 if test x$enable_vorbis = xyes; then 191 if test x$enable_vorbis = xyes; then
179 AM_PATH_VORBIS 192 AM_PATH_VORBIS
180 if test "x$no_vorbis" = "x" ; then 193 if test "x$no_vorbis" = "x" ; then
181 CFLAGS="$CFLAGS $VORBIS_CFLAGS" 194 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
182 LIBS="$LIBS $VORBIS_LIBS $VORBISFILE_LIBS $VORBISENC_LIBS" 195 LIBS="$LIBS $VORBIS_LIBS $VORBISFILE_LIBS $VORBISENC_LIBS"
183 AC_DEFINE(SOUND_SUPPORTS_OGG) 196 AC_DEFINE(SOUND_SUPPORTS_OGG)
184 fi 197 fi
185 fi 198 fi
186 199
187
188 # Checks for header files. 200 # Checks for header files.
189 AC_HEADER_STDC 201 AC_HEADER_STDC
190 AC_CHECK_HEADERS([stdlib.h string.h]) 202 AC_CHECK_HEADERS([stdlib.h string.h])
191 203
192 # Checks for typedefs, structures, and compiler characteristics. 204 # Checks for typedefs, structures, and compiler characteristics.