source: trunk/third/gettext/gettext-runtime/configure.ac @ 21665

Revision 21665, 4.4 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21664, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Configuration for the gettext-runtime directory of GNU gettext
2dnl Copyright (C) 1995-1999, 2000-2005 Free Software Foundation, Inc.
3dnl
4dnl This program is free software; you can redistribute it and/or modify
5dnl it under the terms of the GNU General Public License as published by
6dnl the Free Software Foundation; either version 2, or (at your option)
7dnl any later version.
8dnl
9dnl This program is distributed in the hope that it will be useful,
10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12dnl GNU General Public License for more details.
13dnl
14dnl You should have received a copy of the GNU General Public License
15dnl along with this program; if not, write to the Free Software
16dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18dnl Process this file with autoconf to produce a configure script.
19
20AC_PREREQ(2.57)
21AC_INIT
22AC_CONFIG_SRCDIR(intl/dcigettext.c)
23AC_CONFIG_AUX_DIR(../config)
24. $srcdir/../version.sh
25AM_INIT_AUTOMAKE(gettext-runtime, $VERSION_NUMBER)
26AM_CONFIG_HEADER(config.h)
27
28dnl Installation directories.
29AC_SUBST([docdir], ['${datadir}/doc/gettext'])
30dnl Prefer modern Filesystem Hierarchy Standard over antiquated GNU standards.
31test "$mandir" != '${prefix}/man' || mandir='${datadir}/man'
32
33dnl Checks for programs.
34AC_PROG_CC
35AC_PROG_INSTALL
36AC_PROG_YACC
37
38gt_JAVACOMP
39AC_CHECK_PROG(JAR, jar, jar)
40if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
41  BUILDJAVA=yes
42else
43  BUILDJAVA=no
44fi
45AC_SUBST(BUILDJAVA)
46
47gt_CSHARPCOMP
48if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
49  BUILDCSHARP=yes
50else
51  BUILDCSHARP=no
52fi
53AC_SUBST(BUILDCSHARP)
54
55dnl Check for host type.
56AC_CANONICAL_HOST
57
58dnl Checks for UNIX variants that set DEFS,
59AC_ISC_POSIX
60
61dnl Checks for compiler output filename suffixes.
62AC_OBJEXT
63AC_EXEEXT
64
65dnl Make sure we see all GNU and Solaris extensions.
66AC_GNU_SOURCE
67gl_USE_SYSTEM_EXTENSIONS
68
69dnl Check for build configuration.
70AC_LIBTOOL_WIN32_DLL
71AC_PROG_LIBTOOL
72
73AC_RELOCATABLE
74
75dnl Checks for libraries.
76
77dnl Checks for header files.
78AC_CHECK_HEADERS(string.h)
79AM_STDBOOL_H
80
81dnl Checks for typedefs, structures, and compiler characteristics.
82AC_TYPE_SIZE_T
83
84dnl Checks for library functions.
85gl_ALLOCSA
86AC_FUNC_VPRINTF
87AC_CHECK_FUNCS([setlocale strerror])
88AC_REPLACE_FUNCS([atexit memmove])
89gl_GETOPT
90gt_FUNC_SETENV
91gl_FUNC_STRERROR
92gl_FUNC_STRTOUL
93gl_FUNC_GLIBC_UNLOCKED_IO
94gl_ERROR
95gl_PATHMAX
96gl_FUNC_READLINK
97gl_XREADLINK
98gl_CANONICALIZE
99
100dnl These are the only lines required to internationalize the package.
101dnl (OK, not quite, the AC_CONFIG_FILES has also some parts.)
102AM_GNU_GETTEXT(use-libtool, need-ngettext)
103
104dnl Put some default definitions into config.h.
105AH_BOTTOM([
106/* On Windows, variables that may be in a DLL must be marked specially.  */
107#if defined _MSC_VER && defined _DLL
108# define DLL_VARIABLE __declspec (dllimport)
109#else
110# define DLL_VARIABLE
111#endif
112
113/* Extra OS/2 (emx+gcc) defines.  */
114#ifdef __EMX__
115# include "intl/os2compat.h"
116#endif
117])
118
119dnl Check for tools needed for formatting the documentation.
120ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
121AC_PATH_PROG(PERL, perl, $ac_aux_dir_abs/missing perl)
122
123dnl Check for tools needed for formatting man pages.
124CROSS_COMPILING=$cross_compiling
125AC_SUBST(CROSS_COMPILING)
126
127dnl Checks for optional programs for the tests/lang-* tests.
128gt_PROG_ANSI_CXX
129
130dnl Determine whether to build libasprintf.
131AC_ARG_ENABLE(libasprintf,
132  [  --disable-libasprintf   do not build libasprintf],
133  [if test "$enableval" != no; then
134     SUBDIR_libasprintf=libasprintf
135   else
136     SUBDIR_libasprintf=
137   fi
138  ], SUBDIR_libasprintf=libasprintf)
139if test "$CXX" = ":"; then
140  SUBDIR_libasprintf=
141fi
142AC_SUBST(SUBDIR_libasprintf)
143
144AC_CONFIG_SUBDIRS(libasprintf)
145
146AC_CONFIG_FILES([Makefile])
147
148AC_CONFIG_FILES([doc/Makefile])
149
150AC_CONFIG_FILES([intl/Makefile])
151
152AC_CONFIG_FILES([intl-java/Makefile])
153
154AC_CONFIG_FILES([intl-csharp/Makefile])
155
156AC_CONFIG_FILES([lib/Makefile],
157                [FIX_MAKEFILE_COMPILE])
158AC_CONFIG_FILES([lib/javacomp.sh:../gettext-tools/lib/javacomp.sh.in])
159AC_CONFIG_FILES([lib/csharpcomp.sh:../gettext-tools/lib/csharpcomp.sh.in])
160
161AC_CONFIG_FILES([src/Makefile],
162                [FIX_MAKEFILE_COMPILE])
163AC_CONFIG_FILES([src/gettext.sh], [chmod a+x src/gettext.sh])
164
165AC_CONFIG_FILES([po/Makefile.in])
166
167AC_CONFIG_FILES([man/Makefile],
168                [FIX_MAKEFILE_DISTRIB])
169AC_CONFIG_FILES([man/x-to-1])
170
171AC_CONFIG_FILES([m4/Makefile])
172
173AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.