[Pcre-svn] [653] code/trunk: Update build system for changes…

Inizio della pagina
Delete this message
Autore: Subversion repository
Data:  
To: pcre-svn
Oggetto: [Pcre-svn] [653] code/trunk: Update build system for changes in the JIT modules.
Revision: 653
          http://www.exim.org/viewvc/pcre2?view=rev&revision=653
Author:   ph10
Date:     2017-01-12 16:35:43 +0000 (Thu, 12 Jan 2017)
Log Message:
-----------
Update build system for changes in the JIT modules.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/configure.ac
    code/trunk/src/config.h.in


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2017-01-12 09:32:15 UTC (rev 652)
+++ code/trunk/ChangeLog    2017-01-12 16:35:43 UTC (rev 653)
@@ -325,7 +325,11 @@
 continue to work, falling back to interpretation if anything goes wrong with 
 JIT.


+51. Applied patches from Christian Persch to configure.ac to make use of the
+AC_USE_SYSTEM_EXTENSIONS macro and to test for functions used by the JIT
+modules.

+
Version 10.22 29-July-2016
--------------------------


Modified: code/trunk/configure.ac
===================================================================
--- code/trunk/configure.ac    2017-01-12 09:32:15 UTC (rev 652)
+++ code/trunk/configure.ac    2017-01-12 16:35:43 UTC (rev 653)
@@ -29,9 +29,6 @@
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 AC_CONFIG_HEADERS(src/config.h)


-# This is a new thing required to stop a warning from automake 1.12
-m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
-
# This was added at the suggestion of libtoolize (03-Jan-10)
AC_CONFIG_MACRO_DIR([m4])

@@ -47,6 +44,7 @@

AC_PROG_CC
AM_PROG_CC_C_O
+AC_USE_SYSTEM_EXTENSIONS

if test "x$remember_set_CFLAGS" = "x"
then
@@ -59,6 +57,9 @@
fi
fi

+# This is a new thing required to stop a warning from automake 1.12
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+
# Check for a 64-bit integer type
AC_TYPE_INT64_T

@@ -435,7 +436,7 @@

# Checks for library functions.

-AC_CHECK_FUNCS(bcopy memmove strerror)
+AC_CHECK_FUNCS(bcopy memmove strerror mkostemp secure_getenv)

# Check for the availability of libz (aka zlib)

@@ -518,9 +519,6 @@
AC_CHECK_LIB([edit], [readline], [LIBEDIT="-ledit"])
fi

-# This facilitates -ansi builds under Linux
-dnl AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions in glibc])
-
PCRE2_STATIC_CFLAG=""
if test "x$enable_shared" = "xno" ; then
AC_DEFINE([PCRE2_STATIC], [1], [

Modified: code/trunk/src/config.h.in
===================================================================
--- code/trunk/src/config.h.in    2017-01-12 09:32:15 UTC (rev 652)
+++ code/trunk/src/config.h.in    2017-01-12 16:35:43 UTC (rev 653)
@@ -78,6 +78,9 @@
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H


+/* Define to 1 if you have the `mkostemp' function. */
+#undef HAVE_MKOSTEMP
+
/* Define if you have POSIX threads libraries and header files. */
#undef HAVE_PTHREAD

@@ -90,6 +93,9 @@
/* Define to 1 if you have the <readline/readline.h> header file. */
#undef HAVE_READLINE_READLINE_H

+/* Define to 1 if you have the `secure_getenv' function. */
+#undef HAVE_SECURE_GETENV
+
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H

@@ -297,9 +303,41 @@
/* Define to any value for valgrind support to find invalid memory reads. */
#undef SUPPORT_VALGRIND

+/* Enable extensions on AIX 3, Interix. */
+#ifndef _ALL_SOURCE
+# undef _ALL_SOURCE
+#endif
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif
+/* Enable threading extensions on Solaris. */
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# undef _POSIX_PTHREAD_SEMANTICS
+#endif
+/* Enable extensions on HP NonStop. */
+#ifndef _TANDEM_SOURCE
+# undef _TANDEM_SOURCE
+#endif
+/* Enable general extensions on Solaris. */
+#ifndef __EXTENSIONS__
+# undef __EXTENSIONS__
+#endif
+
+
/* Version number of package */
#undef VERSION

+/* Define to 1 if on MINIX. */
+#undef _MINIX
+
+/* Define to 2 if the system does not provide POSIX.1 features except with
+ this defined. */
+#undef _POSIX_1_SOURCE
+
+/* Define to 1 if you need to in order for `stat' and other things to work. */
+#undef _POSIX_SOURCE
+
/* Define to empty if `const' does not conform to ANSI C. */
#undef const