Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
830fd6fc
Commit
830fd6fc
authored
Jul 21, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gettext files
parent
27e4465a
Changes
34
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
984 additions
and
636 deletions
+984
-636
autotools/config.rpath
autotools/config.rpath
+20
-14
configure.ac
configure.ac
+1
-1
m4/codeset.m4
m4/codeset.m4
+6
-6
m4/fcntl-o.m4
m4/fcntl-o.m4
+81
-0
m4/gettext.m4
m4/gettext.m4
+22
-20
m4/glibc2.m4
m4/glibc2.m4
+9
-9
m4/glibc21.m4
m4/glibc21.m4
+9
-9
m4/iconv.m4
m4/iconv.m4
+51
-17
m4/intdiv0.m4
m4/intdiv0.m4
+4
-4
m4/intl.m4
m4/intl.m4
+51
-42
m4/intldir.m4
m4/intldir.m4
+3
-3
m4/intlmacosx.m4
m4/intlmacosx.m4
+6
-6
m4/intmax.m4
m4/intmax.m4
+6
-6
m4/inttypes-pri.m4
m4/inttypes-pri.m4
+6
-6
m4/inttypes_h.m4
m4/inttypes_h.m4
+6
-6
m4/lcmessage.m4
m4/lcmessage.m4
+6
-5
m4/lib-ld.m4
m4/lib-ld.m4
+10
-10
m4/lib-link.m4
m4/lib-link.m4
+99
-34
m4/lib-prefix.m4
m4/lib-prefix.m4
+65
-26
m4/lock.m4
m4/lock.m4
+17
-296
m4/longlong.m4
m4/longlong.m4
+37
-40
m4/nls.m4
m4/nls.m4
+7
-6
m4/po.m4
m4/po.m4
+5
-5
m4/printf-posix.m4
m4/printf-posix.m4
+7
-6
m4/progtest.m4
m4/progtest.m4
+7
-7
m4/size_max.m4
m4/size_max.m4
+17
-10
m4/stdint_h.m4
m4/stdint_h.m4
+6
-6
m4/threadlib.m4
m4/threadlib.m4
+347
-0
m4/uintmax_t.m4
m4/uintmax_t.m4
+5
-5
m4/visibility.m4
m4/visibility.m4
+28
-6
m4/wchar_t.m4
m4/wchar_t.m4
+5
-5
m4/wint_t.m4
m4/wint_t.m4
+5
-5
m4/xsize.m4
m4/xsize.m4
+3
-3
po/Makefile.in.in
po/Makefile.in.in
+27
-12
No files found.
autotools/config.rpath
View file @
830fd6fc
...
...
@@ -2,7 +2,7 @@
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-20
07
Free Software Foundation, Inc.
# Copyright 1996-20
10
Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
...
...
@@ -47,7 +47,7 @@ for cc_temp in $CC""; do
done
cc_basename
=
`
echo
"
$cc_temp
"
|
sed
-e
's%^.*/%%'
`
# Code taken from libtool.m4's
AC_LIBTOOL_PROG
_COMPILER_PIC.
# Code taken from libtool.m4's
_LT
_COMPILER_PIC.
wl
=
if
test
"
$GCC
"
=
yes
;
then
...
...
@@ -64,7 +64,7 @@ else
;;
esac
;;
mingw
*
|
cygwin
*
|
pw32
*
|
os2
*
)
mingw
*
|
cygwin
*
|
pw32
*
|
os2
*
|
cegcc
*
)
;;
hpux9
*
|
hpux10
*
|
hpux11
*
)
wl
=
'-Wl,'
...
...
@@ -76,7 +76,13 @@ else
;;
linux
*
|
k
*
bsd
*
-gnu
)
case
$cc_basename
in
icc
*
|
ecc
*
)
ecc
*
)
wl
=
'-Wl,'
;;
icc
*
|
ifort
*
)
wl
=
'-Wl,'
;;
lf95
*
)
wl
=
'-Wl,'
;;
pgcc
|
pgf77
|
pgf90
)
...
...
@@ -124,7 +130,7 @@ else
esac
fi
# Code taken from libtool.m4's
AC_LIBTOOL_PROG_LD
_SHLIBS.
# Code taken from libtool.m4's
_LT_LINKER
_SHLIBS.
hardcode_libdir_flag_spec
=
hardcode_libdir_separator
=
...
...
@@ -132,7 +138,7 @@ hardcode_direct=no
hardcode_minus_L
=
no
case
"
$host_os
"
in
cygwin
*
|
mingw
*
|
pw32
*
)
cygwin
*
|
mingw
*
|
pw32
*
|
cegcc
*
)
# FIXME: the MSVC++ port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
...
...
@@ -158,7 +164,7 @@ if test "$with_gnu_ld" = yes; then
# option of GNU ld is called -rpath, not --rpath.
hardcode_libdir_flag_spec
=
'${wl}-rpath ${wl}$libdir'
case
"
$host_os
"
in
aix
3
*
|
aix4
*
|
aix5
*
)
aix
[3-9]
*
)
# On AIX/PPC, the GNU linker is very broken
if
test
"
$host_cpu
"
!=
ia64
;
then
ld_shlibs
=
no
...
...
@@ -182,7 +188,7 @@ if test "$with_gnu_ld" = yes; then
ld_shlibs
=
no
fi
;;
cygwin
*
|
mingw
*
|
pw32
*
)
cygwin
*
|
mingw
*
|
pw32
*
|
cegcc
*
)
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec
=
'-L$libdir'
...
...
@@ -254,7 +260,7 @@ else
hardcode_direct
=
unsupported
fi
;;
aix
4
*
|
aix5
*
)
aix
[4-9]
*
)
if
test
"
$host_cpu
"
=
ia64
;
then
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
...
...
@@ -264,7 +270,7 @@ else
# Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking.
case
$host_os
in
aix4.[23]|aix4.[23].
*
|
aix
5
*
)
case
$host_os
in
aix4.[23]|aix4.[23].
*
|
aix
[5-9]
*
)
for
ld_flag
in
$LDFLAGS
;
do
if
(
test
$ld_flag
=
"-brtl"
||
test
$ld_flag
=
"-Wl,-brtl"
)
;
then
aix_use_runtimelinking
=
yes
...
...
@@ -326,7 +332,7 @@ else
;;
bsdi[45]
*
)
;;
cygwin
*
|
mingw
*
|
pw32
*
)
cygwin
*
|
mingw
*
|
pw32
*
|
cegcc
*
)
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is
...
...
@@ -494,7 +500,7 @@ else
fi
# Check dynamic linker characteristics
# Code taken from libtool.m4's
AC_LIBTOOL
_SYS_DYNAMIC_LINKER.
# Code taken from libtool.m4's
_LT
_SYS_DYNAMIC_LINKER.
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
# only about the one the linker finds when passed -lNAME. This is the last
# element of library_names_spec in libtool.m4, or possibly two of them if the
...
...
@@ -505,7 +511,7 @@ case "$host_os" in
aix3
*
)
library_names_spec
=
'$libname.a'
;;
aix
4
*
|
aix5
*
)
aix
[4-9]
*
)
library_names_spec
=
'$libname$shrext'
;;
amigaos
*
)
...
...
@@ -517,7 +523,7 @@ case "$host_os" in
bsdi[45]
*
)
library_names_spec
=
'$libname$shrext'
;;
cygwin
*
|
mingw
*
|
pw32
*
)
cygwin
*
|
mingw
*
|
pw32
*
|
cegcc
*
)
shrext
=
.dll
library_names_spec
=
'$libname.dll.a $libname.lib'
;;
...
...
configure.ac
View file @
830fd6fc
...
...
@@ -428,7 +428,7 @@ AS_IF([test "${enable_shared}" = "no"], [
dnl
dnl Gettext stuff
dnl
AM_GNU_GETTEXT_VERSION([0.1
7
])
AM_GNU_GETTEXT_VERSION([0.1
8.1
])
AM_GNU_GETTEXT([external])
VLC_ADD_LIBS([libvlccore vlc], [${LTLIBINTL}])
...
...
m4/codeset.m4
View file @
830fd6fc
# codeset.m4 serial
2 (gettext-0.16
)
dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc.
# codeset.m4 serial
4 (gettext-0.18
)
dnl Copyright (C) 2000-2002, 2006
, 2008-2010
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.
...
...
@@ -8,14 +8,14 @@ dnl From Bruno Haible.
AC_DEFUN([AM_LANGINFO_CODESET],
[
AC_CACHE_CHECK([for nl_langinfo and CODESET],
am_cv_langinfo_codeset
,
AC_CACHE_CHECK([for nl_langinfo and CODESET],
[am_cv_langinfo_codeset]
,
[AC_TRY_LINK([#include <langinfo.h>],
[char* cs = nl_langinfo(CODESET); return !cs;],
am_cv_langinfo_codeset=yes
,
am_cv_langinfo_codeset=no
)
[am_cv_langinfo_codeset=yes]
,
[am_cv_langinfo_codeset=no]
)
])
if test $am_cv_langinfo_codeset = yes; then
AC_DEFINE(
HAVE_LANGINFO_CODESET, 1
,
AC_DEFINE(
[HAVE_LANGINFO_CODESET], [1]
,
[Define if you have <langinfo.h> and nl_langinfo(CODESET).])
fi
])
m4/fcntl-o.m4
0 → 100644
View file @
830fd6fc
# fcntl-o.m4 serial 1
dnl Copyright (C) 2006, 2009-2010 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.
dnl Written by Paul Eggert.
# Test whether the flags O_NOATIME and O_NOFOLLOW actually work.
# Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise.
# Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise.
AC_DEFUN([gl_FCNTL_O_FLAGS],
[
dnl Persuade glibc <fcntl.h> to define O_NOATIME and O_NOFOLLOW.
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h],
[AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#ifndef O_NOATIME
#define O_NOATIME 0
#endif
#ifndef O_NOFOLLOW
#define O_NOFOLLOW 0
#endif
static int const constants[] =
{
O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
};
]],
[[
int status = !constants;
{
static char const sym[] = "conftest.sym";
if (symlink (".", sym) != 0
|| close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
status |= 32;
unlink (sym);
}
{
static char const file[] = "confdefs.h";
int fd = open (file, O_RDONLY | O_NOATIME);
char c;
struct stat st0, st1;
if (fd < 0
|| fstat (fd, &st0) != 0
|| sleep (1) != 0
|| read (fd, &c, 1) != 1
|| close (fd) != 0
|| stat (file, &st1) != 0
|| st0.st_atime != st1.st_atime)
status |= 64;
}
return status;]])],
[gl_cv_header_working_fcntl_h=yes],
[case $? in #(
32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
*) gl_cv_header_working_fcntl_h='no';;
esac],
[gl_cv_header_working_fcntl_h=cross-compiling])])
case $gl_cv_header_working_fcntl_h in #(
*O_NOATIME* | no | cross-compiling) ac_val=0;; #(
*) ac_val=1;;
esac
AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val],
[Define to 1 if O_NOATIME works.])
case $gl_cv_header_working_fcntl_h in #(
*O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
*) ac_val=1;;
esac
AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val],
[Define to 1 if O_NOFOLLOW works.])
])
m4/gettext.m4
View file @
830fd6fc
# gettext.m4 serial 6
0 (gettext-0.17
)
dnl Copyright (C) 1995-20
07
Free Software Foundation, Inc.
# gettext.m4 serial 6
3 (gettext-0.18
)
dnl Copyright (C) 1995-20
10
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.
...
...
@@ -15,7 +15,7 @@ dnl They are *not* in the public domain.
dnl Authors:
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006
, 2008-2010
.
dnl Macro to add for using GNU gettext.
...
...
@@ -60,6 +60,8 @@ AC_DEFUN([AM_GNU_GETTEXT],
ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
[errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
])])])])])
ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
[AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
[errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
])])])])
...
...
@@ -123,11 +125,11 @@ AC_DEFUN([AM_GNU_GETTEXT],
gt_use_preinstalled_gnugettext=no
ifelse(gt_included_intl, yes, [
AC_MSG_CHECKING([whether included gettext is requested])
AC_ARG_WITH(
included-gettext
,
AC_ARG_WITH(
[included-gettext]
,
[ --with-included-gettext use the GNU gettext library included here],
nls_cv_force_use_gnu_gettext=$withval,
nls_cv_force_use_gnu_gettext=no)
AC_MSG_RESULT(
$nls_cv_force_use_gnu_gettext
)
AC_MSG_RESULT(
[$nls_cv_force_use_gnu_gettext]
)
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
...
...
@@ -267,7 +269,7 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
AC_DEFINE(
ENABLE_NLS, 1
,
AC_DEFINE(
[ENABLE_NLS], [1]
,
[Define to 1 if translation of program messages to the user's native language
is requested.])
else
...
...
@@ -301,9 +303,9 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a
fi
dnl For backward compatibility. Some packages may be using this.
AC_DEFINE(
HAVE_GETTEXT, 1
,
AC_DEFINE(
[HAVE_GETTEXT], [1]
,
[Define if the GNU gettext() function is already present or preinstalled.])
AC_DEFINE(
HAVE_DCGETTEXT, 1
,
AC_DEFINE(
[HAVE_DCGETTEXT], [1]
,
[Define if the GNU dcgettext() function is already present or preinstalled.])
fi
...
...
@@ -319,9 +321,9 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a
fi
dnl Make all variables we use known to autoconf.
AC_SUBST(
BUILD_INCLUDED_LIBINTL
)
AC_SUBST(
USE_INCLUDED_LIBINTL
)
AC_SUBST(
CATOBJEXT
)
AC_SUBST(
[BUILD_INCLUDED_LIBINTL]
)
AC_SUBST(
[USE_INCLUDED_LIBINTL]
)
AC_SUBST(
[CATOBJEXT]
)
dnl For backward compatibility. Some configure.ins may be using this.
nls_cv_header_intl=
...
...
@@ -329,36 +331,36 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a
dnl For backward compatibility. Some Makefiles may be using this.
DATADIRNAME=share
AC_SUBST(
DATADIRNAME
)
AC_SUBST(
[DATADIRNAME]
)
dnl For backward compatibility. Some Makefiles may be using this.
INSTOBJEXT=.mo
AC_SUBST(
INSTOBJEXT
)
AC_SUBST(
[INSTOBJEXT]
)
dnl For backward compatibility. Some Makefiles may be using this.
GENCAT=gencat
AC_SUBST(
GENCAT
)
AC_SUBST(
[GENCAT]
)
dnl For backward compatibility. Some Makefiles may be using this.
INTLOBJS=
if test "$USE_INCLUDED_LIBINTL" = yes; then
INTLOBJS="\$(GETTOBJS)"
fi
AC_SUBST(
INTLOBJS
)
AC_SUBST(
[INTLOBJS]
)
dnl Enable libtool support if the surrounding package wishes it.
INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
AC_SUBST(
INTL_LIBTOOL_SUFFIX_PREFIX
)
AC_SUBST(
[INTL_LIBTOOL_SUFFIX_PREFIX]
)
])
dnl For backward compatibility. Some Makefiles may be using this.
INTLLIBS="$LIBINTL"
AC_SUBST(
INTLLIBS
)
AC_SUBST(
[INTLLIBS]
)
dnl Make all documented variables known to autoconf.
AC_SUBST(
LIBINTL
)
AC_SUBST(
LTLIBINTL
)
AC_SUBST(
POSUB
)
AC_SUBST(
[LIBINTL]
)
AC_SUBST(
[LTLIBINTL]
)
AC_SUBST(
[POSUB]
)
])
...
...
m4/glibc2.m4
View file @
830fd6fc
# glibc2.m4 serial
1
dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
# glibc2.m4 serial
2
dnl Copyright (C) 2000-2002, 2004
, 2008-2010
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.
...
...
@@ -9,22 +9,22 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gt_GLIBC2],
[
AC_CACHE_CHECK(
whether we are using the GNU C Library 2 or newer
,
ac_cv_gnu_library_2
,
AC_CACHE_CHECK(
[whether we are using the GNU C Library 2 or newer]
,
[ac_cv_gnu_library_2]
,
[AC_EGREP_CPP([Lucky GNU user],
[
[
#include <features.h>
#ifdef __GNU_LIBRARY__
#if (__GLIBC__ >= 2)
Lucky GNU user
#endif
#endif
],
ac_cv_gnu_library_2=yes
,
ac_cv_gnu_library_2=no
)
],
[ac_cv_gnu_library_2=yes]
,
[ac_cv_gnu_library_2=no]
)
]
)
AC_SUBST(
GLIBC2
)
AC_SUBST(
[GLIBC2]
)
GLIBC2="$ac_cv_gnu_library_2"
]
)
m4/glibc21.m4
View file @
830fd6fc
# glibc21.m4 serial
3
dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
# glibc21.m4 serial
4
dnl Copyright (C) 2000-2002, 2004
, 2008-2010
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.
...
...
@@ -9,22 +9,22 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_GLIBC21],
[
AC_CACHE_CHECK(
whether we are using the GNU C Library 2.1 or newer
,
ac_cv_gnu_library_2_1
,
AC_CACHE_CHECK(
[whether we are using the GNU C Library 2.1 or newer]
,
[ac_cv_gnu_library_2_1]
,
[AC_EGREP_CPP([Lucky GNU user],
[
[
#include <features.h>
#ifdef __GNU_LIBRARY__
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
Lucky GNU user
#endif
#endif
],
ac_cv_gnu_library_2_1=yes
,
ac_cv_gnu_library_2_1=no
)
],
[ac_cv_gnu_library_2_1=yes]
,
[ac_cv_gnu_library_2_1=no]
)
]
)
AC_SUBST(
GLIBC21
)
AC_SUBST(
[GLIBC21]
)
GLIBC21="$ac_cv_gnu_library_2_1"
]
)
m4/iconv.m4
View file @
830fd6fc
# iconv.m4 serial
AM6 (gettext-0.17
)
dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc.
# iconv.m4 serial
11 (gettext-0.18.1
)
dnl Copyright (C) 2000-2002, 2007
-2010
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.
...
...
@@ -34,7 +34,7 @@ AC_DEFUN([AM_ICONV_LINK],
am_save_CPPFLAGS="$CPPFLAGS"
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
AC_CACHE_CHECK([for iconv],
am_cv_func_iconv
, [
AC_CACHE_CHECK([for iconv],
[am_cv_func_iconv]
, [
am_cv_func_iconv="no, consider installing GNU libiconv"
am_cv_lib_iconv=no
AC_TRY_LINK([#include <stdlib.h>
...
...
@@ -42,7 +42,7 @@ AC_DEFUN([AM_ICONV_LINK],
[iconv_t cd = iconv_open("","");
iconv(cd,NULL,NULL,NULL,NULL);
iconv_close(cd);],
am_cv_func_iconv=yes
)
[am_cv_func_iconv=yes]
)
if test "$am_cv_func_iconv" != yes; then
am_save_LIBS="$LIBS"
LIBS="$LIBS $LIBICONV"
...
...
@@ -51,14 +51,14 @@ AC_DEFUN([AM_ICONV_LINK],
[iconv_t cd = iconv_open("","");
iconv(cd,NULL,NULL,NULL,NULL);
iconv_close(cd);],
am_cv_lib_iconv=yes
am_cv_func_iconv=yes
)
[am_cv_lib_iconv=yes]
[am_cv_func_iconv=yes]
)
LIBS="$am_save_LIBS"
fi
])
if test "$am_cv_func_iconv" = yes; then
AC_CACHE_CHECK([for working iconv],
am_cv_func_iconv_works
, [
dnl This tests against bugs in AIX 5.1
and HP-UX 11.11
.
AC_CACHE_CHECK([for working iconv],
[am_cv_func_iconv_works]
, [
dnl This tests against bugs in AIX 5.1
, HP-UX 11.11, Solaris 10
.
am_save_LIBS="$LIBS"
if test $am_cv_lib_iconv = yes; then
LIBS="$LIBS $LIBICONV"
...
...
@@ -87,6 +87,25 @@ int main ()
return 1;
}
}
/* Test against Solaris 10 bug: Failures are not distinguishable from
successful returns. */
{
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
if (cd_ascii_to_88591 != (iconv_t)(-1))
{
static const char input[] = "\263";
char buf[10];
const char *inptr = input;
size_t inbytesleft = strlen (input);
char *outptr = buf;
size_t outbytesleft = sizeof (buf);
size_t res = iconv (cd_ascii_to_88591,
(char **) &inptr, &inbytesleft,
&outptr, &outbytesleft);
if (res == 0)
return 1;
}
}
#if 0 /* This bug could be worked around by the caller. */
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
{
...
...
@@ -134,7 +153,7 @@ int main ()
am_func_iconv=no am_cv_lib_iconv=no
fi
if test "$am_func_iconv" = yes; then
AC_DEFINE(
HAVE_ICONV, 1
,
AC_DEFINE(
[HAVE_ICONV], [1]
,
[Define if you have the iconv() function and it works.])
fi
if test "$am_cv_lib_iconv" = yes; then
...
...
@@ -147,16 +166,31 @@ int main ()
LIBICONV=
LTLIBICONV=
fi
AC_SUBST(
LIBICONV
)
AC_SUBST(
LTLIBICONV
)
AC_SUBST(
[LIBICONV]
)
AC_SUBST(
[LTLIBICONV]
)
])
AC_DEFUN([AM_ICONV],
dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
dnl avoid warnings like
dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
dnl This is tricky because of the way 'aclocal' is implemented:
dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
dnl Otherwise aclocal's initial scan pass would miss the macro definition.
dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
dnl warnings.
m4_define([gl_iconv_AC_DEFUN],
m4_version_prereq([2.64],
[[AC_DEFUN_ONCE(
[$1], [$2])]],
[[AC_DEFUN(
[$1], [$2])]]))
gl_iconv_AC_DEFUN([AM_ICONV],
[
AM_ICONV_LINK
if test "$am_cv_func_iconv" = yes; then
AC_MSG_CHECKING([for iconv declaration])
AC_CACHE_VAL(
am_cv_proto_iconv
, [
AC_CACHE_VAL(
[am_cv_proto_iconv]
, [
AC_TRY_COMPILE([
#include <stdlib.h>
#include <iconv.h>
...
...
@@ -169,12 +203,12 @@ size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si
#else
size_t iconv();
#endif
], [],
am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const"
)
], [],
[am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]
)
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
AC_MSG_RESULT([
$]{ac_t:-
}[$]am_cv_proto_iconv
)
AC_DEFINE_UNQUOTED(
ICONV_CONST, $am_cv_proto_iconv_arg1
,
AC_MSG_RESULT([
$am_cv_proto_iconv]
)
AC_DEFINE_UNQUOTED(
[ICONV_CONST], [$am_cv_proto_iconv_arg1]
,
[Define as const if the declaration of iconv() needs const.])
fi
])
m4/intdiv0.m4
View file @
830fd6fc
# intdiv0.m4 serial
2 (gettext-0.17
)
dnl Copyright (C) 2002, 2007 Free Software Foundation, Inc.
# intdiv0.m4 serial
3 (gettext-0.18
)
dnl Copyright (C) 2002, 2007
-2010
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.
...
...
@@ -61,7 +61,7 @@ int main ()
nan = y / y;
exit (1);
}
],
gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no
,
],
[gt_cv_int_divbyzero_sigfpe=yes], [gt_cv_int_divbyzero_sigfpe=no]
,
[
# Guess based on the CPU.
changequote(,)dnl
...
...
@@ -79,6 +79,6 @@ changequote([,])dnl
*yes) value=1;;
*) value=0;;
esac
AC_DEFINE_UNQUOTED(
INTDIV0_RAISES_SIGFPE, $value
,
AC_DEFINE_UNQUOTED(
[INTDIV0_RAISES_SIGFPE], [$value]
,
[Define if integer division by zero raises signal SIGFPE.])
])
m4/intl.m4
View file @
830fd6fc
# intl.m4 serial
8 (gettext-0.17
)
dnl Copyright (C) 1995-200
7
Free Software Foundation, Inc.
# intl.m4 serial
17 (gettext-0.18
)
dnl Copyright (C) 1995-200
9
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.
...
...
@@ -15,9 +15,9 @@ dnl They are *not* in the public domain.
dnl Authors:
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
dnl Bruno Haible <haible@clisp.cons.org>, 2000-200
6
.
dnl Bruno Haible <haible@clisp.cons.org>, 2000-200
9
.
AC_PREREQ(
2.52
)
AC_PREREQ(
[2.52]
)
dnl Checks for all prerequisites of the intl subdirectory,
dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
...
...
@@ -40,14 +40,24 @@ AC_DEFUN([AM_INTL_SUBDIR],
AC_REQUIRE([gt_PRINTF_POSIX])
AC_REQUIRE([gl_GLIBC21])dnl
AC_REQUIRE([gl_XSIZE])dnl
AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl
AC_REQUIRE([gt_INTL_MACOSX])dnl
dnl Support for automake's --enable-silent-rules.
case "$enable_silent_rules" in
yes) INTL_DEFAULT_VERBOSITY=0;;
no) INTL_DEFAULT_VERBOSITY=1;;
*) INTL_DEFAULT_VERBOSITY=1;;
esac
AC_SUBST([INTL_DEFAULT_VERBOSITY])
AC_CHECK_TYPE([ptrdiff_t], ,
[AC_DEFINE([ptrdiff_t], [long],
[Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
])
AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen])
AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \
snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
dnl Use the _snprintf function only if it is declared (because on NetBSD it
dnl is defined as a weak alias of snprintf; we prefer to use the latter).
...
...
@@ -78,6 +88,12 @@ AC_DEFUN([AM_INTL_SUBDIR],
HAVE_SNPRINTF=0
fi
AC_SUBST([HAVE_SNPRINTF])
if test "$ac_cv_func_newlocale" = yes; then
HAVE_NEWLOCALE=1
else
HAVE_NEWLOCALE=0
fi
AC_SUBST([HAVE_NEWLOCALE])
if test "$ac_cv_func_wprintf" = yes; then
HAVE_WPRINTF=1
else
...
...
@@ -146,22 +162,31 @@ AC_DEFUN([AM_INTL_SUBDIR],
#define __libc_lock_lock_recursive gl_recursive_lock_lock
#define __libc_lock_unlock_recursive gl_recursive_lock_unlock
#define glthread_in_use libintl_thread_in_use
#define glthread_lock_init libintl_lock_init
#define glthread_lock_lock libintl_lock_lock
#define glthread_lock_unlock libintl_lock_unlock
#define glthread_lock_destroy libintl_lock_destroy
#define glthread_rwlock_init libintl_rwlock_init
#define glthread_rwlock_rdlock libintl_rwlock_rdlock
#define glthread_rwlock_wrlock libintl_rwlock_wrlock
#define glthread_rwlock_unlock libintl_rwlock_unlock
#define glthread_rwlock_destroy libintl_rwlock_destroy
#define glthread_recursive_lock_init libintl_recursive_lock_init
#define glthread_recursive_lock_lock libintl_recursive_lock_lock
#define glthread_recursive_lock_unlock libintl_recursive_lock_unlock
#define glthread_recursive_lock_destroy libintl_recursive_lock_destroy
#define glthread_once libintl_once
#define glthread_once_call libintl_once_call
#define glthread_lock_init_func libintl_lock_init_func
#define glthread_lock_lock_func libintl_lock_lock_func
#define glthread_lock_unlock_func libintl_lock_unlock_func
#define glthread_lock_destroy_func libintl_lock_destroy_func
#define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded
#define glthread_rwlock_init_func libintl_rwlock_init_func
#define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded
#define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func
#define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded
#define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func
#define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded
#define glthread_rwlock_unlock_func libintl_rwlock_unlock_func
#define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded
#define glthread_rwlock_destroy_func libintl_rwlock_destroy_func
#define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded
#define glthread_recursive_lock_init_func libintl_recursive_lock_init_func
#define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded
#define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func
#define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded
#define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func
#define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded
#define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func
#define glthread_once_func libintl_once_func
#define glthread_once_singlethreaded libintl_once_singlethreaded
#define glthread_once_multithreaded libintl_once_multithreaded
])
])
...
...
@@ -198,40 +223,24 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE],
AC_TRY_LINK(
[int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }],
[],
[AC_DEFINE([HAVE_BUILTIN_EXPECT],
1
,
[AC_DEFINE([HAVE_BUILTIN_EXPECT],
[1]
,
[Define to 1 if the compiler understands __builtin_expect.])])
AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h])
AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \
stpcpy strcasecmp strdup strtoul tsearch
argz_count argz_stringify
\
argz_next __fsetlocking])
stpcpy strcasecmp strdup strtoul tsearch
uselocale argz_count
\
argz_
stringify argz_
next __fsetlocking])
dnl Use the *_unlocked functions only if they are declared.
dnl (because some of them were defined without being declared in Solaris
dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
dnl on Solaris 2.5.1 to run on Solaris 2.6).
dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
gt_CHECK_DECL(
feof_unlocked
, [#include <stdio.h>])
gt_CHECK_DECL(
fgets_unlocked
, [#include <stdio.h>])
gt_CHECK_DECL(
[feof_unlocked]
, [#include <stdio.h>])
gt_CHECK_DECL(
[fgets_unlocked]
, [#include <stdio.h>])
AM_ICONV
dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined,
dnl and a _NL_LOCALE_NAME macro always.
AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name,
[AC_TRY_LINK([#include <langinfo.h>
#include <locale.h>],
[char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
return !cs;
],
gt_cv_nl_locale_name=yes,
gt_cv_nl_locale_name=no)
])
if test $gt_cv_nl_locale_name = yes; then
AC_DEFINE(HAVE_NL_LOCALE_NAME, 1,
[Define if you have <langinfo.h> and it defines the NL_LOCALE_NAME macro if _GNU_SOURCE is defined.])
fi
dnl intl/plural.c is generated from intl/plural.y. It requires bison,
dnl because plural.y uses bison specific features. It requires at least
dnl bison-1.26 because earlier versions generate a plural.c that doesn't
...
...
@@ -269,7 +278,7 @@ dnl gt_CHECK_DECL(FUNC, INCLUDES)
dnl Check whether a function is declared.
AC_DEFUN([gt_CHECK_DECL],
[
AC_CACHE_CHECK([whether $1 is declared],
ac_cv_have_decl_$1
,
AC_CACHE_CHECK([whether $1 is declared],
[ac_cv_have_decl_$1]
,
[AC_TRY_COMPILE([$2], [
#ifndef $1
char *p = (char *) $1;
...
...
m4/intldir.m4
View file @
830fd6fc
# intldir.m4 serial
1 (gettext-0.16
)
dnl Copyright (C) 2006 Free Software Foundation, Inc.
# intldir.m4 serial
2 (gettext-0.18
)
dnl Copyright (C) 2006
, 2009-2010
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.
...
...
@@ -13,7 +13,7 @@ dnl by the GNU Library General Public License, and the rest of the GNU
dnl gettext package package is covered by the GNU General Public License.
dnl They are *not* in the public domain.
AC_PREREQ(
2.52
)
AC_PREREQ(
[2.52]
)
dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory.
AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], [])
m4/intlmacosx.m4
View file @
830fd6fc
# intlmacosx.m4 serial
1 (gettext-0.17
)
dnl Copyright (C) 2004-20
07
Free Software Foundation, Inc.
# intlmacosx.m4 serial
3 (gettext-0.18
)
dnl Copyright (C) 2004-20
10
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.
...
...
@@ -19,7 +19,7 @@ AC_DEFUN([gt_INTL_MACOSX],
[
dnl Check for API introduced in MacOS X 10.2.
AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
gt_cv_func_CFPreferencesCopyAppValue
,
[gt_cv_func_CFPreferencesCopyAppValue]
,
[gt_save_LIBS="$LIBS"
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
...
...
@@ -28,11 +28,11 @@ AC_DEFUN([gt_INTL_MACOSX],
[gt_cv_func_CFPreferencesCopyAppValue=no])
LIBS="$gt_save_LIBS"])
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE],
1
,
AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE],
[1]
,
[Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
fi
dnl Check for API introduced in MacOS X 10.3.
AC_CACHE_CHECK([for CFLocaleCopyCurrent],
gt_cv_func_CFLocaleCopyCurrent
,
AC_CACHE_CHECK([for CFLocaleCopyCurrent],
[gt_cv_func_CFLocaleCopyCurrent]
,
[gt_save_LIBS="$LIBS"
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
...
...
@@ -40,7 +40,7 @@ AC_DEFUN([gt_INTL_MACOSX],
[gt_cv_func_CFLocaleCopyCurrent=no])
LIBS="$gt_save_LIBS"])
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
AC_DEFINE([HAVE_CFLOCALECOPYCURRENT],
1
,
AC_DEFINE([HAVE_CFLOCALECOPYCURRENT],
[1]
,
[Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
fi
INTL_MACOSX_LIBS=
...
...
m4/intmax.m4
View file @
830fd6fc
# intmax.m4 serial
3 (gettext-0.16
)
dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
# intmax.m4 serial
5 (gettext-0.18
)
dnl Copyright (C) 2002-2005
, 2008-2010
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.
...
...
@@ -12,7 +12,7 @@ AC_DEFUN([gt_TYPE_INTMAX_T],
[
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
AC_CACHE_CHECK(
for intmax_t, gt_cv_c_intmax_t
,
AC_CACHE_CHECK(
[for intmax_t], [gt_cv_c_intmax_t]
,
[AC_TRY_COMPILE([
#include <stddef.h>
#include <stdlib.h>
...
...
@@ -24,10 +24,10 @@ AC_DEFUN([gt_TYPE_INTMAX_T],
#endif
], [intmax_t x = -1;
return !x;],
gt_cv_c_intmax_t=yes
,
gt_cv_c_intmax_t=no
)])
[gt_cv_c_intmax_t=yes]
,
[gt_cv_c_intmax_t=no]
)])
if test $gt_cv_c_intmax_t = yes; then
AC_DEFINE(
HAVE_INTMAX_T, 1
,
AC_DEFINE(
[HAVE_INTMAX_T], [1]
,
[Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
fi
])
m4/inttypes-pri.m4
View file @
830fd6fc
# inttypes-pri.m4 serial
4 (gettext-0.16
)
dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc.
# inttypes-pri.m4 serial
6 (gettext-0.18
)
dnl Copyright (C) 1997-2002, 2006
, 2008-2010
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.
dnl From Bruno Haible.
AC_PREREQ(
2.52
)
AC_PREREQ(
[2.52]
)
# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
# macros to non-string values. This is the case on AIX 4.3.3.
...
...
@@ -16,17 +16,17 @@ AC_DEFUN([gt_INTTYPES_PRI],
AC_CHECK_HEADERS([inttypes.h])
if test $ac_cv_header_inttypes_h = yes; then
AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
gt_cv_inttypes_pri_broken
,
[gt_cv_inttypes_pri_broken]
,
[
AC_TRY_COMPILE([#include <inttypes.h>
#ifdef PRId32
char *p = PRId32;
#endif
], [],
gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes
)
], [],
[gt_cv_inttypes_pri_broken=no], [gt_cv_inttypes_pri_broken=yes]
)
])
fi
if test "$gt_cv_inttypes_pri_broken" = yes; then
AC_DEFINE_UNQUOTED(
PRI_MACROS_BROKEN, 1
,
AC_DEFINE_UNQUOTED(
[PRI_MACROS_BROKEN], [1]
,
[Define if <inttypes.h> exists and defines unusable PRI* macros.])
PRI_MACROS_BROKEN=1
else
...
...
m4/inttypes_h.m4
View file @
830fd6fc
# inttypes_h.m4 serial
7
dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.
# inttypes_h.m4 serial
9
dnl Copyright (C) 1997-2004, 2006
, 2008-2010
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.
...
...
@@ -11,15 +11,15 @@ dnl From Paul Eggert.
AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
[
AC_CACHE_CHECK([for inttypes.h],
gl_cv_header_inttypes_h
,
AC_CACHE_CHECK([for inttypes.h],
[gl_cv_header_inttypes_h]
,
[AC_TRY_COMPILE(
[#include <sys/types.h>
#include <inttypes.h>],
[uintmax_t i = (uintmax_t) -1; return !i;],
gl_cv_header_inttypes_h=yes
,
gl_cv_header_inttypes_h=no
)])
[gl_cv_header_inttypes_h=yes]
,
[gl_cv_header_inttypes_h=no]
)])
if test $gl_cv_header_inttypes_h = yes; then
AC_DEFINE_UNQUOTED(
HAVE_INTTYPES_H_WITH_UINTMAX, 1
,
AC_DEFINE_UNQUOTED(
[HAVE_INTTYPES_H_WITH_UINTMAX], [1]
,
[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
and declares uintmax_t. ])
fi
...
...
m4/lcmessage.m4
View file @
830fd6fc
# lcmessage.m4 serial 4 (gettext-0.14.2)
dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc.
# lcmessage.m4 serial 6 (gettext-0.18)
dnl Copyright (C) 1995-2002, 2004-2005, 2008-2010 Free Software Foundation,
dnl 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.
...
...
@@ -20,11 +21,11 @@ dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
AC_DEFUN([gt_LC_MESSAGES],
[
AC_CACHE_CHECK([for LC_MESSAGES],
gt_cv_val_LC_MESSAGES
,
AC_CACHE_CHECK([for LC_MESSAGES],
[gt_cv_val_LC_MESSAGES]
,
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no
)])
[gt_cv_val_LC_MESSAGES=yes], [gt_cv_val_LC_MESSAGES=no]
)])
if test $gt_cv_val_LC_MESSAGES = yes; then
AC_DEFINE(
HAVE_LC_MESSAGES, 1
,
AC_DEFINE(
[HAVE_LC_MESSAGES], [1]
,
[Define if your <locale.h> file defines LC_MESSAGES.])
fi
])
m4/lib-ld.m4
View file @
830fd6fc
# lib-ld.m4 serial
3 (gettext-0.13
)
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
# lib-ld.m4 serial
4 (gettext-0.18
)
dnl Copyright (C) 1996-2003
, 2009-2010
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.
...
...
@@ -10,7 +10,7 @@ dnl with libtool.m4.
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
AC_DEFUN([AC_LIB_PROG_LD_GNU],
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld],
acl_cv_prog_gnu_ld
,
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld],
[acl_cv_prog_gnu_ld]
,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
...
...
@@ -23,7 +23,7 @@ with_gnu_ld=$acl_cv_prog_gnu_ld
dnl From libtool-1.4. Sets the variable LD.
AC_DEFUN([AC_LIB_PROG_LD],
[AC_ARG_WITH(
gnu-ld
,
[AC_ARG_WITH(
[gnu-ld]
,
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
...
...
@@ -59,7 +59,7 @@ if test "$GCC" = yes; then
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
...
...
@@ -77,7 +77,7 @@ elif test "$with_gnu_ld" = yes; then
else
AC_MSG_CHECKING([for non-GNU ld])
fi
AC_CACHE_VAL(
acl_cv_path_LD
,
AC_CACHE_VAL(
[acl_cv_path_LD]
,
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
...
...
@@ -89,9 +89,9 @@ AC_CACHE_VAL(acl_cv_path_LD,
# Break only if it was the GNU/non-GNU ld that we prefer.
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
*GNU* | *'with BFD'*)
test "$with_gnu_ld" != no && break ;;
test "$with_gnu_ld" != no && break ;;
*)
test "$with_gnu_ld" != yes && break ;;
test "$with_gnu_ld" != yes && break ;;
esac
fi
done
...
...
@@ -101,9 +101,9 @@ else
fi])
LD="$acl_cv_path_LD"
if test -n "$LD"; then
AC_MSG_RESULT(
$LD
)
AC_MSG_RESULT(
[$LD]
)
else
AC_MSG_RESULT(
no
)
AC_MSG_RESULT(
[no]
)
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_LIB_PROG_LD_GNU
...
...
m4/lib-link.m4
View file @
830fd6fc
This diff is collapsed.
Click to expand it.
m4/lib-prefix.m4
View file @
830fd6fc
# lib-prefix.m4 serial
5 (gettext-0.15
)
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
# lib-prefix.m4 serial
7 (gettext-0.18
)
dnl Copyright (C) 2001-2005
, 2008-2010
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.
...
...
@@ -153,33 +153,72 @@ AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
prefix="$acl_save_prefix"
])
dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
dnl the basename of the libdir, either "lib" or "lib64".
dnl AC_LIB_PREPARE_MULTILIB creates
dnl - a variable acl_libdirstem, containing the basename of the libdir, either
dnl "lib" or "lib64" or "lib/64",
dnl - a variable acl_libdirstem2, as a secondary possible value for
dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
dnl "lib/amd64".
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
[
dnl There is no formal standard regarding lib and lib64. The current
dnl practice is that on a system supporting 32-bit and 64-bit instruction
dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
dnl libraries go under $prefix/lib. We determine the compiler's default
dnl mode by looking at the compiler's library search path. If at least
dnl of its elements ends in /lib64 or points to a directory whose absolute
dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
dnl default, namely "lib".
dnl There is no formal standard regarding lib and lib64.
dnl On glibc systems, the current practice is that on a system supporting
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
dnl the compiler's default mode by looking at the compiler's library search
dnl path. If at least one of its elements ends in /lib64 or points to a
dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
dnl Otherwise we use the default, namely "lib".
dnl On Solaris systems, the current practice is that on a system supporting
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
AC_REQUIRE([AC_CANONICAL_HOST])
acl_libdirstem=lib
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
if test -n "$searchpath"; then
acl_save_IFS="${IFS= }"; IFS=":"
for searchdir in $searchpath; do
if test -d "$searchdir"; then
case "$searchdir" in
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
*) searchdir=`cd "$searchdir" && pwd`
case "$searchdir" in
*/lib64 ) acl_libdirstem=lib64 ;;
esac ;;
acl_libdirstem2=
case "$host_os" in
solaris*)
dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
dnl symlink is missing, so we set acl_libdirstem2 too.
AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
[AC_EGREP_CPP([sixtyfour bits], [
#ifdef _LP64
sixtyfour bits
#endif
], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
])
if test $gl_cv_solaris_64bit = yes; then
acl_libdirstem=lib/64
case "$host_cpu" in
sparc*) acl_libdirstem2=lib/sparcv9 ;;
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
esac
fi
done
IFS="$acl_save_IFS"
fi
;;
*)
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
if test -n "$searchpath"; then
acl_save_IFS="${IFS= }"; IFS=":"
for searchdir in $searchpath; do
if test -d "$searchdir"; then
case "$searchdir" in
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
*/../ | */.. )
# Better ignore directories of this form. They are misleading.
;;
*) searchdir=`cd "$searchdir" && pwd`
case "$searchdir" in
*/lib64 ) acl_libdirstem=lib64 ;;
esac ;;
esac
fi
done
IFS="$acl_save_IFS"
fi
;;
esac
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
])
m4/lock.m4
View file @
830fd6fc
This diff is collapsed.
Click to expand it.
m4/longlong.m4
View file @
830fd6fc
# longlong.m4 serial 1
3
dnl Copyright (C) 1999-2007 Free Software Foundation, Inc.
# longlong.m4 serial 1
4
dnl Copyright (C) 1999-2007
, 2009-2010
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.
...
...
@@ -20,33 +20,33 @@ AC_DEFUN([AC_TYPE_LONG_LONG_INT],
[AC_LINK_IFELSE(
[_AC_TYPE_LONG_LONG_SNIPPET],
[dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
dnl If cross compiling, assume the bug isn't important, since
dnl nobody cross compiles for this platform as far as we know.
AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
[[@%:@include <limits.h>
@%:@ifndef LLONG_MAX
@%:@ define HALF \
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
@%:@ define LLONG_MAX (HALF - 1 + HALF)
@%:@endif]],
[[long long int n = 1;
int i;
for (i = 0; ; i++)
{
long long int m = n << i;
if (m >> i != n)
return 1;
if (LLONG_MAX / 2 < m)
break;
}
return 0;]])],
[ac_cv_type_long_long_int=yes],
[ac_cv_type_long_long_int=no],
[ac_cv_type_long_long_int=yes])],
dnl If cross compiling, assume the bug isn't important, since
dnl nobody cross compiles for this platform as far as we know.
AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
[[@%:@include <limits.h>
@%:@ifndef LLONG_MAX
@%:@ define HALF \
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
@%:@ define LLONG_MAX (HALF - 1 + HALF)
@%:@endif]],
[[long long int n = 1;
int i;
for (i = 0; ; i++)
{
long long int m = n << i;
if (m >> i != n)
return 1;
if (LLONG_MAX / 2 < m)
break;
}
return 0;]])],
[ac_cv_type_long_long_int=yes],
[ac_cv_type_long_long_int=no],
[ac_cv_type_long_long_int=yes])],
[ac_cv_type_long_long_int=no])])
if test $ac_cv_type_long_long_int = yes; then
AC_DEFINE([HAVE_LONG_LONG_INT],
1
,
AC_DEFINE([HAVE_LONG_LONG_INT],
[1]
,
[Define to 1 if the system has the type `long long int'.])
fi
])
...
...
@@ -69,7 +69,7 @@ AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
[ac_cv_type_unsigned_long_long_int=yes],
[ac_cv_type_unsigned_long_long_int=no])])
if test $ac_cv_type_unsigned_long_long_int = yes; then
AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT],
1
,
AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT],
[1]
,
[Define to 1 if the system has the type `unsigned long long int'.])
fi
])
...
...
@@ -82,28 +82,25 @@ AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
[
AC_LANG_PROGRAM(
[[/* Test preprocessor. */
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
error in preprocessor;
#endif
#if ! (18446744073709551615ULL <= -1ull)
error in preprocessor;
#endif
[[/* For now, do not test the preprocessor; as of 2007 there are too many
implementations with broken preprocessors. Perhaps this can
be revisited in 2012. In the meantime, code should not expect
#if to work with literals wider than 32 bits. */
/* Test literals. */
long long int ll = 9223372036854775807ll;
long long int nll = -9223372036854775807LL;
unsigned long long int ull = 18446744073709551615ULL;
/* Test constant expressions. */
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
? 1 : -1)];
? 1 : -1)];
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
? 1 : -1)];
? 1 : -1)];
int i = 63;]],
[[/* Test availability of runtime routines for shift and division. */
long long int llmax = 9223372036854775807ll;
unsigned long long int ullmax = 18446744073709551615ull;
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
| (llmax / ll) | (llmax % ll)
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
| (ullmax / ull) | (ullmax % ull));]])
| (llmax / ll) | (llmax % ll)
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
| (ullmax / ull) | (ullmax % ull));]])
])
m4/nls.m4
View file @
830fd6fc
# nls.m4 serial 3 (gettext-0.15)
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
# nls.m4 serial 5 (gettext-0.18)
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
dnl 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.
...
...
@@ -17,15 +18,15 @@ dnl Authors:
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
AC_PREREQ(
2.50
)
AC_PREREQ(
[2.50]
)
AC_DEFUN([AM_NLS],
[
AC_MSG_CHECKING([whether NLS is requested])
dnl Default is enabled NLS
AC_ARG_ENABLE(
nls
,
AC_ARG_ENABLE(
[nls]
,
[ --disable-nls do not use Native Language Support],
USE_NLS=$enableval, USE_NLS=yes)
AC_MSG_RESULT(
$USE_NLS
)
AC_SUBST(
USE_NLS
)
AC_MSG_RESULT(
[$USE_NLS]
)
AC_SUBST(
[USE_NLS]
)
])
m4/po.m4
View file @
830fd6fc
# po.m4 serial 1
5 (gettext-0.17
)
dnl Copyright (C) 1995-20
07
Free Software Foundation, Inc.
# po.m4 serial 1
7 (gettext-0.18
)
dnl Copyright (C) 1995-20
10
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.
...
...
@@ -17,7 +17,7 @@ dnl Authors:
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
AC_PREREQ(
2.50
)
AC_PREREQ(
[2.50]
)
dnl Checks for all prerequisites of the po subdirectory.
AC_DEFUN([AM_PO_SUBDIRS],
...
...
@@ -29,7 +29,7 @@ AC_DEFUN([AM_PO_SUBDIRS],
dnl Release version of the gettext macros. This is used to ensure that
dnl the gettext macros and po/Makefile.in.in are in sync.
AC_SUBST([GETTEXT_MACRO_VERSION], [0.1
7
])
AC_SUBST([GETTEXT_MACRO_VERSION], [0.1
8
])
dnl Perform the following tests also if --disable-nls has been given,
dnl because they are needed for "make dist" to work.
...
...
@@ -41,7 +41,7 @@ AC_DEFUN([AM_PO_SUBDIRS],
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
:)
AC_PATH_PROG(
GMSGFMT, gmsgfmt, $MSGFMT
)
AC_PATH_PROG(
[GMSGFMT], [gmsgfmt], [$MSGFMT]
)
dnl Test whether it is GNU msgfmt >= 0.15.
changequote(,)dnl
...
...
m4/printf-posix.m4
View file @
830fd6fc
# printf-posix.m4 serial
3 (gettext-0.17
)
dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc.
# printf-posix.m4 serial
5 (gettext-0.18
)
dnl Copyright (C) 2003, 2007
, 2009-2010
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.
...
...
@@ -27,17 +27,18 @@ int main ()
return (strcmp (buf, "55 33") != 0);
}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
[
AC_EGREP_CPP(
notposix
, [
AC_EGREP_CPP(
[notposix]
, [
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
notposix
#endif
], gt_cv_func_printf_posix="guessing no",
gt_cv_func_printf_posix="guessing yes")
],
[gt_cv_func_printf_posix="guessing no"],
[gt_cv_func_printf_posix="guessing yes"])
])
])
case $gt_cv_func_printf_posix in
*yes)
AC_DEFINE(
HAVE_POSIX_PRINTF, 1
,
AC_DEFINE(
[HAVE_POSIX_PRINTF], [1]
,
[Define if your printf() function supports format strings with positions.])
;;
esac
...
...
m4/progtest.m4
View file @
830fd6fc
# progtest.m4 serial
4 (gettext-0.14.2
)
dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
# progtest.m4 serial
6 (gettext-0.18
)
dnl Copyright (C) 1996-2003, 2005
, 2008-2010
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.
...
...
@@ -16,7 +16,7 @@ dnl They are *not* in the public domain.
dnl Authors:
dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
AC_PREREQ(
2.50
)
AC_PREREQ(
[2.50]
)
# Search path for a program which passes the given test.
...
...
@@ -55,7 +55,7 @@ rm -f conf$$.file
# Extract the first word of "$2", so it can be a program name with args.
set dummy $2; ac_word=[$]2
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(
ac_cv_path_$1
,
AC_CACHE_VAL(
[ac_cv_path_$1]
,
[case "[$]$1" in
[[\\/]]* | ?:[[\\/]]*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
...
...
@@ -84,9 +84,9 @@ ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
esac])dnl
$1="$ac_cv_path_$1"
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
AC_MSG_RESULT([$]
$1
)
AC_MSG_RESULT([$]
[$1]
)
else
AC_MSG_RESULT(
no
)
AC_MSG_RESULT(
[no]
)
fi
AC_SUBST(
$1
)dnl
AC_SUBST(
[$1]
)dnl
])
m4/size_max.m4
View file @
830fd6fc
# size_max.m4 serial
6
dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc.
# size_max.m4 serial
9
dnl Copyright (C) 2003, 2005-2006
, 2008-2010
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.
...
...
@@ -8,10 +8,9 @@ dnl From Bruno Haible.
AC_DEFUN([gl_SIZE_MAX],
[
AC_CHECK_HEADERS(
stdint.h
)
AC_CHECK_HEADERS(
[stdint.h]
)
dnl First test whether the system already has SIZE_MAX.
AC_MSG_CHECKING([for SIZE_MAX])
AC_CACHE_VAL([gl_cv_size_max], [
AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [
gl_cv_size_max=
AC_EGREP_CPP([Found it], [
#include <limits.h>
...
...
@@ -21,16 +20,16 @@ AC_DEFUN([gl_SIZE_MAX],
#ifdef SIZE_MAX
Found it
#endif
],
gl_cv_size_max=yes
)
],
[gl_cv_size_max=yes]
)
if test -z "$gl_cv_size_max"; then
dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
dnl than the type 'unsigned long'. Try hard to find a definition that can
dnl be used in a preprocessor #if, i.e. doesn't contain a cast.
AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1],
[#include <stddef.h>
#include <limits.h>],
size_t_bits_minus_1=
)
#include <limits.h>],
[size_t_bits_minus_1=]
)
AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)],
[#include <stddef.h>],
fits_in_uint=
)
[#include <stddef.h>],
[fits_in_uint=]
)
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
if test $fits_in_uint = 1; then
dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
...
...
@@ -38,7 +37,7 @@ Found it
AC_TRY_COMPILE([#include <stddef.h>
extern size_t foo;
extern unsigned long foo;
], [],
fits_in_uint=0
)
], [],
[fits_in_uint=0]
)
fi
dnl We cannot use 'expr' to simplify this expression, because 'expr'
dnl works only with 'long' integers in the host environment, while we
...
...
@@ -54,11 +53,19 @@ Found it
fi
fi
])
AC_MSG_RESULT([$gl_cv_size_max])
if test "$gl_cv_size_max" != yes; then
AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max],
[Define as the maximum value of type 'size_t', if the system doesn't define it.])
fi
dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after
dnl <stdint.h>. Remember that the #undef in AH_VERBATIM gets replaced with
dnl #define by AC_DEFINE_UNQUOTED.
AH_VERBATIM([SIZE_MAX],
[/* Define as the maximum value of type 'size_t', if the system doesn't define
it. */
#ifndef SIZE_MAX
# undef SIZE_MAX
#endif])
])
dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in.
...
...
m4/stdint_h.m4
View file @
830fd6fc
# stdint_h.m4 serial
6
dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.
# stdint_h.m4 serial
8
dnl Copyright (C) 1997-2004, 2006
, 2008-2010
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.
...
...
@@ -11,15 +11,15 @@ dnl From Paul Eggert.
AC_DEFUN([gl_AC_HEADER_STDINT_H],
[
AC_CACHE_CHECK([for stdint.h],
gl_cv_header_stdint_h
,
AC_CACHE_CHECK([for stdint.h],
[gl_cv_header_stdint_h]
,
[AC_TRY_COMPILE(
[#include <sys/types.h>
#include <stdint.h>],
[uintmax_t i = (uintmax_t) -1; return !i;],
gl_cv_header_stdint_h=yes
,
gl_cv_header_stdint_h=no
)])
[gl_cv_header_stdint_h=yes]
,
[gl_cv_header_stdint_h=no]
)])
if test $gl_cv_header_stdint_h = yes; then
AC_DEFINE_UNQUOTED(
HAVE_STDINT_H_WITH_UINTMAX, 1
,
AC_DEFINE_UNQUOTED(
[HAVE_STDINT_H_WITH_UINTMAX], [1]
,
[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
and declares uintmax_t. ])
fi
...
...
m4/threadlib.m4
0 → 100644
View file @
830fd6fc
This diff is collapsed.
Click to expand it.
m4/uintmax_t.m4
View file @
830fd6fc
# uintmax_t.m4 serial 1
0
dnl Copyright (C) 1997-2004, 2007 Free Software Foundation, Inc.
# uintmax_t.m4 serial 1
2
dnl Copyright (C) 1997-2004, 2007
-2010
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.
dnl From Paul Eggert.
AC_PREREQ(
2.13
)
AC_PREREQ(
[2.13]
)
# Define uintmax_t to 'unsigned long' or 'unsigned long long'
# if it is not already defined in <stdint.h> or <inttypes.h>.
...
...
@@ -20,11 +20,11 @@ AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
test $ac_cv_type_unsigned_long_long_int = yes \
&& ac_type='unsigned long long' \
|| ac_type='unsigned long'
AC_DEFINE_UNQUOTED(
uintmax_t, $ac_type
,
AC_DEFINE_UNQUOTED(
[uintmax_t], [$ac_type]
,
[Define to unsigned long or unsigned long long
if <stdint.h> and <inttypes.h> don't define.])
else
AC_DEFINE(
HAVE_UINTMAX_T, 1
,
AC_DEFINE(
[HAVE_UINTMAX_T], [1]
,
[Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
fi
])
m4/visibility.m4
View file @
830fd6fc
# visibility.m4 serial
1 (gettext-0.15
)
dnl Copyright (C) 2005 Free Software Foundation, Inc.
# visibility.m4 serial
3 (gettext-0.18
)
dnl Copyright (C) 2005
, 2008-2010
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.
...
...
@@ -26,18 +26,40 @@ AC_DEFUN([gl_VISIBILITY],
CFLAG_VISIBILITY=
HAVE_VISIBILITY=0
if test -n "$GCC"; then
dnl First, check whether -Werror can be added to the command line, or
dnl whether it leads to an error because of some other option that the
dnl user has put into $CC $CFLAGS $CPPFLAGS.
AC_MSG_CHECKING([whether the -Werror option is usable])
AC_CACHE_VAL([gl_cv_cc_vis_werror], [
gl_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
AC_TRY_COMPILE([], [],
[gl_cv_cc_vis_werror=yes],
[gl_cv_cc_vis_werror=no])
CFLAGS="$gl_save_CFLAGS"])
AC_MSG_RESULT([$gl_cv_cc_vis_werror])
dnl Now check whether visibility declarations are supported.
AC_MSG_CHECKING([for simple visibility declarations])
AC_CACHE_VAL(
gl_cv_cc_visibility
, [
AC_CACHE_VAL(
[gl_cv_cc_visibility]
, [
gl_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fvisibility=hidden"
dnl We use the option -Werror and a function dummyfunc, because on some
dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning
dnl "visibility attribute not supported in this configuration; ignored"
dnl at the first function definition in every compilation unit, and we
dnl don't want to use the option in this case.
if test $gl_cv_cc_vis_werror = yes; then
CFLAGS="$CFLAGS -Werror"
fi
AC_TRY_COMPILE(
[extern __attribute__((__visibility__("hidden"))) int hiddenvar;
extern __attribute__((__visibility__("default"))) int exportedvar;
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
extern __attribute__((__visibility__("default"))) int exportedfunc (void);],
extern __attribute__((__visibility__("default"))) int exportedfunc (void);
void dummyfunc (void) {}],
[],
gl_cv_cc_visibility=yes
,
gl_cv_cc_visibility=no
)
[gl_cv_cc_visibility=yes]
,
[gl_cv_cc_visibility=no]
)
CFLAGS="$gl_save_CFLAGS"])
AC_MSG_RESULT([$gl_cv_cc_visibility])
if test $gl_cv_cc_visibility = yes; then
...
...
m4/wchar_t.m4
View file @
830fd6fc
# wchar_t.m4 serial
1 (gettext-0.12
)
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
# wchar_t.m4 serial
3 (gettext-0.18
)
dnl Copyright (C) 2002-2003
, 2008-2010
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.
...
...
@@ -10,11 +10,11 @@ dnl Prerequisite: AC_PROG_CC
AC_DEFUN([gt_TYPE_WCHAR_T],
[
AC_CACHE_CHECK([for wchar_t],
gt_cv_c_wchar_t
,
AC_CACHE_CHECK([for wchar_t],
[gt_cv_c_wchar_t]
,
[AC_TRY_COMPILE([#include <stddef.h>
wchar_t foo = (wchar_t)'\0';], ,
gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no
)])
[gt_cv_c_wchar_t=yes], [gt_cv_c_wchar_t=no]
)])
if test $gt_cv_c_wchar_t = yes; then
AC_DEFINE(
HAVE_WCHAR_T, 1
, [Define if you have the 'wchar_t' type.])
AC_DEFINE(
[HAVE_WCHAR_T], [1]
, [Define if you have the 'wchar_t' type.])
fi
])
m4/wint_t.m4
View file @
830fd6fc
# wint_t.m4 serial
2 (gettext-0.17
)
dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc.
# wint_t.m4 serial
4 (gettext-0.18
)
dnl Copyright (C) 2003, 2007
-2010
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.
...
...
@@ -10,7 +10,7 @@ dnl Prerequisite: AC_PROG_CC
AC_DEFUN([gt_TYPE_WINT_T],
[
AC_CACHE_CHECK([for wint_t],
gt_cv_c_wint_t
,
AC_CACHE_CHECK([for wint_t],
[gt_cv_c_wint_t]
,
[AC_TRY_COMPILE([
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>.
...
...
@@ -21,8 +21,8 @@ AC_DEFUN([gt_TYPE_WINT_T],
#include <time.h>
#include <wchar.h>
wint_t foo = (wchar_t)'\0';], ,
gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no
)])
[gt_cv_c_wint_t=yes], [gt_cv_c_wint_t=no]
)])
if test $gt_cv_c_wint_t = yes; then
AC_DEFINE(
HAVE_WINT_T, 1
, [Define if you have the 'wint_t' type.])
AC_DEFINE(
[HAVE_WINT_T], [1]
, [Define if you have the 'wint_t' type.])
fi
])
m4/xsize.m4
View file @
830fd6fc
# xsize.m4 serial
3
dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
# xsize.m4 serial
4
dnl Copyright (C) 2003-2004
, 2008-2010
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.
...
...
@@ -9,5 +9,5 @@ AC_DEFUN([gl_XSIZE],
dnl Prerequisites of lib/xsize.h.
AC_REQUIRE([gl_SIZE_MAX])
AC_REQUIRE([AC_C_INLINE])
AC_CHECK_HEADERS(
stdint.h
)
AC_CHECK_HEADERS(
[stdint.h]
)
])
po/Makefile.in.in
View file @
830fd6fc
# Makefile for PO directory in any package using GNU gettext.
# Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
# Copyright (C) 1995-1997, 2000-2007
, 2009-2010
by Ulrich Drepper <drepper@gnu.ai.mit.edu>
#
# This file can be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU General Public
...
...
@@ -8,8 +8,8 @@
# Please note that the actual code of GNU gettext is covered by the GNU
# General Public License and is *not* in the public domain.
#
# Origin: gettext-0.1
7
GETTEXT_MACRO_VERSION
=
0.1
7
# Origin: gettext-0.1
8
GETTEXT_MACRO_VERSION
=
0.1
8
PACKAGE
=
@PACKAGE@
VERSION
=
@VERSION@
...
...
@@ -88,8 +88,8 @@ CATALOGS = @CATALOGS@
.po.gmo
:
@
lang
=
`
echo
$*
|
sed
-e
's,.*/,,'
`
;
\
test
"
$(srcdir)
"
=
.
&&
cdcmd
=
""
||
cdcmd
=
"cd
$(srcdir)
&& "
;
\
echo
"
$
${cdcmd}
rm -f
$
${lang}
.gmo &&
$(GMSGFMT)
-c --statistics -o
$
${lang}
.gmo
$
${lang}
.po"
;
\
cd
$(srcdir)
&&
rm
-f
$
${lang}
.gmo
&&
$(GMSGFMT)
-c
--statistics
-o
t-
$
${lang}
.gmo
$
${lang}
.po
&&
mv
t-
$
${lang}
.gmo
$
${lang}
.gmo
echo
"
$
${cdcmd}
rm -f
$
${lang}
.gmo &&
$(GMSGFMT)
-c --statistics -
-verbose -
o
$
${lang}
.gmo
$
${lang}
.po"
;
\
cd
$(srcdir)
&&
rm
-f
$
${lang}
.gmo
&&
$(GMSGFMT)
-c
--statistics
-
-verbose
-
o
t-
$
${lang}
.gmo
$
${lang}
.po
&&
mv
t-
$
${lang}
.gmo
$
${lang}
.gmo
.sin.sed
:
sed
-e
'/^#/d'
$<
>
t-
$@
...
...
@@ -193,8 +193,15 @@ $(POFILES): $(srcdir)/$(DOMAIN).pot
@
lang
=
`
echo
$@
|
sed
-e
's,.*/,,'
-e
's/\.po$$//'
`
;
\
if
test
-f
"
$(srcdir)
/
$
${lang}
.po"
;
then
\
test
"
$(srcdir)
"
=
.
&&
cdcmd
=
""
||
cdcmd
=
"cd
$(srcdir)
&& "
;
\
echo
"
$
${cdcmd}$(MSGMERGE_UPDATE)
$
${lang}
.po
$(DOMAIN)
.pot"
;
\
cd
$(srcdir)
&&
$(MSGMERGE_UPDATE)
$
${lang}
.po
$(DOMAIN)
.pot
;
\
echo
"
$
${cdcmd}$(MSGMERGE_UPDATE)
$(MSGMERGE_OPTIONS)
--lang=
$
${lang}
$
${lang}
.po
$(DOMAIN)
.pot"
;
\
cd
$(srcdir)
\
&&
{
case
`
$(MSGMERGE_UPDATE)
--version
|
sed
1q |
sed
-e
's,^[^0-9]*,,'
`
in
\
''
|
0.[0-9]
|
0.[0-9].
*
|
0.1[0-7]
|
0.1[0-7].
*
)
\
$(MSGMERGE_UPDATE)
$(MSGMERGE_OPTIONS)
$
${lang}
.po
$(DOMAIN)
.pot
;;
\
*
)
\
$(MSGMERGE_UPDATE)
$(MSGMERGE_OPTIONS)
--lang
=
$
${lang}
$
${lang}
.po
$(DOMAIN)
.pot
;;
\
esac
;
\
}
;
\
else
\
$(MAKE)
$
${lang}
.po-create
;
\
fi
...
...
@@ -217,7 +224,6 @@ install-data: install-data-@USE_NLS@
fi
install-data-no
:
all
install-data-yes
:
all
$(mkdir_p)
$(DESTDIR)$(datadir)
@
catalogs
=
'
$(CATALOGS)
'
;
\
for
cat
in
$$
catalogs
;
do
\
cat
=
`
basename
$$
cat
`
;
\
...
...
@@ -269,7 +275,6 @@ installdirs-data: installdirs-data-@USE_NLS@
fi
installdirs-data-no
:
installdirs-data-yes
:
$(mkdir_p)
$(DESTDIR)$(datadir)
@
catalogs
=
'
$(CATALOGS)
'
;
\
for
cat
in
$$
catalogs
;
do
\
cat
=
`
basename
$$
cat
`
;
\
...
...
@@ -395,9 +400,15 @@ update-po: Makefile
tmpdir
=
`
pwd
`
;
\
echo
"
$$
lang:"
;
\
test
"
$(srcdir)
"
=
.
&&
cdcmd
=
""
||
cdcmd
=
"cd
$(srcdir)
&& "
;
\
echo
"
$
${cdcmd}$(MSGMERGE)
$$
lang.po
$(DOMAIN)
.pot -o
$$
lang.new.po"
;
\
echo
"
$
${cdcmd}$(MSGMERGE)
$
(MSGMERGE_OPTIONS)
--lang=
$$
lang
$
$
lang.po
$(DOMAIN)
.pot -o
$$
lang.new.po"
;
\
cd
$(srcdir)
;
\
if
$(MSGMERGE)
$$
lang.po
$(DOMAIN)
.pot
-o
$$
tmpdir/
$$
lang.new.po
;
then
\
if
{
case
`
$(MSGMERGE)
--version
|
sed
1q |
sed
-e
's,^[^0-9]*,,'
`
in
\
''
|
0.[0-9]
|
0.[0-9].
*
|
0.1[0-7]
|
0.1[0-7].
*
)
\
$(MSGMERGE)
$(MSGMERGE_OPTIONS)
-o
$$
tmpdir/
$$
lang.new.po
$$
lang.po
$(DOMAIN)
.pot
;;
\
*
)
\
$(MSGMERGE)
$(MSGMERGE_OPTIONS)
--lang
=
$$
lang
-o
$$
tmpdir/
$$
lang.new.po
$$
lang.po
$(DOMAIN)
.pot
;;
\
esac
;
\
}
;
then
\
if
cmp
$$
lang.po
$$
tmpdir/
$$
lang.new.po
>
/dev/null 2>&1
;
then
\
rm
-f
$$
tmpdir/
$$
lang.new.po
;
\
else
\
...
...
@@ -418,9 +429,13 @@ $(DUMMYPOFILES):
update-gmo
:
Makefile $(GMOFILES)
@
:
# Recreate Makefile by invoking config.status. Explicitly invoke the shell,
# because execution permission bits may not work on the current file system.
# Use @SHELL@, which is the shell determined by autoconf for the use by its
# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
Makefile
:
Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
cd
$(top_builddir)
\
&&
$(SHELL)
./config.status
$(subdir)
/
$@
.in po-directories
&&
@SHELL@
./config.status
$(subdir)
/
$@
.in po-directories
force
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment