X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=1456b66138eaf537a40cedd6a39325b4f143a088;hb=36358c343bea8338ef0e8d420321a7ce0b7ce28e;hp=766d5a43859d43a26aa9c7771dcf959379861a98;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/configure.ac b/configure.ac index 766d5a4385..1456b66138 100644 --- a/configure.ac +++ b/configure.ac @@ -199,24 +199,30 @@ AC_DEFINE( [crc32], [gl_crc32], [Avoid making zlib call gnulib's crc32() instead of its own.]) -dnl Gnumeric support requires libxml2 and zlib. +dnl Gnumeric and OpenDocument (read) support requires libxml2 and zlib. if test $HAVE_LIBXML2 = yes && test $HAVE_ZLIB = yes; then GNM_SUPPORT=yes + ODF_READ_SUPPORT=yes AC_DEFINE( [GNM_SUPPORT], [1], [Define to 1 if building in support for reading Gnumeric files.]) + AC_DEFINE( + [ODF_READ_SUPPORT], [1], + [Define to 1 if building in support for reading OpenDocument files.]) else GNM_SUPPORT=no + ODF_READ_SUPPORT=no fi AC_SUBST([GNM_SUPPORT]) +AC_SUBST([ODF_READ_SUPPORT]) -dnl ODT support requires libxml2. +dnl ODF support requires libxml2 (zlib is optional). if test $HAVE_LIBXML2 = yes; then AC_DEFINE( - [ODT_SUPPORT], [1], - [Define to 1 if building in support for writing ODT files.]) + [ODF_WRITE_SUPPORT], [1], + [Define to 1 if building in support for writing OpenDocument files.]) fi -AM_CONDITIONAL([ODT_SUPPORT], [test $HAVE_LIBXML2 = yes]) +AM_CONDITIONAL([ODF_WRITE_SUPPORT], [test $HAVE_LIBXML2 = yes]) AC_ARG_WITH( gui_tools,