summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorStelios Tsampas <loathingkernel@gmail.com>2017-07-10 16:14:43 +0300
committerStelios Tsampas <loathingkernel@gmail.com>2017-07-16 21:20:53 +0300
commitd880179b2a3aacae96bb4771a3c9e227ca6d5818 (patch)
tree96730dce1e5afeef992abc6ae6884577c8ebf53c /autogen.sh
parent496df34ee4e3861c6e9b0ee8256d575622447563 (diff)
downloadpcsxr-d880179b2a3aacae96bb4771a3c9e227ca6d5818.tar.gz
Fix compilation on linux.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index dd659717..ea9f1a52 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,13 +3,13 @@
# Additional options go to configure.
echo "Rebuilding ./configure with autoreconf..."
-if [ ! -d "include" ]; then
- mkdir "include"
-fi
-autoreconf -f -i
+for dir in include m4; do
+ if [ ! -d "$dir" ]; then
+ mkdir "$dir"
+ fi
+done
+autoreconf -f -i .
if [ $? -ne 0 ]; then
echo "autoreconf failed"
exit $?
fi
-
-./configure --enable-maintainer-mode "$@"