2009-01-17 06:42:03 -05:00
|
|
|
$OpenBSD: patch-configure,v 1.5 2009/01/17 11:42:03 ajacoutot Exp $
|
|
|
|
--- configure.orig Sat Jan 17 11:34:07 2009
|
|
|
|
+++ configure Sat Jan 17 11:35:26 2009
|
|
|
|
@@ -4300,9 +4300,15 @@ echo $ECHO_N "checking for PQconnectdb in -lpq... $ECH
|
2008-04-03 03:18:08 -04:00
|
|
|
|
|
|
|
old_LIBS="$LIBS"
|
|
|
|
|
|
|
|
+ if test `uname -s` = OpenBSD ; then
|
2009-01-17 06:42:03 -05:00
|
|
|
+ CRYPTO_LIBS="-lcrypto"
|
2008-04-03 03:18:08 -04:00
|
|
|
+ else
|
2009-01-17 06:42:03 -05:00
|
|
|
+ CRYPTO_LIBS="-lcrypt"
|
2008-04-03 03:18:08 -04:00
|
|
|
+ fi
|
|
|
|
+
|
|
|
|
for try in /usr/lib /usr/local/lib /usr/local/pgsql/lib $pgsql_lib_dir; do
|
|
|
|
if test -d $try; then
|
|
|
|
- LIBS="$old_LIBS -L$try -lpq -lcrypt ${PGSQL_LIBS}"
|
|
|
|
+ LIBS="$old_LIBS -L$try -lpq ${CRYPTO_LIBS} ${PGSQL_LIBS}"
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
/* confdefs.h. */
|
|
|
|
_ACEOF
|
2009-01-17 06:42:03 -05:00
|
|
|
@@ -4336,7 +4342,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
|
test ! -s conftest.err
|
|
|
|
} && test -s conftest$ac_exeext &&
|
|
|
|
$as_test_x conftest$ac_exeext; then
|
2007-04-27 17:10:42 -04:00
|
|
|
- PGSQL_LIBS="-lpq -lcrypt ${PGSQL_LIBS}"
|
2008-04-03 03:18:08 -04:00
|
|
|
+ PGSQL_LIBS="-lpq ${CRYPTO_LIBS} ${PGSQL_LIBS}"
|
2007-04-27 17:10:42 -04:00
|
|
|
PGSQL_LDFLAGS="-L$try"
|
|
|
|
|
|
|
|
|