Introduced a pkg-config check for libntfs-3g at configure time, using the CFLAGS and LDFLAGS specified in the .pc file.
parent
9e20bbeec4
commit
16ba09b70f
|
@ -232,6 +232,10 @@ if test "$enable_fuse_module" != "no"; then
|
|||
fi
|
||||
AM_CONDITIONAL(ENABLE_FUSE_MODULE, $compile_fuse_module)
|
||||
|
||||
PKG_CHECK_MODULES(NTFS_3G_MODULE, libntfs-3g >= 2009.4.4, [],
|
||||
AC_MSG_ERROR([ntfs-3g.progs requires libntfs-3g version >= 2009.4.4.])
|
||||
)
|
||||
|
||||
# Autodetect whether we can build crypto stuff or not.
|
||||
compile_crypto=false
|
||||
if test "$enable_crypto" != "no"; then
|
||||
|
|
|
@ -3,8 +3,9 @@ AM_LIBS =
|
|||
AM_LFLAGS = -static
|
||||
STATIC_LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
else
|
||||
AM_LIBS =
|
||||
AM_LFLAGS = $(all_libraries) -lntfs-3g
|
||||
AM_LIBS = $(NTFS_3G_MODULE_LIBS)
|
||||
AM_CFLAGS = $(NTFS_3G_MODULE_CFLAGS)
|
||||
AM_LFLAGS = $(all_libraries)
|
||||
LIBTOOL_LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue