source: trunk/third/gettext/configure.in @ 16931

Revision 16931, 4.4 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16930, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.13)
3AC_REVISION($Revision: 1.1.1.2 $)
4AC_INIT(src/msgfmt.c)
5AM_INIT_AUTOMAKE(gettext, 0.10.40)
6RELEASE_DATE=2001-09-13      dnl in "date +%Y-%m-%d" format
7AM_CONFIG_HEADER(config.h)
8
9dnl Set of available languages.
10ALL_LINGUAS="cs da de el en@quot en@boldquot es et fr gl id it ja ko nl nn no pl pt pt_BR ru sl sv tr zh"
11
12dnl Checks for programs.
13AC_PROG_CC
14AC_PROG_INSTALL
15AC_PROG_YACC
16
17dnl Check for host type.
18AC_CANONICAL_HOST
19
20dnl Checks for UNIX variants that set DEFS,
21AC_ISC_POSIX
22
23dnl Checks for compiler output filename suffixes.
24AC_OBJEXT
25AC_EXEEXT
26
27dnl Check for build configuration.
28AM_PROG_LIBTOOL
29
30AC_DEFINE(_GNU_SOURCE, 1, [Make sure we see all GNU extensions.])
31
32dnl Checks for libraries.
33
34dnl Checks for header files.
35AC_HEADER_STDC
36AC_CHECK_HEADERS(limits.h malloc.h string.h unistd.h values.h)
37
38dnl Checks for typedefs, structures, and compiler characteristics.
39AC_C_CONST
40AC_C_INLINE
41bh_C_SIGNED
42AC_C_BACKSLASH_A
43jm_AC_TYPE_UNSIGNED_LONG_LONG
44AC_TYPE_OFF_T
45AC_TYPE_SIZE_T
46AM_TYPE_PTRDIFF_T
47jm_AC_TYPE_UINTMAX_T
48
49dnl Checks for library functions.
50AC_FUNC_ALLOCA
51AC_FUNC_VPRINTF
52AC_CHECK_FUNCS([getcwd mblen memcpy strchr strerror uname])
53AC_REPLACE_FUNCS([memmove memset stpcpy stpncpy strcspn \
54strcasecmp strncasecmp strstr strtoul vasprintf])
55AM_FUNC_GETLINE
56if test $am_cv_func_working_getline != yes; then
57  AC_CHECK_FUNCS(getdelim)
58fi
59jm_PREREQ_MBSWIDTH
60
61AC_CHECK_FUNC(parse_printf_format, gt_cv_func_parse_printf_format=yes,
62  gt_cv_func_parse_printf_format=no)
63if test $gt_cv_func_parse_printf_format = yes; then
64  AC_DEFINE(HAVE_PARSE_PRINTF_FORMAT, 1,
65    [Define if you have the parse_printf_format() function.])
66else
67  LIBOBJS="$LIBOBJS printf-prs.o"
68fi
69
70AM_FUNC_ERROR_AT_LINE
71
72gt_SETLOCALE
73
74dnl These are the only lines required to internationalize the package.
75dnl (OK, not quite, the AC_OUTPUT has also some parts.)
76AM_GNU_GETTEXT(use-libtool, need-ngettext)
77
78dnl Check for Emacs and where to install .elc files.
79AM_PATH_LISPDIR
80
81dnl The gettextize script test for the version of the aclocal.m4 file in
82dnl user's project.  This must correspond to the number the aclocal.m4
83dnl here has.  Extract it.
84changequote(,)dnl
85ACLOCAL_VERSION=`sed -e 's/.*Last updated for gettext-\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p' -e d $srcdir/aclocal.m4`
86changequote([, ])dnl
87AC_SUBST(ACLOCAL_VERSION)
88
89aclocaldir='${datadir}/aclocal'
90AC_SUBST(aclocaldir)
91
92dnl Check for tools needed for formatting the documentation.
93ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
94AC_PATH_PROG(DVIPS, dvips, $ac_aux_dir_abs/missing dvips)
95AC_PATH_PROG(TEXI2PDF, texi2pdf, $ac_aux_dir_abs/missing texi2pdf)
96AC_PATH_PROG(TEXI2HTML, texi2html, $ac_aux_dir_abs/missing texi2html)
97
98dnl Generate the version information file in the intl/ directory.
99test -d intl || mkdir intl
100echo "GNU gettext library from $PACKAGE-$VERSION" > intl/VERSION
101cat > intl/ChangeLog.inst <<EOF
102$RELEASE_DATE  GNU  <bug-gnu-utils@gnu.org>
103
104        * Version $VERSION released.
105
106EOF
107
108AC_OUTPUT([Makefile lib/Makefile intl/Makefile src/Makefile po/Makefile.in \
109           doc/Makefile man/Makefile tests/Makefile m4/Makefile \
110           misc/Makefile misc/gettextize], [
111  dnl Workaround an automake-1.4 bug which generates a distclean-recursive
112  dnl target in Makefile.in which causes a "make distclean" failure on FreeBSD.
113changequote(,)dnl
114  sed -e 's/test \([^ ]*\) = \([^ ]*\) \&\& /test \1 != \2 \|\| /' < Makefile \
115      > Makefile.tmp
116changequote([, ])dnl
117  mv Makefile.tmp Makefile
118  dnl Workaround an automake-1.4 bug which generates an incorrect uninstall
119  dnl target in misc/Makefile.in.
120  sed -e 's/rm -f \$(lispdir)/rm -f \$(DESTDIR)\$(lispdir)/' < misc/Makefile \
121      > misc/Makefile.tmp
122  mv misc/Makefile.tmp misc/Makefile
123  dnl Workaround another automake-1.4 bug which generates incorrect install
124  dnl and uninstall targets in misc/Makefile.in.
125  sed -e "s/list='\\\$(lisp_LISP)'; for/list='\$(lisp_LISP)'; test '\$(EMACS)' = no || for/" \
126      < misc/Makefile > misc/Makefile.tmp
127  mv misc/Makefile.tmp misc/Makefile
128  dnl Workaround another automake-1.4 bug which forgets to add $(EXEEXT)
129  dnl suffixes to elements of EXTRA_PROGRAMS. It does correctly add the suffix
130  dnl to the elements of bin_PROGRAMS.
131changequote(,)dnl
132  sed -e '/^EXTRA_PROGRAMS = /{' -e 's/\([a-z0-9_]\)\( \)/\1\$(EXEEXT)\2/g' -e 's/\([a-z0-9_]\)$/\1\$(EXEEXT)/g' -e '}' \
133      < tests/Makefile > tests/Makefile.tmp
134changequote([, ])dnl
135  mv tests/Makefile.tmp tests/Makefile
136])
Note: See TracBrowser for help on using the repository browser.