2010-12-08 21:14:04 +00:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_INIT(src/client.c)
|
2011-02-22 06:36:34 +00:00
|
|
|
AM_INIT_AUTOMAKE(libguac, 0.3.0)
|
2010-12-08 21:14:04 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
AC_CHECK_LIB([dl], [dlopen],, AC_MSG_ERROR("libdl is required for loading client plugins"))
|
2010-12-15 19:41:03 +00:00
|
|
|
AC_CHECK_LIB([png], [png_write_png],, AC_MSG_ERROR("libpng is required for writing png messages"))
|
2011-02-09 02:39:08 +00:00
|
|
|
AC_CHECK_LIB([wsock32], [main])
|
2010-12-08 21:14:04 +00:00
|
|
|
|
|
|
|
# Checks for header files.
|
2011-02-11 07:53:11 +00:00
|
|
|
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h pngstruct.h])
|
2010-12-08 21:14:04 +00:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_SSIZE_T
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_FUNC_REALLOC
|
2011-02-16 02:07:19 +00:00
|
|
|
AC_CHECK_FUNCS([gettimeofday memmove memset select strdup png_get_io_ptr])
|
2010-12-08 21:14:04 +00:00
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|