Port r3878 and r3879 from trunk/
Update gettext.h to 0.17. This changes its license from LGPL2+ to GPL2+ !
Update gettext files to versions found in 0.17
Deleted:
m4/ulonglong.m4 - Superceeded by longlong.m4
m4/signed.m4 - Had no users
m4/isc-posix.m4 - Superceeded by autoconf-2.53
m4/inttypes.m4 - Had no users
m4/longdouble.m4 - Also unneeded
m4/intmax.m4, m4/lib-prefix.m4, m4/lib-link.m4, m4/printf-posix.m4, m4/xsize.m4, m4/lib-ld.m4, m4/lcmessage.m4, m4/wint_t.m4, m4/inttypes-pri.m4, m4/progtest.m4, m4/uintmax_t.m4, m4/stdint_h.m4, m4/intdiv0.m4, m4/iconv.m4, m4/po.m4, m4/longlong.m4, m4/size_max.m4, m4/glibc21.m4, m4/inttypes_h.m4, m4/codeset.m4, m4/wchar_t.m4, m4/nls.m4
change in license from:
This file is free software, distributed under the terms of the GNU
General Public License. As a special exception to the GNU General
Public License, this file may be distributed as part of a program
that contains a configuration script generated by Autoconf, under
the same distribution terms as the rest of that program.
to:
This file is free software; the Free Software Foundation
gives unlimited permission to copy and/or distribute it,
with or without modifications, as long as this notice is preserved.
This removes any GPL licensed files from m4/
po/Makefile.in.in recieved my MSGMERGE_OPTIONS again after update.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3882 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 05:04:16 -08:00
|
|
|
# longlong.m4 serial 13
|
|
|
|
dnl Copyright (C) 1999-2007 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.
|
2007-06-09 09:20:46 -07:00
|
|
|
|
|
|
|
dnl From Paul Eggert.
|
|
|
|
|
Port r3878 and r3879 from trunk/
Update gettext.h to 0.17. This changes its license from LGPL2+ to GPL2+ !
Update gettext files to versions found in 0.17
Deleted:
m4/ulonglong.m4 - Superceeded by longlong.m4
m4/signed.m4 - Had no users
m4/isc-posix.m4 - Superceeded by autoconf-2.53
m4/inttypes.m4 - Had no users
m4/longdouble.m4 - Also unneeded
m4/intmax.m4, m4/lib-prefix.m4, m4/lib-link.m4, m4/printf-posix.m4, m4/xsize.m4, m4/lib-ld.m4, m4/lcmessage.m4, m4/wint_t.m4, m4/inttypes-pri.m4, m4/progtest.m4, m4/uintmax_t.m4, m4/stdint_h.m4, m4/intdiv0.m4, m4/iconv.m4, m4/po.m4, m4/longlong.m4, m4/size_max.m4, m4/glibc21.m4, m4/inttypes_h.m4, m4/codeset.m4, m4/wchar_t.m4, m4/nls.m4
change in license from:
This file is free software, distributed under the terms of the GNU
General Public License. As a special exception to the GNU General
Public License, this file may be distributed as part of a program
that contains a configuration script generated by Autoconf, under
the same distribution terms as the rest of that program.
to:
This file is free software; the Free Software Foundation
gives unlimited permission to copy and/or distribute it,
with or without modifications, as long as this notice is preserved.
This removes any GPL licensed files from m4/
po/Makefile.in.in recieved my MSGMERGE_OPTIONS again after update.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3882 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 05:04:16 -08:00
|
|
|
# Define HAVE_LONG_LONG_INT if 'long long int' works.
|
|
|
|
# This fixes a bug in Autoconf 2.61, but can be removed once we
|
|
|
|
# assume 2.62 everywhere.
|
2007-06-09 09:20:46 -07:00
|
|
|
|
Port r3878 and r3879 from trunk/
Update gettext.h to 0.17. This changes its license from LGPL2+ to GPL2+ !
Update gettext files to versions found in 0.17
Deleted:
m4/ulonglong.m4 - Superceeded by longlong.m4
m4/signed.m4 - Had no users
m4/isc-posix.m4 - Superceeded by autoconf-2.53
m4/inttypes.m4 - Had no users
m4/longdouble.m4 - Also unneeded
m4/intmax.m4, m4/lib-prefix.m4, m4/lib-link.m4, m4/printf-posix.m4, m4/xsize.m4, m4/lib-ld.m4, m4/lcmessage.m4, m4/wint_t.m4, m4/inttypes-pri.m4, m4/progtest.m4, m4/uintmax_t.m4, m4/stdint_h.m4, m4/intdiv0.m4, m4/iconv.m4, m4/po.m4, m4/longlong.m4, m4/size_max.m4, m4/glibc21.m4, m4/inttypes_h.m4, m4/codeset.m4, m4/wchar_t.m4, m4/nls.m4
change in license from:
This file is free software, distributed under the terms of the GNU
General Public License. As a special exception to the GNU General
Public License, this file may be distributed as part of a program
that contains a configuration script generated by Autoconf, under
the same distribution terms as the rest of that program.
to:
This file is free software; the Free Software Foundation
gives unlimited permission to copy and/or distribute it,
with or without modifications, as long as this notice is preserved.
This removes any GPL licensed files from m4/
po/Makefile.in.in recieved my MSGMERGE_OPTIONS again after update.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3882 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 05:04:16 -08:00
|
|
|
# Note: If the type 'long long int' exists but is only 32 bits large
|
|
|
|
# (as on some very old compilers), HAVE_LONG_LONG_INT will not be
|
|
|
|
# defined. In this case you can treat 'long long int' like 'long int'.
|
|
|
|
|
|
|
|
AC_DEFUN([AC_TYPE_LONG_LONG_INT],
|
|
|
|
[
|
|
|
|
AC_CACHE_CHECK([for long long int], [ac_cv_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])],
|
|
|
|
[ac_cv_type_long_long_int=no])])
|
|
|
|
if test $ac_cv_type_long_long_int = yes; then
|
|
|
|
AC_DEFINE([HAVE_LONG_LONG_INT], 1,
|
|
|
|
[Define to 1 if the system has the type `long long int'.])
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
|
|
|
|
# This fixes a bug in Autoconf 2.61, but can be removed once we
|
|
|
|
# assume 2.62 everywhere.
|
|
|
|
|
|
|
|
# Note: If the type 'unsigned long long int' exists but is only 32 bits
|
|
|
|
# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
|
|
|
|
# will not be defined. In this case you can treat 'unsigned long long int'
|
|
|
|
# like 'unsigned long int'.
|
|
|
|
|
|
|
|
AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
|
2007-06-09 09:20:46 -07:00
|
|
|
[
|
Port r3878 and r3879 from trunk/
Update gettext.h to 0.17. This changes its license from LGPL2+ to GPL2+ !
Update gettext files to versions found in 0.17
Deleted:
m4/ulonglong.m4 - Superceeded by longlong.m4
m4/signed.m4 - Had no users
m4/isc-posix.m4 - Superceeded by autoconf-2.53
m4/inttypes.m4 - Had no users
m4/longdouble.m4 - Also unneeded
m4/intmax.m4, m4/lib-prefix.m4, m4/lib-link.m4, m4/printf-posix.m4, m4/xsize.m4, m4/lib-ld.m4, m4/lcmessage.m4, m4/wint_t.m4, m4/inttypes-pri.m4, m4/progtest.m4, m4/uintmax_t.m4, m4/stdint_h.m4, m4/intdiv0.m4, m4/iconv.m4, m4/po.m4, m4/longlong.m4, m4/size_max.m4, m4/glibc21.m4, m4/inttypes_h.m4, m4/codeset.m4, m4/wchar_t.m4, m4/nls.m4
change in license from:
This file is free software, distributed under the terms of the GNU
General Public License. As a special exception to the GNU General
Public License, this file may be distributed as part of a program
that contains a configuration script generated by Autoconf, under
the same distribution terms as the rest of that program.
to:
This file is free software; the Free Software Foundation
gives unlimited permission to copy and/or distribute it,
with or without modifications, as long as this notice is preserved.
This removes any GPL licensed files from m4/
po/Makefile.in.in recieved my MSGMERGE_OPTIONS again after update.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3882 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 05:04:16 -08:00
|
|
|
AC_CACHE_CHECK([for unsigned long long int],
|
|
|
|
[ac_cv_type_unsigned_long_long_int],
|
|
|
|
[AC_LINK_IFELSE(
|
|
|
|
[_AC_TYPE_LONG_LONG_SNIPPET],
|
|
|
|
[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,
|
|
|
|
[Define to 1 if the system has the type `unsigned long long int'.])
|
2007-06-09 09:20:46 -07:00
|
|
|
fi
|
|
|
|
])
|
Port r3878 and r3879 from trunk/
Update gettext.h to 0.17. This changes its license from LGPL2+ to GPL2+ !
Update gettext files to versions found in 0.17
Deleted:
m4/ulonglong.m4 - Superceeded by longlong.m4
m4/signed.m4 - Had no users
m4/isc-posix.m4 - Superceeded by autoconf-2.53
m4/inttypes.m4 - Had no users
m4/longdouble.m4 - Also unneeded
m4/intmax.m4, m4/lib-prefix.m4, m4/lib-link.m4, m4/printf-posix.m4, m4/xsize.m4, m4/lib-ld.m4, m4/lcmessage.m4, m4/wint_t.m4, m4/inttypes-pri.m4, m4/progtest.m4, m4/uintmax_t.m4, m4/stdint_h.m4, m4/intdiv0.m4, m4/iconv.m4, m4/po.m4, m4/longlong.m4, m4/size_max.m4, m4/glibc21.m4, m4/inttypes_h.m4, m4/codeset.m4, m4/wchar_t.m4, m4/nls.m4
change in license from:
This file is free software, distributed under the terms of the GNU
General Public License. As a special exception to the GNU General
Public License, this file may be distributed as part of a program
that contains a configuration script generated by Autoconf, under
the same distribution terms as the rest of that program.
to:
This file is free software; the Free Software Foundation
gives unlimited permission to copy and/or distribute it,
with or without modifications, as long as this notice is preserved.
This removes any GPL licensed files from m4/
po/Makefile.in.in recieved my MSGMERGE_OPTIONS again after update.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3882 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 05:04:16 -08:00
|
|
|
|
|
|
|
# Expands to a C program that can be used to test for simultaneous support
|
|
|
|
# of 'long long' and 'unsigned long long'. We don't want to say that
|
|
|
|
# 'long long' is available if 'unsigned long long' is not, or vice versa,
|
|
|
|
# because too many programs rely on the symmetry between signed and unsigned
|
|
|
|
# integer types (excluding 'bool').
|
|
|
|
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
|
|
|
|
/* 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)];
|
|
|
|
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -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));]])
|
|
|
|
])
|