summaryrefslogtreecommitdiff
path: root/lang/swi-prolog/patches/patch-ab
blob: 8156f3e3c21ae389decd2c52a00cbf6b67dec72e (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
$NetBSD: patch-ab,v 1.3 2001/04/29 16:01:17 jtb Exp $

--- src/configure.orig	Fri Mar 16 08:57:25 2001
+++ src/configure
@@ -565,7 +565,7 @@
 
 EXTRAOBJ=""
 INSTALLTARGET=dv-install
-PL=pl
+#PL=pl
 RT=""
 PLVERSION=`cat ../VERSION`
 
@@ -2234,14 +2234,14 @@
   echo "$ac_t""no" 1>&6
 fi
 
-echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
-echo "configure:2239: checking for main in -lncurses" >&5
-ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
+echo "configure:2239: checking for main in -lcurses" >&5
+ac_lib_var=`echo curses'_'main | 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="-lncurses  $LIBS"
+LIBS="-lcurses  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 2247 "configure"
 #include "confdefs.h"
@@ -2265,19 +2265,19 @@
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
   cat >> confdefs.h <<EOF
 #define $ac_tr_lib 1
 EOF
 
-  LIBS="-lncurses $LIBS"
+  LIBS="-lcurses $LIBS"
 
 else
   echo "$ac_t""no" 1>&6
 fi
 
-if test ! "$ac_cv_lib_ncurses_main" = "yes"; then
+if test ! "$ac_cv_lib_curses_main" = "yes"; then
   echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
 echo "configure:2283: checking for main in -lcurses" >&5
 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
@@ -2322,7 +2322,7 @@
 fi
 
 fi
-if test ! "$ac_cv_lib_ncurses_main" = "yes" -a \
+if test ! "$ac_cv_lib_curses_main" = "yes" -a \
         ! "$ac_cv_lib_curses_main" = "yes"; then
   echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
 echo "configure:2329: checking for main in -ltermcap" >&5
@@ -2490,14 +2490,14 @@
 fi
 
   if test ! "$ac_cv_lib_readline_main" = "yes"; then
-    echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
-echo "configure:2495: checking for main in -lncurses" >&5
-ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
+    echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
+echo "configure:2495: checking for main in -lcurses" >&5
+ac_lib_var=`echo curses'_'main | 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="-lncurses  $LIBS"
+LIBS="-lcurses  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 2503 "configure"
 #include "confdefs.h"
@@ -2521,19 +2521,19 @@
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
   cat >> confdefs.h <<EOF
 #define $ac_tr_lib 1
 EOF
 
-  LIBS="-lncurses $LIBS"
+  LIBS="-lcurses $LIBS"
 
 else
   echo "$ac_t""no" 1>&6
 fi
 
-    if test ! "$ac_cv_lib_ncurses_main" = "yes"; then
+    if test ! "$ac_cv_lib_curses_main" = "yes"; then
       echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
 echo "configure:2539: checking for main in -lcurses" >&5
 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
@@ -2578,7 +2578,7 @@
 fi
 
     fi
-    if test "$ac_cv_lib_ncurses_main" = "yes" || test "$ac_cv_lib_curses_main" = "yes"; then
+    if test "$ac_cv_lib_curses_main" = "yes" || test "$ac_cv_lib_curses_main" = "yes"; then
       echo "Found curses library.  See if -lreadline works now"
       unset ac_cv_lib_readline_main
       echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6