Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[fec395]: autogen.sh Maximize Restore History

Download this file

autogen.sh    116 lines (99 with data), 2.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/sh
# Script to do the configuration work required before running configure
# when starting from fresh CVS checkout, or cvs update
package="gtkextra-3"
# a silly hack that generates autoregen.sh but it's handy
echo "#!/bin/sh" > autoregen.sh
echo "./autogen.sh $@ \$@" >> autoregen.sh
chmod +x autoregen.sh
if test "`uname`" = ""FreeBSD"" -a -f "macros/$package.0.m4" ; then
echo
echo 'FreeBSD patch: removing "macros/$package.0.m4"... '
rm -f macros/$package.0.m4
echo "done"
echo
fi
LIBTOOLIZE="libtoolize --copy --force --automake"
ACLOCAL=aclocal
AUTOCONF=autoconf
AUTOHEADER=autoheader
AUTOMAKE="automake -a -c --foreign"
GTKDOCIZE=gtkdocize
# Get m4 from current PATH!
echo "Locating m4 macro language processor... "
for GNUM4 in ${M4} m4 gm4 gnum4 ; do
if test -x "`which ${GNUM4}`"; then
ok=yes
GNUM4=`which ${GNUM4}`
echo "found: ${GNUM4}"
break;
fi
done
if test x${ok} != xyes ; then
echo "not found -- aborting `basename $0`"
exit 1
fi
# Clean up old files which could hurt otherwise
rm -f config.cache config.log config.status
# generate config.guess config.sub ltconfig ltmain.sh
if ( libtoolize --version ) </dev/null > /dev/null 2>&1; then
rm -f config.guess config.sub ltconfig ltmain.sh
echo "Building files for libtool... "
${LIBTOOLIZE}
echo "done."
else
echo "libtoolize not found -- aborting `basename $0`"
exit 1
fi
# generate gtk-doc.make, <m4dir>/gtk-doc.m4
if ( gtkdocize --version ) </dev/null > /dev/null 2>&1; then
echo "Building files for gtkdoc... "
${GTKDOCIZE}
echo "done."
fi
# generate aclocal.m4
if ( aclocal --version ) </dev/null > /dev/null 2>&1; then
rm -f aclocal.m4
echo "Building aclocal.m4... "
${ACLOCAL} -I m4
echo "done."
else
echo "aclocal not found -- aborting `basename $0`"
exit 1
fi
# generate configure from configure.in
if ( autoconf --version ) </dev/null > /dev/null 2>&1; then
rm -f configure
echo "Building configure... "
${AUTOCONF}
echo "done."
else
echo "autoconf not found -- aborting `basename $0`"
exit 1
fi
# generate config.h.in
if ( autoheader --version ) </dev/null > /dev/null 2>&1; then
rm -f config.h.in
echo "Building config header template... "
${AUTOHEADER}
echo "done."
else
echo "autoheader not found -- aborting `basename $0`"
exit 1
fi
# generate stamp-h.in and all Makefile.in
if ( automake --version ) </dev/null > /dev/null 2>&1; then
rm -f stamp-h.in
echo "Building Makefile templates... "
${AUTOMAKE}
echo "done."
else
echo "automake not found -- aborting `basename $0`"
exit 1
fi
echo ./configure $@
./configure $@ || {
echo " configure failed"
exit 1
}
echo "Now type 'make' to compile $package."