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

dnl Copyright (C) 1999, 2004, 2006, 2007, 2008 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
  x86_64)]
    AM_CONDITIONAL([HOST_x86_64], [true])

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

    # Determines the size of the CPU cache line.
    AC_DEFINE([CPU_L1_SHIFT], [6], [CPU_L1_SHIFT])

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

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

ncom=0
nlpr=0
[case $host_platform:$host_cpu in
  at:x86_64)]
    ncom=4
    nlpr=1
    AC_DEFINE([ATX86_64], [1], [ATX86_64])[;;
  xen:x86_64)]
    AC_DEFINE([ATX86_64], [1], [ATX86_64])[;;
  *)
    :;;
esac]

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

# i386/bogus/lpr.h
AC_DEFINE_UNQUOTED([NLPR], [$nlpr], [NLPR])

AC_DEFINE([PAE], [1], [PAE support])
AM_CONDITIONAL([enable_pae], [true])

dnl Local Variables:
dnl mode: autoconf
dnl End: