From 5790bf7cd0bcf3a9bf6d364e9bc6601b30feff8b Mon Sep 17 00:00:00 2001 From: Jim Rees Date: Fri, 20 Jan 2006 16:40:24 +0000 Subject: [PATCH] host-cpu-20060120 Introduce @HOST_CPU@ and use it to find correct headers for FreeBSD build. --- acinclude.m4 | 9 ++++++--- src/libafs/MakefileProto.FBSD.in | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 69739b1908..2474635509 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -892,6 +892,8 @@ if test "$enable_obsolete" = "yes"; then WITH_OBSOLETE=YES fi +HOST_CPU="$host_cpu" + if test "x$with_bsd_kernel_headers" != "x"; then BSD_KERNEL_PATH="$with_bsd_kernel_headers" else @@ -902,11 +904,11 @@ if test "x$with_bsd_kernel_build" != "x"; then BSD_KERNEL_BUILD="$with_bsd_kernel_build" else case $AFS_SYSNAME in - i386_fbsd_4?) + *_fbsd_4?) BSD_KERNEL_BUILD="${BSD_KERNEL_PATH}/compile/GENERIC" ;; - i386_fbsd_*) - BSD_KERNEL_BUILD="${BSD_KERNEL_PATH}/i386/compile/GENERIC" + *_fbsd_*) + BSD_KERNEL_BUILD="${BSD_KERNEL_PATH}/${HOST_CPU}/compile/GENERIC" ;; esac fi @@ -1078,6 +1080,7 @@ AC_SUBST(AFS_PARAM_COMMON) AC_SUBST(ENABLE_KERNEL_MODULE) AC_SUBST(LIB_AFSDB) AC_SUBST(LINUX_KERNEL_PATH) +AC_SUBST(HOST_CPU) AC_SUBST(BSD_KERNEL_PATH) AC_SUBST(BSD_KERNEL_BUILD) AC_SUBST(LINUX_VERSION) diff --git a/src/libafs/MakefileProto.FBSD.in b/src/libafs/MakefileProto.FBSD.in index fd72bd2012..928e8afa38 100644 --- a/src/libafs/MakefileProto.FBSD.in +++ b/src/libafs/MakefileProto.FBSD.in @@ -67,7 +67,7 @@ setup: ln -fs ../Makefile.common $(KOBJ)/Makefile.common -$(RM) -f h net netinet rpc ufs nfs machine sys vm -ln -fs ${KSRC}/net net - -ln -fs ${KSRC}/i386/include machine + -ln -fs ${KSRC}/@HOST_CPU@/include machine -ln -fs ${KSRC}/netinet netinet -ln -fs ${KSRC}/nfs nfs -ln -fs /usr/include/rpc rpc