File: configure.dpatch

package info (click to toggle)
vic 2.8ucl4-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,864 kB
  • ctags: 9,033
  • sloc: ansic: 56,989; cpp: 44,560; tcl: 5,550; sh: 1,382; perl: 1,329; makefile: 357
file content (22 lines) | stat: -rw-r--r-- 529 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- vic-2.8ucl3.orig/configure.in.x11
+++ vic-2.8ucl3/configure.in.x11
@@ -61,6 +61,10 @@
 				x_libraries=$i
 				break
 			fi
+			if test -r $i/libX11.so; then
+				x_libraries=$i
+				break
+			fi
        		done
 		if test "$x_libraries" = NONE ; then
 			echo "can't find X library"
@@ -77,6 +81,8 @@
 	else
 		echo "checking for libXext.a"
 		if test -f $x_libraries/libXext.a ; then
+			V_Xext="-lXext"
+		elif test -f $x_libraries/libXext.so ; then
 			V_Xext="-lXext"
 		else
 			echo "warning: compiling without -lXext"