-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathconfigure.ac
51 lines (42 loc) · 1.21 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
49
50
51
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT([fuse-google-drive], [0])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip tar-ustar foreign])
AC_CONFIG_SRCDIR([.])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
#AC_CHECK_LIB([fuse], [fuse_main],
# [
# FUSE_LIBS=`pkg-config fuse --libs`
# FUSE_CFLAGS=`pkg-config fuse --cflags`
# AC_SUBST([FUSE_LIBS])
# AC_SUBST([FUSE_CFLAGS])
# ],
# [AC_MSG_ERROR([FUSE library is missing])],
# )
PKG_CHECK_MODULES([fuse], [fuse])
PKG_CHECK_MODULES([curl], [libcurl])
PKG_CHECK_MODULES([json], [json],,
[
AC_MSG_NOTICE([try json-c lib...])
PKG_CHECK_MODULES([json], [json-c])
]
)
PKG_CHECK_MODULES([xml], [libxml-2.0])
# Checks for header files.
#CFLAGS="$CFLAGS $FUSE_CFLAGS"
#AC_CHECK_HEADER([fuse.h],,[AC_MSG_ERROR([<fuse.h> header not found])], [AC_INCLUDES_DEFAULT])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS([utime])
AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT