pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Import excel file


From: John Darrington
Subject: Re: Import excel file
Date: Thu, 14 Apr 2011 18:35:48 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

I downloaded and installed the libxls library. 

Unfortunately it installs by default into $(prefix)/libxls

This means the only way to configure it is like this:

LD_LIBRARY_PATH=/usr/local/libxls/lib/ LDFLAGS=-L/usr/local/libxls/lib 
CPPFLAGS=-I/usr/local/libxls/include ./configure

I don't know what the best way to work around this problem.  I wish project 
maintainers wouldn't do 
things like this.

On Wed, Apr 13, 2011 at 09:42:53PM -0700, Ben Pfaff wrote:
     Michel, here's a patch for configure.ac that I believe should
     allow the configuration process to automatically detect
     libxlsreader and link against it if it is found:
     
     diff --git a/configure.ac b/configure.ac
     index ac57a2a..55971d6 100644
     --- a/configure.ac
     +++ b/configure.ac
     @@ -221,6 +221,18 @@ if test x"$with_gui_tools" = x"yes" ; then
      fi
      AM_CONDITIONAL(WITH_GUI_TOOLS, test x"$with_gui_tools" = x"yes")
      
     +dnl Check for libxlsreader.
     +AC_SEARCH_LIBS(
     +  [xls_open], [xlsreader],
     +  [HAVE_LIBXLSREADER=yes],
     +  [HAVE_LIBXLSREADER=no
     +   PSPP_OPTIONAL_PREREQ([libxlsreader])])
     +if test $HAVE_LIBXLSREADER = yes; then
     +  AC_DEFINE(
     +    [XLS_SUPPORT], [1],
     +    [Define to 1 if building in support for reading Excel spreadsheet 
files.])
     +fi
     +
      AC_ARG_WITH(
        [perl-module],
        [AS_HELP_STRING([--without-perl-module], [do not build the Perl 
module])],
     
     -- 
     Ben Pfaff 
     http://benpfaff.org

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]