Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-python / configure.ac
blobc4831280d277862324d9c40a442498b3674930e7
1 dnl Example for use of GNU gettext.
2 dnl This file is in the public domain.
3 dnl
4 dnl Configuration file - processed by autoconf.
6 AC_INIT
7 AC_CONFIG_SRCDIR(hello.py.in)
8 AM_INIT_AUTOMAKE(hello-python, 0)
10 dnl Check for availability of the Python interpreter.
11 AM_PATH_PYTHON
12 if test -z "$PYTHON"; then
13   echo "*** Essential program python not found" 1>&2
14   exit 1
17 dnl The installed program must know where to find its message catalogs.
18 dnl Unfortunately, prefix gets only finally determined at the end of configure.
19 if test "X$prefix" = "XNONE"; then
20   final_prefix="$ac_default_prefix"
21 else
22   final_prefix="$prefix"
24 save_prefix="$prefix"
25 prefix="$final_prefix"
26 eval "datarootdir=\"${datarootdir}\""
27 eval "localedir=\"${datadir}/locale\""
28 prefix="$save_prefix"
29 AC_SUBST(localedir)
31 dnl Support for the po directory.
32 AM_PO_SUBDIRS
34 AC_CONFIG_FILES([Makefile hello.py])
35 AC_CONFIG_FILES([m4/Makefile])
36 AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
37 AC_OUTPUT