
This version still tries to load a PEM file, although libtgl --disable-openssl does not support it. Since there are several ways to resolve it, this switch away from OpenSSL and its solution should be different commits.
46 lines
1.3 KiB
Text
46 lines
1.3 KiB
Text
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.69])
|
|
AC_INIT([telegram-purple], [1.2.1])
|
|
AC_CONFIG_SRCDIR([config.h.in])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
m4_include([m4_ax_check_zlib.m4])
|
|
m4_include([m4_ax_pkg_config.m4])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CC
|
|
AC_PROG_INSTALL
|
|
|
|
AC_CHECK_LIB([m], [sqrt])
|
|
AC_CHECK_LIB([rt], [clock_gettime])
|
|
AC_CHECK_LIB([gcrypt], [gcry_md_open])
|
|
AX_CHECK_ZLIB(, [AC_MSG_ERROR([No zlib found])])
|
|
|
|
PKG_CHECK_MODULES([PURPLE], [purple])
|
|
|
|
AC_MSG_CHECKING([for libwebp])
|
|
AC_ARG_ENABLE([libwebp],
|
|
AS_HELP_STRING([--disable-libwebp], [Disable libwebp, stickers won't be displayed in the chat]))
|
|
AS_IF([test "x$enable_libwebp" != "xno"], [
|
|
AC_MSG_RESULT([enabled])
|
|
AC_CHECK_LIB([webp], [WebPDecodeRGBA], [], [AC_MSG_ERROR([no libwebp found, try --disable-libwebp, but stickers won't be displayed in the chat])])
|
|
])
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_TYPE_SIZE_T
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_MALLOC
|
|
AC_CHECK_FUNCS([memset strdup])
|
|
|
|
AC_SUBST(PURPLE_CFLAGS)
|
|
AC_SUBST(PURPLE_CPPFLAGS)
|
|
AC_SUBST(PURPLE_LIBS)
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|