summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 01c2500..f800b24 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,7 +23,7 @@ MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = *.bak
-ACLOCAL = aclocal -I .
+ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libpinyin.pc
diff --git a/configure.ac b/configure.ac
index d98f5e9..cd33be0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,8 +22,10 @@ m4_define([libpinyin_binary_version],
AC_PREREQ(2.60)
AC_INIT([libpinyin], [libpinyin_version], [https://github.com/libpinyin/libpinyin/issues/new])
AM_INIT_AUTOMAKE
+
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
+AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
# Define a string for binary compatibility