r23317 - gnucash/trunk - Abort configure if --enable-ofx specified but no libofx development files found
Geert Janssens
gjanssens at code.gnucash.org
Wed Oct 23 10:25:34 EDT 2013
Author: gjanssens
Date: 2013-10-23 10:25:32 -0400 (Wed, 23 Oct 2013)
New Revision: 23317
Trac: http://svn.gnucash.org/trac/changeset/23317
Modified:
gnucash/trunk/configure.ac
Log:
Abort configure if --enable-ofx specified but no libofx development files found
Modified: gnucash/trunk/configure.ac
===================================================================
--- gnucash/trunk/configure.ac 2013-10-23 12:46:47 UTC (rev 23316)
+++ gnucash/trunk/configure.ac 2013-10-23 14:25:32 UTC (rev 23317)
@@ -646,6 +646,7 @@
### --------------------------------------------------------------------------
### OFX
want_ofx=auto
+have_ofx=no
AC_ARG_ENABLE( ofx,
[AS_HELP_STRING([--enable-ofx],[compile with ofx support (needs LibOFX)])],
[ case "$enableval" in
@@ -660,13 +661,27 @@
auto) AC_MSG_RESULT(yes -- automatic test) ;;
esac
-MIGRATABLE_PREFS_OFX="/dev/null"
if test x${want_ofx} != xno ; then
- PKG_CHECK_MODULES(LIBOFX, libofx, [want_ofx="yes"], [want_ofx="no"])
+ PKG_CHECK_MODULES(LIBOFX, libofx, [have_ofx="yes"], [ have_ofx="no" ])
_COMPONENTS="$_COMPONENTS ofx"
+fi
+
+if test x${want_ofx} = xyes && test x${have_ofx} = xno; then
+ AC_MSG_ERROR([
+
+ OFX support wanted, but libofx development libraries not found.
+ Either install the libofx development package (such as libofx-dev or
+ libofx-devel), or drop ofx support. You can do tis by removing
+ --enable-dbi from the configure parameters.])
+fi
+
+MIGRATABLE_PREFS_OFX="/dev/null"
+if test x${have_ofx} = xyes ; then
+ _COMPONENTS="$_COMPONENTS ofx"
MIGRATABLE_PREFS_OFX="$srcdir/src/import-export/ofx/migratable-prefs-ofx.xml"
fi
-AM_CONDITIONAL([WITH_OFX], [test "x${want_ofx}" != xno])
+
+AM_CONDITIONAL([WITH_OFX], [test "x${have_ofx}" = xyes])
AC_SUBST_FILE([MIGRATABLE_PREFS_OFX])
### --------------------------------------------------------------------------
### MT940
More information about the gnucash-changes
mailing list