-
Notifications
You must be signed in to change notification settings - Fork 10
/
configure.ac
48 lines (38 loc) · 1.12 KB
/
configure.ac
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([ntapfuse], [0.2], [[email protected]])
AC_LANG([C])
AC_CONFIG_SRCDIR([src/ntapfuse.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([gnu])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
# Checks for libraries.
AC_CHECK_LIB([fuse], [fuse_main], , AC_MSG_ERROR([unable to link libcurl]))
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([limits.h stdlib.h string.h sys/statfs.h unistd.h])
AC_CHECK_HEADER([fuse.h], , AC_MSG_ERROR([unable to find libfuse headers]),
[
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_FUNC_CHOWN
AC_FUNC_ERROR_AT_LINE
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_CHECK_FUNCS([fdatasync memset mkdir realpath rmdir utime])
PKG_CHECK_MODULES([fuse], [fuse])
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT