1 dnl Example for use of GNU gettext.
2 dnl This file is in the public domain.
4 dnl Configuration file - processed by autoconf.
7 AC_CONFIG_SRCDIR(Hello.java)
8 AM_INIT_AUTOMAKE(hello-java-awt, 0)
10 dnl Check whether we can build native executable.
11 AC_ARG_ENABLE(java-exe,
12 [ --enable-java-exe compile Java to native code, not to bytecode],
13 :, enable_java_exe=no)
15 if test "$enable_java_exe" != no && test -n "$HAVE_GCJ"; then
20 AC_SUBST(BUILDJAVAEXE)
21 AM_CONDITIONAL([USEJEXE], [test "$BUILDJAVAEXE" = yes])
24 dnl Check whether we can execute Java programs.
25 gt_JAVAEXEC([TestAWT], [$srcdir/m4])
26 dnl Check whether we can build Java programs.
28 AC_CHECK_PROG(JAR, jar, jar)
29 if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
35 if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then
42 dnl Checks for compiler output filename suffixes.
46 dnl Checks for needed libraries.
47 AM_PATH_PROG_WITH_TEST([GETTEXT_WITH_LIBINTL_JAR], [gettext],
48 [{ basedir=`echo "$ac_dir" | sed -e 's,/bin$,,'`; test -r "$basedir"/share/gettext/libintl.jar; }])
49 if test -z "$GETTEXT_WITH_LIBINTL_JAR"; then
50 echo "Required library libintl.jar not found." 1>&2
54 basedir=`echo "$GETTEXT_WITH_LIBINTL_JAR" | sed -e 's,/[^/]*$,,' | sed -e 's,/bin$,,'`
56 LIBINTL_JAR="$basedir"/share/gettext/libintl.jar
57 AC_SUBST([LIBINTL_JAR])
59 dnl Support for the po directory.
62 AC_CONFIG_FILES([Makefile])
63 AC_CONFIG_FILES([javacomp.sh])
64 AC_CONFIG_FILES([javaexec.sh])
65 AC_CONFIG_FILES([m4/Makefile])
66 AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])