-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
56 lines (42 loc) · 1.47 KB
/
configure.ac
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(rogueclone2s, 6.0, [http://homepage2.nifty.com/107steps/])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h sgtty.h stdlib.h string.h strings.h sys/file.h sys/time.h termio.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_STRUCT_TM
# Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_CHECK_HEADERS([windows.h])
AC_CHECK_LIB([ncurses], [initscr])
AC_CHECK_LIB([kernel32], [_sleep])
AC_CHECK_FUNCS([chdir getcwd getenv getlogin memset putenv setenv strchr sleep])
AC_CHECK_FUNCS([assume_default_colors attr_get])
AC_CONFIG_FILES([Makefile
doc/Makefile
man/Makefile
msg/Makefile
src/Makefile])
AC_ARG_ENABLE([color],
AS_HELP_STRING([--enable-color],
[include color(default yes)]), ,)
if test "$enable_color" != "no"; then
AC_DEFINE([COLOR], , [Define if you have the 'COLOR'])
fi
AC_DEFINE([EUC], , [Define if you have the 'EUC'])
AC_DEFINE([TOPSCO], , [Define if you have the 'TOPSCO'])
AC_DEFINE([THROW_TUNNEL], , [Define if you have the 'THROW_TUNNEL'])
AC_OUTPUT