-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
distribute config.h
#745
Comments
The header files will probably also use the result of autoconf tests, e.g. However I do agree that option #2 would be better. I am just a little With all this said, I would install config.h as syslog-ng-config.h much Bazsi
|
Probably we'll need to prefix our defines to avoid name collisions. I found this macro for this job: So we'll have |
Yes, lets hope it doesn't affect too many files, if we did things right If it is, that's a smell that should be fixed up in the future.
|
If somebody want to use syslog-ng's header files in a project then he/she needs syslog-ng's
config.h
file as well. It is produced during the build butmake install
doesn't install it.The link [1] says that
config.h
needs to be distributed if it affects the interface. Probably it is included in the header files throughsyslog-ng.h
.I see the following solutions:
config.h
, perhaps renaming it tosyslog-ng-config.h
config.h
only in C files, move elsewhere the dependent defines fromsyslog-ng.h
(YYDEBUG
andPATH_SYSLOGNG
, they are used only from.c
files), includeconfig.h
in.c
files where it is neededThis "feature" is needed to support Rust modules without a locally built syslog-ng.
I think the second approach is better but maybe it's impossible.
@bazsi @lbudai I'd like to hear your opinions.
The text was updated successfully, but these errors were encountered: