Version: 1.0 -> 1.0.1cvs
[ntfsprogs-gnomevfs.git] / configure.ac
1 # $Id$
2 # Source file to generate "./configure" to prepare package for compilation
3 # Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
4
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
8
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.
13
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
17
18
19 AC_INIT(src/libntfs.conf.in)
20 AM_INIT_AUTOMAKE(ntfsprogs-gnomevfs,1.0.1cvs)
21 AM_CONFIG_HEADER(config.h)
22 AM_MAINTAINER_MODE
23 AM_ENABLE_SHARED
24 AM_DISABLE_STATIC
25 AM_PROG_LIBTOOL
26
27 dnl Do not discard 'CFLAGS' settings as they may have been passed us by rpmbuild(8)
28
29 if test "$USE_MAINTAINER_MODE" = "yes";then
30         CFLAGS="$CFLAGS -ggdb3 -Wall -Wstrict-prototypes -Wsign-compare"  ## FIXME: fix all sources: -Wsign-compare
31         fi
32
33
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"
38
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"
43
44 AC_CHECK_LIB(ntfs,ntfs_mount,
45         [ LIBS="$LIBS -lntfs" ],
46         [ AC_MSG_ERROR([ntfsprogs-devel package requires for this program.]) ])
47
48
49 AC_SUBST(CFLAGS)
50 AC_SUBST(LIBS)
51
52 dnl "Makefile" output files MUST have pathnames incl./excl. "./" prefix as specified!
53 AC_OUTPUT([
54 ntfsprogs-gnomevfs.spec
55 ./src/libntfs.conf
56 Makefile
57 ./macros/Makefile
58 ./src/Makefile
59 ./debian/changelog
60 ])
61
62 echo done.