Lines 209-231
Link Here
|
209 |
# ======================================================================== |
209 |
# ======================================================================== |
210 |
|
210 |
|
211 |
php_check_pgsql() { |
211 |
php_check_pgsql() { |
212 |
if use "postgres" \ |
212 |
if use "postgres" && use "apache2" && use "threads" ; then |
213 |
&& use "apache2" && use "threads" ; then |
213 |
if has_version ">=dev-db/libpq-8.1.3-r1" ; then |
214 |
if has_version ">=dev-db/libpq-8.1.3-r1" \ |
214 |
if ! built_with_use ">=dev-db/libpq-8.1.3-r1" "threads" ; then |
215 |
&& ! built_with_use ">=dev-db/libpq-8.1.3-r1" "threads" ; then |
215 |
eerror |
216 |
eerror |
216 |
eerror "You must build dev-db/libpq with USE=threads" |
217 |
eerror "You must build dev-db/libpq with USE=threads" |
217 |
eerror "if you want to build PHP with threads support!" |
218 |
eerror "if you want to build PHP with threads support!" |
218 |
eerror |
219 |
eerror |
219 |
die "Rebuild dev-db/libpq with USE=threads" |
220 |
die "Rebuild dev-db/libpq with USE=threads" |
220 |
fi |
221 |
fi |
221 |
else |
222 |
local pgsql_ver=$(eselect postgresql show) |
222 |
local pgsql_ver=$(eselect postgresql show) |
223 |
if ! built_with_use "=dev-db/postgresql-base-${pgsql_ver}*" threads ; then |
223 |
if ! built_with_use "=dev-db/postgresql-base-${pgsql_ver}*" threads ; then |
224 |
eerror |
224 |
eerror |
225 |
eerror "You must build =dev-db/postgresql-base-${pgsql_ver} with USE=threads" |
225 |
eerror "You must build =dev-db/postgresql-base-${pgsql_ver} with USE=threads" |
226 |
eerror "if you want to build PHP with threads support!" |
226 |
eerror "if you want to build PHP with threads support!" |
227 |
eerror |
227 |
eerror |
228 |
die "Rebuild =dev-db/postgresql-base-${pgsql_ver} with USE=threads" |
228 |
die "Rebuild =dev-db/postgresql-base-${pgsql_ver} with USE=threads" |
|
|
229 |
fi |
229 |
fi |
230 |
fi |
230 |
fi |
231 |
fi |
231 |
} |
232 |
} |