Index: ratbox-respond-1.0/ratbox-respond/configure
--- ratbox-respond-1.0/ratbox-respond/configure.orig	2006-01-11 22:52:17 +0100
+++ ratbox-respond-1.0/ratbox-respond/configure	2010-02-05 11:20:24 +0100
@@ -2889,8 +2889,6 @@
 fi
 
 
-CPPFLAGS="-I /usr/include"
-LIBS="-L /usr/lib"
 
 echo "$as_me:$LINENO: checking for OpenSSL" >&5
 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
Index: ratbox-services-1.2.4/configure
--- ratbox-services-1.2.4/configure.orig	2010-01-03 19:58:07 +0100
+++ ratbox-services-1.2.4/configure	2010-02-05 11:20:47 +0100
@@ -4707,7 +4707,7 @@
 
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsqlite3 in given path" >&5
 $as_echo_n "checking for -lsqlite3 in given path... " >&6; }
-	if test -e "$ac_cv_sqlite3_path/lib/libsqlite3.so"; then
+	if test -e "$ac_cv_sqlite3_path/lib/libsqlite3.a"; then
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
 		ac_cv_found_sqlite3_lib="yes"
@@ -5271,7 +5271,7 @@
 # Ultrix sh set writes to stderr and can't be redirected directly,
 # and sets the high bit in the cache file unless we assign to the vars.
 (
-  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+  for ac_var in `set 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     eval ac_val=\$$ac_var
     case $ac_val in #(
     *${as_nl}*)
Index: ratbox-services-1.2.4/include/config.h
--- ratbox-services-1.2.4/include/config.h.orig	2010-02-04 20:16:21 +0100
+++ ratbox-services-1.2.4/include/config.h	2010-02-05 11:20:24 +0100
@@ -9,7 +9,7 @@
 #define PID_PATH	RUNDIR "/ratbox-services.pid"
 #define LOG_PATH	LOGDIR "/ratbox-services.log"
 #define HELP_PATH       HELPDIR
-#define DB_PATH		SYSCONFDIR "/ratbox-services.db"
+#define DB_PATH		RUNDIR "/ratbox-services.db"
 
 /* SMALL_NETWORK
  * If your network is fairly small, enable this to save some memory.
Index: ratbox-services-1.2.4/include/tools.h
--- ratbox-services-1.2.4/include/tools.h.orig	2007-12-02 16:42:29.000000000 +0100
+++ ratbox-services-1.2.4/include/tools.h	2015-08-08 10:30:11.073107570 +0200
@@ -26,8 +26,8 @@
 extern const char *lcase(const char *);
 extern const char *ucase(const char *);
 
-__inline int string_to_array(char *string, char *parv[]);
-__inline int string_to_array_delim(char *string, char *parv[], char delim, int maxpara);
+int string_to_array(char *string, char *parv[]);
+int string_to_array_delim(char *string, char *parv[], char delim, int maxpara);
 
 #ifndef HAVE_STRLCAT
 extern size_t strlcat(char *dst, const char *src, size_t siz);
Index: ircd-ratbox-3.0.10/contrib/Makefile.in
--- ircd-ratbox-3.0.10/contrib/Makefile.in.orig	2015-10-13 17:00:04.000000000 +0200
+++ ircd-ratbox-3.0.10/contrib/Makefile.in	2015-10-14 10:31:45.615924862 +0200
@@ -296,7 +296,7 @@
 servicesdir = @moduledir@/autoload
 libmodulesdir = @moduledir@
 contribdir = @moduledir@/contrib
-INCLUDES = -I../include -I../libratbox/include $(INCLTDL)
+INCLUDES = $(CPPFLAGS) -I../include -I../libratbox/include $(INCLTDL)
 AM_CFLAGS = $(WARNFLAGS)
 SRCS = \
 example_module.c        \
