[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't include SQLite libs in compile
From: |
Diego Elio Pettenò |
Subject: |
Re: Can't include SQLite libs in compile |
Date: |
Wed, 18 Dec 2013 21:46:45 +0000 |
On Wed, Dec 18, 2013 at 9:26 PM, Jordan H. <address@hidden> 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? If you haven't defined
program_LDADD and program_CFLAGS before using += they are not going to work.
Third, you want to use $(SQLITE_CFLAGS) rather than the @@ replacement.
A bit of documentation for PKG_CHECK_MODULES can be found on my Autotools
Mythbuster:
https://www.flameeyes.eu/autotools-mythbuster/pkgconfig/pkg_check_modules.html
Diego Elio Pettenò — Flameeyes
address@hidden — http://blog.flameeyes.eu/