NetBSD/gnu/dist/grep/configure.in

81 lines
2.0 KiB
Plaintext
Raw Normal View History

1999-02-09 15:38:36 +03:00
# Configuration for grep
#
# Alain Magloire <alainm@rcsm.ee.mcgill.ca>
#
dnl Process this file with autoconf to produce a configure script
AC_INIT(src/grep.c)
AC_DEFINE(GREP)
AC_PREREQ(2.13)
dnl Automake stuff.
2000-02-27 03:21:41 +03:00
AM_INIT_AUTOMAKE(grep, 2.4)
1999-02-09 15:38:36 +03:00
AM_CONFIG_HEADER(config.h:config.hin)
dnl Checks for programs.
2000-02-27 03:21:41 +03:00
AC_CANONICAL_HOST
1999-02-09 15:38:36 +03:00
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
dnl Checks for typedefs, structures, and compiler characteristics.
2000-02-27 03:21:41 +03:00
AC_SYS_LARGEFILE
AM_C_PROTOTYPES
1999-02-09 15:38:36 +03:00
AC_TYPE_SIZE_T
2000-02-27 03:21:41 +03:00
AC_CHECK_TYPE(ssize_t, int)
1999-02-09 15:38:36 +03:00
AC_C_CONST
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(string.h stdlib.h sys/param.h memory.h unistd.h libintl.h)
2000-02-27 03:21:41 +03:00
AC_CHECK_HEADERS(wctype.h wchar.h)
1999-02-09 15:38:36 +03:00
AC_HEADER_DIRENT
AC_HEADER_STAT
dnl Checks for functions.
AC_FUNC_ALLOCA
AC_FUNC_CLOSEDIR_VOID
AC_FUNC_MMAP
dnl getpagesize is checked for by AC_FUNC_MMAP.
2000-02-27 03:21:41 +03:00
AC_CHECK_FUNCS(btowc isascii memmove setmode strerror wctype)
1999-02-09 15:38:36 +03:00
AC_REPLACE_FUNCS(memchr stpcpy)
dnl for VC++
2000-02-27 03:21:41 +03:00
case "$ac_cv_prog_CC" in
cl*) AC_DEFINE(alloca, _alloca) ;;
*) ;;
esac
1999-02-09 15:38:36 +03:00
dnl I18N feature
2000-02-27 03:21:41 +03:00
ALL_LINGUAS="de es el fr ko nl no pl pt_BR ru sl sv"
1999-02-09 15:38:36 +03:00
AM_GNU_GETTEXT
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
dnl DOS file name convention
dnl sets HAVE_DOS_FILE_NAMES
AC_DOSFILE
dnl check for the environ separator
dnl sets SEP
AM_SEP
dnl OS specifics
dnl sets {EXE,OBJ}EXT
AC_EXEEXT
AC_OBJEXT
dnl some folks ask for this, that's fine by me
dnl hope they know what they're doing ...
dnl if glibc2 regex is not included
2000-02-27 03:21:41 +03:00
dnl This commented out now.
dnl I no longer follow GLibC regex, glibc maitainers decided
dnl to drop support for k&r semantics. And beside, it was
dnl a real pain since on many GNU/Linux people have different
dnl glibc versions with buggy regex.
#jm_INCLUDED_REGEX(src/regex.c)
1999-02-09 15:38:36 +03:00
1999-02-20 14:17:58 +03:00
AC_OUTPUT(Makefile src/Makefile tests/Makefile po/Makefile.in intl/Makefile doc/Makefile m4/Makefile djgpp/Makefile vms/Makefile bootstrap/Makefile, [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile; echo timestamp > stamp-h])