From ab4dc7bbf3c828c903abc7ad3a3424be81fd6cd4 Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Mon, 18 Dec 2006 22:35:36 +0000
Subject: [PATCH] BugID: 686

Indirect package dependencies will now be derived by inspecting the contents
of the directory config/<pkg-name> in the install directory for all packages
mentioned in the current configure.in file.
---
 Appl/CEP/CS1/CS1_BBS/Makefile.am                         | 3 +++
 Appl/CEP/CS1/CS1_BGLProc/Makefile.am                     | 3 +++
 Appl/CEP/CS1/CS1_DelayCompensation/Makefile.am           | 3 +++
 Appl/CEP/CS1/CS1_Flagger/Makefile.am                     | 3 +++
 Appl/CEP/CS1/CS1_Generator/Makefile.am                   | 3 +++
 Appl/CEP/CS1/CS1_Imager/Makefile.am                      | 3 +++
 Appl/CEP/CS1/CS1_InputSection/Makefile.am                | 3 +++
 Appl/CEP/CS1/CS1_Interface/Makefile.am                   | 3 +++
 Appl/CEP/CS1/CS1_Run/Makefile.am                         | 3 +++
 Appl/CEP/CS1/CS1_Storage/Makefile.am                     | 3 +++
 CEP/BB/BBS3/Makefile.am                                  | 3 +++
 CEP/BB/BBSControl/Makefile.am                            | 3 +++
 CEP/BB/BBSKernel/Makefile.am                             | 3 +++
 CEP/BB/BDBReplication/Makefile.am                        | 3 +++
 CEP/BB/MS/Makefile.am                                    | 3 +++
 CEP/BB/ParmDB/Makefile.am                                | 3 +++
 CEP/BB/ParmFacade/Makefile.am                            | 3 +++
 CEP/CEPFrame/Makefile.am                                 | 3 +++
 CEP/Demo/EmptyAppl/Makefile.am                           | 3 +++
 CEP/Demo/ExampleSim/Makefile.am                          | 3 +++
 CEP/Demo/OnLineProto/Makefile.am                         | 3 +++
 CEP/Tools/AccepTest1/Makefile.am                         | 3 +++
 CEP/Tools/AccepTest2/Makefile.am                         | 3 +++
 CEP/Tools/Generator/Makefile.am                          | 3 +++
 CEP/Tools/PerfTest/3BlockPerf/Makefile.am                | 3 +++
 CEP/Tools/PerfTest/AsyncTest/Makefile.am                 | 3 +++
 CEP/Tools/PerfTest/InOutTest/Makefile.am                 | 3 +++
 CEP/Tools/PerfTest/P2Perf/Makefile.am                    | 3 +++
 CEP/Tools/SocketTester/Makefile.am                       | 3 +++
 CEP/tinyCEP/Makefile.am                                  | 3 +++
 Demo/CEP/StationCorrelator/Makefile.am                   | 3 +++
 Demo/CEP/TFlopCorrelator/TFC_BGLProc/Makefile.am         | 3 +++
 .../TFlopCorrelator/TFC_DelayCompensation/Makefile.am    | 3 +++
 Demo/CEP/TFlopCorrelator/TFC_Generator/Makefile.am       | 3 +++
 Demo/CEP/TFlopCorrelator/TFC_InputSection/Makefile.am    | 3 +++
 Demo/CEP/TFlopCorrelator/TFC_Interface/Makefile.am       | 9 ++++++++-
 Demo/CEP/TFlopCorrelator/TFC_Interface/test/Makefile.am  | 1 +
 Demo/CEP/TFlopCorrelator/TFC_Storage/Makefile.am         | 3 +++
 JAVA/CEP/jParmFacade/Makefile.am                         | 3 +++
 JAVA/MAC/jRSP/Makefile.am                                | 3 +++
 LCS/ACC/ACCbin/Makefile.am                               | 3 +++
 LCS/ACC/ALC/Makefile.am                                  | 3 +++
 LCS/ACC/APS/Makefile.am                                  | 3 +++
 LCS/ACC/PLC/Makefile.am                                  | 3 +++
 LCS/AMC/AMCBase/Makefile.am                              | 3 +++
 LCS/AMC/AMCImpl/Makefile.am                              | 3 +++
 LCS/Blob/Makefile.am                                     | 3 +++
 LCS/Common/Makefile.am                                   | 3 +++
 LCS/Math/Makefile.am                                     | 3 +++
 LCS/Tools/Makefile.am                                    | 3 +++
 LCS/Transport/Makefile.am                                | 3 +++
 LCS/databases/PL/Makefile.am                             | 3 +++
 LCS/databases/TransportPL/Makefile.am                    | 3 +++
 LCS/databases/TransportPostgres/Makefile.am              | 3 +++
 MAC/APL/APLCommon/Makefile.am                            | 3 +++
 MAC/APL/CEPCU/Makefile.am                                | 3 +++
 MAC/APL/CUDaemons/Makefile.am                            | 3 +++
 MAC/APL/MainCU/Makefile.am                               | 3 +++
 MAC/APL/PAC/BS_Protocol/Makefile.am                      | 3 +++
 MAC/APL/PAC/BeamServer/Makefile.am                       | 3 +++
 MAC/APL/PAC/CAL_Protocol/Makefile.am                     | 3 +++
 MAC/APL/PAC/CalServer/Makefile.am                        | 3 +++
 MAC/APL/PAC/_StationOperations/Makefile.am               | 3 +++
 MAC/APL/PAC/_StationReceptorGroup/Makefile.am            | 3 +++
 MAC/APL/PAC/_StationStartDaemon/Makefile.am              | 3 +++
 MAC/APL/PAC/_VirtualBackend/Makefile.am                  | 3 +++
 MAC/APL/PAC/_VirtualTelescope/Makefile.am                | 3 +++
 MAC/APL/PIC/ETHTest/Makefile.am                          | 3 +++
 MAC/APL/PIC/MIS/Makefile.am                              | 3 +++
 MAC/APL/PIC/RSPCtlFE/Makefile.am                         | 3 +++
 MAC/APL/PIC/RSPDriver/Makefile.am                        | 3 +++
 MAC/APL/PIC/RSP_Protocol/Makefile.am                     | 3 +++
 MAC/APL/PIC/TBBDriver/Makefile.am                        | 3 +++
 MAC/APL/PIC/TBB_Protocol/Makefile.am                     | 3 +++
 MAC/APL/PIC/_NodeManager/Makefile.am                     | 3 +++
 MAC/APL/PIC/_RegisterAccess/Makefile.am                  | 3 +++
 MAC/APL/RTCCommon/Makefile.am                            | 3 +++
 MAC/APL/StationCU/Makefile.am                            | 3 +++
 MAC/APL/StsMisc/Makefile.am                              | 3 +++
 MAC/APL/TestCtlr/Makefile.am                             | 3 +++
 MAC/APL/_GSO/MACScheduler/Makefile.am                    | 3 +++
 MAC/APL/_VIC/ArrayOperations/Makefile.am                 | 3 +++
 MAC/APL/_VIC/ArrayReceptorGroup/Makefile.am              | 3 +++
 MAC/APL/_VIC/VirtualInstrument/Makefile.am               | 3 +++
 MAC/APL/_VIC/VirtualRoute/Makefile.am                    | 3 +++
 MAC/Deployment/Makefile.am                               | 3 +++
 MAC/Drivers/spid/Makefile.am                             | 3 +++
 MAC/GCF/GCFCommon/Makefile.am                            | 3 +++
 MAC/GCF/LogSys/Makefile.am                               | 3 +++
 MAC/GCF/Protocols/Makefile.am                            | 3 +++
 MAC/GCF/TM/Makefile.am                                   | 3 +++
 MAC/GCF/_PAL/Makefile.am                                 | 3 +++
 MAC/GCF/_PALlight/Makefile.am                            | 3 +++
 MAC/Test/GCF/CEP/Makefile.am                             | 3 +++
 MAC/Test/GCF/MAC/Makefile.am                             | 3 +++
 MAC/Test/GCF/RTC/Makefile.am                             | 3 +++
 MAC/Test/PROTO/GPI/Makefile.am                           | 3 +++
 MAC/Test/PROTO/PI/Makefile.am                            | 3 +++
 MAC/Test/PROTO/PROP/Makefile.am                          | 3 +++
 MAC/Test/PROTO/PVSSAPI/Makefile.am                       | 3 +++
 MAC/Test/PROTO/TASK/Makefile.am                          | 3 +++
 MAC/Test/Suite/Makefile.am                               | 3 +++
 MAC/Test/TestHarness/THEcho/Makefile.am                  | 3 +++
 MAC/Test/TestHarness/THPVSSBridge/Makefile.am            | 3 +++
 MAC/Test/TestHarness/TSE/Makefile.am                     | 3 +++
 SAS/OTB/jOTDB2/Makefile.am                               | 3 +++
 SAS/OTDB/Makefile.am                                     | 3 +++
 107 files changed, 324 insertions(+), 1 deletion(-)

