autoconf
[Top][All Lists]
Advanced

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

Re: zlib


From: Vincent Torri
Subject: Re: zlib
Date: Tue, 5 Jan 2010 20:07:52 +0100 (CET)



On Tue, 5 Jan 2010, Ralf Wildenhues wrote:

Hello Philip,

* Philip Herron wrote on Tue, Jan 05, 2010 at 01:27:32AM CET:
I am having trouble finding some macro or something for my
configure.ac to for zlib support. I found this so far:
http://ac-archive.sourceforge.net/ac-archive/check_zlib.html
But this simply adds the option AC_ARG_WITH so zlib is optional but my
work needs zlib now so its a little annoying to always have to
./configure --with-zlib...

Not sure if there is a cool trick to simply always turn it on but i am
sure there is a better setup for this out there since zlib is so
widely used!

I'm not sure I understand why you are looking for something
zlib-specific at all.  If you need to check for a library, you can use
AC_CHECK_LIB or one of its sister macros, and you can use
AC_CHECK_HEADERS for header files.  Your users can pass CPPFLAGS=-I...
and LDFLAGS=-L... to configure if the files are to be found in
nonstandard locations.  gnulib also has the module havelib to make this
a bit more generic and help with run paths.

Hope that helps.  Otherwise, please be more specific in what doesn't
work for you (show code, specify needed semantics, etc).

note that in the next zlib release, there will be a .pc file

Vincent Torri




reply via email to

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