summaryrefslogtreecommitdiff
path: root/net-p2p/mutella/files/patch-configure
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2003-02-15 13:52:09 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2003-02-15 13:52:09 +0000
commit02fff05185fb96e82344fc5b4d11fded5c5f9f73 (patch)
treebe79365cba7d4e7d7a8e4acfcd67050fdb4348fa /net-p2p/mutella/files/patch-configure
parentUpdate to 1.3.1. (diff)
* Update to 0.4.3.
PR: 48262 Submitted by: Dominic Marks <dom@cus.org.uk> * Honor CFLAGS. * Proper pthreads handling on 4.x/5.x Approved by: maintainer
Notes
Notes: svn path=/head/; revision=75573
Diffstat (limited to 'net-p2p/mutella/files/patch-configure')
-rw-r--r--net-p2p/mutella/files/patch-configure51
1 files changed, 51 insertions, 0 deletions
diff --git a/net-p2p/mutella/files/patch-configure b/net-p2p/mutella/files/patch-configure
new file mode 100644
index 000000000000..588e1e676fa3
--- /dev/null
+++ b/net-p2p/mutella/files/patch-configure
@@ -0,0 +1,51 @@
+
+$FreeBSD$
+
+--- configure.orig Wed Feb 5 20:36:13 2003
++++ configure Sat Feb 15 02:11:03 2003
+@@ -5098,16 +5098,16 @@
+ fi
+
+ if test $g_link_threads = no ; then
+- echo "$as_me:$LINENO: checking for pthread_create with -pthread in CFLAGS" >&5
+-echo $ECHO_N "checking for pthread_create with -pthread in CFLAGS... $ECHO_C" >&6
++ echo "$as_me:$LINENO: checking for pthread_create with ${PTHREAD_CFLAGS} in CFLAGS" >&5
++echo $ECHO_N "checking for pthread_create with ${PTHREAD_CFLAGS} in CFLAGS... $ECHO_C" >&6
+ if test "${g_cv_pthread_flag+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+
+ save_LIBS="$LIBS"
+ save_CFLAGS="$CFLAGS"
+- LIBS="-pthread $LIBS"
+- CFLAGS="-pthread $CFLAGS"
++ LIBS="${PTHREAD_LIBS} $LIBS"
++ CFLAGS="${PTHREAD_CFLAGS} $CFLAGS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+@@ -5153,8 +5153,8 @@
+ echo "${ECHO_T}$g_cv_pthread_flag" >&6
+
+ if test $g_cv_pthread_flag=yes ; then
+- LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
+- LTHREAD_CFLAGS="$LTHREAD_CFLAGS -pthread"
++ LTHREAD_LIBS="$LTHREAD_LIBS ${PTHREAD_LIBS}"
++ LTHREAD_CFLAGS="$LTHREAD_CFLAGS ${PTHREAD_CFLAGS}"
+ g_link_threads=posix
+ fi
+ fi
+@@ -6621,13 +6621,6 @@
+ else
+ optimisation=false
+ fi;
+-if test $optimisation = true; then
+- CFLAGS="$CFLAGS -O2"
+- CXXFLAGS="$CXXFLAGS -O2"
+-else
+- CFLAGS="$CFLAGS -O0"
+- CXXFLAGS="$CXXFLAGS -O0"
+-fi
+
+ # Check whether --enable-debug or --disable-debug was given.
+ if test "${enable_debug+set}" = set; then