pkgsrc/chat/kadu/patches/patch-ab
adam 4dde7ce035 Changes 0.5.0:
* Fixed memory leak after unsuccessful attemt to load a module
* Better compatibility with Qt3
* Pthreads detection under FreeBSD
* Library detection under MacOSX
* More..
2007-10-14 07:51:18 +00:00

69 lines
2.6 KiB
Text

$NetBSD: patch-ab,v 1.9 2007/10/14 07:51:19 adam Exp $
--- configure.orig 2007-01-01 12:34:49.000000000 +0100
+++ configure
@@ -4999,7 +4999,7 @@ if test "${ac_cv_lib_pthread_pthread_cre
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -5073,8 +5073,8 @@ echo "${ECHO_T}$ac_cv_lib_pthread_pthrea
if test $ac_cv_lib_pthread_pthread_create = yes; then
PTHREAD_CPPFLAGS=
- PTHREAD_LDFLAGS=
- PTHREAD_LIBS=-lpthread
+ PTHREAD_LDFLAGS=${PTHREAD_LDFLAGS}
+ PTHREAD_LIBS=${PTHREAD_LIBS}
else
@@ -11263,12 +11263,12 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- GADU_LIBS=-lgadu
+ GADU_LIBS="-lgadu -lssl -lcrypto ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
{ echo "$as_me:$LINENO: checking if libgadu is in system directories" >&5
echo $ECHO_N "checking if libgadu is in system directories... $ECHO_C" >&6; }
save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -lgadu -lstdc++ -lm"
+ CFLAGS="$CFLAGS ${GADU_LIBS} -lstdc++ -lm"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -11694,7 +11694,7 @@ echo "$as_me: error: $mod download faile
echo "MODULE_CONFIGURE_CMD: $MODULE_CONFIGURE_CMD" && \
echo -e "all:\n\t cd ..; make module_$mod; cd $mod\n\ninstall:\n\tcd ..; make module_$mod install_$mod; cd $mod\n\nclean:\n\trm -f *.o *.d *.so *.a *_moc.cpp .final.d .final.cpp.o .final.c.o\n\ndistclean: clean\n\trm -f .cxxflags .ldflags .final.cpp .final.c translations/*.qm\n" > modules/$mod/Makefile && \
- if test $enable_final == yes; then \
+ if test $enable_final = yes; then \
for src in $MODULE_SOURCES; do \
if test "`echo $src | sed 's/.*\.\(.*\)$/\1/'`" == "cpp"; then \
echo "#include \"$src\"" >> modules/$mod/.final2.cpp; \
@@ -11738,7 +11738,11 @@ echo "$as_me: error: $mod download faile
{ echo "$as_me:$LINENO: checking if lib$lib is in system directories" >&5
echo $ECHO_N "checking if lib$lib is in system directories... $ECHO_C" >&6; }
save_CFLAGS="$CFLAGS"
+ if [ x$lib = xssl ]; then
+ CFLAGS="$CFLAGS $MODULE_LDFLAGS -l$lib -lcrypto"
+ else
CFLAGS="$CFLAGS $MODULE_LDFLAGS -l$lib -lstdc++ -lm"
+ fi
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -11898,7 +11902,7 @@ fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
\
- MODULE_LDFLAGS="$MODULE_LDFLAGS -l$lib"; \
+ MODULE_LDFLAGS="$MODULE_LDFLAGS -l$lib -Wl,-R${X11BASE}/lib"; \
done && \
for hdr in $MODULE_INCLUDES; do \