annotate configure.in @ 550:00462776e9a2

Fix a Pango warning related to UTF8 when displaying internationalized description in Advanced Exif Properties panel.
author zas_
date Fri, 02 May 2008 22:59:04 +0000
parents bf9c9e37adf4
children c0dda0ffb931
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
487
d2a94917ee57 fixed version string ;)
nadvornik
parents: 486
diff changeset
4 AM_INIT_AUTOMAKE(geeqie, 1.0alpha1)
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
177
0ca3b4c8ffae started exiv2 integration
nadvornik
parents: 124
diff changeset
10 AC_PROG_CXX
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
11 AC_STDC_HEADERS
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
12 AC_ARG_PROGRAM
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
13
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
14 dnl reasonable guesses for where stuff is installed
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
15 if test "x$prefix" = "xNONE"; then
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
16 prefix="/usr/local"
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
17 else
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
18 prefix=$prefix
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
19 fi
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
20
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
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
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
23
484
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
24 AC_ARG_WITH(readmedir, [ --with-readmedir=DIR install path for readme files],
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
25 readmedir=$withval, readmedir="$prefix/share/doc/geeqie-$VERSION")
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
26 AC_ARG_WITH(htmldir, [ --with-htmldir=DIR install path for html files],
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
27 htmldir=$withval, htmldir="$readmedir/html")
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
28
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
29 AC_DEFINE_UNQUOTED(GQ_HELPDIR, "$readmedir", [Location of documentation files])
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
30 AC_DEFINE_UNQUOTED(GQ_HTMLDIR, "$htmldir", [Location of html documentation])
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
31
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
32 AC_SUBST(readmedir)
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
33 AC_SUBST(htmldir)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
34
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
35 dnl Check for LIRC client support
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
36 AC_ARG_ENABLE(lirc, AC_HELP_STRING([--disable-lirc], [do not use lirc support (auto)]),
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
37 [
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
38 if test x"${enableval}" = x"yes" -a x"$GCC" = x"yes"; then
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
39 AC_MSG_RESULT(yes)
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
40 lirc=yes
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
41 else
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
42 AC_MSG_RESULT(no)
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
43 lirc=no
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
44 fi], AC_MSG_RESULT(no))
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
45
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
46
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
47 AC_ARG_WITH(lirc-prefix,
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
48 [ --with-lirc-prefix=PATH Prefix where LIRC is installed],
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
49 [
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
50 for dir in `echo "$withval" | tr : ' '`; do
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
51 if test -d $dir/lib; then CPPFLAGS="$CPPFLAGS -L$dir/lib"; fi
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
52 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
53 done
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
54 ])
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
55
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
56 if test x$lirc != x"no" ; then
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
57 AC_CHECK_HEADER(lirc/lirc_client.h,
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
58 [AC_CHECK_LIB(lirc_client,lirc_init,[LIBS=-llirc_client $LIBS;AC_DEFINE([HAVE_LIRC],[],[Define to 1 if LIRC must be used])],,)],)
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
59 fi
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
60
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
61 dnl checks for functions
276
4f526d436873 Implement secure rc file saving.
zas_
parents: 197
diff changeset
62 AC_CHECK_FUNCS(strverscmp access fsync fflush)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
63
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
64 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
65 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
66
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
67 have_lcms=no
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
68 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
69 AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
70 AC_CHECK_HEADER(lcms.h,
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
71 have_lcms=yes, [
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
72 AC_CHECK_HEADER(lcms/lcms.h,
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
73 have_lcms=yes
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
74 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
75 [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
76 ])
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
77 ])
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
78 if test "$have_lcms" = "yes"; then
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
79 LCMS_LIBS="-llcms"
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
80 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
81 else
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
82 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
83 fi
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
84 else
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
85 have_lcms="no (lcms support disabled)"
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
86 fi
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
87 AC_SUBST(LCMS_LIBS)
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
88 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
89
192
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
90 AC_ARG_WITH(exiv2, [ --without-exiv2 build without exiv2 support])
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
91
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
92 have_exiv2=no
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
93
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
94 if test "x$with_exiv2" != "xno"; then
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
95 PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.11,
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
96 [ have_exiv2=yes
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
97 AC_DEFINE(HAVE_EXIV2, 1, have exiv2) ],
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
98 [ AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] )
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
99 fi
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
100
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
101
465
b8731e13028b renamed no.po to nb.po
nadvornik
parents: 308
diff changeset
102 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
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
103 GETTEXT_PACKAGE=$PACKAGE
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
104 AC_SUBST(GETTEXT_PACKAGE)
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
105 AM_GLIB_GNU_GETTEXT
283
e213fb025621 GQVIEW_* -> GQ_*
zas_
parents: 276
diff changeset
106 AM_GLIB_DEFINE_LOCALEDIR(GQ_LOCALEDIR)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
107
305
72445e31aa58 Ensure that gcc flag -Wall is set.
zas_
parents: 283
diff changeset
108 #Always use -Wall with gcc
72445e31aa58 Ensure that gcc flag -Wall is set.
zas_
parents: 283
diff changeset
109 if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
72445e31aa58 Ensure that gcc flag -Wall is set.
zas_
parents: 283
diff changeset
110 CFLAGS="$CFLAGS -Wall"
72445e31aa58 Ensure that gcc flag -Wall is set.
zas_
parents: 283
diff changeset
111 CPPFLAGS="$CPPFLAGS -Wall"
72445e31aa58 Ensure that gcc flag -Wall is set.
zas_
parents: 283
diff changeset
112 fi
72445e31aa58 Ensure that gcc flag -Wall is set.
zas_
parents: 283
diff changeset
113
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
114 AC_SUBST(CFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
115 AC_SUBST(CPPFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
116 AC_SUBST(LDFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
117
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
118 AC_OUTPUT([
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
119 Makefile
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
120 src/Makefile
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
121 src/icons/Makefile
91
d063f97503b7 Wed Nov 1 11:39:48 2006 John Ellis <johne@verizon.net>
gqview
parents: 75
diff changeset
122 src/icons/svg/Makefile
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
123 po/Makefile.in
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
124 doc/Makefile
197
e3f10b6046ab more renames
nadvornik
parents: 195
diff changeset
125 geeqie.spec
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
126 ])
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
127