Deleted Added
full compact
configure (146768) configure (147894)
1#! /bin/sh
1#! /bin/sh
2# From configure.in Revision: 1.120 .
2# From configure.in Revision: 1.120.2.6 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57.
5#
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7# Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##

--- 839 unchanged lines hidden (view full) ---

850 --enable-optimizer-dbg build optimizer debugging code
851 --enable-yydebug build parser debugging code
852
853Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --without-gcc don't use gcc
857 --with-pcap=TYPE use packet capture TYPE
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57.
5#
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7# Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##

--- 839 unchanged lines hidden (view full) ---

850 --enable-optimizer-dbg build optimizer debugging code
851 --enable-yydebug build parser debugging code
852
853Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --without-gcc don't use gcc
857 --with-pcap=TYPE use packet capture TYPE
858 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
858 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
859 --with-dag-includes=DIR Endace DAG include directory
860 --with-dag-libraries=DIR Endace DAG library directory
859 --with-dag-includes=DIR Endace DAG include directory
860 --with-dag-libraries=DIR Endace DAG library directory
861 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present
861 --without-flex don't use flex
862 --without-bison don't use bison
863
864Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>

--- 1759 unchanged lines hidden (view full) ---

2628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h. */
2633
2634#include <stdlib.h>
2635
862 --without-flex don't use flex
863 --without-bison don't use bison
864
865Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>

--- 1759 unchanged lines hidden (view full) ---

2629/* confdefs.h. */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h. */
2634
2635#include <stdlib.h>
2636
2636int
2637main ()
2638{
2639
2640static void foo(void) __attribute__ ((noreturn));
2641
2642static void
2643foo(void)
2644{
2645 exit(1);
2646}
2647
2637static void foo(void) __attribute__ ((noreturn));
2638
2639static void
2640foo(void)
2641{
2642 exit(1);
2643}
2644
2648 ;
2649 return 0;
2645int
2646main(int argc, char **argv)
2647{
2648 foo();
2650}
2649}
2650
2651_ACEOF
2652rm -f conftest.$ac_objext
2653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -s conftest.$ac_objext'

--- 1752 unchanged lines hidden (view full) ---

4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415
4416#include <sys/types.h>
4417#include <sys/socket.h>
4418#include <netinet/in.h>
2651_ACEOF
2652rm -f conftest.$ac_objext
2653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -s conftest.$ac_objext'

--- 1752 unchanged lines hidden (view full) ---

4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415
4416#include <sys/types.h>
4417#include <sys/socket.h>
4418#include <netinet/in.h>
4419#include <arpa/inet.h>
4419struct mbuf;
4420struct rtentry;
4421#include <net/if.h>
4422#include <netinet/if_ether.h>
4423
4424
4425int
4426main ()

--- 26 unchanged lines hidden (view full) ---

4453ac_cv_have_decl_ether_hostton=no
4454fi
4455rm -f conftest.$ac_objext conftest.$ac_ext
4456fi
4457echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4458echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4459if test $ac_cv_have_decl_ether_hostton = yes; then
4460
4420struct mbuf;
4421struct rtentry;
4422#include <net/if.h>
4423#include <netinet/if_ether.h>
4424
4425
4426int
4427main ()

--- 26 unchanged lines hidden (view full) ---

4454ac_cv_have_decl_ether_hostton=no
4455fi
4456rm -f conftest.$ac_objext conftest.$ac_ext
4457fi
4458echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4459echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4460if test $ac_cv_have_decl_ether_hostton = yes; then
4461
4461cat >>confdefs.h <<_ACEOF
4462#define HAVE_DECL_ETHER_HOSTTON 1
4463_ACEOF
4464
4462
4465
4466
4467cat >>confdefs.h <<\_ACEOF
4468#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
4469_ACEOF
4470
4471
4463cat >>confdefs.h <<\_ACEOF
4464#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
4465_ACEOF
4466
4467
4472else
4473 cat >>confdefs.h <<_ACEOF
4474#define HAVE_DECL_ETHER_HOSTTON 0
4475_ACEOF
4476
4477
4478fi
4479
4468fi
4469
4480
4481 fi
4482 #
4483 # Did that succeed?
4484 #
4485 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4486 #
4487 # No, how about <netinet/ether.h>, as on Linux?
4488 #

--- 194 unchanged lines hidden (view full) ---