diff --git a/Appl/CEP/CS1/CS1_BBS/Makefile.am b/Appl/CEP/CS1/CS1_BBS/Makefile.am
index dbe86472c71..9f30b37f763 100644
--- a/Appl/CEP/CS1/CS1_BBS/Makefile.am
+++ b/Appl/CEP/CS1/CS1_BBS/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS= \
       --with-common=$(prefix) \
       --with-aips++ 
diff --git a/Appl/CEP/CS1/CS1_BGLProc/Makefile.am b/Appl/CEP/CS1/CS1_BGLProc/Makefile.am
index 158b4942f7a..a4b6490827b 100644
--- a/Appl/CEP/CS1/CS1_BGLProc/Makefile.am
+++ b/Appl/CEP/CS1/CS1_BGLProc/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/Appl/CEP/CS1/CS1_DelayCompensation/Makefile.am b/Appl/CEP/CS1/CS1_DelayCompensation/Makefile.am
index 0707c76d4b5..9d6b64a7dd0 100644
--- a/Appl/CEP/CS1/CS1_DelayCompensation/Makefile.am
+++ b/Appl/CEP/CS1/CS1_DelayCompensation/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/Appl/CEP/CS1/CS1_Flagger/Makefile.am b/Appl/CEP/CS1/CS1_Flagger/Makefile.am
index dbe86472c71..9f30b37f763 100644
--- a/Appl/CEP/CS1/CS1_Flagger/Makefile.am
+++ b/Appl/CEP/CS1/CS1_Flagger/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS= \
       --with-common=$(prefix) \
       --with-aips++ 
diff --git a/Appl/CEP/CS1/CS1_Generator/Makefile.am b/Appl/CEP/CS1/CS1_Generator/Makefile.am
index 32c7bfd451a..cb4b37c5e3a 100644
--- a/Appl/CEP/CS1/CS1_Generator/Makefile.am
+++ b/Appl/CEP/CS1/CS1_Generator/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/Appl/CEP/CS1/CS1_Imager/Makefile.am b/Appl/CEP/CS1/CS1_Imager/Makefile.am
index dbe86472c71..9f30b37f763 100644
--- a/Appl/CEP/CS1/CS1_Imager/Makefile.am
+++ b/Appl/CEP/CS1/CS1_Imager/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS= \
       --with-common=$(prefix) \
       --with-aips++ 
diff --git a/Appl/CEP/CS1/CS1_InputSection/Makefile.am b/Appl/CEP/CS1/CS1_InputSection/Makefile.am
index 0289ae7119a..7f71108fd01 100644
--- a/Appl/CEP/CS1/CS1_InputSection/Makefile.am
+++ b/Appl/CEP/CS1/CS1_InputSection/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/Appl/CEP/CS1/CS1_Interface/Makefile.am b/Appl/CEP/CS1/CS1_Interface/Makefile.am
index 8bb73a1251e..d5081daa990 100644
--- a/Appl/CEP/CS1/CS1_Interface/Makefile.am
+++ b/Appl/CEP/CS1/CS1_Interface/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix) \
       --with-transport=$(prefix) \
