Mercurial > noffle
annotate configure.in @ 263:0e56fd09921e noffle
[svn] * docs/NOTES: Update note on Slypheed.
author | bears |
---|---|
date | Thu, 04 Jul 2002 21:51:03 +0100 |
parents | ebd9c98bbc7f |
children | 1cafe0f3f0ec |
rev | line source |
---|---|
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
1 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
2 dnl Process this file with autoconf to produce a configure script. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
3 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
4 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
5 AC_INIT(src/noffle.c) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
6 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
7 AC_PREREQ(2.13) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
8 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
9 PACKAGE=noffle |
246
6f3a55d18659
[svn] * aclocal.m4,configure.in,configure: Bump version to 1.1.2 & re-run
bears
parents:
225
diff
changeset
|
10 VERSION=1.1.2 |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
11 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
12 AM_CONFIG_HEADER(config.h) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
13 AM_INIT_AUTOMAKE($PACKAGE,$VERSION) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
14 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
15 dnl AM_MAINTAINER_MODE |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
16 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
17 AC_DEFINE(_GNU_SOURCE) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
18 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
19 AC_LANG_C |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
20 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
21 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
22 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
23 dnl Checks for programs. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
24 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
25 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
26 AC_PROG_CC |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
27 AC_PROG_GCC_TRADITIONAL |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
28 AC_PROG_INSTALL |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
29 AC_PROG_MAKE_SET |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
30 |
146
fd821441f016
[svn] Applied patch by Paul Slootman: using the mail program is
enz
parents:
133
diff
changeset
|
31 AC_PATH_PROG(SENDMAILPROG, sendmail, 'notfound', |
fd821441f016
[svn] Applied patch by Paul Slootman: using the mail program is
enz
parents:
133
diff
changeset
|
32 /usr/sbin:/usr/lib:$PATH) |
fd821441f016
[svn] Applied patch by Paul Slootman: using the mail program is
enz
parents:
133
diff
changeset
|
33 if test "x$SENDMAILPROG" = "xnotfound"; then |
fd821441f016
[svn] Applied patch by Paul Slootman: using the mail program is
enz
parents:
133
diff
changeset
|
34 AC_MSG_ERROR(sendmail program not found in /usr/lib:/usr/sbin:$PATH .) |
45
32ba1198c6fa
[svn] * Makefile.in, configure, configure.in, docs/Makefile.in, src/Makefile.in:
uh1763
parents:
43
diff
changeset
|
35 fi |
32ba1198c6fa
[svn] * Makefile.in, configure, configure.in, docs/Makefile.in, src/Makefile.in:
uh1763
parents:
43
diff
changeset
|
36 |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
37 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
38 dnl System checks. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
39 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
40 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
41 AC_AIX |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
42 AC_ISC_POSIX |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
43 AC_MINIX |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
44 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
45 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
46 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
47 dnl Checks for libraries. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
48 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
49 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
50 # Whenever both -lsocket and -lnsl are needed, it seems to be always the |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
51 # case that gethostbyname requires -lnsl. So, check -lnsl first, for it |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
52 # to be in LIBS before the setsockopt checks are performed. *However*, |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
53 # on SINIX-N 5.43, this is false, and gethostent seems to be a better |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
54 # candidate. So, let's use it below instead of gethostbyname, and see. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
55 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
56 # [ This is ripped from GNU tar. ] |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
57 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
58 AC_CHECK_FUNC(gethostent) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
59 if test $ac_cv_func_gethostent = no; then |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
60 AC_CHECK_LIB(nsl, gethostent) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
61 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
62 AC_CHECK_FUNC(setsockopt) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
63 if test $ac_cv_func_setsockopt = no; then |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
64 AC_CHECK_LIB(socket, setsockopt) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
65 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
66 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
67 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
68 AC_CHECK_LIB(gdbm, gdbm_open) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
69 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
70 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
71 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
72 dnl Checks for header files. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
73 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
74 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
75 AC_HEADER_STDC |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
76 AC_HEADER_DIRENT |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
77 AC_CHECK_HEADERS(gdbm.h syslog.h sys/resource.h sys/utsname.h) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
78 AC_CHECK_HEADERS(fnmatch.h errno.h getopt.h time.h sys/time.h signal.h) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
79 AC_CHECK_HEADERS(netdb.h sys/socket.h fcntl.h limits.h unistd.h) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
80 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
81 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
82 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
83 dnl Checks for typedefs, structures, and compiler characteristics. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
84 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
85 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
86 AC_C_CONST |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
87 AC_TYPE_SIZE_T |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
88 AC_HEADER_TIME |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
89 AC_STRUCT_TM |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
90 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
91 AC_CACHE_CHECK(socklen_t, noffle_cv_type_socklen_t, |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
92 AC_TRY_COMPILE([ |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
93 #include <sys/types.h> |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
94 #include <sys/socket.h> |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
95 ], [ socklen_t s; ], |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
96 noffle_cv_type_socklen_t=yes, noffle_cv_type_socklen_t=no) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
97 ) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
98 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
99 if test "x$noffle_cv_type_socklen_t" = "xno" |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
100 then |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
101 AC_DEFINE_UNQUOTED(socklen_t, unsigned int) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
102 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
103 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
104 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
105 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
106 dnl Checks for library functions. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
107 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
108 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
109 AC_TYPE_SIGNAL |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
110 AC_FUNC_STRFTIME |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
111 AC_FUNC_FNMATCH |
258
ebd9c98bbc7f
[svn] * config.h.in,configure,configure.in: Check for timegm().
bears
parents:
254
diff
changeset
|
112 AC_CHECK_FUNCS(fdopen mkdir select socket) |
ebd9c98bbc7f
[svn] * config.h.in,configure,configure.in: Check for timegm().
bears
parents:
254
diff
changeset
|
113 AC_CHECK_FUNCS(gethostname uname) |
ebd9c98bbc7f
[svn] * config.h.in,configure,configure.in: Check for timegm().
bears
parents:
254
diff
changeset
|
114 AC_CHECK_FUNCS(snprintf vsnprintf __vsnprintf __snprintf) |
ebd9c98bbc7f
[svn] * config.h.in,configure,configure.in: Check for timegm().
bears
parents:
254
diff
changeset
|
115 AC_CHECK_FUNCS(strerror strstr) |
ebd9c98bbc7f
[svn] * config.h.in,configure,configure.in: Check for timegm().
bears
parents:
254
diff
changeset
|
116 AC_CHECK_FUNCS(mktime timegm) |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
117 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
118 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
119 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
120 dnl Checks for system services. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
121 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
122 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
123 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
124 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
125 dnl Handle user-specified configure options |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
126 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
127 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
128 AC_ARG_ENABLE(debug, [ |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
129 NOFFLE options: |
185
fed1334d766b
[svn] * src/client.c: Change variable only used on constant to 'const'.
bears
parents:
177
diff
changeset
|
130 --enable-debug=[no/yes] build with debugging [default=no]], , |
fed1334d766b
[svn] * src/client.c: Change variable only used on constant to 'const'.
bears
parents:
177
diff
changeset
|
131 enable_debug=no) |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
132 |
101
ce8191c38f44
[svn] * configure, configure.in: Changed the --enable-debug option of configure.
uh1763
parents:
56
diff
changeset
|
133 if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes"; then |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
134 CFLAGS="$CFLAGS \ |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
135 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ |
108 | 136 -Wcast-align -Wwrite-strings \ |
137 -Wstrict-prototypes -Wmissing-prototypes \ | |
101
ce8191c38f44
[svn] * configure, configure.in: Changed the --enable-debug option of configure.
uh1763
parents:
56
diff
changeset
|
138 -Wmissing-declarations -Wnested-externs -Winline \ |
254
4c0f54d51591
[svn] * configure,configure.in: Add -DDEBUG to build lines when configured
bears
parents:
246
diff
changeset
|
139 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" |
185
fed1334d766b
[svn] * src/client.c: Change variable only used on constant to 'const'.
bears
parents:
177
diff
changeset
|
140 else |
254
4c0f54d51591
[svn] * configure,configure.in: Add -DDEBUG to build lines when configured
bears
parents:
246
diff
changeset
|
141 CFLAGS="$CFLAGS -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
142 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
143 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
144 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
145 # [ This is adapted from mutt. ] |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
146 AC_ARG_WITH(docdir, |
246
6f3a55d18659
[svn] * aclocal.m4,configure.in,configure: Bump version to 1.1.2 & re-run
bears
parents:
225
diff
changeset
|
147 [ --with-docdir=DIR other documentation [PREFIX/share/doc/noffle]], |
198
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
148 [noffle_cv_docdir=$withval], |
217
b4f1731a6470
[svn] * Makefile.in,aclocal.m4,config.h.in,configure,configure.in
bears
parents:
198
diff
changeset
|
149 [ AC_CACHE_CHECK(other documentation directory, noffle_cv_docdir, |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
150 [if test x$prefix = xNONE; then |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
151 noffle_cv_prefix=$ac_default_prefix |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
152 else |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
153 noffle_cv_prefix=$prefix |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
154 fi |
246
6f3a55d18659
[svn] * aclocal.m4,configure.in,configure: Bump version to 1.1.2 & re-run
bears
parents:
225
diff
changeset
|
155 noffle_cv_docdir=$noffle_cv_prefix/share/doc/noffle |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
156 ]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
157 ]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
158 |
198
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
159 dnl check where to put the spooldir - taken from leafnode 2.0beta. |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
160 AC_MSG_CHECKING(spooldir) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
161 AC_ARG_WITH(spooldir, |
217
b4f1731a6470
[svn] * Makefile.in,aclocal.m4,config.h.in,configure,configure.in
bears
parents:
198
diff
changeset
|
162 [ --with-spooldir=DIR news spool directory [/var/spool/noffle]], |
198
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
163 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
164 AC_MSG_ERROR(you must give an absolute path) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
165 fi |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
166 withval=`echo "$withval" | sed 'sx/*$xx;'` |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
167 , |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
168 withval="/var/spool/$PACKAGE" |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
169 ) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
170 SPOOLDIR=$withval |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
171 AC_MSG_RESULT($SPOOLDIR) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
172 AC_DEFINE_UNQUOTED(SPOOLDIR, "$SPOOLDIR") |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
173 AC_SUBST(SPOOLDIR) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
174 |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
175 dnl check where to put the config file |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
176 AC_MSG_CHECKING(configfile) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
177 AC_ARG_WITH(configfile, |
217
b4f1731a6470
[svn] * Makefile.in,aclocal.m4,config.h.in,configure,configure.in
bears
parents:
198
diff
changeset
|
178 [ --with-configfile=FILE configuration file [/etc/noffle.conf]], |
198
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
179 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
180 AC_MSG_ERROR(you must give an absolute path) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
181 fi |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
182 withval=`echo "$withval" | sed 'sx/*$xx;'` |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
183 , |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
184 withval="/etc/$PACKAGE.conf" |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
185 ) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
186 CONFIGFILE=$withval |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
187 AC_MSG_RESULT($CONFIGFILE) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
188 AC_DEFINE_UNQUOTED(CONFIGFILE,"$CONFIGFILE") |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
189 AC_SUBST(CONFIGFILE) |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
190 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
191 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
192 dnl Unquoted defines and substituted variables. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
193 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
194 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
195 dnl NOFFLE_EXPAND_DIR(VARNAME, DIR) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
196 dnl expands occurrences of ${prefix} and ${exec_prefix} in the given DIR, |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
197 dnl and assigns the resulting string to VARNAME |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
198 dnl example: NOFFLE_EXPAND_DIR(LOCALEDIR, "$datadir/locale") |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
199 dnl eg, then: AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR") |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
200 dnl by Alexandre Oliva |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
201 dnl from http://www.cygnus.com/ml/automake/1998-Aug/0040.html |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
202 AC_DEFUN(NOFFLE_EXPAND_DIR, [ |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
203 $1=$2 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
204 $1=`( |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
205 test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
206 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
207 eval echo \""[$]$1"\" |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
208 )` |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
209 ]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
210 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
211 DOCDIR=$noffle_cv_docdir |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
212 AC_SUBST(DOCDIR) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
213 |
146
fd821441f016
[svn] Applied patch by Paul Slootman: using the mail program is
enz
parents:
133
diff
changeset
|
214 AC_DEFINE_UNQUOTED(SENDMAILPROG, "$SENDMAILPROG") |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
215 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
216 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
217 dnl Output files. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
218 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
219 |
225
9fb4b7d7e64b
[svn] * docs/Makefile.in: Add testing.txt to documents.
bears
parents:
217
diff
changeset
|
220 AC_OUTPUT(Makefile src/Makefile docs/Makefile packages/Makefile packages/redhat/Makefile) |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
221 |