4683ac_cv_have_decl_ether_hostton=no
4684fi
4685rm -f conftest.$ac_objext conftest.$ac_ext
4686fi
4687echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4688echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4689if test $ac_cv_have_decl_ether_hostton = yes; then
4690
4470 fi
4471 #
4472 # Did that succeed?
4473 #
4474 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4475 #
4476 # No, how about <netinet/ether.h>, as on Linux?
4477 #

--- 194 unchanged lines hidden (view full) ---

4672ac_cv_have_decl_ether_hostton=no
4673fi
4674rm -f conftest.$ac_objext conftest.$ac_ext
4675fi
4676echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4677echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4678if test $ac_cv_have_decl_ether_hostton = yes; then
4679
4691cat >>confdefs.h <<_ACEOF
4692#define HAVE_DECL_ETHER_HOSTTON 1
4680
4681cat >>confdefs.h <<\_ACEOF
4682#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
4693_ACEOF
4694
4695
4683_ACEOF
4684
4685
4686fi
4696
4687
4697cat >>confdefs.h <<\_ACEOF
4698#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
4688 fi
4689 fi
4690 #
4691 # Is ether_hostton() declared?
4692 #
4693 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4694 #
4695 # No, we'll have to declare it ourselves.
4696 # Do we have "struct ether_addr"?
4697 #
4698 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
4699echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
4700if test "${ac_cv_type_struct_ether_addr+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702else
4703 cat >conftest.$ac_ext <<_ACEOF
4704#line $LINENO "configure"
4705/* confdefs.h. */
4699_ACEOF
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
4700
4710
4711#include <sys/types.h>
4712#include <sys/socket.h>
4713#include <netinet/in.h>
4714#include <arpa/inet.h>
4715struct mbuf;
4716struct rtentry;
4717#include <net/if.h>
4718#include <netinet/if_ether.h>
4701
4719
4720
4721int
4722main ()
4723{
4724if ((struct ether_addr *) 0)
4725 return 0;
4726if (sizeof (struct ether_addr))
4727 return 0;
4728 ;
4729 return 0;
4730}
4731_ACEOF
4732rm -f conftest.$ac_objext
4733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_cv_type_struct_ether_addr=yes
4702else
4745else
4703 cat >>confdefs.h <<_ACEOF
4704#define HAVE_DECL_ETHER_HOSTTON 0
4746 echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749ac_cv_type_struct_ether_addr=no
4750fi
4751rm -f conftest.$ac_objext conftest.$ac_ext
4752fi
4753echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
4754echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
4755if test $ac_cv_type_struct_ether_addr = yes; then
4756
4757cat >>confdefs.h <<_ACEOF
4758#define HAVE_STRUCT_ETHER_ADDR 1
4705_ACEOF
4706
4707
4708fi
4709
4710
4759_ACEOF
4760
4761
4762fi
4763
4764
4711 fi
4765cat >>confdefs.h <<\_ACEOF
4766#define HAVE_DECL_ETHER_HOSTTON 0
4767_ACEOF
4768
4769 else
4770
4771cat >>confdefs.h <<\_ACEOF
4772#define HAVE_DECL_ETHER_HOSTTON 1
4773_ACEOF
4774
4712 fi
4713fi
4714
4715echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
4716echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
4717# Check whether --enable-protochain or --disable-protochain was given.
4718if test "${enable_protochain+set}" = set; then
4719 enableval="$enable_protochain"

--- 708 unchanged lines hidden (view full) ---

5428
5429 fi
5430 ;;
5431
5432dag)
5433 V_DEFS="$V_DEFS -DDAG_ONLY"
5434 ;;
5435
4775 fi
4776fi
4777
4778echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
4779echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
4780# Check whether --enable-protochain or --disable-protochain was given.
4781if test "${enable_protochain+set}" = set; then
4782 enableval="$enable_protochain"

--- 708 unchanged lines hidden (view full) ---

5491
5492 fi
5493 ;;
5494
5495dag)
5496 V_DEFS="$V_DEFS -DDAG_ONLY"
5497 ;;
5498
5499septel)
5500 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
5501 ;;
5502
5436null)
5437 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
5438echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
5440echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5441 ;;
5442
5443esac

--- 64 unchanged lines hidden (view full) ---

