mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
add getlogin from gnulib
* lib/Makefile.am: * lib/getlogin.c: * m4/getlogin.m4: * m4/gnulib-cache.m4: Add getlogin module.
This commit is contained in:
parent
6ab4de6125
commit
b7548cd2dc
5 changed files with 75 additions and 2 deletions
14
m4/getlogin.m4
Normal file
14
m4/getlogin.m4
Normal file
|
@ -0,0 +1,14 @@
|
|||
# getlogin.m4 serial 3
|
||||
dnl Copyright (C) 2010-2013 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
AC_DEFUN([gl_FUNC_GETLOGIN],
|
||||
[
|
||||
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
||||
AC_CHECK_FUNCS_ONCE([getlogin])
|
||||
if test $ac_cv_func_getlogin = no; then
|
||||
HAVE_GETLOGIN=0
|
||||
fi
|
||||
])
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
|
||||
# Specification in the form of a command-line invocation:
|
||||
# gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=3 --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files accept alignof alloca-opt announce-gen autobuild bind byteswap canonicalize-lgpl ceil clock-time close connect dirfd duplocale environ extensions flock floor fpieee frexp fstat full-read full-write func gendocs getaddrinfo getpeername getsockname getsockopt git-version-gen gitlog-to-changelog gnu-web-doc-update gnupload havelib iconv_open-utf inet_ntop inet_pton isinf isnan ldexp lib-symbol-versions lib-symbol-visibility libunistring listen localcharset locale log1p maintainer-makefile malloc-gnu malloca nl_langinfo nproc open pipe-posix pipe2 putenv recv recvfrom regex rename select send sendto setenv setsockopt shutdown socket stat-time stdlib strftime striconveh string sys_stat times trunc verify vsnprintf warnings wchar
|
||||
# gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=3 --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files accept alignof alloca-opt announce-gen autobuild bind byteswap canonicalize-lgpl ceil clock-time close connect dirfd duplocale environ extensions flock floor fpieee frexp fstat full-read full-write func gendocs getaddrinfo getlogin getpeername getsockname getsockopt git-version-gen gitlog-to-changelog gnu-web-doc-update gnupload havelib iconv_open-utf inet_ntop inet_pton isinf isnan ldexp lib-symbol-versions lib-symbol-visibility libunistring listen localcharset locale log1p maintainer-makefile malloc-gnu malloca nl_langinfo nproc open pipe-posix pipe2 putenv recv recvfrom regex rename select send sendto setenv setsockopt shutdown socket stat-time stdlib strftime striconveh string sys_stat times trunc verify vsnprintf warnings wchar
|
||||
|
||||
# Specification in the form of a few gnulib-tool.m4 macro invocations:
|
||||
gl_LOCAL_DIR([gnulib-local])
|
||||
|
@ -58,6 +58,7 @@ gl_MODULES([
|
|||
func
|
||||
gendocs
|
||||
getaddrinfo
|
||||
getlogin
|
||||
getpeername
|
||||
getsockname
|
||||
getsockopt
|
||||
|
|
|
@ -87,6 +87,7 @@ AC_DEFUN([gl_EARLY],
|
|||
# Code from module func:
|
||||
# Code from module gendocs:
|
||||
# Code from module getaddrinfo:
|
||||
# Code from module getlogin:
|
||||
# Code from module getpeername:
|
||||
# Code from module getsockname:
|
||||
# Code from module getsockopt:
|
||||
|
@ -353,6 +354,11 @@ AC_SUBST([LTALLOCA])
|
|||
AC_LIBOBJ([gai_strerror])
|
||||
fi
|
||||
gl_NETDB_MODULE_INDICATOR([getaddrinfo])
|
||||
gl_FUNC_GETLOGIN
|
||||
if test $HAVE_GETLOGIN = 0; then
|
||||
AC_LIBOBJ([getlogin])
|
||||
fi
|
||||
gl_UNISTD_MODULE_INDICATOR([getlogin])
|
||||
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
|
||||
if test "$ac_cv_header_winsock2_h" = yes; then
|
||||
AC_LIBOBJ([getpeername])
|
||||
|
@ -944,6 +950,7 @@ AC_DEFUN([gl_FILE_LIST], [
|
|||
lib/full-write.h
|
||||
lib/gai_strerror.c
|
||||
lib/getaddrinfo.c
|
||||
lib/getlogin.c
|
||||
lib/getpeername.c
|
||||
lib/getsockname.c
|
||||
lib/getsockopt.c
|
||||
|
@ -1131,6 +1138,7 @@ AC_DEFUN([gl_FILE_LIST], [
|
|||
m4/fstat.m4
|
||||
m4/func.m4
|
||||
m4/getaddrinfo.m4
|
||||
m4/getlogin.m4
|
||||
m4/glibc21.m4
|
||||
m4/gnulib-common.m4
|
||||
m4/hostent.m4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue