sync code with last improvements from OpenBSD
This commit is contained in:
commit
88965415ff
26235 changed files with 29195616 additions and 0 deletions
32
lib/xcb-util/autogen.sh
Normal file
32
lib/xcb-util/autogen.sh
Normal file
|
@ -0,0 +1,32 @@
|
|||
#! /bin/sh
|
||||
|
||||
srcdir=`dirname "$0"`
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
ORIGDIR=`pwd`
|
||||
cd "$srcdir"
|
||||
|
||||
# If this is a git checkout, verify that the submodules are initialized,
|
||||
# otherwise autotools will just fail with an unhelpful error message.
|
||||
if [ -d ".git" ] && [ -r ".gitmodules" ]
|
||||
then
|
||||
# If git is not in PATH, this will not return 0, thus not keeping us
|
||||
# from building. Since the message is worthless when git is not
|
||||
# installed, this is what we want.
|
||||
if git submodule status 2>/dev/null | grep -q '^-'
|
||||
then
|
||||
echo "You have uninitialized git submodules." >&2
|
||||
echo "Please run: git submodule update --init" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
autoreconf -v --install || exit 1
|
||||
cd "$ORIGDIR" || exit $?
|
||||
|
||||
git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
|
||||
git config --local format.subjectPrefix "PATCH libxcb-util"
|
||||
|
||||
if test -z "$NOCONFIGURE"; then
|
||||
exec "$srcdir"/configure "$@"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue