mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
Fix conflict between two instantiations of module 'unistd'.
* gnulib-tool (func_emit_autoconf_snippet): Substitute ${include_guard_prefix} also in the autoconf snippet. * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_UNISTD_H_GETOPT. * modules/getopt-posix (configure.ac): Set the GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable. * modules/getopt-gnu (configure.ac): Likewise. * modules/unistd (Makefile.am): Change the substitution value of GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix. Reported by Simon Josefsson.
This commit is contained in:
15
ChangeLog
15
ChangeLog
@@ -1,3 +1,18 @@
|
|||||||
|
2011-11-26 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
Fix conflict between two instantiations of module 'unistd'.
|
||||||
|
* gnulib-tool (func_emit_autoconf_snippet): Substitute
|
||||||
|
${include_guard_prefix} also in the autoconf snippet.
|
||||||
|
* m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
|
||||||
|
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
|
||||||
|
GNULIB_UNISTD_H_GETOPT.
|
||||||
|
* modules/getopt-posix (configure.ac): Set the
|
||||||
|
GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
|
||||||
|
* modules/getopt-gnu (configure.ac): Likewise.
|
||||||
|
* modules/unistd (Makefile.am): Change the substitution value of
|
||||||
|
GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
|
||||||
|
Reported by Simon Josefsson.
|
||||||
|
|
||||||
2011-11-25 Bruno Haible <bruno@clisp.org>
|
2011-11-25 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
pagealign_alloc: Doc and comments.
|
pagealign_alloc: Doc and comments.
|
||||||
|
@@ -3852,6 +3852,8 @@ func_emit_initmacro_done ()
|
|||||||
# - local_gnulib_dir from --local-dir
|
# - local_gnulib_dir from --local-dir
|
||||||
# - modcache true or false, from --cache-modules/--no-cache-modules
|
# - modcache true or false, from --cache-modules/--no-cache-modules
|
||||||
# - sed_replace_build_aux sed expression that replaces reference to build-aux
|
# - sed_replace_build_aux sed expression that replaces reference to build-aux
|
||||||
|
# - sed_replace_include_guard_prefix
|
||||||
|
# sed expression for resolving ${gl_include_guard_prefix}
|
||||||
# - module the module name
|
# - module the module name
|
||||||
# - toplevel true or false. 'false' means a subordinate use of
|
# - toplevel true or false. 'false' means a subordinate use of
|
||||||
# gnulib-tool.
|
# gnulib-tool.
|
||||||
@@ -3874,6 +3876,7 @@ func_emit_autoconf_snippet ()
|
|||||||
func_get_autoconf_snippet "$module" \
|
func_get_autoconf_snippet "$module" \
|
||||||
| sed -e '/^$/d;' -e "s/^/$indentation/" \
|
| sed -e '/^$/d;' -e "s/^/$indentation/" \
|
||||||
-e "$sed_replace_build_aux" \
|
-e "$sed_replace_build_aux" \
|
||||||
|
-e "$sed_replace_include_guard_prefix" \
|
||||||
| { if $disable_libtool; then
|
| { if $disable_libtool; then
|
||||||
sed -e 's/\$gl_cond_libtool/false/g' \
|
sed -e 's/\$gl_cond_libtool/false/g' \
|
||||||
-e 's/gl_libdeps/gltests_libdeps/g' \
|
-e 's/gl_libdeps/gltests_libdeps/g' \
|
||||||
@@ -3903,6 +3906,8 @@ func_emit_autoconf_snippet ()
|
|||||||
# - local_gnulib_dir from --local-dir
|
# - local_gnulib_dir from --local-dir
|
||||||
# - modcache true or false, from --cache-modules/--no-cache-modules
|
# - modcache true or false, from --cache-modules/--no-cache-modules
|
||||||
# - sed_replace_build_aux sed expression that replaces reference to build-aux
|
# - sed_replace_build_aux sed expression that replaces reference to build-aux
|
||||||
|
# - sed_replace_include_guard_prefix
|
||||||
|
# sed expression for resolving ${gl_include_guard_prefix}
|
||||||
# - modules the list of modules.
|
# - modules the list of modules.
|
||||||
# - verifier one of func_verify_module, func_verify_nontests_module,
|
# - verifier one of func_verify_module, func_verify_nontests_module,
|
||||||
# func_verify_tests_module. It selects the subset of
|
# func_verify_tests_module. It selects the subset of
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# getopt.m4 serial 38
|
# getopt.m4 serial 39
|
||||||
dnl Copyright (C) 2002-2006, 2008-2011 Free Software Foundation, Inc.
|
dnl Copyright (C) 2002-2006, 2008-2011 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -25,8 +25,6 @@ AC_DEFUN([gl_FUNC_GETOPT_POSIX],
|
|||||||
if test $REPLACE_GETOPT = 1; then
|
if test $REPLACE_GETOPT = 1; then
|
||||||
dnl Arrange for getopt.h to be created.
|
dnl Arrange for getopt.h to be created.
|
||||||
gl_GETOPT_SUBSTITUTE_HEADER
|
gl_GETOPT_SUBSTITUTE_HEADER
|
||||||
dnl Arrange for unistd.h to include getopt.h.
|
|
||||||
GNULIB_UNISTD_H_GETOPT=1
|
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# unistd_h.m4 serial 61
|
# unistd_h.m4 serial 62
|
||||||
dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
|
dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -98,7 +98,6 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
|||||||
GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK])
|
GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK])
|
||||||
GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT])
|
GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT])
|
||||||
GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R])
|
GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R])
|
||||||
GNULIB_UNISTD_H_GETOPT=0; AC_SUBST([GNULIB_UNISTD_H_GETOPT])
|
|
||||||
GNULIB_UNISTD_H_NONBLOCKING=0; AC_SUBST([GNULIB_UNISTD_H_NONBLOCKING])
|
GNULIB_UNISTD_H_NONBLOCKING=0; AC_SUBST([GNULIB_UNISTD_H_NONBLOCKING])
|
||||||
GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
|
GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
|
||||||
GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK])
|
GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK])
|
||||||
|
@@ -14,7 +14,10 @@ if test $REPLACE_GETOPT = 1; then
|
|||||||
AC_LIBOBJ([getopt])
|
AC_LIBOBJ([getopt])
|
||||||
AC_LIBOBJ([getopt1])
|
AC_LIBOBJ([getopt1])
|
||||||
gl_PREREQ_GETOPT
|
gl_PREREQ_GETOPT
|
||||||
|
dnl Arrange for unistd.h to include getopt.h.
|
||||||
|
GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT=1
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST([GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT])
|
||||||
gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
|
gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
|
||||||
|
|
||||||
Makefile.am:
|
Makefile.am:
|
||||||
|
@@ -21,7 +21,10 @@ if test $REPLACE_GETOPT = 1; then
|
|||||||
AC_LIBOBJ([getopt])
|
AC_LIBOBJ([getopt])
|
||||||
AC_LIBOBJ([getopt1])
|
AC_LIBOBJ([getopt1])
|
||||||
gl_PREREQ_GETOPT
|
gl_PREREQ_GETOPT
|
||||||
|
dnl Arrange for unistd.h to include getopt.h.
|
||||||
|
GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT=1
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST([GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT])
|
||||||
|
|
||||||
Makefile.am:
|
Makefile.am:
|
||||||
BUILT_SOURCES += $(GETOPT_H)
|
BUILT_SOURCES += $(GETOPT_H)
|
||||||
|
@@ -70,7 +70,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
|||||||
-e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \
|
-e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \
|
||||||
-e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \
|
-e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \
|
||||||
-e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \
|
-e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \
|
||||||
-e 's/@''GNULIB_UNISTD_H_GETOPT''@/$(GNULIB_UNISTD_H_GETOPT)/g' \
|
-e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT)/g' \
|
||||||
-e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \
|
-e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \
|
||||||
-e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \
|
-e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \
|
||||||
-e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \
|
-e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \
|
||||||
|
Reference in New Issue
Block a user