2005-07-14 13:04:01 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
|
2010-06-09 21:28:55 -07:00
|
|
|
PROJECT=pkg-config
|
|
|
|
|
srcdir=`dirname "$0"`
|
2005-07-14 13:04:01 +00:00
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
|
|
|
|
|
ORIGDIR=`pwd`
|
|
|
|
|
cd $srcdir
|
|
|
|
|
|
2010-08-19 18:54:12 +02:00
|
|
|
# Rebuild the autotools for pkg-config
|
2010-06-09 21:28:55 -07:00
|
|
|
${AUTORECONF-autoreconf} -iv || exit $?
|
2005-07-14 13:04:01 +00:00
|
|
|
|
|
|
|
|
cd $ORIGDIR
|
|
|
|
|
|
2010-06-09 21:28:55 -07:00
|
|
|
if [ -z "$NOCONFIGURE" ] && [ "$1" != --no-configure ]; then
|
2016-07-24 18:52:48 -04:00
|
|
|
"$srcdir"/configure "$@" || exit $?
|
2009-03-30 22:06:58 +02:00
|
|
|
echo
|
|
|
|
|
echo "Now type 'make' to compile $PROJECT."
|
|
|
|
|
else
|
|
|
|
|
echo "Now type './configure && make' to compile $PROJECT."
|
|
|
|
|
fi
|