aclocal.m4
autom4te.cache
+arg-nonnull.h
+warn-on-use.h
+lib
+
missing
depcomp
install-sh
--- /dev/null
+[submodule "gnulib"]
+ path = gnulib
+ url = git://git.savannah.gnu.org/gnulib.git
-# Copyright (C) 2009 Nick Bowler
+# Copyright (C) 2009-2010 Nick Bowler
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
ACLOCAL_AMFLAGS = -I m4
+EXTRA_DIST = m4/gnulib-cache.m4
+
+AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
+AM_LDFLAGS = -L$(top_builddir)/lib
+
dist_man_MANS =
dist_doc_DATA =
noinst_HEADERS =
include doc/Makefile.inc
include src/Makefile.inc
+
+SUBDIRS = lib .
exit 1
}
-test -d m4 || mkdir m4
+test -d m4 || mkdir m4
+test -d lib || mkdir lib
+
+git submodule update --init || echo "Failed to update Gnulib sources from git."
+if test -x gnulib/gnulib-tool; then
+ gnulib/gnulib-tool --update || die "Failed to update gnulib."
+else
+ die "Gnulib sources are not properly installed in gnulib/"
+fi
aclocal -I m4 || die "Failed to run aclocal."
autoheader || die "Failed to run autoheader."
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PROG_CC_C99
+gl_EARLY
+
AC_HEADER_ASSERT
AC_C_BIGENDIAN
LT_INIT
+gl_INIT
+
CHECK_LIBPNG([1.2], [have_libpng=yes], [have_libpng=no])
AM_CONDITIONAL([BUILD_LBXIMG], [test x"$have_libpng" = x"yes"])
AC_CONFIG_FILES([
Makefile
+ lib/Makefile
])
AC_OUTPUT
--- /dev/null
+Subproject commit 9d0ad652de159d08e5f679842f8a2a5658196361
ltsugar.m4
ltversion.m4
libtool.m4
+00gnulib.m4
+argz.m4
+extensions.m4
+getopt.m4
+gnulib-common.m4
+gnulib-comp.m4
+gnulib-tool.m4
+include_next.m4
+stddef_h.m4
+unistd_h.m4
+warn-on-use.m4
+wchar_t.m4
--- /dev/null
+# Copyright (C) 2002-2010 Free Software Foundation, Inc.
+#
+# This file is free software, distributed under the terms of the GNU
+# General Public License. As a special exception to the GNU General
+# Public License, this file may be distributed as part of a program
+# that contains a configuration script generated by Autoconf, under
+# the same distribution terms as the rest of that program.
+#
+# Generated by gnulib-tool.
+#
+# This file represents the specification of how gnulib-tool is used.
+# It acts as a cache: It is written and read by gnulib-tool.
+# In projects using CVS, this file is meant to be stored in CVS,
+# like the configure.ac and various Makefile.am files.
+
+
+# Specification in the form of a command-line invocation:
+# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --libtool --macro-prefix=gl --no-vc-files getopt-gnu
+
+# Specification in the form of a few gnulib-tool.m4 macro invocations:
+gl_LOCAL_DIR([])
+gl_MODULES([
+ getopt-gnu
+])
+gl_AVOID([])
+gl_SOURCE_BASE([lib])
+gl_M4_BASE([m4])
+gl_PO_BASE([])
+gl_DOC_BASE([doc])
+gl_TESTS_BASE([tests])
+gl_LIB([libgnu])
+gl_MAKEFILE_NAME([])
+gl_LIBTOOL
+gl_MACRO_PREFIX([gl])
+gl_PO_DOMAIN([])
+gl_VC_FILES([false])
bin_PROGRAMS += lbxtool
lbxtool_SOURCES = src/lbxtool.c
-lbxtool_LDADD = liblbx.la
+lbxtool_LDADD = liblbx.la -lgnu
if BUILD_LBXIMG
bin_PROGRAMS += lbximg
lbximg_SOURCES = src/lbximg.c
-lbximg_LDADD = liblbx.la $(LIBPNG_LIBS)
+lbximg_LDADD = liblbx.la $(LIBPNG_LIBS) -lgnu
lbximg_CFLAGS = $(LIBPNG_CFLAGS)
endif
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define _GNU_SOURCE
+#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define _GNU_SOURCE
+#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>