summaryrefslogtreecommitdiff
path: root/lang/japhar/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'lang/japhar/patches/patch-aa')
-rw-r--r--lang/japhar/patches/patch-aa57
1 files changed, 57 insertions, 0 deletions
diff --git a/lang/japhar/patches/patch-aa b/lang/japhar/patches/patch-aa
new file mode 100644
index 00000000000..002346e4d52
--- /dev/null
+++ b/lang/japhar/patches/patch-aa
@@ -0,0 +1,57 @@
+$NetBSD: patch-aa,v 1.3 2006/06/04 13:52:57 joerg Exp $
+
+--- configure.orig 1999-03-16 02:03:46.000000000 +0000
++++ configure
+@@ -3498,6 +3498,7 @@ case "$host" in
+ mips-sgi-irix5.* | mips-sgi-irix6.*) can_use_libffi=true;;
+ i*86-pc-linux*) can_use_libffi=true;;
+ i*86-*-freebsd*) can_use_libffi=true;;
++ *-*-dragonfly*) can_use_libffi=true;;
+ i*86-pc-solaris2*) can_use_libffi=true;;
+ sparc-sun-4*) can_use_libffi=true;;
+ sparc-sun-*) can_use_libffi=true;;
+@@ -4043,14 +4044,14 @@ done
+ fi
+
+ if test "x${threads}" = xno; then
+- echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
+-echo "configure:4048: checking for pthread_create in -lpthread" >&5
++ echo $ac_n "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}""... $ac_c" 1>&6
++echo "configure:4048: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
+ ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lpthread $LIBS"
++LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 4056 "configure"
+ #include "confdefs.h"
+@@ -4084,7 +4085,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
+ #define $ac_tr_lib 1
+ EOF
+
+- LIBS="-lpthread $LIBS"
++ LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+
+ else
+ echo "$ac_t""no" 1>&6
+@@ -6178,7 +6179,7 @@ EOF
+
+ fi
+
+-subdirs="lib/libffi progs/japhard/readline"
++subdirs="lib/libffi"
+
+
+ trap '' 1 2 15
+@@ -6707,7 +6712,7 @@ if test "$no_recursion" != yes; then
+ esac
+ done
+
+- for ac_config_dir in lib/libffi progs/japhard/readline; do
++ for ac_config_dir in lib/libffi; do
+
+ # Do not complain, so a configure script can configure whichever
+ # parts of a large source tree are present.