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