|
|
1.1 root 1: dnl Configure script for GNU Mach.
1.1.1.3 root 2: dnl Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
1.1 root 3:
4: dnl Permission to use, copy, modify and distribute this software and its
5: dnl documentation is hereby granted, provided that both the copyright
6: dnl notice and this permission notice appear in all copies of the
7: dnl software, derivative works or modified versions, and any portions
8: dnl thereof, and that both notices appear in supporting documentation.
1.1.1.3 root 9: dnl
1.1 root 10: dnl THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
11: dnl "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
12: dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
13: dnl USE OF THIS SOFTWARE.
14:
15: AC_INIT(kern/ipc_kobject.c)
1.1.1.2 root 16: AC_PREREQ(2.12)
1.1 root 17:
1.1.1.4 ! root 18: VERSION=1.3
! 19: AC_SUBST(VERSION)
! 20:
1.1 root 21: #
22: # Deduce output var `systype' from configuration parms.
23: #
24: AC_CANONICAL_HOST
25:
26: case "$host_cpu" in
1.1.1.2 root 27: i[[3456]]86) systype=i386 ;;
1.1 root 28: *) AC_MSG_ERROR([unsupported CPU type]) ;;
29: esac
30:
1.1.1.3 root 31: case "$host_os" in
1.1.1.2 root 32: gnu*) ;;
33: *) AC_MSG_ERROR([sorry, this is the gnu os, not $host_os]) ;;
34: esac
35:
1.1 root 36: AC_SUBST(systype)
37: AC_SUBST(cross_compiling)
38:
39: # Default prefix is / for the kernel.
40: AC_PREFIX_DEFAULT()
41:
42: #
1.1.1.2 root 43: # Options
44: #
1.1.1.3 root 45: AC_ARG_ENABLE(kdb,
46: [ --enable-kdb enable use of in-kernel debugger],
47: [test "x$enableval" = xno || AC_DEFINE(MACH_KDB)])
48:
49: AC_ARG_ENABLE(kmsg,
1.1.1.4 ! root 50: [ --enable-kmsg enable use of kmsg device [default=yes]],
! 51: [test "x$enableval" = xno || AC_DEFINE(MACH_KMSG)], [AC_DEFINE(MACH_KMSG)])
1.1.1.2 root 52:
53: #
1.1 root 54: # Programs
55: #
1.1.1.3 root 56:
1.1 root 57: AC_PROG_INSTALL
1.1.1.3 root 58: AC_PROG_AWK
1.1.1.2 root 59:
1.1.1.3 root 60: AC_CHECK_TOOL(CC, gcc)
61: # That check handles cross-compilation well, but AC_PROG_CC tests for GCC
62: # and sets default CFLAGS nicely for us, so do that too.
63: AC_PROG_CC_LOCAL
64:
65: AC_CHECK_TOOL(LD, ld)
66: AC_CHECK_TOOL(NM, nm)
67:
68: AC_CHECK_TOOL(MIG, mig, mig)
1.1 root 69:
70: # Set up `machine' link in build directory for easier header file location.
71: AC_LINK_FILES(${systype}/${systype},machine)
72:
73: # Do machine-specific configuration last so that it can override anything
74: # set above if necessary.
75:
1.1.1.3 root 76: AC_CONFIG_SUBDIRS(linux ${systype})
1.1 root 77:
1.1.1.4 ! root 78: AC_OUTPUT(Makefile version.c doc/Makefile)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.