diff options
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/c-auto.in | 5 | ||||
-rwxr-xr-x | Build/source/texk/web2c/configure | 32 | ||||
-rw-r--r-- | Build/source/texk/web2c/configure.ac | 1 |
4 files changed, 44 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog index 897d62f9762..80edd9a0498 100644 --- a/Build/source/texk/web2c/ChangeLog +++ b/Build/source/texk/web2c/ChangeLog @@ -1,3 +1,9 @@ +2011-06-23 Karl Berry <karl@tug.org> + + * configure.ac (AC_C_CHAR_UNSIGNED): needed for test + in web2c/w2c/config.h, else AIX ends up mis-tangling tex.web. + tlbuild mail from vvv, 21 Jun 2011 23:57:53. + 2011-06-06 Karl Berry <karl@tug.org> * doc/web2c.texi: update MetaPost description, .mem's are diff --git a/Build/source/texk/web2c/c-auto.in b/Build/source/texk/web2c/c-auto.in index bbe8b558f28..ab57e65e0b1 100644 --- a/Build/source/texk/web2c/c-auto.in +++ b/Build/source/texk/web2c/c-auto.in @@ -334,6 +334,11 @@ /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES +/* Define to 1 if type `char' is unsigned and you are not using gcc. */ +#ifndef __CHAR_UNSIGNED__ +# undef __CHAR_UNSIGNED__ +#endif + /* Define to empty if `const' does not conform to ANSI C. */ #undef const diff --git a/Build/source/texk/web2c/configure b/Build/source/texk/web2c/configure index 39f01c3046b..a5cb65b4896 100755 --- a/Build/source/texk/web2c/configure +++ b/Build/source/texk/web2c/configure @@ -19574,6 +19574,38 @@ fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 +$as_echo_n "checking whether char is unsigned... " >&6; } +if ${ac_cv_c_char_unsigned+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((char) -1) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_char_unsigned=no +else + ac_cv_c_char_unsigned=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 +$as_echo "$ac_cv_c_char_unsigned" >&6; } +if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then + $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h + +fi + # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. diff --git a/Build/source/texk/web2c/configure.ac b/Build/source/texk/web2c/configure.ac index 71d9d8647e6..aaf79e4b6e1 100644 --- a/Build/source/texk/web2c/configure.ac +++ b/Build/source/texk/web2c/configure.ac @@ -231,6 +231,7 @@ if test `(uname) 2>/dev/null` = aux; then AC_CHECK_LIB([posix], [sigemptyset]) fi +AC_C_CHAR_UNSIGNED AC_CHECK_SIZEOF([int]) if test $ac_cv_sizeof_int -lt 4; then AC_MSG_ERROR([Sorry, need `int' with at least 4 bytes.]) |