]> granicus.if.org Git - php/commitdiff
Move Autoconf Archive macros to a common m4 dir
authorPeter Kokot <peterkokot@gmail.com>
Tue, 23 Apr 2019 18:37:31 +0000 (20:37 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Tue, 23 Apr 2019 18:37:31 +0000 (20:37 +0200)
In PHP the build dir is used as a directory for external macros
including Autoconf Archive macros.

CONTRIBUTING.md
TSRM/tsrm.m4
build/ax_func_which_gethostbyname_r.m4 [moved from TSRM/m4/ax_func_which_gethostbyname_r.m4 with 100% similarity]
configure.ac

index 31508f699896c50ada8cf7cdaee16fa0b06d4192..d819e5792150173985075af7f9f60dd349f48307 100644 (file)
@@ -124,10 +124,7 @@ locations.
 ```bash
 <php-src>/
  ├─ .git/                           # Git configuration and source directory
- └─ TSRM/                           # Thread Safe Resource Manager
-    └─ m4/                          # https://github.com/autoconf-archive/autoconf-archive
-       └─ ax_func_which_gethostbyname_r.m4
-    └─ ...
+ ├─ TSRM/                           # Thread Safe Resource Manager
  └─ Zend/                           # Zend Engine
     ├─ zend_vm_execute.h            # Generated by `Zend/zend_vm_gen.php`
     ├─ zend_vm_opcodes.c            # Generated by `Zend/zend_vm_gen.php`
@@ -135,8 +132,7 @@ locations.
     └─ ...
  ├─ appveyor/                       # Appveyor CI service files
  └─ build/                          # *nix build system files
-    ├─ ax_check_compile_flag.m4     # https://github.com/autoconf-archive/autoconf-archive
-    ├─ ax_gcc_func_attribute.m4     # https://github.com/autoconf-archive/autoconf-archive
+    ├─ ax_*.m4                      # https://github.com/autoconf-archive/autoconf-archive
     ├─ config.guess                 # https://git.savannah.gnu.org/cgit/config.git
     ├─ config.sub                   # https://git.savannah.gnu.org/cgit/config.git
     ├─ libtool.m4                   # https://git.savannah.gnu.org/cgit/libtool.git
index 693ddb392fc0e8d663964395a16dbede0d2b9d24..a075001b5af9793b250bb266d149fb41e965e134 100644 (file)
@@ -1,17 +1,11 @@
-m4_include([TSRM/m4/ax_func_which_gethostbyname_r.m4])
-
 AC_DEFUN([TSRM_BASIC_CHECKS],[
 
 AC_REQUIRE([AC_PROG_CC])dnl
 AC_REQUIRE([AC_PROG_RANLIB])dnl
 
 AC_CHECK_FUNCS(sigprocmask)
-
-AX_FUNC_WHICH_GETHOSTBYNAME_R()
-
 ])
 
-
 AC_DEFUN([TSRM_CHECK_PTH],[
 
 AC_MSG_CHECKING(for GNU Pth)
index 43a4fa959345304e4e836b53c7a6577d52afff0c..b1e9becfd9a81c5d1febc6472ea1d47e814c15ea 100644 (file)
@@ -4,6 +4,7 @@ dnl Include external macro definitions before the AC_INIT to also remove
 dnl comments starting with # and empty newlines from the included files.
 dnl -------------------------------------------------------------------------
 m4_include([build/ax_check_compile_flag.m4])
+m4_include([build/ax_func_which_gethostbyname_r.m4])
 m4_include([build/ax_gcc_func_attribute.m4])
 m4_include([build/libtool.m4])
 m4_include([build/php_cxx_compile_stdcxx.m4])
@@ -664,6 +665,8 @@ asprintf \
 nanosleep \
 )
 
+AX_FUNC_WHICH_GETHOSTBYNAME_R
+
 dnl Some systems (like OpenSolaris) do not have nanosleep in libc
 PHP_CHECK_FUNC_LIB(nanosleep, rt)