mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00

===================== Fix Debian batch mode reader, read_redirected(), which is activated when input comes from a file rather than a tty. The implementation of read_redirected() did not support lines longer than 64 chars. It tried to realloc(), but goofed up and instead truncated all the first 64 chars. The result was that each read line only contained the reminder of a a division with 64... :-)
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.61)
|
|
AC_INIT(Minix editline, 0.2.1, joachim@vmlinux.org)
|
|
AC_CONFIG_SRCDIR([src/editline.c])
|
|
AC_CONFIG_HEADER([config.h])
|
|
|
|
# Prepare automake
|
|
AM_INIT_AUTOMAKE([dist-bzip2 dist-lzma])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CC
|
|
AC_PROG_RANLIB
|
|
|
|
# Checks for libraries.
|
|
|
|
# Checks for header files.
|
|
AC_HEADER_DIRENT
|
|
AC_HEADER_STDC
|
|
# Check for malloc.h instead of AC_FUNC_MALLOC/REALLOC AIX and others
|
|
# mess up the traditional malloc check.
|
|
AC_CHECK_HEADERS([malloc.h signal.h sgtty.h stdlib.h string.h termio.h termios.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_HEADER_STAT
|
|
|
|
# Overrides and types, should be a check.
|
|
AC_DEFINE([SYS_UNIX], [1], [Default to UNIX backend, should be detected.])
|
|
AC_DEFINE([HIDE], [1], [Enable static keyword, hides internal methods.])
|
|
AC_TYPE_SIZE_T
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_CLOSEDIR_VOID
|
|
AC_PROG_GCC_TRADITIONAL
|
|
# Check for malloc.h instead of AC_FUNC_MALLOC/REALLOC AIX and others
|
|
# mess up the traditional malloc check.
|
|
#AC_FUNC_MALLOC
|
|
#AC_FUNC_REALLOC
|
|
AC_FUNC_STAT
|
|
AC_CHECK_FUNCS([strchr strdup strrchr tcgetattr])
|
|
|
|
AC_OUTPUT(Makefile src/Makefile include/Makefile man/Makefile examples/Makefile)
|