# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. # boilerplate AC_PREREQ(2.57) AC_INIT(g-cows, 1.9.1, bugs@g-cows.org) AC_CONFIG_HEADER([config.h]) # AC_DEFINE(_GNU_SOURCE) AC_CONFIG_AUX_DIR(config) AC_SUBST(ac_aux_dir) AM_INIT_AUTOMAKE(g-cows, 1.9.1) AM_CONFIG_HEADER(lib/config.h) AM_MAINTAINER_MODE # information on the package # options to configure # checks for programs AC_PROG_CC AC_PROG_CXX AM_PROG_LEX AC_PROG_YACC AC_PROG_AWK AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_RANLIB # checks for libraries AC_CHECK_LIB(fl, yylex) # checks for header files AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([stddef.h stdlib.h unistd.h]) AC_CHECK_HEADERS([errno.h fcntl.h malloc.h strings.h]) # checks for types AC_HEADER_STDBOOL AC_C_CONST AC_TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_OFF_T # checks for structures AC_STRUCT_TM # checks for compiler characteristics # checks for library functions AC_FUNC_CLOSEDIR_VOID AC_FUNC_ERROR_AT_LINE AC_FUNC_FORK AC_FUNC_MALLOC AC_FUNC_REALLOC AC_FUNC_STAT AC_CHECK_FUNCS([dup2 getcwd mkdir pow setlocale strchr strdup strerror \ strstr getopt_long]) AC_CHECK_FUNCS(getopt) AC_CHECK_FUNCS(getopt_long) # checks for system services # output # SHELL=/bin/sh AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile]) AC_OUTPUT