2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
11 FILE=libsecret/secret-value.c
16 if libtoolize --version < /dev/null > /dev/null 2>&1 ; then
17 libtool_version=`libtoolize --version |
19 sed -e 's/^\(.*\)([^)]*)\(.*\)$/\1\2/g' \
20 -e 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
21 case $libtool_version in
30 if $have_libtool ; then : ; else
32 echo "You must have libtool >= 2.2 installed to compile $PROJECT."
33 echo "Install the appropriate package for your distribution,"
34 echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
38 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
40 echo "You must have autoconf installed to compile $PROJECT."
41 echo "Install the appropriate package for your distribution,"
42 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
46 AUTOMAKE_VERSIONS="1.14 1.13 1.12 1.11 1.10"
47 for version in $AUTOMAKE_VERSIONS; do
48 if automake-$version --version < /dev/null > /dev/null 2>&1 ; then
49 AUTOMAKE=automake-$version
50 ACLOCAL=aclocal-$version
55 if test -z "$AUTOMAKE"; then
57 echo "You must have one of automake $AUTOMAKE_VERSIONS to compile $PROJECT."
58 echo "Install the appropriate package for your distribution,"
59 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
63 if test "$DIE" -eq 1; then
67 test $TEST_TYPE $FILE || {
68 echo "You must run this script in the top-level $PROJECT directory"
72 # NOCONFIGURE is used by gnome-common; support both
73 if ! test -z "$AUTOGEN_SUBDIR_MODE"; then
77 if test -z "$NOCONFIGURE"; then
79 echo "I am going to run ./configure with no arguments - if you wish "
80 echo "to pass any to it, please specify them on the $0 command line."
86 # README and INSTALL are required by automake, but may be deleted by clean
87 # up rules. to get automake to work, simply touch these here, they will be
88 # regenerated from their corresponding *.in files by ./configure anyway.
91 $ACLOCAL -I build/m4 $ACLOCAL_FLAGS || exit $?
93 libtoolize --force || exit $?
94 intltoolize --force --copy || exit $?
100 $AUTOMAKE --add-missing || exit $?
102 cd $ORIGDIR || exit $?
104 if test -z "$NOCONFIGURE"; then
105 $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
108 echo "Now type 'make' to compile $PROJECT."