annotate autogen.sh @ 521:739afd9df73c

2004-7-27 Brian Masney <masneyb@gftp.org> * lib/rfc959.c src/gtk/misc-gtk.c src/gtk/view_dialog.c - fixed more comparsions between signed and unsigned integers * lib/sshv2.c (sshv2_buffer_get_int32) - allow an expected response value of 0. If it does not match, call sshv2_wrong_response(). SSH_FX_OK is set to 0, so this value was not being checked * src/gtk/gtkui.c src/text/textui.c src/uicommon/gftpui.h - renamed the clear_cache argument of gftpui_refresh() to clear_cache_entry. There is already a function named clear_cache()
author masneyb
date Wed, 28 Jul 2004 02:47:25 +0000
parents 2f5ce7fb5aad
children e850102b64be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
1 #!/bin/sh
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
2 # Run this to generate all the initial makefiles, etc.
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
3
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
4 srcdir=`dirname $0`
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
5 test -z "$srcdir" && srcdir=.
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
6
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
7 ORIGDIR=`pwd`
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
8 cd $srcdir
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
9 PROJECT=gFTP
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
10 TEST_TYPE=-f
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
11 FILE=lib/gftp.h
195
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
12 GETTEXTIZE=gettextize
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
13
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
14 DIE=0
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
15
195
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
16 if [ `whereis -b automake-1.4 > /dev/null 2>&1` ] ; then
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
17 AUTOMAKE=automake-1.4
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
18 ACLOCAL=aclocal-1.4
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
19 else
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
20 AUTOMAKE=automake
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
21 ACLOCAL=aclocal
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
22 fi
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
23
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
24 if [ `whereis -b autoconf2.13 > /dev/null 2>&1` ] ; then
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
25 AUTOCONF=autoconf2.13
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
26 AUTOHEADER=autoheader2.13
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
27 else
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
28 AUTOCONF=autoconf
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
29 AUTOHEADER=autoheader
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
30 fi
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
31
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
32 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
33 echo
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
34 echo "You must have autoconf installed to compile $PROJECT."
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
35 echo "libtool the appropriate package for your distribution,"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
36 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
37 DIE=1
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
38 }
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
39
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
40 have_automake=false
195
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
41 if $AUTOMAKE --version < /dev/null > /dev/null 2>&1 ; then
171
c4d4a788c31b 2003-6-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 166
diff changeset
42 automake_version=`automake --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
43 case $automake_version in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
44 1.2*|1.3*|1.4)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
45 ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
46 *)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
47 have_automake=true
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
48 ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
49 esac
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
50 fi
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
51 if $have_automake ; then : ; else
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
52 echo
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
53 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
54 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
55 echo "(or a newer version if it is available)"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
56 DIE=1
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
57 fi
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
58
195
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
59 gettext_version=`$GETTEXTIZE --version 2>/dev/null | grep 'GNU'`
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
60 if [ "x$gettext_version" = "x" ] ; then
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
61 echo
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
62 echo "GNU gettext must be installed to build GLib from CVS"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
63 echo "GNU gettext is available from http://www.gnu.org/software/gettext/"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
64 DIE=1
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
65 fi
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
66
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
67 if test "$DIE" -eq 1; then
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
68 exit 1
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
69 fi
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
70
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
71 test $TEST_TYPE $FILE || {
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
72 echo "You must run this script in the top-level $PROJECT directory"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
73 exit 1
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
74 }
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
75
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
76 if test -z "$AUTOGEN_SUBDIR_MODE"; then
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
77 if test -z "$*"; then
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
78 echo "I am going to run ./configure with no arguments - if you wish "
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
79 echo "to pass any to it, please specify them on the $0 command line."
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
80 fi
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
81 fi
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
82
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
83 case $CC in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
84 *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
85 esac
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
86
195
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
87 intl=`$GETTEXTIZE --help 2>/dev/null | grep -- '--intl'`
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
88 if test -z "$intl"; then
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
89 GETTEXTIZE_FLAGS="-f -c"
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
90 else
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
91 GETTEXTIZE_FLAGS="-f -c --intl"
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
92 fi
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
93
195
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
94 echo "$GETTEXTIZE $GETTEXTIZE_FLAGS"
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
95 $GETTEXTIZE $GETTEXTIZE_FLAGS
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
96
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
97 echo "$ACLOCAL $ACLOCAL_FLAGS"
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
98 $ACLOCAL $ACLOCAL_FLAGS
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
99
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
100 # optionally feature autoheader
195
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
101 ($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 && $AUTOHEADER
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
102
195
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
103 AUTOMAKE_FLAGS="-a -c $am_opt"
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
104 echo "$AUTOMAKE $AUTOMAKE_FLAGS"
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
105 $AUTOMAKE $AUTOMAKE_FLAGS
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
106
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
107 echo $AUTOCONF
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
108 $AUTOCONF
3fa7b4f4ab78 2003-6-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 171
diff changeset
109
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
110 cd $ORIGDIR
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
111
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
112 if test -z "$AUTOGEN_SUBDIR_MODE"; then
387
2f5ce7fb5aad 2003-2-2 Brian Masney <masneyb@gftp.org>
masneyb
parents: 195
diff changeset
113 CFLAGS="-Wall -ansi -D_GNU_SOURCE -O -g" $srcdir/configure "$@"
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
114
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
115 echo
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
116 echo "Now type 'make' to compile $PROJECT."
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
117 fi