From 1ff159be660ab359dc92b9f5f3b4208b284b3924 Mon Sep 17 00:00:00 2001 From: fourdan Date: Mon, 12 Feb 2007 16:20:18 +0000 Subject: Include patch from Michel Estienne --- src/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 26789d0..b9d0987 100644 --- a/src/Makefile +++ b/src/Makefile @@ -28,10 +28,12 @@ else endif ifndef PREFIX - PREFIX=/usr/local + PREFIX=/usr/local endif -X11_PREFIX = /usr +ifndef X11_PREFIX + X11_PREFIX = /usr +endif XTINC = -I$(X11_PREFIX)/include XTLIB = -L$(X11_PREFIX)$(LIB) -lXt -lX11 -lSM -lICE @@ -71,8 +73,11 @@ endif #PCREOBJ = `pcre-config --prefix`/lib/libpcre.a PCREOBJ = -EXTRALIB= -#EXTRALIB=-lsocket -lnsl # for solaris +ifeq ($(shell uname -s),SunOS) + EXTRALIB=-lsocket -lnsl # for solaris +else + EXTRALIB= +endif CC=gcc LIBTOOL=ar q # linux and solaris -- cgit v1.1