File: configure.in

package info (click to toggle)
gtkimageview 1.6.4%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,644 kB
  • ctags: 2,147
  • sloc: python: 10,555; sh: 9,137; ansic: 6,858; makefile: 155; xml: 7
file content (78 lines) | stat: -rw-r--r-- 2,234 bytes parent folder | download
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
######################################################################
##### Setup stuff ####################################################
######################################################################
AC_PREREQ(2.53)

AC_INIT(gtkimageview, 1.6.4)
AC_CONFIG_SRCDIR([src/gtkimageview.h])

# foreign makes it so I don't need stupid NEWS, INSTALL, etc files.
AM_INIT_AUTOMAKE([foreign])

######################################################################
##### Check for different programs ###################################
######################################################################

AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LIBTOOL

# Initialize GNOME environment
AX_COMPILER_FLAGS(error)
DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
AC_SUBST(DEPRECATED_FLAGS)

PKG_CHECK_MODULES(DEP,
    gtk+-2.0 >= 2.6.0)
AC_SUBST(DEP_CFLAGS)
AC_SUBST(DEP_LIBS)

# Check for glib utils
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
AC_PATH_PROG(GLIB_COMPILE_RESOURCES,[glib-compile-resources],no)
AC_MSG_CHECKING([glib-compile-resources])
if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
 GLIB_COMPILE_RESOURCES=""
  AC_MSG_RESULT([cannot be found in PATH.])
else
 AC_MSG_RESULT([usable.])
fi

# 1.8 introduced the --rebuild-sections and --rebuild-types options to
# 1.gtkdoc-scan that we need.
GTK_DOC_CHECK([1.8])

######################################################################
##### Twiddle CFLAGS #################################################
######################################################################
CFLAGS="${CFLAGS} -Wall -Werror -std=c99 -Wmissing-prototypes"


######################################################################
##### Output files ###################################################
######################################################################
AC_CONFIG_FILES([
gtkimageview.pc
Makefile
docs/Makefile
docs/reference/Makefile
src/Makefile
tests/Makefile
tests/testlib/Makefile
])

AC_OUTPUT

echo "

Configuration:

        Source code location:   ${srcdir}
        Compiler:               ${CC}
        CFLAGS:                 ${CFLAGS}


"