Re: Automake and directories
Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Fri, 17 Feb 2006 16:20:00 +0100
| Newsgroups | gmane.comp.web.midgard.devel |
|---|---|
| Message-ID | <[email protected]> |
Jukka Zitting <[email protected]> wrote: > > midgard-schema gets this info from header files, so I should add sysconfdir option soon. > > Or maybe we could replace midgard-config with better header files? > > One doesn't have to compile midgard-apache module against mysql libraries, and > > it doesn't matter if you point to header files or to midgard-config while configuring it. > > A better alternative for compiled programs that need to access the > configuration and other hardcoded directories directly would be to use > something like: > > extern const char *midgard_get_sysconfdir(void); I am not sure I follow you. This should returns constant defined in header. Why function ten? > This way there won't be problems when the underlying midgard-core gets > recompiled with different paths. > > Scripts like datagard should use midgard-config to get the correct paths. Hmmm.... I start to think about midgard config methods , and future datagard written with php. Any tool could just use midgard config object. Piotras