mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-23 09:26:27 -06:00
Improve check for aqbanking by looking for the pkg-config file first and using the old method as a fallback
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13146 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
1565077f47
commit
d061e54bfa
20
configure.in
20
configure.in
@ -1530,7 +1530,9 @@ AC_ARG_ENABLE( mt940,
|
||||
if test x${MT940_DIR} = xmt940 ;
|
||||
then
|
||||
AC_MSG_ERROR([Sorry, MT940 support is currently broken since it depended on the hbci module with the old openhbci 0.9.x library. But the hbci module has now been ported to a new hbci library called aqbanking. That library contains a MT940 parser, too, so porting shouldnt be too difficult. Nevertheless someone needs to do the porting work before this can be enabled again.])
|
||||
AC_AQBANKING(1,0,0)
|
||||
PKG_CHECK_MODULES(MT940, aqbanking >= "1.0.0", [], [
|
||||
AC_AQBANKING(1,0,0)
|
||||
])
|
||||
# Note: HBCI_LIBS is changed again below in the --enable-hbci
|
||||
# section. So check for mt940 first and *not* the other way round!
|
||||
HBCI_LIBS="${OPENHBCI_LIBS}"
|
||||
@ -1552,13 +1554,15 @@ AC_ARG_ENABLE( hbci,
|
||||
if test x${HBCI_DIR} = xhbci ;
|
||||
then
|
||||
# Check for Aqbanking library
|
||||
AC_AQBANKING(1,0,0)
|
||||
if test x${have_aqbanking} != xyes;
|
||||
then
|
||||
AC_MSG_ERROR([Could not find aqbanking. If you use --enable-hbci, you *have* to enable aqbanking.])
|
||||
fi
|
||||
HBCI_LIBS="${aqbanking_libs}"
|
||||
HBCI_CFLAGS="${aqbanking_includes}"
|
||||
PKG_CHECK_MODULES(HBCI, aqbanking >= "1.0.0", [], [
|
||||
AC_AQBANKING(1,0,0)
|
||||
if test x${have_aqbanking} != xyes;
|
||||
then
|
||||
AC_MSG_ERROR([Could not find aqbanking. If you use --enable-hbci, you *have* to enable aqbanking.])
|
||||
fi
|
||||
HBCI_LIBS="${aqbanking_libs}"
|
||||
HBCI_CFLAGS="${aqbanking_includes}"
|
||||
])
|
||||
|
||||
# also check for ktoblzcheck
|
||||
AC_CHECK_HEADERS(ktoblzcheck.h)
|
||||
|
Loading…
Reference in New Issue
Block a user