5508 want_dag=yes
5509 dag_lib_dir=$withval
5510
5511fi;
5512
5513case "$V_PCAP" in
5514linux|bpf|dag)
5515 #
5503null)
5504 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
5505echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
5507echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5508 ;;
5509
5510esac

--- 64 unchanged lines hidden (view full) ---

5575 want_dag=yes
5576 dag_lib_dir=$withval
5577
5578fi;
5579
5580case "$V_PCAP" in
5581linux|bpf|dag)
5582 #
5516 # We support the DAG API on Linux or BSD, or if we're building a
5517 # DAG-only libpcap.
5583 # We support the DAG API if we're on Linux or BSD, or if we're
5584 # building a DAG-only libpcap.
5518 #
5519 ;;
5520*)
5521 #
5522 # If the user explicitly requested DAG, tell them it's not
5523 # supported.
5524 #
5525 # If they expressed no preference, don't include it.

--- 9 unchanged lines hidden (view full) ---

5535esac
5536
5537ac_cv_lbl_dag_api=no
5538if test "$want_dag" != no; then
5539
5540 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
5541echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
5542
5585 #
5586 ;;
5587*)
5588 #
5589 # If the user explicitly requested DAG, tell them it's not
5590 # supported.
5591 #
5592 # If they expressed no preference, don't include it.

--- 9 unchanged lines hidden (view full) ---

