1 dnl Process this file with autoconf to produce a configure script.
3 dnl -----------------------------------------------------------
4 dnl Turning off cache for debug reasons
5 dnl -----------------------------------------------------------
6 dnl define([AC_CACHE_LOAD], )dnl
7 dnl define([AC_CACHE_SAVE], )dnl
9 AC_INIT([GNU Classpath],[0.90],[classpath@gnu.org],[classpath])
10 AC_CONFIG_SRCDIR(java/lang/System.java)
14 dnl -----------------------------------------------------------
15 dnl Fold all IA-32 CPU architectures into "x86"
16 dnl -----------------------------------------------------------
17 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
19 dnl -----------------------------------------------------------
20 dnl We will not track/change lib version until we reach version 1.0
21 dnl at which time we'll have to be more anal about such things
22 dnl -----------------------------------------------------------
23 AC_SUBST(LIBVERSION, "0:0:0")
33 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
34 AC_SUBST(CLASSPATH_MODULE)
37 AM_INIT_AUTOMAKE([1.9.0 gnu std-options tar-ustar])
38 AC_CONFIG_HEADERS([include/config.h])
39 AC_PREFIX_DEFAULT(/usr/local/classpath)
41 dnl -----------------------------------------------------------
42 dnl Enable collections.jar (disabled by default)
43 dnl -----------------------------------------------------------
44 AC_ARG_ENABLE([collections],
45 [AS_HELP_STRING(--enable-collections,create collections.jar [default=no])],
46 [case x"${enableval}" in
47 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
48 xno) COMPILE_COLLECTIONS=no ;;
49 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
50 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
52 [COMPILE_COLLECTIONS=no])
53 AM_CONDITIONAL(CREATE_COLLECTIONS, test "x${COMPILE_COLLECTIONS}" = xyes)
55 dnl -----------------------------------------------------------
56 dnl Enable JNI libraries (enabled by default)
57 dnl -----------------------------------------------------------
59 [AS_HELP_STRING(--enable-jni,compile JNI source [default=yes])],
60 [case "${enableval}" in
61 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
63 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
66 AM_CONDITIONAL(CREATE_JNI_LIBRARIES, test "x${COMPILE_JNI}" = xyes)
68 dnl -----------------------------------------------------------
69 dnl Enable core JNI libraries (enabled by default)
70 dnl -----------------------------------------------------------
71 AC_ARG_ENABLE([core-jni],
72 [AS_HELP_STRING(--enable-core-jni,
73 compile JNI sources for core [default=yes])],
74 [case "${enableval}" in
75 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
76 no) COMPILE_CORE_JNI=no ;;
77 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
79 [COMPILE_CORE_JNI=yes])
80 AM_CONDITIONAL(CREATE_CORE_JNI_LIBRARIES, test "x${COMPILE_CORE_JNI}" = xyes)
82 dnl ------------------------------------------------------------
83 dnl Whether to compile with -Werror or not (disabled by default)
84 dnl ------------------------------------------------------------
85 AC_ARG_ENABLE([Werror],
86 [AS_HELP_STRING(--enable-Werror,whether to compile C code with -Werror which turns any compiler warning into a compilation failure [default=no])],
87 [case "${enableval}" in
88 yes) ENABLE_WERROR=yes ;;
89 no) ENABLE_WERROR=no ;;
90 *) ENABLE_WERROR=no ;;
94 dnl -----------------------------------------------------------
95 dnl Default AWT toolkit
96 dnl -----------------------------------------------------------
97 AC_ARG_ENABLE(default-toolkit,
98 AS_HELP_STRING([--enable-default-toolkit],
99 [fully qualified class name of default AWT toolkit]))
100 default_toolkit=$enable_default_toolkit
101 if test "$default_toolkit" = ""; then
102 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
104 AC_SUBST(default_toolkit)
106 dnl -----------------------------------------------------------
107 dnl Native libxml/xslt library (disabled by default)
108 dnl -----------------------------------------------------------
109 AC_ARG_ENABLE([xmlj],
110 [AS_HELP_STRING(--enable-xmlj,compile native libxml/xslt library [default=no])],
111 [case "${enableval}" in
112 yes) COMPILE_XMLJ=yes ;;
113 no) COMPILE_XMLJ=no ;;
114 *) COMPILE_XMLJ=no ;;
117 AM_CONDITIONAL(CREATE_XMLJ_LIBRARY, test "x${COMPILE_XMLJ}" = xyes)
119 dnl -----------------------------------------------------------
120 dnl ALSA code (enabled by default)
121 dnl -----------------------------------------------------------
122 AC_ARG_ENABLE([alsa],
123 [AS_HELP_STRING(--disable-alsa,compile ALSA providers (enable by --enable-alsa) [default=yes])],
124 [case "${enableval}" in
125 yes) COMPILE_ALSA=yes ;;
126 no) COMPILE_ALSA=no ;;
127 *) COMPILE_ALSA=yes ;;
129 [AC_CHECK_HEADERS([alsa/asoundlib.h],
130 [AC_CHECK_LIB([asound], [snd_seq_open], COMPILE_ALSA=yes,COMPILE_ALSA=no)],
132 AM_CONDITIONAL(CREATE_ALSA_LIBRARIES, test "x${COMPILE_ALSA}" = xyes)
134 dnl -----------------------------------------------------------
135 dnl DSSI code (enabled by default)
136 dnl -----------------------------------------------------------
137 AC_ARG_ENABLE([dssi],
138 [AS_HELP_STRING(--disable-dssi,compile DSSI providers (enable by --enable-dssi) [default=yes])],
139 [case "${enableval}" in
140 yes) COMPILE_DSSI=yes ;;
141 no) COMPILE_DSSI=no ;;
142 *) COMPILE_DSSI=yes ;;
144 [AC_CHECK_HEADERS([dssi.h],COMPILE_DSSI=yes,COMPILE_DSSI=no)])
145 AM_CONDITIONAL(CREATE_DSSI_LIBRARIES, test "x${COMPILE_DSSI}" = xyes)
147 dnl -----------------------------------------------------------
148 dnl GTK native peer (enabled by default)
149 dnl -----------------------------------------------------------
150 AC_ARG_ENABLE([gtk-peer],
151 [AS_HELP_STRING(--disable-gtk-peer,compile GTK native peers (disabled by --disable-jni) [default=yes])],
152 [case "${enableval}" in
153 yes) COMPILE_GTK_PEER=yes ;;
154 no) COMPILE_GTK_PEER=no ;;
155 *) COMPILE_GTK_PEER=yes ;;
157 [COMPILE_GTK_PEER=yes])
158 AM_CONDITIONAL(CREATE_GTK_PEER_LIBRARIES, test "x${COMPILE_GTK_PEER}" = xyes)
160 dnl -----------------------------------------------------------
161 dnl GTK native peer error checking
162 dnl -----------------------------------------------------------
163 AC_ARG_ENABLE([gtk-peers],,AC_MSG_ERROR([No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer]))
165 dnl ------------------------------------------------------------
166 dnl determine whether to enable the cairo GTK Graphics2D backend
167 dnl ------------------------------------------------------------
168 AC_ARG_ENABLE([gtk-cairo],
169 [AS_HELP_STRING(--enable-gtk-cairo,build the cairo Graphics2D implementation on GTK [default=no])],
170 [case "${enableval}" in
171 yes) GTK_CAIRO_ENABLED=true ;;
172 no) GTK_CAIRO_ENABLED=false ;;
173 *) GTK_CAIRO_ENABLED=true ;;
175 [GTK_CAIRO_ENABLED=false])
176 AC_SUBST(GTK_CAIRO_ENABLED)
177 if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
178 AC_DEFINE(GTK_CAIRO, 1, [defined if cairo support was built in])
180 AM_CONDITIONAL(GTK_CAIRO, test "x${GTK_CAIRO_ENABLED}" = xtrue)
182 dnl -----------------------------------------------------------
183 dnl Qt native peer (disabled by default)
184 dnl -----------------------------------------------------------
185 AC_ARG_ENABLE([qt-peer],
186 [AS_HELP_STRING(--enable-qt-peer,compile Qt4 native peers (disabled by --disable-jni) [default=no])],
187 [case "${enableval}" in
188 yes) COMPILE_QT_PEER=yes ;;
189 no) COMPILE_QT_PEER=no ;;
190 *) COMPILE_QT_PEER=yes ;;
192 [COMPILE_QT_PEER=no])
193 AM_CONDITIONAL(CREATE_QT_PEER_LIBRARIES, test "x${COMPILE_QT_PEER}" = xyes)
196 dnl -----------------------------------------------------------
197 dnl Sets the native libraries installation dir
198 dnl -----------------------------------------------------------
199 AC_ARG_WITH([native-libdir],
200 [AS_HELP_STRING(--with-native-libdir,sets the installation directore for native libraries [default='${libdir}/${PACKAGE}'])],
202 nativelibdir=${withval}
205 nativelibdir='${libdir}/${PACKAGE}'
208 AC_SUBST(nativelibdir)
210 dnl -----------------------------------------------------------
211 dnl Sets the Java library installation dir.
212 dnl -----------------------------------------------------------
213 AC_ARG_WITH([glibj-dir],
214 [AS_HELP_STRING(--with-glibj-dir,sets the installation directory for glibj.zip [default='${libdir}/${PACKAGE}'])],
219 glibjdir='${datadir}/${PACKAGE}'
224 dnl -----------------------------------------------------------
225 dnl Regenerate headers at build time (disabled by default)
226 dnl -----------------------------------------------------------
227 AC_ARG_ENABLE([regen-headers],
228 [AS_HELP_STRING(--enable-regen-headers,automatically regenerate JNI headers [default=no])],
229 [case "${enableval}" in
230 yes) REGENERATE_JNI_HEADERS=yes ;;
231 no) REGENERATE_JNI_HEADERS=no ;;
232 *) REGENERATE_JNI_HEADERS=no ;;
234 [REGENERATE_JNI_HEADERS=no])
235 AM_CONDITIONAL(CREATE_JNI_HEADERS, test "x${REGENERATE_JNI_HEADERS}" = xyes)
240 dnl -----------------------------------------------------------
241 dnl Checks for programs.
242 dnl -----------------------------------------------------------
247 dnl Initialize libtool
255 if test "x${COMPILE_COLLECTIONS}" = xyes; then
256 AC_PATH_PROG(PERL, [perl])
258 AC_SUBST(COLLECTIONS_PREFIX)
259 AC_CONFIG_FILES([lib/mkcollections.pl])
260 AC_CONFIG_COMMANDS([mkcollections.pl],[chmod 755 lib/mkcollections.pl])
263 if test "x${COMPILE_JNI}" = xyes; then
266 dnl Checking sizeof void * is needed for fdlibm to work properly on ppc64,
268 AC_COMPILE_CHECK_SIZEOF(void *)
270 dnl Checking for endianess.
273 dnl We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
274 dnl On that system, sys/ioctl.h will not include sys/filio.h unless
275 dnl BSD_COMP is defined; just including sys/filio.h is simpler.
276 dnl Check for crt_externs.h on Darwin.
277 AC_CHECK_HEADERS([unistd.h sys/types.h sys/config.h sys/ioctl.h \
279 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
286 AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
287 AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
288 AC_EGREP_HEADER(u_int32_t, sys/types.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
289 AC_EGREP_HEADER(u_int32_t, sys/config.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
291 AC_CHECK_FUNCS([ftruncate fsync select \
292 gethostname socket strerror fork pipe execve open close \
293 lseek fstat read write htonl memset htons connect \
294 getsockname getpeername bind listen accept \
295 recvfrom send sendto setsockopt getsockopt time mktime \
299 mmap munmap mincore msync madvise getpagesize sysconf \
306 AC_MSG_CHECKING([for tm_gmtoff in struct tm])
307 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]],[[struct tm tim; tim.tm_gmtoff = 0;]])],
308 [AC_DEFINE(STRUCT_TM_HAS_GMTOFF, 1, [Define if struct tm has tm_gmtoff field.])
311 AC_MSG_CHECKING([for global timezone variable])
312 dnl FIXME: we don't want a link check here because that won't work
313 dnl when cross-compiling. So instead we make an assumption that
314 dnl the header file will mention timezone if it exists.
315 dnl Don't find the win32 function timezone
316 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[void i(){long z2 = 2*timezone;}]])],
317 [AC_DEFINE(HAVE_TIMEZONE, 1, [Define if global 'timezone' exists.])
320 AC_MSG_CHECKING([for global _timezone variable])
321 dnl FIXME: As above, don't want link check
322 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[long z2 = _timezone;]])],
323 [AC_DEFINE(HAVE_UNDERSCORE_TIMEZONE, 1,
324 [Define if your platform has the global _timezone variable.])
326 [AC_MSG_RESULT(no)])])])
331 dnl See if we HAVE_ICONV, how ICONV_CONST is set and LTLIBICONV
334 dnl When using gcc we want warnings, lots of warnings :-)
335 if test "x${GCC}" = xyes; then
336 dnl We want ISO C90 pedantic ansi, but with longlong (jlong) support
337 dnl and modern POSIX and BSD C library functions/prototypes.
339 dnl Warning flags for (almost) everybody.
340 dnl Should probably be configurable
341 WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
342 AC_SUBST(WARNING_CFLAGS)
344 dnl Strict warning flags which not every module uses.
345 dnl Should probably be configurable.
346 STRICT_WARNING_CFLAGS=-Wstrict-prototypes
347 AC_SUBST(STRICT_WARNING_CFLAGS)
349 dnl Whether or not to add -Werror, also not used by all modueles.
350 dnl Can be configured by --disable-Werror
352 if test "x${ENABLE_WERROR}" = xyes; then
353 ERROR_CFLAGS='-Werror'
355 AC_SUBST(ERROR_CFLAGS)
358 dnl Check for libxml and libxslt libraries (when xmlj is enabled).
359 if test "x${COMPILE_XMLJ}" = xyes; then
360 PKG_CHECK_MODULES(XML, libxml-2.0 >= 2.6.8)
361 PKG_CHECK_MODULES(XSLT, libxslt >= 1.1.11)
365 AC_SUBST(XSLT_CFLAGS)
368 dnl Check for AWT related gthread/gtk
369 if test "x${COMPILE_GTK_PEER}" = xyes; then
371 if test "$no_x" = yes; then
372 AC_MSG_ERROR([GTK+ peers requested but no X library available])
374 dnl We explicitly want the XTest Extension for Robot support.
375 AC_CHECK_LIB([Xtst], [XTestQueryExtension], [true],
376 [AC_MSG_ERROR([libXtst NOT found, required for GdkRobot])],
378 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0)
380 if test "x${enable_gtk_cairo}" = xyes; then
381 PKG_CHECK_MODULES(CAIRO, cairo >= 0.5.0)
384 PKG_CHECK_MODULES(FREETYPE2, freetype2)
385 PKG_CHECK_MODULES(PANGOFT2, pangoft2)
390 AC_SUBST(CAIRO_CFLAGS)
391 AC_SUBST(FREETYPE2_LIBS)
392 AC_SUBST(FREETYPE2_CFLAGS)
393 AC_SUBST(PANGOFT2_LIBS)
394 AC_SUBST(PANGOFT2_CFLAGS)
397 dnl Check for AWT related Qt4
398 if test "x${COMPILE_QT_PEER}" = xyes; then
399 PKG_CHECK_MODULES(QT, QtCore QtGui >= 4.1.0, HAVE_QT4="yes", HAVE_QT4="no")
400 if test "x$HAVE_QT4" = "xyes"; then
401 dnl Check needed because in some cases the QtGui includedir
402 dnl doesn't contain the subsystem dir.
403 QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
404 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
405 AC_CHECK_FILE([$QT_INCLUDE_DIR/QWidget],
406 AC_MSG_NOTICE([No extra QT_INCLUDE_DIR needed]),
407 AC_CHECK_FILE([$EXTRA_QT_INCLUDE_DIR/QWidget],
408 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR",
409 AC_MSG_WARN([QWidget not found])))
410 AC_CHECK_PROG(MOC, [moc], [moc])
412 if test "x$HAVE_QT4" = "xno"; then
413 AC_MSG_NOTICE([Looking for QT_CFLAGS and QT_LIBS without pkg-config])
416 AC_ARG_WITH([qt4dir],
417 [AS_HELP_STRING([--with-qt4dir=DIR],
418 [Qt4 installation directory used for OS-X.
419 For other systems use pkg-config.])],
422 if test x"$QT4DIR" = x ; then
423 AC_MSG_ERROR([*** No path for Qt4 --with-qt4dir option given])
425 AC_MSG_RESULT([QT4DIR... $QT4DIR])
426 AC_CHECK_PROG(MOC, [moc], [$QT4DIR/bin/moc], [], $QT4DIR/bin)
427 if test x"$MOC" = x; then
428 AC_MSG_ERROR([*** This is not the right Qt installation])
430 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
431 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
432 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
433 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
436 AC_MSG_ERROR([*** Please check PKG_CONFIG_PATH or the version
437 of your installed Qt4 installation.])
441 AC_MSG_NOTICE([Set QT_CFLAGS... $QT_CFLAGS])
449 dnl -----------------------------------------------------------
450 dnl Add the include files for the native abstraction layer.
451 dnl Used by AM_CPPFLAGS in the different modules.
452 dnl -----------------------------------------------------------
453 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
454 AC_SUBST(CLASSPATH_INCLUDES)
456 dnl -----------------------------------------------------------
457 if test "x${COMPILE_JNI}" = xyes; then
458 AC_MSG_CHECKING(jni_md.h support)
459 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
464 AC_MSG_WARN(no, using x86-linux-gnu)
466 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
467 ac_dests="include/jni_md.h"
468 while test -n "$ac_sources"; do
469 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
470 set $ac_sources; ac_source=$1; shift; ac_sources=$*
471 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
473 AC_CONFIG_LINKS([$ac_config_links_1])
478 CLASSPATH_WITH_CLASSLIB
480 dnl -----------------------------------------------------------
481 dnl Initialize maintainer mode
482 dnl -----------------------------------------------------------
485 dnl -----------------------------------------------------------
486 dnl Enable debugging statements at compile time. By default
487 dnl these statements should be optimized out of the bytecode
488 dnl produced by an optimizing Java compiler and not hinder
489 dnl performance because debugging is turned off by default.
490 dnl -----------------------------------------------------------
491 AC_ARG_ENABLE([debug],
492 [AS_HELP_STRING(--enable-debug,enable runtime debugging code)],
493 [case "${enableval}" in
496 AC_DEFINE(DEBUG, 1, [Define to 1 if you want native library runtime debugging code enabled])
498 no) LIBDEBUG="false" ;;
499 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
504 dnl -----------------------------------------------------------
505 dnl Enable execution of all static initializer loadLibrary()
506 dnl calls at compile time. By default most people will not
507 dnl want to disable this, but some VMs (gcj) don't need or want
509 dnl -----------------------------------------------------------
510 AC_ARG_ENABLE([load-library],
511 [AS_HELP_STRING(--enable-load-library,enable to use JNI native methods [default=yes])],
512 [case "${enableval}" in
513 yes) INIT_LOAD_LIBRARY="true" ;;
514 no) INIT_LOAD_LIBRARY="false" ;;
515 *) AC_MSG_ERROR(bad value ${enableval} for --enable-load-library) ;;
517 [INIT_LOAD_LIBRARY="true"])
518 AC_SUBST(INIT_LOAD_LIBRARY)
521 dnl -----------------------------------------------------------
522 dnl Should the VM explicitly run class initialization subfunctions for
523 dnl java.lang.System? (default is false -- the subfunctions will be run
524 dnl automatically by the class initializer)
525 dnl -----------------------------------------------------------
526 AC_ARG_ENABLE([java-lang-system-explicit-initialization],
527 [AS_HELP_STRING(--enable-java-lang-system-explicit-initialization,will the VM explicitly invoke java.lang.System's static initialization methods [default=no])],
528 [case "${enableval}" in
529 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
530 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
531 *) AC_MSG_ERROR(bad value ${enableval} for --enable-java-lang-system-explicit-initialization) ;;
533 [JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"])
534 AC_SUBST(JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION)
537 dnl -----------------------------------------------------------
538 dnl avoiding automake complaints
539 dnl -----------------------------------------------------------
543 dnl -----------------------------------------------------------
544 dnl This is probably useless.
545 dnl -----------------------------------------------------------
546 AC_PATH_PROG(MKDIR, mkdir)
548 AC_PATH_PROG(DATE, date)
550 dnl -----------------------------------------------------------
551 dnl According to the GNU coding guide, we shouldn't require find,
552 dnl and zip, however GNU provides both so it should be okay
553 dnl -----------------------------------------------------------
554 AC_PATH_PROG(FIND, find)
556 dnl -----------------------------------------------------------
557 dnl Specify what to install (install only glibj.zip by default)
558 dnl -----------------------------------------------------------
561 dnl -----------------------------------------------------------
562 dnl Enable API documentation generation (disabled by default)
563 dnl -----------------------------------------------------------
566 dnl -----------------------------------------------------------
567 dnl Whether to use jay to regenerate parsers.
568 dnl -----------------------------------------------------------
571 dnl -----------------------------------------------------------
572 dnl This sets the build-time default, which can now be overridden
573 dnl by setting the system property gnu.classpath.awt.gtk.portable.native.sync
574 dnl to "true" or "false".
575 dnl -----------------------------------------------------------
576 AC_ARG_ENABLE([portable-native-sync],
577 [AS_HELP_STRING(--enable-portable-native-sync,synchronize VM threads portably)],
578 [case "${enableval}" in
580 AC_DEFINE(PORTABLE_NATIVE_SYNC, 1, [Define if you want to synchronize VM threads portably by default; undef otherwise])
584 AC_MSG_ERROR(bad value ${enableval} for --enable-portable-native-sync)
589 AX_CREATE_STDINT_H([include/config-int.h])
591 dnl -----------------------------------------------------------
593 dnl -----------------------------------------------------------
594 AC_CONFIG_FILES([Makefile
598 external/sax/Makefile
599 external/w3c_dom/Makefile
600 external/relaxngDatatype/Makefile
601 gnu/classpath/Configuration.java
604 native/fdlibm/Makefile
607 native/jni/classpath/Makefile
608 native/jni/java-io/Makefile
609 native/jni/java-lang/Makefile
610 native/jni/java-net/Makefile
611 native/jni/java-nio/Makefile
612 native/jni/java-util/Makefile
613 native/jni/gtk-peer/Makefile
614 native/jni/qt-peer/Makefile
615 native/jni/xmlj/Makefile
616 native/jni/midi-alsa/Makefile
617 native/jni/midi-dssi/Makefile
618 native/target/Makefile
619 native/target/Linux/Makefile
620 native/target/generic/Makefile
623 scripts/classpath.spec
626 lib/copy-vmresources.sh
629 examples/Makefile.jawt])
630 AC_CONFIG_COMMANDS([gen-classlist],[chmod 755 lib/gen-classlist.sh])
631 AC_CONFIG_COMMANDS([copy-vmresources],[chmod 755 lib/copy-vmresources.sh])