]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/cpp/DataBoardTest/libantlr3c-3.2/configure.ac
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / libantlr3c-3.2 / configure.ac
index d2cc8259815822b58d4637c8d15543def38ff3e9..516cce292d52a88dff6441366923c5d3971e7e2c 100644 (file)
-#                                               -*- Autoconf -*-\r
-# Process this file with autoconf to produce a configure script.\r
-\r
-AC_INIT(libantlr3c, 3.2, jimi@temporal-wave.com)\r
-AC_PREREQ(2.60)\r
-AC_COPYRIGHT([\r
- (The "BSD licence")\r
- Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC\r
- http://www.temporal-wave.com\r
- http://www.linkedin.com/in/jimidle\r
- All rights reserved.\r
-\r
- Redistribution and use in source and binary forms, with or without\r
- modification, are permitted provided that the following conditions\r
- are met:\r
- 1. Redistributions of source code must retain the above copyright\r
-    notice, this list of conditions and the following disclaimer.\r
- 2. Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the\r
-    documentation and/or other materials provided with the distribution.\r
- 3. The name of the author may not be used to endorse or promote products\r
-    derived from this software without specific prior written permission.\r
-\r
- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
- OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
- IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-])\r
-AC_CONFIG_SRCDIR(src/antlr3parser.c)\r
-\r
-\r
-AC_ARG_ENABLE([debuginfo],\r
-               [AS_HELP_STRING([--enable-debuginfo], [Compiles debug info into the library (default --disable-debuginfo)])],\r
-               [], [enable_debuginfo=no])\r
-\r
-AC_ARG_ENABLE([64bit],\r
-               [AS_HELP_STRING([--enable-64bit], [Turns on flags that produce 64 bit object code if any are required (default --disable-64bit)])],\r
-               [], [enable_64bit=no])\r
-\r
-AC_ARG_ENABLE([abiflags],\r
-               [AS_HELP_STRING([--disable-abiflags], [Does not add ABI flags -m32 or -m64 for older versions of gcc, such as itanium 3.x (default --enable-abiflags=yes)])],\r
-               [], [enable_abiflags=yes])\r
-\r
-AC_ARG_ENABLE([antlrdebug],\r
-               [AS_HELP_STRING([--disable-antlrdebug], [Turns off default flags that include the antlr debugger in the runtime. Specify to remove debugger and the socket dependancies (default --enable-antlrdebug)])],\r
-               [], [enable_antlrdebug=yes])\r
-\r
-AM_INIT_AUTOMAKE(foreign)\r
-AC_LANG(C)\r
-AC_PROG_CC([xlc aCC gcc cc])\r
-AM_MAINTAINER_MODE\r
-AM_PROG_LIBTOOL\r
-\r
-AC_CANONICAL_BUILD\r
-AC_CANONICAL_HOST\r
-\r
-OBJECT_MODE=\r
-# Checks for programs.\r
-AC_MSG_CHECKING([compiler flags required for compiling ANTLR with $CC C compiler on host $host])\r
-WARNFLAGS=\r
-case $CC in\r
-xlc*)\r
- CPPCMNTFLAGS="-qcpluscmt"\r
- if test x"$enable_64bit" = xyes; then\r
-  CCFLAGS64="-q64 -Wl,-b64"\r
-  OBJECT_MODE="64"\r
- else\r
-  OBJECT_MODE="32"\r
- fi\r
- OPTIMFLAGS="-O2"\r
- if test x"$enable_debuginfo" = xyes; then\r
-  DEBUGFLAGS="-g"\r
- fi\r
- ;;\r
-\r
-aCC*)\r
- CPPCMNTFLAGS=\r
- if test x"$enable_64bit" = xyes; then\r
-  CCFLAGS64="+DD64"\r
- fi\r
- OPTIMFLAGS="-O"\r
- if test $DEBUGINF = 1; then\r
-  DEBUGFLAGS="-g"\r
- fi\r
- ;;\r
-\r
-gcc*)\r
- CPPCMNTFLAGS=\r
- if test x"$enable_64bit" = xyes; then\r
-  GCCABIFLAGS="-m64"\r
- else\r
-  GCCABIFLAGS="-m32"\r
- fi\r
- if test x"$enable_abiflags" = xyes; then\r
-  CCFLAGS64=$GCCABIFLAGS\r
- fi\r
- OPTIMFLAGS="-O2"\r
- if test x"$enable_debuginfo" = xyes; then\r
-  DEBUGFLAGS="-g"\r
- fi\r
- WARNFLAGS=-Wall\r
- ;;\r
-\r
-*)\r
-\r
-case $host in\r
-sparc*-*solaris*)\r
- CPPCMNTFLAGS=\r
- if test x"$enable_64bit" = xyes; then\r
-  CCFLAGS64="-fast -xtarget=ultra4 -m64 -xarch=sparcvis"\r
- fi\r
- OPTIMFLAGS="-O"\r
- if test x"$enable_debuginfo" = xyes; then\r
-  DEBUGFLAGS='-g'\r
- fi\r
- ;;\r
-\r
-*)\r
- CPPCMNTFLAGS=\r
- CCFLAGS64=\r
- OPTIMFLAGS="-O"\r
- if test x"$enable_debuginfo" = xyes; then\r
-  DEBUGFLAGS='-g'\r
- fi\r
- ;;\r
-esac\r
-\r
- ;;\r
-esac\r
-\r
-CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"\r
-AC_MSG_RESULT([$CFLAGS])\r
-AC_SUBST([OBJECT_MODE])\r
-\r
-AS_IF([test "x$enable_antlrdebug" = xno], [AC_DEFINE([ANTLR3_NODEBUGGER], [1], [Define if ANTLR debugger not required])], [])\r
-AS_IF([test x"$enable_64bit" = xyes], [AC_DEFINE([ANTLR3_USE_64BIT], [1], [Define if 64 bit mode required])], [])\r
-\r
-AC_PROG_INSTALL\r
-AC_PROG_LN_S\r
-AC_PROG_MAKE_SET\r
-\r
-# Checks for libraries.\r
-\r
-# Checks for header files.\r
-AC_INCLUDES_DEFAULT()\r
-AC_HEADER_RESOLV\r
-AC_CHECK_HEADERS([sys/malloc.h malloc.h], [], [],\r
-[[#ifdef HAVE_SYS_MALLOC_H\r
-#include <sys/malloc.h>\r
-#endif\r
-#ifdef HAVE_MALLOC_H\r
-#include <malloc.h>\r
-#endif\r
-]])\r
-AC_CHECK_HEADERS([stdarg.h], [], [],\r
-[[#ifdef HAVE_STDARG_H\r
-#include <stdarg.h>\r
-#endif\r
-]])\r
-\r
-AC_CHECK_HEADERS([sys/stat.h], [], [],\r
-[[#ifdef HAVE_SYS_STAT_H\r
-#include <sys/stat.h>\r
-#endif\r
-]])\r
-\r
-AC_CHECK_HEADERS([ctype.h], [], [],\r
-[[#ifdef HAVE_CTYPE_H\r
-#include <ctype.h>\r
-#endif\r
-]])\r
-\r
-AC_CHECK_HEADERS([netinet/tcp.h], [], [],\r
-[[#ifdef HAVE_NETINET_TCP_H\r
-#include <netinet/tcp.h>\r
-#endif\r
-]])\r
-\r
-AC_CHECK_HEADERS([sys/socket.h socket.h], [], [],\r
-[[#ifdef HAVE_SYS_SOCKET_H\r
-#include <sys/socket.h>\r
-#endif\r
-#ifdef HAVE_SOCKET_H\r
-#include <socket.h>\r
-#endif\r
-]])\r
-\r
-# Checks for typedefs, structures, and compiler characteristics.\r
-AC_C_CONST\r
-AC_TYPE_SIZE_T\r
-AC_TYPE_INT8_T\r
-AC_TYPE_INT16_T\r
-AC_TYPE_INT32_T\r
-AC_TYPE_INT64_T\r
-AC_TYPE_INTPTR_T\r
-AC_TYPE_UINT8_T\r
-AC_TYPE_UINT16_T\r
-AC_TYPE_UINT32_T\r
-AC_TYPE_UINT64_T\r
-AC_TYPE_UINTPTR_T\r
-AC_C_INLINE\r
-\r
-\r
-# Checks for library functions.\r
-AC_CHECK_FUNCS([memmove memset strdup accept])\r
-\r
-AC_CONFIG_MACRO_DIR([m4])\r
-\r
-AC_CONFIG_HEADERS(antlr3config.h)\r
-AC_CONFIG_FILES([Makefile])\r
-AC_OUTPUT\r
+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_INIT(libantlr3c, 3.2, jimi@temporal-wave.com)
+AC_PREREQ(2.60)
+AC_COPYRIGHT([
+ (The "BSD licence")
+ Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
+ http://www.temporal-wave.com
+ http://www.linkedin.com/in/jimidle
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. The name of the author may not be used to endorse or promote products
+    derived from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+])
+AC_CONFIG_SRCDIR(src/antlr3parser.c)
+
+
+AC_ARG_ENABLE([debuginfo],
+               [AS_HELP_STRING([--enable-debuginfo], [Compiles debug info into the library (default --disable-debuginfo)])],
+               [], [enable_debuginfo=no])
+
+AC_ARG_ENABLE([64bit],
+               [AS_HELP_STRING([--enable-64bit], [Turns on flags that produce 64 bit object code if any are required (default --disable-64bit)])],
+               [], [enable_64bit=no])
+
+AC_ARG_ENABLE([abiflags],
+               [AS_HELP_STRING([--disable-abiflags], [Does not add ABI flags -m32 or -m64 for older versions of gcc, such as itanium 3.x (default --enable-abiflags=yes)])],
+               [], [enable_abiflags=yes])
+
+AC_ARG_ENABLE([antlrdebug],
+               [AS_HELP_STRING([--disable-antlrdebug], [Turns off default flags that include the antlr debugger in the runtime. Specify to remove debugger and the socket dependancies (default --enable-antlrdebug)])],
+               [], [enable_antlrdebug=yes])
+
+AM_INIT_AUTOMAKE(foreign)
+AC_LANG(C)
+AC_PROG_CC([xlc aCC gcc cc])
+AM_MAINTAINER_MODE
+AM_PROG_LIBTOOL
+
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+
+OBJECT_MODE=
+# Checks for programs.
+AC_MSG_CHECKING([compiler flags required for compiling ANTLR with $CC C compiler on host $host])
+WARNFLAGS=
+case $CC in
+xlc*)
+ CPPCMNTFLAGS="-qcpluscmt"
+ if test x"$enable_64bit" = xyes; then
+  CCFLAGS64="-q64 -Wl,-b64"
+  OBJECT_MODE="64"
+ else
+  OBJECT_MODE="32"
+ fi
+ OPTIMFLAGS="-O2"
+ if test x"$enable_debuginfo" = xyes; then
+  DEBUGFLAGS="-g"
+ fi
+ ;;
+
+aCC*)
+ CPPCMNTFLAGS=
+ if test x"$enable_64bit" = xyes; then
+  CCFLAGS64="+DD64"
+ fi
+ OPTIMFLAGS="-O"
+ if test $DEBUGINF = 1; then
+  DEBUGFLAGS="-g"
+ fi
+ ;;
+
+gcc*)
+ CPPCMNTFLAGS=
+ if test x"$enable_64bit" = xyes; then
+  GCCABIFLAGS="-m64"
+ else
+  GCCABIFLAGS="-m32"
+ fi
+ if test x"$enable_abiflags" = xyes; then
+  CCFLAGS64=$GCCABIFLAGS
+ fi
+ OPTIMFLAGS="-O2"
+ if test x"$enable_debuginfo" = xyes; then
+  DEBUGFLAGS="-g"
+ fi
+ WARNFLAGS=-Wall
+ ;;
+
+*)
+
+case $host in
+sparc*-*solaris*)
+ CPPCMNTFLAGS=
+ if test x"$enable_64bit" = xyes; then
+  CCFLAGS64="-fast -xtarget=ultra4 -m64 -xarch=sparcvis"
+ fi
+ OPTIMFLAGS="-O"
+ if test x"$enable_debuginfo" = xyes; then
+  DEBUGFLAGS='-g'
+ fi
+ ;;
+
+*)
+ CPPCMNTFLAGS=
+ CCFLAGS64=
+ OPTIMFLAGS="-O"
+ if test x"$enable_debuginfo" = xyes; then
+  DEBUGFLAGS='-g'
+ fi
+ ;;
+esac
+
+ ;;
+esac
+
+CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
+AC_MSG_RESULT([$CFLAGS])
+AC_SUBST([OBJECT_MODE])
+
+AS_IF([test "x$enable_antlrdebug" = xno], [AC_DEFINE([ANTLR3_NODEBUGGER], [1], [Define if ANTLR debugger not required])], [])
+AS_IF([test x"$enable_64bit" = xyes], [AC_DEFINE([ANTLR3_USE_64BIT], [1], [Define if 64 bit mode required])], [])
+
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_INCLUDES_DEFAULT()
+AC_HEADER_RESOLV
+AC_CHECK_HEADERS([sys/malloc.h malloc.h], [], [],
+[[#ifdef HAVE_SYS_MALLOC_H
+#include <sys/malloc.h>
+#endif
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+]])
+AC_CHECK_HEADERS([stdarg.h], [], [],
+[[#ifdef HAVE_STDARG_H
+#include <stdarg.h>
+#endif
+]])
+
+AC_CHECK_HEADERS([sys/stat.h], [], [],
+[[#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+]])
+
+AC_CHECK_HEADERS([ctype.h], [], [],
+[[#ifdef HAVE_CTYPE_H
+#include <ctype.h>
+#endif
+]])
+
+AC_CHECK_HEADERS([netinet/tcp.h], [], [],
+[[#ifdef HAVE_NETINET_TCP_H
+#include <netinet/tcp.h>
+#endif
+]])
+
+AC_CHECK_HEADERS([sys/socket.h socket.h], [], [],
+[[#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_SOCKET_H
+#include <socket.h>
+#endif
+]])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_TYPE_SIZE_T
+AC_TYPE_INT8_T
+AC_TYPE_INT16_T
+AC_TYPE_INT32_T
+AC_TYPE_INT64_T
+AC_TYPE_INTPTR_T
+AC_TYPE_UINT8_T
+AC_TYPE_UINT16_T
+AC_TYPE_UINT32_T
+AC_TYPE_UINT64_T
+AC_TYPE_UINTPTR_T
+AC_C_INLINE
+
+
+# Checks for library functions.
+AC_CHECK_FUNCS([memmove memset strdup accept])
+
+AC_CONFIG_MACRO_DIR([m4])
+
+AC_CONFIG_HEADERS(antlr3config.h)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT