|
From: Dirk M. <mu...@kd...> - 2004-01-03 15:21:43
|
CVS commit by mueller:
infrastructure. Yes, it doesn't do much yet.
A coregrind/arch/.cvsignore 1.1
A coregrind/arch/Makefile.am 1.1
A coregrind/arch/x86-freebsd/.cvsignore 1.1
A coregrind/arch/x86-freebsd/Makefile.am 1.1
A coregrind/arch/x86-linux/.cvsignore 1.1
A coregrind/arch/x86-linux/Makefile.am 1.1
M +40 -28 configure.in 1.104
--- valgrind/configure.in #1.103:1.104
@@ -79,44 +79,53 @@
AC_MSG_CHECKING([for a supported OS])
+AC_SUBST(VG_PLATFORM)
case "${host_os}" in
- *linux*)
+ *linux*)
AC_MSG_RESULT([ok (${host_os})])
- ;;
+ VG_PLATFORM="x86-linux"
- *)
- AC_MSG_RESULT([no (${host_os})])
- AC_MSG_ERROR([Valgrind is Linux specific. Sorry])
- ;;
-esac
+ # Ok, this is linux. Check the kernel version
+ AC_MSG_CHECKING([for the kernel version])
+ kernel=`uname -r`
-# Ok, this is linux. Check the kernel version
-AC_MSG_CHECKING([for the kernel version])
+ case "${kernel}" in
+ 2.6.*)
+ AC_MSG_RESULT([2.6 family (${kernel})])
+ AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
+ ;;
+
+ 2.4.*)
+ AC_MSG_RESULT([2.4 family (${kernel})])
+ AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
+ ;;
+
+ 2.2.*)
+ AC_MSG_RESULT([2.2 family (${kernel})])
+ AC_DEFINE([KERNEL_2_2], 1, [Define to 1 if you're using Linux 2.2.x])
+ ;;
+
+ *)
+ AC_MSG_RESULT([unsupported (${kernel})])
+ AC_MSG_ERROR([Valgrind works on kernels 2.2, 2.4, 2.6])
+ ;;
+ esac
-kernel=`uname -r`
+ ;;
+
+ *freebsd*)
+ AC_MSG_RESULT([ok (${host_os})])
+ VG_PLATFORM="x86-freebsd"
-case "${kernel}" in
- 2.6.*)
- AC_MSG_RESULT([2.6 family (${kernel})])
- AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
- ;;
-
- 2.4.*)
- AC_MSG_RESULT([2.4 family (${kernel})])
- AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
- ;;
-
- 2.2.*)
- AC_MSG_RESULT([2.2 family (${kernel})])
- AC_DEFINE([KERNEL_2_2], 1, [Define to 1 if you're using Linux 2.2.x])
- ;;
+ ;;
*)
- AC_MSG_RESULT([unsupported (${kernel})])
- AC_MSG_ERROR([Valgrind works on kernels 2.2, 2.4, 2.6])
- ;;
+ AC_MSG_RESULT([no (${host_os})])
+ AC_MSG_ERROR([Valgrind is operating system specific. Sorry. Please consider doing a port.])
+ ;;
esac
+
AC_SUBST(DEFAULT_SUPP)
@@ -349,4 +358,7 @@
auxprogs/Makefile
coregrind/Makefile
+ coregrind/arch/Makefile
+ coregrind/arch/x86-linux/Makefile
+ coregrind/arch/x86-freebsd/Makefile
coregrind/demangle/Makefile
coregrind/docs/Makefile
|