This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
SYSCONFDIR: config.h vs. AM_CFLAGS
- From: ibr at ata dot cs dot hun dot edu dot tr
- To: automake at gnu dot org
- Date: Mon, 7 Mar 2005 10:42:18 +0100
- Subject: SYSCONFDIR: config.h vs. AM_CFLAGS
Hello,
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. However, I can't figure out how to use it, since autoheader
says that acconfig.h is deprecated, and both config.h.in and config.h
are auto-generated. Is defining everything on the command line really
the best and intended way to do that?
Thanks in advance,
Baurzhan.