File: configure.ac

package info (click to toggle)
gettext 0.21-12
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 133,652 kB
  • sloc: ansic: 516,611; sh: 53,532; perl: 17,889; makefile: 9,062; lisp: 3,210; yacc: 1,032; cpp: 704; java: 615; cs: 555; objc: 337; awk: 79; tcl: 63; sed: 55; xml: 40; pascal: 11; php: 7
file content (44 lines) | stat: -rw-r--r-- 1,196 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
dnl Example for use of GNU gettext.
dnl This file is in the public domain.
dnl
dnl Configuration file - processed by autoconf.

AC_INIT([hello-tcl], [0])
AC_CONFIG_SRCDIR([hello.tcl])
AM_INIT_AUTOMAKE([1.11])

dnl Check for availability of the Tcl interpreter.
AC_PATH_PROG([TCLSH], [tclsh])
if test -z "$TCLSH"; then
  echo "*** Essential program tclsh not found" 1>&2
  exit 1
fi
AC_SUBST([TCLSH])

dnl The installed program must know where to find its message catalogs.
dnl Unfortunately, prefix gets only finally determined at the end of configure.
if test "X$prefix" = "XNONE"; then
  final_prefix="$ac_default_prefix"
else
  final_prefix="$prefix"
fi
save_prefix="$prefix"
prefix="$final_prefix"
save_datarootdir="$datarootdir"
eval "datarootdir=\"${datarootdir}\""
save_datadir="$datadir"
eval "datadir=\"${datadir}\""
pkgdatadir="${datadir}/${PACKAGE}"
datadir="$save_datadir"
datarootdir="$save_datarootdir"
prefix="$save_prefix"
AC_SUBST([pkgdatadir])

dnl Support for the po directory.
AM_PO_SUBDIRS

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([hello:hello.tcl], [chmod a+x hello])
AC_CONFIG_FILES([m4/Makefile])
AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
AC_OUTPUT