--- perl-shared/Makefile.PL.in.orig	Wed May  1 17:55:28 2002
+++ perl-shared/Makefile.PL.in	Wed May  1 18:00:05 2002
@@ -10,7 +10,8 @@
     'NAME'         => 'RRDs',
     'VERSION_FROM' => '@top_srcdir@/perl-shared/RRDs.pm', # finds $VERSION
     'DEFINE'	   => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}",
-    'INC'          => '-I@top_srcdir@/src -I@top_srcdir@/gd1.3',
+    'CCFLAGS'      => '-DHAVE_CONFIG_H',
+    'INC'          => '-I../config -I@top_srcdir@/src -I@top_srcdir@/gd1.3',
     # where to look for the necessary libraries 
     # Perl will figure out which one is valid
     'depend'	   => {'RRDs.c' => "../src/.libs/librrd_private.a"},
