blob: 92c76558c5d43a3af84de46062b8b9564b5517e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
set -e
set -x
autopoint --force || exit 1
libtoolize --automake --copy --force || exit 1
intltoolize --copy --force || exit 1
aclocal -I m4 --force || exit 1
autoheader --force || exit 1
automake --add-missing --copy --force || exit 1
autoconf --force || exit 1
if `echo "$@" | grep -q CFLAGS > /dev/null` ; then
./configure "$@" || exit 1
else
CFLAGS=${CFLAGS-"-Wall -Werror -Wformat -Werror=format-security"}
CXXFLAGS="$CFLAGS"
./configure "$@" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" || exit 1
fi
|