86fa2e1f78
no binary change
61 lines
2.6 KiB
Plaintext
61 lines
2.6 KiB
Plaintext
$OpenBSD: patch-configure,v 1.2 2007/05/22 11:16:12 ajacoutot Exp $
|
|
--- configure.orig Fri Jun 2 11:21:34 2006
|
|
+++ configure Mon Apr 30 12:13:53 2007
|
|
@@ -3032,9 +3032,14 @@ fi
|
|
fi
|
|
else
|
|
PWLIB_VERSION=`${PTLIB_CONFIG} --version`
|
|
- PWLIB_MAJOR_VERSION=`echo "${PWLIB_VERSION}" | sed -e "s/\([0-9]*\)\.[0-9]*\.[0-9]*.*/\1/"`
|
|
- PWLIB_MINOR_VERSION=`echo "${PWLIB_VERSION}" | sed -e 's/[0-9]*\.\([0-9]*\)\.[0-9]*.*/\1/'`
|
|
- PWLIB_BUILD_NUMBER=`echo "${PWLIB_VERSION}" | sed -e 's/[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/'`
|
|
+ if test `uname -s` = OpenBSD ; then
|
|
+ PWLIB_MAJOR_VERSION=`echo "${PWLIB_VERSION}" | sed -e "s/\([0-9]*\)\.[0-9]*\.*/\1/"`
|
|
+ PWLIB_MINOR_VERSION=`echo "${PWLIB_VERSION}" | sed -e 's/[0-9]*\.\([0-9]*\)\.*/\1/'`
|
|
+ else
|
|
+ PWLIB_MAJOR_VERSION=`echo "${PWLIB_VERSION}" | sed -e "s/\([0-9]*\)\.[0-9]*\.[0-9]*.*/\1/"`
|
|
+ PWLIB_MINOR_VERSION=`echo "${PWLIB_VERSION}" | sed -e 's/[0-9]*\.\([0-9]*\)\.[0-9]*.*/\1/'`
|
|
+ fi
|
|
+ PWLIB_BUILD_NUMBER=`echo "${PWLIB_VERSION}" | sed -e 's/[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/'`
|
|
fi
|
|
if test "${PWLIB_VERSION:-unset}" = "unset" -o "${PWLIB_VERSION}" = ".."; then
|
|
echo "Error: could not determine PWLib version"
|
|
@@ -3317,7 +3322,11 @@ if test "${HAS_OPENH323_VERSIONFILE:-unset}" != "unset
|
|
echo "Error: Could not determine OpenH323 version"
|
|
exit
|
|
fi
|
|
- OPENH323_VERSION="${OPENH323_MAJOR_VERSION}.${OPENH323_MINOR_VERSION}.${OPENH323_BUILD_NUMBER}"
|
|
+ if test `uname -s` = OpenBSD ; then
|
|
+ OPENH323_VERSION="${OPENH323_MAJOR_VERSION}.${OPENH323_MINOR_VERSION}"
|
|
+ else
|
|
+ OPENH323_VERSION="${OPENH323_MAJOR_VERSION}.${OPENH323_MINOR_VERSION}.${OPENH323_BUILD_NUMBER}"
|
|
+ fi
|
|
echo "OpenH323 version is ${OPENH323_VERSION}"
|
|
else
|
|
echo "Error: Could not determine OpenH323 version"
|
|
@@ -3886,7 +3895,11 @@ echo $ECHO_N "checking for PQconnectdb in -lpq... $ECH
|
|
|
|
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}"
|
|
+ if test `uname -s` = OpenBSD ; then
|
|
+ LIBS="$old_LIBS -L$try -lpq -lcrypto ${PGSQL_LIBS}"
|
|
+ else
|
|
+ LIBS="$old_LIBS -L$try -lpq -lcrypt ${PGSQL_LIBS}"
|
|
+ fi
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
@@ -3924,7 +3937,11 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- PGSQL_LIBS="-lpq -lcrypt ${PGSQL_LIBS}"
|
|
+ if test `uname -s` = OpenBSD ; then
|
|
+ PGSQL_LIBS="-lpq -lcrypto ${PGSQL_LIBS}"
|
|
+ else
|
|
+ PGSQL_LIBS="-lpq -lcrypt ${PGSQL_LIBS}"
|
|
+ fi
|
|
PGSQL_LDFLAGS="-L$try"
|
|
|
|
|