dnl /* dnl Copyright (C) 2002 Free Software Foundation, Inc. dnl dnl This file is part of GNU Classpath. dnl dnl GNU Classpath is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2, or (at your option) dnl any later version. dnl dnl GNU Classpath is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with GNU Classpath; see the file COPYING. If not, write to the dnl Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA dnl 02111-1307 USA. dnl dnl Linking this library statically or dynamically with other modules is dnl making a combined work based on this library. Thus, the terms and dnl conditions of the GNU General Public License cover the whole dnl combination. dnl dnl As a special exception, the copyright holders of this library give you dnl permission to link this library with independent modules to produce an dnl executable, regardless of the license terms of these independent dnl modules, and to copy and distribute the resulting executable under dnl terms of your choice, provided that you also meet, for each linked dnl independent module, the terms and conditions of the license of that dnl module. An independent module is a module which is not derived from dnl or based on this library. If you modify this library, you may extend dnl this exception to your version of the library, but you are not dnl obligated to do so. If you do not wish to do so, delete this dnl exception statement from your version. dnl */ AC_INIT([sablevm], [native-library-1.0.9], [http://www.sablevm.org/]) AC_CONFIG_SRCDIR([src/include/jni.h]) AM_CONFIG_HEADER(src/include/config.h) AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION) AC_SUBST(SABLEVM_VERSION, `echo $AC_PACKAGE_VERSION | cut -d\- -f 3`) AC_DEFINE(_REENTRANT,1,link with reentrant library functions) AC_DEFINE(_POSIX_C_SOURCE,199506L,link with POSIX library functions) AC_DEFINE(_GNU_SOURCE,1,use GNU C library extentions) AC_DISABLE_STATIC dnl debugging features AC_ARG_ENABLE(debugging-features, [ --enable-debugging-features Add compiler and runtime checks],, [enable_debugging_features=no]) case "$enable_debugging_features" in no) AC_DEFINE(NDEBUG,1,turn off runtime assertions) ;; yes) ;; *) AC_MSG_ERROR(bad value \"${enable_debugging_features}\" for --enable-debugging-features) ;; esac dnl Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_LIBTOOL_DLOPEN AM_PROG_LIBTOOL dnl Checks for libraries. dnl Checks for header files. AC_PATH_X AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS([errno.h fcntl.h inttypes.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h utime.h]) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_MODE_T AC_TYPE_SIZE_T AC_HEADER_TIME dnl Checks for library functions. AC_FUNC_LSTAT AC_FUNC_MALLOC AC_FUNC_MKTIME AC_FUNC_STAT AC_FUNC_STRTOD AC_FUNC_UTIME_NULL AC_CHECK_FUNCS([atexit floor ftruncate gethostbyaddr gethostbyname gethostname gettimeofday memset mkdir rmdir socket sqrt strdup strerror utime]) dnl GCC specific options if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall" if test "$enable_debugging_features" = "yes"; then CFLAGS="$CFLAGS -O0 -ggdb3" fi fi AC_CONFIG_FILES([ Makefile classpath-docs/Makefile src/Makefile src/include/Makefile src/jni-include/Makefile src/classpath/Makefile src/fdlibm/Makefile src/java-io/Makefile src/java-lang/Makefile src/java-net/Makefile src/java-util/Makefile src/gnu-java-awt-peer-gtk/Makefile ]) AC_OUTPUT