summaryrefslogtreecommitdiff
path: root/devel/pdcurses/patches/patch-aa
blob: d70238b478071d423dda000e2d9f60b396a89e7d (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
$NetBSD: patch-aa,v 1.3 2016/10/10 02:12:57 mef Exp $

--- configure.orig	2008-07-13 10:18:17.000000000 +0900
+++ configure	2016-10-10 10:33:18.000000000 +0900
@@ -4685,6 +4685,7 @@ for ac_dir in $mh_inc_dirs ; do
     break
   fi
 done
+mh_x11_dir="${X11BASE}/include/X11"
 
 
 if test "$with_xaw3d" = yes; then
@@ -4706,6 +4707,7 @@ for ac_dir in $mh_inc_dirs ; do
     break
   fi
 done
+mh_x11_xaw_dir="${X11BASE}/include/X11"
 
 if test "x$mh_x11_dir" != "x" ; then
 	mh_x11_dir_no_x11=`echo $mh_x11_dir | sed 's/\/X11$//'`
@@ -4770,6 +4772,7 @@ else
 		MH_X11_LIBS="Xaw Xmu Xt X11"
 	fi
 fi
+MH_X11_LIBS="${PDCURSES_XAW} Xmu Xt X11"
 MH_X11R6_LIBS="SM ICE Xext"
 mh_x11r6=no
 
@@ -4797,27 +4800,8 @@ mh_where_found=""
 mh_where_found_dirs=""
 mh_solaris_path=""
 for mh_lib in $mh_libs; do
-  mh_lib_found=no
-  for ac_dir in $mh_lib_dirs ; do
-    for mh_ext in a so sl dll.a dylib; do
-      if test -r $ac_dir/lib$mh_lib.$mh_ext; then
-        if test "x$mh_prev_dir" != "x$ac_dir" ; then
-          if test "x$mh_prev_dir" = "x" ; then
-             mh_where_found="$mh_where_found found in $ac_dir"
-          else
-             mh_where_found="$mh_where_found and in $ac_dir"
-          fi
-          mh_prev_dir=$ac_dir
-          mh_where_found_dirs="$mh_where_found_dirs $ac_dir"
-          MH_XLIBS="$MH_XLIBS -L$ac_dir"
-          mh_solaris_path="${mh_solaris_path}:$ac_dir"
-        fi
-        MH_XLIBS="$MH_XLIBS -l$mh_lib"
-        mh_lib_found=yes
-        break 2
-      fi
-    done
-  done
+  mh_lib_found=yes
+  MH_XLIBS="$MH_XLIBS -l$mh_lib"
   if test "$mh_lib_found" = no; then
     { { echo "$as_me:$LINENO: error: Cannot find required X library; lib$mh_lib. PDCurses cannot be configured" >&5
 echo "$as_me: error: Cannot find required X library; lib$mh_lib. PDCurses cannot be configured" >&2;}