Specifying sysconfdir file path in config.h with autoconf?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Specifying sysconfdir file path in config.h with autoconf?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-05 12:50 PM

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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:46 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register