File: configure.in

package info (click to toggle)
pfqueue 0.5.6-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,392 kB
  • ctags: 627
  • sloc: sh: 8,904; ansic: 3,877; makefile: 79
file content (46 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (4)
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(fe_ncurses.c)

dnl Every other copy of the package version number gets its value from here
AM_INIT_AUTOMAKE(pfqueue, 0.5.6)

dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
AM_CONFIG_HEADER(config.h)

AC_SUBST(VERSION)

ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)

AC_CANONICAL_HOST

dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CC
AC_LIBTOOL_DLOPEN
AC_PROG_LIBTOOL

dnl Checks for libraries.

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(ncurses.h)
AC_CHECK_HEADERS(regex.h)

AC_CHECK_MEMBER([struct dirent.d_type],AC_DEFINE(HAVE_DIRENT_DTYPE,[],[Has dirent->d_type member]),,
	[#include <dirent.h>])

jm_CHECK_TYPE_STRUCT_UTIMBUF
AC_HEADER_MAJOR

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.
AC_CHECK_LIB(ncurses,newwin)
AC_CHECK_LIB(pthread,pthread_create)
AC_CHECK_LIB(c_r,pthread_create)
AC_CHECK_LIB(dl,dlopen)
AC_CHECK_LIB(socket,accept)

AC_OUTPUT(Makefile backends/Makefile libpfq/Makefile pfqueue.spec)