Mercurial > noffle
annotate configure.in @ 225:9fb4b7d7e64b noffle
[svn] * docs/Makefile.in: Add testing.txt to documents.
* NEWS: Updates for 1.1.1 release.
* configure.in: Change version to 1.1.1. Additional decoration to the
version is slowing down my release and RPM building. All Makefile.in
have been regenerated as has configure.
* packages/redhat/noffle.spec: Change version to 1.1.1.
* packages/.cvsignore,packages/Makefile.am,packages/redhat/.cvsignore,
packages/redhat/Makefile.am: Add sufficient makefiles for noffle.spec
and noffle-expire to the included in the tarball generated by 'make dist'.
author | bears |
---|---|
date | Sun, 09 Dec 2001 15:07:14 +0000 |
parents | b4f1731a6470 |
children | 6f3a55d18659 |
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 |
225
9fb4b7d7e64b
[svn] * docs/Makefile.in: Add testing.txt to documents.
bears
parents:
217
diff
changeset
|
10 VERSION=1.1.1 |
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 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
112 AC_CHECK_FUNCS(fdopen vsnprintf snprintf __vsnprintf __snprintf) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
113 AC_CHECK_FUNCS(gethostname mkdir mktime select socket strerror strstr uname) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
114 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
115 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
116 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
117 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
|
118 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
119 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
120 |
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 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
|
123 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
124 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
125 AC_ARG_ENABLE(debug, [ |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
126 NOFFLE options: |
185
fed1334d766b
[svn] * src/client.c: Change variable only used on constant to 'const'.
bears
parents:
177
diff
changeset
|
127 --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
|
128 enable_debug=no) |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
129 |
101
ce8191c38f44
[svn] * configure, configure.in: Changed the --enable-debug option of configure.
uh1763
parents:
56
diff
changeset
|
130 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
|
131 CFLAGS="$CFLAGS \ |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
132 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ |
108 | 133 -Wcast-align -Wwrite-strings \ |
134 -Wstrict-prototypes -Wmissing-prototypes \ | |
101
ce8191c38f44
[svn] * configure, configure.in: Changed the --enable-debug option of configure.
uh1763
parents:
56
diff
changeset
|
135 -Wmissing-declarations -Wnested-externs -Winline \ |
185
fed1334d766b
[svn] * src/client.c: Change variable only used on constant to 'const'.
bears
parents:
177
diff
changeset
|
136 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX" |
fed1334d766b
[svn] * src/client.c: Change variable only used on constant to 'const'.
bears
parents:
177
diff
changeset
|
137 else |
fed1334d766b
[svn] * src/client.c: Change variable only used on constant to 'const'.
bears
parents:
177
diff
changeset
|
138 CFLAGS="$CFLAGS -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX" |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
139 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
140 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
141 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
142 # [ 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
|
143 AC_ARG_WITH(docdir, |
217
b4f1731a6470
[svn] * Makefile.in,aclocal.m4,config.h.in,configure,configure.in
bears
parents:
198
diff
changeset
|
144 [ --with-docdir=DIR other documentation [PREFIX/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
|
145 [noffle_cv_docdir=$withval], |
217
b4f1731a6470
[svn] * Makefile.in,aclocal.m4,config.h.in,configure,configure.in
bears
parents:
198
diff
changeset
|
146 [ 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
|
147 [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
|
148 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
|
149 else |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
150 noffle_cv_prefix=$prefix |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
151 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
152 noffle_cv_docdir=$noffle_cv_prefix/doc/noffle |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
153 ]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
154 ]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
155 |
198
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
156 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
|
157 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
|
158 AC_ARG_WITH(spooldir, |
217
b4f1731a6470
[svn] * Makefile.in,aclocal.m4,config.h.in,configure,configure.in
bears
parents:
198
diff
changeset
|
159 [ --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
|
160 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
|
161 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
|
162 fi |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
163 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
|
164 , |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
165 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
|
166 ) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
167 SPOOLDIR=$withval |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
168 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
|
169 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
|
170 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
|
171 |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
172 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
|
173 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
|
174 AC_ARG_WITH(configfile, |
217
b4f1731a6470
[svn] * Makefile.in,aclocal.m4,config.h.in,configure,configure.in
bears
parents:
198
diff
changeset
|
175 [ --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
|
176 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
|
177 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
|
178 fi |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
179 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
|
180 , |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
181 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
|
182 ) |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
183 CONFIGFILE=$withval |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
185
diff
changeset
|
184 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
|
185 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
|
186 AC_SUBST(CONFIGFILE) |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
187 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
188 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
189 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
|
190 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
191 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
192 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
|
193 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
|
194 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
|
195 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
|
196 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
|
197 dnl by Alexandre Oliva |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
198 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
|
199 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
|
200 $1=$2 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
201 $1=`( |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
202 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
|
203 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
|
204 eval echo \""[$]$1"\" |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
205 )` |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
206 ]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
207 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
208 DOCDIR=$noffle_cv_docdir |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
209 AC_SUBST(DOCDIR) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
210 |
146
fd821441f016
[svn] Applied patch by Paul Slootman: using the mail program is
enz
parents:
133
diff
changeset
|
211 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
|
212 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
213 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
214 dnl Output files. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
215 dnl --------------------------------------------------------------------------- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
216 |
225
9fb4b7d7e64b
[svn] * docs/Makefile.in: Add testing.txt to documents.
bears
parents:
217
diff
changeset
|
217 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
|
218 |