1 --- eog-0.6/configure.in~ Thu Feb 15 03:03:34 2001
2 +++ eog-0.6/configure.in Sun Aug 25 18:47:50 2002
7 -AM_PROG_XML_I18N_TOOLS
8 +AC_PROG_XML_I18N_TOOLS
11 AM_ACLOCAL_INCLUDE(macros)
14 ALL_LINGUAS="az ca cs da de el es et fi fr ga gl hu it ja ko lt nl no pl pt_BR ro ru sl sv tr uk zh_CN.GB2312 zh_TW.Big5"
21 AM_PATH_GDK_PIXBUF(0.9.0, ,AC_MSG_ERROR([Need gdk-pixbuf-0.9.0 or later!]))
23 AM_PATH_GCONF(0.12,,,gconf-gtk)
26 if test -z "$LIBJPEG"; then
27 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
30 - AC_MSG_WARN(*** JPEG saving code will not be built (JPEG library not found) ***))
32 + AC_MSG_WARN([*** JPEG saving code will not be built (JPEG library not found) ***]))
33 if test "$jpeg_ok" = yes; then
34 AC_MSG_CHECKING([for jpeglib.h])
39 #include <jpeglib.h>],
43 AC_MSG_RESULT($jpeg_ok)
44 if test "$jpeg_ok" = yes; then
46 AC_CHECK_LIB(jpeg, jpeg_simple_progression,
47 - AC_DEFINE(HAVE_PROGRESSIVE_JPEG),
48 - AC_MSG_WARN(JPEG library does not support progressive saving.))
49 + [AC_DEFINE(HAVE_PROGRESSIVE_JPEG)],
50 + [AC_MSG_WARN([JPEG library does not support progressive saving.])])
52 - AC_MSG_WARN(*** JPEG saving code will not be built (JPEG header file not found) ***)
53 + AC_MSG_WARN([*** JPEG saving code will not be built (JPEG header file not found) ***])
59 if test -z "$LIBPNG"; then
60 AC_CHECK_LIB(png, png_read_info,
61 - AC_CHECK_HEADER(png.h,
64 - AC_MSG_WARN(*** PNG saving code will not be built (PNG library not found) ***), -lz -lm)
65 + [AC_CHECK_HEADER(png.h,
68 + AC_MSG_WARN([*** PNG saving code will not be built (PNG library not found) ***]))
69 if test "$png_ok" = yes; then
70 AC_MSG_CHECKING([for png_structp in png.h])
71 AC_TRY_COMPILE([#include <png.h>],
72 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
76 AC_MSG_RESULT($png_ok)
77 if test "$png_ok" = yes; then
78 PNG='png'; LIBPNG='-lpng -lz'
80 - AC_MSG_WARN(*** PNG saving code will not be built (PNG library is too old) ***)
81 + AC_MSG_WARN([*** PNG saving code will not be built (PNG library is too old) ***])
84 - AC_MSG_WARN(*** PNG saving code will not be built (PNG header file not found) ***)
85 + AC_MSG_WARN([*** PNG saving code will not be built (PNG header file not found) ***])
88 if test "x$png_ok" = "xyes" ; then
94 dnl ******************************
95 dnl More compiler warnings
96 dnl ******************************
98 -AC_ARG_ENABLE(more-warnings,
99 -[ --enable-more-warnings Maximum compiler warnings],
100 -set_more_warnings="$enableval",[set_more_warnings=no])
102 -realsave_CFLAGS="$CFLAGS"
103 -AC_MSG_CHECKING(for more warnings, including -Werror)
104 -if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
106 - warning_flags="-Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Werror"
107 - CFLAGS="$warning_flags $CFLAGS"
109 - for option in -Wsign-promo -Wno-sign-compare; do
110 - SAVE_CFLAGS="$CFLAGS"
111 - CFLAGS="$CFLAGS $option"
112 - AC_MSG_CHECKING([whether gcc understands $option])
113 - AC_TRY_COMPILE([], [],
116 - CFLAGS="$SAVE_CFLAGS"
117 - AC_MSG_RESULT($has_option)
118 - if test $has_option = yes; then
119 - warning_flags="$warning_flags $option"
128 -CFLAGS="$realsave_CFLAGS"
129 -EXTRA_WARNING_CFLAGS="$warning_flags"
130 -AC_SUBST(EXTRA_WARNING_CFLAGS)
131 +GNOME_COMPILE_WARNINGS