trafgen: man: Add description for 'pfc()' function
[netsniff-ng.git] / configure
blob572fc6d824630cecb7ebabe13d5d69b147f37790
1 #!/bin/bash
2 # This isn't a configure generated by autoconf!
3 # netsniff-ng build system
4 # Copyright 2013-2016 Tobias Klauser <tklauser@distanz.ch>
5 # Copyright 2013 Daniel Borkmann <borkmann@gnumaniacs.org>
6 # Subject to the GNU GPL, version 2.
8 MISSING_TOOLCHAIN=0
9 MISSING_DEFS=0
10 MISSING_NACL=0
12 TOOLS="netsniff-ng trafgen astraceroute flowtop ifpps bpfc curvetun mausezahn"
13 TOOLS_NOBUILD=""
15 HAVE_LIBNL=0
16 HAVE_LIBPCAP=0
17 HAVE_HWTSTAMP=0
18 HAVE_LIBGEOIP=0
19 HAVE_LIBZ=0
20 HAVE_TPACKET3=0
22 DISABLE_LIBNL=0
23 DISABLE_GEOIP=0
24 DISABLE_ZLIB=0
25 ENABLE_DEBUG=0
27 PREFIX="/usr/local"
28 HAVE_PREFIX=0
30 SYSCONF_DIR=""
32 usage()
34 echo "Usage: ./configure [OPTION]... [VAR=VALUE]..."
35 echo ""
36 echo " -h, --help Display this help and exit"
37 echo ""
38 echo "Installation directories:"
39 echo " --prefix=PREFIX install architecture-independent files in PREFIX"
40 echo " [$PREFIX]"
41 echo " --sysconfdir=DIR read-only single-machine data [PREFIX/etc]"
42 echo ""
43 echo "By default, \`make install' will install all the files in"
44 echo "\`$PREFIX/bin', \`$PREFIX/lib' etc. You can specify"
45 echo "an installation prefix other than \`$PREFIX' using \`--prefix',"
46 echo "for instance \`--prefix=\$HOME'."
47 echo ""
48 echo "Optional Features:"
49 echo " --disable-libnl Disable libnl support"
50 echo " --disable-geoip Disable geoip support"
51 echo " --disable-zlib Disable zlib support"
52 echo " --enable-debug Enable debug mode (default disabled)"
53 echo ""
54 echo "Some influential environment variables:"
55 echo " CC C compiler command"
56 echo " CROSS_COMPILE C cross-compiler prefix"
58 exit 0
61 while [ $# -gt 0 ] ; do
62 case "$1" in
63 -h|--help)
64 usage
66 --prefix=*)
67 PREFIX="${1#*=}"
68 HAVE_PREFIX=1
70 --sysconfdir=*)
71 SYSCONF_DIR="${1#*=}"
73 --disable-libnl)
74 DISABLE_LIBNL=1
76 --disable-geoip)
77 DISABLE_GEOIP=1
79 --disable-zlib)
80 DISABLE_ZLIB=1
82 --enable-debug)
83 ENABLE_DEBUG=1
86 echo "[!] Unrecognized option: '$1'. Try './configure --help' for more information"
87 exit 1
89 esac
90 shift
91 done
93 [ -z "$CC" ] && CC="${CROSS_COMPILE}gcc"
94 [ -z "$LD" ] && LD="${CROSS_COMPILE}gcc"
95 if [ "x$SYSROOT" != "x" ] ; then
96 PKG_CONFIG_PATH="$SYSROOT/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
98 [ -z $PKG_CONFIG ] && PKG_CONFIG="${CROSS_COMPILE}pkg-config"
100 TMPDIR=$(mktemp -d config.XXXXXX)
101 trap 'status=$?; rm -rf $TMPDIR; exit $status' EXIT HUP INT QUIT TERM
103 tools_remove()
105 local _tools=$TOOLS
106 local _todel=$1
107 TOOLS=""
108 for tool in $_tools ; do
109 case "$tool" in
110 $_todel)
111 case $_todel in
112 $TOOLS_NOBUILD) ;;
113 *) TOOLS_NOBUILD="$TOOLS_NOBUILD $tool" ;;
114 esac ;;
115 *) TOOLS="$TOOLS $tool" ;;
116 esac
117 done
119 TOOLS=${TOOLS# }
120 TOOLS_NOBUILD=${TOOLS_NOBUILD# }
123 check_command()
125 local cmd="$1"
127 [ "x$(which "$cmd" 2>> config.log)" == "x" ]
130 check_toolchain()
132 if [ "x$CROSS_COMPILE" != "x" ] ; then
133 echo "[*] Cross-compiling for $($CC -print-multiarch)"
134 echo "CROSS_COMPILE=$CROSS_COMPILE" >> Config
137 echo -n "[*] Checking compiler $CC ... "
138 if check_command $CC ; then
139 echo "[NO]"
140 MISSING_TOOLCHAIN=1
141 else
142 echo "[YES]"
143 echo "CC=$CC" >> Config
146 echo -n "[*] Checking linker $LD ... "
147 if check_command $LD ; then
148 echo "[NO]"
149 MISSING_TOOLCHAIN=1
150 else
151 echo "[YES]"
152 echo "LD=$LD" >> Config
155 echo -n "[*] Checking $PKG_CONFIG ... "
156 if check_command $PKG_CONFIG ; then
157 echo "[NO]"
158 MISSING_TOOLCHAIN=1
159 else
160 echo "[YES]"
161 echo "PKG_CONFIG=$PKG_CONFIG" >> Config
162 echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> Config
166 check_flex()
168 echo -n "[*] Checking flex ... "
170 if check_command flex ; then
171 echo "[NO]"
172 MISSING_DEFS=1
173 tools_remove "trafgen"
174 tools_remove "bpfc"
175 else
176 echo "[YES]"
180 check_bison()
182 echo -n "[*] Checking bison ... "
184 if check_command bison ; then
185 echo "[NO]"
186 MISSING_DEFS=1
187 tools_remove "trafgen"
188 tools_remove "bpfc"
189 else
190 echo "[YES]"
194 check_nacl()
196 echo -n "[*] Checking nacl ... "
198 cat > $TMPDIR/nacltest.c << EOF
199 #include "crypto_hash_sha512.h"
200 #include "crypto_verify_32.h"
201 #include "crypto_hash_sha512.h"
202 #include "crypto_box_curve25519xsalsa20poly1305.h"
203 #include "crypto_scalarmult_curve25519.h"
204 #include "crypto_auth_hmacsha512256.h"
206 int main(void) { }
209 if [ -z $NACL_INC_DIR ] ; then
210 NACL_INC_DIR="$SYSROOT/usr/include/nacl"
213 if [ -z $NACL_LIB_DIR ] ; then
214 NACL_LIB_DIR="$SYSROOT/usr/lib"
217 if [ -z $NACL_LIB ] ; then
218 NACL_LIB="nacl"
221 LDFLAGS="-L $NACL_LIB_DIR"
222 CFLAGS="-I $NACL_INC_DIR"
224 $CC $CFLAGS $LDFLAGS -o $TMPDIR/nacltest $TMPDIR/nacltest.c >> config.log 2>&1
225 if [ ! -x $TMPDIR/nacltest ] ; then
226 echo "[NO]"
227 MISSING_NACL=1
228 tools_remove "curvetun"
229 else
230 echo "[YES]"
231 echo "CONFIG_NACL_INC_DIR:=$NACL_INC_DIR" >> Config
232 echo "CONFIG_NACL_LIB_DIR:=$NACL_LIB_DIR" >> Config
233 echo "CONFIG_NACL_LIB:=$NACL_LIB" >> Config
237 check_libnl()
239 echo -n "[*] Checking libnl ... "
241 if [ "$DISABLE_LIBNL" == "1" ] ; then
242 echo "[DISABLED]"
243 return
246 cat > $TMPDIR/libnltest.c << EOF
247 #include <netlink/genl/genl.h>
248 #include <netlink/genl/family.h>
249 #include <netlink/genl/ctrl.h>
250 #include <netlink/msg.h>
251 #include <netlink/attr.h>
252 #include <netlink/version.h>
254 #if LIBNL_VER_NUM < LIBNL_VER(3,0)
255 # error incompatible libnl version
256 #endif
258 int main(void)
260 struct nl_sock *sock = nl_socket_alloc();
261 struct nl_cache *nl_cache;
262 int ret = genl_connect(sock);
264 ret = genl_ctrl_alloc_cache(sock, &nl_cache);
268 $CC \
269 $($PKG_CONFIG --cflags libnl-3.0 2>> config.log) \
270 $($PKG_CONFIG --cflags libnl-genl-3.0 2>> config.log) \
271 -o $TMPDIR/libnltest \
272 $TMPDIR/libnltest.c \
273 $($PKG_CONFIG --libs libnl-3.0 2>> config.log) \
274 $($PKG_CONFIG --libs libnl-genl-3.0 2>> config.log) \
275 >> config.log 2>&1
276 if [ ! -x $TMPDIR/libnltest ] ; then
277 echo "[NO]"
278 MISSING_DEFS=1
279 else
280 echo "[YES]"
281 HAVE_LIBNL=1
285 check_libnl_route()
287 echo -n "[*] Checking libnl-route ... "
289 if [ "$DISABLE_LIBNL" == "1" ] ; then
290 echo "[DISABLED]"
291 return
294 if [ "$HAVE_LIBNL" == "0" ] ; then
295 echo "[SKIPPED]"
296 return
299 cat > $TMPDIR/libnlroutetest.c << EOF
300 #include <netlink/route/link.h>
301 #include <netlink/route/addr.h>
303 int main(void)
305 char str[100];
307 rtnl_addr_flags2str(1, str, sizeof(str));
308 rtnl_link_flags2str(1, str, sizeof(str));
309 rtnl_link_operstate2str(1, str, sizeof(str));
311 return 0;
315 $CC \
316 $($PKG_CONFIG --cflags libnl-route-3.0 2>> config.log) \
317 -o $TMPDIR/libnlroutetest \
318 $TMPDIR/libnlroutetest.c \
319 $($PKG_CONFIG --libs libnl-route-3.0 2>> config.log) \
320 >> config.log 2>&1
321 if [ ! -x $TMPDIR/libnlroutetest ] ; then
322 echo "[NO]"
323 MISSING_DEFS=1
324 HAVE_LIBNL=0
325 else
326 echo "[YES]"
327 # HAVE_LIBNL already set by check_libnl()
331 check_tpacket_v3()
333 echo -n "[*] Checking tpacket_v3 ... "
335 cat > $TMPDIR/tpacketv3test.c << EOF
336 #include <stdio.h>
337 #include <linux/if_packet.h>
339 int main(void)
341 struct tpacket3_hdr *hdr;
342 int foo[] = {
343 TP_STATUS_BLK_TMO,
346 printf("%d\n", hdr->tp_status);
350 $CC -o $TMPDIR/tpacketv3test $TMPDIR/tpacketv3test.c >> config.log 2>&1
351 if [ ! -x $TMPDIR/tpacketv3test ] ; then
352 echo "[NO]"
353 MISSING_DEFS=1
354 else
355 echo "[YES]"
356 HAVE_TPACKET3=1
360 check_tpacket_v2()
362 echo -n "[*] Checking tpacket_v2 ... "
364 cat > $TMPDIR/tpacketv2test.c << EOF
365 #include <stdio.h>
366 #include <linux/if_packet.h>
368 int main(void)
370 struct tpacket2_hdr *hdr;
371 int foo[] = {
372 TP_STATUS_AVAILABLE,
373 TP_STATUS_SEND_REQUEST,
374 TP_STATUS_SENDING,
375 TP_STATUS_KERNEL,
376 TP_STATUS_USER,
379 printf("%d\n", hdr->tp_status);
383 $CC -o $TMPDIR/tpacketv2test $TMPDIR/tpacketv2test.c >> config.log 2>&1
384 if [ ! -x $TMPDIR/tpacketv2test ] ; then
385 echo "[NO]"
386 MISSING_DEFS=1
387 tools_remove "netsniff-ng"
388 tools_remove "trafgen"
389 else
390 echo "[YES]"
395 check_ncurses()
397 echo -n "[*] Checking ncurses ... "
399 cat > $TMPDIR/ncursestest.c << EOF
400 #include <curses.h>
402 int main(void)
404 WINDOW *screen = initscr();
408 $CC \
409 $($PKG_CONFIG --cflags ncurses 2>> config.log) \
410 -o $TMPDIR/ncursestest $TMPDIR/ncursestest.c \
411 $($PKG_CONFIG --libs ncurses 2>> config.log \
412 || echo '-lncurses' ) \
413 >> config.log 2>&1
414 if [ ! -x $TMPDIR/ncursestest ] ; then
415 echo "[NO]"
416 MISSING_DEFS=1
417 tools_remove "flowtop"
418 tools_remove "ifpps"
419 else
420 echo "[YES]"
424 check_libgeoip()
426 echo -n "[*] Checking libGeoIP ... "
428 if [ "$DISABLE_GEOIP" == "1" ] ; then
429 echo "[DISABLED]"
430 return
433 cat > $TMPDIR/geoiptest.c << EOF
434 #include <GeoIP.h>
435 #include <GeoIPCity.h>
437 int main(void)
439 int dbs[] = {
440 GEOIP_CITY_EDITION_REV1,
441 GEOIP_CITY_EDITION_REV1_V6,
442 GEOIP_COUNTRY_EDITION,
443 GEOIP_COUNTRY_EDITION_V6,
444 GEOIP_ASNUM_EDITION,
445 GEOIP_ASNUM_EDITION_V6,
447 GeoIP *geoip = GeoIP_new(0);
451 $CC -o $TMPDIR/geoiptest $TMPDIR/geoiptest.c -lGeoIP >> config.log 2>&1
452 if [ ! -x $TMPDIR/geoiptest ] ; then
453 echo "[NO]"
454 MISSING_DEFS=1
455 else
456 echo "[YES]"
457 HAVE_LIBGEOIP=1
461 check_libnf_ct()
463 echo -n "[*] Checking libnetfilter-conntrack ... "
465 cat > $TMPDIR/nfcttest.c << EOF
466 #include <libnetfilter_conntrack/libnetfilter_conntrack.h>
467 #include <libnetfilter_conntrack/libnetfilter_conntrack_tcp.h>
468 #include <libnetfilter_conntrack/libnetfilter_conntrack_dccp.h>
469 #include <libnetfilter_conntrack/libnetfilter_conntrack_sctp.h>
471 int main(void)
473 struct nf_conntrack *ct;
474 const uint32_t id = nfct_get_attr_u32(ct, ATTR_ID);
478 $CC \
479 $($PKG_CONFIG --cflags libnetfilter_conntrack 2>> config.log) \
480 -o $TMPDIR/nfcttest \
481 $TMPDIR/nfcttest.c \
482 $($PKG_CONFIG --libs libnetfilter_conntrack 2>> config.log) \
483 >> config.log 2>&1
484 if [ ! -x $TMPDIR/nfcttest ] ; then
485 echo "[NO]"
486 MISSING_DEFS=1
487 tools_remove "flowtop"
488 else
489 echo "[YES]"
493 check_zlib()
495 echo -n "[*] Checking libz ... "
497 if [ "$DISABLE_ZLIB" == "1" ] ; then
498 echo "[DISABLED]"
499 return
502 cat > $TMPDIR/ztest.c << EOF
503 #include "zlib.h"
505 int main(void)
507 gzFile fp = gzopen("foo.gz", "rb");
511 $CC -o $TMPDIR/ztest $TMPDIR/ztest.c -lz >> config.log 2>&1
512 if [ ! -x $TMPDIR/ztest ] ; then
513 echo "[NO]"
514 echo "CONFIG_LIBZ=0" >> Config
515 MISSING_DEFS=1
516 tools_remove "astraceroute"
517 tools_remove "flowtop"
518 else
519 echo "[YES]"
520 echo "CONFIG_LIBZ=1" >> Config
521 HAVE_LIBZ=1
525 check_urcu()
527 echo -n "[*] Checking liburcu ... "
529 cat > $TMPDIR/urcutest.c << EOF
530 #include <urcu.h>
532 int main(void)
534 rcu_init();
535 synchronize_rcu();
539 $CC -o $TMPDIR/urcutest $TMPDIR/urcutest.c -lurcu >> config.log 2>&1
540 if [ ! -x $TMPDIR/urcutest ] ; then
541 echo "[NO]"
542 MISSING_DEFS=1
543 tools_remove "flowtop"
544 else
545 echo "[YES]"
549 check_libpcap()
551 echo -n "[*] Checking libpcap ... "
553 cat > $TMPDIR/pcaptest.c << EOF
554 #include <pcap.h>
556 int main(void)
558 struct bpf_program bpf;
559 int ret = pcap_compile_nopcap(65535, 1, &bpf, "foo.bpf", 1, 0xffffffff);
563 $CC -o $TMPDIR/pcaptest $TMPDIR/pcaptest.c -lpcap >> config.log 2>&1
564 if [ ! -x $TMPDIR/pcaptest ] ; then
565 echo "[NO]"
566 echo "CONFIG_LIBPCAP=0" >> Config
567 MISSING_DEFS=1
568 tools_remove "mausezahn"
569 else
570 echo "[YES]"
571 echo "CONFIG_LIBPCAP=1" >> Config
572 HAVE_LIBPCAP=1
576 check_hwtstamp()
578 echo -n "[*] Checking hw timestamping ... "
580 cat > $TMPDIR/hwtstest.c << EOF
581 #include <string.h>
582 #include <arpa/inet.h>
583 #include <sys/ioctl.h>
584 #include <sys/types.h>
585 #include <sys/socket.h>
586 #include <linux/sockios.h>
587 #include <linux/net_tstamp.h>
588 #include <linux/if_packet.h>
589 #include <linux/if_ether.h>
590 #include <linux/if.h>
592 int main(void)
594 int timesource = SOF_TIMESTAMPING_RAW_HARDWARE, ret;
595 int sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
596 struct hwtstamp_config hwconfig;
597 struct ifreq ifr;
599 memset(&hwconfig, 0, sizeof(hwconfig));
600 hwconfig.tx_type = HWTSTAMP_TX_OFF;
601 hwconfig.rx_filter = HWTSTAMP_FILTER_ALL;
603 memset(&ifr, 0, sizeof(ifr));
604 strncpy(ifr.ifr_name, "lo", sizeof(ifr.ifr_name));
605 ifr.ifr_data = &hwconfig;
607 ioctl(sock, SIOCSHWTSTAMP, &ifr);
608 setsockopt(sock, SOL_PACKET, PACKET_TIMESTAMP, &timesource,
609 sizeof(timesource));
613 $CC -o $TMPDIR/hwtstest $TMPDIR/hwtstest.c >> config.log 2>&1
614 if [ ! -x $TMPDIR/hwtstest ] ; then
615 echo "[NO]"
616 echo "CONFIG_HWTSTAMP=0" >> Config
617 else
618 echo "[YES]"
619 echo "CONFIG_HWTSTAMP=1" >> Config
620 HAVE_HWTSTAMP=1
624 check_libcli()
626 echo -n "[*] Checking libcli ... "
628 cat > $TMPDIR/clitest.c << EOF
629 #include <sys/time.h>
630 #include <libcli.h>
632 int main(void)
634 struct cli_def *cli = cli_init();
638 $CC -o $TMPDIR/clitest $TMPDIR/clitest.c -lcli >> config.log 2>&1
639 if [ ! -x $TMPDIR/clitest ] ; then
640 echo "[NO]"
641 MISSING_DEFS=1
642 tools_remove "mausezahn"
643 else
644 echo "[YES]"
648 check_libnet()
650 echo -n "[*] Checking libnet ... "
652 cat > $TMPDIR/nettest.c << EOF
653 #include <libnet.h>
655 int main(void)
657 char err_buf[LIBNET_ERRBUF_SIZE];
658 libnet_t *l = libnet_init(LIBNET_LINK_ADV, "ethX", err_buf);
662 $CC -o $TMPDIR/nettest $TMPDIR/nettest.c -lnet >> config.log 2>&1
663 if [ ! -x $TMPDIR/nettest ] ; then
664 echo "[NO]"
665 MISSING_DEFS=1
666 tools_remove "mausezahn"
667 else
668 echo "[YES]"
672 gen_version_appendix()
674 local _appendix=""
676 git rev-parse > /dev/null 2>&1
677 if [ "$?" == "0" ] ; then
678 if [ ! "`git describe --always`" == \
679 "`git describe --abbrev=0 --tags`" ] ; then
680 _appendix="+"
684 echo "CONFIG_RC=\"$_appendix\"" >> Config
687 gen_config_hdr()
689 local _version=""
690 local _have_libpcap=""
691 local _have_libgeoip=""
692 local _have_libnl=""
693 local _have_libz=""
694 local _have_hwts=""
695 local _have_tp3=""
697 echo "[*] Generating config.h ..."
699 git rev-parse > /dev/null 2>&1
700 if [ "$?" == "0" ] ; then
701 _version="`git describe --always`"
702 else
703 _version="(none)"
706 if [ "$HAVE_LIBNL" == "1" ] ; then
707 _have_libnl="#define HAVE_LIBNL 1"
708 else
709 _have_libnl="/* HAVE_LIBNL is not defined */"
712 if [ "$HAVE_LIBPCAP" == "1" ] ; then
713 _have_libpcap="#define HAVE_TCPDUMP_LIKE_FILTER 1"
714 else
715 _have_libpcap="/* HAVE_TCPDUMP_LIKE_FILTER is not defined */"
718 if [ "$HAVE_HWTSTAMP" == "1" ] ; then
719 _have_hwts="#define HAVE_HARDWARE_TIMESTAMPING 1"
720 else
721 _have_hwts="/* HAVE_HARDWARE_TIMESTAMPING is not defined */"
724 if [ "$HAVE_LIBGEOIP" == "1" ] ; then
725 _have_libgeoip="#define HAVE_GEOIP 1"
726 else
727 _have_libgeoip="/* HAVE_GEOIP is not defined */"
730 if [ "$HAVE_LIBZ" == "1" ] ; then
731 _have_libz="#define HAVE_LIBZ 1"
732 else
733 _have_libz="/* HAVE_LIBZ is not defined */"
736 if [ "$HAVE_TPACKET3" == "1" ] ; then
737 _have_tp3="#define HAVE_TPACKET3 1"
738 else
739 _have_tp3="/* HAVE_TPACKET3 is not defined */"
742 cat > config.h << EOF
743 #ifndef CONFIG_H
744 #define CONFIG_H
745 #define FILE_CLIENTS ".curvetun/clients"
746 #define FILE_SERVERS ".curvetun/servers"
747 #define FILE_PRIVKEY ".curvetun/priv.key"
748 #define FILE_PUBKEY ".curvetun/pub.key"
749 #define FILE_USERNAM ".curvetun/username"
750 #define GITVERSION "$_version"
751 $_have_libnl
752 $_have_libpcap
753 $_have_libgeoip
754 $_have_libz
755 $_have_hwts
756 $_have_tp3
757 #endif /* CONFIG_H */
761 rm -f config.log
763 echo "# This file is autogenerated by the configure script" > Config
764 check_toolchain
766 if [ "$MISSING_TOOLCHAIN" == "1" ] ; then
767 echo "[!] One or more of the toolchain tools couldn't be found in your"
768 echo " \$PATH. Please check the file config.log for details."
769 exit 1
772 check_flex
773 check_bison
774 check_nacl
775 check_libnl
776 check_libnl_route
777 check_tpacket_v2
778 check_tpacket_v3
779 check_libnf_ct
780 check_ncurses
781 check_libgeoip
782 check_zlib
783 check_urcu
784 check_libpcap
785 check_hwtstamp
786 check_libcli
787 check_libnet
789 gen_config_hdr
790 gen_version_appendix
792 if [ "$MISSING_DEFS" == "1" ] ; then
793 echo "[!] Some libraries or header definitions are missing or too old. Thus"
794 echo " certain tools will not be built (see below). Please refer to the"
795 echo " INSTALL file for the libraries needed to build the complete"
796 echo " netsniff-ng toolkit."
799 if [ "$MISSING_NACL" == "1" ] ; then
800 echo "[!] The NaCl crypto library is currently not present on your system or"
801 echo " could not be found. Either install it from your distro or build it"
802 echo " manually using 'make nacl' and make sure that the NACL_INC_DIR and"
803 echo " NACL_LIB_DIR environment variables are set appropriately."
806 if [ "x$TOOLS_NOBUILD" != "x" ] ; then
807 echo "[!] The following tools will *not* be built: $TOOLS_NOBUILD"
808 echo "[*] The following tools will be built: $TOOLS"
809 else
810 echo "[*] Looks good! All tools will be built!"
813 if [ -s config.log ] ; then
814 echo "[!] There were errors in the configure script. Please check the file"
815 echo " config.log for details."
818 echo "CONFIG_LIBNL=$HAVE_LIBNL" >> Config
820 if [ "$HAVE_LIBGEOIP" == "1" -a "$HAVE_LIBZ" == "1" ] ; then
821 echo "CONFIG_GEOIP=1" >> Config
822 else
823 echo "CONFIG_GEOIP=0" >> Config
826 if [ "$HAVE_PREFIX" == "1" ] ; then
827 echo "PREFIX=$PREFIX" >> Config
830 if [ ! -z $SYSCONF_DIR ] ; then
831 echo "ETCDIR=$SYSCONF_DIR" >> Config
834 echo "CONFIG_DEBUG=$ENABLE_DEBUG" >> Config
835 echo "CONFIG_TOOLS=$TOOLS" >> Config
836 echo "CONFIG_OK=1" >> Config
838 exit 0