diff --git a/config/ChangeLog b/config/ChangeLog
index 645ae1f71bd2df3fc50abf1f4ee8915721125166..5033a8fb33dc6439842c9454234b27cfa1bfa994 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,9 @@
+Tue Apr 14 17:38:37 1992  Per Cederqvist  (ceder@lysator)
+
+	* balance-defs.make: Updated.
+
+	* sunos4-defs.make (PROFILE-LIB-SUFFIX): New variable.
+
 Sat Apr  4 19:11:53 1992  Per Cederqvist  (ceder@lysator)
 
 	* sun4os4-defs.make (CC): gcc2 has been renamed to gcc.
diff --git a/config/balance-defs.make b/config/balance-defs.make
index beb22076300877edd8570285c276621bf868beeb..3f1931cce96e4cccacbd865a1b81722eeabe2723 100644
--- a/config/balance-defs.make
+++ b/config/balance-defs.make
@@ -1,5 +1,5 @@
 #
-# $Id: balance-defs.make,v 1.10 1992/04/04 17:23:30 ceder Exp $
+# $Id: balance-defs.make,v 1.11 1992/04/14 15:56:27 ceder Exp $
 # Copyright (C) 1991  Lysator Academic Computer Association.
 #
 # This file is part of the LysKOM server.
@@ -22,7 +22,7 @@
 #
 # Please mail bug reports to bug-lyskom@lysator.liu.se. 
 #
-# $Id: balance-defs.make,v 1.10 1992/04/04 17:23:30 ceder Exp $
+# $Id: balance-defs.make,v 1.11 1992/04/14 15:56:27 ceder Exp $
 # This file is included by all Makefiles in the LysKOM hierarchy.
 # It gives default values for all variables that is normally used. 
 # TOPDIR and SCRIPTDIR must be set before this file is included.
@@ -39,6 +39,7 @@ TOUCHLIB = ranlib
 SYMLINK = ln -s
 YACC = bison -d
 LEX = flex
+MKDIR=/bin/mkdir
 
 INCLUDEDIR	= $(TOPDIR)/include
 LIBDIR		= $(TOPDIR)/lib
@@ -46,11 +47,11 @@ ANSIDIR		= $(INCLUDEDIR)/ansi
 
 INCLUDES = -I$(ANSIDIR) -I$(INCLUDEDIR)
 OPTIMIZE-FLAGS = -O
-MISC-CFLAGS = -g -Wall
+MISC-CFLAGS = -g -Wall -Wstrict-prototypes -Wmissing-prototypes
 PIPE = -pipe
 
 # -h flag makes NULL pointer references generate runtime errors
-LDFLAGS = -h -L$(LIBDIR)
+LDFLAGS = -h -L$(LIBDIR) $(PROFILE-FLAGS)
 
 # Library for hostname lookup.
 LIBRESOLV = -lresolv
@@ -60,9 +61,18 @@ LIBRESOLV = -lresolv
 #LIBIDENT = -lauthuser
 LIBIDENT =
 
-CFLAGS =  $(INCLUDES)  $(OPTIMIZE-FLAGS)  $(MISC-CFLAGS) $(PIPE) $(TARGET)
+CFLAGS =  $(INCLUDES)  $(OPTIMIZE-FLAGS)  $(MISC-CFLAGS) $(PIPE) $(TARGET) $(PROFILE-FLAGS)
 
-# LysKOM executables that the typical user don't use go here.
+# Are we profiling? PROFILE-FLAGS are sent to CC when compiling and linking.
+# PROFILE-LIB-SUFFIX are included in all library names so that we can have
+# one profiled and one non-profiled version at the same time. But make sure
+# to delete all .o files when switching between profiling and not profiling...
+#PROFILE-FLAGS = -pg -static
+#PROFILE-LIB-SUFFIX = -pg
+PROFILE-FLAGS = 
+PROFILE-LIB-SUFFIX = 
+
+# LysKOM executables that the typical user doesn't use go here.
 # (The server, dbck, et c)
 
 LYSKOMSYSBIN = /usr/lyskom/bin
diff --git a/config/sun4os4-defs.make b/config/sun4os4-defs.make
index 5bfbe5b23ff1dcc3d3bcf4462275dbfa4605dfb3..92e1956c19759b967f59833287e2ab47d0986f15 100644
--- a/config/sun4os4-defs.make
+++ b/config/sun4os4-defs.make
@@ -1,5 +1,5 @@
 #
-# $Id: sun4os4-defs.make,v 1.17 1992/04/14 15:42:48 ceder Exp $
+# $Id: sun4os4-defs.make,v 1.18 1992/04/14 15:56:30 ceder Exp $
 # Copyright (C) 1991  Lysator Academic Computer Association.
 #
 # This file is part of the LysKOM server.
@@ -22,7 +22,7 @@
 #
 # Please mail bug reports to bug-lyskom@lysator.liu.se. 
 #
-# $Id: sun4os4-defs.make,v 1.17 1992/04/14 15:42:48 ceder Exp $
+# $Id: sun4os4-defs.make,v 1.18 1992/04/14 15:56:30 ceder Exp $
 # This file is included by all Makefiles in the LysKOM hierarchy.
 # It gives default values for all variables that is normally used. 
 # TOPDIR and SCRIPTDIR must be set before this file is included.
@@ -42,6 +42,10 @@ YACC = bison -d
 LEX = flex
 MKDIR=/bin/mkdir
 
+#Use the commented versions in the distribution!
+#INCLUDEDIR	= $(TOPDIR)/include
+#LIBDIR		= $(TOPDIR)/lib
+#ANSIDIR		= $(INCLUDEDIR)/ansi
 INCLUDEDIR	= /usr/local/include/lyskom
 LIBDIR		= /usr/local/lib/lyskom
 #ANSIDIR		= $(INCLUDEDIR)/ansi
@@ -50,7 +54,6 @@ ANSIDIR=/usr/gnu/var/gcc/sunos4.1.1/2.0/proto-include
 INCLUDES = -I$(ANSIDIR) -I$(INCLUDEDIR)
 
 OPTIMIZE-FLAGS = -O3
-#MISC-CFLAGS = -g -Wall
 MISC-CFLAGS = -g -Wall -Wstrict-prototypes -Wmissing-prototypes
 # You sometimes can't use -pipe on a sun3, since Suns /bin/as can't read
 # stdin. If you use gas you can use -pipe.