2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([homebank], [4.6.3])
7 AM_CONFIG_HEADER(config.h)
9 AM_INIT_AUTOMAKE([1.9 foreign])
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
17 # Checks for programs.
23 # Checks for libraries.
24 PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.24 glib-2.0 >= 2.28)
30 CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes"
33 #CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter"
36 #CFLAGS="${CFLAGS} -g -O0"
38 # pre-relase # 2 - error as warning for
39 #CFLAGS="${CFLAGS} -Werror"
42 #CFLAGS="${CFLAGS} -DGTK_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE"
44 # GLib/Gtk deprecated flags
45 #CFLAGS="${CFLAGS} -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
49 AC_CHECK_HEADER(libofx/libofx.h,,noofx=true)
51 [ --without-ofx build without ofx support [default=with]],
55 if test x$build_ofx != xno
57 if test x$noofx != xtrue
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"
64 AC_MSG_RESULT([Libofx header missing. Check your libofx installation])
65 CFLAGS="${CFLAGS} -DNOOFX"
69 CFLAGS="${CFLAGS} -DNOOFX"
71 AM_CONDITIONAL(NOOFX, test x$noofx = xtrue)
73 # Checks for header files.
75 AC_CHECK_HEADERS([libintl.h locale.h stdlib.h string.h])
77 # Checks for typedefs, structures, and compiler characteristics.
83 # Checks for library functions.
84 AC_CHECK_FUNCS([floor localeconv memset modf pow setlocale sqrt strcasecmp strtoul])
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"
91 GETTEXT_PACKAGE=$PACKAGE
92 AC_SUBST(GETTEXT_PACKAGE)
93 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["${GETTEXT_PACKAGE}"], [gettext domain])
98 data/homebank.desktop.in
111 # *************************************
112 # *************************************
115 echo $PACKAGE $VERSION
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
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
127 eval eval echo HomeBank will be installed in $bindir.
129 echo configure complete, now type \'make\'