--- support/scripts/inc2h.pl    28 Jul 2002 14:30:45 -0000      1.2
+++ support/scripts/inc2h.pl    24 Aug 2002 12:10:41 -0000
@@ -28,7 +28,15 @@
 $path = shift;

 $processor = uc $processor;
-$path = "/usr/share/gpasm" if ($path eq '');
+if ($path eq '') {
+    if ( -x "/usr/share/gputils") {
+       $path = "/usr/share/gputils";
+    } elsif ( -x "/usr/share/gpasm") {
+       $path = "/usr/share/gpasm";
+    } else {
+       die "Could not find gpasm includes.\n";
+    }
+}

 #
 # Read the symbols at the end of this file.