aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in4
-rw-r--r--plugins/tests/Makefile.am4
-rwxr-xr-xtools/setup1
3 files changed, 4 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index ddbde159..d1ef9543 100644
--- a/configure.in
+++ b/configure.in
@@ -23,7 +23,7 @@ gl_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
-AC_PROG_RANLIB
+AC_PROG_LIBTOOL
AC_PROG_MAKE_SET
AC_PROG_AWK
@@ -168,10 +168,8 @@ AC_SUBST(MATHLIBS)
dnl Check for libtap, to run perl-like tests
AC_CHECK_LIB(tap, plan_tests,
- TAPLIBS="-ltap"
EXTRA_TEST=test_utils
AC_SUBST(EXTRA_TEST)
- AC_SUBST(TAPLIBS)
)
dnl Check for PostgreSQL libraries
diff --git a/plugins/tests/Makefile.am b/plugins/tests/Makefile.am
index c73725de..d3e74945 100644
--- a/plugins/tests/Makefile.am
+++ b/plugins/tests/Makefile.am
@@ -15,8 +15,8 @@ LIBS = @LIBINTL@
test_utils_SOURCES = test_utils.c
test_utils_CFLAGS = -g -I..
-test_utils_LDFLAGS = -L..
-test_utils_LDADD = ../utils.o $(TAPLIBS)
+test_utils_LDFLAGS = -rpath /usr/local/lib -ltap
+test_utils_LDADD = ../utils.o
test: ${noinst_PROGRAMS}
perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS)
diff --git a/tools/setup b/tools/setup
index 39c6f74a..be625abd 100755
--- a/tools/setup
+++ b/tools/setup
@@ -20,6 +20,7 @@ fi
autopoint --force
aclocal -I m4
+libtoolize --force --copy
autoheader
automake --add-missing --force-missing --copy
autoconf