Skip to content

Commit

Permalink
Adding Autotools files
Browse files Browse the repository at this point in the history
  • Loading branch information
lpefferkorn committed Nov 17, 2013
1 parent 62134b0 commit c3901a5
Show file tree
Hide file tree
Showing 11 changed files with 425 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@
*.exe
*.out
*.app
CMakeFiles/*
CMakeCache.txt
cmake_install.cmake
ipdecap
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Loic Pefferkorn <[email protected]>
File renamed without changes.
370 changes: 370 additions & 0 deletions INSTALL

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SUBDIRS = src

man1_MANS = ipdecap.1
EXTRA_DIST = Contributors
Empty file added NEWS
Empty file.
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See README.md
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ Can also remove IEEE 802.1Q (virtual lan - vlan) header.

Documentation available at http://www.loicp.eu/ipdecap

Installation
============

Requirements:
* OpenSSL
* pcap

Run ./autogen.sh && ./configure && make install
1 change: 1 addition & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
autoreconf --install || exit 1
38 changes: 38 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([ipdecap], [0.6], [[email protected]])
AC_CONFIG_SRCDIR([src/ipdecap.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB(pcap, pcap_offline_filter, [], AC_MSG_ERROR(pcap
library not found ))
AC_CHECK_LIB(crypto, EVP_CIPHER_CTX_init, [],
AC_MSG_ERROR(OpenSSL library not found))

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_UINT16_T

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset strcspn strdup strtol])

AC_CONFIG_FILES([Makefile src/Makefile])
# unit_tests/802.1q/Makefile
# unit_tests/Makefile
# unit_tests/esp/Makefile
# unit_tests/gre/Makefile
# unit_tests/ip6in4/Makefile
# unit_tests/ipip/Makefile])
AC_OUTPUT
2 changes: 2 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin_PROGRAMS = ipdecap
ipdecap_SOURCES = ipdecap.c

0 comments on commit c3901a5

Please sign in to comment.