5602esac
5603
5604ac_cv_lbl_dag_api=no
5605if test "$want_dag" != no; then
5606
5607 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
5608echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
5609
5543 # If necessary, set default paths for DAG API headers and libraries.
5610 # If necessary, set default paths for DAG API headers and libraries.
5544 if test -z "$dag_root"; then
5545 dag_root=/usr/local
5546 fi
5547
5548 if test -z "$dag_include_dir"; then
5549 dag_include_dir="$dag_root/include"
5550 fi
5551
5552 if test -z "$dag_lib_dir"; then
5553 dag_lib_dir="$dag_root/lib"
5554 fi
5555
5556 if test -z "$dag_tools_dir"; then
5557 dag_tools_dir="$dag_root/tools"
5558 fi
5559
5560 if test -r $dag_include_dir/dagapi.h; then
5561 ac_cv_lbl_dag_api=yes
5562 fi
5611 if test -z "$dag_root"; then
5612 dag_root=/usr/local
5613 fi
5614
5615 if test -z "$dag_include_dir"; then
5616 dag_include_dir="$dag_root/include"
5617 fi
5618
5619 if test -z "$dag_lib_dir"; then
5620 dag_lib_dir="$dag_root/lib"
5621 fi
5622
5623 if test -z "$dag_tools_dir"; then
5624 dag_tools_dir="$dag_root/tools"
5625 fi
5626
5627 if test -r $dag_include_dir/dagapi.h; then
5628 ac_cv_lbl_dag_api=yes
5629 fi
5563 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
5630 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
5564echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
5565fi
5566
5567if test $ac_cv_lbl_dag_api = yes; then
5568
5569 echo "$as_me:$LINENO: checking dagapi.o" >&5
5570echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
5571 dagapi_obj=no
5572 if test -r $dag_tools_dir/dagapi.o; then
5631echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
5632fi
5633
5634if test $ac_cv_lbl_dag_api = yes; then
5635
5636 echo "$as_me:$LINENO: checking dagapi.o" >&5
5637echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
5638 dagapi_obj=no
5639 if test -r $dag_tools_dir/dagapi.o; then
5573
5574 # 2.4.x.
5640 # 2.4.x.
5575 dagapi_obj=$dag_tools_dir/dagapi.o
5641 dagapi_obj=$dag_tools_dir/dagapi.o
5576
5577 elif test -r $dag_lib_dir/dagapi.o; then
5642 elif test -r $dag_lib_dir/dagapi.o; then
5578
5579 # 2.5.x.
5580 dagapi_obj=$dag_lib_dir/dagapi.o
5581
5582 elif test -r $dag_lib_dir/libdag.a; then
5583
5584 # 2.5.x.
5643 # 2.5.x.
5644 dagapi_obj=$dag_lib_dir/dagapi.o
5645 elif test -r $dag_lib_dir/libdag.a; then
5646 # 2.5.x.
5585 ar x $dag_lib_dir/libdag.a dagapi.o
5586 if test -r ./dagapi.o; then
5587 dagapi_obj=./dagapi.o
5588 fi
5647 ar x $dag_lib_dir/libdag.a dagapi.o
5648 if test -r ./dagapi.o; then
5649 dagapi_obj=./dagapi.o
5650 fi
5589 fi
5651 fi
5590
5591 if test $dagapi_obj = no; then
5652
5653 if test $dagapi_obj = no; then
5592 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5654 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5593echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5594 ac_cv_lbl_dag_api=no
5595 else
5596 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
5597echo "${ECHO_T}yes ($dagapi_obj)" >&6
5655echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5656 ac_cv_lbl_dag_api=no
5657 else
5658 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
5659echo "${ECHO_T}yes ($dagapi_obj)" >&6
5598 fi
5660 fi
5599fi
5600
5601if test $ac_cv_lbl_dag_api = yes; then
5602
5603 echo "$as_me:$LINENO: checking dagopts.o" >&5
5604echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
5605 dagopts_obj=no
5606 if test -r $dag_tools_dir/dagopts.o; then
5661fi
5662
5663if test $ac_cv_lbl_dag_api = yes; then
5664
5665 echo "$as_me:$LINENO: checking dagopts.o" >&5
5666echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
5667 dagopts_obj=no
5668 if test -r $dag_tools_dir/dagopts.o; then
5607
5608 # 2.4.x.
5669 # 2.4.x.
5609 dagopts_obj=$dag_tools_dir/dagopts.o
5670 dagopts_obj=$dag_tools_dir/dagopts.o
5610
5611 elif test -r $dag_lib_dir/dagopts.o; then
5671 elif test -r $dag_lib_dir/dagopts.o; then
5612
5613 # 2.5.x.
5614 dagopts_obj=$dag_lib_dir/dagopts.o
5615
5616 elif test -r $dag_lib_dir/libdag.a; then
5617
5618 # 2.5.x.
5672 # 2.5.x.
5673 dagopts_obj=$dag_lib_dir/dagopts.o
5674 elif test -r $dag_lib_dir/libdag.a; then
5675 # 2.5.x.
5619 ar x $dag_lib_dir/libdag.a dagopts.o
5620 if test -r ./dagopts.o; then
5621 dagopts_obj=./dagopts.o
5676 ar x $dag_lib_dir/libdag.a dagopts.o
5677 if test -r ./dagopts.o; then
5678 dagopts_obj=./dagopts.o
5679 fi
5622 fi
5680 fi
5623 fi
5624
5625 if test $dagopts_obj = no; then
5681
5682 if test $dagopts_obj = no; then
5626 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5683 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5627echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5628 ac_cv_lbl_dag_api=no
5629 else
5630 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
5631echo "${ECHO_T}yes ($dagopts_obj)" >&6
5632 fi
5633fi
5634
5635if test $ac_cv_lbl_dag_api = yes; then
5684echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5685 ac_cv_lbl_dag_api=no
5686 else
5687 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
5688echo "${ECHO_T}yes ($dagopts_obj)" >&6
5689 fi
5690fi
5691
5692if test $ac_cv_lbl_dag_api = yes; then
5636
5637 # Under 2.5.x only we need to add dagreg.o.
5638 if test -r $dag_include_dir/dagreg.h; then
5693 # Under 2.5.x only we need to add dagreg.o.
5694 if test -r $dag_include_dir/dagreg.h; then
5639
5640 echo "$as_me:$LINENO: checking dagreg.o" >&5
5695 echo "$as_me:$LINENO: checking dagreg.o" >&5
5641echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
5696echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
5642 dagreg_obj=no
5643 if test -r $dag_lib_dir/dagreg.o; then
5644
5645 # Object file is ready and waiting.
5646 dagreg_obj=$dag_lib_dir/dagreg.o
5647
5648 elif test -r $dag_lib_dir/libdag.a; then
5649
5650 # Extract from libdag.a.
5697 dagreg_obj=no
5698 if test -r $dag_lib_dir/dagreg.o; then
5699 # Object file is ready and waiting.
5700 dagreg_obj=$dag_lib_dir/dagreg.o
5701 elif test -r $dag_lib_dir/libdag.a; then
5702 # Extract from libdag.a.
5651 ar x $dag_lib_dir/libdag.a dagreg.o
5652 if test -r ./dagreg.o; then
5703 ar x $dag_lib_dir/libdag.a dagreg.o
5704 if test -r ./dagreg.o; then
5653 dagreg_obj=./dagreg.o
5705 dagreg_obj=./dagreg.o
5706 fi
5654 fi
5707 fi
5655 fi
5656
5657 if test $dagreg_obj = no; then
5708
5709 if test $dagreg_obj = no; then
5658 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
5710 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
5659echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6
5660 ac_cv_lbl_dag_api=no
5711echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6
5712 ac_cv_lbl_dag_api=no
5661 else
5713 else
5662 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
5663echo "${ECHO_T}yes ($dagreg_obj)" >&6
5664 fi
5665 fi
5666fi
5667
5668if test $ac_cv_lbl_dag_api = yes; then
5714 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
5715echo "${ECHO_T}yes ($dagreg_obj)" >&6
5716 fi
5717 fi
5718fi
5719
5720if test $ac_cv_lbl_dag_api = yes; then
5669
5670 V_INCLS="$V_INCLS -I$dag_include_dir"
5671 V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
5672 if test $V_PCAP != dag ; then
5673 SSRC="pcap-dag.c"
5674 fi
5675
5676 # See if we can find a general version string.
5721 V_INCLS="$V_INCLS -I$dag_include_dir"
5722 V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
5723 if test $V_PCAP != dag ; then
5724 SSRC="pcap-dag.c"
5725 fi
5726
5727 # See if we can find a general version string.
5677 # Don't need to save and restore LIBS to prevent -ldag being included if there's a found-action (arg 3).
5728 # Don't need to save and restore LIBS to prevent -ldag being
5729 # included if there's a found-action (arg 3).
5678 saved_ldflags=$LDFLAGS
5679 LDFLAGS="-L$dag_lib_dir"
5680 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
5681echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
5682if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685 ac_check_lib_save_LIBS=$LIBS

