2014-07-09 16:10:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PROJECT="codecanalyzer"
|
|
|
|
|
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
|
|
|
|
|
|
|
if ! test -f "$srcdir/configure.ac"; then
|
|
|
|
echo "Failed to find the top-level $PROJECT directory"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
olddir="`pwd`"
|
|
|
|
cd "$srcdir"
|
|
|
|
|
|
|
|
mkdir -p m4
|
|
|
|
|
|
|
|
AUTORECONF=`which autoreconf`
|
|
|
|
if test -z "$AUTORECONF"; then
|
|
|
|
echo "*** No autoreconf found ***"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
autoreconf -v --install || exit $?
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "$olddir"
|
|
|
|
|
2016-06-21 16:56:58 +00:00
|
|
|
if test -z "$NOCONFIGURE"; then
|
2014-07-09 16:10:57 +00:00
|
|
|
$srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
|
|
|
|
fi
|