From f615f7bd5ae2764bd58e2947e0f33e75fa182078 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 3 Dec 2018 15:00:40 +1000 Subject: configure.ac: use $datarootdir instead of $prefix/share Even worse, makepkg-template ignored $prefix completely. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c369ca74..ba54c2dd 100644 --- a/configure.ac +++ b/configure.ac @@ -101,7 +101,7 @@ AC_ARG_WITH(buildscript, # Help line for buildscript filename AC_ARG_WITH(makepkg-template-dir, AS_HELP_STRING([--with-makepkg-template-dir=name], [set the template dir used by makepkg-template]), - [TEMPLATE_DIR=$withval], [TEMPLATE_DIR=/usr/share/makepkg-template]) + [TEMPLATE_DIR=$withval], [TEMPLATE_DIR=${datarootdir}/makepkg-template]) # Help line for debug package suffix AC_ARG_WITH(debug-suffix, @@ -216,7 +216,7 @@ AC_CHECK_LIB([m], [fabs], , AC_MSG_ERROR([libm is needed to compile pacman!])) PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], , - bashcompdir="${prefix}/share/bash-completion/completions") + bashcompdir="${datarootdir}/bash-completion/completions") # Check for libarchive PKG_CHECK_MODULES(LIBARCHIVE, [libarchive >= 3.0.0], , -- cgit v1.2.3-54-g00ecf