This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SYSCONFDIR: config.h vs. AM_CFLAGS


ibr@ata.cs.hun.edu.tr wrote:
I'm using SYSCONFDIR in one of my C source files. Currently I pass it
through the following definition:

AM_CFLAGS = ... -DSYSCONFDIR=\"@sysconfdir@\"

This is cluttering the gcc command line, so I want to define it in
config.h.

Isn't config.h created at configure time? AFAIK directory installation variables should only be defined at make time. See ``info Autoconf "Installation Directory Variables"''.

Maybe you could use instead a dedicated header, created through the
Makefile.  See ``info Autoconf "Defining Directories"''.[2]

--
Leonardo Boiko

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]