summaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-07-02 15:45:01 +0200
committerSimon Josefsson <simon@josefsson.org>2007-07-02 15:45:01 +0200
commitc01e3fac8c4d68713ae90340b399cff67470998c (patch)
treea8233652691ac4999a2194a70581acdb49e96e7a /gl
parente7fd4fff70d82728237e1c32899b46445e694496 (diff)
downloadgnutls-c01e3fac8c4d68713ae90340b399cff67470998c.tar.gz
Update gnulib files. Fix GPL renaming.
Diffstat (limited to 'gl')
-rw-r--r--gl/gnulib.mk2
-rw-r--r--gl/m4/getaddrinfo.m423
-rw-r--r--gl/m4/gnulib-cache.m44
-rw-r--r--gl/m4/gnulib-comp.m44
-rw-r--r--gl/override/doc/gpl-2.0.texi.diff (renamed from gl/override/doc/gpl.texi.diff)0
-rw-r--r--gl/override/doc/lgpl-2.1.texi.diff (renamed from gl/override/doc/lgpl.texi.diff)0
6 files changed, 23 insertions, 10 deletions
diff --git a/gl/gnulib.mk b/gl/gnulib.mk
index 86d1f3e8ea..24cf284537 100644
--- a/gl/gnulib.mk
+++ b/gl/gnulib.mk
@@ -9,7 +9,7 @@
# the same distribution terms as the rest of that program.
#
# Generated by gnulib-tool.
-# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --aux-dir=build-aux --avoid=snprintf --avoid=vasnprintf --makefile-name=gnulib.mk --libtool --macro-prefix=gl arpa_inet error fdl gendocs getaddrinfo getline gpl inet_ntop inet_pton lgpl maintainer-makefile progname readline version-etc-fsf
+# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --aux-dir=build-aux --avoid=snprintf --avoid=vasnprintf --makefile-name=gnulib.mk --libtool --macro-prefix=gl arpa_inet error fdl gendocs getaddrinfo getline gpl-2.0 inet_ntop inet_pton lgpl-2.1 maintainer-makefile progname readline version-etc-fsf
MOSTLYCLEANFILES += core *.stackdump
diff --git a/gl/m4/getaddrinfo.m4 b/gl/m4/getaddrinfo.m4
index 1fda1364b8..4a1e09f775 100644
--- a/gl/m4/getaddrinfo.m4
+++ b/gl/m4/getaddrinfo.m4
@@ -6,6 +6,7 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_GETADDRINFO],
[
+ AC_REQUIRE([gl_HEADER_SYS_SOCKET])dnl for HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H
AC_MSG_NOTICE([checking how to do getaddrinfo, freeaddrinfo and getnameinfo])
AC_SEARCH_LIBS(getaddrinfo, [nsl socket])
@@ -31,21 +32,33 @@ AC_DEFUN([gl_GETADDRINFO],
# We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
# inline function declared in ws2tcpip.h, so we need to get that
# header included somehow.
- AC_MSG_CHECKING([for gai_strerror (possibly via ws2tcpip.h)])
- AC_TRY_LINK([
+ AC_CHECK_HEADERS_ONCE(netdb.h)
+ AC_CACHE_CHECK([for gai_strerror (possibly via ws2tcpip.h)],
+ gl_cv_func_gai_strerror, [
+ AC_TRY_LINK([
+#include <sys/types.h>
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
], [gai_strerror (0);],
- AC_MSG_RESULT([yes]),
- [AC_MSG_RESULT([no])
- AC_LIBOBJ(gai_strerror)])
+ [gl_cv_func_gai_strerror=yes],
+ [gl_cv_func_gai_strerror=no])])
+ if test $gl_cv_func_gai_strerror = no; then
+ AC_LIBOBJ(gai_strerror)
+ fi
gl_PREREQ_GETADDRINFO
])
# Prerequisites of lib/getaddrinfo.h and lib/getaddrinfo.c.
AC_DEFUN([gl_PREREQ_GETADDRINFO], [
+ AC_REQUIRE([gl_HEADER_SYS_SOCKET])dnl for HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H
AC_SEARCH_LIBS(gethostbyname, [inet nsl])
AC_SEARCH_LIBS(getservbyname, [inet nsl socket xnet])
AC_CHECK_FUNCS(gethostbyname,, [
diff --git a/gl/m4/gnulib-cache.m4 b/gl/m4/gnulib-cache.m4
index dcc19a3c75..928df4471e 100644
--- a/gl/m4/gnulib-cache.m4
+++ b/gl/m4/gnulib-cache.m4
@@ -15,11 +15,11 @@
# Specification in the form of a command-line invocation:
-# gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --aux-dir=build-aux --avoid=snprintf --avoid=vasnprintf --makefile-name=gnulib.mk --libtool --macro-prefix=gl arpa_inet error fdl gendocs getaddrinfo getline gpl inet_ntop inet_pton lgpl maintainer-makefile progname readline version-etc-fsf
+# gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --aux-dir=build-aux --avoid=snprintf --avoid=vasnprintf --makefile-name=gnulib.mk --libtool --macro-prefix=gl arpa_inet error fdl gendocs getaddrinfo getline gpl-2.0 inet_ntop inet_pton lgpl-2.1 maintainer-makefile progname readline version-etc-fsf
# Specification in the form of a few gnulib-tool.m4 macro invocations:
gl_LOCAL_DIR([gl/override])
-gl_MODULES([arpa_inet error fdl gendocs getaddrinfo getline gpl inet_ntop inet_pton lgpl maintainer-makefile progname readline version-etc-fsf])
+gl_MODULES([arpa_inet error fdl gendocs getaddrinfo getline gpl-2.0 inet_ntop inet_pton lgpl-2.1 maintainer-makefile progname readline version-etc-fsf])
gl_AVOID([snprintf vasnprintf])
gl_SOURCE_BASE([gl])
gl_M4_BASE([gl/m4])
diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4
index a4afc9afbd..e5689086b5 100644
--- a/gl/m4/gnulib-comp.m4
+++ b/gl/m4/gnulib-comp.m4
@@ -109,8 +109,8 @@ AC_DEFUN([gl_FILE_LIST], [
build-aux/maint.mk
doc/fdl.texi
doc/gendocs_template
- doc/gpl.texi
- doc/lgpl.texi
+ doc/gpl-2.0.texi
+ doc/lgpl-2.1.texi
lib/error.c
lib/error.h
lib/gai_strerror.c
diff --git a/gl/override/doc/gpl.texi.diff b/gl/override/doc/gpl-2.0.texi.diff
index 5e52212631..5e52212631 100644
--- a/gl/override/doc/gpl.texi.diff
+++ b/gl/override/doc/gpl-2.0.texi.diff
diff --git a/gl/override/doc/lgpl.texi.diff b/gl/override/doc/lgpl-2.1.texi.diff
index cba9ee7eaf..cba9ee7eaf 100644
--- a/gl/override/doc/lgpl.texi.diff
+++ b/gl/override/doc/lgpl-2.1.texi.diff