File: configure.ac

package info (click to toggle)
fuse-umfuse-ext2 0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 1,452 kB
  • ctags: 86
  • sloc: sh: 9,043; ansic: 1,377; makefile: 25
file content (51 lines) | stat: -rw-r--r-- 1,550 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.60)
AC_INIT([fuse-umfuse-ext2], [0.3], [info@v2.cs.unibo.it])
AM_INIT_AUTOMAKE([foreign dist-bzip2 1.10])
AC_CONFIG_SRCDIR([fuseext2.c])
AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL

# Checks for libraries.
AC_CHECK_LIB([fuse], [fuse_main], [FUSE_LIBS="-lfuse"],
    [AC_MSG_ERROR([Can't find libfuse, please install it])])
AC_CHECK_LIB([ext2fs], [ext2fs_unlink], [EXT2FS_LIBS="-lext2fs"],
    [AC_MSG_ERROR([Can't find libext2fs, please install it])])

AC_CHECK_LIB([umlib], [um_add_service], [UMLIB_LIBS="-lumlib"],
    [AC_MSG_ERROR([Can't find libumlib, please install it])])

AC_MSG_CHECKING([if FUSE on this system is too new for us])
AC_EGREP_CPP([yes], [
#include "fuse.h"
#if FUSE_VERSION > 26
yes
#endif
], AC_DEFINE([FUSE_USE_VERSION], [26], [Version of FUSE interface]) AC_MSG_RESULT([yes]),
   AC_DEFINE([FUSE_USE_VERSION], [FUSE_VERSION], [Version of FUSE interface]) AC_MSG_RESULT([no]))

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h string.h sys/statfs.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_CHECK_MEMBERS([struct stat.st_blksize])
AC_STRUCT_ST_BLOCKS
AC_CHECK_MEMBERS([struct stat.st_rdev])

# Checks for library functions.
AC_CHECK_FUNCS([memset strdup strrchr])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT