mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 09:43:32 +08:00
Tue May 7 23:18:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* po/Makefile: New file. * Makefile (subdirs): Add po. * configure.in: Check for msgfmt. * config.make.in (MSGFMT): New variable. Sun May 5 23:49:10 1996 Ulrich Drepper <drepper@cygnus.com> * misc/Makefile (routines): Add swapoff. * sysdeps/unix/sysv/linux/Dist: Add sys/quota.h. * sysdeps/unix/sysv/linux/sys/quota.h: New file. Wrapper around kernel header file.
This commit is contained in:
parent
0e3426bbcf
commit
ce4d8b661a
17
ChangeLog
17
ChangeLog
@ -1,3 +1,20 @@
|
||||
Tue May 7 23:18:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
||||
|
||||
* po/Makefile: New file.
|
||||
* Makefile (subdirs): Add po.
|
||||
|
||||
* configure.in: Check for msgfmt.
|
||||
* config.make.in (MSGFMT): New variable.
|
||||
|
||||
Sun May 5 23:49:10 1996 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* misc/Makefile (routines): Add swapoff.
|
||||
|
||||
* sysdeps/unix/sysv/linux/Dist: Add sys/quota.h.
|
||||
|
||||
* sysdeps/unix/sysv/linux/sys/quota.h: New file. Wrapper around
|
||||
kernel header file.
|
||||
|
||||
Tue May 7 19:00:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
||||
|
||||
* string/argz-extract.c: Remove const from decl.
|
||||
|
2
Makefile
2
Makefile
@ -54,7 +54,7 @@ endif
|
||||
subdirs = csu assert ctype db locale intl catgets math setjmp signal stdlib \
|
||||
stdio-common $(stdio) malloc string wcsmbs time dirent grp pwd\
|
||||
posix io termios resource misc socket sysvipc gmon gnulib \
|
||||
wctype $(wildcard crypt) manual $(sysdep-subdirs) elf
|
||||
wctype $(wildcard crypt) manual $(sysdep-subdirs) elf po
|
||||
export subdirs := $(subdirs) # Benign, useless in GNU make before 3.63.
|
||||
|
||||
# The mach and hurd subdirectories have many generated header files which
|
||||
|
@ -38,5 +38,6 @@ INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
LN_S = @LN_S@
|
||||
MSGFMT = @MSGFMT@
|
||||
|
||||
# More variables may be inserted below by configure.
|
||||
|
53
configure
vendored
53
configure
vendored
@ -1001,6 +1001,38 @@ else
|
||||
echo "$ac_t""no" 1>&4
|
||||
fi
|
||||
|
||||
for ac_prog in msgfmt gmsgfmt
|
||||
do
|
||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||
set dummy $ac_prog; ac_word=$2
|
||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
|
||||
if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&4
|
||||
else
|
||||
if test -n "$MSGFMT"; then
|
||||
ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
|
||||
else
|
||||
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||
for ac_dir in $PATH; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
if test -f $ac_dir/$ac_word; then
|
||||
ac_cv_prog_MSGFMT="$ac_prog"
|
||||
break
|
||||
fi
|
||||
done
|
||||
IFS="$ac_save_ifs"
|
||||
fi
|
||||
fi
|
||||
MSGFMT="$ac_cv_prog_MSGFMT"
|
||||
if test -n "$MSGFMT"; then
|
||||
echo "$ac_t""$MSGFMT" 1>&4
|
||||
else
|
||||
echo "$ac_t""no" 1>&4
|
||||
fi
|
||||
|
||||
test -n "$MSGFMT" && break
|
||||
done
|
||||
|
||||
|
||||
echo $ac_n "checking build system type""... $ac_c" 1>&4
|
||||
|
||||
@ -1163,13 +1195,13 @@ else
|
||||
# On the NeXT, cc -E runs the code through the compiler's parser,
|
||||
# not just through cpp.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1167 "configure"
|
||||
#line 1199 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
@ -1178,13 +1210,13 @@ else
|
||||
rm -rf conftest*
|
||||
CPP="${CC-cc} -E -traditional-cpp"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1182 "configure"
|
||||
#line 1214 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
@ -1233,7 +1265,7 @@ if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&4
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1237 "configure"
|
||||
#line 1269 "configure"
|
||||
#include "confdefs.h"
|
||||
#define __need_size_t
|
||||
#define __need_wchar_t
|
||||
@ -1249,7 +1281,7 @@ size_t size; wchar_t wchar;
|
||||
if (&size == NULL || &wchar == NULL) abort ();
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
libc_cv_friendly_stddef=yes
|
||||
else
|
||||
@ -1356,7 +1388,7 @@ if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&4
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1360 "configure"
|
||||
#line 1392 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@ -1365,7 +1397,7 @@ asm (".section .init");
|
||||
asm (".section .fini");
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
libc_cv_have_initfini=yes
|
||||
else
|
||||
@ -1393,7 +1425,7 @@ if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&4
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1397 "configure"
|
||||
#line 1429 "configure"
|
||||
#include "confdefs.h"
|
||||
asm ("_glibc_foobar:");
|
||||
int main() { return 0; }
|
||||
@ -1401,7 +1433,7 @@ int t() {
|
||||
glibc_foobar ();
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
||||
if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
libc_cv_asm_underscores=yes
|
||||
else
|
||||
@ -1753,6 +1785,7 @@ s%@sysnames@%$sysnames%g
|
||||
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
||||
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
||||
s%@LN_S@%$LN_S%g
|
||||
s%@MSGFMT@%$MSGFMT%g
|
||||
s%@build@%$build%g
|
||||
s%@build_alias@%$build_alias%g
|
||||
s%@build_cpu@%$build_cpu%g
|
||||
|
@ -294,6 +294,7 @@ if test "$INSTALL" = "${srcdir}/install-sh"; then
|
||||
INSTALL='$(..)./install-sh'
|
||||
fi
|
||||
AC_PROG_LN_S
|
||||
AC_CHECK_PROGS(MSGFMT, msgfmt gmsgfmt)
|
||||
|
||||
AC_CHECK_TOOL(CC, gcc)
|
||||
AC_CHECK_TOOL(AR, ar)
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
/* Functions to read locale data files.
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
|
||||
|
||||
|
@ -39,7 +39,7 @@ routines := brk sbrk sstk ioctl \
|
||||
acct chroot fsync sync fdatasync reboot \
|
||||
gethostid sethostid \
|
||||
revoke vhangup \
|
||||
swapon mktemp mkstemp \
|
||||
swapon swapoff mktemp mkstemp \
|
||||
ualarm usleep \
|
||||
gtty stty \
|
||||
ptrace nlist \
|
||||
|
85
po/Makefile
Normal file
85
po/Makefile
Normal file
@ -0,0 +1,85 @@
|
||||
# Makefile for installing libc message catalogs.
|
||||
|
||||
# Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
# This file is part of the GNU C Library.
|
||||
|
||||
# The GNU C Library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Library General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# The GNU C Library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Library General Public
|
||||
# License along with the GNU C Library; see the file COPYING.LIB. If
|
||||
# not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
||||
# Cambridge, MA 02139, USA.
|
||||
|
||||
subdir := po
|
||||
|
||||
# List of languages for which we have message catalogs of translations.
|
||||
ALL_LINGUAS := $(basename $(wildcard *.po))
|
||||
|
||||
# You can override this in configparms or the make command line to limit
|
||||
# the languages which get installed.
|
||||
ifdef LINGUAS
|
||||
LINGUAS := $(filter $(addsuffix %,$(LINGUAS)),$(ALL_LINGUAS))
|
||||
else
|
||||
LINGUAS = $(ALL_LINGUAS)
|
||||
endif
|
||||
|
||||
# Text domain name to install under; must match ../locale/SYS_libc.c string.
|
||||
domainname = SYS_GNU_libc-$(version)
|
||||
|
||||
# Get $(version) defined.
|
||||
include ../Makeconfig
|
||||
-include $(common-objpfx)version.mk
|
||||
|
||||
# Pattern for where message catalog object for language % gets installed.
|
||||
mo-installed = $(localedir)/%/LC_MESSAGES/$(domainname).mo
|
||||
|
||||
# Files to install: a $(domainname).mo file for each language.
|
||||
install-others = $(LINGUAS:%=$(mo-installed))
|
||||
|
||||
# Files to distribute: all the source and compiled binary translation files.
|
||||
distribute = $(ALL_LINGUAS:=.po) $(ALL_LINGUAS:=.mo)
|
||||
|
||||
|
||||
include ../Makerules
|
||||
|
||||
|
||||
.SUFFIXES: .mo .po .pot
|
||||
|
||||
# Compile the binary message object files from the portable object source
|
||||
# files of translations for each language.
|
||||
%.mo: %.po
|
||||
$(MSGFMT) -o $@ $<
|
||||
|
||||
# Install the message object files as SYS_libc.po in the language directory.
|
||||
$(mo-installed): %.mo; $(do-install)
|
||||
|
||||
.PHONY: linguas linguas.mo
|
||||
linguas: $(ALL_LINGUAS:=.po)
|
||||
linguas.mo: $(ALL_LINGUAS:=.mo)
|
||||
|
||||
# Copy the PO files from the translation coordinator's repository.
|
||||
|
||||
podir = /com/share/ftp/gnu/po/maint/glibc
|
||||
|
||||
pofiles := $(wildcard $(podir)/*.po)
|
||||
|
||||
ifneq (,$(pofiles))
|
||||
|
||||
%.po: $(podir)/%.po
|
||||
cp -f $< $@
|
||||
chmod 444 $@
|
||||
|
||||
linguas: $(pofiles:$(podir)/%=%)
|
||||
test ! -d CVS || cvs commit -m'Copied from $(podir)' $^
|
||||
linguas.mo: $(pofiles:$(podir)/%.po=%.mo)
|
||||
test ! -d CVS || cvs commit -m'Compiled translations' $^
|
||||
|
||||
endif
|
@ -1,4 +1,6 @@
|
||||
sys/acct.h
|
||||
sys/acct.h
|
||||
sys/quota.h
|
||||
sys/socketcall.h
|
||||
sys/sysctl.h
|
||||
sys/timex.h
|
||||
|
2
sysdeps/unix/sysv/linux/sys/quota.h
Normal file
2
sysdeps/unix/sysv/linux/sys/quota.h
Normal file
@ -0,0 +1,2 @@
|
||||
/* The kernel header file contains all declarations and definitions. */
|
||||
#include <linux/quota.h>
|
Loading…
Reference in New Issue
Block a user