Skip to content

Commit b705fa3

Browse files
committed
Make sure both SRCH_INC and SRCH_LIB are checked for existances and added to the CPPFLAGS/LDFLAGS variables...
1 parent 2b7777b commit b705fa3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ if test "${with_includes+set}" = set; then
766766
fi
767767

768768

769-
if test "$INCLUDE_DIRS"; then
769+
if test "$INCLUDE_DIRS" -o "$SRCH_INC"; then
770770
for dir in $INCLUDE_DIRS $SRCH_INC; do
771771
if test -d "$dir"; then
772772
PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
@@ -804,7 +804,7 @@ if test "${with_libraries+set}" = set; then
804804
fi
805805

806806

807-
if test "$LIBRARY_DIRS"; then
807+
if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
808808
for dir in $LIBRARY_DIRS $SRCH_LIB; do
809809
if test -d "$dir"; then
810810
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"

src/configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ AC_ARG_WITH(includes,
163163
INCLUDE_DIRS="$withval"
164164
])
165165

166-
if test "$INCLUDE_DIRS"; then
166+
if test "$INCLUDE_DIRS" -o "$SRCH_INC"; then
167167
for dir in $INCLUDE_DIRS $SRCH_INC; do
168168
if test -d "$dir"; then
169169
PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
@@ -195,7 +195,7 @@ AC_ARG_WITH(libraries,
195195
LIBRARY_DIRS="$withval"
196196
])
197197

198-
if test "$LIBRARY_DIRS"; then
198+
if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
199199
for dir in $LIBRARY_DIRS $SRCH_LIB; do
200200
if test -d "$dir"; then
201201
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy