summaryrefslogtreecommitdiff
path: root/lang/japhar/patches/patch-aa
blob: 002346e4d523d2b293c5d133d31b1b031aaaa139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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.