Document hidden msgwin_*_visible preferences.
[geany-mirror/kugel-geany.git] / autogen.sh
blob8d416199ba723223400e21240773bd06be8a076a
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 DIE=0
9 (test -f $srcdir/configure.ac) || {
10 echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level package directory"
11 exit 1
14 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
15 echo
16 echo "**Error**: You must have \`autoconf' installed."
17 echo "Download the appropriate package for your distribution,"
18 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
19 DIE=1
22 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
23 echo
24 echo "**Error**: You must have \`intltool' installed."
25 echo "You can get it from:"
26 echo " ftp://ftp.gnome.org/pub/GNOME/"
27 DIE=1
30 (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
31 echo
32 echo "**Error**: You must have \`glib' installed."
33 echo "You can get it from: ftp://ftp.gtk.org/pub/gtk"
34 DIE=1
37 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
38 (glibtoolize --version) < /dev/null > /dev/null 2>&1 || {
39 echo
40 echo "**Error**: You must have \`libtool' installed."
41 echo "You can get it from:"
42 echo " http://www.gnu.org/software/libtool/"
43 DIE=1
47 (pkg-config --version) < /dev/null > /dev/null 2>&1 || {
48 echo
49 echo "You must have pkg-config installed to compile $package."
50 echo "Download the appropriate package for your distribution."
51 result="no"
52 DIE=1
55 (automake --version) < /dev/null > /dev/null 2>&1 || {
56 echo
57 echo "**Error**: You must have \`automake' (1.7 or later) installed."
58 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
59 DIE=1
60 NO_AUTOMAKE=yes
64 # if no automake, don't bother testing for aclocal
65 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
66 echo
67 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
68 echo "installed doesn't appear recent enough."
69 echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
70 DIE=1
73 if test "$DIE" -eq 1; then
74 exit 1
77 if test -z "$*"; then
78 echo "**Warning**: I am going to run \`configure' with no arguments."
79 echo "If you wish to pass any to it, please specify them on the"
80 echo \`$0\'" command line."
81 echo
84 echo "Processing configure.ac"
86 echo "no" | glib-gettextize --force --copy
87 intltoolize --copy --force --automake
88 libtoolize --copy --force || glibtoolize --copy --force
89 aclocal
90 autoheader
91 automake --add-missing --copy --gnu
92 autoconf
94 echo "Running $srcdir/configure $@ ..."
95 $srcdir/configure "$@" && echo "Now type 'make' to compile." || exit 1