annotate acinclude.m4 @ 520:e67a52327b24

2004-7-27 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/local.c lib/protocols.c lib/sshv2.c - changed declaration of gftp_stat_filename() so that the mode of the filename is returned as a parameter instead of the function return value. The mode_t type is unsigned and the error codes could not be reported properly
author masneyb
date Wed, 28 Jul 2004 02:19:00 +0000
parents eb6dafc07f42
children bccfdbfaac00
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
1 # serial 1
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
2
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
3 dnl This function is derived from
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
4 dnl http://savannah.gnu.org/cgi-bin/viewcvs/gcc/gcc/libjava/configure.in?rev=1.142.2.7&content-type=text/vnd.viewcvs-markup
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
5
503
eb6dafc07f42 2004-7-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 502
diff changeset
6 AC_DEFUN([AC_TYPE_SOCKLEN_T],
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
7 [AC_MSG_CHECKING([for socklen_t in sys/socket.h])
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
8 AC_TRY_COMPILE([#define _POSIX_PII_SOCKET
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
9 #include <sys/types.h>
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
10 #include <sys/socket.h>], [socklen_t x = 5;],
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
11 [AC_MSG_RESULT(yes)],
207
cf4098008615 2003-7-1 Brian Masney <masneyb@gftp.org>
masneyb
parents: 202
diff changeset
12 [AC_DEFINE(socklen_t,int,Need to define socklen_t as an int because it should be in sys/socket.h)
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
13 AC_MSG_RESULT(no)])
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
14 ])
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
15
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
16 # serial 1
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
17
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
18 dnl This macro checks to see if the printf family of functions supports the
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
19 dnl %'ld format.
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
20
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
21 dnl Brian Masney <masneyb@gftp.org>
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
22
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
23 dnl
503
eb6dafc07f42 2004-7-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 502
diff changeset
24 AC_DEFUN([AC_INTL_PRINTF],
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
25 [AC_MSG_CHECKING([whether the printf family of functions supports %'ld])
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
26 AC_TRY_RUN([#include <stdio.h>
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
27 #include <string.h>
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
28
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
29 int main(void) {
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
30 char buf[20];
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
31 sprintf (buf, "%'ld", (long) 1);
330
532eb171d5c2 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 328
diff changeset
32 if (strchr (buf, '1') == NULL)
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
33 return (1);
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
34 return (0);
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
35 }],
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
36 [AC_DEFINE(HAVE_INTL_PRINTF,1,Define if printf supports %'ld)
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
37 AC_MSG_RESULT(yes)],
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
38 [AC_MSG_RESULT(no)])
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
39 ])
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
40
478
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
41 # serial 1
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
42
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
43 dnl Brian Masney <masneyb@gftp.org>
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
44
503
eb6dafc07f42 2004-7-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 502
diff changeset
45 AC_DEFUN([AC_TYPE_INTPTR_T],
478
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
46 [AC_MSG_CHECKING([for intptr_t in stdint.h])
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
47 AC_TRY_COMPILE([#include <stdint.h>],
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
48 [intptr_t i = 0;],
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
49 [AC_MSG_RESULT(yes)],
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
50 [AC_DEFINE(intptr_t,long,Need to define intptr_t as a long because it should be in stdint.h)
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
51 AC_MSG_RESULT(no)])
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
52 ])
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
53