diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 3227b95..ce96754 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,7 +11,7 @@ Xtransinclude_HEADERS = \ Xtransutil.c \ transport.c -aclocaldir = $(datadir)/aclocal +aclocaldir = @ACLOCALDIR@ aclocal_DATA = xtrans.m4 pkgconfigdir = $(libdir)/pkgconfig diff --git a/configure.ac b/configure.ac index d48834b..37d351f 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,10 @@ AC_CHECK_FUNC(fchown, [fchown_define="-DHAS_FCHOWN"], [fchown_define=""]) AC_SUBST(fchown_define) +ACLOCALDIR=`aclocal --print-ac-dir` + +AC_SUBST(ACLOCALDIR) + # sticky bit # # if any system exists without sticky dir bits this |