Index: configure.in =================================================================== --- configure.in (révision 28580) +++ configure.in (copie de travail) @@ -17,7 +17,24 @@ AM_PROG_LIBTOOL AC_C_CONST -abi_pkg='abiword-2.8 >= 2.8.0' +dnl ********** +dnl * Abiword +dnl ********** +abiword= +dnl Only 2.8.x, or later will work +for ver in 2.9 2.8 ; do + if test "x$abiword" = x; then + if pkg-config --exists abiword-$ver; then + abiword=abiword-$ver + fi + fi +done +if test "x$abiword" = x; then + # Not important. Things will fail below. + ver=2.8 + abiword=abiword-2.8 +fi +abi_pkg="$abiword >= 2.8.0" PKG_CHECK_MODULES(ABIWORD, "$abi_pkg") AC_SUBST(ABIWORD_CFLAGS) AC_SUBST(ABIWORD_LIBS)