source: FTPfs/curlftpfs-0.9.1/configure.ac @ 104

Last change on this file since 104 was 10, checked in by zsjheng, 17 years ago
File size: 1.6 KB
RevLine 
[10]1AC_INIT(curlftpfs, 0.9.1)
2AM_INIT_AUTOMAKE
3AM_CONFIG_HEADER(config.h)
4
5AC_PROG_CC
6AC_PROG_CPP
7AC_PROG_INSTALL
8AC_PROG_LN_S
9AC_PROG_MAKE_SET
10AC_PROG_LIBTOOL
11export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
12
13PKG_CHECK_MODULES(GLIB, [glib-2.0])
14PKG_CHECK_MODULES(FUSE, [fuse >= 2.2])
15
16LIBCURL_CHECK_CONFIG([yes], [7.15.2], [], [AC_MSG_ERROR(["libcurl not found"])])
17if test "$libcurl_protocol_FTP" != yes; then
18  AC_MSG_ERROR(["We need libcurl with support for FTP protocol."])
19fi
20
21CFLAGS="$CFLAGS -Wall -W -D_REENTRANT $GLIB_CFLAGS $FUSE_CFLAGS $LIBCURL_CPPFLAGS"
22LIBS="$GLIB_LIBS $FUSE_LIBS $LIBCURL"
23
24have_fuse_opt_parse=no
25AC_CHECK_FUNC([fuse_opt_parse], [have_fuse_opt_parse=yes])
26
27# Checks for header files.
28AC_HEADER_STDC
29AC_CHECK_HEADERS([fcntl.h netinet/in.h stdint.h stdlib.h string.h unistd.h])
30
31# Checks for typedefs, structures, and compiler characteristics.
32AC_C_CONST
33AC_TYPE_UID_T
34AC_C_INLINE
35AC_TYPE_MODE_T
36AC_TYPE_OFF_T
37AC_TYPE_SIZE_T
38AC_CHECK_MEMBERS([struct stat.st_blksize])
39AC_STRUCT_ST_BLOCKS
40AC_CHECK_MEMBERS([struct stat.st_rdev])
41AC_HEADER_TIME
42AC_STRUCT_TM
43AC_TYPE_UINT32_T
44AC_TYPE_UINT64_T
45AC_TYPE_UINT8_T
46
47# Checks for library functions.
48AC_FUNC_CHOWN
49AC_FUNC_MALLOC
50AC_FUNC_MKTIME
51AC_FUNC_REALLOC
52AC_FUNC_SELECT_ARGTYPES
53AC_FUNC_STRFTIME
54AC_FUNC_UTIME_NULL
55AC_CHECK_FUNCS([ftruncate getpass memmove memset mkdir realpath rmdir select strchr strdup strrchr strstr strtoull utime])
56
57# Check for iconv
58AM_ICONV
59
60if test "$have_fuse_opt_parse" = no; then
61  CFLAGS="$CFLAGS -Icompat -I../compat"
62fi
63AM_CONDITIONAL(FUSE_OPT_COMPAT, test "$have_fuse_opt_parse" = no)
64
65AC_CONFIG_FILES([Makefile compat/Makefile tests/Makefile doc/Makefile])
66AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.