Mercurial > geeqie
annotate configure.in @ 465:b8731e13028b
renamed no.po to nb.po
author | nadvornik |
---|---|
date | Mon, 21 Apr 2008 18:09:30 +0000 |
parents | 6cb3c072be3f |
children | 35991929975d |
rev | line source |
---|---|
1 | 1 AC_INIT(src/main.c) |
8 | 2 AC_CONFIG_HEADER(config.h) |
7 | 3 |
195 | 4 AM_INIT_AUTOMAKE(geeqie, alpha0) |
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.)) |
308
6cb3c072be3f
ui_icons.h and icons_inline.h depend on gdk-pixbuf-csource,
zas_
parents:
305
diff
changeset
|
22 AC_PATH_PROGS(GDK_PIXBUF_CSOURCE, "gdk-pixbuf-csource") |
1 | 23 |
283 | 24 AC_DEFINE_UNQUOTED(GQ_HELPDIR, "$prefix/share/doc/geeqie-$VERSION", [Location of documentation files]) |
25 AC_DEFINE_UNQUOTED(GQ_HTMLDIR, "$prefix/share/doc/geeqie-$VERSION/html", [Location of html documentation]) | |
1 | 26 |
8 | 27 dnl checks for functions |
276 | 28 AC_CHECK_FUNCS(strverscmp access fsync fflush) |
1 | 29 |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
30 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
|
31 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
|
32 |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
33 have_lcms=no |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
34 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
|
35 AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [ |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
36 AC_CHECK_HEADER(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_CHECK_HEADER(lcms/lcms.h, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
39 have_lcms=yes |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
40 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
|
41 [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
|
42 ]) |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
43 ]) |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
44 if test "$have_lcms" = "yes"; then |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
45 LCMS_LIBS="-llcms" |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
46 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
|
47 else |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
48 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
|
49 fi |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
50 else |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
51 have_lcms="no (lcms support disabled)" |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
52 fi |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
53 AC_SUBST(LCMS_LIBS) |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
99
diff
changeset
|
54 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
|
55 |
192 | 56 AC_ARG_WITH(exiv2, [ --without-exiv2 build without exiv2 support]) |
57 | |
58 have_exiv2=no | |
59 | |
60 if test "x$with_exiv2" != "xno"; then | |
61 PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.11, | |
62 [ have_exiv2=yes | |
63 AC_DEFINE(HAVE_EXIV2, 1, have exiv2) ], | |
64 [ AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] ) | |
65 fi | |
66 | |
67 | |
465 | 68 ALL_LINGUAS="ar be bg ca cs da de eo es et eu fi fr hu id it ja ko nl nb pl pt_BR ro ru sk sl sv th tr uk vi zh_CN.GB2312 zh_TW" |
8 | 69 GETTEXT_PACKAGE=$PACKAGE |
70 AC_SUBST(GETTEXT_PACKAGE) | |
71 AM_GLIB_GNU_GETTEXT | |
283 | 72 AM_GLIB_DEFINE_LOCALEDIR(GQ_LOCALEDIR) |
1 | 73 |
305 | 74 #Always use -Wall with gcc |
75 if test "x$ac_cv_c_compiler_gnu" = "xyes"; then | |
76 CFLAGS="$CFLAGS -Wall" | |
77 CPPFLAGS="$CPPFLAGS -Wall" | |
78 fi | |
79 | |
1 | 80 AC_SUBST(CFLAGS) |
81 AC_SUBST(CPPFLAGS) | |
82 AC_SUBST(LDFLAGS) | |
83 | |
84 AC_OUTPUT([ | |
85 Makefile | |
86 src/Makefile | |
87 src/icons/Makefile | |
91
d063f97503b7
Wed Nov 1 11:39:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
75
diff
changeset
|
88 src/icons/svg/Makefile |
8 | 89 po/Makefile.in |
90 doc/Makefile | |
197 | 91 geeqie.spec |
1 | 92 ]) |
8 | 93 |