annotate configure.in @ 113:55166d93498d

Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net> * configure.in: Add test for lcms (little cms). * Makefile.am: Add color-man.[ch]: * color-man.[ch]: New files for color management support. * globals.c, gqview.h, main.c, rcfile.c, typedefs.h: Add color profile variables and option saving. * image.[ch]: Add color profile functions. * layout.c, layout_image.[ch]: Add color profile icon, popup menu, and fix sort menu to use radio buttons. * menu.c: Use radio buttons for sort menu when appropriate. * preferences.c: Add color profile options to preferences. * ui_menu.[ch]: Add menu_item_add_radio() for radio item menus. * ui_misc.c: Fix gtk_table_attach() arg for vertical expansion. * view_file_icon.c, view_file_list.c: Check for active state in sort menu callbacks. * README: Add info about lcms, and how to disable.
author gqview
date Sat, 25 Nov 2006 03:00:33 +0000
parents d19b0de6d0bb
children 648881af5fb1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
1 AC_INIT(src/main.c)
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
2 AC_CONFIG_HEADER(config.h)
7
990fcf466906 really break configure
gqview
parents: 5
diff changeset
3
99
d19b0de6d0bb Sat Nov 4 17:14:47 2006 John Ellis <johne@verizon.net>
gqview
parents: 98
diff changeset
4 AM_INIT_AUTOMAKE(gqview, 2.1.4)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
5
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
6 AM_MAINTAINER_MODE
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
7
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
8 AC_ISC_POSIX
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
9 AC_PROG_CC
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
10 AC_STDC_HEADERS
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
11 AC_ARG_PROGRAM
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
12
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
13 dnl reasonable guesses for where stuff is installed
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
14 if test "x$prefix" = "xNONE"; then
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
15 prefix="/usr/local"
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
16 else
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
17 prefix=$prefix
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
18 fi
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
19
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
20 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
21
10
6d50eaba8e4b ########
gqview
parents: 8
diff changeset
22 AC_DEFINE_UNQUOTED(GQVIEW_HELPDIR, "$prefix/share/doc/gqview-$VERSION", [Location of documentation files])
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
23 AC_DEFINE_UNQUOTED(GQVIEW_HTMLDIR, "$prefix/share/doc/gqview-$VERSION/html", [Location of html documentation])
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
24
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
25 dnl checks for functions
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
26 AC_CHECK_FUNCS(strverscmp)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
27
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
28 dnl check for little cms (lcms, this test pulled from gimp)
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
29 AC_ARG_WITH(lcms, [ --without-lcms build without lcms support])
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
30
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
31 have_lcms=no
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
32 if test "x$with_lcms" != "xno"; then
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
33 AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
34 AC_CHECK_HEADER(lcms.h,
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
35 have_lcms=yes, [
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
36 AC_CHECK_HEADER(lcms/lcms.h,
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
37 have_lcms=yes
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
38 AC_DEFINE(HAVE_LCMS_LCMS_H, 1,
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
39 [Define to 1 if the lcms header must be included as lcms/lcms.h]))
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
40 ])
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
41 ])
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
42 if test "$have_lcms" = "yes"; then
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
43 LCMS_LIBS="-llcms"
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
44 AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
45 else
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
46 have_lcms="no (lcms not found or unusable)"
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
47 fi
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
48 else
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
49 have_lcms="no (lcms support disabled)"
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
50 fi
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
51
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
52 AC_SUBST(LCMS_LIBS)
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
53 AM_CONDITIONAL(HAVE_LCMS, test "$have_lcms" = "yes")
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
54
92
3c0eeb66ce1b Thu Nov 2 06:46:14 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
55 ALL_LINGUAS="ar be bg ca cs da de eo es et eu fi fr hu id it ja ko nl no pl pt_BR ro ru sk sl sv th tr uk vi zh_CN.GB2312 zh_TW"
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
56 GETTEXT_PACKAGE=$PACKAGE
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
57 AC_SUBST(GETTEXT_PACKAGE)
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
58 AM_GLIB_GNU_GETTEXT
10
6d50eaba8e4b ########
gqview
parents: 8
diff changeset
59 AM_GLIB_DEFINE_LOCALEDIR(GQVIEW_LOCALEDIR)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
60
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
61 AC_SUBST(CFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
62 AC_SUBST(CPPFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
63 AC_SUBST(LDFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
64
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
65 AC_OUTPUT([
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
66 Makefile
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
67 src/Makefile
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
68 src/icons/Makefile
91
d063f97503b7 Wed Nov 1 11:39:48 2006 John Ellis <johne@verizon.net>
gqview
parents: 75
diff changeset
69 src/icons/svg/Makefile
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
70 po/Makefile.in
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
71 doc/Makefile
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
72 gqview.spec
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
73 ])
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
74