Diff for /embedaddon/arping/configure.ac between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 22:16:27 version 1.1.1.2, 2014/06/15 16:26:43
Line 2 Line 2
 # Process this file with autoconf to produce a configure script.  # Process this file with autoconf to produce a configure script.
   
 AC_PREREQ(2.61)  AC_PREREQ(2.61)
AC_INIT(arping, 2.09, thomas@habets.pp.se)AC_INIT(arping, 2.13, thomas@habets.se)
 AC_CANONICAL_SYSTEM  AC_CANONICAL_SYSTEM
 AC_CONFIG_SRCDIR([src/arping.c])  AC_CONFIG_SRCDIR([src/arping.c])
 AM_INIT_AUTOMAKE  AM_INIT_AUTOMAKE
Line 16  AC_PROG_INSTALL Line 16  AC_PROG_INSTALL
 AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
   
 # Checks for libraries.  # Checks for libraries.
   AC_CHECK_LIB([m], [sqrt])
 AC_CHECK_LIB([socket], [socket])  AC_CHECK_LIB([socket], [socket])
 AC_CHECK_LIB([nsl], [gethostbyname])  AC_CHECK_LIB([nsl], [gethostbyname])
   AC_CHECK_LIB([rt], [clock_gettime])
 AC_CHECK_LIB([net], [libnet_name_resolve],  AC_CHECK_LIB([net], [libnet_name_resolve],
       [AC_MSG_ERROR([libnet 1.0.x found. Arping 2.x requires libnet 1.1.x])])        [AC_MSG_ERROR([libnet 1.0.x found. Arping 2.x requires libnet 1.1.x])])
 AC_CHECK_LIB([net], [libnet_init], ,[AC_MSG_ERROR([libnet 1.1.x not found])])  AC_CHECK_LIB([net], [libnet_init], ,[AC_MSG_ERROR([libnet 1.1.x not found])])
 AC_CHECK_LIB([pcap], [pcap_open_live], ,[AC_MSG_ERROR([libpcap not found])])  AC_CHECK_LIB([pcap], [pcap_open_live], ,[AC_MSG_ERROR([libpcap not found])])
   AC_SEARCH_LIBS([clock_gettime], [rt])
   
 # Checks for header files.  # Checks for header files.
 AC_HEADER_STDC  AC_HEADER_STDC
Line 30  arpa/inet.h \ Line 33  arpa/inet.h \
 netinet/in.h \  netinet/in.h \
 stdlib.h \  stdlib.h \
 sys/socket.h \  sys/socket.h \
   time.h \
 sys/time.h \  sys/time.h \
 sys/types.h \  sys/types.h \
 stdint.h \  stdint.h \
Line 57  AC_PROG_GCC_TRADITIONAL Line 61  AC_PROG_GCC_TRADITIONAL
 AC_FUNC_SELECT_ARGTYPES  AC_FUNC_SELECT_ARGTYPES
 AC_FUNC_SETVBUF_REVERSED  AC_FUNC_SETVBUF_REVERSED
 AC_TYPE_SIGNAL  AC_TYPE_SIGNAL
AC_CHECK_FUNCS([gettimeofday memset select strchr strdup strerror strstr])AC_CHECK_FUNCS([gettimeofday memset select strchr strdup strerror strstr \
 getifaddrs])
   
case "$target_os" inif test x$ac_cv_func_getifaddrs = xyes; then
     *linux*)    AC_LIBOBJ([findif_getifaddrs])
          AC_LIBOBJ([findif_linux])else
          ;;    case "$target_os" in
     *freebsd*|*openbsd*|*solaris*)        *linux*)
          AC_LIBOBJ([findif_bsd])            AC_LIBOBJ([findif_linux])
          ;;            ;;
     *)        *freebsd*|*openbsd*|*darwin*)
          AC_LIBOBJ([findif_other])            AC_LIBOBJ([findif_sysctl])
          ;;            ;;
esac        *solaris*)
             AC_LIBOBJ([findif_bsdroute])
             ;;
         *)
             AC_LIBOBJ([findif_other])
             ;;
     esac
 fi
 
 
 
 # check for CLOCK_MONOTONIC
 AC_CACHE_CHECK([for CLOCK_MONOTONIC],
                                   ac_cv_have_clock_monotonic, [
                                   AC_TRY_RUN(
                                         [
 #include <time.h>
 #include <sys/time.h>
 int main() {
 struct timespec ts;
 exit(!!clock_gettime(CLOCK_MONOTONIC, &ts));
 }
                 ],
                         [ ac_cv_have_clock_monotonic="yes" ],
                         [ ac_cv_have_clock_monotonic="no" ]
                           )
 ])
 AM_CONDITIONAL(HAVE_CLOCK_MONOTONIC, test x$ac_cv_have_clock_monotonic = xyes)
 if test x$ac_cv_have_clock_monotonic = xyes; then
    AC_DEFINE([HAVE_CLOCK_MONOTONIC], [1], [Monotonic clock])
 fi
 
 AC_CONFIG_FILES([Makefile])  AC_CONFIG_FILES([Makefile])
 AC_CONFIG_FILES([src/Makefile])  AC_CONFIG_FILES([src/Makefile])
 AC_CONFIG_FILES([doc/Makefile])  AC_CONFIG_FILES([doc/Makefile])

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>