--- src/Makefile.orig	2009-06-01 13:53:29.000000000 +0200
+++ src/Makefile	2009-06-15 08:59:05.000000000 +0200
@@ -1,7 +1,7 @@
 # In case of windows, use os_cygwin=yes setting in the configuration file (smsd.conf).
 
 # Select your setup size:
-CFLAGS = -D NUMBER_OF_MODEMS=64
+CFLAGS += -DNUMBER_OF_MODEMS=64
 
 # Uncomment for Solaris
 # CFLAGS += -D SOLARIS
@@ -9,7 +9,7 @@
 # CC=gcc
 
 # Comment this out, to enable statistics
-CFLAGS += -D NOSTATS
+#CFLAGS += -D NOSTATS
 
 # Uncomment this to force smsd to run in terminal mode
 #CFLAGS += -D TERMINAL
@@ -31,7 +31,7 @@
 ifneq (,$(findstring NOSTATS,$(CFLAGS)))
 	  $(CC) $(CFLAGS) -o $@ $^
 else 
-	  $(CC) `mm-config --cflags` $(CFLAGS) -o $@ $^ `mm-config --ldflags --libs`
+	  $(CC) `$(LOCALBASE)/bin/mm-config --cflags` $(CFLAGS) -o $@ $^ `$(LOCALBASE)/bin/mm-config --ldflags --libs`
 endif
 
 clean:
