File: config.m4

package info (click to toggle)
php4 4.0.3pl1-0potato3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 15,168 kB
  • ctags: 20,556
  • sloc: ansic: 155,237; php: 10,827; sh: 9,608; yacc: 1,874; lex: 1,742; makefile: 788; java: 424; awk: 359; cpp: 335; perl: 181; xml: 57
file content (38 lines) | stat: -rw-r--r-- 1,309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dnl $Id: config.m4,v 1.3 2000/10/02 17:35:58 rasmus Exp $
dnl config.m4 for extension sockets
dnl don't forget to call PHP_EXTENSION(sockets)

dnl Comments in this file start with the string 'dnl'.
dnl Remove where necessary. This file will not work
dnl without editing.

dnl If your extension references something external, use with:

dnl PHP_ARG_WITH(sockets, for sockets support,
dnl Make sure that the comment is aligned:
dnl [  --with-sockets          Include sockets support])

dnl Otherwise use enable:

PHP_ARG_ENABLE(sockets, whether to enable sockets support,
dnl Make sure that the comment is aligned:
[  --enable-sockets        Enable sockets support])

if test "$PHP_SOCKETS" != "no"; then
  dnl If you will not be testing anything external, like existence of
  dnl headers, libraries or functions in them, just uncomment the 
  dnl following line and you are ready to go.
  
  dnl ---------------------------------
  dnl             Headers
  dnl ---------------------------------

  AC_HEADER_STDC
  AC_CHECK_HEADERS(unistd.h)
  AC_CHECK_HEADERS(sys/types.h sys/socket.h netdb.h netinet/in.h netinet/tcp.h sys/un.h arpa/inet.h)
  AC_CHECK_HEADERS(sys/time.h errno.h fcntl.h)

  AC_DEFINE(HAVE_SOCKETS, 1, [ ])
  dnl Write more examples of tests here...
  PHP_EXTENSION(sockets, $ext_shared)
fi