Mercurial > geeqie.yaz
annotate configure.in @ 182:8a417f10ba09
more exiv2 fixes
author | nadvornik |
---|---|
date | Wed, 13 Feb 2008 23:02:48 +0000 |
parents | 0ca3b4c8ffae |
children | d324b284e183 |
rev | line source |
---|---|
1 | 1 AC_INIT(src/main.c) |
8 | 2 AC_CONFIG_HEADER(config.h) |
7 | 3 |
124
648881af5fb1
Sat Dec 2 20:47:12 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
4 AM_INIT_AUTOMAKE(gqview, 2.1.5) |
1 | 5 |
6 AM_MAINTAINER_MODE | |
7 | |
8 AC_ISC_POSIX | |
9 AC_PROG_CC | |
177 | 10 AC_PROG_CXX |
1 | 11 AC_STDC_HEADERS |
12 AC_ARG_PROGRAM | |
13 | |
14 dnl reasonable guesses for where stuff is installed | |
15 if test "x$prefix" = "xNONE"; then | |
16 prefix="/usr/local" | |
17 else | |
18 prefix=$prefix | |
19 fi | |
20 | |
8 | 21 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.)) |
1 | 22 |
10 | 23 AC_DEFINE_UNQUOTED(GQVIEW_HELPDIR, "$prefix/share/doc/gqview-$VERSION", [Location of documentation files]) |
8 | 24 AC_DEFINE_UNQUOTED(GQVIEW_HTMLDIR, "$prefix/share/doc/gqview-$VERSION/html", [Location of html documentation]) |
1 | 25 |
8 | 26 dnl checks for functions |
27 AC_CHECK_FUNCS(strverscmp) | |
1 | 28 |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
29 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
|
30 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
|
31 |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
32 have_lcms=no |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
33 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
|
34 AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [ |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
35 AC_CHECK_HEADER(lcms.h, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
36 have_lcms=yes, [ |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
37 AC_CHECK_HEADER(lcms/lcms.h, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
38 have_lcms=yes |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
39 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
|
40 [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
|
41 ]) |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
42 ]) |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
43 if test "$have_lcms" = "yes"; then |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
44 LCMS_LIBS="-llcms" |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
45 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
|
46 else |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
47 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
|
48 fi |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
49 else |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
50 have_lcms="no (lcms support disabled)" |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
51 fi |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
52 |
177 | 53 |
54 PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.11, | |
55 [ have_exiv2=yes | |
56 AC_DEFINE(HAVE_EXIV2, 1, have exiv2) ], | |
57 [ have_exiv2=no | |
58 AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] ) | |
59 | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
60 AC_SUBST(LCMS_LIBS) |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
61 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
|
62 |
92
3c0eeb66ce1b
Thu Nov 2 06:46:14 2006 John Ellis <johne@verizon.net>
gqview
parents:
91
diff
changeset
|
63 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 | 64 GETTEXT_PACKAGE=$PACKAGE |
65 AC_SUBST(GETTEXT_PACKAGE) | |
66 AM_GLIB_GNU_GETTEXT | |
10 | 67 AM_GLIB_DEFINE_LOCALEDIR(GQVIEW_LOCALEDIR) |
1 | 68 |
69 AC_SUBST(CFLAGS) | |
70 AC_SUBST(CPPFLAGS) | |
71 AC_SUBST(LDFLAGS) | |
72 | |
73 AC_OUTPUT([ | |
74 Makefile | |
75 src/Makefile | |
76 src/icons/Makefile | |
91
d063f97503b7
Wed Nov 1 11:39:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
75
diff
changeset
|
77 src/icons/svg/Makefile |
8 | 78 po/Makefile.in |
79 doc/Makefile | |
80 gqview.spec | |
1 | 81 ]) |
8 | 82 |