File: configure.ac

package info (click to toggle)
typespeed 0.6.4-2.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,340 kB
  • ctags: 222
  • sloc: sh: 4,285; ansic: 3,679; makefile: 125; sed: 16
file content (60 lines) | stat: -rw-r--r-- 1,660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(typespeed, 0.6.4, tobias@bugol.de)
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_GNU_SOURCE

# Checks for libraries.
AC_CHECK_LIB([ncurses], [initscr])

# I18N
AM_GNU_GETTEXT_VERSION([0.14.5])
AM_GNU_GETTEXT([external])

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h bits/posix1_lim.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME

# Checks for library functions.
AC_FUNC_CLOSEDIR_VOID
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STAT
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([gethostbyname gettimeofday inet_ntoa memset setlocale setregid setresgid socket strchr strdup strerror strrchr strstr strtol])

AC_ARG_WITH(highscoredir,
    AC_HELP_STRING([--with-highscoredir=DIR],
        [path to typespeed.score (LOCALSTATEDIR/games)]),
    [ case "$withval" in
        yes|no)
            ;;
        *)
            highscoredir="$withval"
            ;;
        esac],
    highscoredir=${localstatedir}/games)
AC_SUBST(highscoredir)

AC_CONFIG_FILES([Makefile doc/Makefile etc/Makefile man/Makefile po/Makefile.in
                rules/Makefile src/Makefile testsuite/Makefile words/Makefile])
AC_OUTPUT