mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -05:00
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:
parent
8f625f2be4
commit
ee1aa840f1
5 changed files with 40 additions and 16 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue