diff options
author | Dr.Smile <vabnick@gmail.com> | 2019-05-27 00:50:04 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2020-05-07 18:36:35 +0300 |
commit | 46f44957e54cdd6d0c3554ad44bae5eb17ad74fc (patch) | |
tree | 33c7982d758a8e6b24ab8839a71fa3f646348590 /configure.ac | |
parent | e5140624ff739c3157929bc5e1a1007cdc9cdaa8 (diff) | |
download | libass-46f44957e54cdd6d0c3554ad44bae5eb17ad74fc.tar.bz2 libass-46f44957e54cdd6d0c3554ad44bae5eb17ad74fc.tar.xz |
Add infrastructure for regression testing
`test` subdirectory contains complete test example.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 4c03edf..258ca9c 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,8 @@ LIBS="$OLDLIBS $LIBS" # Check for libraries via pkg-config AC_ARG_ENABLE([test], AS_HELP_STRING([--enable-test], [enable test program (requires libpng) @<:@default=no@:>@])) +AC_ARG_ENABLE([compare], AS_HELP_STRING([--enable-compare], + [enable compare program (requires libpng) @<:@default=no@:>@])) AC_ARG_ENABLE([profile], AS_HELP_STRING([--enable-profile], [enable profiling program @<:@default=no@:>@])) AC_ARG_ENABLE([fontconfig], AS_HELP_STRING([--disable-fontconfig], @@ -218,14 +220,15 @@ PKG_CHECK_MODULES([HARFBUZZ], harfbuzz >= 0.9.5, [ fi libpng=false -if test x$enable_test = xyes; then +if test x$enable_test = xyes || test x$enable_compare = xyes; then PKG_CHECK_MODULES([LIBPNG], libpng >= 1.2.0, [ CFLAGS="$CFLAGS $LIBPNG_CFLAGS" AC_DEFINE(CONFIG_LIBPNG, 1, [found libpng via pkg-config]) libpng=true]) fi -AM_CONDITIONAL([HAVE_LIBPNG], [test x$libpng = xtrue]) +AM_CONDITIONAL([ENABLE_TEST], [test x$enable_test = xyes && test x$libpng = xtrue]) +AM_CONDITIONAL([ENABLE_COMPARE], [test x$enable_compare = xyes && test x$libpng = xtrue]) AM_CONDITIONAL([ENABLE_PROFILE], [test x$enable_profile = xyes]) @@ -265,5 +268,5 @@ AC_SUBST([PKG_REQUIRES_PRIVATE], [$(test x$enable_shared = xno || echo ${pkg_req # Setup output beautifier. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) -AC_CONFIG_FILES([Makefile libass/Makefile test/Makefile profile/Makefile libass.pc]) +AC_CONFIG_FILES([Makefile libass/Makefile test/Makefile compare/Makefile profile/Makefile libass.pc]) AC_OUTPUT |