diff --git a/Appl/CEP/CS1/CS1_Run/Makefile.am b/Appl/CEP/CS1/CS1_Run/Makefile.am
index a9f3f152894..a4873c2d3ed 100644
--- a/Appl/CEP/CS1/CS1_Run/Makefile.am
+++ b/Appl/CEP/CS1/CS1_Run/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/Appl/CEP/CS1/CS1_Storage/Makefile.am b/Appl/CEP/CS1/CS1_Storage/Makefile.am
index 8b3aaa5143a..70dde203d03 100644
--- a/Appl/CEP/CS1/CS1_Storage/Makefile.am
+++ b/Appl/CEP/CS1/CS1_Storage/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/CEP/BB/BBS3/Makefile.am b/CEP/BB/BBS3/Makefile.am
index 66a0f81cfd5..59df0d4e4ac 100644
--- a/CEP/BB/BBS3/Makefile.am
+++ b/CEP/BB/BBS3/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src test
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/BB/BBSControl/Makefile.am b/CEP/BB/BBSControl/Makefile.am
index 364c8980189..a241d90ae08 100644
--- a/CEP/BB/BBSControl/Makefile.am
+++ b/CEP/BB/BBSControl/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS = include src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS = \
       --with-common=$(prefix) \
       --with-blob=$(prefix) \
diff --git a/CEP/BB/BBSKernel/Makefile.am b/CEP/BB/BBSKernel/Makefile.am
index a594bed4fd2..7aad684e198 100644
--- a/CEP/BB/BBSKernel/Makefile.am
+++ b/CEP/BB/BBSKernel/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS = \
 	--with-parmdb=$(prefix) \
 	--with-ms=$(prefix)
diff --git a/CEP/BB/BDBReplication/Makefile.am b/CEP/BB/BDBReplication/Makefile.am
index acbfee038bc..b7cd6f048ab 100644
--- a/CEP/BB/BDBReplication/Makefile.am
+++ b/CEP/BB/BDBReplication/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/BB/MS/Makefile.am b/CEP/BB/MS/Makefile.am
index acbfee038bc..b7cd6f048ab 100644
--- a/CEP/BB/MS/Makefile.am
+++ b/CEP/BB/MS/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/BB/ParmDB/Makefile.am b/CEP/BB/ParmDB/Makefile.am
index fffc9a936fa..9baf97a94ca 100644
--- a/CEP/BB/ParmDB/Makefile.am
+++ b/CEP/BB/ParmDB/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/CEP/BB/ParmFacade/Makefile.am b/CEP/BB/ParmFacade/Makefile.am
index 86dd5c384e1..0afea52c1b5 100644
--- a/CEP/BB/ParmFacade/Makefile.am
+++ b/CEP/BB/ParmFacade/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/CEP/CEPFrame/Makefile.am b/CEP/CEPFrame/Makefile.am
index 2354df8c522..e64492393f3 100644
--- a/CEP/CEPFrame/Makefile.am
+++ b/CEP/CEPFrame/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
         --with-common=$(prefix) \
         --with-transport=$(prefix) \
diff --git a/CEP/Demo/EmptyAppl/Makefile.am b/CEP/Demo/EmptyAppl/Makefile.am
index e12e737fd00..5253f5e063a 100644
--- a/CEP/Demo/EmptyAppl/Makefile.am
+++ b/CEP/Demo/EmptyAppl/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/Demo/ExampleSim/Makefile.am b/CEP/Demo/ExampleSim/Makefile.am
index e12e737fd00..5253f5e063a 100644
--- a/CEP/Demo/ExampleSim/Makefile.am
+++ b/CEP/Demo/ExampleSim/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/Demo/OnLineProto/Makefile.am b/CEP/Demo/OnLineProto/Makefile.am
index e12e737fd00..5253f5e063a 100644
--- a/CEP/Demo/OnLineProto/Makefile.am
+++ b/CEP/Demo/OnLineProto/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/Tools/AccepTest1/Makefile.am b/CEP/Tools/AccepTest1/Makefile.am
index e12e737fd00..5253f5e063a 100644
--- a/CEP/Tools/AccepTest1/Makefile.am
+++ b/CEP/Tools/AccepTest1/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/Tools/AccepTest2/Makefile.am b/CEP/Tools/AccepTest2/Makefile.am
index e12e737fd00..5253f5e063a 100644
--- a/CEP/Tools/AccepTest2/Makefile.am
+++ b/CEP/Tools/AccepTest2/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/Tools/Generator/Makefile.am b/CEP/Tools/Generator/Makefile.am
index 7d1da98c85d..474d7aff18a 100644
--- a/CEP/Tools/Generator/Makefile.am
+++ b/CEP/Tools/Generator/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/CEP/Tools/PerfTest/3BlockPerf/Makefile.am b/CEP/Tools/PerfTest/3BlockPerf/Makefile.am
index e12e737fd00..5253f5e063a 100644
--- a/CEP/Tools/PerfTest/3BlockPerf/Makefile.am
+++ b/CEP/Tools/PerfTest/3BlockPerf/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/Tools/PerfTest/AsyncTest/Makefile.am b/CEP/Tools/PerfTest/AsyncTest/Makefile.am
index acbfee038bc..b7cd6f048ab 100644
--- a/CEP/Tools/PerfTest/AsyncTest/Makefile.am
+++ b/CEP/Tools/PerfTest/AsyncTest/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/Tools/PerfTest/InOutTest/Makefile.am b/CEP/Tools/PerfTest/InOutTest/Makefile.am
index acbfee038bc..b7cd6f048ab 100644
--- a/CEP/Tools/PerfTest/InOutTest/Makefile.am
+++ b/CEP/Tools/PerfTest/InOutTest/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/Tools/PerfTest/P2Perf/Makefile.am b/CEP/Tools/PerfTest/P2Perf/Makefile.am
index e12e737fd00..5253f5e063a 100644
--- a/CEP/Tools/PerfTest/P2Perf/Makefile.am
+++ b/CEP/Tools/PerfTest/P2Perf/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/Tools/SocketTester/Makefile.am b/CEP/Tools/SocketTester/Makefile.am
index e12e737fd00..5253f5e063a 100644
--- a/CEP/Tools/SocketTester/Makefile.am
+++ b/CEP/Tools/SocketTester/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/CEP/tinyCEP/Makefile.am b/CEP/tinyCEP/Makefile.am
index 33fc7d1316e..e8c14a62905 100644
--- a/CEP/tinyCEP/Makefile.am
+++ b/CEP/tinyCEP/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
 	--with-common=$(prefix) \
 	--with-transport=$(prefix) \
