2 # Source file to generate "./configure" to prepare package for compilation
3 # Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 AC_INIT(src/libntfs.conf.in)
20 AM_INIT_AUTOMAKE(ntfsprogs-gnomevfs,1.0.2)
21 AM_CONFIG_HEADER(config.h)
27 dnl Do not discard 'CFLAGS' settings as they may have been passed us by rpmbuild(8)
29 if test "$USE_MAINTAINER_MODE" = "yes";then
30 CFLAGS="$CFLAGS -ggdb3 -Wall -Wstrict-prototypes -Wsign-compare" ## FIXME: fix all sources: -Wsign-compare
34 AM_PATH_GLIB_2_0(,,[AC_MSG_ERROR([Captive requires glib-2.0 library.])],[gmodule gobject])
35 dnl Force glib-2.0 for the whole package
36 CFLAGS="$CFLAGS $GLIB_CFLAGS"
37 LIBS="$LIBS $GLIB_LIBS"
39 PKG_CHECK_MODULES(GNOME_VFS_MODULE,gnome-vfs-module-2.0)
40 dnl Force gnome-vfs-module-2.0 for the whole package
41 CFLAGS="$CFLAGS $GNOME_VFS_MODULE_CFLAGS"
42 LIBS="$LIBS $GNOME_VFS_MODULE_LIBS"
44 AC_CHECK_LIB(ntfs,ntfs_mount,
45 [ LIBS="$LIBS -lntfs" ],
46 [ AC_MSG_ERROR([ntfsprogs-devel package requires for this program.]) ])
52 dnl "Makefile" output files MUST have pathnames incl./excl. "./" prefix as specified!
54 ntfsprogs-gnomevfs.spec