mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Make sure both SRCH_INC and SRCH_LIB are checked for existances and added to
the CPPFLAGS/LDFLAGS variables...
This commit is contained in:
parent
2b7777bfa2
commit
b705fa3909
4
src/configure
vendored
4
src/configure
vendored
@ -766,7 +766,7 @@ if test "${with_includes+set}" = set; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$INCLUDE_DIRS"; then
|
if test "$INCLUDE_DIRS" -o "$SRCH_INC"; then
|
||||||
for dir in $INCLUDE_DIRS $SRCH_INC; do
|
for dir in $INCLUDE_DIRS $SRCH_INC; do
|
||||||
if test -d "$dir"; then
|
if test -d "$dir"; then
|
||||||
PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
|
PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
|
||||||
@ -804,7 +804,7 @@ if test "${with_libraries+set}" = set; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$LIBRARY_DIRS"; then
|
if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
|
||||||
for dir in $LIBRARY_DIRS $SRCH_LIB; do
|
for dir in $LIBRARY_DIRS $SRCH_LIB; do
|
||||||
if test -d "$dir"; then
|
if test -d "$dir"; then
|
||||||
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
|
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
|
||||||
|
@ -163,7 +163,7 @@ AC_ARG_WITH(includes,
|
|||||||
INCLUDE_DIRS="$withval"
|
INCLUDE_DIRS="$withval"
|
||||||
])
|
])
|
||||||
|
|
||||||
if test "$INCLUDE_DIRS"; then
|
if test "$INCLUDE_DIRS" -o "$SRCH_INC"; then
|
||||||
for dir in $INCLUDE_DIRS $SRCH_INC; do
|
for dir in $INCLUDE_DIRS $SRCH_INC; do
|
||||||
if test -d "$dir"; then
|
if test -d "$dir"; then
|
||||||
PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
|
PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
|
||||||
@ -195,7 +195,7 @@ AC_ARG_WITH(libraries,
|
|||||||
LIBRARY_DIRS="$withval"
|
LIBRARY_DIRS="$withval"
|
||||||
])
|
])
|
||||||
|
|
||||||
if test "$LIBRARY_DIRS"; then
|
if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
|
||||||
for dir in $LIBRARY_DIRS $SRCH_LIB; do
|
for dir in $LIBRARY_DIRS $SRCH_LIB; do
|
||||||
if test -d "$dir"; then
|
if test -d "$dir"; then
|
||||||
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
|
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user