# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) AC_INIT AM_INIT_AUTOMAKE(rambler_weather, 1.0) AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL # Add libtool AC_PROG_LIBTOOL AC_ARG_WITH(xynth-prefix, AC_HELP_STRING([--with-xynth-prefix=DIR], [Prefix where xynth is installed (optional)]), [ if test "$withval" != "no" -a "$withval" != "yes" -a -d "$withval"; then export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${withval}/lib/pkgconfig" fi ]) # Checks for libraries. PKG_CHECK_MODULES([xynth], [xynth >= 0.10]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h strings.h errno.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T AC_TYPE_SSIZE_T AC_HEADER_TIME AC_STRUCT_TM AC_C_INLINE AC_CHECK_MEMBERS([struct stat.st_blksize]) # Checks for library functions. AC_FUNC_ERROR_AT_LINE AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_MKTIME AC_FUNC_REALLOC AC_FUNC_SELECT_ARGTYPES AC_TYPE_SIGNAL AC_FUNC_STRFTIME AC_CHECK_FUNCS([alarm gethostbyaddr gethostbyname localtime_r memset select socket strcasecmp strchr strdup strstr sigsetjmp]) AC_CONFIG_FILES([Makefile src/Makefile images/Makefile]) AC_OUTPUT