Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 213559
Collapse All | Expand All

(-)libass-0.9.4/configure.ac.orig (-4 / +20 lines)
Lines 11-23 Link Here
11
AC_PROG_CPP
11
AC_PROG_CPP
12
12
13
# Checks for libraries.
13
# Checks for libraries.
14
AC_CHECK_LIB([png], [png_create_write_struct], AC_DEFINE(HAVE_LIBPNG, 1, [use libpng]))
14
15
AC_SEARCH_LIBS([iconv_open], [iconv], AC_DEFINE(USE_ICONV, 1, [use iconv]))
15
16
AC_CHECK_LIB([enca], [enca_analyser_alloc], [AC_DEFINE(HAVE_ENCA, 1, [use enca])  LIBS="$LIBS -lenca"])
16
17
AC_ARG_WITH([png], AS_HELP_STRING([--without-png], [Build without png library (default: test)]))
18
if test "x$with_png" != "xno"; then
19
	AC_CHECK_LIB([png], [png_create_write_struct], AC_DEFINE(HAVE_LIBPNG, 1, [use libpng]))
20
fi
21
22
AC_ARG_WITH([iconv], AS_HELP_STRING([--without-iconv], [Build without iconv library (default: test)]))
23
if test "x$with_iconv" != "xno"; then
24
	AC_SEARCH_LIBS([iconv_open], [iconv], AC_DEFINE(USE_ICONV, 1, [use iconv]))
25
	AC_CHECK_HEADER([iconv.h])
26
fi
27
28
AC_ARG_WITH([enca], AS_HELP_STRING([--without-enca], [Build without enca library (default: test)]))
29
if test "x$with_enca" != "xno"; then
30
	AC_CHECK_LIB([enca], [enca_analyser_alloc], [AC_DEFINE(HAVE_ENCA, 1, [use enca])  LIBS="$LIBS -lenca"])
31
	AC_CHECK_HEADER([enca.h])
32
fi
17
33
18
# Checks for header files.
34
# Checks for header files.
19
AC_HEADER_STDC
35
AC_HEADER_STDC
20
AC_CHECK_HEADERS([inttypes.h stdint.h stdlib.h string.h sys/time.h unistd.h iconv.h enca.h])
36
AC_CHECK_HEADERS([inttypes.h stdint.h stdlib.h string.h sys/time.h unistd.h])
21
37
22
PKG_CHECK_MODULES([FONTCONFIG], fontconfig >= 2.2.0, [
38
PKG_CHECK_MODULES([FONTCONFIG], fontconfig >= 2.2.0, [
23
    CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS"
39
    CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS"

Return to bug 213559