autoconf
[Top][All Lists]
Advanced

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

Re: AC_DEFINE questions (Solved)


From: Guido Draheim
Subject: Re: AC_DEFINE questions (Solved)
Date: Thu, 12 Dec 2002 19:55:52 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

Balint Joo wrote:

Instead I ended up solving the problem the dumb way. I didn't use the
pkh-config.h and AC_DEFINE mechanism. I created a pkg-config.h
file and used dumb substitution a la:

AC_CONFIG_FILE(include/pkg-config.h)

and in the include/pkg-config.h.in file:

that's the way the core autoconf wants it: use an *.in file.

I did specifically made up the _create_prefix_ macro to *easily*
get the results of _HAVE_ and _SIZE_ checks into an installable
file. Otherwise, a selected series has to be picked and re-SUBST-ed
for being then picked up in a manually-written pkg-config.h.in
as opposed to the automatically-generated config.h.in

well, may be an automatically generated pkg-config.h.in might
help - and indeed, similar things have been implemented in a
matter close by of installable config.h files: the automatic
creation of pkgconfig scripts (a.k.a. glib-config sdl-config
bin-commands), which shall pick up most parts from the other
configure macros.

For the latter, the corresponding macros in the ac-archive.sf.net
might be of help in looking at possible implementation sides of
handling selectable config.h mechanisms. There are more macros
that can help library makers in getting things done where the
core autoconf system has just rock functionality shipped along.

have fun, guido





reply via email to

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