summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install-info/files/configure.ac
blob: ff87b23038df88f21fcbb3107986c98cdc153d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#                                               -*- Autoconf -*-
# $NetBSD: configure.ac,v 1.2 2003/06/10 20:20:40 seb Exp $
#
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT([texinfo], [4.5])
AC_CONFIG_SRCDIR([install-info.c])
AC_CONFIG_HEADER([config.h])

# Checks for programs.

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h limits.h locale.h memory.h stdlib.h string.h strings.h sys/file.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STAT
AC_C_CONST
AC_TYPE_SIZE_T

# Checks for library functions.
dnl AC_FUNC_ERROR_AT_LINE
dnl AC_FUNC_MALLOC
dnl AC_FUNC_REALLOC
dnl AC_FUNC_STRCOLL
AC_CHECK_FUNCS([setlocale])
AC_REPLACE_FUNCS([strdup strerror strncasecmp])

#
if test $ac_cv_header_locale_h = yes; then
	AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
		[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
		am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) 
	if test $am_cv_val_LC_MESSAGES = yes; then
		AC_DEFINE(HAVE_LC_MESSAGES, 1, 
			[Define if your <locale.h> file defines LC_MESSAGES.])
	fi
fi


#
AC_CONFIG_FILES([Makefile])
AC_OUTPUT