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