Blame autogen.sh

Packit 38d9dc
#!/bin/sh
Packit 38d9dc
# Copyright (c) 2007 Intel Corporation. All Rights Reserved.
Packit 38d9dc
#
Packit 38d9dc
# Permission is hereby granted, free of charge, to any person obtaining a
Packit 38d9dc
# copy of this software and associated documentation files (the
Packit 38d9dc
# "Software"), to deal in the Software without restriction, including
Packit 38d9dc
# without limitation the rights to use, copy, modify, merge, publish,
Packit 38d9dc
# distribute, sub license, and/or sell copies of the Software, and to
Packit 38d9dc
# permit persons to whom the Software is furnished to do so, subject to
Packit 38d9dc
# the following conditions:
Packit 38d9dc
# 
Packit 38d9dc
# The above copyright notice and this permission notice (including the
Packit 38d9dc
# next paragraph) shall be included in all copies or substantial portions
Packit 38d9dc
# of the Software.
Packit 38d9dc
# 
Packit 38d9dc
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Packit 38d9dc
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Packit 38d9dc
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
Packit 38d9dc
# IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
Packit 38d9dc
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
Packit 38d9dc
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
Packit 38d9dc
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Packit 38d9dc
Packit 38d9dc
PROJECT="libva"
Packit 38d9dc
Packit 38d9dc
test -n "$srcdir" || srcdir="`dirname \"$0\"`"
Packit 38d9dc
test -n "$srcdir" || srcdir=.
Packit 38d9dc
Packit 38d9dc
if ! test -f "$srcdir/configure.ac"; then
Packit 38d9dc
    echo "Failed to find the top-level $PROJECT directory"
Packit 38d9dc
    exit 1
Packit 38d9dc
fi
Packit 38d9dc
Packit 38d9dc
olddir="`pwd`"
Packit 38d9dc
cd "$srcdir"
Packit 38d9dc
Packit 38d9dc
mkdir -p m4
Packit 38d9dc
Packit 38d9dc
AUTORECONF=`which autoreconf`
Packit 38d9dc
if test -z $AUTORECONF; then
Packit 38d9dc
    echo "*** No autoreconf found ***"
Packit 38d9dc
    exit 1
Packit 38d9dc
else
Packit 38d9dc
    autoreconf -v --install || exit $?
Packit 38d9dc
fi
Packit 38d9dc
Packit 38d9dc
cd "$olddir"
Packit 38d9dc
Packit 38d9dc
if test -z "$NOCONFIGURE"; then
Packit 38d9dc
    $srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
Packit 38d9dc
fi