Unix Programming - Specifying sysconfdir file path in config.h with autoconf?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > September 2005 > Specifying sysconfdir file path in config.h with autoconf?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Specifying sysconfdir file path in config.h with autoconf?
Qaxi

2005-09-23, 7:50 am

Hi
I want to have a configuration file in the sysconfdir for my program,
but if
I put AC_DEFINE_UNQUOTED(CONFFILE, "$sysconfdir/file.conf"), I end up
with
the path being "${prefix}/etc/file.conf" which is pretty meaningless to
C.
I've seen people hack it by just saying "$prefix/etc/file.conf" in the
configure.in, but this doesn't seem to be the right thing to do.
Should I
do that, or is there a way to use the sysconfdir?


Petr klima

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com