source: configure.in @ 5d6ebe1

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 5d6ebe1 was 257e35b, checked in by Daniel Lawson <dlawson@…>, 17 years ago

2.0.3

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[14e60c60]1dnl Process this file with autoconf to produce a configure script.
[257e35b]2AC_INIT(libtrace,2.0.3,[libtrace@wand.net.nz],libtrace)
[3085992]3AC_CONFIG_SRCDIR(lib/trace.c)
[257e35b]4AM_INIT_AUTOMAKE(libtrace,2.0.3)
[14e60c60]5
[1f3696b]6dnl GNU C library
[e5d3718]7dnl AC_GNU_SOURCE
[3085992]8
[0a46fbb]9AM_CONFIG_HEADER(config.h)
[14e60c60]10dnl Checks for programs.
11AC_PROG_CC
12AC_PROG_INSTALL
13AC_PROG_LIBTOOL
14
[97eadcc]15
[14e60c60]16
17dnl Checks for header files.
18AC_HEADER_STDC
[97eadcc]19dnl AC_CHECK_HEADERS(errno.h stdlib.h stdio.h assert.h string.h netinet/in.h assert.h errno.h fcntl.h net/ethernet.h netdb.h pcap.h stdio.h stdlib.h string.h sys/stat.h sys/types.h sys/socket.h sys/un.h unistd.h time.h sys/ioctl.h net/bpf.h pcap.h zlib.h pcap-bpf.h)
[e5d3718]20AC_CHECK_HEADERS(pcap.h zlib.h pcap-bpf.h net/bpf.h sys/limits.h stddef.h stdint.h limits.h)
[14e60c60]21
22dnl Checks for typedefs, structures, and compiler characteristics.
23AC_C_CONST
24AC_C_INLINE
[97eadcc]25AC_C_BIGENDIAN
[14e60c60]26AC_TYPE_SIZE_T
27AC_HEADER_TIME
[60fc8aa]28AC_SYS_LARGEFILE
[14e60c60]29
30dnl Checks for library functions.
31AC_PROG_GCC_TRADITIONAL
32AC_CHECK_FUNCS(socket strdup)
33
[97eadcc]34
35
[de8ccadb]36dnl configure time options for selecting which libpcap and libz to use
37dnl this is provided to allow for systems whose default libraries don't support
38dnl large files - you can build your own and link using these options
[4b42c39]39AC_DEFUN([CHECK_LIBPCAP],
[7d31d26]40         [AC_ARG_WITH([pcap],
41                      AC_HELP_STRING([--with-pcap],
42                                     [name of pcap library (default is pcap)]),
43                      [ac_cv_use_pcap=$withval], [ac_cv_use_pcap=pcap])
44AC_CACHE_CHECK([which pcap library to use],
45               [ac_cv_use_pcap], [ac_cv_use_pcap=pcap])])
46
[4b42c39]47AC_DEFUN([CHECK_LIBPCAP_PATH],
[0654f5a]48         [AC_ARG_WITH([pcap-path],
49                      AC_HELP_STRING([--with-pcap-path],
50                                     [location of pcap library (default is /usr/lib)]),
51                      [ac_cv_use_pcap_path=$withval], [ac_cv_use_pcap_path=/usr/lib])
52AC_CACHE_CHECK([location of pcap library],
53               [ac_cv_use_pcap_path], [ac_cv_use_pcap_path=/usr/lib])])
54
[c130a95]55
[4b42c39]56AC_DEFUN([CHECK_LIBZ],
[7d31d26]57         [AC_ARG_WITH([zlib],
58                      AC_HELP_STRING([--with-zlib],
59                                     [name of zlib library (default is z)]),
60                      [ac_cv_use_zlib=$withval], [ac_cv_use_zlib=z])
61AC_CACHE_CHECK([which zlib library to use],
62               [ac_cv_use_zlib], [ac_cv_use_zlib=z])])
63
[4b42c39]64AC_DEFUN([CHECK_LIBZ_PATH],
[c130a95]65        [AC_ARG_WITH([zlib-path],
66                AC_HELP_STRING([--with-zlib-path],
67                        [location of zlib library (default is /usr/lib)]),
68                [ac_cv_use_zlib_path=$withval], [ac_cv_use_zlib_path=/usr/lib])
[0654f5a]69AC_CACHE_CHECK([location of zlib library],
70               [ac_cv_use_zlib_path], [ac_cv_use_zlib_path=/usr/lib])])
71
[4b42c39]72CHECK_LIBPCAP
73CHECK_LIBPCAP_PATH
74CHECK_LIBZ
75CHECK_LIBZ_PATH
[7d31d26]76
77LIBPCAP=-l$ac_cv_use_pcap
[0654f5a]78LIBPCAP_PATH=-L$ac_cv_use_pcap_path
79
[7d31d26]80AC_SUBST([LIBPCAP])
[c130a95]81AC_SUBST([LIBPCAP_PATH])
[7d31d26]82
83LIBZ=-l$ac_cv_use_zlib
[0654f5a]84LIBZ_PATH=-L$ac_cv_use_zlib_path
[7d31d26]85AC_SUBST([LIBZ])
[0654f5a]86AC_SUBST([LIBZ_PATH])
[7d31d26]87
[14e60c60]88AC_OUTPUT(Makefile lib/Makefile)
Note: See TracBrowser for help on using the repository browser.