Browse Source

Updated config.h.in & configure.ac files

Yann Weber 4 years ago
parent
commit
45d2c67f1a
2 changed files with 93 additions and 21 deletions
  1. 9
    2
      configure.ac
  2. 84
    19
      include/config.h.in

+ 9
- 2
configure.ac View File

@@ -1,14 +1,19 @@
1 1
 #                                               -*- Autoconf -*-
2 2
 # Process this file with autoconf to produce a configure script.
3 3
 
4
+VERSION=0.0.1
5
+
4 6
 AC_PREREQ([2.69])
5
-AC_INIT([PyFCGI], [0.0.1], [yann.weber@member.fsf.org])
7
+AC_INIT([PyFCGI], VERSION, [yann.weber@member.fsf.org])
6 8
 AC_CONFIG_SRCDIR([src/main.c])
7 9
 AC_CONFIG_HEADERS([include/config.h])
8 10
 
9 11
 AC_ARG_ENABLE([debug],
10 12
 	AS_HELP_STRING([--enable-debug], [Enable debug, disabling -Werror, etc.]))
11 13
 
14
+AC_USE_SYSTEM_EXTENSIONS
15
+AC_GNU_SOURCE
16
+
12 17
 # Checks for programs.
13 18
 AC_PROG_CC
14 19
 AC_PROG_RANLIB
@@ -30,6 +35,8 @@ fi
30 35
 
31 36
 AC_SUBST([AM_CFLAGS])
32 37
 
38
+AC_C_INLINE
39
+
33 40
 # Checks for libraries.
34 41
 AC_CHECK_LIB([fcgi], [FCGI_Accept])
35 42
 PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
@@ -45,7 +52,7 @@ AC_TYPE_SIZE_T
45 52
 AC_FUNC_FORK
46 53
 AC_FUNC_MALLOC
47 54
 AC_FUNC_REALLOC
48
-AC_CHECK_FUNCS([bzero getcwd gettimeofday memmove strdup strerror strndup semop clone])
55
+AC_CHECK_FUNCS([bzero getcwd gettimeofday memmove strdup strerror strndup semop clone get_current_dir_name])
49 56
 
50 57
 AM_INIT_AUTOMAKE
51 58
 AC_CONFIG_FILES([Makefile

+ 84
- 19
include/config.h.in View File

@@ -1,19 +1,84 @@
1
-/*
2
- * Copyright (C) 2019 Weber Yann
3
- * 
4
- * This file is part of PyFCGI.
5
- * 
6
- * PyFCGI is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU Affero General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * any later version.
10
- * 
11
- * PyFCGI is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
- * GNU Affero General Public License for more details.
15
- * 
16
- * You should have received a copy of the GNU Affero General Public License
17
- * along with PyFCGI.  If not, see <http://www.gnu.org/licenses/>.
18
- */
19
-#define _GNU_SOURCE
1
+/* include/config.h.in.  Generated from configure.ac by autoheader.  */
2
+
3
+/* Define to 1 if you have the <syslog.h> header file. */
4
+#undef HAVE_SYSLOG_H
5
+
6
+/* Define to 1 if `fork' works. */
7
+#undef HAVE_WORKING_FORK
8
+
9
+/* Define to 1 if `vfork' works. */
10
+#undef HAVE_WORKING_VFORK
11
+
12
+/* Name of package */
13
+#undef PACKAGE
14
+
15
+/* Define to the address where bug reports for this package should be sent. */
16
+#undef PACKAGE_BUGREPORT
17
+
18
+/* Define to the full name of this package. */
19
+#undef PACKAGE_NAME
20
+
21
+/* Define to the full name and version of this package. */
22
+#undef PACKAGE_STRING
23
+
24
+/* Define to the one symbol short name of this package. */
25
+#undef PACKAGE_TARNAME
26
+
27
+/* Define to the home page for this package. */
28
+#undef PACKAGE_URL
29
+
30
+/* Define to the version of this package. */
31
+#undef PACKAGE_VERSION
32
+
33
+/* Define to 1 if you have the ANSI C header files. */
34
+#undef STDC_HEADERS
35
+
36
+/* Enable extensions on AIX 3, Interix.  */
37
+#ifndef _ALL_SOURCE
38
+# undef _ALL_SOURCE
39
+#endif
40
+/* Enable GNU extensions on systems that have them.  */
41
+#ifndef _GNU_SOURCE
42
+# undef _GNU_SOURCE
43
+#endif
44
+/* Enable threading extensions on Solaris.  */
45
+#ifndef _POSIX_PTHREAD_SEMANTICS
46
+# undef _POSIX_PTHREAD_SEMANTICS
47
+#endif
48
+/* Enable extensions on HP NonStop.  */
49
+#ifndef _TANDEM_SOURCE
50
+# undef _TANDEM_SOURCE
51
+#endif
52
+/* Enable general extensions on Solaris.  */
53
+#ifndef __EXTENSIONS__
54
+# undef __EXTENSIONS__
55
+#endif
56
+
57
+
58
+/* Version number of package */
59
+#undef VERSION
60
+
61
+/* Define to 1 if on MINIX. */
62
+#undef _MINIX
63
+
64
+/* Define to 2 if the system does not provide POSIX.1 features except with
65
+   this defined. */
66
+#undef _POSIX_1_SOURCE
67
+
68
+/* Define to 1 if you need to in order for `stat' and other things to work. */
69
+#undef _POSIX_SOURCE
70
+
71
+/* Define to rpl_malloc if the replacement function should be used. */
72
+#undef malloc
73
+
74
+/* Define to `int' if <sys/types.h> does not define. */
75
+#undef pid_t
76
+
77
+/* Define to rpl_realloc if the replacement function should be used. */
78
+#undef realloc
79
+
80
+/* Define to `unsigned int' if <sys/types.h> does not define. */
81
+#undef size_t
82
+
83
+/* Define as `fork' if `vfork' does not work. */
84
+#undef vfork

Loading…
Cancel
Save