/[hurd]/gnumach/configure.in
ViewVC logotype

Diff of /gnumach/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by roland, Thu May 23 00:06:36 2002 UTC revision 1.12.2.1 by marcus, Tue Jul 12 23:01:06 2005 UTC
# Line 1  Line 1 
1  dnl Configure script for GNU Mach.  dnl Configure script for GNU Mach.
2  dnl Copyright 1997, 1998, 1999 Free Software Foundation, Inc.  dnl Copyright 1997, 1998, 1999, 2004 Free Software Foundation, Inc.
3    
4  dnl Permission to use, copy, modify and distribute this software and its  dnl Permission to use, copy, modify and distribute this software and its
5  dnl documentation is hereby granted, provided that both the copyright  dnl documentation is hereby granted, provided that both the copyright
# Line 12  dnl "AS IS" CONDITION.  THE FREE SOFTWAR Line 12  dnl "AS IS" CONDITION.  THE FREE SOFTWAR
12  dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE  dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
13  dnl USE OF THIS SOFTWARE.  dnl USE OF THIS SOFTWARE.
14    
15  AC_INIT(kern/ipc_kobject.c)  m4_include([version.m4])
 AC_PREREQ(2.12)  
16    
17  VERSION=1.3  AC_INIT([PACKAGE], [VERSION], [bug-hurd@gnu.org], [gnumach])
18  AC_SUBST(VERSION)  AC_CONFIG_SRCDIR([kern/ipc_kobject.c])
19    AC_PREREQ(2.57)
20    
21  #  #
22  # Deduce output var `systype' from configuration parms.  # Deduce output var `systype' from configuration parms.
# Line 28  i[[3456]]86) systype=i386 ;; Line 28  i[[3456]]86) systype=i386 ;;
28  *) AC_MSG_ERROR([unsupported CPU type]) ;;  *) AC_MSG_ERROR([unsupported CPU type]) ;;
29  esac  esac
30    
31  case "$host_os" in  AC_SUBST([systype])
32  gnu*) ;;  AC_SUBST([cross_compiling])
 *) AC_MSG_ERROR([sorry, this is the gnu os, not $host_os]) ;;  
 esac  
   
 AC_SUBST(systype)  
 AC_SUBST(cross_compiling)  
33    
34  # Default prefix is / for the kernel.  # Default prefix is / for the kernel.
35  AC_PREFIX_DEFAULT()  AC_PREFIX_DEFAULT([])
36    
37  #  #
38  # Options  # Options
39  #  #
40  AC_ARG_ENABLE(kdb,  AC_ARG_ENABLE([kdb],
41  [  --enable-kdb             enable use of in-kernel debugger],  AS_HELP_STRING([--enable-kdb], [enable use of in-kernel debugger]),
42  [test "x$enableval" = xno || AC_DEFINE(MACH_KDB)])  [test "x$enableval" = xno || AC_DEFINE([MACH_KDB], [1], [enable use of in-kernel debugger])])
43    
44  AC_ARG_ENABLE(kmsg,  AC_ARG_ENABLE([kmsg],
45  [  --enable-kmsg            enable use of kmsg device [default=yes]],  AS_HELP_STRING([--enable-kmsg], [enable use of kmsg device [[default=yes]]]),
46  [test "x$enableval" = xno || AC_DEFINE(MACH_KMSG)], [AC_DEFINE(MACH_KMSG)])  [test "x$enableval" = xno || AC_DEFINE([MACH_KMSG], [], [enable use of kmsg device])],
47                                [AC_DEFINE([MACH_KMSG], [], [enable use of kmsg device])])
48    
49  #  #
50  # Programs  # Programs
# Line 56  AC_ARG_ENABLE(kmsg, Line 52  AC_ARG_ENABLE(kmsg,
52    
53  AC_PROG_INSTALL  AC_PROG_INSTALL
54  AC_PROG_AWK  AC_PROG_AWK
55    AC_PROG_CC
56    
57  AC_CHECK_TOOL(CC, gcc)  AC_CHECK_TOOL([LD], [ld])
58  # That check handles cross-compilation well, but AC_PROG_CC tests for GCC  AC_SUBST([LDFLAGS])
59  # and sets default CFLAGS nicely for us, so do that too.  AC_CHECK_TOOL([NM], [nm])
 AC_PROG_CC_LOCAL  
   
 AC_CHECK_TOOL(LD, ld)  
 AC_CHECK_TOOL(NM, nm)  
60    
61  AC_CHECK_TOOL(MIG, mig, mig)  AC_CHECK_TOOL([MIG], [mig], [mig])
62    
63  # Set up `machine' link in build directory for easier header file location.  # Set up `machine' link in build directory for easier header file location.
64  AC_LINK_FILES(${systype}/${systype},machine)  AC_CONFIG_LINKS([machine:${systype}/${systype}])
65    
66    AC_CONFIG_SUBDIRS([linux])
67    
68  # Do machine-specific configuration last so that it can override anything  # Do machine-specific configuration last so that it can override anything
69  # set above if necessary.  # set above if necessary.
70    if test "$systype" = i386; then
71      AC_CONFIG_SUBDIRS([i386])
72    fi
73    
74  AC_CONFIG_SUBDIRS(linux ${systype})  AC_CONFIG_FILES([Makefile version.c doc/Makefile])
75    AC_OUTPUT
 AC_OUTPUT(Makefile version.c doc/Makefile)  

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.12.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26