annotate configure.in @ 919:d59d54d380a9

Fixed po/ChangeLog
author stephaner
date Fri, 27 Apr 2007 05:45:09 +0000
parents 1e44c7b7f41b
children e0d9d935cab5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1 dnl Process this file with autoconf to produce a configure script.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3 AC_INIT(lib/gftp.h)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5 AM_CONFIG_HEADER(config.h)
780
e2d5adfaa9a9 2006-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 736
diff changeset
6 AM_INIT_AUTOMAKE(gftp,2.0.19pre1)
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7
81
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
8 AC_ARG_ENABLE(gtk20,
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
9 [ --disable-gtk20 Don't look for GTK+ 2.0 libraries],
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
10 enable_gtk20=$enableval,
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
11 enable_gtk20="yes")
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
12
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
13 AC_ARG_ENABLE(gtkport,
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
14 [ --disable-gtkport Disable compiling the GTK+ port],
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
15 enable_gtkport=$enableval,
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
16 enable_gtkport="yes")
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
17
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
18 AC_ARG_ENABLE(textport,
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
19 [ --disable-textport Disable compiling the text port],
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
20 enable_textport=$enableval,
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
21 enable_textport="yes")
215
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
22 AC_ARG_ENABLE(ssl,
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
23 [ --disable-ssl Disable SSL support],
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
24 enable_ssl=$enableval,
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
25 enable_ssl="yes")
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
26
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
27 AC_SUBST(PACKAGE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
28 AC_SUBST(VERSION)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
29 AC_SUBST(PREFIX)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
30
869
af346af22fba 2007-1-10 Brian Masney <masneyb@gftp.org>
masneyb
parents: 856
diff changeset
31 AC_GNU_SOURCE
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
32 AC_CANONICAL_HOST
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
33 AC_PROG_CC
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
34 AC_AIX
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
35 AC_MINIX
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
36 AC_EXEEXT
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
37 AC_PROG_RANLIB
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
38 AC_SYS_LARGEFILE
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
39 dnl AC_ISC_POSIX
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
40 AM_C_PROTOTYPES
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
41 AC_C_CONST
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
42 AC_C_INLINE
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 325
diff changeset
43 AC_INTL_PRINTF
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
44
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
45 AM_MAINTAINER_MODE
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
46
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
47 AC_PROG_AWK
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
48 AC_PROG_INSTALL
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
49 AC_PROG_LN_S
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
50 AC_PROG_MAKE_SET
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
51
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
52 AC_HEADER_DIRENT
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
53 AC_HEADER_STDC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
54 AC_HEADER_SYS_WAIT
460
075f89b4395c 2004-4-14 Brian Masney <masneyb@gftp.org>
masneyb
parents: 459
diff changeset
55 AC_CHECK_HEADERS(fcntl.h libutil.h limits.h malloc.h pty.h strings.h sys/ioctl.h sys/time.h unistd.h stdint.h sys/mkdev.h inttypes.h)
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
56
684
b56dc758907d 2005-2-4 Brian Masney <masneyb@gftp.org>
masneyb
parents: 678
diff changeset
57 dnl AM_TYPE_PTRDIFF_T
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 201
diff changeset
58 AC_TYPE_SOCKLEN_T
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
59 AC_TYPE_MODE_T
478
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 460
diff changeset
60 AC_TYPE_INTPTR_T
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
61 AC_TYPE_PID_T
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
62 AC_TYPE_SIZE_T
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
63 AC_HEADER_TIME
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
64 AC_STRUCT_TM
435
89097f3a4906 2004-3-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 408
diff changeset
65 AC_CHECK_SIZEOF(off_t)
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
66
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
67 AC_FUNC_ALLOCA
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
68 AC_PROG_GCC_TRADITIONAL
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
69 AC_FUNC_MMAP
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
70 AC_TYPE_SIGNAL
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
71 AC_FUNC_STRFTIME
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
72 AC_FUNC_UTIME_NULL
213
06cdf06a0f31 2003-7-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 202
diff changeset
73 AC_CHECK_FUNCS(gai_strerror getaddrinfo getcwd gettimeofday getwd mkdir mktime putenv rmdir select socket strdup strstr strtod strtol uname grantpt openpty getdtablesize)
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
74
781
1f822f137e19 2006-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 780
diff changeset
75 # This is needed by fsplib. This check is from configure.ac in that distribution.
1f822f137e19 2006-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 780
diff changeset
76 AC_CHECK_TYPE(union semun, ,AC_DEFINE(_SEM_SEMUN_UNDEFINED,1,[Define if you do not have semun in sys/sem.h]),
1f822f137e19 2006-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 780
diff changeset
77 [#include <sys/types.h>
1f822f137e19 2006-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 780
diff changeset
78 #include <sys/ipc.h>
1f822f137e19 2006-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 780
diff changeset
79 #include <sys/sem.h>
1f822f137e19 2006-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 780
diff changeset
80 ])
1f822f137e19 2006-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 780
diff changeset
81
81
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
82 if test "x$enable_gtk20" = "xyes" ; then
57
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
83 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.0.0, found_glib20=1, found_glib20=0)
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
84 else
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
85 found_glib20=0;
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
86 fi
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
87
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
88 if test "x$GFTP_TEXT" = "x" -a $found_glib20 = 0 ; then
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
89 AM_PATH_GLIB(1.2.3, , AC_MSG_ERROR(gFTP needs GLIB 1.2.3 or higher))
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
90 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
91
93
97b3d5c022af 2003-1-21 Brian Masney <masneyb@gftp.org>
masneyb
parents: 87
diff changeset
92 EXTRA_LIBS=""
97b3d5c022af 2003-1-21 Brian Masney <masneyb@gftp.org>
masneyb
parents: 87
diff changeset
93
146
782f84694489 2003-4-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 143
diff changeset
94 # FreeBSD needs this
236
597d1f02b9c9 2003-7-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 230
diff changeset
95 AC_CHECK_LIB(util, openpty, [EXTRA_LIBS="-lutil"
597d1f02b9c9 2003-7-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 230
diff changeset
96 AC_DEFINE(HAVE_OPENPTY, [1], [Define if you have the openpty function.]) ])
146
782f84694489 2003-4-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 143
diff changeset
97
57
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
98 AC_CHECK_LIB(socket, socket, EXTRA_LIBS="-lsocket")
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
99
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
100 AC_CHECK_LIB(nsl, gethostbyname, EXTRA_LIBS="$EXTRA_LIBS -lnsl")
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
101
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
102 GFTP_TEXT=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
103 USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
104 READLINE_LIBS=""
81
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
105 if test "x$enable_textport" = "xyes" ; then
230
f330309d2f17 2003-7-23 Brian Masney <masneyb@gftp.org>
masneyb
parents: 215
diff changeset
106 GFTP_TEXT="gftp-text"
f330309d2f17 2003-7-23 Brian Masney <masneyb@gftp.org>
masneyb
parents: 215
diff changeset
107
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
108 AC_MSG_CHECKING([whether to use readline])
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
109 AC_ARG_WITH(readline,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
110 [ --with-readline turn on readline [default=yes, default tries -lncurses, -lcurses, -ltermcap]],
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
111 [case "${withval}" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
112 yes) USE_READLINE="yes" ; AC_MSG_RESULT([yes]) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
113 no) USE_READLINE="no" ; AC_MSG_RESULT([no]) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
114 only) USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
115 EXTRA_LIBREADLINE_DEPS=" "
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
116 AC_MSG_RESULT([yes (using only readline)]) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
117 *) USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
118 EXTRA_LIBREADLINE_DEPS="${withval}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
119 AC_MSG_RESULT([yes (using extra libraries ${withval})]) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
120 esac],[AC_MSG_RESULT([${USE_READLINE}])])
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
121
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
122 dnl Checks for libraries.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
123 dnl When checking readline, check using extra libraries first.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
124 dnl We want to protect against the link somehow succeeding, but only
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
125 dnl failing at runtime, as seems to happen on some BSD systems.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
126 if test "$USE_READLINE" = yes ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
127 if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130 HAVE_LIBREADLINE=false, -lncurses)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
131 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
132 echo " Using -lreadline -lncurses"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
133 EXTRA_LIBREADLINE_DEPS=-lncurses
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
134 AC_DEFINE(HAVE_LIBREADLINE, [1], [Define if the text port uses readline])
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
135 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
136 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
137 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
138 HAVE_LIBREADLINE=false, -lcurses)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
140 echo " Using -lreadline -lcurses"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
141 EXTRA_LIBREADLINE_DEPS=-lcurses
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
142 AC_DEFINE(HAVE_LIBREADLINE, [1], [Define if the text port uses readline])
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
143 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
144 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
145 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
146 HAVE_LIBREADLINE=false, -ltermcap)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
147 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
148 echo " Using -lreadline -ltermcap"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
149 EXTRA_LIBREADLINE_DEPS=-ltermcap
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
150 AC_DEFINE(HAVE_LIBREADLINE, [1], [Define if the text port uses readline])
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
151 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
152 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
153 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
154 HAVE_LIBREADLINE=false)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
155 if test x${HAVE_LIBREADLINE} = xtrue ; then
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
156 AC_DEFINE(HAVE_LIBREADLINE, [1], [Define if the text port uses readline])
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
157 else
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
158 AC_DEFINE(HAVE_LIBREADLINE, [0], [Define if the text port uses readline])
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
159 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
160 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
161 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
162 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
163 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
164 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
165 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
166 HAVE_LIBREADLINE=false, ${EXTRA_LIBREADLINE_DEPS})
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
167 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
168 echo " Using -lreadline ${EXTRA_LIBREADLINE_DEPS}"
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
169 AC_DEFINE(HAVE_LIBREADLINE, [1], [Define if the text port uses readline])
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
170 else
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
171 AC_DEFINE(HAVE_LIBREADLINE, [0], [Define if the text port uses readline])
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
172 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
173 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
174 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
175 HAVE_LIBREADLINE=false
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
176 AC_DEFINE(HAVE_LIBREADLINE, [0], [Define if the text port uses readline])
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
177 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
178 if test x${HAVE_LIBREADLINE} = xtrue; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
179 READLINE_LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
180 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
181 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
182
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
183 AC_CHECK_LIB(m, log10, EXTRA_LIBS="$EXTRA_LIBS -lm")
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
184
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents: 18
diff changeset
185 AM_WITH_DMALLOC
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
186
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
187 AC_SUBST(EXTRA_LIBS)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
188 AC_SUBST(READLINE_LIBS)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
189 AC_SUBST(GFTP_TEXT)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
190
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
191 GFTP_GTK=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
192 PTHREAD_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
193 PTHREAD_LIBS=""
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 28
diff changeset
194
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 28
diff changeset
195 # I don't have PKG_CHECK_MODULES or AM_PATH_GLIB check for gthread because
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 28
diff changeset
196 # the text port doesn't need to be compiled against the thread libraries
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 28
diff changeset
197 GTHREAD_LIBS=""
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 28
diff changeset
198
81
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
199 if test "x$enable_gtkport" = "xyes" ; then
b124f715e74b 2002-12-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 80
diff changeset
200 if test $found_glib20 = 1 -a "x$enable_gtk20" = "xyes" ; then
57
72f6ca02c83a 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 54
diff changeset
201 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.0.0, GFTP_GTK=gftp-gtk, AC_MSG_ERROR(You have GLIB 2.0 installed but I cannot find GTK+ 2.0. Run configure with --disable-gtk20 or install GTK+ 2.0))
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
203
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
204 if test "x$GFTP_GTK" = "x" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
205 AM_PATH_GTK(1.2.3, GFTP_GTK=gftp-gtk, AC_MSG_WARN(gFTP needs GTK+ 1.2.3 or higher for the graphical version. Only building the text version))
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 28
diff changeset
206 GTHREAD_LIBS="-lgthread"
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 28
diff changeset
207 else
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 28
diff changeset
208 GTHREAD_LIBS="-lgthread-2.0"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
209 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
210
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
211 if test "x$GFTP_GTK" = xgftp-gtk; then
480
18c6d173f5f2 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 478
diff changeset
212 case $host in
18c6d173f5f2 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 478
diff changeset
213 *-hpux*)
18c6d173f5f2 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 478
diff changeset
214 AC_CHECK_LIB(rt, sem_init)
649
eaede7f6c2f8 2004-12-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 623
diff changeset
215
eaede7f6c2f8 2004-12-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 623
diff changeset
216 # From H.Merijn Brand <h.m.brand@hccnet.nl>
eaede7f6c2f8 2004-12-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 623
diff changeset
217 echo '#define pthread_attr_init(x) __pthread_attr_init_system(x)' >>confdefs.h
eaede7f6c2f8 2004-12-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 623
diff changeset
218 echo '#define pthread_create(x) __pthread_create_system(x)' >>confdefs.h
480
18c6d173f5f2 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 478
diff changeset
219 ;;
18c6d173f5f2 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 478
diff changeset
220 esac
18c6d173f5f2 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 478
diff changeset
221
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
222 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIBS="-lpthread")
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
223
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
224 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
225 AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIBS="-lpthreads")
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
226 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
227
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
228 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
229 AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIBS="-lc_r")
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
230 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
231
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
232 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
233 echo ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
234 echo "Error: Cannot find the pthread libraries. If you don't have them installed," ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
235 echo "your X libraries probably aren't thread safe either. You can download the" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
236 echo "pthread library and the thread safe X libraries from my webpage at" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
237 echo "http://www.gftp.org/. Note the pthread library and the thread safe" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
238 echo "X libraries on my webpage are for Linux libc5 machines ONLY" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
239 echo ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
240 exit
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
241 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
242
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
243 PTHREAD_CFLAGS="-D_REENTRANT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
244
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
245 # I took some of these from the glib 1.3.3 configure.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
246 case $host in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
247 *-aix*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
248 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
249 if test x"$GCC" = xyes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
250 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -mthreads"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
251 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
252 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
253 *-freebsd*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
254 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
255
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
256 # FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
257 # -mthreads flag.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
258 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
259 *-openbsd*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
260 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
261 if test "x$PTHREAD_LIBS" = "x-lc_r"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
262 PTHREAD_LIBS="-pthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
263 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
264 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
265 *-sysv5uw7*) # UnixWare 7
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
266 if test "$GCC" != "yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
267 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -Kthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
268 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
269 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -pthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
270 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
271 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
272 *-dg-dgux*) # DG/UX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
273 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_POSIX4A_DRAFT10_SOURCE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
274 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
275 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
276 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
277 AC_SUBST(PTHREAD_CFLAGS)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
278 AC_SUBST(PTHREAD_LIBS)
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 28
diff changeset
279 AC_SUBST(GTHREAD_LIBS)
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
280 AC_SUBST(GFTP_GTK)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
281
215
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
282 SSL_LIBS=""
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
283 if test "x$enable_ssl" = "xyes" ; then
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
284 AC_CHECK_HEADERS(openssl/ssl.h ssl.h)
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
285
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
286 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
287 AC_CHECK_LIB(ssl, SSL_library_init, SSL_LIBS="-lcrypto -lssl")
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
288
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
289 if test "x$SSL_LIBS" != "x" ; then
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
290 AC_DEFINE(USE_SSL, 1,
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
291 [define if you want to enable SSL support])
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
292 fi
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
293 fi
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
294 fi
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
295 AC_SUBST(SSL_LIBS)
3d6e024dbf31 2003-7-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 213
diff changeset
296
166
a4bf947e9e22 2003-5-27 Brian Masney <masneyb@gftp.org>
masneyb
parents: 158
diff changeset
297 AM_GNU_GETTEXT
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
298
307
76c912483d1d 2003-11-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 283
diff changeset
299 AC_CHECK_PROG(DB2HTML, db2html, true, false)
76c912483d1d 2003-11-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 283
diff changeset
300 AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML)
76c912483d1d 2003-11-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 283
diff changeset
301
900
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
302 AC_CONFIG_FILES(po/Makefile.in
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
303 intl/Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
304 Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
305 docs/Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
306 docs/sample.gftp/Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
307 lib/Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
308 lib/fsplib/Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
309 src/gftp
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
310 src/Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
311 src/uicommon/Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
312 src/gtk/Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
313 src/text/Makefile
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
314 gftp.spec
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
315 )
1e44c7b7f41b 2007-3-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 896
diff changeset
316 AC_OUTPUT