File: configure.ac

package info (click to toggle)
tmpreaper 1.6.18
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 692 kB
  • sloc: ansic: 1,686; sh: 1,160; makefile: 77
file content (44 lines) | stat: -rw-r--r-- 1,400 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
39
40
41
42
43
44
# Process this file with autoconf to produce a configure script.
AC_INIT([tmpreaper], [1.6.18], tmpreaper@packages.debian.org)
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_SRCDIR([tmpreaper.c])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL

# Checks for libraries.

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([errno.h limits.h stdlib.h unistd.h libmount/libmount.h])

# Checks for typedefs, structures, and compiler characteristics.
# AC_C_CONST

# Checks for library functions.
# AC_FUNC_FORK
# AC_PROG_GCC_TRADITIONAL
# AC_FUNC_LSTAT
# AC_FUNC_MALLOC
AC_FUNC_SETVBUF_REVERSED
# AC_FUNC_UTIME_NULL
# AC_FUNC_VPRINTF
# AC_CHECK_FUNCS([getcwd memmove memset rmdir strerror utime])

# AC_TRY_COMPILE([#include <glob.h>], [int x = GLOB_BRACE], HAVE_GLOB_BRACE=true, HAVE_GLOB_BRACE=false)
AC_CHECK_DECL(GLOB_BRACE, HAVE_GLOB_BRACE=true, HAVE_GLOB_BRACE=false, [#include <glob.h>])

AC_CHECK_FUNC(getopt_long, HAVE_GETOPT_LONG=true, HAVE_GETOPT_LONG=false)

AM_CONDITIONAL(HAVE_GETOPT_LONG, $HAVE_GETOPT_LONG)

AC_CHECK_LIB(mount, mnt_context_do_mount, [LIBMOUNT="-lmount"])
AC_SUBST(LIBMOUNT)

AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(tmpreaper.8, [if $HAVE_GLOB_BRACE; then cp tmpreaper.8.in tmpreaper.8; else sed 's,^\.\\" ,,' tmpreaper.8.in > tmpreaper.8; fi], HAVE_GLOB_BRACE=$HAVE_GLOB_BRACE)
AC_OUTPUT