aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-08-10 00:43:43 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-08-10 00:49:08 +0200
commita6f6a23355c94007c3e4a17819e99e08df93f7ba (patch)
tree6fedb51b35365f8a21ef088288cd180fc222a563 /autogen.sh
parent44f797d1ccfb8a4ddc19324e6be5e3c8fe8adae5 (diff)
autogen.sh, configure.ac: fix build for mingw-w64 xcompiler, cleanup superfluous code
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh16
1 files changed, 6 insertions, 10 deletions
diff --git a/autogen.sh b/autogen.sh
index e0f7942..d1443b9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,16 +1,12 @@
#!/bin/bash
-set -e
set -x
-OLDPWD=$(pwd)
-cd $(dirname $0)
-test -f Makefile && make distclean
+if ! autoreconf -fi; then
+ aclocal
+ autoheader
+ automake --force-missing --add-missing
+ autoconf
+fi
-aclocal
-autoheader
-automake --force-missing --add-missing
-autoconf
-
-cd ${OLDPWD}
$(dirname $0)/configure $@ && make -j${BUILDJOBS:-4} all