--- ipager-1.1.0/SConstruct	2005-11-06 06:23:24.000000000 -0500
+++ ipager-1.1.0-gentoo/SConstruct	2008-09-08 15:18:07.000000000 -0400
@@ -115,12 +115,14 @@
     else:
         print "yes"
         ipager_env.AppendUnique(
-            CPPPATH = imlib2_env.Dictionary()['CPPPATH'], 
             CCFLAGS = imlib2_env.Dictionary()['CCFLAGS'], 
             LIBPATH = imlib2_env.Dictionary()['LIBPATH'],
             LIBS    = imlib2_env.Dictionary()['LIBS']
-
         )
+        if imlib2_env.Dictionary().has_key('CPPPATH'): 
+            ipager_env.AppendUnique(
+                CPPPATH = imlib2_env.Dictionary()['CPPPATH'], 
+            )
 
 conf.Finish()
 
