Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-java-qtjambi / configure.ac
blobf62d652baba8ca7a65b7066107c3242eee540002
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.
6 AC_INIT
7 AC_CONFIG_SRCDIR(Hello.java)
8 AM_INIT_AUTOMAKE(hello-java-qtjambi, 0)
10 dnl Check whether we can build native executable.
11 dnl This does currently not work, since QtJambi requires a Java >= 1.5.
12 dnl AC_ARG_ENABLE(java-exe,
13 dnl   [  --enable-java-exe       compile Java to native code, not to bytecode],
14 dnl   :, enable_java_exe=no)
15 dnl gt_GCJ
16 dnl if test "$enable_java_exe" != no && test -n "$HAVE_GCJ"; then
17 dnl   BUILDJAVAEXE=yes
18 dnl else
19 dnl   BUILDJAVAEXE=no
20 dnl fi
21 BUILDJAVAEXE=no
22 AC_SUBST(BUILDJAVAEXE)
23 AM_CONDITIONAL([USEJEXE], [test $BUILDJAVAEXE = yes])
24 AC_PROG_RANLIB
26 dnl Check whether we can execute Java programs.
27 gt_JAVAEXEC([Test15], [$srcdir/m4])
28 dnl Check whether we can build Java programs.
29 gt_JAVACOMP([1.5], [1.5])
30 AC_CHECK_PROG(JAR, jar, jar)
31 if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
32   BUILDJAVA=yes
33 else
34   BUILDJAVA=no
36 AC_SUBST(BUILDJAVA)
37 if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
38   TESTJAVA=yes
39 else
40   TESTJAVA=no
42 AC_SUBST(TESTJAVA)
44 dnl Checks for compiler output filename suffixes.
45 AC_OBJEXT
46 AC_EXEEXT
48 dnl Checks for needed libraries.
49 AM_PATH_PROG_WITH_TEST([GETTEXT_WITH_LIBINTL_JAR], [gettext],
50   [{ basedir=`echo "$ac_dir" | sed -e 's,/bin$,,'`; test -r "$basedir"/share/gettext/libintl.jar; }])
51 if test -z "$GETTEXT_WITH_LIBINTL_JAR"; then
52   echo "Required library libintl.jar not found." 1>&2
53   exit 1
55 changequote(,)dnl
56 basedir=`echo "$GETTEXT_WITH_LIBINTL_JAR" | sed -e 's,/[^/]*$,,' | sed -e 's,/bin$,,'`
57 changequote([, ])dnl
58 LIBINTL_JAR="$basedir"/share/gettext/libintl.jar
59 AC_SUBST([LIBINTL_JAR])
61 dnl Support for the po directory.
62 AM_PO_SUBDIRS
64 AC_CONFIG_FILES([Makefile])
65 AC_CONFIG_FILES([javacomp.sh])
66 AC_CONFIG_FILES([javaexec.sh])
67 AC_CONFIG_FILES([m4/Makefile])
68 AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
69 AC_OUTPUT