diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-06-17 16:27:56 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-06-17 16:27:56 +0000 |
commit | 541898a55ad62f1ac96620303cae5a08ca61c70d (patch) | |
tree | ac3c20a6a36757b79ddbadac6953e1f426d05f52 /configure.ac | |
parent | d764db9c57ad3fd67c278010e275221158d53ed6 (diff) | |
download | ipacct-541898a55ad62f1ac96620303cae5a08ca61c70d.tar.gz ipacct-541898a55ad62f1ac96620303cae5a08ca61c70d.tar.bz2 |
Updated
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a055c11..6c20f48 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -63,9 +63,37 @@ AC_FUNC_STRFTIME | |||
63 | AC_FUNC_VFORK | 63 | AC_FUNC_VFORK |
64 | AC_FUNC_VPRINTF | 64 | AC_FUNC_VPRINTF |
65 | AC_FUNC_WAIT3 | 65 | AC_FUNC_WAIT3 |
66 | AC_CHECK_FUNCS(ftime gethostname gettimeofday getusershell getwd select socket strdup strerror strtol ether_hostton strerror) | 66 | AC_CHECK_FUNCS(ftime gethostname gettimeofday getusershell ether_hostton) |
67 | AC_REPLACE_FUNCS(strchrnul strndup strnlen strerror) | ||
67 | 68 | ||
68 | rad_REPLACE_GNU_GETOPT | 69 | rad_REPLACE_GNU_GETOPT |
70 | AC_ARG_WITH(included-argp, | ||
71 | [ --with-included-argp Use included argp library], | ||
72 | [USE_INCLUDED_ARGP=$withval], | ||
73 | [USE_INCLUDED_ARGP=no]) | ||
74 | |||
75 | AC_CHECK_FUNCS(argp_parse, :, USE_INCLUDED_ARGP=yes) | ||
76 | |||
77 | if test $USE_INCLUDED_ARGP = yes; then | ||
78 | AC_LIBOBJ([argp-ba]) | ||
79 | AC_LIBOBJ([argp-eexst]) | ||
80 | AC_LIBOBJ([argp-fmtstream]) | ||
81 | AC_LIBOBJ([argp-fs-xinl]) | ||
82 | AC_LIBOBJ([argp-help]) | ||
83 | AC_LIBOBJ([argp-parse]) | ||
84 | AC_LIBOBJ([argp-pv]) | ||
85 | AC_LIBOBJ([argp-pvh]) | ||
86 | AC_LIBOBJ([argp-xinl]) | ||
87 | fi | ||
88 | |||
89 | if test $USE_INCLUDED_ARGP != yes; then | ||
90 | AC_CHECK_DECLS(program_invocation_name,,,[#include <argp.h>]) | ||
91 | AH_BOTTOM([ | ||
92 | #if !HAVE_DECL_PROGRAM_INVOCATION_NAME | ||
93 | extern char *program_invocation_short_name; | ||
94 | extern char *program_invocation_name; | ||
95 | #endif]) | ||
96 | fi | ||
69 | 97 | ||
70 | dnl libpcap stuff | 98 | dnl libpcap stuff |
71 | dnl All the stuff below has been shamelessly stolen from libpcap-0.4 | 99 | dnl All the stuff below has been shamelessly stolen from libpcap-0.4 |