openbsd-ports/productivity/qhacc/patches/patch-configure
jasper 1d65edd1d9 - update qhacc to the last stable qt3 version
feedback and ok espie@ (MAINTAINER)
2009-06-07 00:08:31 +00:00

66 lines
1.9 KiB
Plaintext

$OpenBSD: patch-configure,v 1.2 2009/06/07 00:08:32 jasper Exp $
--- configure.orig Mon May 30 19:08:34 2005
+++ configure Tue Jun 2 12:10:32 2009
@@ -20564,13 +20564,13 @@ if test "${enable_mt+set}" = set; then
else
QHACCQT=qt-mt
-echo "$as_me:$LINENO: checking for main in -lpthread" >&5
-echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for main in -pthread" >&5
+echo $ECHO_N "checking for main in -pthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -20626,7 +20626,7 @@ if test $ac_cv_lib_pthread_main = yes; then
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="-pthread $LIBS"
fi
@@ -20636,13 +20636,13 @@ fi
else
-echo "$as_me:$LINENO: checking for main in -lpthread" >&5
-echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for main in -pthread" >&5
+echo $ECHO_N "checking for main in -pthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -20698,7 +20698,7 @@ if test $ac_cv_lib_pthread_main = yes; then
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="-pthread $LIBS"
fi
@@ -20821,7 +20821,8 @@ else
if test -f $dir/libqt-mt.so.3 -o -f $dir/libqt.so.3 \
-o -f $dir/libqt.dll.a -o -f $dir/libqt-mt.dll.a \
- -o -f $dir/libqt.dylib -o -f $dir/libqt-mt.dylib
+ -o -f $dir/libqt.dylib -o -f $dir/libqt-mt.dylib \
+ -o -f $dir/libqt-mt.so.*
then
echo "found in $dir"
QTLIBDIR=$dir