added: GNU autotools scripts

added: additional standard GNU top-dir doc
This commit is contained in:
pi-rho 2012-02-22 20:51:27 -06:00
parent 25d8fb87ec
commit 4fef3ee62d
4 changed files with 92 additions and 0 deletions

3
ChangeLog Normal file
View File

@ -0,0 +1,3 @@
2012-02-12 PPA Maintainer <pi-rho@tyr.cx>
* Added utilities from the fluffy project

35
Makefile.am Normal file
View File

@ -0,0 +1,35 @@
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = man
noinst_LTLIBRARIES = libpcap.la
libpcap_la_SOURCES = src/pcap.c src/pcap.h
noinst_HEADERS = src/netre.h
bin_PROGRAMS = hdng unhex xor repr puniq pmerge p4split
hdng_SOURCES = src/hdng.c
unhex_SOURCES = src/unhex.c
xor_SOURCES = src/xor.c
repr_SOURCES = src/repr.c
puniq_SOURCES = src/puniq.c
puniq_LDADD = libpcap.la
pmerge_SOURCES = src/pmerge.c
pmerge_LDADD = libpcap.la
p4split_SOURCES = src/p4split.c
p4split_LDADD = libpcap.la
man_MANS = man/hdng.1 man/unhex.1 man/xor.1 man/repr.1 man/puniq.1 \
man/pmerge.1 man/p4split.1
docdir = $(datadir)/doc/@PACKAGE@
doc_DATA = README AUTHORS TODO
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 build-aux/compile \
build-aux/config.guess build-aux/config.sub build-aux/depcomp \
build-aux/install-sh build-aux/missing config.h.in \
config.h.in~ configure build-aux/ltmain.sh m4/libtool.m4 \
m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
maintainer-clean-local:
rmdir build-aux
rmdir m4

8
autogen Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh -e
[ ! -d "m4" ] && mkdir m4
autoreconf --install --force
rm -rf autom4te.cache
./configure --enable-maintainer-mode --enable-debug

46
configure.ac Normal file
View File

@ -0,0 +1,46 @@
# Process this file with autoconf to produce a configure script
AC_PREREQ([2.68])
AC_INIT([netre-tools], [0.1337], [pi-rho@tyr.cx])
AC_CONFIG_SRCDIR([src/hdng.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.11 gnu check-news silent-rules subdir-objects -Wall -Werror])
AM_MAINTAINER_MODE
AM_SILENT_RULES([yes])
# Find programs...
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
LT_INIT
# Check for headers
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/socket.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_TYPE_INT32_T
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_CHECK_FUNCS([memset strtol])
# debug stuff
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug], [Enable debug statements]),
[enable_debug=yes],
[enable_debug=no])
AS_IF([test "x$enable_debug" == "xyes"],
AC_DEFINE([DEBUGSTMTS], [1], [enable debugging statements]),
[])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT