No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / examples / hello-gawk / configure.ac
blob602a7d0de39a4d30728e356879c65b28fb1f8e43
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.
4 dnl
5 dnl Configuration file - processed by autoconf.
7 AC_INIT
8 AC_CONFIG_SRCDIR(hello.awk)
9 AM_INIT_AUTOMAKE(hello-gawk, 0)
11 dnl Check for availability of GNU awk.
12 AC_PATH_PROG(GAWK, gawk)
13 if test -z "$GAWK"; then
14   echo "*** Essential program gawk not found" 1>&2
15   exit 1
17 AC_SUBST(GAWK)
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"
23 else
24   final_prefix="$prefix"
26 save_prefix="$prefix"
27 prefix="$final_prefix"
28 eval "localedir=\"${datadir}/locale\""
29 prefix="$save_prefix"
30 AC_SUBST(localedir)
32 dnl Support for the po directory.
33 AM_PO_SUBDIRS
35 AC_CONFIG_FILES([Makefile])
36 AC_CONFIG_FILES([hello:hello.awk], [chmod a+x hello])
37 AC_CONFIG_FILES([m4/Makefile])
38 AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
39 AC_OUTPUT