GNOME Bugzilla – Bug 760016
2.6.10 and master dump script error while running configure
Last modified: 2018-06-29 23:45:33 UTC
checking for fop... no configure: WARNING: fop not found. You will not be able to generate PDF files. configure: WARNING: fop-ttfreader not found, using the default Japanese fonts. ./configure: 2764: [: -lt: unexpected operator This is because configure.ac is using a bash specific construct: if [[ $fop_version -lt 2 ]]; then
Does changing it to if [ test $fop_version -lt 2 ]; then work for you?
No, it's not bash-specific, but it is Bourne shell specific. If using `test` fixes if for you, great, I've pushed that fix. If not you'll need to install a Bourne-compliant shell and either link it to /bin/sh or set $CONFIG_SHELL to point to it.
using just: if test $fop_version -lt 2; then works for me. I wanted to prepare a patch using AS_IF like my recent gnucash patch but it needs more work than I currently have time for so this simple fix is ok for me.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=760016. Please update any external references or bookmarks.