From 641f2c0c40506a32d7ad2b8bce99b8ab1b0aaed4 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 19 May 2004 15:27:27 +0000 Subject: [PATCH] Let it install correctly when built via phpize --- ext/pdo/Makefile.frag | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/pdo/Makefile.frag b/ext/pdo/Makefile.frag index 46bba338ef..c28a5cee50 100644 --- a/ext/pdo/Makefile.frag +++ b/ext/pdo/Makefile.frag @@ -8,7 +8,11 @@ install-pdo-headers: echo "Installing PDO headers: $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/" $(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo for f in $(PDO_HEADER_FILES); do \ - if test -f "$(top_srcdir)/ext/pdo/$$f"; then \ + if test -f "$(top_srcdir)/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_srcdir)/ext/pdo/$$f"; then \ $(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ elif test -f "$(top_builddir)/ext/pdo/$$f"; then \ $(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ -- 2.40.0