2018-08-20 19:21:51 +02:00
|
|
|
dnl automake-vgmstream m4 script
|
2008-05-18 19:17:49 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2017-05-01 11:00:56 +02:00
|
|
|
|
2008-05-18 19:17:49 +02:00
|
|
|
AC_PREREQ(2.53)
|
2018-08-20 19:21:51 +02:00
|
|
|
AC_INIT(automake-vgmstream,1.3.0)
|
2017-05-01 11:00:56 +02:00
|
|
|
AM_INIT_AUTOMAKE([subdir-objects])
|
2017-05-01 17:08:52 +02:00
|
|
|
AC_CONFIG_HEADERS(audacious/config.h)
|
2008-05-18 19:17:49 +02:00
|
|
|
AM_DISABLE_STATIC
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
AC_PATH_X
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
2018-08-20 19:21:51 +02:00
|
|
|
have_vorbis=no
|
|
|
|
PKG_CHECK_MODULES(VORBIS, [vorbis], have_vorbis=yes,
|
|
|
|
[AC_MSG_WARN([Cannot find libvorbis - will not enable Vorbis formats])]
|
2008-05-18 19:17:49 +02:00
|
|
|
)
|
2018-08-20 19:21:51 +02:00
|
|
|
AM_CONDITIONAL(HAVE_VORBIS, test "$have_vorbis" = yes)
|
2008-05-18 19:17:49 +02:00
|
|
|
|
2018-08-20 19:21:51 +02:00
|
|
|
have_vorbisfile=no
|
|
|
|
PKG_CHECK_MODULES(VORBISFILE, [vorbisfile], have_vorbisfile=yes,
|
|
|
|
[AC_MSG_WARN([Cannot find libvorbisfile - will not enable Vorbis formats])]
|
2017-12-26 04:18:18 +01:00
|
|
|
)
|
2018-08-20 19:21:51 +02:00
|
|
|
AM_CONDITIONAL(HAVE_VORBISFILE, test "$have_vorbisfile" = yes)
|
2017-12-26 04:18:18 +01:00
|
|
|
|
2018-08-20 19:21:51 +02:00
|
|
|
have_libmpg123=no
|
|
|
|
PKG_CHECK_MODULES(MPG123, [libmpg123], have_libmpg123=yes,
|
|
|
|
[AC_MSG_WARN([Cannot find libmpg123 - will not enable MPEG formats])]
|
2008-06-15 06:01:03 +02:00
|
|
|
)
|
2018-08-20 19:21:51 +02:00
|
|
|
AM_CONDITIONAL(HAVE_LIBMPG123, test "$have_libmpg123" = yes)
|
2008-06-15 06:01:03 +02:00
|
|
|
|
2020-08-01 19:40:58 +02:00
|
|
|
have_ffmpeg=no
|
2020-08-01 12:52:06 +02:00
|
|
|
#PKG_CHECK_MODULES(FFMPEG, [libavformat libavcodec libavutil libswresample], have_ffmpeg=yes,
|
2020-08-01 10:31:00 +02:00
|
|
|
# [AC_MSG_WARN([Cannot find ffmpeg - will not enable FFmpeg formats])]
|
|
|
|
#)
|
2020-08-01 19:40:58 +02:00
|
|
|
AM_CONDITIONAL(HAVE_FFMPEG, test "$have_ffmpeg" = yes)
|
2020-08-01 10:31:00 +02:00
|
|
|
|
2020-04-29 18:13:05 +02:00
|
|
|
have_audacious=no
|
|
|
|
PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 3.5.0], have_audacious=yes,
|
|
|
|
[AC_MSG_WARN([Cannot find audacious >= 3.5.0 correctly installed - will not build Audacious plugin])]
|
2008-07-05 13:49:29 +02:00
|
|
|
)
|
2020-04-29 18:13:05 +02:00
|
|
|
AM_CONDITIONAL(HAVE_AUDACIOUS, test "$have_audacious" = yes)
|
2008-07-05 13:49:29 +02:00
|
|
|
|
2008-05-18 19:17:49 +02:00
|
|
|
PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango],
|
|
|
|
, [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])]
|
|
|
|
)
|
|
|
|
|
2017-12-26 08:37:44 +01:00
|
|
|
have_libao=no
|
|
|
|
PKG_CHECK_MODULES(AO, [ao >= 1.1.0], have_libao=yes,
|
|
|
|
[AC_MSG_WARN([Cannot find libao - will not build vgmstream123])])
|
|
|
|
AM_CONDITIONAL(HAVE_LIBAO, test "$have_libao" = yes)
|
|
|
|
|
2020-09-29 04:10:23 +02:00
|
|
|
have_jansson=no
|
|
|
|
PKG_CHECK_MODULES(JANSSON, [jansson >= 2.3], have_jansson=yes,
|
|
|
|
[AC_MSG_WARN([Cannot find jansson - will disable JSON dumping in CLI])])
|
|
|
|
AM_CONDITIONAL(HAVE_JANSSON, test "$have_jansson" = yes)
|
|
|
|
|
2017-12-26 04:18:18 +01:00
|
|
|
if test "_$GCC" = _yes
|
|
|
|
then
|
|
|
|
CFLAGS="$CFLAGS -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-but-set-variable"
|
|
|
|
fi
|
2008-05-18 19:17:49 +02:00
|
|
|
|
2020-08-01 10:31:00 +02:00
|
|
|
#plugindir=`pkg-config audacious --define-variable=prefix="$prefix" --variable=plugin_dir`
|
2008-05-18 19:17:49 +02:00
|
|
|
plugindir=`pkg-config audacious --variable=plugin_dir`
|
|
|
|
AC_SUBST(plugindir)
|
|
|
|
|
|
|
|
INPUT_PLUGIN_DIR="Input"
|
|
|
|
AC_SUBST(INPUT_PLUGIN_DIR)
|
|
|
|
|
|
|
|
#AC_CHECK_HEADERS(regex.h,,AC_MSG_ERROR(regex.h missing))
|
|
|
|
#AC_CHECK_FUNCS(regcomp regexec regfree)
|
|
|
|
|
|
|
|
AC_PATH_X
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
2018-01-04 22:59:07 +01:00
|
|
|
Makefile.autotools
|
|
|
|
src/Makefile.autotools
|
|
|
|
src/coding/Makefile.autotools
|
|
|
|
src/layout/Makefile.autotools
|
|
|
|
src/meta/Makefile.autotools
|
|
|
|
audacious/Makefile.autotools
|
2018-01-19 00:39:04 +01:00
|
|
|
cli/Makefile.autotools
|
2008-05-18 19:17:49 +02:00
|
|
|
])
|