|
88
|
1 # -*- Autoconf -*-
|
|
|
2 # Process this file with autoconf to produce a configure script.
|
|
|
3
|
|
|
4 AC_PREREQ(2.56)
|
|
|
5 AC_INIT([Rogue],[3.6.4], [yendor@rogueforge.net])
|
|
|
6 AC_CONFIG_HEADERS([config.h])
|
|
|
7 # May not be needed for the documentation
|
|
|
8 AC_CONFIG_FILES([Makefile rogue.6 rogue.r])
|
|
|
9
|
|
|
10 # Checks for programs.
|
|
|
11 AC_PROG_CC
|
|
|
12 # Checks for libraries.
|
|
|
13 MP_WITH_CURSES
|
|
|
14 # Checks for header files.
|
|
|
15 AC_HEADER_STDC
|
|
|
16 AC_CHECK_HEADERS([arpa/inet.h pwd.h errno.h fcntl.h limits.h nlist.h stdlib.h string.h sys/ioctl.h termios.h unistd.h utmp.h utmpx.h term.h ncurses/term.h process.h])
|
|
|
17 # WARN: the sources often don't include the headers when needed. That is one
|
|
|
18 # reason why adding "-Wall" to CFLAGS produces 1246 lines of messages.
|
|
|
19
|
|
|
20 # Checks for typedefs, structures, and compiler characteristics.
|
|
|
21 AC_TYPE_UID_T
|
|
|
22 AC_TYPE_SIZE_T
|
|
|
23 AC_STRUCT_TM
|
|
|
24 # Checks for library functions.
|
|
|
25 AC_FUNC_FORK
|
|
|
26 AC_PROG_GCC_TRADITIONAL
|
|
|
27 AC_FUNC_LSTAT
|
|
|
28 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
|
|
|
29 AC_TYPE_SIGNAL
|
|
|
30 AC_FUNC_STAT
|
|
|
31 AC_FUNC_VPRINTF
|
|
|
32 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid])
|
|
|
33 AC_PROG_INSTALL
|
|
|
34
|
|
|
35 # Programs to process the documentation
|
|
|
36 AC_CHECK_PROG([NROFF], [nroff], [nroff],)
|
|
|
37 AC_CHECK_PROG([GROFF], [groff], [groff],)
|
|
|
38 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],)
|
|
|
39 AC_CHECK_PROG([TBL], [tbl], [tbl],)
|
|
|
40 AC_CHECK_PROG([SED], [sed], [sed],)
|
|
|
41
|
|
|
42 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue3"] )
|
|
|
43 PROGRAM=$progname
|
John "Elwin" Edwards
parents:
|