> On 2 Apr 2017, at 17:19, Ivan Vučica <i...@vucica.net> wrote: > > Hey, > > I'm trying to install GNUstep into /GNUstep with folders such as > /GNUstep/System, /GNUstep/Local, etc. However, GNUstep.conf should live in > /etc/GNUstep/GNUstep.conf. > > ./configure --prefix=/GNUstep --with-layout=gnustep --sysconfdir=/etc > > Looks like sysconfdir is not used here. And in fact, GNUstep.conf ends up in > /GNUstep/etc/GNUstep/GNUstep.conf, where it presumably won't be found by > things trying to find where GNUstep is installed.
I spent quite some time trying to figure out how it might be possible to preserve most of existing behavior while also making the code honor --sysconfdir= There's no way I could find in autoconf to tell whether the use has supplied the --sysconfdir= option, so checking for that would probabaly require us to add code to parse the command line arguments passed to the configure script and see if they contain --sysconfdir=, and that seems like a lot of work for little effect. However, as far as I can see $sysconfdir should always be $prefix/etc when neither -sysconfdir= is used. So perhaps we might use: if --with-config-file= is supplied ... use it else if $sysconfdir is not $prefix/etc ... use $sysconfdir/GNUstep/GNUstep.conf else if on darwin ... use /Library/GNUstep/GNUstep.conf else use current rules based on $GNUSTEP_PREFIX _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev