summaryrefslogtreecommitdiff
path: root/i386/configfrag.ac
blob: a6c0d7a8b89db86280ccce063b9f90853caf22b8 (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
dnl Configure fragment for i386.

dnl Copyright 1999, 2004, 2006 Free Software Foundation, Inc.

dnl Permission to use, copy, modify and distribute this software and its
dnl documentation is hereby granted, provided that both the copyright
dnl notice and this permission notice appear in all copies of the
dnl software, derivative works or modified versions, and any portions
dnl thereof, and that both notices appear in supporting documentation.
dnl
dnl THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
dnl "AS IS" CONDITION.  THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
dnl USE OF THIS SOFTWARE.

#
# Definitions.
#

# Some of the i386-specific code checks for these.
AC_DEFINE([CONTINUATIONS], [1], [CONTINUATIONS])
AC_DEFINE([__ELF__], [1], [__ELF__])
AC_DEFINE([i386], [1], [i386])

#
# Formerly in `i386/bogus/'.
#

# i386/bogus/com.h
AC_DEFINE([NCOM], [4], [NCOM])

# i386/bogus/fpe.h
AC_DEFINE([FPE], [0], [We do not have a floating point implementation.])

# i386/bogus/lpr.h
AC_DEFINE([NLPR], [1], [NLPR])

# i386/bogus/mach_machine_routines.h
AC_DEFINE([MACH_MACHINE_ROUTINES], [1], [MACH_MACHINE_ROUTINES])

# i386/bogus/platforms.h
AC_DEFINE([AT386], [1], [AT386])

# i386/bogus/rc.h
#
# This controls whether or not we use a serial line for the console
# (ie, remote console).
#
#
# Values for RCLINE:
#      -1 = disable
#       0 = port 0x3f8/irq 4 (DOS COM1)
#       1 = port 0x2f8/irq 3 (DOS COM2)
#       2 = port 0x3e8/irq 5 (DOS COM3)
#       3 = port 0x2e8/irq 9 (DOS COM4)
#
AC_DEFINE([RCLINE], [-1], [com port for the remote console])
AC_DEFINE([RCADDR], [0x3f8], [where is the com port for the remote console])

#
# Options.
#

AC_ARG_ENABLE([lpr],
  AS_HELP_STRING([--disable-lpr], [disable use of lpr device]))
[enable_lpr=${enable_lpr-$enable_default_device_drivers}
if [ x"$enable_lpr" = xyes ]; then]
  AC_DEFINE([MACH_LPR], [], [lpr device])
  AM_CONDITIONAL([enable_lpr], [true])
[else]
  AM_CONDITIONAL([enable_lpr], [false])
[fi]