Revision: 16912
Author: eblanton
Date: 2006-08-20 11:07:34 -0700 (Sun, 20 Aug 2006)
ViewCVS: http://svn.sourceforge.net/gaim/?rev=16912&view=rev
Log Message:
-----------
libgnt doesn't use sockets, so yoink the configure stuff to prevent linking it
Modified Paths:
--------------
trunk/console/libgnt/configure.ac
Modified: trunk/console/libgnt/configure.ac
===================================================================
--- trunk/console/libgnt/configure.ac 2006-08-20 18:05:40 UTC (rev 16911)
+++ trunk/console/libgnt/configure.ac 2006-08-20 18:07:34 UTC (rev 16912)
@@ -37,43 +37,6 @@
AC_FUNC_STRFTIME
AC_CHECK_FUNCS(strdup strstr atexit setlocale)
-dnl Check for inet_aton
-AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, ,
- [AC_ERROR(inet_aton not found)])])
-AC_CHECK_LIB(resolv, __res_query)
-AC_CHECK_LIB(nsl, gethostent)
-AC_CHECK_FUNC(socket, ,
- [AC_CHECK_LIB(socket, socket, , [AC_ERROR([socket not found])])])
-dnl If all goes well, by this point the previous two checks will have
-dnl pulled in -lsocket and -lnsl if we need them.
-AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE([HAVE_GETADDRINFO], [1],
- [Define to 1 if you have the getaddrinfo function.])],
- [AC_CHECK_LIB(socket, getaddrinfo,
- [AC_DEFINE([HAVE_GETADDRINFO]) LIBS="-lsocket -lsnl $LIBS"], , , -lnsl)])
-
-dnl Check for socklen_t (in Unix98)
-AC_MSG_CHECKING(for socklen_t)
-AC_TRY_COMPILE([
- #include <sys/types.h>
- #include <sys/socket.h>
- socklen_t x;
-], [],
-[
- AC_MSG_RESULT(yes)
-], [
- AC_TRY_COMPILE([
- #include <sys/types.h>
- #include <sys/socket.h>
- int accept(int, struct sockaddr *, size_t *);
- ], [], [
- AC_MSG_RESULT(size_t)
- AC_DEFINE(socklen_t, size_t, [socklen_t size])
- ], [
- AC_MSG_RESULT(int)
- AC_DEFINE(socklen_t, int, [socklen_t size])
- ])
-])
-
dnl to prevent the g_stat()/g_unlink() crash,
dnl (09:50:07) Robot101: LSchiere2: it's easy. +LC_SYS_LARGEFILE somewhere in configure.ac
AC_SYS_LARGEFILE
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|