mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05: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:
+12
-8
@@ -1530,7 +1530,9 @@ AC_ARG_ENABLE( mt940,
|
|||||||
if test x${MT940_DIR} = xmt940 ;
|
if test x${MT940_DIR} = xmt940 ;
|
||||||
then
|
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_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
|
# Note: HBCI_LIBS is changed again below in the --enable-hbci
|
||||||
# section. So check for mt940 first and *not* the other way round!
|
# section. So check for mt940 first and *not* the other way round!
|
||||||
HBCI_LIBS="${OPENHBCI_LIBS}"
|
HBCI_LIBS="${OPENHBCI_LIBS}"
|
||||||
@@ -1552,13 +1554,15 @@ AC_ARG_ENABLE( hbci,
|
|||||||
if test x${HBCI_DIR} = xhbci ;
|
if test x${HBCI_DIR} = xhbci ;
|
||||||
then
|
then
|
||||||
# Check for Aqbanking library
|
# Check for Aqbanking library
|
||||||
AC_AQBANKING(1,0,0)
|
PKG_CHECK_MODULES(HBCI, aqbanking >= "1.0.0", [], [
|
||||||
if test x${have_aqbanking} != xyes;
|
AC_AQBANKING(1,0,0)
|
||||||
then
|
if test x${have_aqbanking} != xyes;
|
||||||
AC_MSG_ERROR([Could not find aqbanking. If you use --enable-hbci, you *have* to enable aqbanking.])
|
then
|
||||||
fi
|
AC_MSG_ERROR([Could not find aqbanking. If you use --enable-hbci, you *have* to enable aqbanking.])
|
||||||
HBCI_LIBS="${aqbanking_libs}"
|
fi
|
||||||
HBCI_CFLAGS="${aqbanking_includes}"
|
HBCI_LIBS="${aqbanking_libs}"
|
||||||
|
HBCI_CFLAGS="${aqbanking_includes}"
|
||||||
|
])
|
||||||
|
|
||||||
# also check for ktoblzcheck
|
# also check for ktoblzcheck
|
||||||
AC_CHECK_HEADERS(ktoblzcheck.h)
|
AC_CHECK_HEADERS(ktoblzcheck.h)
|
||||||
|
|||||||
Reference in New Issue
Block a user