From 3180ede9c84b0511a92d897efeae6f597999de54 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Sep 1995 18:19:43 +0000 Subject: Initial revision --- config.make.in | 39 +++++++++++++++++++++++++++++++++++++++ configure.in | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 config.make.in create mode 100644 configure.in diff --git a/config.make.in b/config.make.in new file mode 100644 index 00000000..bcfc1c8f --- /dev/null +++ b/config.make.in @@ -0,0 +1,39 @@ +# @configure_input@ + +# Machine architecture. +machine = @host_cpu@ + +# Prefix prepended to names of machine-independent installed files. +prefix = @prefix@ +# Prefix prepended to names of machine-dependent installed files. +exec_prefix = @exec_prefix@ + +# Directories where things get installed. +hurddir = $(exec_prefix)/hurd +libdir = $(exec_prefix)/lib +bindir = $(exec_prefix)/bin +sbindir = $(exec_prefix)/sbin +includedir = $(exec_prefix)/include +infodir = $(prefix)/info +sysconfdir = $(prefix)/etc + +# How to run compilation tools. +CC = @CC@ +CPP = $(CC) -E -x c # We need this option when input file names are not *.c. +LD = @LD@ +OBJCOPY = @OBJCOPY@ +AR = @AR@ +RANLIB = @RANLIB@ +MIG = @MIG@ +MIGCOM = $(MIG) -cc cat - /dev/null + +# Compilation flags. Append these to the definitions already made by +# the specific Makefile. +CPPFLAGS += @CPPFLAGS@ @DEFS@ +CFLAGS += @CFLAGS@ +LDFLAGS += @LDFLAGS@ + +# Installation tools. +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ diff --git a/configure.in b/configure.in new file mode 100644 index 00000000..1d63b3ac --- /dev/null +++ b/configure.in @@ -0,0 +1,32 @@ +dnl Process this file with autoconf to produce a configure script. +AC_REVISION([$Id: configure.in,v 1.1 1995/09/16 18:19:43 roland Exp $]) +AC_PREREQ(2.4) dnl Minimum Autoconf version required. +AC_INIT(hurd/hurd_types.h) dnl A distinctive file to look for in srcdir. + +AC_PREFIX_DEFAULT() dnl Default to empty prefix, not /usr/local. + +AC_CANONICAL_HOST +case "$host_os" in +gnu*) ;; +*) AC_MSG_ERROR([sorry, this is the gnu os, not $host_os]) ;; +esac + +AC_PROG_INSTALL +AC_CHECK_TOOL(CC, gcc) +AC_CHECK_TOOL(LD, ld) +AC_CHECK_TOOL(OBJCOPY, objcopy) +AC_CHECK_TOOL(AR, ar) +AC_CHECK_TOOL(RANLIB, ranlib) +AC_CHECK_TOOL(MIG, mig) + +dnl Let these propagate from the environment. +AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) + +AC_OUTPUT(config.make) + +dnl Local Variables: +dnl comment-start: "dnl " +dnl comment-end: "" +dnl comment-start-skip: "\\bdnl\\b\\s *" +dnl compile-command: "autoconf" +dnl End: -- cgit v1.2.3