https://github.com/GNOME/glib
Raw File
Tip revision: 08f41d802a8323ca1e819f865747d7adfbfe87aa authored by Philip Withnall on 11 July 2018, 15:57:55 UTC
Merge branch 'type-safe-g-clear-pointer-1425' into 'master'
Tip revision: 08f41d8
autogen.sh
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.

olddir=`pwd`
cd "$srcdir"

GTKDOCIZE=$(which gtkdocize 2>/dev/null)
if test -z $GTKDOCIZE; then
        echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
        rm -f gtk-doc.make
        cat > gtk-doc.make <<EOF
EXTRA_DIST =
CLEANFILES =
EOF
else
        gtkdocize || exit $?
fi

AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
        echo "*** No autoreconf found, please install it ***"
        exit 1
fi

# INSTALL is required by automake, but may be deleted by clean
# up rules. to get automake to work, simply touch it here. It will be
# regenerated from its corresponding *.in file by ./configure anyway.
touch INSTALL

autoreconf --force --install --verbose || exit $?

cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
back to top