summaryrefslogtreecommitdiff
path: root/config/perl.m4
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2001-08-26 22:28:04 +0000
committerPeter Eisentraut <peter_e@gmx.net>2001-08-26 22:28:04 +0000
commitef7152f99bb87fae344f731a670c18dd476638e7 (patch)
tree87572cf1ed04c1c119689c6daac62148a825d378 /config/perl.m4
parent8e0d642c9bfb9247f385eb3490def23bff236093 (diff)
downloadpostgresql-ef7152f99bb87fae344f731a670c18dd476638e7.tar.gz
Put the right runpath to libpq into the Perl module shared object on more
platforms and without relinking. Also support VPATH builds and DESTDIR installs. One hopes.
Diffstat (limited to 'config/perl.m4')
-rw-r--r--config/perl.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/config/perl.m4 b/config/perl.m4
new file mode 100644
index 0000000000..a7401ccef3
--- /dev/null
+++ b/config/perl.m4
@@ -0,0 +1,27 @@
+# $Header: /cvsroot/pgsql/config/perl.m4,v 1.1 2001/08/26 22:28:04 petere Exp $
+
+
+# PGAC_PATH_PERL
+# --------------
+AC_DEFUN([PGAC_PATH_PERL],
+[AC_PATH_PROG(PERL, perl)])
+
+
+# PGAC_CHECK_PERL_DIRS
+# ---------------------
+AC_DEFUN([PGAC_CHECK_PERL_DIRS],
+[
+AC_REQUIRE([PGAC_PATH_PERL])
+AC_MSG_CHECKING([Perl installation directories])
+
+# These are the ones we currently need. Others can be added easily.
+perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
+perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
+perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
+
+AC_SUBST(perl_installsitearch)[]dnl
+AC_SUBST(perl_installsitelib)[]dnl
+AC_SUBST(perl_installman3dir)[]dnl
+
+AC_MSG_RESULT(done)
+])