OSDN Git Service

2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / intl / configure.ac
1 AC_PREREQ(2.59)
2 AC_INIT
3 AC_CONFIG_SRCDIR(gettext.c)
4 AC_CONFIG_HEADER(config.h)
5 AM_GNU_GETTEXT_VERSION(0.12.1)
6 AM_GNU_GETTEXT
7
8 # This replaces the extensive use of DEFS in the original Makefile.in.
9 AC_DEFINE(IN_LIBINTL, 1, [Define because this is libintl.])
10 AC_DEFINE(IN_LIBRARY, 1, [Define because this is a library.])
11 AC_DEFINE(DEPENDS_ON_LIBICONV, 1, [Define because we depend on libiconv.])
12 AC_DEFINE(ENABLE_RELOCATABLE, 1, [Define to enable relocation.])
13 AC_DEFINE(NO_XMALLOC, 1, [Define if there is no xmalloc.])
14 AC_DEFINE(set_relocation_prefix, libintl_set_relocation_prefix,
15 [Define this entry point correctly.])
16 AC_DEFINE(relocate, libintl_relocate,
17 [Define this entry point correctly.])
18
19 # Additional info for config.intl.
20 AC_SUBST(LIBINTL_DEP)
21 AC_SUBST(INCINTL)
22
23 LIBINTL_DEP=
24 INCINTL=
25 case $USE_INCLUDED_LIBINTL in
26   yes)
27     LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
28     LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
29     LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
30     INCINTL='-I${top_builddir}/../intl'
31     ;;
32 esac
33
34 AC_CONFIG_FILES(Makefile config.intl)
35 AC_OUTPUT