]> Dogcows Code - chaz/homebank/blob - configure.ac
add gitignore
[chaz/homebank] / configure.ac
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.52)
5 AC_INIT([homebank], [4.6.3])
6
7 AM_CONFIG_HEADER(config.h)
8
9 AM_INIT_AUTOMAKE([1.9 foreign])
10
11 # If the source code has changed at all, increment REVISION
12 # If any interfaces have been added, removed, or changed, increment CURRENT, and set REVISION to 0.
13 # If any interfaces have been added since the last public release, then increment AGE.
14 # If any interfaces have been removed since the last public release, then set AGE to 0.
15 # Reference: http://www.gnu.org/software/libtool/manual.html#Versioning
16
17 # Checks for programs.
18 AC_PROG_CC
19 AC_PROG_LN_S
20 AC_PROG_INSTALL
21 AC_PROG_INTLTOOL
22
23 # Checks for libraries.
24 PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.24 glib-2.0 >= 2.28)
25 AC_SUBST(DEPS_CFLAGS)
26 AC_SUBST(DEPS_LIBS)
27 AC_CHECK_LIB(m, pow)
28
29 # general usage flags
30 CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes"
31
32 # extended flags
33 #CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter"
34
35 #valgrind flags
36 #CFLAGS="${CFLAGS} -g -O0"
37
38 # pre-relase # 2 - error as warning for
39 #CFLAGS="${CFLAGS} -Werror"
40
41 # gtk3 migration
42 #CFLAGS="${CFLAGS} -DGTK_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE"
43
44 # GLib/Gtk deprecated flags
45 #CFLAGS="${CFLAGS} -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
46
47
48 # Check for libofx
49 AC_CHECK_HEADER(libofx/libofx.h,,noofx=true)
50 AC_ARG_WITH(ofx,
51 [ --without-ofx build without ofx support [default=with]],
52 [build_ofx=$withval],
53 [build_ofx=yes]
54 )
55 if test x$build_ofx != xno
56 then
57 if test x$noofx != xtrue
58 then
59 AC_CHECK_LIB(ofx, ofx_set_status_cb, OFX_0_7="-DOFX_ENABLE")
60 DEPS_LIBS="-lofx ${DEPS_LIBS}"
61 CFLAGS="${CFLAGS} $OFX_0_7"
62 else
63 noofx=true
64 AC_MSG_RESULT([Libofx header missing. Check your libofx installation])
65 CFLAGS="${CFLAGS} -DNOOFX"
66 fi
67 else
68 noofx=true
69 CFLAGS="${CFLAGS} -DNOOFX"
70 fi
71 AM_CONDITIONAL(NOOFX, test x$noofx = xtrue)
72
73 # Checks for header files.
74 AC_HEADER_STDC
75 AC_CHECK_HEADERS([libintl.h locale.h stdlib.h string.h])
76
77 # Checks for typedefs, structures, and compiler characteristics.
78 AC_HEADER_STDBOOL
79 AC_C_CONST
80 AC_STRUCT_TM
81 AC_C_VOLATILE
82
83 # Checks for library functions.
84 AC_CHECK_FUNCS([floor localeconv memset modf pow setlocale sqrt strcasecmp strtoul])
85
86 # International support
87 ALL_LINGUAS="af ar ast be bg br ca cs cy da de el en_AU en_CA en_GB es et eu fa fi fr ga gl he hr hu id is it ja ka ko lt lv mr ms nb nds nl oc pl pt_BR pt pt_PT ro ru si sk sl sr sv tr uk vi zh_CN zh_TW"
88
89 AM_GLIB_GNU_GETTEXT
90
91 GETTEXT_PACKAGE=$PACKAGE
92 AC_SUBST(GETTEXT_PACKAGE)
93 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["${GETTEXT_PACKAGE}"], [gettext domain])
94
95 AC_CONFIG_FILES([
96 Makefile
97 src/Makefile
98 data/homebank.desktop.in
99 data/Makefile
100 data/icons/Makefile
101 data/datas/Makefile
102 images/Makefile
103 mime/Makefile
104 po/Makefile.in
105 doc/Makefile
106 doc/images/Makefile
107 ])
108
109 AC_OUTPUT
110
111 # *************************************
112 # *************************************
113
114 echo
115 echo $PACKAGE $VERSION
116 echo
117 echo Compiler................ : $CC
118 echo Build with OFX support.. : $build_ofx
119 if test "x$noofx" = "xtrue" ; then
120 echo ........................ : **error** libofx header is missing, ofx feature will be disabled. Check your libofx installation
121 fi
122 eval eval echo Path to images.......... : $datadir/homebank/images
123 eval eval echo Path to locale.......... : $datadir/locale
124 eval eval echo Path to help............ : $datadir/homebank/help
125
126 echo
127 eval eval echo HomeBank will be installed in $bindir.
128 echo
129 echo configure complete, now type \'make\'
130 echo
131
This page took 0.038198 seconds and 4 git commands to generate.