diff --git a/Demo/CEP/StationCorrelator/Makefile.am b/Demo/CEP/StationCorrelator/Makefile.am
index e12e737fd00..5253f5e063a 100644
--- a/Demo/CEP/StationCorrelator/Makefile.am
+++ b/Demo/CEP/StationCorrelator/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src
 
 include $(top_srcdir)/Makefile.common
diff --git a/Demo/CEP/TFlopCorrelator/TFC_BGLProc/Makefile.am b/Demo/CEP/TFlopCorrelator/TFC_BGLProc/Makefile.am
index 66a0f81cfd5..59df0d4e4ac 100644
--- a/Demo/CEP/TFlopCorrelator/TFC_BGLProc/Makefile.am
+++ b/Demo/CEP/TFlopCorrelator/TFC_BGLProc/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src test
 
 include $(top_srcdir)/Makefile.common
diff --git a/Demo/CEP/TFlopCorrelator/TFC_DelayCompensation/Makefile.am b/Demo/CEP/TFlopCorrelator/TFC_DelayCompensation/Makefile.am
index 66a0f81cfd5..59df0d4e4ac 100644
--- a/Demo/CEP/TFlopCorrelator/TFC_DelayCompensation/Makefile.am
+++ b/Demo/CEP/TFlopCorrelator/TFC_DelayCompensation/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src test
 
 include $(top_srcdir)/Makefile.common
diff --git a/Demo/CEP/TFlopCorrelator/TFC_Generator/Makefile.am b/Demo/CEP/TFlopCorrelator/TFC_Generator/Makefile.am
index 66a0f81cfd5..59df0d4e4ac 100644
--- a/Demo/CEP/TFlopCorrelator/TFC_Generator/Makefile.am
+++ b/Demo/CEP/TFlopCorrelator/TFC_Generator/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src test
 
 include $(top_srcdir)/Makefile.common
diff --git a/Demo/CEP/TFlopCorrelator/TFC_InputSection/Makefile.am b/Demo/CEP/TFlopCorrelator/TFC_InputSection/Makefile.am
index 66a0f81cfd5..59df0d4e4ac 100644
--- a/Demo/CEP/TFlopCorrelator/TFC_InputSection/Makefile.am
+++ b/Demo/CEP/TFlopCorrelator/TFC_InputSection/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src test
 
 include $(top_srcdir)/Makefile.common
diff --git a/Demo/CEP/TFlopCorrelator/TFC_Interface/Makefile.am b/Demo/CEP/TFlopCorrelator/TFC_Interface/Makefile.am
index 66a0f81cfd5..6fb8fe442dd 100644
--- a/Demo/CEP/TFlopCorrelator/TFC_Interface/Makefile.am
+++ b/Demo/CEP/TFlopCorrelator/TFC_Interface/Makefile.am
@@ -1,5 +1,12 @@
 SUBDIRS=src test
 
-DOC_SUBDIRS=src test
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
+DISTCHECK_CONFIGURE_FLAGS=\
+      --with-common=$(prefix) \
+      --with-transport=$(prefix) \
+      --with-aps=$(prefix) \
+      --with-tinycep=$(prefix)
 
 include $(top_srcdir)/Makefile.common
diff --git a/Demo/CEP/TFlopCorrelator/TFC_Interface/test/Makefile.am b/Demo/CEP/TFlopCorrelator/TFC_Interface/test/Makefile.am
index df08ad9cfcb..57e7c2842dd 100644
--- a/Demo/CEP/TFlopCorrelator/TFC_Interface/test/Makefile.am
+++ b/Demo/CEP/TFlopCorrelator/TFC_Interface/test/Makefile.am
@@ -14,5 +14,6 @@ tRectMatrix.sh
 LDADD = ../src/libtfc_interface.la
 DEPENDENCIES = ../src/libtfc_interface.la $(LOFAR_DEPEND)
 
+EXTRA_DIST = $(TESTS)
 
 include $(top_srcdir)/Makefile.common
diff --git a/Demo/CEP/TFlopCorrelator/TFC_Storage/Makefile.am b/Demo/CEP/TFlopCorrelator/TFC_Storage/Makefile.am
index 66a0f81cfd5..59df0d4e4ac 100644
--- a/Demo/CEP/TFlopCorrelator/TFC_Storage/Makefile.am
+++ b/Demo/CEP/TFlopCorrelator/TFC_Storage/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DOC_SUBDIRS=src test
 
 include $(top_srcdir)/Makefile.common
diff --git a/JAVA/CEP/jParmFacade/Makefile.am b/JAVA/CEP/jParmFacade/Makefile.am
index ddcc5198050..e153695211f 100644
--- a/JAVA/CEP/jParmFacade/Makefile.am
+++ b/JAVA/CEP/jParmFacade/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/JAVA/MAC/jRSP/Makefile.am b/JAVA/MAC/jRSP/Makefile.am
index 71e03e3503f..9e426fe5b1d 100644
--- a/JAVA/MAC/jRSP/Makefile.am
+++ b/JAVA/MAC/jRSP/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/LCS/ACC/ACCbin/Makefile.am b/LCS/ACC/ACCbin/Makefile.am
index 88c1d7d2723..08d0d4f66d7 100644
--- a/LCS/ACC/ACCbin/Makefile.am
+++ b/LCS/ACC/ACCbin/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix) \
       --with-transport=$(prefix) \
diff --git a/LCS/ACC/ALC/Makefile.am b/LCS/ACC/ALC/Makefile.am
index 620333339a1..d90b7ed488a 100644
--- a/LCS/ACC/ALC/Makefile.am
+++ b/LCS/ACC/ALC/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix) \
       --with-blob=$(prefix) \
diff --git a/LCS/ACC/APS/Makefile.am b/LCS/ACC/APS/Makefile.am
index ad94eda24cc..5184d6fa64c 100644
--- a/LCS/ACC/APS/Makefile.am
+++ b/LCS/ACC/APS/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/LCS/ACC/PLC/Makefile.am b/LCS/ACC/PLC/Makefile.am
index d44d654898d..91342596c91 100644
--- a/LCS/ACC/PLC/Makefile.am
+++ b/LCS/ACC/PLC/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix) \
       --with-blob=$(prefix) \
diff --git a/LCS/AMC/AMCBase/Makefile.am b/LCS/AMC/AMCBase/Makefile.am
index 2da1fbf8c29..6ac14066614 100644
--- a/LCS/AMC/AMCBase/Makefile.am
+++ b/LCS/AMC/AMCBase/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS = include src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS = \
 	--with-common=$(prefix) \
 	--with-blob=$(prefix) \
diff --git a/LCS/AMC/AMCImpl/Makefile.am b/LCS/AMC/AMCImpl/Makefile.am
index 6cad29533a6..c4ce59fee38 100644
--- a/LCS/AMC/AMCImpl/Makefile.am
+++ b/LCS/AMC/AMCImpl/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS = include src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS = \
 	--with-common=$(prefix) \
 	--with-transport=$(prefix) \
diff --git a/LCS/Blob/Makefile.am b/LCS/Blob/Makefile.am
index 5935d1ac703..d3a149d8442 100644
--- a/LCS/Blob/Makefile.am
+++ b/LCS/Blob/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/LCS/Common/Makefile.am b/LCS/Common/Makefile.am
index 67e477501d6..d59691a9d99 100644
--- a/LCS/Common/Makefile.am
+++ b/LCS/Common/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=include src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 EXTRA_DIST = \
       Makefile.common \
       Common.spec \
diff --git a/LCS/Math/Makefile.am b/LCS/Math/Makefile.am
index 58e44aa9e37..19a2aaab152 100644
--- a/LCS/Math/Makefile.am
+++ b/LCS/Math/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/LCS/Tools/Makefile.am b/LCS/Tools/Makefile.am
index 04059712d29..b79d020ce8d 100644
--- a/LCS/Tools/Makefile.am
+++ b/LCS/Tools/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 EXTRA_DIST = \
       Makefile.common \
       Tools.spec \
diff --git a/LCS/Transport/Makefile.am b/LCS/Transport/Makefile.am
index 0182730dc1e..5ccbfaa1a82 100644
--- a/LCS/Transport/Makefile.am
+++ b/LCS/Transport/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix) \
       --with-blob=$(prefix)
diff --git a/LCS/databases/PL/Makefile.am b/LCS/databases/PL/Makefile.am
index 7a605790562..dc24126c379 100644
--- a/LCS/databases/PL/Makefile.am
+++ b/LCS/databases/PL/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS = include scripts src demo test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS = \
 	--with-common=$(prefix) 
 
diff --git a/LCS/databases/TransportPL/Makefile.am b/LCS/databases/TransportPL/Makefile.am
index 161f7455d02..62f6d0fe2bd 100644
--- a/LCS/databases/TransportPL/Makefile.am
+++ b/LCS/databases/TransportPL/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/LCS/databases/TransportPostgres/Makefile.am b/LCS/databases/TransportPostgres/Makefile.am
index 2df37b568b9..53e36c29401 100644
--- a/LCS/databases/TransportPostgres/Makefile.am
+++ b/LCS/databases/TransportPostgres/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/APLCommon/Makefile.am b/MAC/APL/APLCommon/Makefile.am
index 484b14403c4..006854a780f 100644
--- a/MAC/APL/APLCommon/Makefile.am
+++ b/MAC/APL/APLCommon/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/CEPCU/Makefile.am b/MAC/APL/CEPCU/Makefile.am
index b9ed03a9b1c..d2bd40f9c3f 100644
--- a/MAC/APL/CEPCU/Makefile.am
+++ b/MAC/APL/CEPCU/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 EXTRA_DIST = \
       Makefile.common \
       CEPCU.spec \
diff --git a/MAC/APL/CUDaemons/Makefile.am b/MAC/APL/CUDaemons/Makefile.am
index ef50a44917d..a0cde8334f4 100644
--- a/MAC/APL/CUDaemons/Makefile.am
+++ b/MAC/APL/CUDaemons/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 EXTRA_DIST = \
       Makefile.common \
       CUDaemons.spec \
diff --git a/MAC/APL/MainCU/Makefile.am b/MAC/APL/MainCU/Makefile.am
index 9f9e52186c1..0b65f32b2fd 100644
--- a/MAC/APL/MainCU/Makefile.am
+++ b/MAC/APL/MainCU/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 EXTRA_DIST = \
       Makefile.common \
       MainCU.spec \
diff --git a/MAC/APL/PAC/BS_Protocol/Makefile.am b/MAC/APL/PAC/BS_Protocol/Makefile.am
index 3d043deae37..b1c69bc5720 100644
--- a/MAC/APL/PAC/BS_Protocol/Makefile.am
+++ b/MAC/APL/PAC/BS_Protocol/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
 	--with-common=$(prefix) \
 	--with-gcfcommon=$(prefix) \
