--- src/config.h.orig 2015-07-30 15:59:07.000000000 -0400
+++ src/config.h      2015-07-31 15:48:46.000000000 -0400
@@ -186,7 +186,7 @@
 #   elif defined(__ANDROID__)
 #      define LEASEFILE "/data/misc/dhcp/dnsmasq.leases"
 #   else
-#      define LEASEFILE "/var/lib/misc/dnsmasq.leases"
+#      define LEASEFILE "@PREFIX@/var/lib/misc/dnsmasq.leases"
 #   endif
 #endif
 
@@ -194,7 +194,7 @@
 #   if defined(__FreeBSD__)
 #      define CONFFILE "/usr/local/etc/dnsmasq.conf"
 #   else
-#      define CONFFILE "/etc/dnsmasq.conf"
+#      define CONFFILE "@PREFIX@/etc/dnsmasq.conf"
 #   endif
 #endif
 
@@ -210,7 +210,7 @@
 #   if defined(__ANDROID__)
 #      define RUNFILE "/data/dnsmasq.pid"
 #    else
-#      define RUNFILE "/var/run/dnsmasq.pid"
+#      define RUNFILE "@PREFIX@/var/run/dnsmasq/dnsmasq.pid"
 #    endif
 #endif