• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/examples/hello-java-swing/
1dnl Example for use of GNU gettext.
2dnl This file is in the public domain.
3dnl
4dnl Configuration file - processed by autoconf.
5
6AC_INIT
7AC_CONFIG_SRCDIR(Hello.java)
8AM_INIT_AUTOMAKE(hello-java-swing, 0)
9
10dnl Check whether we can build native executable.
11AC_ARG_ENABLE(java-exe,
12  [  --enable-java-exe       compile Java to native code, not to bytecode],
13  :, enable_java_exe=no)
14gt_GCJ
15if test "$enable_java_exe" != no && test -n "$HAVE_GCJ"; then
16  BUILDJAVAEXE=yes
17else
18  BUILDJAVAEXE=no
19fi
20AC_SUBST(BUILDJAVAEXE)
21AM_CONDITIONAL([USEJEXE], [test $BUILDJAVAEXE = yes])
22AC_PROG_RANLIB
23
24dnl Check whether we can execute Java programs.
25gt_JAVAEXEC([TestAWT], [$srcdir/m4])
26dnl Check whether we can build Java programs.
27gt_JAVACOMP([1.3])
28AC_CHECK_PROG(JAR, jar, jar)
29if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
30  BUILDJAVA=yes
31else
32  BUILDJAVA=no
33fi
34AC_SUBST(BUILDJAVA)
35if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
36  TESTJAVA=yes
37else
38  TESTJAVA=no
39fi
40AC_SUBST(TESTJAVA)
41
42dnl Checks for compiler output filename suffixes.
43AC_OBJEXT
44AC_EXEEXT
45
46dnl Checks for needed libraries.
47AM_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; }])
49if test -z "$GETTEXT_WITH_LIBINTL_JAR"; then
50  echo "Required library libintl.jar not found." 1>&2
51  exit 1
52fi
53changequote(,)dnl
54basedir=`echo "$GETTEXT_WITH_LIBINTL_JAR" | sed -e 's,/[^/]*$,,' | sed -e 's,/bin$,,'`
55changequote([, ])dnl
56LIBINTL_JAR="$basedir"/share/gettext/libintl.jar
57AC_SUBST([LIBINTL_JAR])
58
59dnl Support for the po directory.
60AM_PO_SUBDIRS
61
62AC_CONFIG_FILES([Makefile])
63AC_CONFIG_FILES([javacomp.sh])
64AC_CONFIG_FILES([javaexec.sh])
65AC_CONFIG_FILES([m4/Makefile])
66AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
67AC_OUTPUT
68