summaryrefslogtreecommitdiff
path: root/i386/configfrag.ac
blob: 3603721c5f6198bd136cd67343fd6d5bd89b54e7 (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
99
100
101
102
103
dnl Configure fragment for i386.

dnl Copyright (C) 1999, 2004, 2006, 2007 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.
#

[case $host_cpu in
  i?86)]
    AM_CONDITIONAL([HOST_ix86], [true])

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

    [# Does the architecture provide machine-specific interfaces?
    mach_machine_routines=1;;
  *)]
    AM_CONDITIONAL([HOST_ix86], [false])[;;
esac

case $host_platform in
  at)]
    AM_CONDITIONAL([PLATFORM_at], [true])[;;
  *)]
    AM_CONDITIONAL([PLATFORM_at], [false])[;;
esac

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

ncom=0
nlpr=0
case $host_platform:$host_cpu in
  at:i?86)
    ncom=4
    nlpr=1

    # i386/bogus/platforms.h]
    AC_DEFINE([AT386], [1], [AT386])[;;
  *)
    :;;
esac]

# i386/bogus/com.h
AC_DEFINE_UNQUOTED([NCOM], [$ncom], [NCOM])

# i386/bogus/lpr.h
AC_DEFINE_UNQUOTED([NLPR], [$nlpr], [NLPR])

# 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([--enable-lpr], [lpr device; enabled by default for ix86-at]))
[case $host_platform:$host_cpu in
  at:i?86)
    enable_lpr=${enable_lpr-$enable_default_device_drivers};;
  *)
    if [ x"$enable_lpr" = xyes ]; then]
      AC_MSG_ERROR([cannot enable `lpr' in this configuration.])
    [fi;;
esac
if [ x"$enable_lpr" = xyes ]; then]
  AC_DEFINE([MACH_LPR], [], [lpr device])
  AM_CONDITIONAL([enable_lpr], [true])
[else]
  AM_CONDITIONAL([enable_lpr], [false])
[fi]

dnl Local Variables:
dnl mode: autoconf
dnl End: