# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(mcabber, 0.6.0, bmikael@lists.lilotux.net) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src]) AM_CONFIG_HEADER(config.h) AC_PROG_RANLIB # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_INSTALL # Checks for libraries. AC_CHECK_LIB([connwrap], [cw_nb_connect]) AC_CHECK_LIB([libjabber], [jab_new]) AC_CHECK_LIB([ncurses], [initscr]) AC_CHECK_LIB([panel], [new_panel]) AC_CHECK_LIB([ssl], [SSL_new]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h termios.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM # Checks for library functions. AC_FUNC_ERROR_AT_LINE AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_REALLOC AC_FUNC_SELECT_ARGTYPES AC_TYPE_SIGNAL AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii memmove memset modf select setlocale socket strcasecmp strchr strdup strncasecmp strrchr strstr]) AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) AC_CONFIG_FILES([connwrap/Makefile libjabber/Makefile src/Makefile Makefile]) AC_OUTPUT