Re: new/custom installation directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gavin Smith writes:
> What is wrong with
> 
> --prefix=/usr/local --sysconfdir=/etc
> 
> With
> 
> prefix=@prefix@
> sysconfdir=@sysconfdir@
> datarootdir=@datarootdir@
> includedir=@includedir@
> localstatedir=@localstatedir@
> sharedstatedir=@sharedstatedir@
> 
> in Makefile.in, and
> 
> AC_INIT
> AC_CONFIG_FILES([Makefile])
> AC_OUTPUT
> 
> in configure.ac, running "./configure --prefix=/usr/local
> --sysconfdir=/etc" gives the following in Makefile:
> 
> prefix=/usr/local
> sysconfdir=/etc
> datarootdir=${prefix}/share
> includedir=${prefix}/include
> localstatedir=${prefix}/var
> sharedstatedir=${prefix}/com
> 
> which are the values you want.

Well, with autoconf-2.69 that works just fine.  I have the (possibly
incorrect) recollection that this did not work with (much) older
versions of autoconf and automake.

Now to figure out how to get our per-OS default values for sysconfdir to
be used only in the case where no --sysconfdir=... value was given (in
some way).

That might be:

  test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc

Thanks Gavin, and sorry I was being thick, Eric.

H

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux