@@ -105,45 +105,55 @@ datarootdir := @datarootdir@
105105bindir := @bindir@
106106
107107datadir := @datadir@
108+ ifeq "$(findstring pgpro,$(datadir ) ) " ""
108109ifeq "$(findstring pgsql,$(datadir ) ) " ""
109110ifeq "$(findstring postgres,$(datadir ) ) " ""
110111override datadir :=$(datadir ) /postgresql
111112endif
112113endif
114+ endif
113115
114116sysconfdir := @sysconfdir@
117+ ifeq "$(findstring pgpro,$(sysconfdir ) ) " ""
115118ifeq "$(findstring pgsql,$(sysconfdir ) ) " ""
116119ifeq "$(findstring postgres,$(sysconfdir ) ) " ""
117120override sysconfdir :=$(sysconfdir ) /postgresql
118121endif
119122endif
123+ endif
120124
121125libdir := @libdir@
122126
123127pkglibdir =$(libdir )
128+ ifeq "$(findstring pgpro,$(pkglibdir ) ) " ""
124129ifeq "$(findstring pgsql,$(pkglibdir ) ) " ""
125130ifeq "$(findstring postgres,$(pkglibdir ) ) " ""
126131override pkglibdir :=$(pkglibdir ) /postgresql
127132endif
128133endif
134+ endif
129135
130136includedir := @includedir@
131137
132138pkgincludedir =$(includedir )
139+ ifeq "$(findstring pgpro,$(pkgincludedir ) ) " ""
133140ifeq "$(findstring pgsql,$(pkgincludedir ) ) " ""
134141ifeq "$(findstring postgres,$(pkgincludedir ) ) " ""
135142override pkgincludedir :=$(pkgincludedir ) /postgresql
136143endif
137144endif
145+ endif
138146
139147mandir := @mandir@
140148
141149docdir := @docdir@
150+ ifeq "$(findstring pgpro,$(docdir ) ) " ""
142151ifeq "$(findstring pgsql,$(docdir ) ) " ""
143152ifeq "$(findstring postgres,$(docdir ) ) " ""
144153override docdir :=$(docdir ) /postgresql
145154endif
146155endif
156+ endif
147157
148158htmldir := @htmldir@
149159