1*63eb84d1Schristosdnl Example for use of GNU gettext.
2*63eb84d1Schristosdnl Copyright (C) 2003 Free Software Foundation, Inc.
3*63eb84d1Schristosdnl This file is in the public domain.
4*63eb84d1Schristosdnl
5*63eb84d1Schristosdnl Configuration file - processed by autoconf.
6*63eb84d1Schristos
7*63eb84d1SchristosAC_INIT
8*63eb84d1SchristosAC_CONFIG_SRCDIR(hello.tcl)
9*63eb84d1SchristosAM_INIT_AUTOMAKE(hello-tcl, 0)
10*63eb84d1Schristos
11*63eb84d1Schristosdnl Check for availability of the Tcl interpreter.
12*63eb84d1SchristosAC_PATH_PROG(TCLSH, tclsh)
13*63eb84d1Schristosif test -z "$TCLSH"; then
14*63eb84d1Schristos  echo "*** Essential program tclsh not found" 1>&2
15*63eb84d1Schristos  exit 1
16*63eb84d1Schristosfi
17*63eb84d1SchristosAC_SUBST(TCLSH)
18*63eb84d1Schristos
19*63eb84d1Schristosdnl The installed program must know where to find its message catalogs.
20*63eb84d1Schristosdnl Unfortunately, prefix gets only finally determined at the end of configure.
21*63eb84d1Schristosif test "X$prefix" = "XNONE"; then
22*63eb84d1Schristos  final_prefix="$ac_default_prefix"
23*63eb84d1Schristoselse
24*63eb84d1Schristos  final_prefix="$prefix"
25*63eb84d1Schristosfi
26*63eb84d1Schristossave_prefix="$prefix"
27*63eb84d1Schristosprefix="$final_prefix"
28*63eb84d1Schristoseval "pkgdatadir=\"${datadir}/${PACKAGE}\""
29*63eb84d1Schristosprefix="$save_prefix"
30*63eb84d1SchristosAC_SUBST(pkgdatadir)
31*63eb84d1Schristos
32*63eb84d1Schristosdnl Support for the po directory.
33*63eb84d1SchristosAM_PO_SUBDIRS
34*63eb84d1Schristos
35*63eb84d1SchristosAC_CONFIG_FILES([Makefile])
36*63eb84d1SchristosAC_CONFIG_FILES([hello:hello.tcl], [chmod a+x hello])
37*63eb84d1SchristosAC_CONFIG_FILES([m4/Makefile])
38*63eb84d1SchristosAC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
39*63eb84d1SchristosAC_OUTPUT
40