put in an auto* check for the path to perl (if it exists), and modified

* configure.in, Makefile.am: put in an auto* check for the
  path to perl (if it exists), and modified make Timingtests
  to use that path instead of just executing the dbgenattr.pl
  script (bug 148056)
diff --git a/ChangeLog b/ChangeLog
index 9487666..768fb3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Jul 21 17:04:27 HKT 2004 William Brack <wbrack@mmm.com.hk>
+
+	* configure.in, Makefile.am: put in an auto* check for the
+	  path to perl (if it exists), and modified make Timingtests
+	  to use that path instead of just executing the dbgenattr.pl
+	  script (bug 148056)
+
 Fri Jul 16 18:36:33 HKT 2004 William Brack <wbrack@mmm.com.hk>
 
 	* python/generator.py: added a check on the argument for some
diff --git a/Makefile.am b/Makefile.am
index 34ca3b5..d38bb2b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -757,7 +757,7 @@
 
 $(srcdir)/dba100000.xml: dbgenattr.pl
 	@echo "## generating dba100000.xml"
-	@($(top_srcdir)/dbgenattr.pl 100000 > $(srcdir)/dba100000.xml)
+	@($(PERL) $(top_srcdir)/dbgenattr.pl 100000 > $(srcdir)/dba100000.xml)
 
 Timingtests: xmllint$(EXEEXT) $(srcdir)/dba100000.xml
 	@echo "## Timing tests to try to detect performance"
diff --git a/configure.in b/configure.in
index 52f0af2..9c86650 100644
--- a/configure.in
+++ b/configure.in
@@ -31,6 +31,7 @@
 AC_PATH_PROG(RM, rm, /bin/rm)
 AC_PATH_PROG(MV, mv, /bin/mv)
 AC_PATH_PROG(TAR, tar, /bin/tar)
+AC_PATH_PROG(PERL, perl, /usr/bin/perl)
 
 dnl Make sure we have an ANSI compiler
 AM_C_PROTOTYPES