diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-07 12:09:43 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-07 12:09:43 +0000 |
commit | 97c61e98b4cb4115c5d1191edefdab125a9e16fd (patch) | |
tree | b67b00056e2bf76ef5019b81817b3e1817e99427 /configure.in | |
parent | 2df1c04f30802df9a23a19e22042884430c429d2 (diff) | |
download | libfuse-97c61e98b4cb4115c5d1191edefdab125a9e16fd.tar.gz |
build with automake
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..df5a457 --- /dev/null +++ b/configure.in @@ -0,0 +1,34 @@ +AC_INIT(lib/fuse.c) +AM_INIT_AUTOMAKE(fuse, 1.0) +AM_CONFIG_HEADER(include/config.h) + +AC_PROG_CC +AC_PROG_RANLIB + +CFLAGS="-Wall -W -g -O2" + +AC_MSG_CHECKING([kernel source directory]) +kernelsrc= +AC_ARG_WITH(kernel, + [ --with-kernel Specify location of kernel source ], + [kernelsrc="$withval"]) + +if test -z "$kernelsrc"; then + buildlink=/lib/modules/`uname -r`/build + if test -e $buildlink; then + kernelsrc=`(cd $buildlink; /bin/pwd)` + else + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([ +*** Please specify the location of the kernel source with +*** the '--with-kernel=SRCDIR' option]) + fi +fi +AC_MSG_RESULT([$kernelsrc]) + +KERNINCLUDE=$kernelsrc/include +AC_SUBST(KERNINCLUDE) + +AC_OUTPUT([Makefile kernel/Makefile lib/Makefile example/Makefile]) + + |