resources: Fix PARSEC compiling issues

libtool wasn't built correctly as aclocal, automake and autoconf
was not installed. As a result, some of the workloads were not
able to be built.

This patch fixes this issue by install autotools-dev and
autoconf.

Also, the patch adds change the owner of the parsec-benchmark
folder to the user 'gem5', which will run the workloads.

JIRA: https://gem5.atlassian.net/browse/GEM5-723

Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Change-Id: I12e756ac5620ce7e92b7e403bf45f87723ed3164
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5-resources/+/33414
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: Bobby R. Bruce <bbruce@ucdavis.edu>
diff --git a/src/parsec/disk-image/parsec/parsec-install.sh b/src/parsec/disk-image/parsec/parsec-install.sh
index 75a6a05..c28961d 100644
--- a/src/parsec/disk-image/parsec/parsec-install.sh
+++ b/src/parsec/disk-image/parsec/parsec-install.sh
@@ -16,6 +16,8 @@
 
 # Installing packages needed to build PARSEC
 sudo apt install -y build-essential
+sudo apt install -y autotools-dev
+sudo apt install -y automake
 sudo apt install -y m4
 sudo apt install -y git
 sudo apt install -y python
diff --git a/src/parsec/disk-image/parsec/post-installation.sh b/src/parsec/disk-image/parsec/post-installation.sh
index 958a8a3..b23246a 100644
--- a/src/parsec/disk-image/parsec/post-installation.sh
+++ b/src/parsec/disk-image/parsec/post-installation.sh
@@ -11,4 +11,6 @@
 # copy and run outside (host) script after booting
 cat /home/gem5/runscript.sh >> /root/.bashrc
 
+chmod -R gem5:gem5 /home/gem5/parsec-benchmark/
+
 echo 'Post Installation Done'