1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ(2.59) 5AC_INIT(typespeed, 0.6.5, tobias@bugol.de) 6AC_CONFIG_SRCDIR([config.h.in]) 7AC_CONFIG_HEADER([config.h]) 8AM_INIT_AUTOMAKE 9 10# Checks for programs. 11AC_PROG_CC 12AM_PROG_CC_C_O 13AC_PROG_INSTALL 14AC_PROG_MAKE_SET 15AC_GNU_SOURCE 16 17# Checks for libraries. 18AC_CHECK_LIB([ncurses], [initscr]) 19 20# I18N 21AM_GNU_GETTEXT_VERSION([0.14.5]) 22AM_GNU_GETTEXT([external]) 23 24# Checks for header files. 25AC_HEADER_DIRENT 26AC_HEADER_STDC 27AC_CHECK_HEADERS([arpa/inet.h bits/posix1_lim.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stdarg.h stdlib.h string.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h]) 28 29# Checks for typedefs, structures, and compiler characteristics. 30AC_C_CONST 31AC_TYPE_UID_T 32AC_C_INLINE 33AC_TYPE_SIZE_T 34AC_HEADER_TIME 35 36# Checks for library functions. 37AC_FUNC_CLOSEDIR_VOID 38AC_PROG_GCC_TRADITIONAL 39AC_FUNC_MALLOC 40AC_FUNC_REALLOC 41AC_FUNC_STAT 42AC_FUNC_VPRINTF 43AC_CHECK_FUNCS([gethostbyname gettimeofday inet_ntoa memset setlocale setregid setresgid socket strchr strdup strerror strrchr strstr strtol]) 44 45AC_ARG_WITH(highscoredir, 46 AC_HELP_STRING([--with-highscoredir=DIR], 47 [path to typespeed.score (LOCALSTATEDIR/games)]), 48 [ case "$withval" in 49 yes|no) 50 ;; 51 *) 52 highscoredir="$withval" 53 ;; 54 esac], 55 highscoredir=${localstatedir}/games) 56AC_SUBST(highscoredir) 57 58AC_CONFIG_FILES([Makefile doc/Makefile etc/Makefile man/Makefile po/Makefile.in 59 rules/Makefile src/Makefile testsuite/Makefile words/Makefile]) 60AC_OUTPUT 61