Tomasz Kojm schrieb:
On Tue, 15 Feb 2005 16:13:48 +0300
-=MikeP=- <[EMAIL PROTECTED]> wrote:
 1) is it possible to remove libtool from acinclude.m4 in future
 versions so that there is possibility to build environment with
 system's libtool.

No, it isn't.

That's stupid.
System provided autoconf macros should be in aclocal.m4, so that can be automatically updated. The comand is called aclocal. (info aclocal)


Only very esoteric and app-specific m4 macros should go to acinclude.m4. libtool.m4 should certainly be in aclocal.m4
I have to do the same and more libtool fixes for every cygwin build.
Most of acinclude.m4 should just die, since there exist official versions, which ARE updated upstream for each and every platform.


BTW: AC_RESOLVE_HEADER was recently officially added to autoconf, but clamav still uses the buggy resolv.h detection, which fails on Solaris 9 and cygwin.
Similar issues for the strange TARGET_H rules, for which better checks exist. (config.guess)


# AC_HEADER_RESOLV
# ----------------
# According to http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?resolver+3,
# sys/types.h, netinet/in.h and arpa/nameser.h are required on IRIX.
# netinet/in.h is needed on Cygwin, too.
# With Solaris 9, netdb.h is required, to get symbols like HOST_NOT_FOUND.
#
AN_HEADER(resolv.h,     [AC_HEADER_RESOLV])
AC_DEFUN([AC_HEADER_RESOLV],
[AC_CHECK_HEADERS(sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h,
                  [], [],
[[#if HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif]])
])# AC_HEADER_RESOLV

Anyway, clamav was now updated for cygwin some minutes ago.
(with some horrible autotool patches)
--
Reini Urban

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel

Reply via email to