File: configure.ac

package info (click to toggle)
duff 0.5.2-1.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, trixie
  • size: 1,184 kB
  • ctags: 366
  • sloc: sh: 4,385; ansic: 3,132; makefile: 17; sed: 16
file content (47 lines) | stat: -rw-r--r-- 1,268 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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT([duff], [0.5.2], [elmindreda@elmindreda.org], [duff], [http://duff.sourceforge.net/])
AC_CONFIG_SRCDIR([src/duff.c])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([check-news dist-bzip2])
AM_CONFIG_HEADER([src/config.h])
AC_GNU_SOURCE
AM_GNU_GETTEXT([external])

# Checks for programs.
AC_PROG_CC
AC_PROG_LN_S

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_HEADERS([assert.h sys/param.h ctype.h errno.h limits.h locale.h stdio.h stdarg.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_SYS_LARGEFILE
AC_C_CONST
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_SIZE_T
AC_TYPE_OFF_T

# Check for endianness (for sha1-asaddi).
AC_C_BIGENDIAN([], [], [AC_MSG_ERROR([Unable to detect endianness.])])

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_FUNC_LSTAT
AC_FUNC_FSEEKO
AC_FUNC_CLOSEDIR_VOID
AC_CHECK_FUNCS([strdup strerror memset strchr strrchr strtoull], \
  [], [AC_MSG_ERROR([Function not found])])
AC_CHECK_FUNCS([asprintf vasprintf])

AC_OUTPUT([Makefile lib/Makefile src/Makefile po/Makefile.in man/Makefile])