trafgen: fix packet socket initialization with multiple CPUs
[netsniff-ng.git] / configure
blobe2b62fee48734ba08872b1539531dc3f4a56fdfc
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 SYSCONF_DIR="/etc"
30 usage()
32 echo "Usage: ./configure [OPTION]... [VAR=VALUE]..."
33 echo ""
34 echo " -h, --help Display this help and exit"
35 echo ""
36 echo "Installation directories:"
37 echo " --prefix=PREFIX install architecture-independent files in PREFIX"
38 echo " [$PREFIX]"
39 echo " --sysconfdir=DIR read-only single-machine data [$SYSCONF_DIR]"
40 echo ""
41 echo "By default, \`make install' will install all the files in"
42 echo "\`$PREFIX/bin', \`$PREFIX/lib' etc. You can specify"
43 echo "an installation prefix other than \`$PREFIX' using \`--prefix',"
44 echo "for instance \`--prefix=\$HOME'."
45 echo ""
46 echo "Optional Features:"
47 echo " --disable-libnl Disable libnl support"
48 echo " --disable-geoip Disable geoip support"
49 echo " --disable-zlib Disable zlib support"
50 echo " --enable-debug Enable debug mode (default disabled)"
51 echo ""
52 echo "Some influential environment variables:"
53 echo " CC C compiler command"
54 echo " CROSS_COMPILE C cross-compiler prefix"
56 exit 0
59 while [ $# -gt 0 ] ; do
60 case "$1" in
61 -h|--help)
62 usage
64 --prefix=*)
65 PREFIX="${1#*=}"
67 --sysconfdir=*)
68 SYSCONF_DIR="${1#*=}"
70 --disable-libnl)
71 DISABLE_LIBNL=1
73 --disable-geoip)
74 DISABLE_GEOIP=1
76 --disable-zlib)
77 DISABLE_ZLIB=1
79 --enable-debug)
80 ENABLE_DEBUG=1
83 echo "[!] Unrecognized option: '$1'. Try './configure --help' for more information"
84 exit 1
86 esac
87 shift
88 done
90 [ -z "$CC" ] && CC="${CROSS_COMPILE}gcc"
91 [ -z "$LD" ] && LD="${CROSS_COMPILE}gcc"
92 if [ "x$SYSROOT" != "x" ] ; then
93 PKG_CONFIG_PATH="$SYSROOT/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
95 [ -z $PKG_CONFIG ] && PKG_CONFIG="${CROSS_COMPILE}pkg-config"
97 TMPDIR=$(mktemp -d config.XXXXXX)
98 trap 'status=$?; rm -rf $TMPDIR; exit $status' EXIT HUP INT QUIT TERM
100 tools_remove()
102 local _tools=$TOOLS
103 local _todel=$1
104 TOOLS=""
105 for tool in $_tools ; do
106 case "$tool" in
107 $_todel)
108 case $_todel in
109 $TOOLS_NOBUILD) ;;
110 *) TOOLS_NOBUILD="$TOOLS_NOBUILD $tool" ;;
111 esac ;;
112 *) TOOLS="$TOOLS $tool" ;;
113 esac
114 done
116 TOOLS=${TOOLS# }
117 TOOLS_NOBUILD=${TOOLS_NOBUILD# }
120 check_command()
122 local cmd="$1"
124 [ "x$(which "$cmd" 2>> config.log)" == "x" ]
127 check_toolchain()
129 if [ "x$CROSS_COMPILE" != "x" ] ; then
130 echo "[*] Cross-compiling for $($CC -print-multiarch)"
131 echo "CROSS_COMPILE=$CROSS_COMPILE" >> Config
134 echo -n "[*] Checking compiler $CC ... "
135 if check_command $CC ; then
136 echo "[NO]"
137 MISSING_TOOLCHAIN=1
138 else
139 echo "[YES]"
140 echo "CC=$CC" >> Config
143 echo -n "[*] Checking linker $LD ... "
144 if check_command $LD ; then
145 echo "[NO]"
146 MISSING_TOOLCHAIN=1
147 else
148 echo "[YES]"
149 echo "LD=$LD" >> Config
152 echo -n "[*] Checking $PKG_CONFIG ... "
153 if check_command $PKG_CONFIG ; then
154 echo "[NO]"
155 MISSING_TOOLCHAIN=1
156 else
157 echo "[YES]"
158 echo "PKG_CONFIG=$PKG_CONFIG" >> Config
159 echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> Config
163 check_flex()
165 echo -n "[*] Checking flex ... "
167 if check_command flex ; then
168 echo "[NO]"
169 MISSING_DEFS=1
170 tools_remove "trafgen"
171 tools_remove "bpfc"
172 else
173 echo "[YES]"
177 check_bison()
179 echo -n "[*] Checking bison ... "
181 if check_command bison ; then
182 echo "[NO]"
183 MISSING_DEFS=1
184 tools_remove "trafgen"
185 tools_remove "bpfc"
186 else
187 echo "[YES]"
191 check_nacl()
193 echo -n "[*] Checking nacl ... "
195 cat > $TMPDIR/nacltest.c << EOF
196 #include "crypto_hash_sha512.h"
197 #include "crypto_verify_32.h"
198 #include "crypto_hash_sha512.h"
199 #include "crypto_box_curve25519xsalsa20poly1305.h"
200 #include "crypto_scalarmult_curve25519.h"
201 #include "crypto_auth_hmacsha512256.h"
203 int main(void) { }
206 if [ -z $NACL_INC_DIR ] ; then
207 NACL_INC_DIR="$SYSROOT/usr/include/nacl"
210 if [ -z $NACL_LIB_DIR ] ; then
211 NACL_LIB_DIR="$SYSROOT/usr/lib"
214 if [ -z $NACL_LIB ] ; then
215 NACL_LIB="nacl"
218 LDFLAGS="-L $NACL_LIB_DIR"
219 CFLAGS="-I $NACL_INC_DIR"
221 $CC $CFLAGS $LDFLAGS -o $TMPDIR/nacltest $TMPDIR/nacltest.c >> config.log 2>&1
222 if [ ! -x $TMPDIR/nacltest ] ; then
223 echo "[NO]"
224 MISSING_NACL=1
225 tools_remove "curvetun"
226 else
227 echo "[YES]"
228 echo "CONFIG_NACL_INC_DIR:=$NACL_INC_DIR" >> Config
229 echo "CONFIG_NACL_LIB_DIR:=$NACL_LIB_DIR" >> Config
230 echo "CONFIG_NACL_LIB:=$NACL_LIB" >> Config
234 check_libnl()
236 echo -n "[*] Checking libnl ... "
238 if [ "$DISABLE_LIBNL" == "1" ] ; then
239 echo "[DISABLED]"
240 return
243 cat > $TMPDIR/libnltest.c << EOF
244 #include <netlink/genl/genl.h>
245 #include <netlink/genl/family.h>
246 #include <netlink/genl/ctrl.h>
247 #include <netlink/msg.h>
248 #include <netlink/attr.h>
249 #include <netlink/version.h>
251 #if LIBNL_VER_NUM < LIBNL_VER(3,0)
252 # error incompatible libnl version
253 #endif
255 int main(void)
257 struct nl_sock *sock = nl_socket_alloc();
258 struct nl_cache *nl_cache;
259 int ret = genl_connect(sock);
261 ret = genl_ctrl_alloc_cache(sock, &nl_cache);
265 $CC \
266 $($PKG_CONFIG --cflags libnl-3.0 2>> config.log) \
267 $($PKG_CONFIG --cflags libnl-genl-3.0 2>> config.log) \
268 -o $TMPDIR/libnltest \
269 $TMPDIR/libnltest.c \
270 $($PKG_CONFIG --libs libnl-3.0 2>> config.log) \
271 $($PKG_CONFIG --libs libnl-genl-3.0 2>> config.log) \
272 >> config.log 2>&1
273 if [ ! -x $TMPDIR/libnltest ] ; then
274 echo "[NO]"
275 MISSING_DEFS=1
276 else
277 echo "[YES]"
278 HAVE_LIBNL=1
282 check_libnl_route()
284 echo -n "[*] Checking libnl-route ... "
286 if [ "$DISABLE_LIBNL" == "1" ] ; then
287 echo "[DISABLED]"
288 return
291 if [ "$HAVE_LIBNL" == "0" ] ; then
292 echo "[SKIPPED]"
293 return
296 cat > $TMPDIR/libnlroutetest.c << EOF
297 #include <netlink/route/link.h>
298 #include <netlink/route/addr.h>
300 int main(void)
302 char str[100];
304 rtnl_addr_flags2str(1, str, sizeof(str));
305 rtnl_link_flags2str(1, str, sizeof(str));
306 rtnl_link_operstate2str(1, str, sizeof(str));
308 return 0;
312 $CC \
313 $($PKG_CONFIG --cflags libnl-route-3.0 2>> config.log) \
314 -o $TMPDIR/libnlroutetest \
315 $TMPDIR/libnlroutetest.c \
316 $($PKG_CONFIG --libs libnl-route-3.0 2>> config.log) \
317 >> config.log 2>&1
318 if [ ! -x $TMPDIR/libnlroutetest ] ; then
319 echo "[NO]"
320 MISSING_DEFS=1
321 HAVE_LIBNL=0
322 else
323 echo "[YES]"
324 # HAVE_LIBNL already set by check_libnl()
328 check_tpacket_v3()
330 echo -n "[*] Checking tpacket_v3 ... "
332 cat > $TMPDIR/tpacketv3test.c << EOF
333 #include <stdio.h>
334 #include <linux/if_packet.h>
336 int main(void)
338 struct tpacket3_hdr *hdr;
339 int foo[] = {
340 TP_STATUS_BLK_TMO,
343 printf("%d\n", hdr->tp_status);
347 $CC -o $TMPDIR/tpacketv3test $TMPDIR/tpacketv3test.c >> config.log 2>&1
348 if [ ! -x $TMPDIR/tpacketv3test ] ; then
349 echo "[NO]"
350 MISSING_DEFS=1
351 else
352 echo "[YES]"
353 HAVE_TPACKET3=1
357 check_tpacket_v2()
359 echo -n "[*] Checking tpacket_v2 ... "
361 cat > $TMPDIR/tpacketv2test.c << EOF
362 #include <stdio.h>
363 #include <linux/if_packet.h>
365 int main(void)
367 struct tpacket2_hdr *hdr;
368 int foo[] = {
369 TP_STATUS_AVAILABLE,
370 TP_STATUS_SEND_REQUEST,
371 TP_STATUS_SENDING,
372 TP_STATUS_KERNEL,
373 TP_STATUS_USER,
376 printf("%d\n", hdr->tp_status);
380 $CC -o $TMPDIR/tpacketv2test $TMPDIR/tpacketv2test.c >> config.log 2>&1
381 if [ ! -x $TMPDIR/tpacketv2test ] ; then
382 echo "[NO]"
383 MISSING_DEFS=1
384 tools_remove "netsniff-ng"
385 tools_remove "trafgen"
386 else
387 echo "[YES]"
392 check_ncurses()
394 echo -n "[*] Checking ncurses ... "
396 cat > $TMPDIR/ncursestest.c << EOF
397 #include <curses.h>
399 int main(void)
401 WINDOW *screen = initscr();
405 $CC \
406 $($PKG_CONFIG --cflags ncurses 2>> config.log) \
407 -o $TMPDIR/ncursestest $TMPDIR/ncursestest.c \
408 $($PKG_CONFIG --libs ncurses 2>> config.log \
409 || echo '-lncurses' ) \
410 >> config.log 2>&1
411 if [ ! -x $TMPDIR/ncursestest ] ; then
412 echo "[NO]"
413 MISSING_DEFS=1
414 tools_remove "flowtop"
415 tools_remove "ifpps"
416 else
417 echo "[YES]"
421 check_libgeoip()
423 echo -n "[*] Checking libGeoIP ... "
425 if [ "$DISABLE_GEOIP" == "1" ] ; then
426 echo "[DISABLED]"
427 return
430 cat > $TMPDIR/geoiptest.c << EOF
431 #include <GeoIP.h>
432 #include <GeoIPCity.h>
434 int main(void)
436 int dbs[] = {
437 GEOIP_CITY_EDITION_REV1,
438 GEOIP_CITY_EDITION_REV1_V6,
439 GEOIP_COUNTRY_EDITION,
440 GEOIP_COUNTRY_EDITION_V6,
441 GEOIP_ASNUM_EDITION,
442 GEOIP_ASNUM_EDITION_V6,
444 GeoIP *geoip = GeoIP_new(0);
448 $CC -o $TMPDIR/geoiptest $TMPDIR/geoiptest.c -lGeoIP >> config.log 2>&1
449 if [ ! -x $TMPDIR/geoiptest ] ; then
450 echo "[NO]"
451 MISSING_DEFS=1
452 else
453 echo "[YES]"
454 HAVE_LIBGEOIP=1
458 check_libnf_ct()
460 echo -n "[*] Checking libnetfilter-conntrack ... "
462 cat > $TMPDIR/nfcttest.c << EOF
463 #include <libnetfilter_conntrack/libnetfilter_conntrack.h>
464 #include <libnetfilter_conntrack/libnetfilter_conntrack_tcp.h>
465 #include <libnetfilter_conntrack/libnetfilter_conntrack_dccp.h>
466 #include <libnetfilter_conntrack/libnetfilter_conntrack_sctp.h>
468 int main(void)
470 struct nf_conntrack *ct;
471 const uint32_t id = nfct_get_attr_u32(ct, ATTR_ID);
475 $CC \
476 $($PKG_CONFIG --cflags libnetfilter_conntrack 2>> config.log) \
477 -o $TMPDIR/nfcttest \
478 $TMPDIR/nfcttest.c \
479 $($PKG_CONFIG --libs libnetfilter_conntrack 2>> config.log) \
480 >> config.log 2>&1
481 if [ ! -x $TMPDIR/nfcttest ] ; then
482 echo "[NO]"
483 MISSING_DEFS=1
484 tools_remove "flowtop"
485 else
486 echo "[YES]"
490 check_zlib()
492 echo -n "[*] Checking libz ... "
494 if [ "$DISABLE_ZLIB" == "1" ] ; then
495 echo "[DISABLED]"
496 return
499 cat > $TMPDIR/ztest.c << EOF
500 #include "zlib.h"
502 int main(void)
504 gzFile fp = gzopen("foo.gz", "rb");
508 $CC -o $TMPDIR/ztest $TMPDIR/ztest.c -lz >> config.log 2>&1
509 if [ ! -x $TMPDIR/ztest ] ; then
510 echo "[NO]"
511 echo "CONFIG_LIBZ=0" >> Config
512 MISSING_DEFS=1
513 tools_remove "astraceroute"
514 tools_remove "flowtop"
515 else
516 echo "[YES]"
517 echo "CONFIG_LIBZ=1" >> Config
518 HAVE_LIBZ=1
522 check_urcu()
524 echo -n "[*] Checking liburcu ... "
526 cat > $TMPDIR/urcutest.c << EOF
527 #include <urcu.h>
529 int main(void)
531 rcu_init();
532 synchronize_rcu();
536 $CC -o $TMPDIR/urcutest $TMPDIR/urcutest.c -lurcu >> config.log 2>&1
537 if [ ! -x $TMPDIR/urcutest ] ; then
538 echo "[NO]"
539 MISSING_DEFS=1
540 tools_remove "flowtop"
541 else
542 echo "[YES]"
546 check_libpcap()
548 echo -n "[*] Checking libpcap ... "
550 cat > $TMPDIR/pcaptest.c << EOF
551 #include <pcap.h>
553 int main(void)
555 struct bpf_program bpf;
556 int ret = pcap_compile_nopcap(65535, 1, &bpf, "foo.bpf", 1, 0xffffffff);
560 $CC -o $TMPDIR/pcaptest $TMPDIR/pcaptest.c -lpcap >> config.log 2>&1
561 if [ ! -x $TMPDIR/pcaptest ] ; then
562 echo "[NO]"
563 echo "CONFIG_LIBPCAP=0" >> Config
564 MISSING_DEFS=1
565 tools_remove "mausezahn"
566 else
567 echo "[YES]"
568 echo "CONFIG_LIBPCAP=1" >> Config
569 HAVE_LIBPCAP=1
573 check_hwtstamp()
575 echo -n "[*] Checking hw timestamping ... "
577 cat > $TMPDIR/hwtstest.c << EOF
578 #include <string.h>
579 #include <arpa/inet.h>
580 #include <sys/ioctl.h>
581 #include <sys/types.h>
582 #include <sys/socket.h>
583 #include <linux/sockios.h>
584 #include <linux/net_tstamp.h>
585 #include <linux/if_packet.h>
586 #include <linux/if_ether.h>
587 #include <linux/if.h>
589 int main(void)
591 int timesource = SOF_TIMESTAMPING_RAW_HARDWARE, ret;
592 int sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
593 struct hwtstamp_config hwconfig;
594 struct ifreq ifr;
596 memset(&hwconfig, 0, sizeof(hwconfig));
597 hwconfig.tx_type = HWTSTAMP_TX_OFF;
598 hwconfig.rx_filter = HWTSTAMP_FILTER_ALL;
600 memset(&ifr, 0, sizeof(ifr));
601 strncpy(ifr.ifr_name, "lo", sizeof(ifr.ifr_name));
602 ifr.ifr_data = &hwconfig;
604 ioctl(sock, SIOCSHWTSTAMP, &ifr);
605 setsockopt(sock, SOL_PACKET, PACKET_TIMESTAMP, &timesource,
606 sizeof(timesource));
610 $CC -o $TMPDIR/hwtstest $TMPDIR/hwtstest.c >> config.log 2>&1
611 if [ ! -x $TMPDIR/hwtstest ] ; then
612 echo "[NO]"
613 echo "CONFIG_HWTSTAMP=0" >> Config
614 else
615 echo "[YES]"
616 echo "CONFIG_HWTSTAMP=1" >> Config
617 HAVE_HWTSTAMP=1
621 check_libcli()
623 echo -n "[*] Checking libcli ... "
625 cat > $TMPDIR/clitest.c << EOF
626 #include <sys/time.h>
627 #include <libcli.h>
629 int main(void)
631 struct cli_def *cli = cli_init();
635 $CC -o $TMPDIR/clitest $TMPDIR/clitest.c -lcli >> config.log 2>&1
636 if [ ! -x $TMPDIR/clitest ] ; then
637 echo "[NO]"
638 MISSING_DEFS=1
639 tools_remove "mausezahn"
640 else
641 echo "[YES]"
645 check_libnet()
647 echo -n "[*] Checking libnet ... "
649 cat > $TMPDIR/nettest.c << EOF
650 #include <libnet.h>
652 int main(void)
654 char err_buf[LIBNET_ERRBUF_SIZE];
655 libnet_t *l = libnet_init(LIBNET_LINK_ADV, "ethX", err_buf);
659 $CC -o $TMPDIR/nettest $TMPDIR/nettest.c -lnet >> config.log 2>&1
660 if [ ! -x $TMPDIR/nettest ] ; then
661 echo "[NO]"
662 MISSING_DEFS=1
663 tools_remove "mausezahn"
664 else
665 echo "[YES]"
669 gen_version_appendix()
671 local _appendix=""
673 git rev-parse > /dev/null 2>&1
674 if [ "$?" == "0" ] ; then
675 if [ ! "`git describe --always`" == \
676 "`git describe --abbrev=0 --tags`" ] ; then
677 _appendix="+"
681 echo "CONFIG_RC=\"$_appendix\"" >> Config
684 gen_config_hdr()
686 local _version=""
687 local _have_libpcap=""
688 local _have_libgeoip=""
689 local _have_libnl=""
690 local _have_libz=""
691 local _have_hwts=""
692 local _have_tp3=""
694 echo "[*] Generating config.h ..."
696 git rev-parse > /dev/null 2>&1
697 if [ "$?" == "0" ] ; then
698 _version="`git describe --always`"
699 else
700 _version="(none)"
703 if [ "$HAVE_LIBNL" == "1" ] ; then
704 _have_libnl="#define HAVE_LIBNL 1"
705 else
706 _have_libnl="/* HAVE_LIBNL is not defined */"
709 if [ "$HAVE_LIBPCAP" == "1" ] ; then
710 _have_libpcap="#define HAVE_TCPDUMP_LIKE_FILTER 1"
711 else
712 _have_libpcap="/* HAVE_TCPDUMP_LIKE_FILTER is not defined */"
715 if [ "$HAVE_HWTSTAMP" == "1" ] ; then
716 _have_hwts="#define HAVE_HARDWARE_TIMESTAMPING 1"
717 else
718 _have_hwts="/* HAVE_HARDWARE_TIMESTAMPING is not defined */"
721 if [ "$HAVE_LIBGEOIP" == "1" ] ; then
722 _have_libgeoip="#define HAVE_GEOIP 1"
723 else
724 _have_libgeoip="/* HAVE_GEOIP is not defined */"
727 if [ "$HAVE_LIBZ" == "1" ] ; then
728 _have_libz="#define HAVE_LIBZ 1"
729 else
730 _have_libz="/* HAVE_LIBZ is not defined */"
733 if [ "$HAVE_TPACKET3" == "1" ] ; then
734 _have_tp3="#define HAVE_TPACKET3 1"
735 else
736 _have_tp3="/* HAVE_TPACKET3 is not defined */"
739 cat > config.h << EOF
740 #ifndef CONFIG_H
741 #define CONFIG_H
742 #define FILE_CLIENTS ".curvetun/clients"
743 #define FILE_SERVERS ".curvetun/servers"
744 #define FILE_PRIVKEY ".curvetun/priv.key"
745 #define FILE_PUBKEY ".curvetun/pub.key"
746 #define FILE_USERNAM ".curvetun/username"
747 #define GITVERSION "$_version"
748 $_have_libnl
749 $_have_libpcap
750 $_have_libgeoip
751 $_have_libz
752 $_have_hwts
753 $_have_tp3
754 #endif /* CONFIG_H */
758 rm -f config.log
760 echo "# This file is autogenerated by the configure script" > Config
761 check_toolchain
763 if [ "$MISSING_TOOLCHAIN" == "1" ] ; then
764 echo "[!] One or more of the toolchain tools couldn't be found in your"
765 echo " \$PATH. Please check the file config.log for details."
766 exit 1
769 check_flex
770 check_bison
771 check_nacl
772 check_libnl
773 check_libnl_route
774 check_tpacket_v2
775 check_tpacket_v3
776 check_libnf_ct
777 check_ncurses
778 check_libgeoip
779 check_zlib
780 check_urcu
781 check_libpcap
782 check_hwtstamp
783 check_libcli
784 check_libnet
786 gen_config_hdr
787 gen_version_appendix
789 if [ "$MISSING_DEFS" == "1" ] ; then
790 echo "[!] Some libraries or header definitions are missing or too old. Thus"
791 echo " certain tools will not be built (see below) or they will be built"
792 echo " with reduced functionality. Please refer to the INSTALL file for"
793 echo " the libraries needed to build the complete netsniff-ng toolkit"
796 if [ "$MISSING_NACL" == "1" ] ; then
797 echo "[!] The NaCl crypto library is currently not present on your system or"
798 echo " could not be found. Either install it from your distro or build it"
799 echo " manually using 'make nacl' and make sure that the NACL_INC_DIR and"
800 echo " NACL_LIB_DIR environment variables are set appropriately."
803 if [ "x$TOOLS_NOBUILD" != "x" ] ; then
804 echo "[!] The following tools will *not* be built: $TOOLS_NOBUILD"
805 echo "[*] The following tools will be built: $TOOLS"
806 else
807 echo "[*] Looks good! All tools will be built!"
810 if [ -s config.log ] ; then
811 echo "[!] There were errors in the configure script. Please check the file"
812 echo " config.log for details."
815 echo "CONFIG_LIBNL=$HAVE_LIBNL" >> Config
817 if [ "$HAVE_LIBGEOIP" == "1" -a "$HAVE_LIBZ" == "1" ] ; then
818 echo "CONFIG_GEOIP=1" >> Config
819 else
820 echo "CONFIG_GEOIP=0" >> Config
823 echo "CONFIG_PREFIX=$PREFIX" >> Config
824 echo "CONFIG_ETCDIR=$SYSCONF_DIR" >> Config
826 echo "CONFIG_DEBUG=$ENABLE_DEBUG" >> Config
827 echo "CONFIG_TOOLS=$TOOLS" >> Config
828 echo "CONFIG_OK=1" >> Config
830 exit 0