File: configure.ac

package info (click to toggle)
gphotofs 0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,580 kB
  • sloc: sh: 10,616; ansic: 709; makefile: 23
file content (56 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download | duplicates (2)
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
52
53
54
55
56
AC_PREREQ(2.59)
AC_INIT([gphoto filesystem], [0.5], [gphoto-devel@lists.sourceforge.net], [gphotofs])
AC_CONFIG_SRCDIR([gphotofs.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([auto-aux])
dnl AC_CONFIG_MACRO_DIR([auto-m4])
AM_INIT_AUTOMAKE([gnu 1.8 dist-bzip2])

if test ! -d "$srcdir/m4m"; then
AC_MSG_ERROR([
You are missing the m4m/ directory in your top
$PACKAGE_TARNAME source directory.

You are probably using an ill-maintained SVN tree.
Running

    cd $srcdir
    svn up

and re-running autogen.sh might help.
])
fi

GP_CHECK_SHELL_ENVIRONMENT

AC_PROG_CC
AC_PROG_CPP
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AM_PROG_CC_C_O

GP_PKG_CONFIG

PKG_CHECK_MODULES([FUSE], [fuse >= 2.5])
AC_SUBST([FUSE_CFLAGS])
AC_SUBST([FUSE_LIBS])

PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.6])
AC_SUBST([GLIB_CFLAGS])
AC_SUBST([GLIB_LIBS])

GP_CHECK_LIBRARY([LIBGPHOTO2], [libgphoto2], [>= 2.5])

ALL_LINGUAS=""
GETTEXT_PACKAGE="gphotofs"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
                   [Define to the Gettext package name.])
AM_GLIB_GNU_GETTEXT

AC_CONFIG_FILES([
Makefile
m4m/Makefile
])
AC_OUTPUT
GP_CONFIG_OUTPUT