Re: Can't include SQLite libs in compile

2013-12-18 Thread Thomas Jahns
Hi, On Dec 18, 2013, at 19:34 , Jordan H. wrote: Relevant part of configure.ac: PKG_CHECK_MODULES(SQLITE, [sqlite3 > $SQLITE_REQUIRED_VERSION]) You probably want to turn SQLITE into SQLITE3 there? Also I don't think $SQLITE_REQUIRED_VERSION as a shell variable will work the way you thi

Re: Can't include SQLite libs in compile

2013-12-18 Thread Thomas Jahns
Hello, On Dec 18, 2013, at 22:26 , Jordan H. wrote: Thanks but I'm still getting the same error. can you provide the result of the following commands to get a better idea of what's going wrong: $ grep SQLITE_ config.log $ grep program_CFLAGS Makefile after running configure? configure.a

Re: perl modules

2013-12-18 Thread Russ Allbery
Harlan Stenn writes: > As part of the build and check process I want to run a generated perl > script that needs a module that I'll also be installing. This means > that the module we want to use might not be installed, or the installed > copy might be an old copy. We'll need to run the script

Re: Can't include SQLite libs in compile

2013-12-18 Thread Jordan H.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Here's the full Makefile.am (myprog is the name of my program): bin_PROGRAMS = myprog myprog_SOURCES = main.c main.h database.c database.h exec_button.c exec_button.h myprog_CFLAGS = $(GTK_CFLAGS) myprog_CFLAGS += $(GMODULE_CFLAGS)

Re: Long file lists and deep directioriies with Automake

2013-12-18 Thread PenguinDude24
I also had to use the install-data-hook target to get the data files nested just right also.

Re: Can't include SQLite libs in compile

2013-12-18 Thread Diego Elio Pettenò
On Wed, Dec 18, 2013 at 9:26 PM, Jordan H. wrote: > Makefile.am: > > program_CFLAGS += @SQLITE_CFLAGS@ > program_LDADD += @SQLITE_LIBS@ > First you should not need to use AC_SUBST() for these variables at all if you have the right pkg.m4. Second, can you please post the full Makefile.am

Re: Can't include SQLite libs in compile

2013-12-18 Thread Jordan H.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Thanks but I'm still getting the same error. configure.ac: ... m4_define(SQLITE_REQUIRED_VERSION, 3.0) ... PKG_CHECK_MODULES(SQLITE, [sqlite >= $SQLITE_REQUIRED_VERSION]) AC_SUBST([SQLITE_CFLAGS]) AC_SUBST([SQLITE_LIBS]) I

Can't include SQLite libs in compile

2013-12-18 Thread Jordan H.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Relevant part of configure.ac: PKG_CHECK_MODULES(SQLITE, [sqlite3 > $SQLITE_REQUIRED_VERSION]) AC_SUBST([SQLITE3_CFLAGS]) AC_SUBST([SQLITE3_LIBS]) Even without $SQLITE_REQUIRED_VERSION it still fails. Relevant part of makefile.am:

perl modules

2013-12-18 Thread Harlan Stenn
So I've read the thread that ends with http://lists.gnu.org/archive/html/automake/2011-12/msg00020.html . I can make a choice about what to use for pmdir. As part of the build and check process I want to run a generated perl script that needs a module that I'll also be installing. This means tha