annotate configure.in @ 1737:a9af670f47d2

fixed unnecessary image reloads in color menu
author nadvornik
date Sun, 06 Sep 2009 14:21:19 +0000
parents 49460282eed9
children 8b9bbf92725f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
1 dnl Process this file with autoconf to produce a configure script. -*- Autoconf
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
2 -*-
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
3
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
4 dnl This file is a part of Geeqie project (http://geeqie.sourceforge.net/).
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1272
diff changeset
5 dnl Copyright (C) 2008 - 2009 The Geeqie Team
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
6 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
7 dnl This program is free software; you can redistribute it and/or modify
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
8 dnl it under the terms of the GNU General Public License as published by
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
9 dnl the Free Software Foundation; either version 2 of the License, or
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
10 dnl (at your option) any later version.
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
11 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
12 dnl This program is distributed in the hope that it will be useful,
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
13 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
14 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
15 dnl GNU General Public License for more details.
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
16
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
17 AC_PREREQ(2.57)
1693
2bde6a55001a updated version string
nadvornik
parents: 1675
diff changeset
18 AC_INIT(geeqie, 1.0beta2, geeqie-devel@lists.sourceforge.net)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
19
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
20 # Check for rightly dirs
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
21 AC_CONFIG_SRCDIR([src/main.c])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
22
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
23 AC_CONFIG_AUX_DIR(auxdir)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
24 AM_INIT_AUTOMAKE
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
25
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
26 AC_CONFIG_HEADER([config.h])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
27
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
28 # Only for developers
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
29 AM_MAINTAINER_MODE
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
30
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
31 AC_ARG_ENABLE(developer, [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
32 Development options:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
33 AC_HELP_STRING([--enable-developer], [turn on developers mode [default=no]])],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
34 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
35 __IS_DEVELOPER=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
36 ],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
37 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
38 if test "x${enable_developer}" != "xyes"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
39 then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
40 __IS_DEVELOPER=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
41 else
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
42 __IS_DEVELOPER=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
43 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
44 ])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
45
1454
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
46 DX_HTML_FEATURE(ON)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
47 DX_CHM_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
48 DX_CHI_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
49 DX_MAN_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
50 DX_RTF_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
51 DX_XML_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
52 DX_PDF_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
53 DX_PS_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
54
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
55 DX_INIT_DOXYGEN($PACKAGE_NAME, doxygen.conf, doc/doxygen)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
56
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
57 # Debug support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
58 # ----------------------------------------------------------------------
7
990fcf466906 really break configure
gqview
parents: 5
diff changeset
59
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
60 dnl Debugging option
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
61 dnl FIXME: official release convert default to 'no'
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
62 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
63
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
64 AC_ARG_ENABLE([debug-flags], [
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
65 Development options:
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
66 AC_HELP_STRING([--enable-debug-flags], [use compiler flags for debugging [default=no]])], [],
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
67 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
68 if test "x${enable_developer}" != "xyes"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
69 then
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
70 enable_debug_flags="no"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
71 else
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
72 enable_debug_flags="yes"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
73 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
74 ])
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
75
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
76 AC_ARG_ENABLE([debug-log], [
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
77 Development options:
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
78 AC_HELP_STRING([--enable-debug-log], [enable debugging messages [default=yes]])], [], [enable_debug_log="yes"])
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
79
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
80 if test "x${enable_debug_flags}" != "xno"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
81 then
1705
49460282eed9 Remove some bashisms from configure.in. Patch by Greg Troxel.
zas_
parents: 1694
diff changeset
82 if test "x${enable_developer}" = "xyes"
746
9cf7d61a2e7f Add -Wstrict-prototypes to gcc options only in developer mode
zas_
parents: 692
diff changeset
83 then
1262
d66f57063cc3 Move -Wall before -Wno-* options for them to have any effect.
zas_
parents: 1261
diff changeset
84 CXXFLAGS="${CXXFLAGS} -Wall"
d66f57063cc3 Move -Wall before -Wno-* options for them to have any effect.
zas_
parents: 1261
diff changeset
85 CFLAGS="${CFLAGS} -Wstrict-prototypes -Wall"
746
9cf7d61a2e7f Add -Wstrict-prototypes to gcc options only in developer mode
zas_
parents: 692
diff changeset
86 fi
1386
4da6d326919c Add debug versions of path_to_utf8() and path_from_utf8() which allows to report the caller file and line, this is enabled with --enable-debug-flags (and developer mode too).
zas_
parents: 1284
diff changeset
87 __COMMONFLAGS="-g -O0 -Wextra -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wno-unused-parameter -Wformat -Wformat-security -DGQ_DEBUG_PATH_UTF8=1"
1262
d66f57063cc3 Move -Wall before -Wno-* options for them to have any effect.
zas_
parents: 1261
diff changeset
88 CXXFLAGS="${CXXFLAGS} ${__COMMONFLAGS}"
d66f57063cc3 Move -Wall before -Wno-* options for them to have any effect.
zas_
parents: 1261
diff changeset
89 CFLAGS="${CFLAGS} ${__COMMONFLAGS} -Wimplicit-int -Werror-implicit-function-declaration"
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
90 __IS_DEBUG_FLAGS=yes
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
91 else
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
92 __IS_DEBUG_FLAGS=no
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
93 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
94
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
95 if test "x${enable_debug_log}" != "xno"
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
96 then
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
97 AC_DEFINE(DEBUG,1,[Defined if Geeqie is compiled with debugging messages support])
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
98 __IS_DEBUG_LOG=yes
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
99 else
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
100 __IS_DEBUG_LOG=no
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
101 fi
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
102
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
103 AM_CONDITIONAL(DEBUG, test x$enable_debug_flags = xyes)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
104
690
a9ba46e466d2 depreceated -> deprecated
zas_
parents: 689
diff changeset
105 AC_ARG_ENABLE(deprecated, [
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
106 AC_HELP_STRING([--enable-deprecated], [turn off checking of deprecated functions [default=yes]])], [],
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
107 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
108 if test "x${enable_developer}" != "xyes"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
109 then
690
a9ba46e466d2 depreceated -> deprecated
zas_
parents: 689
diff changeset
110 enable_deprecated="no"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
111 else
690
a9ba46e466d2 depreceated -> deprecated
zas_
parents: 689
diff changeset
112 enable_deprecated="yes"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
113 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
114 ])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
115
690
a9ba46e466d2 depreceated -> deprecated
zas_
parents: 689
diff changeset
116 if test "x${enable_deprecated}" != "xno"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
117 then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
118 CXXFLAGS="${CXXFLAGS} -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
119 CFLAGS="${CFLAGS} -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1"
746
9cf7d61a2e7f Add -Wstrict-prototypes to gcc options only in developer mode
zas_
parents: 692
diff changeset
120 __IS_DEPRECATED=yes
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
121 else
746
9cf7d61a2e7f Add -Wstrict-prototypes to gcc options only in developer mode
zas_
parents: 692
diff changeset
122 __IS_DEPRECATED=no
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
123 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
124
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
125
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
126 AC_ISC_POSIX
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
127 AC_PROG_CC
177
0ca3b4c8ffae started exiv2 integration
nadvornik
parents: 124
diff changeset
128 AC_PROG_CXX
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
129 AC_STDC_HEADERS
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
130 AC_ARG_PROGRAM
1648
a57336c3b1cc use intltool for desktop file translation
nadvornik
parents: 1640
diff changeset
131 IT_PROG_INTLTOOL([0.35.0])
a57336c3b1cc use intltool for desktop file translation
nadvornik
parents: 1640
diff changeset
132
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
133
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
134 dnl checks for functions
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
135 AC_CHECK_FUNCS(strverscmp access fsync fflush)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
136
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
137
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
138 # Check target architecture
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
139
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
140 # Check for Win32
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
141 AC_MSG_CHECKING([for some Win32 platform])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
142 case "$target_os" in
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
143 mingw* | cygwin*)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
144 platform_win32=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
145 AC_DEFINE(PLATFORM_WIN32, 1, [Build on win32 OS])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
146 ;;
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
147 *)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
148 platform_win32=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
149 ;;
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
150 esac
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
151 AC_MSG_RESULT([$platform_win32])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
152 AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
153
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
154 AC_MSG_CHECKING([for native Win32])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
155 case "$target_os" in
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
156 mingw*)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
157 os_win32=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
158 AC_DEFINE(OS_WIN32, 1, [Build on native win32 OS])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
159 os_unix=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
160 PATHSEP=';'
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
161 ;;
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
162 *)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
163 os_win32=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
164 os_unix=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
165 PATHSEP=':'
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
166 ;;
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
167 esac
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
168 AC_MSG_RESULT([$os_win32])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
169 AC_SUBST(PATHSEP)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
170 AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
171 AM_CONDITIONAL(OS_UNIX, test "$os_unix" = "yes")
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
172
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
173 if test "$os_win32" = "yes"; then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
174 AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
175 AC_CHECK_TOOL(WINDRES, windres, :)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
176 else
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
177 WINDRES=":"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
178 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
179
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
180 AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
181 AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:")
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
182 AC_SUBST(WINDRES)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
183
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
184 dnl reasonable guesses for where stuff is installed
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
185 if test "x$prefix" = "xNONE"; then
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
186 prefix="/usr/local"
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
187 else
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
188 prefix=$prefix
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
189 fi
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
190
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
191 AM_PATH_GLIB_2_0(2.4.0,,AC_MSG_ERROR(GLIB >= 2.4.0 not installed.))
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
192 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
193
1256
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
194 threads="auto"
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
195 AC_ARG_ENABLE([threads],
1256
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
196 AC_HELP_STRING([--disable-threads], [disable thread support]), [threads="${enableval}"])
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
197
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
198 have_gthread="no"
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
199 if test "x${threads}" != "xno" ; then
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
200 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")])
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
201 fi
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
202
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
203 if test "x$have_gthread" != "xno"; then
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
204 AC_DEFINE(HAVE_GTHREAD, 1, Define if you have gthread library)
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
205 GLIB_CFLAGS="$GTHREAD_CFLAGS"
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
206 GLIB_LIBS="$GTHREAD_LIBS"
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
207 fi
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
208
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
209
308
6cb3c072be3f ui_icons.h and icons_inline.h depend on gdk-pixbuf-csource,
zas_
parents: 305
diff changeset
210 AC_PATH_PROGS(GDK_PIXBUF_CSOURCE, "gdk-pixbuf-csource")
1012
fe82830ab8fd converted image loader to a GObject and use signals for notification
nadvornik
parents: 939
diff changeset
211 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
212
484
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
213 AC_ARG_WITH(readmedir, [ --with-readmedir=DIR install path for readme files],
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
214 readmedir=$withval, readmedir="$prefix/share/doc/geeqie-$VERSION")
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
215 AC_ARG_WITH(htmldir, [ --with-htmldir=DIR install path for html files],
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
216 htmldir=$withval, htmldir="$readmedir/html")
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
217
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
218 AC_DEFINE_UNQUOTED(GQ_HELPDIR, "$readmedir", [Location of documentation files])
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
219 AC_DEFINE_UNQUOTED(GQ_HTMLDIR, "$htmldir", [Location of html documentation])
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
220
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
221 AC_SUBST(readmedir)
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
222 AC_SUBST(htmldir)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
223
1272
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
224 eval "eval appdir=${datadir}/${PACKAGE}"
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
225 AC_DEFINE_UNQUOTED([GQ_APP_DIR], "$appdir", [Location of application data])
1694
22ec11cc989c make sure that automake and config.h uses the same installation paths
nadvornik
parents: 1693
diff changeset
226 AC_SUBST(appdir)
1272
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
227
1640
97ac3a58adae do not install helper scripts into /usr/bin
nadvornik
parents: 1616
diff changeset
228 eval "eval gq_bindir=${prefix}/lib/${PACKAGE}"
97ac3a58adae do not install helper scripts into /usr/bin
nadvornik
parents: 1616
diff changeset
229 AC_DEFINE_UNQUOTED([GQ_BIN_DIR], "$gq_bindir", [Location of helper scripts and executables])
1694
22ec11cc989c make sure that automake and config.h uses the same installation paths
nadvornik
parents: 1693
diff changeset
230 AC_SUBST(gq_bindir)
1640
97ac3a58adae do not install helper scripts into /usr/bin
nadvornik
parents: 1616
diff changeset
231
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
232 # LIRC support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
233 # ----------------------------------------------------------------------
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
234
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
235 dnl Check for LIRC client support
750
5329797d8ff1 Fix display of libpthread detection.
zas_
parents: 746
diff changeset
236 AC_MSG_CHECKING(if LIRC support is enabled)
5329797d8ff1 Fix display of libpthread detection.
zas_
parents: 746
diff changeset
237 lirc=no
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
238 AC_ARG_ENABLE([lirc],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
239 AC_HELP_STRING([--disable-lirc], [disable lirc support (auto)]),
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
240 [
750
5329797d8ff1 Fix display of libpthread detection.
zas_
parents: 746
diff changeset
241 if test "x${enableval}" = "xyes" -a "x$GCC" = "xyes"; then
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
242 AC_MSG_RESULT(yes)
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
243 lirc=yes
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
244 else
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
245 AC_MSG_RESULT(no)
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
246 lirc=no
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
247 fi], AC_MSG_RESULT(no))
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
248
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
249
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
250 AC_ARG_WITH(lirc-prefix,
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
251 [ --with-lirc-prefix=PATH Prefix where LIRC is installed],
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
252 [
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
253 for dir in `echo "$withval" | tr : ' '`; do
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
254 if test -d $dir/lib; then CXXFLAGS="$CXXFLAGS -L$dir/lib"; fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
255 if test -d $dir/include; then CXXFLAGS="$CXXFLAGS -I$dir/include"; fi
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
256 done
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
257 ])
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
258
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
259 HAVE_LIRC=no
750
5329797d8ff1 Fix display of libpthread detection.
zas_
parents: 746
diff changeset
260 if test "x${lirc}" != "xno" ; then
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
261 AC_CHECK_HEADER(lirc/lirc_client.h,
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
262 [AC_CHECK_LIB(lirc_client,lirc_init,[HAVE_LIRC=yes;LIBS=-llirc_client $LIBS;AC_DEFINE([HAVE_LIRC],[],[Define to 1 if LIRC must be used])],,)],)
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
263 fi
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
264 AM_CONDITIONAL(HAVE_LIRC, [test "x$HAVE_LIRC" = xyes])
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
265
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
266
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
267 # LCMS support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
268 # ----------------------------------------------------------------------
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
269
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
270 AC_ARG_ENABLE([lcms],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
271 AC_HELP_STRING([--disable-lcms], [disable lcms support]),
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
272 [liblcms=$enableval], [liblcms=auto])
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
273
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
274 if test "x${liblcms}" != "xno"; then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
275 PKG_CHECK_MODULES(LCMS, [lcms >= 1.14],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
276 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
277 HAVE_LCMS=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
278 AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
279 ],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
280 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
281 HAVE_LCMS=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
282 AC_MSG_WARN([$LCMS_PKG_ERRORS])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
283 ])
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
284 else
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
285 HAVE_LCMS=disabled
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
286 fi
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
287
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
288 AM_CONDITIONAL(HAVE_LCMS, [test "x$HAVE_LCMS" = xyes])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
289 AC_SUBST(LCMS_CFLAGS)
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
290 AC_SUBST(LCMS_LIBS)
192
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
291
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
292
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
293 # Exiv2 support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
294 # ----------------------------------------------------------------------
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
295
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
296 AC_ARG_ENABLE([exiv2],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
297 AC_HELP_STRING([--disable-exiv2], [disable exiv2 support]),
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
298 [libexiv2=$enableval], [libexiv2=auto])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
299
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
300 if test "x${libexiv2}" != "xno"; then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
301 PKG_CHECK_MODULES(EXIV2, [exiv2 >= 0.11],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
302 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
303 HAVE_EXIV2=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
304 AC_DEFINE(HAVE_EXIV2, 1, [define to enable exiv2 support])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
305 ],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
306 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
307 HAVE_EXIV2=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
308 AC_MSG_WARN([$EXIV2_PKG_ERRORS])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
309 ])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
310 else
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
311 HAVE_EXIV2=disabled
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
312 fi
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
313
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
314 AM_CONDITIONAL(HAVE_EXIV2, [test "x$HAVE_EXIV2" = xyes])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
315 AC_SUBST(EXIV2_CFLAGS)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
316 AC_SUBST(EXIV2_LIBS)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
317
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
318
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
319 # Gettext support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
320 # ----------------------------------------------------------------------
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
321
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
322 dnl Set of available languages
1270
13e96406760b switched to po/LINGUAS, see http://live.gnome.org/GnomeGoals/PoLinguas
nadvornik
parents: 1262
diff changeset
323 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
13e96406760b switched to po/LINGUAS, see http://live.gnome.org/GnomeGoals/PoLinguas
nadvornik
parents: 1262
diff changeset
324 AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
325
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
326 GETTEXT_PACKAGE=$PACKAGE
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
327 AC_SUBST(GETTEXT_PACKAGE)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
328 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["${GETTEXT_PACKAGE}"],[Name of gettext file])
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
329 AM_GLIB_GNU_GETTEXT
283
e213fb025621 GQVIEW_* -> GQ_*
zas_
parents: 276
diff changeset
330 AM_GLIB_DEFINE_LOCALEDIR(GQ_LOCALEDIR)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
331
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
332 AC_SUBST(CFLAGS)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
333 AC_SUBST(CXXFLAGS)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
334 AC_SUBST(CPPFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
335 AC_SUBST(LDFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
336
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
337
1604
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
338 # Libchamplain support - used for GPS map facility - experimental
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
339 # ----------------------------------------------------------------------
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
340
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
341 AC_ARG_ENABLE([gps],
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
342 AC_HELP_STRING([--enable-gps], [enable GPS map support - experimental]),
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
343 [libgps=$enableval], [libgps=auto])
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
344
1705
49460282eed9 Remove some bashisms from configure.in. Patch by Greg Troxel.
zas_
parents: 1694
diff changeset
345 if test "x${libgps}" = "xyes"; then
1604
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
346 PKG_CHECK_MODULES(LIBCHAMPLAIN, [champlain-0.3 >= 0.3],
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
347 [
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
348 HAVE_LIBCHAMPLAIN=yes
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
349 AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [define to enable use of GPS maps])
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
350 ],
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
351 [
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
352 HAVE_LIBCHAMPLAIN=no
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
353 AC_MSG_WARN([$LIBCHAMPLAIN_PKG_ERRORS])
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
354 ])
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
355 else
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
356 HAVE_LIBCHAMPLAIN=disabled
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
357 fi
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
358
1705
49460282eed9 Remove some bashisms from configure.in. Patch by Greg Troxel.
zas_
parents: 1694
diff changeset
359 if test "x${libgps}" = "xyes"; then
1604
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
360 PKG_CHECK_MODULES(LIBCHAMPLAIN_GTK, [champlain-gtk-0.3 >= 0.3],
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
361 [
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
362 HAVE_LIBCHAMPLAIN_GTK=yes
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
363 AC_DEFINE(HAVE_LIBCHAMPLAIN_GTK, 1, [define to enable use of GPS maps])
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
364 ],
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
365 [
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
366 HAVE_LIBCHAMPLAIN_GTK=no
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
367 AC_MSG_WARN([$LIBCHAMPLAIN_GTK_PKG_ERRORS])
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
368 ])
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
369 else
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
370 HAVE_LIBCHAMPLAIN_GTK=disabled
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
371 fi
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
372
1604
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
373 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN_GTK, [test "x$HAVE_LIBCHAMPLAIN_GTK" = xyes])
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
374 AC_SUBST(LIBCHAMPLAIN_GTK_CFLAGS)
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
375 AC_SUBST(LIBCHAMPLAIN_GTK_LIBS)
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
376
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
377 AH_TOP([
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
378 /** \file
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
379 * \short autogenerated definition by autoheader.
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
380 * \author Bruclik
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
381 */
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
382
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
383 /*
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
384 * This file is a part of Geeqie project (http://geeqie.sourceforge.net/).
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1272
diff changeset
385 * Copyright (C) 2008 - 2009 The Geeqie Team
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
386 *
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
387 * This program is free software; you can redistribute it and/or modify
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
388 * it under the terms of the GNU General Public License as published by
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
389 * the Free Software Foundation; either version 2 of the License, or
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
390 * (at your option) any later version.
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
391 *
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
392 * This program is distributed in the hope that it will be useful,
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
393 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
394 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
395 * GNU General Public License for more details.
1671
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
396 */
36166cd4006b Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1651
diff changeset
397
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
398 #ifndef _INCLUDE_CONFIG_H
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
399 #define _INCLUDE_CONFIG_H
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
400 ])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
401
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
402 AH_BOTTOM([#endif])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
403
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
404 dnl Write the output
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
405 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
406
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
407 AC_CONFIG_FILES([
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
408 Makefile
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
409 src/Makefile
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
410 src/icons/Makefile
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
411 src/icons/svg/Makefile
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
412 po/Makefile.in
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
413 doc/Makefile
1272
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
414 plugins/Makefile
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
415 plugins/symlink/Makefile
1616
5b36a6ff55ae Add .desktop files to restore lossless jpeg rotation via editors.
zas_
parents: 1604
diff changeset
416 plugins/rotate/Makefile
1651
8966e72ae99a ufraw-batch script
nadvornik
parents: 1648
diff changeset
417 plugins/ufraw/Makefile
1675
5bb036e67d6d added script for importing GQView and Geeqie-alpha metadata
nadvornik
parents: 1671
diff changeset
418 plugins/import/Makefile
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
419 geeqie.spec
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
420 ])
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
421
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
422 AC_OUTPUT
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
423 dnl Print the results
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
424 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
425
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
426 cat > config.report << END
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
427
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
428 Config results:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
429 -=-=-=-=-=-=-=-=-
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
430
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
431 Package:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
432 Name: $PACKAGE_NAME
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
433 Version: $PACKAGE_VERSION
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
434 Patch version: $GQ_PATCH_VERSION
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
435 Date: $GQ_PATCH_DATE
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
436
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
437 Architecture:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
438 UNIX: $os_unix
689
972ecb45181c Typo fixes.
zas_
parents: 686
diff changeset
439 Win32: $platform_win32 (native: $os_win32)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
440
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
441 Flags:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
442 Geeqie: $GQ_CFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
443 DEFS: $DEFS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
444 CPPFLAGS: $__CPPFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
445 CFLAGS: $CFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
446 CXXFLAGS: $CXXFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
447 Gtk: $GTK_CFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
448 Glib: $GLIB_CFLAGS
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
449 Thread: $GTHREAD_LIBS
1604
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
450 Others: $LCMS_LIBS $EXIV2_LIBS $LIBCHAMPLAIN_LIBS $LIBCHAMPLAIN_GTK_LIBS
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
451
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
452 Localization:
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
453 NLS support: $USE_NLS
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
454 LINGUAS: $LINGUAS
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
455
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
456 Settings:
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
457 Developer: $__IS_DEVELOPER
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
458 Debug flags: $__IS_DEBUG_FLAGS
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
459 Debug log: $__IS_DEBUG_LOG
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
460 Deprecated: $__IS_DEPRECATED
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
461
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
462 Support:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
463 LCMS: $HAVE_LCMS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
464 Exiv2: $HAVE_EXIV2
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
465 Lirc: $HAVE_LIRC
1604
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
466 Libchamplain: $HAVE_LIBCHAMPLAIN
c6d522fe3e5e added GPS map support - patch by Colin Clark
nadvornik
parents: 1592
diff changeset
467 Libchamplain-gtk: $HAVE_LIBCHAMPLAIN_GTK
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
468
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
469 Documentation:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
470 Doxygen: $DOXYGEN
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
471 Formats: $doxy_formats_report
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
472 END
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
473
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
474 cat config.report
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
475 cat <<EOF
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
476
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
477 Now you can type "make" to build Geeqie
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
478 (or you take blue pill and the story ends :)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
479
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
480 EOF
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
481