summaryrefslogtreecommitdiff
path: root/sigalatvision/configure.in
blob: e743bc288ce87a66d9650e66c9803aad814ca527 (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
dnl Process this file with `autoconf' to produce a configure script.
AC_INIT(lib/tv.h)
AM_INIT_AUTOMAKE(tvision, 0.8)
AM_CONFIG_HEADER(config.h)

dnl Check for system.
AC_CANONICAL_HOST

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP

dnl Checks for header files.
AC_STDC_HEADERS
AC_CHECK_HEADERS(ncurses.h curses.h gpm.h)

dnl Checks for libraries.
AC_CHECK_LIB(ncurses, initscr, ,
	AC_CHECK_LIB(curses, initscr))

dnl Checks for library functions.
AC_CHECK_LIB(gpm, Gpm_Close)
dnl AC_CHECK_LIB(mytinfo, ???)

dnl Checks for dynamic libraries.
dnl AM_PROG_RANLIB
AM_PROG_LIBTOOL

dnl Various enable/disable checks.

AC_MSG_CHECKING(if the Russian character set should be enabled (now obsolete))
AC_ARG_ENABLE(russian,
[  --enable-russian        enable Russian character set (now obsolete)],
[
AC_MSG_RESULT(yes)
AC_DEFINE(ENABLE_RUSSIAN_CHARSET)
], [
AC_MSG_RESULT(no)
])

AC_MSG_CHECKING(if the alternate character set should be disabled)
AC_ARG_ENABLE(acs,
[  --disable-acs           disable alternate character set],
[
AC_MSG_RESULT(yes)
AC_DEFINE(DISABLE_ACS)
], [
AC_MSG_RESULT(no)
])

AC_MSG_CHECKING(if the 8 bit output should be disabled)
AC_ARG_ENABLE(8bit,
[  --disable-8bit          disable 8 bit output],
[
AC_MSG_RESULT(yes)
AC_DEFINE(DISABLE_8BIT_CHARS)
], [
AC_MSG_RESULT(no)
])

case $host_os in
	linux*)
AC_MSG_CHECKING(if the Linux GPM mouse support should be disabled)
AC_ARG_ENABLE(linux-gpm,
[  --disable-linux-gpm     disable Linux GPM mouse support],
[
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
AC_DEFINE(ENABLE_GPM)
])

AC_MSG_CHECKING(if the Linux VCS support should be disabled)
AC_ARG_ENABLE(linux-vcs,
[  --disable-linux-vcs     disable Linux VCS support],
[
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
AC_DEFINE(ENABLE_VCS)
])
	;;
	freebsd*)
AC_MSG_CHECKING(if the FreeBSD mouse support should be disabled)
AC_ARG_ENABLE(freebsd-mouse,
[  --disable-freebsd-mouse disable FreeBSD mouse support],
[
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
AC_DEFINE(ENABLE_FBSDM)
])
	;;
esac

AC_OUTPUT(doc/Makefile lib/Makefile demo/Makefile tutorial/Makefile \
	tvhc/Makefile Makefile)