1 dnl Example for use of GNU gettext.
2 dnl Copyright (C) 2003 Free Software Foundation, Inc.
3 dnl This file is in the public domain.
5 dnl Configuration file - processed by autoconf.
8 AC_CONFIG_SRCDIR(hello-1.pl.in)
9 AM_INIT_AUTOMAKE(hello-perl, 0)
11 dnl Check for availability of the Perl interpreter.
12 AC_PATH_PROG(PERL, perl)
13 if test -z "$PERL"; then
14 echo "*** Essential program perl not found" 1>&2
19 dnl The installed program must know where to find its message catalogs.
20 dnl Unfortunately, prefix gets only finally determined at the end of configure.
21 if test "X$prefix" = "XNONE"; then
22 final_prefix="$ac_default_prefix"
24 final_prefix="$prefix"
27 prefix="$final_prefix"
28 eval "localedir=\"${datadir}/locale\""
32 dnl Support for the po directory.
35 AC_CONFIG_FILES([Makefile])
36 AC_CONFIG_FILES([hello-1:hello-1.pl.in], [chmod a+x hello-1])
37 AC_CONFIG_FILES([hello-2:hello-2.pl.in], [chmod a+x hello-2])
38 AC_CONFIG_FILES([m4/Makefile])
39 AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])