From 536a02b74d0908ad61b58beb4ed66f3fa1bfb546 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sun, 15 Oct 2006 13:37:14 +0000 Subject: 2006-10-15 Thomas Schwinge [task #5956 --- ``Automake'ify GNU Mach's code base''] * configfrag.ac: New file. * tests/configfrag.ac: Likewise. * Makerules.am (DEFINES): Convert those into... * configfrag.ac: ... AC_DEFINE instantiations. * i386/Makerules.in (DEFINES): Convert those into... * i386/configfrag.ac: ... AC_DEFINE instantiations. * i386/Makerules.in: Remove file. * i386/configfrag.ac (AC_PREREQ, AC_INIT, AC_CONFIG_SRCDIR) (AC_CONFIG_SUBDIRS, AC_CONFIG_FILES, AC_OUTPUT): Don't invoke. (../version.m4): Don't include. (--disable-lpr): Rework configuration option. (--disable-default-device-drivers): Move configuration option to... * configfrag.ac: ... here. * configure.ac (AC_CONFIG_AUX_DIR, AM_INIT_AUTOMAKE): Instantiate. (AC_PREFIX_DEFAULT, AC_CONFIG_SUBDIRS): Don't invoke. : Rework the whole section. (--enable-kdb, --disable-kmsg): Move into `configfrag.ac' and adopt. (AM_PROG_AS, AM_PROG_CC_C_O): Instantiate. (AC_CHECK_PROG): Move instantiation searching for a `mbchk' program into `tests/configfrag.ac'. (AC_CHECK_PROG): Instantiate to search for a `patch' program. (tests/configfrag.ac, configfrag.ac) (linux/configfrag.ac): Include files. (i386/configfrag.ac): Include file if appropriate. (AC_CONFIG_HEADER): Instantiate for `config.h'. (AC_CONFIG_FILES): Remove `Makerules' and `doc/Makefile'. (AC_CONFIG_COMMANDS_POST): Instantiate for `config.status.dep.patch'. (AC_CONFIG_COMMANDS): Instantiate for `Makefile.correct_output_files_for_.S_files.patch' and (the nonexistent) `Makefile.dependency_tracking_for_.S_files.patch'. * Makefile.dependency_tracking_for_.S_files.patch: New file. * config.status.dep.patch: Likewise. * bogus/bootstrap_symbols.h: Remove file. * configfrag.ac: AC_DEFINE `BOOTSTRAP_SYMBOLS' to `0'. * bogus/cpus.h: Remove file. * configfrag.ac: AC_DEFINE `NCPUS' to `1'. AH_TEMPLATE `MULTIPROCESSOR'. * bogus/fast_tas.h: Remove file. * configfrag.ac: AC_DEFINE `FAST_TAS' to `0'. * bogus/hw_footprint.h: Remove file. * configfrag.ac: AC_DEFINE `HW_FOOTPRINT' to `0'. * bogus/mach_counters.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_COUNTERS' to `0'. * bogus/mach_debug.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_DEBUG' to `1'. * bogus/mach_fixpri.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_FIXPRI' to `1'. * bogus/mach_host.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_HOST' to `0'. * bogus/mach_ipc_compat.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_IPC_COMPAT' to `1'. * bogus/mach_ipc_debug.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_IPC_DEBUG' to `1'. * bogus/mach_ipc_test.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_IPC_TEST' to `0'. * bogus/mach_kdb.h: Remove file. * configfrag.ac (--disable-kdb): AC_DEFINE `MACH_KDB' to `0'. * bogus/mach_ldebug.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_LDEBUG' to `0'. * bogus/mach_lock_mon.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_LOCK_MON' to `0'. * bogus/mach_machine_routines.h: Remove file. * configfrag.ac: Add comment about not AC_DEFINEing `MACH_MACHINE_ROUTINES' to `0'. * bogus/mach_mp_debug.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_MP_DEBUG' to `0'. * bogus/mach_pagemap.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_PAGEMAP' to `1'. * bogus/mach_pcsample.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_PCSAMPLE' to `1'. * bogus/mach_ttd.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_TTD' to `0'. * bogus/mach_vm_debug.h: Remove file. * configfrag.ac: AC_DEFINE `MACH_VM_DEBUG' to `1'. * bogus/power_save.h: Remove file. * configfrag.ac: AC_DEFINE `POWER_SAVE' to `1'. * bogus/simple_clock.h: Remove file. * configfrag.ac: AC_DEFINE `SIMPLE_CLOCK' to `0'. * bogus/stat_time.h: Remove file. * configfrag.ac: AC_DEFINE `STAT_TIME' to `1'. * bogus/xpr_debug.h: Remove file. * configfrag.ac: AC_DEFINE `XPR_DEBUG' to `1'. * i386/bogus/com.h: Remove file. * i386/configfrag.ac: AC_DEFINE `NCOM' to `4'. * i386/bogus/fpe.h: Remove file. * i386/configfrag.ac: AC_DEFINE `FPE' to `0'. * i386/bogus/lpr.h: Remove file. * i386/configfrag.ac: AC_DEFINE `NLPR' to `1'. * i386/bogus/mach_machine_routines.h: Remove file. * i386/configfrag.ac: AC_DEFINE `MACH_MACHINE_ROUTINES' to `1'. * i386/bogus/platforms.h: Remove file. * i386/configfrag.ac: AC_DEFINE `AT386' to `1'. * i386/bogus/rc.h: Remove file. * i386/configfrag.ac: AC_DEFINE `RCLINE' to `-1' and `RCADDR' to `0x3f8'. --- configfrag.ac | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 configfrag.ac (limited to 'configfrag.ac') diff --git a/configfrag.ac b/configfrag.ac new file mode 100644 index 00000000..03ba7b33 --- /dev/null +++ b/configfrag.ac @@ -0,0 +1,137 @@ +dnl Configure fragment for general options. + +dnl Copyright 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. +# + +AC_DEFINE([MACH], [1], [MACH]) +AC_DEFINE([CMU], [1], [CMU]) +AC_DEFINE([MACH_KERNEL], [1], [MACH_KERNEL]) +AC_DEFINE([KERNEL], [1], [KERNEL]) + +# +# Formerly in `bogus/'. +# + +# bogus/bootstrap_symbols.h +AC_DEFINE([BOOTSTRAP_SYMBOLS], [0], [BOOTSTRAP_SYMBOLS]) + +# bogus/cpus.h +AC_DEFINE([NCPUS], [1], [set things up for a uniprocessor]) +AH_TEMPLATE([MULTIPROCESSOR], [set things up for a uniprocessor]) + +# bogus/fast_tas.h +AC_DEFINE([FAST_TAS], [0], [FAST_TAS]) + +# bogus/hw_footprint.h +AC_DEFINE([HW_FOOTPRINT], [0], [HW_FOOTPRINT]) + +# bogus/mach_counters.h +AC_DEFINE([MACH_COUNTERS], [0], [MACH_COUNTERS]) + +# bogus/mach_debug.h +AC_DEFINE([MACH_DEBUG], [1], [MACH_DEBUG]) + +# bogus/mach_fixpri.h +AC_DEFINE([MACH_FIXPRI], [1], [MACH_FIXPRI]) + +# bogus/mach_host.h +AC_DEFINE([MACH_HOST], [0], [MACH_HOST]) + +# bogus/mach_ipc_compat.h +AC_DEFINE([MACH_IPC_COMPAT], [1], [MACH_IPC_COMPAT]) + +# bogus/mach_ipc_debug.h +AC_DEFINE([MACH_IPC_DEBUG], [1], [MACH_IPC_DEBUG]) + +# bogus/mach_ipc_test.h +AC_DEFINE([MACH_IPC_TEST], [0], [MACH_IPC_TEST]) + +# bogus/mach_ldebug.h +AC_DEFINE([MACH_LDEBUG], [0], [MACH_LDEBUG]) + +# bogus/mach_lock_mon.h +AC_DEFINE([MACH_LOCK_MON], [0], [MACH_LOCK_MON]) + +# bogus/mach_machine_routines.h +# TODO. Defining a default value here and potentially overriding it later +# might or might not work. See +# . So, +# comment this out so that the i386-specific one will be used instead. Doesn't +# do any harm as we're i386-only so far. +#AC_DEFINE([MACH_MACHINE_ROUTINES], [0], [MACH_MACHINE_ROUTINES]) + +# bogus/mach_mp_debug.h +AC_DEFINE([MACH_MP_DEBUG], [0], [MACH_MP_DEBUG]) + +# bogus/mach_pagemap.h +AC_DEFINE([MACH_PAGEMAP], [1], [MACH_PAGEMAP]) + +# bogus/mach_pcsample.h +AC_DEFINE([MACH_PCSAMPLE], [1], [MACH_PCSAMPLE]) + +# bogus/mach_ttd.h +AC_DEFINE([MACH_TTD], [0], [MACH_TTD]) + +# bogus/mach_vm_debug.h +AC_DEFINE([MACH_VM_DEBUG], [1], [MACH_VM_DEBUG]) + +# bogus/power_save.h +AC_DEFINE([POWER_SAVE], [1], [POWER_SAVE]) + +# bogus/simple_clock.h +AC_DEFINE([SIMPLE_CLOCK], [0], [SIMPLE_CLOCK]) + +# bogus/stat_time.h +AC_DEFINE([STAT_TIME], [1], [STAT_TIME]) + +# bogus/xpr_debug.h +AC_DEFINE([XPR_DEBUG], [1], [XPR_DEBUG]) + +# +# Options. +# + +AC_ARG_ENABLE([kdb], + AS_HELP_STRING([--enable-kdb], [enable use of in-kernel debugger])) +[if [ x"$enable_kdb" = xyes ]; then] + AC_DEFINE([MACH_KDB], [1], [Use the in-kernel debugger?]) + AM_CONDITIONAL([enable_kdb], [true]) +[else] + # We need to be long winded here: bogus/mach_kdb.h made it default to zero, + # unless overridden. + AC_DEFINE([MACH_KDB], [0], [Use the in-kernel debugger?]) + AM_CONDITIONAL([enable_kdb], [false]) +[fi] + + +AC_ARG_ENABLE([kmsg], + AS_HELP_STRING([--disable-kmsg], [disable use of kmsg device])) +[if [ x"$enable_kmsg" != xno ]; then] + AC_DEFINE([MACH_KMSG], [], [enable use of kmsg device]) + AM_CONDITIONAL([enable_kmsg], [true]) +[else] + AM_CONDITIONAL([enable_kmsg], [false]) +[fi] + + +AC_ARG_ENABLE([default-device-drivers], + AS_HELP_STRING([--disable-default-device-drivers], [have all of the following + device drivers and switches disabled by default; then use the `--enable-*' + options to enable only those you actually want to have enabled])) +[if [ x"$enable_default_device_drivers" != xno ] +then enable_default_device_drivers=yes +fi] -- cgit v1.2.3