/[classpath]/classpath/configure.ac
ViewVC logotype

Diff of /classpath/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.54 by mkoch, Fri Oct 15 07:16:06 2004 UTC revision 1.55 by mark, Tue Oct 26 20:26:03 2004 UTC
# Line 21  dnl We will not track/change lib version Line 21  dnl We will not track/change lib version
21  dnl at which time we'll have to be more anal about such things  dnl at which time we'll have to be more anal about such things
22  dnl -----------------------------------------------------------  dnl -----------------------------------------------------------
23  AC_SUBST(LIBVERSION, "0:0:0")  AC_SUBST(LIBVERSION, "0:0:0")
24  CLASSPATH_MODULE="-module -version-info ${LIBVERSION}"  CLASSPATH_MODULE="-module -version-info ${LIBVERSION} -no-undefined"
25  AC_SUBST(CLASSPATH_MODULE)  AC_SUBST(CLASSPATH_MODULE)
26    
27  AC_PREREQ(2.59)  AC_PREREQ(2.59)
# Line 43  AC_ARG_ENABLE([jni], Line 43  AC_ARG_ENABLE([jni],
43  AM_CONDITIONAL(CREATE_JNI_LIBRARIES, test "x${COMPILE_JNI}" = xyes)  AM_CONDITIONAL(CREATE_JNI_LIBRARIES, test "x${COMPILE_JNI}" = xyes)
44    
45  dnl -----------------------------------------------------------  dnl -----------------------------------------------------------
46    dnl Whether to compile with -Werror or not (enabled by default)
47    dnl -----------------------------------------------------------
48    AC_ARG_ENABLE([Werror],
49                  [AS_HELP_STRING(--disable-Werror,whether to compile C code with -Werror which turns any compiler warning into a compilation failure [default=yes])],
50                  [case "${enableval}" in
51                    yes) ENABLE_WERROR=yes ;;
52                    no) ENABLE_WERROR=no ;;
53                    *) ENABLE_WERROR=yes ;;
54                  esac],
55                  [ENABLE_WERROR=yes])
56    
57    dnl -----------------------------------------------------------
58  dnl GTK native peer (enabled by default)  dnl GTK native peer (enabled by default)
59  dnl -----------------------------------------------------------  dnl -----------------------------------------------------------
60  AC_ARG_ENABLE([gtk-peer],  AC_ARG_ENABLE([gtk-peer],
61                [AS_HELP_STRING(--disable-gtk-peer,compile GTK native peers,disabled by --disable-jni [default=yes])],                [AS_HELP_STRING(--disable-gtk-peer,compile GTK native peers (disabled by --disable-jni) [default=yes])],
62                [case "${enableval}" in                [case "${enableval}" in
63                  yes) COMPILE_GTK_PEER=yes ;;                  yes) COMPILE_GTK_PEER=yes ;;
64                  no) COMPILE_GTK_PEER=no ;;                  no) COMPILE_GTK_PEER=no ;;
# Line 160  if test "x${COMPILE_JNI}" = xyes; then Line 172  if test "x${COMPILE_JNI}" = xyes; then
172    dnl FIXME - does not allow cross compiling    dnl FIXME - does not allow cross compiling
173    AC_C_BIGENDIAN    AC_C_BIGENDIAN
174    
175    dnl We want warnings, lots of warnings :-)    dnl When using gcc we want warnings, lots of warnings :-)
   AM_CFLAGS=  
176    if test "x${GCC}" = xyes; then    if test "x${GCC}" = xyes; then
177      dnl We want ISO C90 pedantic ansi, but with longlong (jlong) support      dnl We want ISO C90 pedantic ansi, but with longlong (jlong) support
178      dnl and modern POSIX and BSD C library functions/prototypes.      dnl and modern POSIX and BSD C library functions/prototypes.
179      AM_CFLAGS='-ansi -pedantic -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wall -Wno-long-long -D_BSD_SOURCE '  
180        dnl Warning flags for (almost) everybody.
181        dnl Should probably be configurable
182        WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
183        AC_SUBST(WARNING_CFLAGS)
184    
185        dnl Strict warning flags which not every module uses.
186        dnl Should probably be configurable.
187        STRICT_WARNING_CFLAGS=-Wstrict-prototypes
188        AC_SUBST(STRICT_WARNING_CFLAGS)
189    
190        dnl Whether or not to add -Werror, also not used by all modueles.
191        dnl Can be configured by --disable-Werror
192        ERROR_CFLAGS=
193        if test "x${ENABLE_WERROR}" = xyes; then
194           ERROR_CFLAGS='-Werror'
195        fi
196        AC_SUBST(ERROR_CFLAGS)
197    fi    fi
   AC_SUBST(AM_CFLAGS)  
198    
199    dnl Check for AWT related gthread/gtk/libart_lgpl    dnl Check for AWT related gthread/gtk/libart_lgpl
200    if test "x${COMPILE_GTK_PEER}" = xyes; then    if test "x${COMPILE_GTK_PEER}" = xyes; then
# Line 191  CLASSPATH_WITH_JAVAH Line 218  CLASSPATH_WITH_JAVAH
218    
219  dnl -----------------------------------------------------------  dnl -----------------------------------------------------------
220  dnl Add the include files for the native abstraction layer.  dnl Add the include files for the native abstraction layer.
221    dnl Used by AM_CPPFLAGS in the different modules.
222  dnl -----------------------------------------------------------  dnl -----------------------------------------------------------
223  AM_CPPFLAGS="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath"  CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
224  AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"  AC_SUBST(CLASSPATH_INCLUDES)
 AC_SUBST(AM_CPPFLAGS)  
225    
226  dnl -----------------------------------------------------------  dnl -----------------------------------------------------------
227  if test "x${COMPILE_JNI}" = xyes; then  if test "x${COMPILE_JNI}" = xyes; then

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26