Skip to content

Commit

Permalink
Add support for autoconf / automake / libtool.
Browse files Browse the repository at this point in the history
Replaces #24
  • Loading branch information
minfrin committed Feb 27, 2020
1 parent fe7c49c commit 69df7a3
Show file tree
Hide file tree
Showing 10 changed files with 444 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,22 @@
/sscep_dyn
/sscep.o
/.git_checkout

.deps
Makefile
Makefile.in
aclocal.m4
autom4te.cache
build-aux
compile
config.h
config.log
config.status
configure
depcomp
install-sh
libtool
m4
missing
stamp-h1

2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
See the COPYING file.

File renamed without changes.
Empty file added ChangeLog
Empty file.
368 changes: 368 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 @@

bin_PROGRAMS = sscep
sscep_SOURCES = configuration.c engine.c fileutils.c getopt.c ias.c init.c net.c pkcs7.c sceputils.c sscep.c cmd.h conf.h configuration.h engine.h fileutils_capi.h getopt.h ias.h sscep.h

1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No news is good news.
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
See README.md.

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ The program should compile on the following systems:
To compile run:
`$ make`

To generate the configure script when checking out from github source:
`$ autoheader`
`$ libtoolize`
`$ automake -a -c -f`
`$ autoreconf`

To compile from a tarball created with 'make dist'
`$ ./configure`
`$ make`
`$ make install`

### Windows:

The Win32 version of sscep has been tested with OpenSSL-v0.9.7i.
Expand Down
37 changes: 37 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([sscep],[0.7.0],[certnanny@github.com])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([dist-bzip2])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([sscep.c])
AC_CONFIG_MACRO_DIR([m4])
LT_INIT

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
PKG_CHECK_MODULES(openssl, openssl >= 0.9.7)
#
CFLAGS="$CFLAGS $openssl_CFLAGS"
CPPFLAGS="$CPPFLAGS $openssl_CPPFLAGS"
LDFLAGS="$LDFLAGS $openssl_LIBS"

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

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([alarm gethostbyname memset socket strchr strdup strstr])

AC_CONFIG_FILES([Makefile])
AC_SUBST([LIBTOOL_DEPS])
AC_OUTPUT

0 comments on commit 69df7a3

Please sign in to comment.