No-brainer autocrap wrapper.
authorjbj <devnull@localhost>
Thu, 27 May 2004 18:10:44 +0000 (18:10 +0000)
committerjbj <devnull@localhost>
Thu, 27 May 2004 18:10:44 +0000 (18:10 +0000)
CVS patchset: 7254
CVS date: 2004/05/27 18:10:44

rpmio/sexp/.cvsignore [new file with mode: 0644]
rpmio/sexp/Makefile.am [new file with mode: 0644]
rpmio/sexp/autogen.sh [new file with mode: 0755]
rpmio/sexp/configure.ac [new file with mode: 0755]

diff --git a/rpmio/sexp/.cvsignore b/rpmio/sexp/.cvsignore
new file mode 100644 (file)
index 0000000..d91e9ba
--- /dev/null
@@ -0,0 +1,31 @@
+.deps
+.depend
+.libs
+Doxyfile
+Makefile
+Makefile.in
+aclocal.m4
+autom4te*
+config.cache
+config.guess
+config.h
+config.h.in
+config.log
+config.status
+config.sub
+configure
+doxygen
+depcomp
+install-sh
+libtool
+ltconfig
+ltmain.sh
+missing
+stamp-h
+stamp-h1
+stamp-h.in
+*.la
+*.lcd
+*.lo
+*.swp
+sexp-*.tar.gz
diff --git a/rpmio/sexp/Makefile.am b/rpmio/sexp/Makefile.am
new file mode 100644 (file)
index 0000000..1b9f3a2
--- /dev/null
@@ -0,0 +1,23 @@
+AUTOMAKE_OPTIONS = 1.4 foreign
+
+LINT = splint
+
+EXTRA_DIST = sexp-sample-a sexp-sample-b sexp-sample-c
+
+EXTRA_PROGRAMS = 
+
+INCLUDES = -I.
+
+noinst_HEADERS =       sexp.h
+noinst_PROGRAMS =      sexp
+
+sexp_SOURCES = \
+       sexp-basic.c sexp-input.c sexp-main.c sexp-output.c
+
+.PHONY:        sources
+sources:
+       @echo $(sexp_SOURCES:%=rpmio/sexp/%)
+
+.PHONY:        lint
+lint:
+       $(LINT) $(DEFS) $(INCLUDES) $(sexp_SOURCES)
diff --git a/rpmio/sexp/autogen.sh b/rpmio/sexp/autogen.sh
new file mode 100755 (executable)
index 0000000..0ccf997
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+srcdir="`dirname $0`"
+test -z "$srcdir" && srcdir=.
+
+THEDIR="`pwd`"
+
+cd "$srcdir"
+libtoolize --copy --force
+aclocal
+autoheader
+automake -a -c
+autoconf
+
+if [ "$1" = "--noconfigure" ]; then 
+    exit 0;
+fi
+
+cd "$THEDIR"
+
+if [ X"$@" = X  -a "X`uname -s`" = "XLinux" ]; then
+    $srcdir/configure --prefix=/usr "$@"
+else
+    $srcdir/configure "$@"
+fi
diff --git a/rpmio/sexp/configure.ac b/rpmio/sexp/configure.ac
new file mode 100755 (executable)
index 0000000..deb1afb
--- /dev/null
@@ -0,0 +1,25 @@
+AC_INIT(sexp.h)
+AC_CANONICAL_SYSTEM
+AC_PREREQ(2.12)
+AC_CONFIG_HEADERS
+AM_INIT_AUTOMAKE(sexp, 1.0)
+AM_CONFIG_HEADER(config.h)
+
+AC_ISC_POSIX
+
+AC_PROG_CC
+AC_GCC_TRADITIONAL
+AM_C_PROTOTYPES
+
+AM_PROG_LIBTOOL
+
+AC_PROG_INSTALL
+
+if test "X$CC" = Xgcc; then
+    CFLAGS="-Wall $CFLAGS"
+fi
+
+dnl XXX lose rpm libs
+LIBS=
+
+AC_OUTPUT([Makefile])