summaryrefslogtreecommitdiff
path: root/main/openvpn/m4/ax_emptyarray.m4
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2015-04-15 00:17:26 +0200
committerArne Schwabe <arne@rfc2549.org>2015-04-15 00:20:23 +0200
commitc3ae4aaac9f0b168aed063d3e86c5196608eaba1 (patch)
tree1a18e7d8751d4dd3682d82d12c8441b335112984 /main/openvpn/m4/ax_emptyarray.m4
parent5e42114d22faefe7c272b1b498fdf5640da494c7 (diff)
Move more to git, add submodules, fix build script, change hgignore to gitignore
Diffstat (limited to 'main/openvpn/m4/ax_emptyarray.m4')
m---------main/openvpn0
-rw-r--r--main/openvpn/m4/ax_emptyarray.m440
2 files changed, 0 insertions, 40 deletions
diff --git a/main/openvpn b/main/openvpn
new file mode 160000
+Subproject 7aaf01766f9718375986600216607aeb6397200
diff --git a/main/openvpn/m4/ax_emptyarray.m4 b/main/openvpn/m4/ax_emptyarray.m4
deleted file mode 100644
index c6781c17..00000000
--- a/main/openvpn/m4/ax_emptyarray.m4
+++ /dev/null
@@ -1,40 +0,0 @@
-dnl @synopsis AX_EMPTY_ARRAY
-dnl
-dnl Define EMPTY_ARRAY_SIZE to be either "0"
-dnl or "" depending on which syntax the compiler
-dnl prefers for empty arrays in structs.
-dnl
-dnl @version
-dnl @author James Yonan <jim@yonan.net>
-AC_DEFUN([AX_EMPTY_ARRAY], [
- AS_VAR_PUSHDEF([VAR],[ax_cv_c_empty_array])dnl
- AC_CACHE_CHECK(
- [for C compiler empty array size],
- [VAR],
- [AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
- ,
- [[
-struct { int foo; int bar[0]; } mystruct;
- ]]
- )],
- [VAR=0],
- [AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
- ,
- [[
-struct { int foo; int bar[]; } mystruct;
- ]]
- )],
- [VAR=],
- [AC_MSG_ERROR([C compiler is unable to creaty empty arrays])]
- )]
- )]
- )dnl
- AC_DEFINE_UNQUOTED(
- [EMPTY_ARRAY_SIZE],
- [$VAR],
- [Dimension to use for empty array declaration]
- )dnl
- AS_VAR_POPDEF([VAR])dnl
-])