Commit from LXDE Translation Project with Pootle by user andika.: 52 of 52 messages...
[lxde/gpicview.git] / configure.in
CommitLineData
1d48a247
HJYP
1dnl Process this file with autoconf to produce a configure script.
2
3AC_INIT(configure.in)
926b2623 4AM_INIT_AUTOMAKE(gpicview, 0.2.3)
1d48a247
HJYP
5AM_CONFIG_HEADER(config.h)
6AM_MAINTAINER_MODE
7
cf15ca10 8AC_LANG_C
1d48a247
HJYP
9AM_PROG_LIBTOOL
10
cf15ca10 11AC_ISC_POSIX
1d48a247
HJYP
12AC_PROG_CC
13AM_PROG_CC_STDC
7e1dcec1 14AM_PROG_CC_C_O
1d48a247
HJYP
15AC_HEADER_STDC
16
f453c5fd
JL
17# Support silent build rules. Disable by either passing --disable-silent-rules
18# to configure or passing V=1 to make
19AM_SILENT_RULES([yes])
20
58045517
JL
21AC_ARG_ENABLE(more_warnings,
22 [AC_HELP_STRING([--enable-more-warnings],
23 [Add more warnings @<:@default=no@:>@])],
24 [enable_more_warnings="${enableval}"],
25 [enable_more_warnings=no]
26)
27
28if test x"$enable_more_warnings" = x"yes"; then
adf169fa
JL
29 ADDITIONAL_FLAGS="-Wall -Werror=all -Werror=format -Werror=implicit-function-declaration -Werror=implicit-int -Werror=missing-braces -Werror=parentheses -Werror=return-type -Werror=strict-aliasing -Werror=switch -Wuninitialized -Werror=unused-label -Werror=unused-value -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Werror=missing-declarations -Wredundant-decls -Wmissing-noreturn -Wpointer-arith -Wcast-align -Wwrite-strings -Werror=inline -Werror=format-nonliteral -Wformat-nonliteral -Werror=format-security -Wformat-security -Winit-self -Werror=missing-include-dirs -Werror=undef -Werror=aggregate-return -Wmissing-format-attribute -Werror=nested-externs -fno-strict-aliasing -fmessage-length=0 -Wp,-D_FORTIFY_SOURCE=2 -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES"
30fi
31AC_SUBST(ADDITIONAL_FLAGS)
32
33
f54c74cf
HJYP
34AM_GLIB_GNU_GETTEXT
35IT_PROG_INTLTOOL([0.40.0])
36
58045517
JL
37AC_ARG_ENABLE(gtk3,
38AC_HELP_STRING([--enable-gtk3],[enable to use gtk-3.0 instead of gtk-2.0]),
39[case "${enableval}" in
40 yes) enable_gtk3=yes ;;
41 no) enable_gtk3=no ;;
42 *) AC_MSG_ERROR([bad value "${enableval}" for --enable-gtk3, use "yes" (default) or "no".]) ;;
43esac],[])
44
45if test "x$enable_gtk3" = "xyes" ; then
46 CFLAGS="$CFLAGS -DENABLE_GTK3"
47 gtk_modules="gtk+-3.0 >= 3.0.0"
48else
49 gtk_modules="gtk+-2.0 >= 2.12.0"
50fi
51PKG_CHECK_MODULES(GTK, [$gtk_modules])
52AC_SUBST(GTK_CFLAGS)
53AC_SUBST(GTK_LIBS)
54
55pkg_modules="x11"
1d48a247 56
05d97d07 57PKG_CHECK_MODULES(X11, [$pkg_modules])
7c3b160c
HJYP
58AC_CHECK_LIB(jpeg, jpeg_start_decompress, [],
59 [AC_MSG_ERROR([libjpeg not found])], -lm)
60AC_CHECK_HEADER(jpeglib.h, , [AC_MSG_ERROR([libjpeg not found])])
61LIBJPEG='-ljpeg'
62
54ac7ec7
AF
63AC_SUBST(X11_CFLAGS)
64AC_SUBST(X11_LIBS)
1d48a247
HJYP
65
66GETTEXT_PACKAGE=gpicview
67AC_SUBST(GETTEXT_PACKAGE)
68AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
69
1d48a247
HJYP
70AC_OUTPUT([
71Makefile
72src/Makefile
73data/Makefile
74po/Makefile.in
1d48a247
HJYP
75])
76
77echo
78echo GPicView....................... : Version $VERSION
79echo
80echo Prefix..........................: $prefix
81echo
82echo The binary will be installed in $prefix/bin
83echo
c9c60499 84echo http://lxde.org/
1d48a247 85echo