source: trunk/third/traceroute/configure.in @ 15095

Revision 15095, 1.2 KB checked in by ghudson, 24 years ago (diff)
From kolya: enable checksums on Solaris.
Line 
1dnl @(#) $Header: /afs/dev.mit.edu/source/repository/third/traceroute/configure.in,v 1.2 2000-09-21 15:02:55 ghudson Exp $ (LBL)
2dnl
3dnl Copyright (c) 1995, 1996, 1997
4dnl     The Regents of the University of California.  All rights reserved.
5dnl
6dnl Process this file with autoconf to produce a configure script.
7dnl
8
9AC_INIT(traceroute.c)
10
11AC_CANONICAL_SYSTEM
12
13umask 002
14
15if test -z "$PWD" ; then
16        PWD=`pwd`
17fi
18
19AC_LBL_C_INIT(V_CCOPT, V_INCLS)
20
21AC_CHECK_HEADERS(malloc.h sys/select.h sys/sockio.h)
22
23AC_REPLACE_FUNCS(strerror)
24AC_CHECK_FUNCS(setlinebuf)
25
26AC_LBL_LIBRARY_NET
27
28case "$target_os" in
29
30bsd4*)
31        AC_DEFINE(HAVE_RAW_OPTIONS)
32        ;;
33
34bsdi*)
35        AC_DEFINE(HAVE_RAW_OPTIONS)
36        ;;
37
38freebsd*)
39        AC_DEFINE(HAVE_RAW_OPTIONS)
40        ;;
41
42linux*)
43        V_INCLS="$V_INCLS -Ilinux-include"
44        ;;
45
46osf3*)
47        dnl Workaround around ip_hl vs. ip_vhl problem in netinet/ip.h
48        AC_DEFINE(__STDC__,2)
49        ;;
50
51solaris*)
52        AC_DEFINE(BYTESWAP_IP_LEN)
53        ;;
54esac
55
56AC_LBL_CHECK_TYPE(int32_t, int)
57AC_LBL_CHECK_TYPE(u_int32_t, u_int)
58
59AC_LBL_DEVEL(V_CCOPT)
60
61AC_LBL_SOCKADDR_SA_LEN
62
63if test -r lbl/gnuc.h ; then
64        rm -f gnuc.h
65        ln -s lbl/gnuc.h gnuc.h
66fi
67
68AC_SUBST(V_CCOPT)
69AC_SUBST(V_INCLS)
70
71AC_PROG_INSTALL
72
73AC_OUTPUT(Makefile)
74
75if test -f .devel ; then
76        make depend
77fi
78
79exit 0
Note: See TracBrowser for help on using the repository browser.