Respect sysconfdir for configuration file location

The sysconfdir is used if it exists, otherwise it fallbacks
to the previous default /etc.
This commit is contained in:
James Sanderson 2016-11-06 19:30:01 +00:00 • committed by Andrea Mazzoleni
parent 8f625f2be4
commit ee1aa840f1
5 changed files with 40 additions and 16 deletions

View file

@ -364,6 +364,12 @@ AC_ARG_VAR([TESTENV_SSSE3], [Test environment for SSSE3])
AC_ARG_VAR([TESTENV_SSE42], [Test environment for SSE42])
AC_ARG_VAR([TESTENV_AVX2], [Test environment for AVX2])
dnl Expand default prefix, required to expand sysconfdir=$prefix/etc
test "x$prefix" = xNONE && prefix=$ac_default_prefix
dnl Set the configuration directory in config.h
AC_DEFINE_UNQUOTED([SYSCONFDIR],["$(eval echo $sysconfdir)"],[Configuration directory])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT