File: config.m4.in

package info (click to toggle)
remctl 3.18-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,612 kB
  • sloc: ansic: 19,504; sh: 5,386; perl: 1,778; java: 740; makefile: 715; xml: 502; python: 430
file content (25 lines) | stat: -rw-r--r-- 1,107 bytes parent folder | download | duplicates (5)
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
dnl remctl PECL extension for PHP configuration.
dnl -*- autoconf -*-
dnl
dnl Provides additional configuration hooks for the PHP module build system.
dnl This file is used by the phpize frameowrk.
dnl
dnl Originally written by Andrew Mortensen <admorten@umich.edu>
dnl Copyright 2015 Russ Allbery <eagle@eyrie.org>
dnl Copyright 2008 Andrew Mortensen <admorten@umich.edu>
dnl Copyright 2008
dnl     The Board of Trustees of the Leland Stanford Junior University
dnl
dnl SPDX-License-Identifier: MIT

PHP_ARG_ENABLE([remctl], [whether to enable remctl PHP extension],
    [AC_HELP_STRING([--enable-remctl], [Enable recmtl PHP extension])], [yes])

dnl The @...@ variables are substituted by the top-level configure.  Yes, this
dnl is a little odd, but it seems to work.
AS_IF([test "$PHP_REMCTL" != no],
    [AS_CASE([`$PHP_CONFIG --version`],
        [5*], [PHP_NEW_EXTENSION([remctl], [php5_remctl.c], [$ext_shared])],
        [*],  [PHP_NEW_EXTENSION([remctl], [php_remctl.c], [$ext_shared])])
     PHP_ADD_INCLUDE([@abs_top_srcdir@])
     LDFLAGS="$LDFLAGS -L@abs_top_builddir@/client/.libs -lremctl"])