[Top][All Lists]

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

AC_DEFINE questions

From: Balint Joo
Subject: AC_DEFINE questions
Date: Thu, 12 Dec 2002 13:02:27 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Dear List Readers,
        I have a few questions about autoconf usage, to do
with AC_CONFIG_HEADERS and AC_DEFINE, where I havent found
the relevant information in the autoconf manual.

Is it possible to place some of the results of AC_DEFINE
into a config.h file, but keep the others in the command line?
Alternatively is it possible to place some of the AC_DEFINEs
in one config.h file and others into a different config.h file?
Alternatively, can I stop autoconf from defining PACKAGE_NAME,
PACKAGE_TARNAME and all its friends.

Why would I want to do this? Read on:

I have two packages configured by autoconf. One of them
uses the config.h file to set some configuration definitions
such as ARCH. This is not just build time information, but something
general (the software is for a system where I have to specify some
array dimensions at configure time). The package builds a library
which is installed, and config.h gets installed also in the @prefix@/include

I then have a second package which needs to use the first one,
and it needs to include the its config.h file.

However, the version of autoconf I use, also defines some package
versioning information (PACKAGE_NAME, PACKAGE_TARNAME etc etc).
So when I compile the second package, which also has PACKAGE_NAME
and PACKAGE_TARNAME etc etc defined, these definitions conflict
between the two packages.

I'd like to suppress these conflicts. It would be nice if I could
dump the PACKAGE_TARNAME defines into a different file from my
other definitions say something like config.h for the important
ones and version.h for PACKAGE_TARNAME and its friends.

Is there a nice way to solve this problem?

        Best wishes,

Dr Balint Joo                         Post Doctoral Research Fellow
School of Physics
University of Edinburgh
Mayfield Road, Edinburgh EH9 3JZ
Scotland UK
Tel: 0131 650 6469 (from UK) +44-131-650-6469 (from outwith UK)
Fax: 0131 650 5212 (from UK) +44-131-650-5212 (from outwith UK)
email: address@hidden           address@hidden
WWW  :

reply via email to

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