diff acinclude.m4 @ 478:97fd5eb34be0

2004-6-6 Brian Masney <masneyb@gftp.org> * acinclude.m4 configure.in - added AC_TYPE_INTPTR_T that will define intptr_t if it does not exist on the system * lib/gftp.h lib/protocols.c lib/rfc959.c src/uicommon/gftpuicallbacks.c - added specify site argument to rfc959_site(). If this is set, then SITE will be prepended to the command
author masneyb
date Sun, 06 Jun 2004 15:12:35 +0000
parents 532eb171d5c2
children f19c1c31a906
line wrap: on
line diff
--- a/acinclude.m4	Thu Jun 03 00:49:34 2004 +0000
+++ b/acinclude.m4	Sun Jun 06 15:12:35 2004 +0000
@@ -154,3 +154,16 @@
     [AC_MSG_RESULT(no)])
   ])
 
+# serial 1
+
+dnl Brian Masney <masneyb@gftp.org>
+
+AC_DEFUN(AC_TYPE_INTPTR_T,
+  [AC_MSG_CHECKING([for intptr_t in stdint.h])
+   AC_TRY_COMPILE([#include <stdint.h>],
+   [intptr_t i = 0;],
+     [AC_MSG_RESULT(yes)],
+     [AC_DEFINE(intptr_t,long,Need to define intptr_t as a long because it should be in stdint.h)
+      AC_MSG_RESULT(no)])
+  ])
+