Remove most obsoleted autotools files
This commit is contained in:
parent
51cf5cacb6
commit
2072b7a7bd
12
.gitignore
vendored
12
.gitignore
vendored
@ -1,13 +1 @@
|
|||||||
*.o
|
|
||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
autom4te.cache/
|
|
||||||
config.log
|
|
||||||
config.status
|
|
||||||
configure
|
|
||||||
aclocal.m4
|
|
||||||
src/distromatic
|
|
||||||
src/distroquery
|
|
||||||
src/include/stamp-h1
|
|
||||||
src/.deps
|
|
||||||
build/
|
build/
|
64
Makefile.am
64
Makefile.am
@ -1,64 +0,0 @@
|
|||||||
# This file is part of `distromatic', the QiLinux RPM tool for the distribution
|
|
||||||
# Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify it under
|
|
||||||
# the terms of version 2 of the GNU General Public License as published by the
|
|
||||||
# Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY, to the extent permitted by law; without even the implied
|
|
||||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
# See the GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
auxdir = @ac_aux_dir@
|
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = 1.8 dist-bzip2 foreign nostdinc no-dist-gzip
|
|
||||||
|
|
||||||
SUBDIRS = po $(auxdir) html src src/include
|
|
||||||
|
|
||||||
EXTRA_DIST = config/config.rpath AUTHORS COPYING ChangeLog VERSION distromatic.conf
|
|
||||||
|
|
||||||
install-data-local:
|
|
||||||
$(mkdir_p) $(DESTDIR)$(sysconfdir)
|
|
||||||
$(INSTALL_DATA) $(srcdir)/distromatic.conf $(DESTDIR)${sysconfdir}/distromatic.conf
|
|
||||||
|
|
||||||
dist-rpm: dist-bzip2
|
|
||||||
@rpm_sourcedir=`rpm --eval=%{_sourcedir} 2>/dev/null`;\
|
|
||||||
[ -d "$$rpm_sourcedir" ] || \
|
|
||||||
{ echo "directory not found: $$rpm_sourcedir" 1>&2; exit 1; };\
|
|
||||||
mv -f $(distdir).tar.bz2 $$rpm_sourcedir || exit 1; \
|
|
||||||
echo "Created tarball \`$$rpm_sourcedir/$(distdir).tar.bz2'."
|
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
|
||||||
|
|
||||||
check-gettext:
|
|
||||||
@if test x$(USE_NLS) != "xyes" ; then echo "Missing gettext. Rerun configure and check for" \
|
|
||||||
"'checking whether to use NLS... yes'!" ; exit 1 ; fi
|
|
||||||
|
|
||||||
update-po: check-gettext
|
|
||||||
@find $(srcdir)/src/ -name "*.cpp" -print | sort > $(srcdir)/po/POTFILES.in.2 ; \
|
|
||||||
if diff $(srcdir)/po/POTFILES.in $(srcdir)/po/POTFILES.in.2 >/dev/null 2>&1 ; then \
|
|
||||||
rm -f $(srcdir)/po/POTFILES.in.2 ; \
|
|
||||||
else \
|
|
||||||
mv $(srcdir)/po/POTFILES.in.2 $(srcdir)/po/POTFILES.in ; \
|
|
||||||
fi
|
|
||||||
cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
|
|
||||||
|
|
||||||
update-gmo: check-gettext
|
|
||||||
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
|
|
||||||
|
|
||||||
force-update-gmo: check-gettext
|
|
||||||
touch po/*.po
|
|
||||||
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
|
|
||||||
|
|
||||||
force-update-gmo-%: check-gettext
|
|
||||||
@language=`echo $@ | sed s/force-update-gmo-//` ; \
|
|
||||||
if test ! -f po/$$language.po ; then echo "file po/$$language.po does not exist" ; exit 1 ; fi ; \
|
|
||||||
touch po/$$language.po ; \
|
|
||||||
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
|
|
||||||
|
|
||||||
.PHONY: check-gettext update-po update-gmo force-update-gmo
|
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
aclocal
|
|
||||||
autoheader
|
|
||||||
automake --add-missing
|
|
||||||
autoconf
|
|
||||||
./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share $@
|
|
251
configure.ac
251
configure.ac
@ -1,251 +0,0 @@
|
|||||||
dnl A tool for maintaining an RPM based distribution
|
|
||||||
dnl
|
|
||||||
dnl Copyright 2006 (C) Davide Madrisan <davide.madrisan@gmail.com>
|
|
||||||
dnl Copyright 2007-2014 (C) Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
||||||
dnl
|
|
||||||
dnl This program is free software; you can redistribute it and/or modify it under
|
|
||||||
dnl the terms of version 2 of the GNU General Public License as published by the
|
|
||||||
dnl Free Software Foundation.
|
|
||||||
dnl
|
|
||||||
dnl This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
dnl ANY WARRANTY, to the extent permitted by law; without even the implied
|
|
||||||
dnl warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
dnl See the GNU General Public License for more details.
|
|
||||||
dnl
|
|
||||||
dnl You should have received a copy of the GNU General Public License along with
|
|
||||||
dnl this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
dnl 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
|
||||||
|
|
||||||
|
|
||||||
dnl Initialization
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
m4_define(PROG_NAME, [distromatic])
|
|
||||||
m4_define(PROG_BUGREPORT, [silvan.calarco@mambasoft.it])
|
|
||||||
m4_define(PROG_VERSION,dnl
|
|
||||||
regexp(m4_include(VERSION),[.*=[ \t]*\([.0-9A-Za-z]+\)],[\1]))
|
|
||||||
|
|
||||||
AC_PREREQ(2.59)
|
|
||||||
AC_INIT([PROG_NAME],[PROG_VERSION],[PROG_BUGREPORT],[PROG_NAME])
|
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(src/distromatic.c)
|
|
||||||
AC_CONFIG_HEADERS(src/include/config.h:src/include/config.h.in)
|
|
||||||
AC_COPYRIGHT(dnl
|
|
||||||
[Copyright 2006 by Davide Madrisan <davide.madrisan@gmail.com>
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl set `ac_aux_dir' = 'config'
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_CONFIG_AUX_DIR(config)
|
|
||||||
AC_SUBST(ac_aux_dir)
|
|
||||||
|
|
||||||
dnl Just to display the version number of this program
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_MSG_CHECKING([for PROG_NAME version])
|
|
||||||
AC_MSG_RESULT([PROG_VERSION])
|
|
||||||
|
|
||||||
dnl Set and display default target architecture
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_MSG_CHECKING([for the default target architecture])
|
|
||||||
DEFAULT_ARCH="i586"
|
|
||||||
AC_SUBST(DEFAULT_ARCH)
|
|
||||||
AC_MSG_RESULT([$DEFAULT_ARCH])
|
|
||||||
|
|
||||||
dnl Compute the canonical build-system type variable, `build' and
|
|
||||||
dnl its three individual parts `build_cpu', `build_vendor', `build_os'
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_CANONICAL_TARGET
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([1.7 foreign dist-bzip2 nostdinc])
|
|
||||||
|
|
||||||
AM_GNU_GETTEXT([external])
|
|
||||||
|
|
||||||
AC_REVISION($Revision: 1.4 $)
|
|
||||||
|
|
||||||
dnl Determine a C compiler to use. Define `CFLAGS', `EXEEXT', `OBJEXT'
|
|
||||||
dnl Define `CFLAGS' to `-g -O2' for the GNU C compiler, or `-g' for
|
|
||||||
dnl other compilers.
|
|
||||||
dnl If the C compiler is not in ANSI C mode by default, try to add an
|
|
||||||
dnl option to output variable `CC' to make it so.
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_PROG_CC
|
|
||||||
if test "x$ac_cv_prog_cc_stdc" = xno; then
|
|
||||||
AC_MSG_ERROR([$CC is not an ANSI C compiler.])
|
|
||||||
fi
|
|
||||||
AM_PROG_CC_C_O
|
|
||||||
AC_ISC_POSIX
|
|
||||||
#AC_PROG_GCC_TRADITIONAL
|
|
||||||
|
|
||||||
#CFLAGS+=-O1
|
|
||||||
SUPPORTED_CFLAGS=
|
|
||||||
|
|
||||||
dnl cc_TRY_CFLAGS (CFLAGS, [ACTION-IF-WORKS], [ACTION-IF-FAILS])
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
dnl Checks if $CC supports a given set of CFLAGS.
|
|
||||||
dnl If supported, the current CFLAGS is appended to SUPPORTED_CFLAGS
|
|
||||||
AC_DEFUN([cc_TRY_CFLAGS],
|
|
||||||
[AC_MSG_CHECKING([whether compiler accepts $1])
|
|
||||||
ac_save_CFLAGS="$CFLAGS"
|
|
||||||
CFLAGS="$CFLAGS $1"
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
|
||||||
[[int x;]],
|
|
||||||
[ac_cv_try_cflags_ok=yes
|
|
||||||
SUPPORTED_CFLAGS="$SUPPORTED_CFLAGS $1"],
|
|
||||||
[ac_cv_try_cflags_ok=no]])])
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
AC_MSG_RESULT([$ac_cv_try_cflags_ok])
|
|
||||||
if test x"$ac_cv_try_cflags_ok" = x"yes"; then
|
|
||||||
ifelse([$2],[],[:],[$2])
|
|
||||||
else
|
|
||||||
ifelse([$3],[],[:],[$3])
|
|
||||||
fi
|
|
||||||
])[]dnl @end [cc_TRY_CFLAGS]
|
|
||||||
|
|
||||||
cc_TRY_CFLAGS([-Wall])
|
|
||||||
cc_TRY_CFLAGS([-W])
|
|
||||||
cc_TRY_CFLAGS([-Wmissing-prototypes])
|
|
||||||
cc_TRY_CFLAGS([-Wstrict-prototypes])
|
|
||||||
cc_TRY_CFLAGS([-Wshadow])
|
|
||||||
#cc_TRY_CFLAGS([-Wunreachable-code])
|
|
||||||
|
|
||||||
AC_SUBST([CFLAGS], ["$CFLAGS $SUPPORTED_CFLAGS"])
|
|
||||||
|
|
||||||
dnl Check if C the compiler does not fully support the ANSI C qualifier
|
|
||||||
dnl `const'.
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_C_CONST
|
|
||||||
|
|
||||||
AC_LANG([C])
|
|
||||||
|
|
||||||
dnl Define `WORDS_BIGENDIAN' if a big-endian architecture is found
|
|
||||||
dnl AC_C_BIGENDIAN ([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
|
|
||||||
dnl The default for ACTION-IF-TRUE is to define `WORDS_BIGENDIAN'.
|
|
||||||
dnl The default for ACTION-IF-FALSE is to do nothing.
|
|
||||||
dnl And finally, the default for ACTION-IF-UNKNOWN is to abort configure and tell
|
|
||||||
dnl the installer which variable he should preset to bypass this test.
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_C_BIGENDIAN
|
|
||||||
|
|
||||||
dnl Check for standard header files
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_HEADER_STDC
|
|
||||||
AC_HEADER_TIME
|
|
||||||
|
|
||||||
dnl Check for library functions for portability issues
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_CHECK_DECLS([getopt])
|
|
||||||
dnl If the `malloc' works correctly (`malloc (0)' returns a valid pointer),
|
|
||||||
dnl define `HAVE_MALLOC'
|
|
||||||
AC_CHECK_FUNCS([memcpy strchr])
|
|
||||||
AC_FUNC_MALLOC
|
|
||||||
|
|
||||||
dnl Check for needed header files, libraries and tools
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_CHECK_HEADERS(dirent.h ndir.h sys/ndir.h, break)
|
|
||||||
AC_CHECK_HEADERS(errno.h)
|
|
||||||
|
|
||||||
dnl Check for zlib library and header files
|
|
||||||
AC_CHECK_HEADER([zlib.h],
|
|
||||||
AC_DEFINE(HAVE_ZLIB_H,1,
|
|
||||||
[Define to 1 if you have the <zlib.h> header file.]),
|
|
||||||
[AC_MSG_ERROR([Can't find zlib.h in your system])])
|
|
||||||
AC_CHECK_LIB(z,gzopen, [ZLIB="-lz"],
|
|
||||||
[AC_MSG_ERROR([Can't find libz library in your system])])
|
|
||||||
LIBS="$LIBS $ZLIB"
|
|
||||||
|
|
||||||
dnl Check for rpm tool and needed libraries
|
|
||||||
AC_PATH_PROG(RPM_PATH,rpm,none)
|
|
||||||
if test "$RPM_PATH" = "none"; then
|
|
||||||
AC_MSG_ERROR([RPM executable was not found in your system])
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED([HAVE_RPM],1,[Define if RPM backend is available])
|
|
||||||
|
|
||||||
dnl Check for RPM version
|
|
||||||
AC_MSG_CHECKING(for RPM version)
|
|
||||||
RPM_VERSION_RAW=`LANG= LC_ALL= $RPM_PATH --version | sed 's/^.* //'`
|
|
||||||
RPM_VERSION_MAJOR=`echo $RPM_VERSION_RAW | cut -d. -f1`
|
|
||||||
RPM_VERSION_MINOR=`echo $RPM_VERSION_RAW | cut -d. -f2`
|
|
||||||
RPM_VERSION_MICRO=`echo $RPM_VERSION_RAW | cut -d. -f3`
|
|
||||||
if test -z "$RPM_VERSION_MAJOR" -o -z "$RPM_VERSION_MINOR"; then
|
|
||||||
AC_MSG_ERROR([can't parse RPM version])
|
|
||||||
fi
|
|
||||||
if test -z "$RPM_VERSION_MICRO"; then
|
|
||||||
RPM_VERSION_MICRO=0
|
|
||||||
fi
|
|
||||||
AC_DEFINE_UNQUOTED([RPM_VERSION_MAJOR],$RPM_VERSION_MAJOR,[RPM major version])
|
|
||||||
AC_DEFINE_UNQUOTED([RPM_VERSION_MINOR],$RPM_VERSION_MINOR,[RPM minor version])
|
|
||||||
AC_DEFINE_UNQUOTED([RPM_VERSION_MICRO],$RPM_VERSION_MICRO,[RPM micro version])
|
|
||||||
AC_DEFINE_UNQUOTED([RPM_VERSION],
|
|
||||||
[((RPM_VERSION_MAJOR<<16)|(RPM_VERSION_MINOR<<8)|RPM_VERSION_MICRO)],
|
|
||||||
[Define to the RPM version])
|
|
||||||
AC_DEFINE_UNQUOTED([RPM_VERSION_RAW],"$RPM_VERSION_RAW",[RPM raw version])
|
|
||||||
AC_MSG_RESULT($RPM_VERSION_RAW)
|
|
||||||
|
|
||||||
dnl Check for RPM libraries and headers
|
|
||||||
|
|
||||||
AC_CHECK_LIB(bz2,BZ2_bzopen, [],
|
|
||||||
[AC_MSG_ERROR([Can't find libbz2 library in your system])])
|
|
||||||
AC_CHECK_LIB(z,gzopen, [],
|
|
||||||
[AC_MSG_ERROR([Can't find libz library in your system])])
|
|
||||||
AC_CHECK_HEADERS(db1/db.h)
|
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS -Doff64_t=__off64_t -I/usr/include/rpm"
|
|
||||||
AC_CHECK_HEADER(rpm/rpmlib.h, [],
|
|
||||||
[AC_MSG_ERROR([Can't find rpmlib.h in your system])])
|
|
||||||
|
|
||||||
if test $RPM_VERSION_MAJOR -lt 4; then
|
|
||||||
RPMLIBS="-lrpm -lz -lbz2 -lpopt"
|
|
||||||
else
|
|
||||||
AC_CHECK_LIB(rpmdb,rpmdbOpen,
|
|
||||||
[RPMDBLIBS="-lrpmdb"],
|
|
||||||
[RPMDBLIBS="-ldb-3.1"],
|
|
||||||
[-lrpm -lrpmio -lz -lbz2 -lpopt])
|
|
||||||
RPMLIBS="-lrpm $RPMDBLIBS -lrpmio -lz -lbz2 -lpopt"
|
|
||||||
fi
|
|
||||||
AC_MSG_CHECKING(for RPM libraries)
|
|
||||||
AC_MSG_RESULT($RPMLIBS)
|
|
||||||
AC_SUBST(RPMLIBS)
|
|
||||||
fi
|
|
||||||
LIBS="$LIBS $RPMLIBS"
|
|
||||||
|
|
||||||
dnl Check for libiberty' library and header files
|
|
||||||
AC_CHECK_HEADERS([libiberty/libiberty.h], [],
|
|
||||||
[AC_MSG_ERROR([Can't find libiberty.h in your system,]
|
|
||||||
[check http://www.gnu.org/software/binutils/binutils.html for libiberty])])
|
|
||||||
AC_CHECK_LIB(iberty, freeargv,
|
|
||||||
[LIBS="$LIBS -liberty"
|
|
||||||
AC_DEFINE(HAVE_LIBIBERTY,1,
|
|
||||||
[Define to 1 if you have the `libiberty' library (-liberty).])],
|
|
||||||
[AC_MSG_ERROR([Can't find libiberty in your system,]
|
|
||||||
[check http://www.gnu.org/software/binutils/binutils.html for libiberty])])
|
|
||||||
|
|
||||||
dnl Check for sqlite library and header files
|
|
||||||
PKG_CHECK_MODULES([SQLITE], [sqlite3])
|
|
||||||
|
|
||||||
dnl Set the default `prefix' variable to `/usr'
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
dnl AC_PREFIX_DEFAULT([/usr])
|
|
||||||
|
|
||||||
dnl Generate the output files
|
|
||||||
dnl ------------------------------------------------------------
|
|
||||||
AC_CONFIG_FILES([Makefile po/Makefile.in]
|
|
||||||
[config/Makefile]
|
|
||||||
[html/Makefile]
|
|
||||||
[html/index.php]
|
|
||||||
[html/index.postnuke.php]
|
|
||||||
[html/index.html]
|
|
||||||
[src/Makefile]
|
|
||||||
[src/include/Makefile]
|
|
||||||
[src/include/globaldefs.h]
|
|
||||||
[src/missing/Makefile])
|
|
||||||
|
|
||||||
AC_OUTPUT
|
|
||||||
|
|
||||||
cat <<_EOF
|
|
||||||
|
|
||||||
Good - your configure finished. Start make now.
|
|
||||||
|
|
||||||
_EOF
|
|
||||||
|
|
||||||
dnl configure.ac ends here
|
|
@ -1,47 +0,0 @@
|
|||||||
# This file is part of `distromatic', a tool for RPM based repositories
|
|
||||||
# Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com>
|
|
||||||
# Copyright (C) 2007 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify it under
|
|
||||||
# the terms of version 2 of the GNU General Public License as published by the
|
|
||||||
# Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY, to the extent permitted by law; without even the implied
|
|
||||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
# See the GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include -rdynamic -Wall
|
|
||||||
LDFLAGS += $(SQLITE_LIBS) -lpthread -rdynamic $(LTLIBINTL)
|
|
||||||
cgidir := $(localstatedir)/www/cgi-bin
|
|
||||||
wwwdir := $(localstatedir)/www/html
|
|
||||||
localedir := $(datadir)/locale
|
|
||||||
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
|
|
||||||
|
|
||||||
bin_PROGRAMS = distromatic
|
|
||||||
cgi_PROGRAMS = distroquery
|
|
||||||
|
|
||||||
distromatic_SOURCES = \
|
|
||||||
buildtools.c \
|
|
||||||
changelog.c \
|
|
||||||
distromatic.c \
|
|
||||||
functions.c \
|
|
||||||
reports.c \
|
|
||||||
headerlist.c \
|
|
||||||
requirelist.c \
|
|
||||||
rpmfunctions.c \
|
|
||||||
backend-sqlite3.c
|
|
||||||
|
|
||||||
distroquery_SOURCES = \
|
|
||||||
distroquery.c \
|
|
||||||
functions.c \
|
|
||||||
headerlist.c \
|
|
||||||
requirelist.c \
|
|
||||||
rpmfunctions.c \
|
|
||||||
changelog.c
|
|
||||||
|
|
||||||
SUBDIRS = include missing
|
|
@ -1,28 +0,0 @@
|
|||||||
# This file is part of `distromatic', the tool for RPM based repositories
|
|
||||||
# Copyright (C) 2006 Davide Madrisan <davide.madrisan@gmail.com>
|
|
||||||
# Copyright (C) 2007 Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify it under
|
|
||||||
# the terms of version 2 of the GNU General Public License as published by the
|
|
||||||
# Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY, to the extent permitted by law; without even the implied
|
|
||||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
# See the GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
backend-sqlite3.h \
|
|
||||||
buildtools.h \
|
|
||||||
changelog.h \
|
|
||||||
distromatic.h \
|
|
||||||
globaldefs.h.in \
|
|
||||||
functions.h \
|
|
||||||
reports.h \
|
|
||||||
headerlist.h \
|
|
||||||
requirelist.h \
|
|
||||||
rpmfunctions.h
|
|
@ -1,22 +0,0 @@
|
|||||||
# This file is part of `distromatic', the QiLinux RPM tool for the distribution
|
|
||||||
# Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify it under
|
|
||||||
# the terms of version 2 of the GNU General Public License as published by the
|
|
||||||
# Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY, to the extent permitted by law; without even the implied
|
|
||||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
# See the GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
# config.h is in `$(top_builddir)'
|
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/src/include \
|
|
||||||
-I$(top_builddir)/src/include \
|
|
||||||
-I$(top_builddir)
|
|
||||||
|
|
||||||
EXTRA_DIST = malloc.c
|
|
@ -1,35 +0,0 @@
|
|||||||
/* This file is part of `distromatic', the QiLinux RPM tool for the distribution.
|
|
||||||
* Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of version 2 of the GNU General Public License as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY, to the extent permitted by law; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
* See the GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
|
||||||
#endif
|
|
||||||
#undef malloc
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
void *malloc(size_t size);
|
|
||||||
void *rpl_malloc(size_t size);
|
|
||||||
|
|
||||||
/* allocate an size-byte block of memory from the heap;
|
|
||||||
* if size is zero, allocate a 1-byte block
|
|
||||||
*/
|
|
||||||
void *
|
|
||||||
rpl_malloc(size_t size)
|
|
||||||
{
|
|
||||||
return malloc(size ? size : 1);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user