diff --git a/MAC/APL/PAC/BeamServer/Makefile.am b/MAC/APL/PAC/BeamServer/Makefile.am
index e691e9296ef..6d0a046ae93 100644
--- a/MAC/APL/PAC/BeamServer/Makefile.am
+++ b/MAC/APL/PAC/BeamServer/Makefile.am
@@ -1,6 +1,9 @@
 
 SUBDIRS = src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
 	--with-common=$(prefix)\
 	--with-suite=$(prefix)\
diff --git a/MAC/APL/PAC/CAL_Protocol/Makefile.am b/MAC/APL/PAC/CAL_Protocol/Makefile.am
index f3a4b33a358..4775c7ab1ea 100644
--- a/MAC/APL/PAC/CAL_Protocol/Makefile.am
+++ b/MAC/APL/PAC/CAL_Protocol/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
 	--with-common=$(prefix) \
 	--with-gcfcommon=$(prefix) \
diff --git a/MAC/APL/PAC/CalServer/Makefile.am b/MAC/APL/PAC/CalServer/Makefile.am
index c4f9e4c4b33..84153299052 100644
--- a/MAC/APL/PAC/CalServer/Makefile.am
+++ b/MAC/APL/PAC/CalServer/Makefile.am
@@ -1,6 +1,9 @@
 
 SUBDIRS = src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/PAC/_StationOperations/Makefile.am b/MAC/APL/PAC/_StationOperations/Makefile.am
index 4eb1505b7ae..420d5c7692e 100644
--- a/MAC/APL/PAC/_StationOperations/Makefile.am
+++ b/MAC/APL/PAC/_StationOperations/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/PAC/_StationReceptorGroup/Makefile.am b/MAC/APL/PAC/_StationReceptorGroup/Makefile.am
index f7c929a3f2e..e27d8319368 100644
--- a/MAC/APL/PAC/_StationReceptorGroup/Makefile.am
+++ b/MAC/APL/PAC/_StationReceptorGroup/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/PAC/_StationStartDaemon/Makefile.am b/MAC/APL/PAC/_StationStartDaemon/Makefile.am
index 73a7ba28494..73cf5821d5c 100644
--- a/MAC/APL/PAC/_StationStartDaemon/Makefile.am
+++ b/MAC/APL/PAC/_StationStartDaemon/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/PAC/_VirtualBackend/Makefile.am b/MAC/APL/PAC/_VirtualBackend/Makefile.am
index 278a5365327..428a0b9f449 100644
--- a/MAC/APL/PAC/_VirtualBackend/Makefile.am
+++ b/MAC/APL/PAC/_VirtualBackend/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 #DISTCHECK_CONFIGURE_FLAGS=\
 #      --with-common=$(prefix) # "common" is an example
 
diff --git a/MAC/APL/PAC/_VirtualTelescope/Makefile.am b/MAC/APL/PAC/_VirtualTelescope/Makefile.am
index 17f77c5ed3e..a0aa9a6e9b6 100644
--- a/MAC/APL/PAC/_VirtualTelescope/Makefile.am
+++ b/MAC/APL/PAC/_VirtualTelescope/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/PIC/ETHTest/Makefile.am b/MAC/APL/PIC/ETHTest/Makefile.am
index d0a75b0b921..6a05e9701dd 100644
--- a/MAC/APL/PIC/ETHTest/Makefile.am
+++ b/MAC/APL/PIC/ETHTest/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS = src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/APL/PIC/MIS/Makefile.am b/MAC/APL/PIC/MIS/Makefile.am
index 30206571988..fb901a5da39 100644
--- a/MAC/APL/PIC/MIS/Makefile.am
+++ b/MAC/APL/PIC/MIS/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 #DISTCHECK_CONFIGURE_FLAGS=\
 #      --with-common=$(prefix) # "common" is an example
 
diff --git a/MAC/APL/PIC/RSPCtlFE/Makefile.am b/MAC/APL/PIC/RSPCtlFE/Makefile.am
index 19d1f5f3e53..b75bd0ac37e 100755
--- a/MAC/APL/PIC/RSPCtlFE/Makefile.am
+++ b/MAC/APL/PIC/RSPCtlFE/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/PIC/RSPDriver/Makefile.am b/MAC/APL/PIC/RSPDriver/Makefile.am
index 67be7be88a7..8ba57be7666 100644
--- a/MAC/APL/PIC/RSPDriver/Makefile.am
+++ b/MAC/APL/PIC/RSPDriver/Makefile.am
@@ -1,6 +1,9 @@
 
 SUBDIRS = src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 EXTRA_DIST = \
       Makefile.common \
       RSPDriver.spec \
diff --git a/MAC/APL/PIC/RSP_Protocol/Makefile.am b/MAC/APL/PIC/RSP_Protocol/Makefile.am
index 050987fa168..192ae537d50 100644
--- a/MAC/APL/PIC/RSP_Protocol/Makefile.am
+++ b/MAC/APL/PIC/RSP_Protocol/Makefile.am
@@ -1,6 +1,9 @@
 
 SUBDIRS	= src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
 	--with-common=$(prefix) \
 	--with-gcfcommon=$(prefix) \
diff --git a/MAC/APL/PIC/TBBDriver/Makefile.am b/MAC/APL/PIC/TBBDriver/Makefile.am
index 0ec9f5cfc94..b09f8718f91 100644
--- a/MAC/APL/PIC/TBBDriver/Makefile.am
+++ b/MAC/APL/PIC/TBBDriver/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/PIC/TBB_Protocol/Makefile.am b/MAC/APL/PIC/TBB_Protocol/Makefile.am
index 4d1598507fd..ec233a4b306 100644
--- a/MAC/APL/PIC/TBB_Protocol/Makefile.am
+++ b/MAC/APL/PIC/TBB_Protocol/Makefile.am
@@ -1,6 +1,9 @@
 
 SUBDIRS	= src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
 	--with-common=$(prefix) \
 	--with-gcfcommon=$(prefix) \
