CXX=false
])
- dnl Checking os
- AC_MSG_CHECKING(OS)
- OS_DIR=`uname -s`
- if test ! -d kernel/$OS_DIR
- then
- AC_MSG_ERROR($OS_DIR - not supported!)
- else
- AC_MSG_RESULT($OS_DIR)
- fi
+dnl Checking os
+AC_MSG_CHECKING(OS)
+OS_DIR=`uname -s`
+if test ! -d kernel/$OS_DIR
+then
+ AC_MSG_ERROR($OS_DIR - not supported!)
+else
+ AC_MSG_RESULT($OS_DIR)
fi
AC_SUBST(OS_DIR)
+++ /dev/null
-ifneq ($(KERNELRELEASE),)
-obj-m := lufs.o
-lufs-objs := proc.o inode.o dir.o file.o symlink.o
-
-else
-KDIR=/lib/modules/`uname -r`/build
-PWD=`pwd`
-
-.DEFAULT:
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
-
-endif
--- /dev/null
+ ifdef KERNELRELEASE
+ include $(SUBDIRS)/makefile
+ else
+
+basedir=$(datadir)/lufs
+src26dir=$(basedir)/2.6
+
+src26= \
+ lufs.h proc.h \
+ proc.c inode.c dir.c file.c symlink.c
+
+src26_DATA= \
+ lufs.h proc.h \
+ proc.c inode.c dir.c file.c symlink.c \
+ makefile
+
+install-data-hook:
+ rm -f $(DESTDIR)$(src26dir)/Makefile
+ mv -f $(DESTDIR)$(src26dir)/makefile $(DESTDIR)$(src26dir)/Makefile
+
+EXTRA_DIST=$(src26) makefile.in
+
+ endif