2021-09-17 04:11:27 -07:00
|
|
|
AC_INIT([imlib2],[1.7.4],[enlightenment-devel@lists.sourceforge.net])
|
2008-09-30 11:07:29 -07:00
|
|
|
AC_CONFIG_SRCDIR(configure.ac)
|
2013-07-01 21:57:19 -07:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2004-11-01 01:45:31 -08:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
2008-01-24 19:35:49 -08:00
|
|
|
|
2019-11-11 10:22:02 -08:00
|
|
|
AM_INIT_AUTOMAKE(1.6 dist-xz -Wno-portability)
|
2009-12-05 18:31:10 -08:00
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
2004-11-01 01:45:31 -08:00
|
|
|
|
2019-10-13 12:30:09 -07:00
|
|
|
AM_CONDITIONAL(SRC_IS_GIT, test -d $srcdir/.git)
|
|
|
|
|
2004-11-01 01:45:31 -08:00
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_PROG_CC
|
2006-10-24 21:45:08 -07:00
|
|
|
AM_PROG_AS
|
2019-11-11 10:22:02 -08:00
|
|
|
AC_PROG_CXX
|
2006-04-18 02:38:05 -07:00
|
|
|
|
2004-11-01 01:45:31 -08:00
|
|
|
AC_C_CONST
|
2005-09-06 21:17:18 -07:00
|
|
|
|
2008-11-01 03:17:38 -07:00
|
|
|
dnl Next two lines is a hack to prevent libtool checking for CXX/F77
|
2008-05-13 22:36:23 -07:00
|
|
|
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
|
|
|
|
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
2014-10-18 12:52:36 -07:00
|
|
|
LT_INIT
|
2004-11-01 01:45:31 -08:00
|
|
|
|
2020-07-31 21:43:31 -07:00
|
|
|
VERSION_CUR=8
|
2021-09-17 04:11:27 -07:00
|
|
|
VERSION_REV=4
|
2020-07-31 21:43:31 -07:00
|
|
|
VERSION_AGE=7
|
2008-05-13 22:36:23 -07:00
|
|
|
lt_version=${VERSION_CUR}:${VERSION_REV}:${VERSION_AGE}
|
|
|
|
AC_SUBST(lt_version)
|
|
|
|
|
2013-07-04 11:08:53 -07:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2021-11-06 12:58:40 -07:00
|
|
|
AC_DEFUN([EC_LOADER], [
|
|
|
|
if test "$2" = "yes"; then
|
|
|
|
AC_DEFINE([$1], [ 1 ], [ Build $3 loader ])
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL([$1], [ test "$2" = "yes" ])
|
|
|
|
])
|
|
|
|
|
2005-01-11 16:25:26 -08:00
|
|
|
|
2004-11-01 01:45:31 -08:00
|
|
|
mmx=no
|
2005-04-08 17:08:58 -07:00
|
|
|
amd64=no
|
2005-04-28 19:10:36 -07:00
|
|
|
case $host_cpu in
|
2005-09-07 15:54:52 -07:00
|
|
|
i*86) mmx="yes";;
|
|
|
|
x86_64) amd64="yes";;
|
2005-10-29 22:33:08 -07:00
|
|
|
amd64) amd64="yes";;
|
2005-03-27 18:25:08 -08:00
|
|
|
esac
|
2005-04-08 17:08:58 -07:00
|
|
|
|
2006-04-18 02:38:05 -07:00
|
|
|
case $host_os in
|
|
|
|
solaris*) mmx="no";;
|
2007-05-06 06:44:57 -07:00
|
|
|
darwin*) mmx="no";;
|
2006-04-18 02:38:05 -07:00
|
|
|
esac
|
|
|
|
|
2008-05-13 22:36:23 -07:00
|
|
|
AC_ARG_ENABLE([mmx],
|
2013-07-01 22:18:28 -07:00
|
|
|
[AS_HELP_STRING([--enable-mmx], [attempt compiling using x86 mmx assembly @<:@default=auto@:>@])],
|
2008-05-13 22:36:23 -07:00
|
|
|
[
|
|
|
|
if test x$enableval = xyes; then
|
|
|
|
mmx=yes
|
|
|
|
# Cannot compile with both options enabled
|
|
|
|
amd64=no
|
|
|
|
else
|
|
|
|
mmx=no
|
|
|
|
fi
|
|
|
|
]
|
2004-11-01 01:45:31 -08:00
|
|
|
)
|
2005-04-08 17:08:58 -07:00
|
|
|
|
2008-05-13 22:36:23 -07:00
|
|
|
AC_ARG_ENABLE([amd64],
|
2013-07-01 22:18:28 -07:00
|
|
|
[AS_HELP_STRING([--enable-amd64], [attempt compiling using amd64 assembly @<:@default=auto@:>@])],
|
2008-05-13 22:36:23 -07:00
|
|
|
[
|
|
|
|
if test x$enableval = xyes; then
|
|
|
|
amd64=yes
|
|
|
|
mmx=no
|
|
|
|
else
|
|
|
|
amd64=no
|
|
|
|
fi
|
|
|
|
]
|
2005-04-08 17:08:58 -07:00
|
|
|
)
|
|
|
|
|
2005-09-06 21:03:00 -07:00
|
|
|
AC_MSG_CHECKING(whether to enable x86 mmx support)
|
2004-11-01 01:45:31 -08:00
|
|
|
if test x$mmx = xyes; then
|
|
|
|
AC_DEFINE(DO_MMX_ASM, 1, [enabling MMX Assembly])
|
|
|
|
fi
|
2005-09-06 21:03:00 -07:00
|
|
|
AC_MSG_RESULT($mmx)
|
2004-11-01 01:45:31 -08:00
|
|
|
AM_CONDITIONAL(BUILD_MMX, test x$mmx = xyes)
|
2005-09-06 21:03:00 -07:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to enable amd64 asm support)
|
2005-04-08 17:08:58 -07:00
|
|
|
if test x$amd64 = xyes; then
|
|
|
|
AC_DEFINE(DO_AMD64_ASM, 1, [enabling AMD64 Assembly])
|
|
|
|
fi
|
2005-09-06 21:03:00 -07:00
|
|
|
AC_MSG_RESULT($amd64)
|
2005-04-08 17:08:58 -07:00
|
|
|
AM_CONDITIONAL(BUILD_AMD64, test x$amd64 = xyes)
|
2004-11-01 01:45:31 -08:00
|
|
|
|
|
|
|
# check for freetype
|
2013-07-04 11:08:53 -07:00
|
|
|
PKG_CHECK_MODULES(FREETYPE, freetype2)
|
2004-11-01 01:45:31 -08:00
|
|
|
|
2006-11-07 22:46:58 -08:00
|
|
|
AC_PATH_X
|
2013-07-04 11:08:53 -07:00
|
|
|
AC_PATH_XTRA
|
2006-11-07 22:46:58 -08:00
|
|
|
|
2005-02-22 19:27:41 -08:00
|
|
|
if test "x$have_x" = "xno"; then
|
|
|
|
# If --without-x was passed, this will be "disabled" instead of "no" --
|
|
|
|
# so always treat "no" as an error
|
|
|
|
AC_MSG_ERROR(
|
|
|
|
[no X support found. Use --x-includes and --x-libraries to specify the X
|
|
|
|
path on your system, or --without-x to disable X support.])
|
|
|
|
fi
|
|
|
|
|
2004-11-01 01:45:31 -08:00
|
|
|
if test "x$have_x" = "xyes"; then
|
|
|
|
AC_DEFINE(BUILD_X11, 1, [enabling X11 support])
|
2018-02-06 07:04:20 -08:00
|
|
|
AC_MSG_CHECKING(whether to enable X11 MIT-SHM FD-passing support)
|
|
|
|
AC_ARG_WITH([x-shm-fd],
|
|
|
|
[AS_HELP_STRING([--without-x-shm-fd], [Disable X11 MIT-SHM FD-passing support])],
|
|
|
|
[
|
|
|
|
if test "$withval" = no ; then
|
|
|
|
x_shm_fd=no
|
|
|
|
else
|
|
|
|
x_shm_fd=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[ x_shm_fd=auto ]
|
|
|
|
)
|
|
|
|
AC_MSG_RESULT($x_shm_fd)
|
|
|
|
|
|
|
|
if test "$x_shm_fd" != no ; then
|
|
|
|
PKG_CHECK_MODULES(X_SHM_FD, x11-xcb xcb xcb-shm >= 1.9, [ x_shm_fd="yes" ], [ x_shm_fd="no"])
|
|
|
|
else
|
|
|
|
x_shm_fd="no"
|
|
|
|
fi
|
|
|
|
if test "$x_shm_fd" = yes ; then
|
|
|
|
AC_DEFINE(HAVE_X11_SHM_FD, 1, [enabling X11 MIT-SHM FD-passing support])
|
|
|
|
fi
|
2004-11-01 01:45:31 -08:00
|
|
|
else
|
2008-04-20 05:19:22 -07:00
|
|
|
have_x="no"
|
2018-02-06 07:04:20 -08:00
|
|
|
x_shm_fd="no"
|
2004-11-01 01:45:31 -08:00
|
|
|
fi
|
2008-04-20 05:19:22 -07:00
|
|
|
AM_CONDITIONAL(BUILD_X11, test "x$have_x" = "xyes")
|
2004-11-01 01:45:31 -08:00
|
|
|
|
2013-07-04 11:08:53 -07:00
|
|
|
AC_CHECK_LIB(dl, dlopen, DLOPEN_LIBS=-ldl)
|
|
|
|
AC_SUBST(DLOPEN_LIBS)
|
2005-09-06 21:16:49 -07:00
|
|
|
|
2021-10-22 06:35:28 -07:00
|
|
|
AC_CHECK_FUNCS([clock_gettime], [have_clock_gettime=yes],
|
|
|
|
[AC_CHECK_LIB([rt], [clock_gettime], [have_clock_gettime=-lrt],
|
|
|
|
[have_clock_gettime=no])])
|
|
|
|
if test "x$have_clock_gettime" != xno; then
|
|
|
|
AC_DEFINE(USE_MONOTONIC_CLOCK, 1, [Use monotonic clock from clock_gettime()])
|
|
|
|
if test "x$have_clock_gettime" != xyes; then
|
|
|
|
AC_SUBST(CLOCK_LIBS, [$have_clock_gettime])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2005-09-06 21:16:49 -07:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to enable jpeg support)
|
2008-05-13 22:36:23 -07:00
|
|
|
AC_ARG_WITH([jpeg],
|
2013-07-01 22:18:28 -07:00
|
|
|
[AS_HELP_STRING([--without-jpeg], [Disable JPEG image loader])],
|
2008-05-13 22:36:23 -07:00
|
|
|
[
|
|
|
|
if test "$withval" = no ; then
|
|
|
|
jpeg_loader=no
|
|
|
|
else
|
|
|
|
jpeg_loader=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[ jpeg_loader=auto ]
|
2005-09-06 21:16:49 -07:00
|
|
|
)
|
|
|
|
AC_MSG_RESULT($jpeg_loader)
|
|
|
|
|
|
|
|
if test "$jpeg_loader" != no ; then
|
2021-04-27 09:40:28 -07:00
|
|
|
PKG_CHECK_MODULES(JPEG, libjpeg, [ jpeg_ok="yes" ], [ jpeg_ok="no" ])
|
2005-09-07 15:54:52 -07:00
|
|
|
if test "$jpeg_ok" = no ; then
|
|
|
|
if test "$jpeg_loader" = yes ; then
|
|
|
|
AC_MSG_ERROR(JPEG support was requested but system does not support it)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN(*** Native JPEG support will not be built (JPEG not found) ***)
|
|
|
|
fi
|
2005-09-06 21:16:49 -07:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
jpeg_ok=no
|
2004-11-01 01:45:31 -08:00
|
|
|
fi
|
2021-11-06 12:58:40 -07:00
|
|
|
EC_LOADER(BUILD_JPEG_LOADER, $jpeg_ok, JPEG)
|
2004-11-01 01:45:31 -08:00
|
|
|
|
2005-09-06 21:16:49 -07:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to enable png support)
|
2008-05-13 22:36:23 -07:00
|
|
|
AC_ARG_WITH([png],
|
2013-07-01 22:18:28 -07:00
|
|
|
[AS_HELP_STRING([--without-png], [Disable PNG image loader])],
|
2008-05-13 22:36:23 -07:00
|
|
|
[
|
|
|
|
if test "$withval" = no ; then
|
|
|
|
png_loader=no
|
|
|
|
else
|
|
|
|
png_loader=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[ png_loader=auto ]
|
2005-09-06 21:16:49 -07:00
|
|
|
)
|
|
|
|
AC_MSG_RESULT($png_loader)
|
|
|
|
|
|
|
|
if test "$png_loader" != no ; then
|
2008-03-10 22:38:05 -07:00
|
|
|
PKG_CHECK_MODULES(PNG, libpng, [ png_ok="yes" ], [
|
|
|
|
PKG_CHECK_MODULES(PNG, libpng12, [ png_ok="yes" ], [
|
|
|
|
PKG_CHECK_MODULES(PNG, libpng10, [ png_ok="yes" ], [ png_ok="no"])
|
|
|
|
])
|
|
|
|
])
|
2008-04-20 05:17:50 -07:00
|
|
|
else
|
|
|
|
png_ok="no"
|
2004-11-01 01:45:31 -08:00
|
|
|
fi
|
2021-11-06 12:58:40 -07:00
|
|
|
EC_LOADER(BUILD_PNG_LOADER, $png_ok, PNG)
|
2021-10-28 07:16:38 -07:00
|
|
|
|
2004-11-01 01:45:31 -08:00
|
|
|
|
2019-08-11 08:38:54 -07:00
|
|
|
AC_MSG_CHECKING(whether to enable webp support)
|
|
|
|
AC_ARG_WITH([webp],
|
|
|
|
[AS_HELP_STRING([--without-webp], [Disable WEBP image loader])],
|
|
|
|
[
|
|
|
|
if test "$withval" = no ; then
|
|
|
|
webp_loader=no
|
|
|
|
else
|
|
|
|
webp_loader=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[ webp_loader=auto ]
|
|
|
|
)
|
|
|
|
AC_MSG_RESULT($webp_loader)
|
|
|
|
|
|
|
|
if test "$webp_loader" != no ; then
|
2021-11-02 11:52:00 -07:00
|
|
|
PKG_CHECK_MODULES(WEBP, libwebpdemux, [ webp_ok="yes" ], [ webp_ok="no" ])
|
2019-08-11 08:38:54 -07:00
|
|
|
else
|
|
|
|
webp_ok="no"
|
|
|
|
fi
|
2021-11-06 12:58:40 -07:00
|
|
|
EC_LOADER(BUILD_WEBP_LOADER, $webp_ok, WEBP)
|
2019-08-11 08:38:54 -07:00
|
|
|
|
2005-09-06 21:28:02 -07:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to enable tiff support)
|
2008-05-13 22:36:23 -07:00
|
|
|
AC_ARG_WITH([tiff],
|
2013-07-01 22:18:28 -07:00
|
|
|
[AS_HELP_STRING([--without-tiff], [Disable TIFF image loader])],
|
2008-05-13 22:36:23 -07:00
|
|
|
[
|
|
|
|
if test "$withval" = no ; then
|
|
|
|
tiff_loader=no
|
|
|
|
else
|
|
|
|
tiff_loader=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[ tiff_loader=auto ]
|
2005-09-06 21:28:02 -07:00
|
|
|
)
|
|
|
|
AC_MSG_RESULT($tiff_loader)
|
|
|
|
|
|
|
|
if test "$tiff_loader" != no ; then
|
2021-04-27 09:40:28 -07:00
|
|
|
PKG_CHECK_MODULES(TIFF, libtiff-4, [ tiff_ok="yes" ], [ tiff_ok="no" ])
|
2005-09-07 15:54:52 -07:00
|
|
|
if test "$tiff_ok" = no ; then
|
|
|
|
if test "$tiff_loader" = yes ; then
|
|
|
|
AC_MSG_ERROR(TIFF support was requested but system does not support it)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN(*** Native TIFF support will not be built (TIFF not found) ***)
|
|
|
|
fi
|
2005-09-06 21:28:02 -07:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
tiff_ok=no
|
2004-11-01 01:45:31 -08:00
|
|
|
fi
|
2021-11-06 12:58:40 -07:00
|
|
|
EC_LOADER(BUILD_TIFF_LOADER, $tiff_ok, TIFF)
|
2004-11-01 01:45:31 -08:00
|
|
|
|
2005-09-06 21:28:02 -07:00
|
|
|
|
2005-09-07 15:54:52 -07:00
|
|
|
AC_MSG_CHECKING(whether to enable gif support)
|
2008-05-13 22:36:23 -07:00
|
|
|
AC_ARG_WITH([gif],
|
2013-07-01 22:18:28 -07:00
|
|
|
[AS_HELP_STRING([--without-gif], [Disable GIF image loader])],
|
2008-05-13 22:36:23 -07:00
|
|
|
[
|
|
|
|
if test "$withval" = no ; then
|
|
|
|
gif_loader=no
|
|
|
|
else
|
|
|
|
gif_loader=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[ gif_loader=auto ]
|
2005-09-07 15:54:52 -07:00
|
|
|
)
|
|
|
|
AC_MSG_RESULT($gif_loader)
|
|
|
|
|
|
|
|
if test "$gif_loader" != no ; then
|
2021-09-26 08:21:23 -07:00
|
|
|
AC_CHECK_LIB(gif, DGifOpenFileName, gif_libs="-lgif" gif_ok=yes, gif_ok=no)
|
|
|
|
if test "$gif_ok" = yes; then
|
|
|
|
AC_CHECK_HEADER([gif_lib.h], , gif_ok=no)
|
2004-11-01 01:45:31 -08:00
|
|
|
if test "$gif_ok" = yes; then
|
2021-09-26 08:21:23 -07:00
|
|
|
GIF_LIBS=$gif_libs
|
|
|
|
AC_SUBST(GIF_LIBS)
|
2005-09-07 15:54:52 -07:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$gif_ok" = no ; then
|
|
|
|
if test "$gif_loader" = yes ; then
|
|
|
|
AC_MSG_ERROR(GIF support was requested but system does not support it)
|
2004-11-01 01:45:31 -08:00
|
|
|
else
|
2005-09-07 15:54:52 -07:00
|
|
|
AC_MSG_WARN(*** Native GIF support will not be built (GIF not found) ***)
|
2004-11-01 01:45:31 -08:00
|
|
|
fi
|
|
|
|
fi
|
2005-09-07 15:54:52 -07:00
|
|
|
else
|
|
|
|
gif_ok=no
|
2004-11-01 01:45:31 -08:00
|
|
|
fi
|
2021-11-06 12:58:40 -07:00
|
|
|
EC_LOADER(BUILD_GIF_LOADER, $gif_ok, GIF)
|
2004-11-01 01:45:31 -08:00
|
|
|
|
2005-09-06 21:28:02 -07:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to enable zlib support)
|
2008-05-13 22:36:23 -07:00
|
|
|
AC_ARG_WITH([zlib],
|
2013-07-01 22:18:28 -07:00
|
|
|
[AS_HELP_STRING([--without-zlib], [Disable ZLIB loader])],
|
2008-05-13 22:36:23 -07:00
|
|
|
[
|
|
|
|
if test "$withval" = no ; then
|
|
|
|
zlib_loader=no
|
|
|
|
else
|
|
|
|
zlib_loader=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[ zlib_loader=auto ]
|
2005-09-06 21:28:02 -07:00
|
|
|
)
|
|
|
|
AC_MSG_RESULT($zlib_loader)
|
|
|
|
|
|
|
|
if test "$zlib_loader" != no ; then
|
2021-04-27 09:40:28 -07:00
|
|
|
PKG_CHECK_MODULES(ZLIB, zlib, [ zlib_ok="yes" ], [ zlib_ok="no" ])
|
2005-09-07 15:54:52 -07:00
|
|
|
if test "$zlib_ok" = no ; then
|
|
|
|
if test "$zlib_loader" = yes ; then
|
|
|
|
AC_MSG_ERROR(ZLIB support was requested but system does not support it)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN(*** Native zlib support will not be built (zlib not found) ***)
|
|
|
|
fi
|
2005-09-06 21:28:02 -07:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
zlib_ok=no
|
2004-11-01 01:45:31 -08:00
|
|
|
fi
|
2021-11-06 12:58:40 -07:00
|
|
|
EC_LOADER(BUILD_ZLIB_LOADER, $zlib_ok, ZLIB)
|
2004-11-01 01:45:31 -08:00
|
|
|
|
2005-09-06 21:28:02 -07:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to enable bzip2 support)
|
2008-05-13 22:36:23 -07:00
|
|
|
AC_ARG_WITH([bzip2],
|
2013-07-01 22:18:28 -07:00
|
|
|
[AS_HELP_STRING([--without-bzip2], [Disable BZIP2 loader])],
|
2008-05-13 22:36:23 -07:00
|
|
|
[
|
|
|
|
if test "$withval" = no ; then
|
|
|
|
bz2_loader=no
|
|
|
|
else
|
|
|
|
bz2_loader=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[ bz2_loader=auto ]
|
2005-09-06 21:28:02 -07:00
|
|
|
)
|
|
|
|
AC_MSG_RESULT($bz2_loader)
|
|
|
|
|
|
|
|
if test "$bz2_loader" != no ; then
|
2021-04-27 09:40:28 -07:00
|
|
|
PKG_CHECK_MODULES(BZ2, bzip2, [ bz2_ok="yes" ], [ bz2_ok="no" ])
|
2021-08-07 09:46:31 -07:00
|
|
|
if test "$bz2_ok" = no ; then
|
|
|
|
AC_CHECK_LIB(bz2, BZ2_bzRead, bz2_ok=yes, bz2_ok=no)
|
|
|
|
if test "$bz2_ok" = yes; then
|
|
|
|
AC_CHECK_HEADER([bzlib.h], , bz2_ok=no)
|
|
|
|
if test "$bz2_ok" = yes; then
|
|
|
|
BZ2_LIBS="-lbz2"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2005-09-07 15:54:52 -07:00
|
|
|
if test "$bz2_ok" = no ; then
|
|
|
|
if test "$bz2_loader" = yes ; then
|
|
|
|
AC_MSG_ERROR(BZIP2 support was requested but system does not support it)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN(*** Native bz2 support will not be built (bzip2 not found) ***)
|
|
|
|
fi
|
2005-09-06 21:28:02 -07:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
bz2_ok=no
|
2004-11-01 01:45:31 -08:00
|
|
|
fi
|
2021-11-06 12:58:40 -07:00
|
|
|
EC_LOADER(BUILD_BZ2_LOADER, $bz2_ok, BZ2)
|
2005-01-11 16:25:26 -08:00
|
|
|
|
2005-09-06 21:28:02 -07:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to enable id3 support)
|
2008-05-13 22:36:23 -07:00
|
|
|
AC_ARG_WITH([id3],
|
2013-07-01 22:18:28 -07:00
|
|
|
[AS_HELP_STRING([--without-id3], [Disable ID3 loader])],
|
2008-05-13 22:36:23 -07:00
|
|
|
[
|
|
|
|
if test "$withval" = no ; then
|
|
|
|
id3_loader=no
|
|
|
|
else
|
|
|
|
id3_loader=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[ id3_loader=auto ]
|
2005-09-06 21:28:02 -07:00
|
|
|
)
|
|
|
|
AC_MSG_RESULT($id3_loader)
|
|
|
|
|
|
|
|
if test "$id3_loader" != no ; then
|
2021-04-27 09:40:28 -07:00
|
|
|
PKG_CHECK_MODULES(ID3, id3tag, [ id3_ok="yes" ], [ id3_ok="no" ])
|
2005-09-07 15:54:52 -07:00
|
|
|
if test "$id3_ok" = no ; then
|
|
|
|
if test "$id3_loader" = yes ; then
|
|
|
|
AC_MSG_ERROR(ID3 support was requested but system does not support it)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN(*** Native mp3 support will not be built (id3tag not found) ***)
|
|
|
|
fi
|
2005-09-06 21:28:02 -07:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
id3_ok=no
|
2005-07-22 03:28:11 -07:00
|
|
|
fi
|
2021-11-06 12:58:40 -07:00
|
|
|
EC_LOADER(BUILD_ID3_LOADER, $id3_ok, ID3)
|
2021-10-28 07:16:38 -07:00
|
|
|
|
2005-07-22 03:28:11 -07:00
|
|
|
|
2019-11-11 10:22:02 -08:00
|
|
|
AM_CONDITIONAL(BUILD_TEST, false)
|
2013-07-04 11:08:53 -07:00
|
|
|
|
2019-11-16 05:51:44 -08:00
|
|
|
AC_ARG_ENABLE([debug],
|
|
|
|
[AS_HELP_STRING([--enable-debug], [Enable debug features @<:@default=no@:>@])],
|
|
|
|
[
|
|
|
|
if test x$enableval = xyes; then
|
|
|
|
AC_DEFINE(IMLIB2_DEBUG, 1, [Enable debug features])
|
|
|
|
fi
|
|
|
|
]
|
|
|
|
)
|
|
|
|
AM_CONDITIONAL(BUILD_DEBUG, test "$enable_debug" = "yes")
|
|
|
|
|
2014-10-18 11:16:24 -07:00
|
|
|
EC_C_WARNINGS()
|
2013-08-07 22:25:10 -07:00
|
|
|
EC_C_VISIBILITY(yes)
|
2020-05-16 00:27:37 -07:00
|
|
|
EC_C_ASAN()
|
2007-04-09 05:55:29 -07:00
|
|
|
|
2021-09-26 08:25:58 -07:00
|
|
|
VERSION_MAJOR=`echo $VERSION | awk -F. '{print $1}'`
|
|
|
|
VERSION_MINOR=`echo $VERSION | awk -F. '{print $2}'`
|
|
|
|
VERSION_MICRO=`echo $VERSION | awk -F. '{print $3}'`
|
|
|
|
AC_SUBST(VERSION_MAJOR)
|
|
|
|
AC_SUBST(VERSION_MINOR)
|
|
|
|
AC_SUBST(VERSION_MICRO)
|
|
|
|
|
2013-07-01 22:18:28 -07:00
|
|
|
AC_CONFIG_HEADERS(config.h)
|
|
|
|
AC_CONFIG_FILES([
|
2004-11-01 01:45:31 -08:00
|
|
|
Makefile
|
2005-03-03 06:28:52 -08:00
|
|
|
imlib2.pc
|
2004-11-01 01:45:31 -08:00
|
|
|
src/Makefile
|
|
|
|
src/lib/Makefile
|
2021-09-26 08:25:58 -07:00
|
|
|
src/lib/Imlib2.h
|
2004-11-01 01:45:31 -08:00
|
|
|
src/bin/Makefile
|
|
|
|
src/modules/Makefile
|
|
|
|
src/modules/filters/Makefile
|
|
|
|
src/modules/loaders/Makefile
|
|
|
|
data/Makefile
|
|
|
|
data/fonts/Makefile
|
|
|
|
data/images/Makefile
|
|
|
|
doc/Makefile
|
2019-11-11 10:22:02 -08:00
|
|
|
test/Makefile
|
2005-03-03 06:28:52 -08:00
|
|
|
README
|
2004-11-01 01:45:31 -08:00
|
|
|
])
|
2013-07-01 22:18:28 -07:00
|
|
|
AC_OUTPUT
|
2004-11-04 23:44:17 -08:00
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
## Info
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Configuration Options Summary:"
|
|
|
|
echo
|
2018-04-05 21:48:59 -07:00
|
|
|
echo "Image loaders:"
|
2004-11-04 23:44:17 -08:00
|
|
|
echo " JPEG....................: $jpeg_ok"
|
|
|
|
echo " PNG.....................: $png_ok"
|
|
|
|
echo " TIFF....................: $tiff_ok"
|
|
|
|
echo " GIF.....................: $gif_ok"
|
2019-08-11 08:38:54 -07:00
|
|
|
echo " WEBP....................: $webp_ok"
|
2004-11-04 23:44:17 -08:00
|
|
|
echo " ZLIB....................: $zlib_ok"
|
|
|
|
echo " BZIP2...................: $bz2_ok"
|
2005-07-22 17:51:25 -07:00
|
|
|
echo " ID3.....................: $id3_ok"
|
2004-11-04 23:44:17 -08:00
|
|
|
echo
|
2018-02-06 09:31:49 -08:00
|
|
|
echo "Build for X11.............: $have_x"
|
|
|
|
echo "Use X MIT-SHM FD-passing..: $x_shm_fd"
|
|
|
|
echo
|
2005-10-12 17:09:47 -07:00
|
|
|
echo "Use X86 MMX for speed.....: $mmx"
|
|
|
|
echo "Use AMD64 for speed.......: $amd64"
|
2005-01-19 04:28:53 -08:00
|
|
|
echo
|
2007-04-09 05:55:29 -07:00
|
|
|
echo "Use visibility hiding.....: $enable_visibility_hiding"
|
|
|
|
echo
|
2018-04-05 21:48:59 -07:00
|
|
|
echo "Installation path.........: $prefix"
|
2004-11-04 23:44:17 -08:00
|
|
|
echo
|