--- 54 unchanged lines hidden (view full) ---

5740 LDFLAGS=$saved_ldflags
5741
5742 # See if we can find a specific version string.
5743 echo "$as_me:$LINENO: checking the DAG API version" >&5
5744echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6
5745 if test -r "$dag_root/VERSION"; then
5746 dag_version="`cat $dag_root/VERSION`"
5747 fi
5730 saved_ldflags=$LDFLAGS
5731 LDFLAGS="-L$dag_lib_dir"
5732 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
5733echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
5734if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 ac_check_lib_save_LIBS=$LIBS

--- 54 unchanged lines hidden (view full) ---

5792 LDFLAGS=$saved_ldflags
5793
5794 # See if we can find a specific version string.
5795 echo "$as_me:$LINENO: checking the DAG API version" >&5
5796echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6
5797 if test -r "$dag_root/VERSION"; then
5798 dag_version="`cat $dag_root/VERSION`"
5799 fi
5748 echo "$as_me:$LINENO: result: $dag_version" >&5
5800 echo "$as_me:$LINENO: result: $dag_version" >&5
5749echo "${ECHO_T}$dag_version" >&6
5750
5751cat >>confdefs.h <<\_ACEOF
5752#define HAVE_DAG_API 1
5753_ACEOF
5754
5755fi
5756
5757if test $ac_cv_lbl_dag_api = no; then
5758 if test "$want_dag" = yes; then
5801echo "${ECHO_T}$dag_version" >&6
5802
5803cat >>confdefs.h <<\_ACEOF
5804#define HAVE_DAG_API 1
5805_ACEOF
5806
5807fi
5808
5809if test $ac_cv_lbl_dag_api = no; then
5810 if test "$want_dag" = yes; then
5759 # User wanted DAG support but we couldn't find it.
5811 # User wanted DAG support but we couldn't find it.
5760 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
5761echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
5762 { (exit 1); exit 1; }; }
5763 fi
5764
5812 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
5813echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
5814 { (exit 1); exit 1; }; }
5815 fi
5816
5765 if test "$V_PCAP" = dag; then
5766 # User requested "dag" capture type but the DAG API wasn't found.
5767 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
5817 if test "$V_PCAP" = dag; then
5818 # User requested "dag" capture type but the DAG API wasn't
5819 # found.
5820 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
5768echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
5769 { (exit 1); exit 1; }; }
5821echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
5822 { (exit 1); exit 1; }; }
5770 fi
5823 fi
5771fi
5772
5773
5824fi
5825
5826
5827# Check whether --with-septel or --without-septel was given.
5828if test "${with_septel+set}" = set; then
5829 withval="$with_septel"
5774
5830
5831 if test "$withval" = no
5832 then
5833 want_septel=no
5834 elif test "$withval" = yes
5835 then
5836 want_septel=yes
5837 septel_root=
5838 else
5839 want_septel=yes
5840 septel_root=$withval
5841 fi
5842
5843else
5844
5845 #
5846 # Use Septel API if present, otherwise don't
5847 #
5848 want_septel=ifpresent
5849 septel_root=./../septel
5850
5851fi;
5852ac_cv_lbl_septel_api=no
5853case "$V_PCAP" in
5854linux|septel)
5855 #
5856 # We support the Septel API if we're on Linux, or if we're building
5857 # a Septel-only libpcap.
5858 #
5859 ;;
5860*)
5861 #
5862 # If the user explicitly requested Septel, tell them it's not
5863 # supported.
5864 #
5865 # If they expressed no preference, don't include it.
5866 #
5867 if test $want_septel = yes; then
5868 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
5869echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
5870 { (exit 1); exit 1; }; }
5871 elif test $want_septel = yes; then
5872 want_septel=no
5873 fi
5874 ;;
5875esac
5876
5877if test "$with_septel" != no; then
5878 echo "$as_me:$LINENO: checking whether we have Septel API" >&5
5879echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6
5880
5881 if test -z "$septel_root"; then
5882 septel_root=$srcdir/../septel
5883
5884 fi
5885
5886 septel_tools_dir="$septel_root"
5887 septel_include_dir="$septel_root/INC"
5888 DEF="-DHAVE_SEPTEL_API"
5889
5890 ac_cv_lbl_septel_api=no
5891 if test -r "$septel_include_dir/msg.h"; then
5892 V_INCLS="$V_INCLS -I$septel_include_dir"
5893 V_DEFS="$V_DEFS $DEF"
5894 V_LIBS="$V_LIBS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o "
5895
5896 if test "$V_PCAP" != septel ; then
5897 SSRC="pcap-septel.c"
5898
5899 fi
5900 ac_cv_lbl_septel_api=yes
5901 fi
5902
5903 echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
5904echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6
5905 if test $ac_cv_lbl_septel_api = no; then
5906 if test "$want_septel" = yes; then
5907 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
5908echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
5909 { (exit 1); exit 1; }; }
5910 fi
5911 else
5912
5913cat >>confdefs.h <<\_ACEOF
5914#define HAVE_SEPTEL_API 1
5915_ACEOF
5916
5917 fi
5918fi
5919
5920if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
5921 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
5922echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
5923 { (exit 1); exit 1; }; }
5924fi
5925
5926
5927
5775# Check whether --with-flex or --without-flex was given.
5776if test "${with_flex+set}" = set; then
5777 withval="$with_flex"
5778
5779fi;
5780
5781# Check whether --with-bison or --without-bison was given.
5782if test "${with_bison+set}" = set; then

--- 178 unchanged lines hidden (view full) ---

5961 ;;
5962
5963hpux10.1*)
5964 ;;
5965
5966hpux*)
5967
5968cat >>confdefs.h <<\_ACEOF
5928# Check whether --with-flex or --without-flex was given.
5929if test "${with_flex+set}" = set; then
5930 withval="$with_flex"
5931
5932fi;
5933
5934# Check whether --with-bison or --without-bison was given.
5935if test "${with_bison+set}" = set; then

--- 178 unchanged lines hidden (view full) ---

6114 ;;
6115
6116hpux10.1*)
6117 ;;
6118
6119hpux*)
6120
6121cat >>confdefs.h <<\_ACEOF
5969#define HAVE_HPUX10_20 1
6122#define HAVE_HPUX10_20_OR_LATER 1
5970_ACEOF
5971
5972 ;;
5973
5974sinix*)
5975 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
5976echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
5977 if test "${ac_cv_cc_sinix_defined+set}" = set; then

--- 1669 unchanged lines hidden ---
6123_ACEOF
6124
6125 ;;
6126
6127sinix*)
6128 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
6129echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
6130 if test "${ac_cv_cc_sinix_defined+set}" = set; then

--- 1669 unchanged lines hidden ---