~win-cross-dev/win-cross/gettext

« back to all changes in this revision

Viewing changes to gettext-tools/examples/hello-php/configure.ac

  • Committer: Nathan Osman
  • Date: 2012-08-11 05:06:52 UTC
  • Revision ID: admin@quickmediasolutions.com-20120811050652-ochkxjtonbw6kkve
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Example for use of GNU gettext.
 
2
dnl This file is in the public domain.
 
3
dnl
 
4
dnl Configuration file - processed by autoconf.
 
5
 
 
6
AC_INIT
 
7
AC_CONFIG_SRCDIR(hello.php)
 
8
AM_INIT_AUTOMAKE(hello-php, 0)
 
9
 
 
10
dnl Check for availability of the PHP system.
 
11
AC_PATH_PROG(PHP, php)
 
12
if test -z "$PHP"; then
 
13
  echo "*** Essential program php not found" 1>&2
 
14
  exit 1
 
15
fi
 
16
AC_SUBST(PHP)
 
17
 
 
18
dnl The installed program must know where to find its message catalogs.
 
19
dnl Unfortunately, prefix gets only finally determined at the end of configure.
 
20
if test "X$prefix" = "XNONE"; then
 
21
  final_prefix="$ac_default_prefix"
 
22
else
 
23
  final_prefix="$prefix"
 
24
fi
 
25
save_prefix="$prefix"
 
26
prefix="$final_prefix"
 
27
eval "datarootdir=\"${datarootdir}\""
 
28
eval "localedir=\"${datadir}/locale\""
 
29
prefix="$save_prefix"
 
30
AC_SUBST(localedir)
 
31
 
 
32
dnl Support for the po directory.
 
33
AM_PO_SUBDIRS
 
34
 
 
35
AC_CONFIG_FILES([Makefile])
 
36
AC_CONFIG_FILES([hello:hello.php], [chmod a+x hello])
 
37
AC_CONFIG_FILES([m4/Makefile])
 
38
AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
 
39
AC_OUTPUT