diff --git a/MAC/APL/PIC/_NodeManager/Makefile.am b/MAC/APL/PIC/_NodeManager/Makefile.am
index 607e80198f3..303ba569340 100644
--- a/MAC/APL/PIC/_NodeManager/Makefile.am
+++ b/MAC/APL/PIC/_NodeManager/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 #DISTCHECK_CONFIGURE_FLAGS=\
 #      --with-common=$(prefix) # "common" is an example
 
diff --git a/MAC/APL/PIC/_RegisterAccess/Makefile.am b/MAC/APL/PIC/_RegisterAccess/Makefile.am
index 73696b3cb14..e4434799ca2 100644
--- a/MAC/APL/PIC/_RegisterAccess/Makefile.am
+++ b/MAC/APL/PIC/_RegisterAccess/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/RTCCommon/Makefile.am b/MAC/APL/RTCCommon/Makefile.am
index 5c4ad6c42e9..73a83db4ea7 100644
--- a/MAC/APL/RTCCommon/Makefile.am
+++ b/MAC/APL/RTCCommon/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS = src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
 	--with-common=$(prefix) \
 	--with-suite=$(prefix)\
diff --git a/MAC/APL/StationCU/Makefile.am b/MAC/APL/StationCU/Makefile.am
index 026ac4ef1b7..7ef4e2947c3 100644
--- a/MAC/APL/StationCU/Makefile.am
+++ b/MAC/APL/StationCU/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 EXTRA_DIST = \
       Makefile.common \
       StationCU.spec \
diff --git a/MAC/APL/StsMisc/Makefile.am b/MAC/APL/StsMisc/Makefile.am
index fd49fdf64df..743463f445b 100644
--- a/MAC/APL/StsMisc/Makefile.am
+++ b/MAC/APL/StsMisc/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src 
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/TestCtlr/Makefile.am b/MAC/APL/TestCtlr/Makefile.am
index 9f9e52186c1..0b65f32b2fd 100644
--- a/MAC/APL/TestCtlr/Makefile.am
+++ b/MAC/APL/TestCtlr/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 EXTRA_DIST = \
       Makefile.common \
       MainCU.spec \
diff --git a/MAC/APL/_GSO/MACScheduler/Makefile.am b/MAC/APL/_GSO/MACScheduler/Makefile.am
index 9574c6ff924..563b6d4bd65 100644
--- a/MAC/APL/_GSO/MACScheduler/Makefile.am
+++ b/MAC/APL/_GSO/MACScheduler/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/_VIC/ArrayOperations/Makefile.am b/MAC/APL/_VIC/ArrayOperations/Makefile.am
index 802337bb87c..86862cc22e1 100644
--- a/MAC/APL/_VIC/ArrayOperations/Makefile.am
+++ b/MAC/APL/_VIC/ArrayOperations/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/_VIC/ArrayReceptorGroup/Makefile.am b/MAC/APL/_VIC/ArrayReceptorGroup/Makefile.am
index 819be34aab1..8f3b7c1889d 100644
--- a/MAC/APL/_VIC/ArrayReceptorGroup/Makefile.am
+++ b/MAC/APL/_VIC/ArrayReceptorGroup/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/_VIC/VirtualInstrument/Makefile.am b/MAC/APL/_VIC/VirtualInstrument/Makefile.am
index 137673f3733..416e6d028a3 100644
--- a/MAC/APL/_VIC/VirtualInstrument/Makefile.am
+++ b/MAC/APL/_VIC/VirtualInstrument/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/APL/_VIC/VirtualRoute/Makefile.am b/MAC/APL/_VIC/VirtualRoute/Makefile.am
index 679375c960c..500c086d49d 100644
--- a/MAC/APL/_VIC/VirtualRoute/Makefile.am
+++ b/MAC/APL/_VIC/VirtualRoute/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/Deployment/Makefile.am b/MAC/Deployment/Makefile.am
index 33c9f88419a..ff1e29a7979 100644
--- a/MAC/Deployment/Makefile.am
+++ b/MAC/Deployment/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=data
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 EXTRA_DIST = \
       Makefile.common \
       Deployment.spec \
diff --git a/MAC/Drivers/spid/Makefile.am b/MAC/Drivers/spid/Makefile.am
index 05acbd05b6f..d1beff54735 100755
--- a/MAC/Drivers/spid/Makefile.am
+++ b/MAC/Drivers/spid/Makefile.am
@@ -2,6 +2,9 @@ EXTRA_DIST = \
 	mac-spid.spec
 
 SUBDIRS = \
+
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
 	src \
 	aclocal \
 	tools
diff --git a/MAC/GCF/GCFCommon/Makefile.am b/MAC/GCF/GCFCommon/Makefile.am
index 67828ab394e..4f351897edd 100644
--- a/MAC/GCF/GCFCommon/Makefile.am
+++ b/MAC/GCF/GCFCommon/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include pvss
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 #DISTCHECK_CONFIGURE_FLAGS=\
 #      --with-common=$(prefix) # "common" is an example
 
diff --git a/MAC/GCF/LogSys/Makefile.am b/MAC/GCF/LogSys/Makefile.am
index b9f0d4abda6..ede9a80e924 100644
--- a/MAC/GCF/LogSys/Makefile.am
+++ b/MAC/GCF/LogSys/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=KVLogSys CLP include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 #DISTCHECK_CONFIGURE_FLAGS=\
 #      --with-common=$(prefix) # "common" is an example
 
diff --git a/MAC/GCF/Protocols/Makefile.am b/MAC/GCF/Protocols/Makefile.am
index ccdefe3d589..283f7bfe0eb 100644
--- a/MAC/GCF/Protocols/Makefile.am
+++ b/MAC/GCF/Protocols/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 #DISTCHECK_CONFIGURE_FLAGS=\
 #      --with-common=$(prefix) # "common" is an example
 
