summaryrefslogtreecommitdiff
path: root/print/ghostscript-esp/patches/patch-ae
blob: 6f134d595bcf71da43f01b1f97cbf0b35f752e04 (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
$NetBSD: patch-ae,v 1.2 2003/05/28 03:28:07 jlam Exp $

--- src/configure.ac.orig	Thu Dec 12 17:44:07 2002
+++ src/configure.ac
@@ -405,7 +405,7 @@ if test -d pstoraster; then
 	if test "x$CUPSCONFIG" != x; then
 	    dnl Use values from CUPS config...
 #	    LIBS="`$CUPSCONFIG --ldflags` `$CUPSCONFIG --static --image --libs | sed -e '1,$s/-lssl//'` $LIBS"
-	    LIBS="`$CUPSCONFIG --ldflags` `$CUPSCONFIG --image --libs` $LIBS"
+	    LIBS="`$CUPSCONFIG --image --libs` $LIBS"
 	    CFLAGS="`$CUPSCONFIG --cflags` $CFLAGS"
 	    cups_serverroot="`$CUPSCONFIG --serverroot`"
 	    cups_serverbin="`$CUPSCONFIG --serverbin`"
@@ -537,6 +537,8 @@ if test x$no_x != xyes; then
 
 	SAVELIBS="$LIBS"
 
+	AC_CHECK_LIB(ICE,IceConnectionNumber)
+	AC_CHECK_LIB(SM,SmcClientID)
 	AC_CHECK_LIB(X11,XOpenDisplay)
 	AC_CHECK_LIB(Xext,XdbeQueryExtension)
 	AC_CHECK_LIB(Xt,XtAppCreateShell)
@@ -545,7 +547,11 @@ if test x$no_x != xyes; then
 
 	if test "$ac_cv_lib_Xt_XtAppCreateShell" = yes; then
 		X_DEVS="\$(DD)x11.dev \$(DD)x11alpha.dev \$(DD)x11cmyk.dev \$(DD)x11mono.dev \$(DD)x11_.dev \$(DD)x11alt_.dev \$(DD)x11cmyk2.dev \$(DD)x11cmyk4.dev \$(DD)x11cmyk8.dev \$(DD)x11rg16x.dev \$(DD)x11rg32x.dev \$(DD)x11gray2.dev \$(DD)x11gray4.dev"
-		X_LIBS="-lXt -lXext -lX11"
+		if test "$ac_cv_lib_SM_SmcClientID" = yes; then
+			X_LIBS="-lXt -lXext -lX11 -lSM -lICE"
+		else
+			X_LIBS="-lXt -lXext -lX11"
+		fi
 	fi
 fi