File: configure.ac

package info (click to toggle)
privbind 1.2-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 1,584 kB
  • ctags: 89
  • sloc: sh: 11,681; ansic: 629; makefile: 75
file content (52 lines) | stat: -rw-r--r-- 1,715 bytes parent folder | download | duplicates (2)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT([privbind],[1.2])
AM_INIT_AUTOMAKE
AC_COPYRIGHT([Copyright (C) 2006-2007,2010 Shachar Shemesh])

# Checks for programs.
AC_PROG_CC

AC_DISABLE_STATIC # don't build static libraries by default
AC_PROG_LIBTOOL

# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.

sock_fd_num=497
AC_MSG_CHECKING([what default fd to use for parent-child communication])
AC_ARG_WITH([comm-socket],AC_HELP_STRING([--with-comm-socket=num],[Set the communication socket number]),
[
[if [ "$(($withval))" -eq "$withval" ]]
then
    sock_fd_num="$withval"
else
    AC_MSG_ERROR([Invalid comm-socket value passed])
fi])
AC_MSG_RESULT($sock_fd_num)
AC_DEFINE_UNQUOTED(COMM_SOCKET, $sock_fd_num, [Communication socket between parent and child])

AC_MSG_CHECKING([whether to enable internal test-only features])
AC_ARG_ENABLE([testing],AC_HELP_STRING([--enable-testing],
   [Enable certain self test features]),
   [
      AC_MSG_RESULT([yes])
      AC_DEFINE(DEBUG_TESTING,1,[Options for internal sanity testing. Do not enable for distributed builds])
   ],
   [AC_MSG_RESULT([no])] )

AC_SUBST(PRELOADLIBNAME, "privbind.so")
AC_DEFINE_UNQUOTED(PRELOADLIBNAME, "$PRELOADLIBNAME", [Name for the preload library])

dnl Define pkglibdir as it is defined by automake
[pkglibdir="$libdir/$PACKAGE"]
AS_AC_EXPAND(PKGLIBDIR, "$pkglibdir")
AC_DEFINE_UNQUOTED(PKGLIBDIR, "$PKGLIBDIR", [Directory where the package libraries are stored])

AC_CONFIG_FILES(Makefile)
AM_CONFIG_HEADER(config.h)
AC_OUTPUT