summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-02-15 23:52:51 +0000
committerRoland McGrath <roland@gnu.org>2003-02-15 23:52:51 +0000
commit89a3a3d53a95afc90a6c269242036dc88e29deef (patch)
treec5a958ade8cc8b6f843e355ac4f2bd1c236c212f /hurd
parent2266148c4b8fd3e7f5569740735c2d363e9741b9 (diff)
2003-02-15 Roland McGrath <roland@frob.com>
* configure.ac: New file. * install-headers.in: New file.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/configure.ac11
-rwxr-xr-xhurd/install-headers.in22
2 files changed, 33 insertions, 0 deletions
diff --git a/hurd/configure.ac b/hurd/configure.ac
new file mode 100644
index 00000000..bb6d7439
--- /dev/null
+++ b/hurd/configure.ac
@@ -0,0 +1,11 @@
+dnl Run through autoconf to create a configure script for install-headers.
+AC_REVISION([$CVSid$])
+AC_PREREQ(2.53)dnl dnl Minimum Autoconf version required.
+AC_INIT([GNU Hurd], [bootstrap installation of header files])
+AC_CONFIG_SRCDIR([hurd_types.h])
+AC_CONFIG_AUX_DIR([..])
+
+AC_PROG_INSTALL
+
+AC_CONFIG_FILES([install-headers])
+AC_OUTPUT
diff --git a/hurd/install-headers.in b/hurd/install-headers.in
new file mode 100755
index 00000000..99d35833
--- /dev/null
+++ b/hurd/install-headers.in
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+# @configure_input@
+#
+# This is a trivial script for those who aren't comfortable typing:
+# cp hurd/*.h hurd/*.defs /usr/local/i686-gnu/include/hurd/
+# by themselves. That is, it copies the essential Hurd header files
+# into $(includedir) before you attempt to build the Hurd itself.
+# In addition to installing Mach headers, this is sufficient to bootstrap
+# an empty cross-compilation environment such that glibc can be compiled.
+
+srcdir=@srcdir@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+
+INSTALL="@INSTALL@"
+INSTALL_DATA="@INSTALL_DATA@"
+
+${srcdir}/../mkinstalldirs ${includedir}/hurd
+for file in `cd ${srcdir}; echo *.h *.defs`; do
+ ${INSTALL_DATA} ${file} ${includedir}/hurd/${file}
+done