Building arla-0.4 on RedHat Linux 5.0/glibc 2.06
Love
lha at stacken.kth.se
Mon Mar 30 17:36:19 CEST 1998
Brad Keryan <keryan at andrew.cmu.edu> writes:
> At the very end of this message is a patch that gets the xfs kernel module
> to build under RedHat 5.0 (glibc 2.0.6-9, kernel 2.0.33, i586-Linux). It
> makes a new file, arla-0.4/xfs/linux/missing_types.h, which defines some
> of the types that come from <sys/types.h> in libc5 and on other OSes.
Ok, I used you patch for autoconf and added caching, so now i looks like
this, is this right ? I dont have access to glibc thingy.
I added the test not in the linux section because someone else may
want to run glibc on a non-linux system (?)
missing_types.h should be autoconf:ed instead, will it help if
you include include/atypes.h ?
I don't know how to test for MAXPATHLEN, will ask local autoconf guru.
Love
Index: aclocal.m4
===================================================================
RCS file: /usr/local/cvsroot/arla/aclocal.m4,v
retrieving revision 1.27
diff -u -w -r1.27 aclocal.m4
--- aclocal.m4 1998/03/30 00:03:46 1.27
+++ aclocal.m4 1998/03/30 15:32:11
@@ -564,3 +564,24 @@
AC_GETCONF_FLAGS(LFS_LDFLAGS, LDFLAGS)
])
+
+#
+# test for GNU libc
+#
+
+
+AC_DEFUN(AC_CHECK_GLIBC,[
+AC_CACHE_CHECK([for glibc],ac_cv_libc_glibc,[
+AC_EGREP_CPP(yes,
+[#include <features.h>
+#ifdef __GLIBC__
+yes
+#endif
+],
+eval "ac_cv_libc_glibc=yes",
+eval "ac_cv_libc_glibc=no")])
+if test "$ac_cv_libc_glibc" = "yes";then
+AC_DEFINE(HAVE_GLIBC)
+fi
+])
+
Index: acconfig.h
===================================================================
RCS file: /usr/local/cvsroot/arla/acconfig.h,v
retrieving revision 1.24
diff -u -w -r1.24 acconfig.h
--- acconfig.h 1998/03/28 23:16:42 1.24
+++ acconfig.h 1998/03/30 15:32:11
@@ -188,3 +188,5 @@
/* Define if your hstrerror need proto */
#undef NEED_HSTRERROR_PROTO
+/* Define if you have gnu libc */
+#undef HAVE_GLIBC
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/arla/configure.in,v
retrieving revision 1.104
diff -u -w -r1.104 configure.in
--- configure.in 1998/03/29 22:29:43 1.104
+++ configure.in 1998/03/30 15:32:11
@@ -344,6 +344,7 @@
fi])
AC_CHECK_LFS
+AC_CHECK_GLIBC
AC_SUBST(LIB_readline)
More information about the Arla-drinkers
mailing list