diff --git a/MAC/GCF/TM/Makefile.am b/MAC/GCF/TM/Makefile.am
index e6343b04643..ea24f76b4dd 100644
--- a/MAC/GCF/TM/Makefile.am
+++ b/MAC/GCF/TM/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=autogen src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 #DISTCHECK_CONFIGURE_FLAGS=\
 #      --with-common=$(prefix) # "common" is an example
 
diff --git a/MAC/GCF/_PAL/Makefile.am b/MAC/GCF/_PAL/Makefile.am
index 9bb943c02b0..c97181f181c 100644
--- a/MAC/GCF/_PAL/Makefile.am
+++ b/MAC/GCF/_PAL/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=SAL PA PML PI include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 #DISTCHECK_CONFIGURE_FLAGS=\
 #      --with-common=$(prefix) # "common" is an example
 
diff --git a/MAC/GCF/_PALlight/Makefile.am b/MAC/GCF/_PALlight/Makefile.am
index 30de278225c..fe373393111 100644
--- a/MAC/GCF/_PALlight/Makefile.am
+++ b/MAC/GCF/_PALlight/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=PMLlight CEP-PMLlight include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 #DISTCHECK_CONFIGURE_FLAGS=\
 #      --with-common=$(prefix) # "common" is an example
 
diff --git a/MAC/Test/GCF/CEP/Makefile.am b/MAC/Test/GCF/CEP/Makefile.am
index a014c15b3e0..e9e92adbea5 100644
--- a/MAC/Test/GCF/CEP/Makefile.am
+++ b/MAC/Test/GCF/CEP/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/GCF/MAC/Makefile.am b/MAC/Test/GCF/MAC/Makefile.am
index a014c15b3e0..e9e92adbea5 100644
--- a/MAC/Test/GCF/MAC/Makefile.am
+++ b/MAC/Test/GCF/MAC/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/GCF/RTC/Makefile.am b/MAC/Test/GCF/RTC/Makefile.am
index a014c15b3e0..e9e92adbea5 100644
--- a/MAC/Test/GCF/RTC/Makefile.am
+++ b/MAC/Test/GCF/RTC/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/PROTO/GPI/Makefile.am b/MAC/Test/PROTO/GPI/Makefile.am
index a014c15b3e0..e9e92adbea5 100644
--- a/MAC/Test/PROTO/GPI/Makefile.am
+++ b/MAC/Test/PROTO/GPI/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/PROTO/PI/Makefile.am b/MAC/Test/PROTO/PI/Makefile.am
index a014c15b3e0..e9e92adbea5 100644
--- a/MAC/Test/PROTO/PI/Makefile.am
+++ b/MAC/Test/PROTO/PI/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/PROTO/PROP/Makefile.am b/MAC/Test/PROTO/PROP/Makefile.am
index a014c15b3e0..e9e92adbea5 100644
--- a/MAC/Test/PROTO/PROP/Makefile.am
+++ b/MAC/Test/PROTO/PROP/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/PROTO/PVSSAPI/Makefile.am b/MAC/Test/PROTO/PVSSAPI/Makefile.am
index a014c15b3e0..e9e92adbea5 100644
--- a/MAC/Test/PROTO/PVSSAPI/Makefile.am
+++ b/MAC/Test/PROTO/PVSSAPI/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/PROTO/TASK/Makefile.am b/MAC/Test/PROTO/TASK/Makefile.am
index a014c15b3e0..e9e92adbea5 100644
--- a/MAC/Test/PROTO/TASK/Makefile.am
+++ b/MAC/Test/PROTO/TASK/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/Suite/Makefile.am b/MAC/Test/Suite/Makefile.am
index c725ce5067e..039e7e6cf2d 100644
--- a/MAC/Test/Suite/Makefile.am
+++ b/MAC/Test/Suite/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/MAC/Test/TestHarness/THEcho/Makefile.am b/MAC/Test/TestHarness/THEcho/Makefile.am
index 161f7455d02..62f6d0fe2bd 100644
--- a/MAC/Test/TestHarness/THEcho/Makefile.am
+++ b/MAC/Test/TestHarness/THEcho/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src test
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/TestHarness/THPVSSBridge/Makefile.am b/MAC/Test/TestHarness/THPVSSBridge/Makefile.am
index a014c15b3e0..e9e92adbea5 100644
--- a/MAC/Test/TestHarness/THPVSSBridge/Makefile.am
+++ b/MAC/Test/TestHarness/THPVSSBridge/Makefile.am
@@ -1,3 +1,6 @@
 SUBDIRS=src
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 include $(top_srcdir)/Makefile.common
diff --git a/MAC/Test/TestHarness/TSE/Makefile.am b/MAC/Test/TestHarness/TSE/Makefile.am
index 07ea6d07206..ae0a2479732 100644
--- a/MAC/Test/TestHarness/TSE/Makefile.am
+++ b/MAC/Test/TestHarness/TSE/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src 
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
      --with-common=$(prefix)
      
diff --git a/SAS/OTB/jOTDB2/Makefile.am b/SAS/OTB/jOTDB2/Makefile.am
index 12a3d63bab5..91623644721 100644
--- a/SAS/OTB/jOTDB2/Makefile.am
+++ b/SAS/OTB/jOTDB2/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix)
 
diff --git a/SAS/OTDB/Makefile.am b/SAS/OTDB/Makefile.am
index bafea6feb99..7dd90a8f8f7 100644
--- a/SAS/OTDB/Makefile.am
+++ b/SAS/OTDB/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS=src test bin include
 
+pkgextdir     = $(prefix)/config/$(PACKAGE)
+pkgext_DATA   = pkgext pkgextcppflags pkgextcxxflags pkgextldflags
+
 DISTCHECK_CONFIGURE_FLAGS=\
       --with-common=$(prefix) \
       --with-aps=$(prefix)
-- 
GitLab