Make adding string and string vector settings initialise the setting
[geany-mirror.git] / autogen.sh
blobafd3117b96ba5a914c1c08cb9305adcc5b8379d2
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 (automake --version) < /dev/null > /dev/null 2>&1 || {
48 echo
49 echo "**Error**: You must have \`automake' (1.7 or later) installed."
50 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
51 DIE=1
52 NO_AUTOMAKE=yes
56 # if no automake, don't bother testing for aclocal
57 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
58 echo
59 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
60 echo "installed doesn't appear recent enough."
61 echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
62 DIE=1
65 if test "$DIE" -eq 1; then
66 exit 1
69 if test -z "$*"; then
70 echo "**Warning**: I am going to run \`configure' with no arguments."
71 echo "If you wish to pass any to it, please specify them on the"
72 echo \`$0\'" command line."
73 echo
76 echo "Processing configure.ac"
78 echo "no" | glib-gettextize --force --copy
79 intltoolize --copy --force --automake
80 libtoolize --copy --force || glibtoolize --copy --force
81 aclocal
82 autoheader
83 automake --add-missing --copy --gnu
84 autoconf
86 echo "Running $srcdir/configure $@ ..."
87 $srcdir/configure "$@" && echo "Now type 'make' to compile." || exit 1