File: configure.in

package info (click to toggle)
wipl 20020601-10
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 980 kB
  • ctags: 1,727
  • sloc: cpp: 4,368; yacc: 1,151; sh: 563; lex: 203; java: 202; ansic: 163; makefile: 113; perl: 56
file content (38 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (3)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/wipld.cc)
AM_INIT_AUTOMAKE(wipl,020601)
AC_SUBST(VERSION_DATE)
VERSION_DATE=2002-06-01

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AM_PROG_LEX
AC_PROG_YACC

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(getopt.h fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h,,AC_MSG_ERROR(Header required))

dnl Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_TIME
AC_STRUCT_TM

dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(gettimeofday strerror,,AC_MSG_ERROR(Function required))

dnl Check for pcap
AC_ARG_WITH(pcap,
[  --with-pcap=DIR         pcap library is located in DIR],
[
    pcap_dir=$withval
],[
    pcap_dir=
])
AC_ETHEREAL_PCAP_CHECK

dnl Output
AM_CONFIG_HEADER(src/statconf.h)
AC_OUTPUT(Makefile src/Makefile man/Makefile)