[PATCH weston] Automatically generate weston.ini with the right paths

Kristian Høgsberg hoegsberg at gmail.com
Wed Nov 27 14:10:23 PST 2013


On Sat, Nov 23, 2013 at 09:22:25AM +0000, Neil Roberts wrote:
> Kristian Høgsberg <hoegsberg at gmail.com> writes:
> 
> > That's a nice idea.  Could we just generate it from configure.ac by
> > listing it in AC_CONFIG_FILES?
> 
> Sadly that doesn't work because the autoconf expansions still include
> variables for make. Eg, @bindir@ expands to ${exec_prefix}/bin. I think
> that is needed so that you can use DESTDIR to change the prefix without
> rerunning configure. This trick of doing it with sed is recommended in
> the autoconf manual: http://is.gd/YivZyl (near the bottom).

Ok, 

> > Also, I was thinking that we should add a comment to the top of the
> > file saying that this is a sample weston.ini, that there's a
> > weston.ini man page, and that you can copy the sample weston.ini to
> > ~/.config/weston.ini or /etc/xdg/weston/weston.ini.
> 
> Yes, that would be nice. I didn't discover that until yesterday! Perhaps
> that would make more sense as a separate patch.

and sounds good.  Patch applied.

Kristian

> Regards,
> - Neil




More information about the wayland-devel mailing list