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-1.pl.in)
9AM_INIT_AUTOMAKE(hello-perl, 0)
10
11dnl Check for availability of the Perl interpreter.
12AC_PATH_PROG(PERL, perl)
13if test -z "$PERL"; then
14  echo "*** Essential program perl not found" 1>&2
15  exit 1
16fi
17AC_SUBST(PERL)
18
19dnl The installed program must know where to find its message catalogs.
20dnl Unfortunately, prefix gets only finally determined at the end of configure.
21if test "X$prefix" = "XNONE"; then
22  final_prefix="$ac_default_prefix"
23else
24  final_prefix="$prefix"
25fi
26save_prefix="$prefix"
27prefix="$final_prefix"
28eval "datarootdir=\"${datarootdir}\""
29eval "localedir=\"${datadir}/locale\""
30prefix="$save_prefix"
31AC_SUBST(localedir)
32
33dnl Support for the po directory.
34AM_PO_SUBDIRS
35
36AC_CONFIG_FILES([Makefile])
37AC_CONFIG_FILES([hello-1:hello-1.pl.in], [chmod a+x hello-1])
38AC_CONFIG_FILES([hello-2:hello-2.pl.in], [chmod a+x hello-2])
39AC_CONFIG_FILES([m4/Makefile])
40AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
41AC_OUTPUT
42