X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=2ba3ba35253abcdafdd04bd8b1197bcade0ba203;hb=520443ed2a413e60c9ace74e9998595691513669;hp=766d5a43859d43a26aa9c7771dcf959379861a98;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/configure.ac b/configure.ac index 766d5a4385..2ba3ba3525 100644 --- a/configure.ac +++ b/configure.ac @@ -84,9 +84,10 @@ if test "$with_cairo" != no && test "$with_gui" != "no"; then PSPP_REQUIRED_PREREQ([glib-genmarshal (or use --without-gui)]) fi - gl_NEXT_HEADERS([gtk/gtk.h]) fi +gl_NEXT_HEADERS([gtk/gtk.h]) + dnl Checks needed for psql reader dnl The 8.x series postgres tarballs installs with a default prefix of @@ -199,24 +200,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,