Files
xf86-video-omap/autogen.sh
Enrico Weigelt, metux IT consult 5efb8d85ff autogen.sh: fix FTBS on out-of-tree build
Fix autogen.sh to support building in a separate directory.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-omap/-/merge_requests/7>
2024-06-07 16:45:16 +02:00

39 lines
913 B
Bash
Executable File

#! /bin/sh
srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd "$srcdir"
# on some platforms, you have "g" versions of some of these tools instead,
# ie glibtoolize instead of libtoolize..
find_tool() {
which $1 2> /dev/null || which g$1 2> /dev/null
}
aclocal=`find_tool aclocal`
libtoolize=`find_tool libtoolize`
automake=`find_tool automake`
autoconf=`find_tool autoconf`
autoheader=`find_tool autoheader`
mkdir -p config && $aclocal && $autoheader && $libtoolize --copy --force && $automake --copy --add-missing --foreign && $autoconf
test -n "$NOCONFIGURE" && {
echo "skipping configure stage as requested."
echo "autogen.sh done."
exit 0
}
cd "$ORIGDIR"
CONFIGURE_DEF_OPT="--enable-maintainer-mode"
echo $srcdir/configure $CONFIGURE_DEF_OPT $*
$srcdir/configure $CONFIGURE_DEF_OPT $* || {
echo " configure failed"
exit 1
}
echo "Now type 'make' to compile"