From f45e29c5ca5c50bded67c295fb62e208365cf4d6 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 18 Mar 2018 14:41:30 -0700 Subject: Restore --enable-local use Signed-off-by: Alexey Neyman diff --git a/Makefile.am b/Makefile.am index 72df953..06c90cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,11 +13,10 @@ EXTRA_DIST = ct-ng.in bootstrap nobase_dist_pkgdata_DATA = $(verbatim_data) paths.sh do_subst = ( @SED@ \ - -e 's,[@]bindir[@],$(bindir),g' \ -e 's,[@]docdir[@],$(docdir),g' \ - -e 's,[@]mandir[@],$(mandir),g' \ -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ -e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' \ + -e 's,[@]enable_local[@],$(enable_local),g' \ | $(SHELL) config.status --file=- ) ct-ng: ct-ng.in Makefile diff --git a/configure.ac b/configure.ac index 5e9fb18..c431f69 100644 --- a/configure.ac +++ b/configure.ac @@ -290,9 +290,9 @@ AS_IF( prefix=$(pwd) exec_prefix="$prefix" bindir="$prefix" - libdir="$prefix" docdir="$prefix""/docs" - datarootdir="$prefix" + pkgdatadir="$prefix" + pkglibexecdir="$prefix/kconfig" mandir="$docdir"]) AC_CONFIG_FILES([ diff --git a/ct-ng.in b/ct-ng.in index 3ba0d92..03925f9 100644 --- a/ct-ng.in +++ b/ct-ng.in @@ -16,8 +16,15 @@ export CT_TOP_DIR:=$(shell pwd) # Paths and values set by ./configure # Don't bother to change it other than with a new ./configure! +ifeq (@enable_local@,yes) +# automake does not allow to set pkgxxxdir, they are always derived from +# a respective xxxdir. So, for enable-local case, set them directly here. +export CT_LIB_DIR:=$(CT_TOP_DIR) +export CT_LIBEXEC_DIR:=$(CT_TOP_DIR)/kconfig +else export CT_LIB_DIR:=@pkgdatadir@ export CT_LIBEXEC_DIR:=@pkglibexecdir@ +endif export CT_DOC_DIR:=@docdir@ # This is crosstool-NG version string -- cgit v0.10.2-6-g49f6