1. 09 Apr, 2017 2 commits
    • Paul Eggert's avatar
      getopt: prefer - to _ in new file names · ffc927ee
      Paul Eggert authored
      * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
      * lib/getopt-core.h: Rename from lib/getopt_core.h.
      * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
      * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
      * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
      All uses changed.
      ffc927ee
    • Paul Eggert's avatar
      getopt: port recent getopt changes to macOS · 4172365d
      Paul Eggert authored
      Problem reported by Harald Maier (Bug#26398).
      The macOS C compiler uses __nonnull for its own purposes and that
      clashes with glibc's __nonnull.
      * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
      * lib/getopt_cdefs.in.h (__nonnull): Remove.
      * lib/getopt_core.h (getopt):
      * lib/getopt_ext.h (getopt_long, getopt_long_only):
      Use _GL_ARG_NONNULL, not __nonnull.
      * lib/unistd.in.h: Move snippet hooks to before where the getopt
      .h files are included, so that _GL_ARG_NONNULL is defined in time.
      * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
      (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
      4172365d
  2. 06 Apr, 2017 2 commits
    • Zack Weinberg's avatar
      getopt: split up getopt.in.h and eliminate __need_getopt · e7207fdf
      Zack Weinberg authored
      Over in glibc, all of the __need macros are being phased out in favor
      of small headers that declare only the necessary components, as this
      is much simpler and less prone to bugs.  As getopt is shared with
      glibc, gnulib needs to do the same for __need_getopt.
      
      __need_getopt is misnamed; what it really means is "we want only the
      getopt features specified in POSIX, not the GNU extensions".  glibc
      placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
      these files can be shared verbatim with gnulib.  The portability
      wrapper, on the other hand, they have renounced altogether; glibc's
      getopt.h will no longer be shared with gnulib at all.  In exchange,
      certain glibc-specific quirks (having to do with __posix_getopt) no
      longer need appear in gnulib's headers at all.
      
      This patch merges getopt_core.h and getopt_ext.h from glibc, and
      splits up the current gnulib-side portability wrapper into three
      additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
      __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
      handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
      unistd.in.h just use them.  All new files are clearly marked with
      whether they are shared with glibc.
      
      * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
      * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
      with glibc, and ...
      * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
      * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
      * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
      instead of defining __need_getopt and including the full getopt.h.
      
      * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
      Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
      * modules/getopt-posix (Files): Add new headers and sort list.
      (Depends-on): No longer need snippet/arg-nonnull.
      (Makefile.am): Generate getopt_cdefs.h.
      e7207fdf
    • Zack Weinberg's avatar
      getopt: clean up getopt.c and getopt1.c file headers · fbd6c988
      Zack Weinberg authored
      In getopt.c, there is no need to include wchar.h at all, and it is
      safe nowadays to assume that stdlib.h does declare getenv (several
      other gnulib modules make this assumption).
      
      In getopt1.c, the #ifdef _LIBC block at the top can be simplified
      by using "" inclusions consistently, and there is no actual need to
      include stdlib.h (except in the #ifdef TEST block, where it should be
      unconditional), nor to provide a backup definition of NULL at all.
      
      * lib/getopt1.c: Simplify #ifdeffage at top of file.
      Move inclusion of stdlib.h to #ifdef TEST block and make
      unconditional.  Do not define NULL.
      * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
      * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
      * modules/getopt-gnu, modules/getopt-posix: Don't call
      gl_PREREQ_GETENV.
      fbd6c988
  3. 26 Nov, 2011 1 commit
    • Bruno Haible's avatar
      Fix conflict between two instantiations of module 'unistd'. · 48bf98f3
      Bruno Haible authored
      * 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.
      48bf98f3
  4. 12 Jul, 2011 1 commit
    • Bruno Haible's avatar
      Rename module 'arg-nonnull' to 'snippet/arg-nonnull'. · 95e1b7bd
      Bruno Haible authored
      * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
      (Files, Makefile.am): Update.
      * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
      * modules/argv-iter (Depends-on): Update.
      * modules/arpa_inet (Depends-on): Update.
      * modules/dirent (Depends-on): Update.
      * modules/fcntl-h (Depends-on): Update.
      * modules/fnmatch (Depends-on): Update.
      * modules/getopt-posix (Depends-on): Update.
      * modules/glob (Depends-on): Update.
      * modules/iconv-h (Depends-on): Update.
      * modules/inttypes-incomplete (Depends-on): Update.
      * modules/locale (Depends-on): Update.
      * modules/math (Depends-on): Update.
      * modules/netdb (Depends-on): Update.
      * modules/search (Depends-on): Update.
      * modules/signal (Depends-on): Update.
      * modules/spawn (Depends-on): Update.
      * modules/stdio (Depends-on): Update.
      * modules/stdlib (Depends-on): Update.
      * modules/string (Depends-on): Update.
      * modules/strings (Depends-on): Update.
      * modules/sys_socket (Depends-on): Update.
      * modules/sys_stat (Depends-on): Update.
      * modules/sys_time (Depends-on): Update.
      * modules/sys_times (Depends-on): Update.
      * modules/sys_utsname (Depends-on): Update.
      * modules/time (Depends-on): Update.
      * modules/unistd (Depends-on): Update.
      * modules/wchar (Depends-on): Update.
      * MODULES.html.sh (Support for building libraries and executables):
      Update.
      95e1b7bd
  5. 15 Jun, 2011 1 commit
    • Bruno Haible's avatar
      getopt: Move AC_LIBOBJ invocations to module description. · 37723302
      Bruno Haible authored
      * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
      (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
      invocations from here...
      * modules/getopt-gnu (configure.ac): ... to here.
      * modules/getopt-posix (configure.ac): ... and here.
      (Depends-on): Update condition.
      37723302
  6. 29 May, 2011 1 commit
    • Bruno Haible's avatar
      Allow multiple gnulib generated include files to be combined. · 0ab583c0
      Bruno Haible authored
      * gnulib-tool (func_compute_include_guard_prefix): New function.
      (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
      ${gl_include_guard_prefix} references.
      (func_import, func_create_testdir): Invoke
      func_compute_include_guard_prefix.
      * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
      * lib/ctype.in.h: Likewise.
      * lib/dirent.in.h: Likewise.
      * lib/errno.in.h: Likewise.
      * lib/fcntl.in.h: Likewise.
      * lib/float.in.h: Likewise.
      * lib/getopt.in.h: Likewise.
      * lib/iconv.in.h: Likewise.
      * lib/langinfo.in.h: Likewise.
      * lib/locale.in.h: Likewise.
      * lib/math.in.h: Likewise.
      * lib/netdb.in.h: Likewise.
      * lib/netinet_in.in.h: Likewise.
      * lib/poll.in.h: Likewise.
      * lib/pthread.in.h: Likewise.
      * lib/pty.in.h: Likewise.
      * lib/sched.in.h: Likewise.
      * lib/se-selinux.in.h: Likewise.
      * lib/search.in.h: Likewise.
      * lib/signal.in.h: Likewise.
      * lib/spawn.in.h: Likewise.
      * lib/stdarg.in.h: Likewise.
      * lib/stddef.in.h: Likewise.
      * lib/stdint.in.h: Likewise.
      * lib/stdio.in.h: Likewise.
      * lib/stdlib.in.h: Likewise.
      * lib/string.in.h: Likewise.
      * lib/strings.in.h: Likewise.
      * lib/sys_file.in.h: Likewise.
      * lib/sys_ioctl.in.h: Likewise.
      * lib/sys_select.in.h: Likewise.
      * lib/sys_socket.in.h: Likewise.
      * lib/sys_stat.in.h: Likewise.
      * lib/sys_time.in.h: Likewise.
      * lib/sys_times.in.h: Likewise.
      * lib/sys_uio.in.h: Likewise.
      * lib/sys_utsname.in.h: Likewise.
      * lib/sys_wait.in.h: Likewise.
      * lib/sysexits.in.h: Likewise.
      * lib/termios.in.h: Likewise.
      * lib/time.in.h: Likewise.
      * lib/unistd.in.h: Likewise.
      * lib/wchar.in.h: Likewise.
      * lib/wctype.in.h: Likewise.
      * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
      * modules/ctype (Makefile.am): Likewise.
      * modules/dirent (Makefile.am): Likewise.
      * modules/errno (Makefile.am): Likewise.
      * modules/fcntl-h (Makefile.am): Likewise.
      * modules/float (Makefile.am): Likewise.
      * modules/getopt-posix (Makefile.am): Likewise.
      * modules/iconv-h (Makefile.am): Likewise.
      * modules/langinfo (Makefile.am): Likewise.
      * modules/locale (Makefile.am): Likewise.
      * modules/math (Makefile.am): Likewise.
      * modules/netdb (Makefile.am): Likewise.
      * modules/netinet_in (Makefile.am): Likewise.
      * modules/poll-h (Makefile.am): Likewise.
      * modules/pthread (Makefile.am): Likewise.
      * modules/pty (Makefile.am): Likewise.
      * modules/sched (Makefile.am): Likewise.
      * modules/search (Makefile.am): Likewise.
      * modules/selinux-h (Makefile.am): Likewise.
      * modules/signal (Makefile.am): Likewise.
      * modules/spawn (Makefile.am): Likewise.
      * modules/stdarg (Makefile.am): Likewise.
      * modules/stddef (Makefile.am): Likewise.
      * modules/stdint (Makefile.am): Likewise.
      * modules/stdio (Makefile.am): Likewise.
      * modules/stdlib (Makefile.am): Likewise.
      * modules/string (Makefile.am): Likewise.
      * modules/strings (Makefile.am): Likewise.
      * modules/sys_file (Makefile.am): Likewise.
      * modules/sys_ioctl (Makefile.am): Likewise.
      * modules/sys_select (Makefile.am): Likewise.
      * modules/sys_socket (Makefile.am): Likewise.
      * modules/sys_stat (Makefile.am): Likewise.
      * modules/sys_time (Makefile.am): Likewise.
      * modules/sys_times (Makefile.am): Likewise.
      * modules/sys_uio (Makefile.am): Likewise.
      * modules/sys_utsname (Makefile.am): Likewise.
      * modules/sys_wait (Makefile.am): Likewise.
      * modules/sysexits (Makefile.am): Likewise.
      * modules/termios (Makefile.am): Likewise.
      * modules/time (Makefile.am): Likewise.
      * modules/unistd (Makefile.am): Likewise.
      * modules/wchar (Makefile.am): Likewise.
      * modules/wctype-h (Makefile.am): Likewise.
      * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
      0ab583c0
  7. 03 May, 2011 1 commit
    • Bruno Haible's avatar
      Avoid unnecessary compilation units, through conditional dependencies. · 7cbbd8a3
      Bruno Haible authored
      * modules/accept (Depends-on): Add conditions to the dependencies.
      * modules/acosl (Depends-on): Likewise.
      * modules/argz (Depends-on): Likewise.
      * modules/asinl (Depends-on): Likewise.
      * modules/atanl (Depends-on): Likewise.
      * modules/atoll (Depends-on): Likewise.
      * modules/bind (Depends-on): Likewise.
      * modules/btowc (Depends-on): Likewise.
      * modules/canonicalize-lgpl (Depends-on): Likewise.
      * modules/ceil (Depends-on): Likewise.
      * modules/ceilf (Depends-on): Likewise.
      * modules/ceill (Depends-on): Likewise.
      * modules/chdir-long (Depends-on): Likewise.
      * modules/chown (Depends-on): Likewise.
      * modules/close (Depends-on): Likewise.
      * modules/connect (Depends-on): Likewise.
      * modules/cosl (Depends-on): Likewise.
      * modules/dirfd (Depends-on): Likewise.
      * modules/dprintf (Depends-on): Likewise.
      * modules/dprintf-posix (Depends-on): Likewise.
      * modules/error (Depends-on): Likewise.
      * modules/euidaccess (Depends-on): Likewise.
      * modules/expl (Depends-on): Likewise.
      * modules/faccessat (Depends-on): Likewise.
      * modules/fchdir (Depends-on): Likewise.
      * modules/fclose (Depends-on): Likewise.
      * modules/fcntl (Depends-on): Likewise.
      * modules/fdopendir (Depends-on): Likewise.
      * modules/fflush (Depends-on): Likewise.
      * modules/floor (Depends-on): Likewise.
      * modules/floorf (Depends-on): Likewise.
      * modules/floorl (Depends-on): Likewise.
      * modules/fnmatch (Depends-on): Likewise.
      * modules/fopen (Depends-on): Likewise.
      * modules/fprintf-posix (Depends-on): Likewise.
      * modules/frexp (Depends-on): Likewise.
      * modules/frexp-nolibm (Depends-on): Likewise.
      * modules/frexpl (Depends-on): Likewise.
      * modules/frexpl-nolibm (Depends-on): Likewise.
      * modules/fseek (Depends-on): Likewise.
      * modules/fsusage (Depends-on): Likewise.
      * modules/ftell (Depends-on): Likewise.
      * modules/ftello (Depends-on): Likewise.
      * modules/futimens (Depends-on): Likewise.
      * modules/getcwd (Depends-on): Likewise.
      * modules/getcwd-lgpl (Depends-on): Likewise.
      * modules/getdelim (Depends-on): Likewise.
      * modules/getdomainname (Depends-on): Likewise.
      * modules/getgroups (Depends-on): Likewise.
      * modules/gethostname (Depends-on): Likewise.
      * modules/getline (Depends-on): Likewise.
      * modules/getlogin_r (Depends-on): Likewise.
      * modules/getopt-posix (Depends-on): Likewise.
      * modules/getpeername (Depends-on): Likewise.
      * modules/getsockname (Depends-on): Likewise.
      * modules/getsockopt (Depends-on): Likewise.
      * modules/getsubopt (Depends-on): Likewise.
      * modules/getusershell (Depends-on): Likewise.
      * modules/glob (Depends-on): Likewise.
      * modules/grantpt (Depends-on): Likewise.
      * modules/iconv_open (Depends-on): Likewise.
      * modules/iconv_open-utf (Depends-on): Likewise.
      * modules/inet_ntop (Depends-on): Likewise.
      * modules/inet_pton (Depends-on): Likewise.
      * modules/ioctl (Depends-on): Likewise.
      * modules/isapipe (Depends-on): Likewise.
      * modules/isfinite (Depends-on): Likewise.
      * modules/isinf (Depends-on): Likewise.
      * modules/lchown (Depends-on): Likewise.
      * modules/ldexpl (Depends-on): Likewise.
      * modules/link (Depends-on): Likewise.
      * modules/linkat (Depends-on): Likewise.
      * modules/listen (Depends-on): Likewise.
      * modules/logl (Depends-on): Likewise.
      * modules/lstat (Depends-on): Likewise.
      * modules/mbrlen (Depends-on): Likewise.
      * modules/mbrtowc (Depends-on): Likewise.
      * modules/mbsinit (Depends-on): Likewise.
      * modules/mbsnrtowcs (Depends-on): Likewise.
      * modules/mbsrtowcs (Depends-on): Likewise.
      * modules/mbtowc (Depends-on): Likewise.
      * modules/memcmp (Depends-on): Likewise.
      * modules/mkdir (Depends-on): Likewise.
      * modules/mkdtemp (Depends-on): Likewise.
      * modules/mkfifo (Depends-on): Likewise.
      * modules/mkfifoat (Depends-on): Likewise.
      * modules/mknod (Depends-on): Likewise.
      * modules/mkostemp (Depends-on): Likewise.
      * modules/mkostemps (Depends-on): Likewise.
      * modules/mkstemp (Depends-on): Likewise.
      * modules/mkstemps (Depends-on): Likewise.
      * modules/mktime (Depends-on): Likewise.
      * modules/nanosleep (Depends-on): Likewise.
      * modules/open (Depends-on): Likewise.
      * modules/openat (Depends-on): Likewise.
      * modules/perror (Depends-on): Likewise.
      * modules/poll (Depends-on): Likewise.
      * modules/popen (Depends-on): Likewise.
      * modules/posix_spawn (Depends-on): Likewise.
      * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
      * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
      * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
      * modules/posix_spawnp (Depends-on): Likewise.
      * modules/pread (Depends-on): Likewise.
      * modules/printf-posix (Depends-on): Likewise.
      * modules/ptsname (Depends-on): Likewise.
      * modules/putenv (Depends-on): Likewise.
      * modules/pwrite (Depends-on): Likewise.
      * modules/readline (Depends-on): Likewise.
      * modules/readlink (Depends-on): Likewise.
      * modules/readlinkat (Depends-on): Likewise.
      * modules/recv (Depends-on): Likewise.
      * modules/recvfrom (Depends-on): Likewise.
      * modules/regex (Depends-on): Likewise.
      * modules/remove (Depends-on): Likewise.
      * modules/rename (Depends-on): Likewise.
      * modules/renameat (Depends-on): Likewise.
      * modules/rmdir (Depends-on): Likewise.
      * modules/round (Depends-on): Likewise.
      * modules/roundf (Depends-on): Likewise.
      * modules/roundl (Depends-on): Likewise.
      * modules/rpmatch (Depends-on): Likewise.
      * modules/select (Depends-on): Likewise.
      * modules/send (Depends-on): Likewise.
      * modules/sendto (Depends-on): Likewise.
      * modules/setenv (Depends-on): Likewise.
      * modules/setlocale (Depends-on): Likewise.
      * modules/setsockopt (Depends-on): Likewise.
      * modules/shutdown (Depends-on): Likewise.
      * modules/sigaction (Depends-on): Likewise.
      * modules/signbit (Depends-on): Likewise.
      * modules/sigprocmask (Depends-on): Likewise.
      * modules/sinl (Depends-on): Likewise.
      * modules/sleep (Depends-on): Likewise.
      * modules/snprintf (Depends-on): Likewise.
      * modules/snprintf-posix (Depends-on): Likewise.
      * modules/socket (Depends-on): Likewise.
      * modules/sprintf-posix (Depends-on): Likewise.
      * modules/sqrtl (Depends-on): Likewise.
      * modules/stat (Depends-on): Likewise.
      * modules/strchrnul (Depends-on): Likewise.
      * modules/strdup-posix (Depends-on): Likewise.
      * modules/strerror (Depends-on): Likewise.
      * modules/strerror_r-posix (Depends-on): Likewise.
      * modules/strndup (Depends-on): Likewise.
      * modules/strnlen (Depends-on): Likewise.
      * modules/strptime (Depends-on): Likewise.
      * modules/strsep (Depends-on): Likewise.
      * modules/strsignal (Depends-on): Likewise.
      * modules/strstr-simple (Depends-on): Likewise.
      * modules/strtod (Depends-on): Likewise.
      * modules/strtoimax (Depends-on): Likewise.
      * modules/strtok_r (Depends-on): Likewise.
      * modules/strtoumax (Depends-on): Likewise.
      * modules/symlink (Depends-on): Likewise.
      * modules/symlinkat (Depends-on): Likewise.
      * modules/tanl (Depends-on): Likewise.
      * modules/tcgetsid (Depends-on): Likewise.
      * modules/tmpfile (Depends-on): Likewise.
      * modules/trunc (Depends-on): Likewise.
      * modules/truncf (Depends-on): Likewise.
      * modules/truncl (Depends-on): Likewise.
      * modules/uname (Depends-on): Likewise.
      * modules/unlink (Depends-on): Likewise.
      * modules/unlockpt (Depends-on): Likewise.
      * modules/unsetenv (Depends-on): Likewise.
      * modules/usleep (Depends-on): Likewise.
      * modules/utimensat (Depends-on): Likewise.
      * modules/vasprintf (Depends-on): Likewise.
      * modules/vdprintf (Depends-on): Likewise.
      * modules/vdprintf-posix (Depends-on): Likewise.
      * modules/vfprintf-posix (Depends-on): Likewise.
      * modules/vprintf-posix (Depends-on): Likewise.
      * modules/vsnprintf (Depends-on): Likewise.
      * modules/vsnprintf-posix (Depends-on): Likewise.
      * modules/vsprintf-posix (Depends-on): Likewise.
      * modules/wcrtomb (Depends-on): Likewise.
      * modules/wcscasecmp (Depends-on): Likewise.
      * modules/wcscspn (Depends-on): Likewise.
      * modules/wcsdup (Depends-on): Likewise.
      * modules/wcsncasecmp (Depends-on): Likewise.
      * modules/wcsnrtombs (Depends-on): Likewise.
      * modules/wcspbrk (Depends-on): Likewise.
      * modules/wcsrtombs (Depends-on): Likewise.
      * modules/wcsspn (Depends-on): Likewise.
      * modules/wcsstr (Depends-on): Likewise.
      * modules/wcstok (Depends-on): Likewise.
      * modules/wcswidth (Depends-on): Likewise.
      * modules/wctob (Depends-on): Likewise.
      * modules/wctomb (Depends-on): Likewise.
      * modules/wctype (Depends-on): Likewise.
      * modules/wcwidth (Depends-on): Likewise.
      * modules/write (Depends-on): Likewise.
      7cbbd8a3
  8. 05 Apr, 2011 1 commit
    • Bruno Haible's avatar
      Ensure to rebuild generated .h files when config.status has changed. · b4b63910
      Bruno Haible authored
      * modules/arpa_inet (Makefile.am): Add dependency from .h file to
      config.status.
      * modules/ctype (Makefile.am): Likewise.
      * modules/dirent (Makefile.am): Likewise.
      * modules/errno (Makefile.am): Likewise.
      * modules/fcntl-h (Makefile.am): Likewise.
      * modules/float (Makefile.am): Likewise.
      * modules/getopt-posix (Makefile.am): Likewise.
      * modules/glob (Makefile.am): Likewise.
      * modules/iconv-h (Makefile.am): Likewise.
      * modules/inttypes (Makefile.am): Likewise.
      * modules/langinfo (Makefile.am): Likewise.
      * modules/locale (Makefile.am): Likewise.
      * modules/math (Makefile.am): Likewise.
      * modules/netdb (Makefile.am): Likewise.
      * modules/netinet_in (Makefile.am): Likewise.
      * modules/poll-h (Makefile.am): Likewise.
      * modules/pthread (Makefile.am): Likewise.
      * modules/pty (Makefile.am): Likewise.
      * modules/sched (Makefile.am): Likewise.
      * modules/search (Makefile.am): Likewise.
      * modules/selinux-h (Makefile.am): Likewise.
      * modules/signal (Makefile.am): Likewise.
      * modules/spawn (Makefile.am): Likewise.
      * modules/stdarg (Makefile.am): Likewise.
      * modules/stdbool (Makefile.am): Likewise.
      * modules/stddef (Makefile.am): Likewise.
      * modules/stdint (Makefile.am): Likewise.
      * modules/stdio (Makefile.am): Likewise.
      * modules/stdlib (Makefile.am): Likewise.
      * modules/string (Makefile.am): Likewise.
      * modules/strings (Makefile.am): Likewise.
      * modules/sys_file (Makefile.am): Likewise.
      * modules/sys_ioctl (Makefile.am): Likewise.
      * modules/sys_select (Makefile.am): Likewise.
      * modules/sys_socket (Makefile.am): Likewise.
      * modules/sys_stat (Makefile.am): Likewise.
      * modules/sys_time (Makefile.am): Likewise.
      * modules/sys_times (Makefile.am): Likewise.
      * modules/sys_utsname (Makefile.am): Likewise.
      * modules/sys_wait (Makefile.am): Likewise.
      * modules/sysexits (Makefile.am): Likewise.
      * modules/termios (Makefile.am): Likewise.
      * modules/time (Makefile.am): Likewise.
      * modules/unistd (Makefile.am): Likewise.
      * modules/wchar (Makefile.am): Likewise.
      * modules/wctype-h (Makefile.am): Likewise.
      Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
      b4b63910
  9. 06 Feb, 2011 1 commit
  10. 05 Feb, 2011 1 commit
  11. 04 Oct, 2010 1 commit
    • Bruno Haible's avatar
      Avoid line length limitation from HP NonStop system header files. · 968e74c2
      Bruno Haible authored
      * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
      * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
      * lib/ctype.in.h: Likewise.
      * lib/dirent.in.h: Likewise.
      * lib/errno.in.h: Likewise.
      * lib/fcntl.in.h: Likewise.
      * lib/float.in.h: Likewise.
      * lib/getopt.in.h: Likewise.
      * lib/iconv.in.h: Likewise.
      * lib/inttypes.in.h: Likewise.
      * lib/langinfo.in.h: Likewise.
      * lib/locale.in.h: Likewise.
      * lib/math.in.h: Likewise.
      * lib/netdb.in.h: Likewise.
      * lib/netinet_in.in.h: Likewise.
      * lib/poll.in.h: Likewise.
      * lib/pthread.in.h: Likewise.
      * lib/pty.in.h: Likewise.
      * lib/sched.in.h: Likewise.
      * lib/se-selinux.in.h: Likewise.
      * lib/search.in.h: Likewise.
      * lib/signal.in.h: Likewise.
      * lib/spawn.in.h: Likewise.
      * lib/stdarg.in.h: Likewise.
      * lib/stddef.in.h: Likewise.
      * lib/stdint.in.h: Likewise.
      * lib/stdio.in.h: Likewise.
      * lib/stdlib.in.h: Likewise.
      * lib/string.in.h: Likewise.
      * lib/strings.in.h: Likewise.
      * lib/sys_file.in.h: Likewise.
      * lib/sys_ioctl.in.h: Likewise.
      * lib/sys_select.in.h: Likewise.
      * lib/sys_socket.in.h: Likewise.
      * lib/sys_stat.in.h: Likewise.
      * lib/sys_time.in.h: Likewise.
      * lib/sys_times.in.h: Likewise.
      * lib/sys_utsname.in.h: Likewise.
      * lib/sys_wait.in.h: Likewise.
      * lib/sysexits.in.h: Likewise.
      * lib/termios.in.h: Likewise.
      * lib/time.in.h: Likewise.
      * lib/unistd.in.h: Likewise.
      * lib/wchar.in.h: Likewise.
      * lib/wctype.in.h: Likewise.
      * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
      * modules/ctype (Makefile.am): Likewise.
      * modules/dirent (Makefile.am): Likewise.
      * modules/errno (Makefile.am): Likewise.
      * modules/fcntl-h (Makefile.am): Likewise.
      * modules/float (Makefile.am): Likewise.
      * modules/getopt-posix (Makefile.am): Likewise.
      * modules/iconv-h (Makefile.am): Likewise.
      * modules/inttypes (Makefile.am): Likewise.
      * modules/langinfo (Makefile.am): Likewise.
      * modules/locale (Makefile.am): Likewise.
      * modules/math (Makefile.am): Likewise.
      * modules/netdb (Makefile.am): Likewise.
      * modules/netinet_in (Makefile.am): Likewise.
      * modules/poll-h (Makefile.am): Likewise.
      * modules/pthread (Makefile.am): Likewise.
      * modules/pty (Makefile.am): Likewise.
      * modules/sched (Makefile.am): Likewise.
      * modules/search (Makefile.am): Likewise.
      * modules/selinux-h (Makefile.am): Likewise.
      * modules/signal (Makefile.am): Likewise.
      * modules/spawn (Makefile.am): Likewise.
      * modules/stdarg (Makefile.am): Likewise.
      * modules/stddef (Makefile.am): Likewise.
      * modules/stdint (Makefile.am): Likewise.
      * modules/stdio (Makefile.am): Likewise.
      * modules/stdlib (Makefile.am): Likewise.
      * modules/string (Makefile.am): Likewise.
      * modules/strings (Makefile.am): Likewise.
      * modules/sys_file (Makefile.am): Likewise.
      * modules/sys_ioctl (Makefile.am): Likewise.
      * modules/sys_select (Makefile.am): Likewise.
      * modules/sys_socket (Makefile.am): Likewise.
      * modules/sys_stat (Makefile.am): Likewise.
      * modules/sys_time (Makefile.am): Likewise.
      * modules/sys_times (Makefile.am): Likewise.
      * modules/sys_utsname (Makefile.am): Likewise.
      * modules/sys_wait (Makefile.am): Likewise.
      * modules/sysexits (Makefile.am): Likewise.
      * modules/termios (Makefile.am): Likewise.
      * modules/time (Makefile.am): Likewise.
      * modules/unistd (Makefile.am): Likewise.
      * modules/wchar (Makefile.am): Likewise.
      * modules/wctype (Makefile.am): Likewise.
      968e74c2
  12. 29 Apr, 2010 1 commit
    • Eric Blake's avatar
      headers: relax license to LGPLv2+ · d756f409
      Eric Blake authored
      The replacement headers deserve relaxed licenses, even if the
      functions they declare cannot be accessed without a tighter license.
      
      See the list archives for consensus on this action.
      
      * modules/fcntl-h (License): Relax license.
      * modules/getopt-posix (License): Likewise.
      * modules/locale (License): Likewise.
      * modules/math (License): Likewise.
      * modules/pty (License): Likewise.
      * modules/sched (License): Likewise.
      * modules/search (License): Likewise.
      * modules/spawn (License): Likewise.
      * modules/stdarg (License): Likewise.
      * modules/sysexits (License): Likewise.
      Signed-off-by: 's avatarEric Blake <eblake@redhat.com>
      d756f409
  13. 30 Dec, 2009 1 commit
    • Eric Blake's avatar
      link-warning: make usage consistent · e0bf1681
      Eric Blake authored
      Ensure GL_LINK_WARNING is defined before use.
      
      * modules/ctype (Depends-on): Add link-warning.
      (Makefile.am): Update rules accordingly.
      * modules/langinfo (Depends-on, Makefile.am): Likewise.
      * modules/locale (Depends-on, Makefile.am): Likewise.
      * modules/sys_file (Makefile.am): Likewise.
      * modules/getopt-posix (Makefile.am): Delete unused link warning
      efforts.
      * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
      * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
      * lib/locale.in.h (GL_LINK_WARNING): Likewise.
      * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
      Signed-off-by: 's avatarEric Blake <ebb9@byu.net>
      e0bf1681
  14. 11 Dec, 2009 1 commit
  15. 09 Dec, 2009 1 commit
  16. 25 Sep, 2009 1 commit
    • Eric Blake's avatar
      getopt: fix inclusion guards for cygwin · 6471b462
      Eric Blake authored
      cygwin <unistd.h> includes <getopt.h>, but gnulib <getopt.h> includes
      <unistd.h>, so system declarations were happening after gnulib
      replacements, leading to multiply-defined rpl_readlink error on
      cygwin 1.5.  The solution is to ensure that the system <unistd.h>
      is complete prior to any of gnulib's contents, by picking up
      system <getopt.h> in preference to a cycle to <unistd.h>.
      
      * modules/getopt-posix (Depends-on): Add include-next.
      (Makefile.am): Substitute more items in replacement header.
      * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
      <getopt.h>.
      * lib/getopt.in.h (includes): Use split inclusion guard, and
      prefer <getopt.h> over include <unistd.h> when one is present.
      (option): Also override name of 'struct option'.
      Signed-off-by: 's avatarEric Blake <ebb9@byu.net>
      6471b462
  17. 22 Aug, 2009 1 commit
    • Jim Meyering's avatar
      annotate automake snippets with $(AM_V_GEN) and $(AM_V_at) · 47a8dd64
      Jim Meyering authored
      This makes it so packages using automake-1.11's silent-rules option
      can print e.g., a single "GEN    configmake.h" line, rather than
      the 30+ statements that perform the job.  If you want to see the
      actual commands, you can still run "make V=1".
      Improved-by: 's avatarBruno Haible <bruno@clisp.org>
      
      * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
      so that make output is abbreviated when those variables are defined
      appropriately.
      * modules/argz: Likewise.
      * modules/arpa_inet: Likewise.
      * modules/byteswap: Likewise.
      * modules/configmake: Likewise.
      * modules/dirent: Likewise.
      * modules/errno: Likewise.
      * modules/fcntl: Likewise.
      * modules/float: Likewise.
      * modules/fnmatch: Likewise.
      * modules/getopt-posix: Likewise.
      * modules/glob: Likewise.
      * modules/iconv_open: Likewise.
      * modules/inttypes: Likewise.
      * modules/localcharset: Likewise.
      * modules/locale: Likewise.
      * modules/math: Likewise.
      * modules/netdb: Likewise.
      * modules/netinet_in: Likewise.
      * modules/poll: Likewise.
      * modules/posix_spawnp-tests: Likewise.
      * modules/sched: Likewise.
      * modules/search: Likewise.
      * modules/selinux-h: Likewise.
      * modules/signal: Likewise.
      * modules/spawn: Likewise.
      * modules/stdarg: Likewise.
      * modules/stdbool: Likewise.
      * modules/stddef: Likewise.
      * modules/stdint: Likewise.
      * modules/stdio: Likewise.
      * modules/stdlib: Likewise.
      * modules/string: Likewise.
      * modules/strings: Likewise.
      * modules/sys_file: Likewise.
      * modules/sys_ioctl: Likewise.
      * modules/sys_select: Likewise.
      * modules/sys_socket: Likewise.
      * modules/sys_stat: Likewise.
      * modules/sys_time: Likewise.
      * modules/sys_times: Likewise.
      * modules/sys_utsname: Likewise.
      * modules/sys_wait: Likewise.
      * modules/sysexits: Likewise.
      * modules/time: Likewise.
      * modules/unistd: Likewise.
      * modules/wchar: Likewise.
      * modules/wctype: Likewise.
      47a8dd64
  18. 21 Aug, 2009 1 commit
    • Jim Meyering's avatar
      consistently remove $@-t before redirecting to it · bd8cfad4
      Jim Meyering authored
      * modules/argz: Remove $@-t and $@ before redirecting to the former.
      * modules/alloca-opt: Likewise.
      * modules/byteswap: Likewise.
      * modules/fnmatch: Likewise.
      * modules/getopt-posix: Likewise.
      * modules/glob: Likewise.
      * modules/poll: Likewise.
      * modules/posix_spawnp-tests: Likewise.
      * modules/sys_socket: Likewise.
      * modules/sysexits: Likewise.
      bd8cfad4
  19. 12 Aug, 2009 2 commits
  20. 01 Oct, 2007 1 commit
  21. 13 Oct, 2006 1 commit
  22. 12 Oct, 2006 1 commit
  23. 07 Oct, 2006 1 commit
  24. 08 Sep, 2006 1 commit
    • Jim Meyering's avatar
      Don't make generated files read-only. That would bother too many · 0f55f146
      Jim Meyering authored
      people.  However, do retain the ability to work when targets are
      read-only: remove the destination and temporary files before writing
      them (when generated via sed or echo), or by using the -f option for
      both cp and mv commands.  Suggestion to use -f from Paul Eggert.
      * modules/alloca-opt, modules/argz, modules/arpa_inet:
      * modules/byteswap, modules/configmake, modules/fcntl:
      * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
      * modules/localcharset, modules/netinet_in, modules/poll:
      * modules/stdbool, modules/stdint, modules/sys_select:
      * modules/sys_socket, modules/sys_stat, modules/sysexits:
      0f55f146
  25. 07 Sep, 2006 1 commit
    • Jim Meyering's avatar
      Fix global typo in last change: use chmod u-w, not chmod u-x. · f110f8c4
      Jim Meyering authored
      Spotted by Paul Eggert and Bruce Korb.
      * modules/alloca-opt, modules/argz, modules/arpa_inet:
      * modules/byteswap, modules/configmake, modules/fcntl:
      * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
      * modules/localcharset, modules/netinet_in, modules/poll:
      * modules/stdbool, modules/stdint, modules/sys_select:
      * modules/sys_socket, modules/sys_stat, modules/sysexits:
      f110f8c4
  26. 06 Sep, 2006 1 commit
    • Jim Meyering's avatar
      Make generated files be read-only. · d1aadab2
      Jim Meyering authored
      * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
      Ensure that each generated file is now read-only.
      * modules/argz: Likewise.
      * modules/arpa_inet: Likewise.
      * modules/byteswap: Likewise.
      * modules/configmake: Likewise.
      * modules/fcntl: Likewise.
      * modules/fnmatch: Likewise.
      * modules/getopt: Likewise.
      * modules/glob: Likewise.
      * modules/inttypes: Likewise.
      * modules/netinet_in: Likewise.
      * modules/poll: Likewise.
      * modules/stdbool: Likewise.
      * modules/stdint: Likewise.
      * modules/sys_select: Likewise.
      * modules/sys_socket: Likewise.
      * modules/sys_stat: Likewise.
      * modules/sysexits: Likewise.
      * modules/localcharset: Same as above, but continue using temporary
      file named "t-$@" (why different?) rather than the "$@-t" used
      everywhere else.
      
      * modules/sysexits (Makefile.am): Replace literal occurrences
      of "sysexit.h" more readable, and more consistent, "$@".
      d1aadab2
  27. 07 Mar, 2006 1 commit
  28. 22 Jul, 2005 1 commit
    • Paul Eggert's avatar
      * modules/alloca-opt (Makefile.am): Remove explicit dependency on · 9029f098
      Paul Eggert authored
      $(ALLOCA_H), redundant through BUILT_SOURCES.
      * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
      redundant through BUILT_SOURCES.
      * modules/byteswap (Makefile.am): Remove explicit dependency on
      $(BYTESWAP_H), redundant through BUILT_SOURCES.
      * modules/fnmatch (Makefile.am): Remove explicit dependency on
      $(FNMATCH_H), redundant through BUILT_SOURCES.
      * modules/getopt (Makefile.am): Remove explicit dependency on
      $(GETOPT_H), redundant through BUILT_SOURCES.
      * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
      redundant through BUILT_SOURCES.
      * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
      redundant through BUILT_SOURCES.
      * modules/stdbool (Makefile.am): Remove explicit dependency on
      $(STDBOOL_H), redundant through BUILT_SOURCES.
      * modules/stdint (Makefile.am): Remove explicit dependency on
      $(STDINT_H), redundant through BUILT_SOURCES.
      * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
      Remove explicit dependency on $(SYSEXITS_H).
      Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
      9029f098
  29. 06 Jul, 2005 1 commit
    • Paul Eggert's avatar
      Support programs like Emacs that use gnulib but not gettext. · abe57472
      Paul Eggert authored
      * MODULES.html.sh (Internationalization functions): Add gettext-h.
      * modules/gettext-h: New file.
      * modules/gettext (Files): Remove lib/gettext.h.
      (Depends-on): Add gettext-h.
      (Makefile.am): Remove lib_SOURCES.
      * modules/argmatch, modules/c-stack, modules/closeout:
      * modules/copy-file, modules/csharpcomp, modules/csharpexec:
      * modules/execute, modules/file-type, modules/getaddrinfo:
      * modules/getopt, modules/human, modules/javacomp:
      * modules/javaexec, modules/mkdir-p, modules/obstack:
      * modules/openat, modules/pagealign_alloc, modules/pipe:
      * modules/quotearg, modules/regex, modules/rpmatch:
      * modules/unicodeio, modules/userspec, modules/version-etc:
      * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
      * modules/xsetenv:
      Depend on gettext-h, not gettext.
      abe57472
  30. 22 Sep, 2004 1 commit
  31. 12 Aug, 2004 1 commit
  32. 12 Apr, 2004 1 commit
  33. 09 Mar, 2004 1 commit
  34. 20 Jan, 2003 1 commit
  35. 13 Jan, 2003 1 commit
  36. 31 Dec, 2002 1 commit