@@ -1,8 +1,9 @@ | |||||
# Makefile.in generated by automake 1.9.6 from Makefile.am. | |||||
# Makefile.in generated by automake 1.11.6 from Makefile.am. | |||||
# @configure_input@ | # @configure_input@ | ||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||||
# 2003, 2004, 2005 Free Software Foundation, Inc. | |||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |||||
# Foundation, Inc. | |||||
# This Makefile.in is free software; the Free Software Foundation | # This Makefile.in is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
@@ -17,15 +18,29 @@ | |||||
################################################## | ################################################## | ||||
# Makefile.am for nife project : upper directory # | # Makefile.am for nife project : upper directory # | ||||
################################################## | ################################################## | ||||
srcdir = @srcdir@ | |||||
top_srcdir = @top_srcdir@ | |||||
VPATH = @srcdir@ | VPATH = @srcdir@ | ||||
am__make_dryrun = \ | |||||
{ \ | |||||
am__dry=no; \ | |||||
case $$MAKEFLAGS in \ | |||||
*\\[\ \ ]*) \ | |||||
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |||||
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |||||
*) \ | |||||
for am__flg in $$MAKEFLAGS; do \ | |||||
case $$am__flg in \ | |||||
*=*|--*) ;; \ | |||||
*n*) am__dry=yes; break;; \ | |||||
esac; \ | |||||
done;; \ | |||||
esac; \ | |||||
test $$am__dry = yes; \ | |||||
} | |||||
pkgdatadir = $(datadir)/@PACKAGE@ | pkgdatadir = $(datadir)/@PACKAGE@ | ||||
pkglibdir = $(libdir)/@PACKAGE@ | |||||
pkgincludedir = $(includedir)/@PACKAGE@ | pkgincludedir = $(includedir)/@PACKAGE@ | ||||
top_builddir = . | |||||
pkglibdir = $(libdir)/@PACKAGE@ | |||||
pkglibexecdir = $(libexecdir)/@PACKAGE@ | |||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||||
INSTALL = @INSTALL@ | |||||
install_sh_DATA = $(install_sh) -c -m 644 | install_sh_DATA = $(install_sh) -c -m 644 | ||||
install_sh_PROGRAM = $(install_sh) -c | install_sh_PROGRAM = $(install_sh) -c | ||||
install_sh_SCRIPT = $(install_sh) -c | install_sh_SCRIPT = $(install_sh) -c | ||||
@@ -47,18 +62,30 @@ am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||||
$(ACLOCAL_M4) | $(ACLOCAL_M4) | ||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | ||||
configure.lineno configure.status.lineno | |||||
configure.lineno config.status.lineno | |||||
mkinstalldirs = $(install_sh) -d | mkinstalldirs = $(install_sh) -d | ||||
CONFIG_HEADER = config.h | CONFIG_HEADER = config.h | ||||
CONFIG_CLEAN_FILES = | CONFIG_CLEAN_FILES = | ||||
CONFIG_CLEAN_VPATH_FILES = | |||||
SOURCES = | SOURCES = | ||||
DIST_SOURCES = | DIST_SOURCES = | ||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | ||||
html-recursive info-recursive install-data-recursive \ | html-recursive info-recursive install-data-recursive \ | ||||
install-exec-recursive install-info-recursive \ | |||||
install-recursive installcheck-recursive installdirs-recursive \ | |||||
pdf-recursive ps-recursive uninstall-info-recursive \ | |||||
uninstall-recursive | |||||
install-dvi-recursive install-exec-recursive \ | |||||
install-html-recursive install-info-recursive \ | |||||
install-pdf-recursive install-ps-recursive install-recursive \ | |||||
installcheck-recursive installdirs-recursive pdf-recursive \ | |||||
ps-recursive uninstall-recursive | |||||
am__can_run_installinfo = \ | |||||
case $$AM_UPDATE_INFO_DIR in \ | |||||
n|no|NO) false;; \ | |||||
*) (install-info --version) >/dev/null 2>&1;; \ | |||||
esac | |||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | |||||
distclean-recursive maintainer-clean-recursive | |||||
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |||||
$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |||||
distdir dist dist-all distcheck | |||||
ETAGS = etags | ETAGS = etags | ||||
CTAGS = ctags | CTAGS = ctags | ||||
DIST_SUBDIRS = $(SUBDIRS) | DIST_SUBDIRS = $(SUBDIRS) | ||||
@@ -66,16 +93,43 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |||||
distdir = $(PACKAGE)-$(VERSION) | distdir = $(PACKAGE)-$(VERSION) | ||||
top_distdir = $(distdir) | top_distdir = $(distdir) | ||||
am__remove_distdir = \ | am__remove_distdir = \ | ||||
{ test ! -d $(distdir) \ | |||||
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ | |||||
&& rm -fr $(distdir); }; } | |||||
if test -d "$(distdir)"; then \ | |||||
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |||||
&& rm -rf "$(distdir)" \ | |||||
|| { sleep 5 && rm -rf "$(distdir)"; }; \ | |||||
else :; fi | |||||
am__relativize = \ | |||||
dir0=`pwd`; \ | |||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | |||||
sed_rest='s,^[^/]*/*,,'; \ | |||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | |||||
sed_butlast='s,/*[^/]*$$,,'; \ | |||||
while test -n "$$dir1"; do \ | |||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | |||||
if test "$$first" != "."; then \ | |||||
if test "$$first" = ".."; then \ | |||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | |||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | |||||
else \ | |||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | |||||
if test "$$first2" = "$$first"; then \ | |||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | |||||
else \ | |||||
dir2="../$$dir2"; \ | |||||
fi; \ | |||||
dir0="$$dir0"/"$$first"; \ | |||||
fi; \ | |||||
fi; \ | |||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | |||||
done; \ | |||||
reldir="$$dir2" | |||||
DIST_ARCHIVES = $(distdir).tar.gz | DIST_ARCHIVES = $(distdir).tar.gz | ||||
GZIP_ENV = --best | GZIP_ENV = --best | ||||
distuninstallcheck_listfiles = find . -type f -print | distuninstallcheck_listfiles = find . -type f -print | ||||
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | |||||
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' | |||||
distcleancheck_listfiles = find . -type f -print | distcleancheck_listfiles = find . -type f -print | ||||
ACLOCAL = @ACLOCAL@ | ACLOCAL = @ACLOCAL@ | ||||
AMDEP_FALSE = @AMDEP_FALSE@ | |||||
AMDEP_TRUE = @AMDEP_TRUE@ | |||||
AMTAR = @AMTAR@ | AMTAR = @AMTAR@ | ||||
AUTOCONF = @AUTOCONF@ | AUTOCONF = @AUTOCONF@ | ||||
AUTOHEADER = @AUTOHEADER@ | AUTOHEADER = @AUTOHEADER@ | ||||
@@ -95,6 +149,7 @@ ECHO_T = @ECHO_T@ | |||||
EGREP = @EGREP@ | EGREP = @EGREP@ | ||||
EXEEXT = @EXEEXT@ | EXEEXT = @EXEEXT@ | ||||
GREP = @GREP@ | GREP = @GREP@ | ||||
INSTALL = @INSTALL@ | |||||
INSTALL_DATA = @INSTALL_DATA@ | INSTALL_DATA = @INSTALL_DATA@ | ||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@ | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||||
@@ -104,6 +159,7 @@ LIBOBJS = @LIBOBJS@ | |||||
LIBS = @LIBS@ | LIBS = @LIBS@ | ||||
LTLIBOBJS = @LTLIBOBJS@ | LTLIBOBJS = @LTLIBOBJS@ | ||||
MAKEINFO = @MAKEINFO@ | MAKEINFO = @MAKEINFO@ | ||||
MKDIR_P = @MKDIR_P@ | |||||
OBJEXT = @OBJEXT@ | OBJEXT = @OBJEXT@ | ||||
PACKAGE = @PACKAGE@ | PACKAGE = @PACKAGE@ | ||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||||
@@ -118,9 +174,11 @@ SET_MAKE = @SET_MAKE@ | |||||
SHELL = @SHELL@ | SHELL = @SHELL@ | ||||
STRIP = @STRIP@ | STRIP = @STRIP@ | ||||
VERSION = @VERSION@ | VERSION = @VERSION@ | ||||
abs_builddir = @abs_builddir@ | |||||
abs_srcdir = @abs_srcdir@ | |||||
abs_top_builddir = @abs_top_builddir@ | |||||
abs_top_srcdir = @abs_top_srcdir@ | |||||
ac_ct_CC = @ac_ct_CC@ | ac_ct_CC = @ac_ct_CC@ | ||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | |||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | |||||
am__include = @am__include@ | am__include = @am__include@ | ||||
am__leading_dot = @am__leading_dot@ | am__leading_dot = @am__leading_dot@ | ||||
am__quote = @am__quote@ | am__quote = @am__quote@ | ||||
@@ -128,6 +186,7 @@ am__tar = @am__tar@ | |||||
am__untar = @am__untar@ | am__untar = @am__untar@ | ||||
bindir = @bindir@ | bindir = @bindir@ | ||||
build_alias = @build_alias@ | build_alias = @build_alias@ | ||||
builddir = @builddir@ | |||||
datadir = @datadir@ | datadir = @datadir@ | ||||
datarootdir = @datarootdir@ | datarootdir = @datarootdir@ | ||||
docdir = @docdir@ | docdir = @docdir@ | ||||
@@ -151,29 +210,33 @@ program_transform_name = @program_transform_name@ | |||||
psdir = @psdir@ | psdir = @psdir@ | ||||
sbindir = @sbindir@ | sbindir = @sbindir@ | ||||
sharedstatedir = @sharedstatedir@ | sharedstatedir = @sharedstatedir@ | ||||
srcdir = @srcdir@ | |||||
sysconfdir = @sysconfdir@ | sysconfdir = @sysconfdir@ | ||||
target_alias = @target_alias@ | target_alias = @target_alias@ | ||||
top_build_prefix = @top_build_prefix@ | |||||
top_builddir = @top_builddir@ | |||||
top_srcdir = @top_srcdir@ | |||||
EXTRA_DIST = src/nife.hlp src/test.sh src/benchm.nif src/ex src/i2cbusses.c src/i2cbusses.h | EXTRA_DIST = src/nife.hlp src/test.sh src/benchm.nif src/ex src/i2cbusses.c src/i2cbusses.h | ||||
SUBDIRS = src | SUBDIRS = src | ||||
all: config.h | all: config.h | ||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive | $(MAKE) $(AM_MAKEFLAGS) all-recursive | ||||
.SUFFIXES: | .SUFFIXES: | ||||
am--refresh: | |||||
am--refresh: Makefile | |||||
@: | @: | ||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||||
@for dep in $?; do \ | @for dep in $?; do \ | ||||
case '$(am__configure_deps)' in \ | case '$(am__configure_deps)' in \ | ||||
*$$dep*) \ | *$$dep*) \ | ||||
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ | |||||
cd $(srcdir) && $(AUTOMAKE) --gnu \ | |||||
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ | |||||
$(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ | |||||
&& exit 0; \ | && exit 0; \ | ||||
exit 1;; \ | exit 1;; \ | ||||
esac; \ | esac; \ | ||||
done; \ | done; \ | ||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |||||
cd $(top_srcdir) && \ | |||||
$(AUTOMAKE) --gnu Makefile | |||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |||||
$(am__cd) $(top_srcdir) && \ | |||||
$(AUTOMAKE) --gnu Makefile | |||||
.PRECIOUS: Makefile | .PRECIOUS: Makefile | ||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||||
@case '$?' in \ | @case '$?' in \ | ||||
@@ -189,27 +252,25 @@ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENC | |||||
$(SHELL) ./config.status --recheck | $(SHELL) ./config.status --recheck | ||||
$(top_srcdir)/configure: $(am__configure_deps) | $(top_srcdir)/configure: $(am__configure_deps) | ||||
cd $(srcdir) && $(AUTOCONF) | |||||
$(am__cd) $(srcdir) && $(AUTOCONF) | |||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps) | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||||
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |||||
$(am__aclocal_m4_deps): | |||||
config.h: stamp-h1 | config.h: stamp-h1 | ||||
@if test ! -f $@; then \ | |||||
rm -f stamp-h1; \ | |||||
$(MAKE) stamp-h1; \ | |||||
else :; fi | |||||
@if test ! -f $@; then rm -f stamp-h1; else :; fi | |||||
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi | |||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | ||||
@rm -f stamp-h1 | @rm -f stamp-h1 | ||||
cd $(top_builddir) && $(SHELL) ./config.status config.h | cd $(top_builddir) && $(SHELL) ./config.status config.h | ||||
$(srcdir)/config.h.in: $(am__configure_deps) | $(srcdir)/config.h.in: $(am__configure_deps) | ||||
cd $(top_srcdir) && $(AUTOHEADER) | |||||
($(am__cd) $(top_srcdir) && $(AUTOHEADER)) | |||||
rm -f stamp-h1 | rm -f stamp-h1 | ||||
touch $@ | touch $@ | ||||
distclean-hdr: | distclean-hdr: | ||||
-rm -f config.h stamp-h1 | -rm -f config.h stamp-h1 | ||||
uninstall-info-am: | |||||
# This directory's subdirectories are mostly independent; you can cd | # This directory's subdirectories are mostly independent; you can cd | ||||
# into them and run `make' without going through this Makefile. | # into them and run `make' without going through this Makefile. | ||||
@@ -218,7 +279,7 @@ uninstall-info-am: | |||||
# (which will cause the Makefiles to be regenerated when you run `make'); | # (which will cause the Makefiles to be regenerated when you run `make'); | ||||
# (2) otherwise, pass the desired values on the `make' command line. | # (2) otherwise, pass the desired values on the `make' command line. | ||||
$(RECURSIVE_TARGETS): | $(RECURSIVE_TARGETS): | ||||
@failcom='exit 1'; \ | |||||
@fail= failcom='exit 1'; \ | |||||
for f in x $$MAKEFLAGS; do \ | for f in x $$MAKEFLAGS; do \ | ||||
case $$f in \ | case $$f in \ | ||||
*=* | --[!k]*);; \ | *=* | --[!k]*);; \ | ||||
@@ -235,16 +296,15 @@ $(RECURSIVE_TARGETS): | |||||
else \ | else \ | ||||
local_target="$$target"; \ | local_target="$$target"; \ | ||||
fi; \ | fi; \ | ||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |||||
|| eval $$failcom; \ | || eval $$failcom; \ | ||||
done; \ | done; \ | ||||
if test "$$dot_seen" = "no"; then \ | if test "$$dot_seen" = "no"; then \ | ||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | ||||
fi; test -z "$$fail" | fi; test -z "$$fail" | ||||
mostlyclean-recursive clean-recursive distclean-recursive \ | |||||
maintainer-clean-recursive: | |||||
@failcom='exit 1'; \ | |||||
$(RECURSIVE_CLEAN_TARGETS): | |||||
@fail= failcom='exit 1'; \ | |||||
for f in x $$MAKEFLAGS; do \ | for f in x $$MAKEFLAGS; do \ | ||||
case $$f in \ | case $$f in \ | ||||
*=* | --[!k]*);; \ | *=* | --[!k]*);; \ | ||||
@@ -270,16 +330,16 @@ maintainer-clean-recursive: | |||||
else \ | else \ | ||||
local_target="$$target"; \ | local_target="$$target"; \ | ||||
fi; \ | fi; \ | ||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |||||
|| eval $$failcom; \ | || eval $$failcom; \ | ||||
done && test -z "$$fail" | done && test -z "$$fail" | ||||
tags-recursive: | tags-recursive: | ||||
list='$(SUBDIRS)'; for subdir in $$list; do \ | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |||||
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |||||
done | done | ||||
ctags-recursive: | ctags-recursive: | ||||
list='$(SUBDIRS)'; for subdir in $$list; do \ | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |||||
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |||||
done | done | ||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||||
@@ -287,14 +347,14 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |||||
unique=`for i in $$list; do \ | unique=`for i in $$list; do \ | ||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||||
done | \ | done | \ | ||||
$(AWK) ' { files[$$0] = 1; } \ | |||||
END { for (i in files) print i; }'`; \ | |||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |||||
END { if (nonempty) { for (i in files) print i; }; }'`; \ | |||||
mkid -fID $$unique | mkid -fID $$unique | ||||
tags: TAGS | tags: TAGS | ||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | ||||
$(TAGS_FILES) $(LISP) | $(TAGS_FILES) $(LISP) | ||||
tags=; \ | |||||
set x; \ | |||||
here=`pwd`; \ | here=`pwd`; \ | ||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | ||||
include_option=--etags-include; \ | include_option=--etags-include; \ | ||||
@@ -306,100 +366,129 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |||||
list='$(SUBDIRS)'; for subdir in $$list; do \ | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||||
if test "$$subdir" = .; then :; else \ | if test "$$subdir" = .; then :; else \ | ||||
test ! -f $$subdir/TAGS || \ | test ! -f $$subdir/TAGS || \ | ||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ | |||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | |||||
fi; \ | fi; \ | ||||
done; \ | done; \ | ||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | ||||
unique=`for i in $$list; do \ | unique=`for i in $$list; do \ | ||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||||
done | \ | done | \ | ||||
$(AWK) ' { files[$$0] = 1; } \ | |||||
END { for (i in files) print i; }'`; \ | |||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | |||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |||||
END { if (nonempty) { for (i in files) print i; }; }'`; \ | |||||
shift; \ | |||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |||||
test -n "$$unique" || unique=$$empty_fix; \ | test -n "$$unique" || unique=$$empty_fix; \ | ||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |||||
$$tags $$unique; \ | |||||
if test $$# -gt 0; then \ | |||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |||||
"$$@" $$unique; \ | |||||
else \ | |||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |||||
$$unique; \ | |||||
fi; \ | |||||
fi | fi | ||||
ctags: CTAGS | ctags: CTAGS | ||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | ||||
$(TAGS_FILES) $(LISP) | $(TAGS_FILES) $(LISP) | ||||
tags=; \ | |||||
here=`pwd`; \ | |||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | ||||
unique=`for i in $$list; do \ | unique=`for i in $$list; do \ | ||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||||
done | \ | done | \ | ||||
$(AWK) ' { files[$$0] = 1; } \ | |||||
END { for (i in files) print i; }'`; \ | |||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \ | |||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |||||
END { if (nonempty) { for (i in files) print i; }; }'`; \ | |||||
test -z "$(CTAGS_ARGS)$$unique" \ | |||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||||
$$tags $$unique | |||||
$$unique | |||||
GTAGS: | GTAGS: | ||||
here=`$(am__cd) $(top_builddir) && pwd` \ | here=`$(am__cd) $(top_builddir) && pwd` \ | ||||
&& cd $(top_srcdir) \ | |||||
&& gtags -i $(GTAGS_ARGS) $$here | |||||
&& $(am__cd) $(top_srcdir) \ | |||||
&& gtags -i $(GTAGS_ARGS) "$$here" | |||||
distclean-tags: | distclean-tags: | ||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||||
distdir: $(DISTFILES) | distdir: $(DISTFILES) | ||||
$(am__remove_distdir) | $(am__remove_distdir) | ||||
mkdir $(distdir) | |||||
$(mkdir_p) $(distdir)/src | |||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | |||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | |||||
list='$(DISTFILES)'; for file in $$list; do \ | |||||
case $$file in \ | |||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | |||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | |||||
esac; \ | |||||
test -d "$(distdir)" || mkdir "$(distdir)" | |||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |||||
list='$(DISTFILES)'; \ | |||||
dist_files=`for file in $$list; do echo $$file; done | \ | |||||
sed -e "s|^$$srcdirstrip/||;t" \ | |||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |||||
case $$dist_files in \ | |||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \ | |||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |||||
sort -u` ;; \ | |||||
esac; \ | |||||
for file in $$dist_files; do \ | |||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | |||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | |||||
dir="/$$dir"; \ | |||||
$(mkdir_p) "$(distdir)$$dir"; \ | |||||
else \ | |||||
dir=''; \ | |||||
fi; \ | |||||
if test -d $$d/$$file; then \ | if test -d $$d/$$file; then \ | ||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |||||
if test -d "$(distdir)/$$file"; then \ | |||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |||||
fi; \ | |||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | |||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |||||
fi; \ | fi; \ | ||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | |||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |||||
else \ | else \ | ||||
test -f $(distdir)/$$file \ | |||||
|| cp -p $$d/$$file $(distdir)/$$file \ | |||||
test -f "$(distdir)/$$file" \ | |||||
|| cp -p $$d/$$file "$(distdir)/$$file" \ | |||||
|| exit 1; \ | || exit 1; \ | ||||
fi; \ | fi; \ | ||||
done | done | ||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |||||
if test "$$subdir" = .; then :; else \ | if test "$$subdir" = .; then :; else \ | ||||
test -d "$(distdir)/$$subdir" \ | |||||
|| $(mkdir_p) "$(distdir)/$$subdir" \ | |||||
|| exit 1; \ | |||||
distdir=`$(am__cd) $(distdir) && pwd`; \ | |||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ | |||||
(cd $$subdir && \ | |||||
$(am__make_dryrun) \ | |||||
|| test -d "$(distdir)/$$subdir" \ | |||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \ | |||||
|| exit 1; \ | |||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | |||||
$(am__relativize); \ | |||||
new_distdir=$$reldir; \ | |||||
dir1=$$subdir; dir2="$(top_distdir)"; \ | |||||
$(am__relativize); \ | |||||
new_top_distdir=$$reldir; \ | |||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | |||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | |||||
($(am__cd) $$subdir && \ | |||||
$(MAKE) $(AM_MAKEFLAGS) \ | $(MAKE) $(AM_MAKEFLAGS) \ | ||||
top_distdir="$$top_distdir" \ | |||||
distdir="$$distdir/$$subdir" \ | |||||
top_distdir="$$new_top_distdir" \ | |||||
distdir="$$new_distdir" \ | |||||
am__remove_distdir=: \ | |||||
am__skip_length_check=: \ | |||||
am__skip_mode_fix=: \ | |||||
distdir) \ | distdir) \ | ||||
|| exit 1; \ | || exit 1; \ | ||||
fi; \ | fi; \ | ||||
done | done | ||||
-find "$(distdir)" -type d ! -perm -755 \ | |||||
-test -n "$(am__skip_mode_fix)" \ | |||||
|| find "$(distdir)" -type d ! -perm -755 \ | |||||
-exec chmod u+rwx,go+rx {} \; -o \ | -exec chmod u+rwx,go+rx {} \; -o \ | ||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | ||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | ||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ | |||||
|| chmod -R a+r $(distdir) | |||||
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |||||
|| chmod -R a+r "$(distdir)" | |||||
dist-gzip: distdir | dist-gzip: distdir | ||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | ||||
$(am__remove_distdir) | $(am__remove_distdir) | ||||
dist-bzip2: distdir | dist-bzip2: distdir | ||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |||||
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 | |||||
$(am__remove_distdir) | |||||
dist-lzip: distdir | |||||
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz | |||||
$(am__remove_distdir) | |||||
dist-lzma: distdir | |||||
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | |||||
$(am__remove_distdir) | |||||
dist-xz: distdir | |||||
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz | |||||
$(am__remove_distdir) | $(am__remove_distdir) | ||||
dist-tarZ: distdir | dist-tarZ: distdir | ||||
@@ -425,24 +514,33 @@ dist dist-all: distdir | |||||
distcheck: dist | distcheck: dist | ||||
case '$(DIST_ARCHIVES)' in \ | case '$(DIST_ARCHIVES)' in \ | ||||
*.tar.gz*) \ | *.tar.gz*) \ | ||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ | |||||
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |||||
*.tar.bz2*) \ | *.tar.bz2*) \ | ||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ | |||||
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ | |||||
*.tar.lzma*) \ | |||||
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ | |||||
*.tar.lz*) \ | |||||
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ | |||||
*.tar.xz*) \ | |||||
xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | |||||
*.tar.Z*) \ | *.tar.Z*) \ | ||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | ||||
*.shar.gz*) \ | *.shar.gz*) \ | ||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ | |||||
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |||||
*.zip*) \ | *.zip*) \ | ||||
unzip $(distdir).zip ;;\ | unzip $(distdir).zip ;;\ | ||||
esac | esac | ||||
chmod -R a-w $(distdir); chmod a+w $(distdir) | |||||
chmod -R a-w $(distdir); chmod u+w $(distdir) | |||||
mkdir $(distdir)/_build | mkdir $(distdir)/_build | ||||
mkdir $(distdir)/_inst | mkdir $(distdir)/_inst | ||||
chmod a-w $(distdir) | chmod a-w $(distdir) | ||||
test -d $(distdir)/_build || exit 0; \ | |||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | ||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | ||||
&& cd $(distdir)/_build \ | |||||
&& am__cwd=`pwd` \ | |||||
&& $(am__cd) $(distdir)/_build \ | |||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \ | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | ||||
$(AM_DISTCHECK_CONFIGURE_FLAGS) \ | |||||
$(DISTCHECK_CONFIGURE_FLAGS) \ | $(DISTCHECK_CONFIGURE_FLAGS) \ | ||||
&& $(MAKE) $(AM_MAKEFLAGS) \ | && $(MAKE) $(AM_MAKEFLAGS) \ | ||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \ | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | ||||
@@ -463,14 +561,24 @@ distcheck: dist | |||||
&& rm -rf "$$dc_destdir" \ | && rm -rf "$$dc_destdir" \ | ||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \ | && $(MAKE) $(AM_MAKEFLAGS) dist \ | ||||
&& rm -rf $(DIST_ARCHIVES) \ | && rm -rf $(DIST_ARCHIVES) \ | ||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck | |||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ | |||||
&& cd "$$am__cwd" \ | |||||
|| exit 1 | |||||
$(am__remove_distdir) | $(am__remove_distdir) | ||||
@(echo "$(distdir) archives ready for distribution: "; \ | @(echo "$(distdir) archives ready for distribution: "; \ | ||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | ||||
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' | |||||
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |||||
distuninstallcheck: | distuninstallcheck: | ||||
@cd $(distuninstallcheck_dir) \ | |||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | |||||
@test -n '$(distuninstallcheck_dir)' || { \ | |||||
echo 'ERROR: trying to run $@ with an empty' \ | |||||
'$$(distuninstallcheck_dir)' >&2; \ | |||||
exit 1; \ | |||||
}; \ | |||||
$(am__cd) '$(distuninstallcheck_dir)' || { \ | |||||
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ | |||||
exit 1; \ | |||||
}; \ | |||||
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ | |||||
|| { echo "ERROR: files left after uninstall:" ; \ | || { echo "ERROR: files left after uninstall:" ; \ | ||||
if test -n "$(DESTDIR)"; then \ | if test -n "$(DESTDIR)"; then \ | ||||
echo " (check DESTDIR support)"; \ | echo " (check DESTDIR support)"; \ | ||||
@@ -501,16 +609,22 @@ install-am: all-am | |||||
installcheck: installcheck-recursive | installcheck: installcheck-recursive | ||||
install-strip: | install-strip: | ||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |||||
`test -z '$(STRIP)' || \ | |||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |||||
if test -z '$(STRIP)'; then \ | |||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |||||
install; \ | |||||
else \ | |||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |||||
fi | |||||
mostlyclean-generic: | mostlyclean-generic: | ||||
clean-generic: | clean-generic: | ||||
distclean-generic: | distclean-generic: | ||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |||||
maintainer-clean-generic: | maintainer-clean-generic: | ||||
@echo "This command is intended for maintainers to use" | @echo "This command is intended for maintainers to use" | ||||
@@ -530,18 +644,38 @@ dvi-am: | |||||
html: html-recursive | html: html-recursive | ||||
html-am: | |||||
info: info-recursive | info: info-recursive | ||||
info-am: | info-am: | ||||
install-data-am: | install-data-am: | ||||
install-dvi: install-dvi-recursive | |||||
install-dvi-am: | |||||
install-exec-am: | install-exec-am: | ||||
install-html: install-html-recursive | |||||
install-html-am: | |||||
install-info: install-info-recursive | install-info: install-info-recursive | ||||
install-info-am: | |||||
install-man: | install-man: | ||||
install-pdf: install-pdf-recursive | |||||
install-pdf-am: | |||||
install-ps: install-ps-recursive | |||||
install-ps-am: | |||||
installcheck-am: | installcheck-am: | ||||
maintainer-clean: maintainer-clean-recursive | maintainer-clean: maintainer-clean-recursive | ||||
@@ -562,24 +696,27 @@ ps: ps-recursive | |||||
ps-am: | ps-am: | ||||
uninstall-am: uninstall-info-am | |||||
uninstall-info: uninstall-info-recursive | |||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ | |||||
check-am clean clean-generic clean-recursive ctags \ | |||||
ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \ | |||||
dist-tarZ dist-zip distcheck distclean distclean-generic \ | |||||
distclean-hdr distclean-recursive distclean-tags \ | |||||
distcleancheck distdir distuninstallcheck dvi dvi-am html \ | |||||
html-am info info-am install install-am install-data \ | |||||
install-data-am install-exec install-exec-am install-info \ | |||||
install-info-am install-man install-strip installcheck \ | |||||
installcheck-am installdirs installdirs-am maintainer-clean \ | |||||
maintainer-clean-generic maintainer-clean-recursive \ | |||||
mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ | |||||
pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ | |||||
uninstall-info-am | |||||
uninstall-am: | |||||
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ | |||||
ctags-recursive install-am install-strip tags-recursive | |||||
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |||||
all all-am am--refresh check check-am clean clean-generic \ | |||||
ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ | |||||
dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ | |||||
distcheck distclean distclean-generic distclean-hdr \ | |||||
distclean-tags distcleancheck distdir distuninstallcheck dvi \ | |||||
dvi-am html html-am info info-am install install-am \ | |||||
install-data install-data-am install-dvi install-dvi-am \ | |||||
install-exec install-exec-am install-html install-html-am \ | |||||
install-info install-info-am install-man install-pdf \ | |||||
install-pdf-am install-ps install-ps-am install-strip \ | |||||
installcheck installcheck-am installdirs installdirs-am \ | |||||
maintainer-clean maintainer-clean-generic mostlyclean \ | |||||
mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ | |||||
uninstall uninstall-am | |||||
# Tell versions [3.59,3.63) of GNU make to not export all variables. | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||||
# Otherwise a system limit (for SysV at least) may be exceeded. | # Otherwise a system limit (for SysV at least) may be exceeded. | ||||
@@ -1,5 +1,22 @@ | |||||
History of Nife releases : | History of Nife releases : | ||||
2014-06-27 - Nife 0.49 is released. | |||||
* Add DEC, HEX, OCT and BIN functions to define the print mode for the | |||||
integers. The default is decimal. | |||||
* Modify signals comportment to accept interrupt from terminal to stop | |||||
execution in the main (interactive) task. | |||||
* Fixed an error in the case of the end: label is before the onerr: one. | |||||
* Fixed a bug when a signal "segmentation violation" is catched. | |||||
* Add some help facilities suggested by Alain Empain, until his tools | |||||
are efficient in Nife. | |||||
* Beginning the functions dump and restore with definition of the NBLF, | |||||
Nife Binary Linkable Format (just for a Request for Comments ;-). | |||||
* The installation has been tested by Gaetan Angely on three ARM SBCs: | |||||
Raspberry Pi, Beaglebone Black, ODROID-U3 with Arch Linux ARM. | |||||
All information about Arch Linux ARM at http://archlinuxarm.org/. | |||||
He have compared with two Intel processors and have published a | |||||
benchmak on the two mailing lists. | |||||
2014-05-10 - Nife 0.47 is released. | 2014-05-10 - Nife 0.47 is released. | ||||
* Beginning an I2C interface for Linux systems, inspired by the Linux | * Beginning an I2C interface for Linux systems, inspired by the Linux | ||||
package i2c-tools. | package i2c-tools. | ||||
@@ -1,7 +1,8 @@ | |||||
# generated automatically by aclocal 1.9.6 -*- Autoconf -*- | |||||
# generated automatically by aclocal 1.11.6 -*- Autoconf -*- | |||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | ||||
# 2005 Free Software Foundation, Inc. | |||||
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, | |||||
# Inc. | |||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
@@ -11,33 +12,63 @@ | |||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||||
# PARTICULAR PURPOSE. | # PARTICULAR PURPOSE. | ||||
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. | |||||
m4_ifndef([AC_AUTOCONF_VERSION], | |||||
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |||||
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |||||
[m4_warning([this file was generated for autoconf 2.69. | |||||
You have another version of autoconf. It may work, but is not guaranteed to. | |||||
If you have problems, you may need to regenerate the build system entirely. | |||||
To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |||||
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software | |||||
# Foundation, Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 1 | |||||
# AM_AUTOMAKE_VERSION(VERSION) | # AM_AUTOMAKE_VERSION(VERSION) | ||||
# ---------------------------- | # ---------------------------- | ||||
# Automake X.Y traces this macro to ensure aclocal.m4 has been | # Automake X.Y traces this macro to ensure aclocal.m4 has been | ||||
# generated from the m4 files accompanying Automake X.Y. | # generated from the m4 files accompanying Automake X.Y. | ||||
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) | |||||
# (This private macro should not be called outside this file.) | |||||
AC_DEFUN([AM_AUTOMAKE_VERSION], | |||||
[am__api_version='1.11' | |||||
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |||||
dnl require some minimum version. Point them to the right macro. | |||||
m4_if([$1], [1.11.6], [], | |||||
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |||||
]) | |||||
# _AM_AUTOCONF_VERSION(VERSION) | |||||
# ----------------------------- | |||||
# aclocal traces this macro to find the Autoconf version. | |||||
# This is a private macro too. Using m4_define simplifies | |||||
# the logic in aclocal, which can simply ignore this definition. | |||||
m4_define([_AM_AUTOCONF_VERSION], []) | |||||
# AM_SET_CURRENT_AUTOMAKE_VERSION | # AM_SET_CURRENT_AUTOMAKE_VERSION | ||||
# ------------------------------- | # ------------------------------- | ||||
# Call AM_AUTOMAKE_VERSION so it can be traced. | |||||
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | |||||
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |||||
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | ||||
[AM_AUTOMAKE_VERSION([1.9.6])]) | |||||
[AM_AUTOMAKE_VERSION([1.11.6])dnl | |||||
m4_ifndef([AC_AUTOCONF_VERSION], | |||||
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |||||
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |||||
# AM_AUX_DIR_EXPAND -*- Autoconf -*- | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | ||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |||||
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 1 | |||||
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | ||||
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | ||||
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | ||||
@@ -85,14 +116,14 @@ am_aux_dir=`cd $ac_aux_dir && pwd` | |||||
# AM_CONDITIONAL -*- Autoconf -*- | # AM_CONDITIONAL -*- Autoconf -*- | ||||
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 | |||||
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |||||
# Free Software Foundation, Inc. | # Free Software Foundation, Inc. | ||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 7 | |||||
# serial 9 | |||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION) | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | ||||
# ------------------------------------- | # ------------------------------------- | ||||
@@ -101,8 +132,11 @@ AC_DEFUN([AM_CONDITIONAL], | |||||
[AC_PREREQ(2.52)dnl | [AC_PREREQ(2.52)dnl | ||||
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | ||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | ||||
AC_SUBST([$1_TRUE]) | |||||
AC_SUBST([$1_FALSE]) | |||||
AC_SUBST([$1_TRUE])dnl | |||||
AC_SUBST([$1_FALSE])dnl | |||||
_AM_SUBST_NOTMAKE([$1_TRUE])dnl | |||||
_AM_SUBST_NOTMAKE([$1_FALSE])dnl | |||||
m4_define([_AM_COND_VALUE_$1], [$2])dnl | |||||
if $2; then | if $2; then | ||||
$1_TRUE= | $1_TRUE= | ||||
$1_FALSE='#' | $1_FALSE='#' | ||||
@@ -116,15 +150,14 @@ AC_CONFIG_COMMANDS_PRE( | |||||
Usually this means the macro was only invoked conditionally.]]) | Usually this means the macro was only invoked conditionally.]]) | ||||
fi])]) | fi])]) | ||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 | |||||
# Free Software Foundation, Inc. | |||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, | |||||
# 2010, 2011 Free Software Foundation, Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 8 | |||||
# serial 12 | |||||
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | ||||
# written in clear, in which case automake, when reading aclocal.m4, | # written in clear, in which case automake, when reading aclocal.m4, | ||||
@@ -152,6 +185,7 @@ AC_REQUIRE([AM_DEP_TRACK])dnl | |||||
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | ||||
[$1], CXX, [depcc="$CXX" am_compiler_list=], | [$1], CXX, [depcc="$CXX" am_compiler_list=], | ||||
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | ||||
[$1], UPC, [depcc="$UPC" am_compiler_list=], | |||||
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | ||||
[depcc="$$1" am_compiler_list=]) | [depcc="$$1" am_compiler_list=]) | ||||
@@ -163,6 +197,7 @@ AC_CACHE_CHECK([dependency style of $depcc], | |||||
# instance it was reported that on HP-UX the gcc test will end up | # instance it was reported that on HP-UX the gcc test will end up | ||||
# making a dummy file named `D' -- because `-MD' means `put the output | # making a dummy file named `D' -- because `-MD' means `put the output | ||||
# in D'. | # in D'. | ||||
rm -rf conftest.dir | |||||
mkdir conftest.dir | mkdir conftest.dir | ||||
# Copy depcomp to subdir because otherwise we won't find it if we're | # Copy depcomp to subdir because otherwise we won't find it if we're | ||||
# using a relative directory. | # using a relative directory. | ||||
@@ -180,6 +215,16 @@ AC_CACHE_CHECK([dependency style of $depcc], | |||||
if test "$am_compiler_list" = ""; then | if test "$am_compiler_list" = ""; then | ||||
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | ||||
fi | fi | ||||
am__universal=false | |||||
m4_case([$1], [CC], | |||||
[case " $depcc " in #( | |||||
*\ -arch\ *\ -arch\ *) am__universal=true ;; | |||||
esac], | |||||
[CXX], | |||||
[case " $depcc " in #( | |||||
*\ -arch\ *\ -arch\ *) am__universal=true ;; | |||||
esac]) | |||||
for depmode in $am_compiler_list; do | for depmode in $am_compiler_list; do | ||||
# Setup a source with many dependencies, because some compilers | # Setup a source with many dependencies, because some compilers | ||||
# like to wrap large dependency lists on column 80 (with \), and | # like to wrap large dependency lists on column 80 (with \), and | ||||
@@ -197,7 +242,17 @@ AC_CACHE_CHECK([dependency style of $depcc], | |||||
done | done | ||||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||||
# We check with `-c' and `-o' for the sake of the "dashmstdout" | |||||
# mode. It turns out that the SunPro C++ compiler does not properly | |||||
# handle `-M -o', and we need to detect this. Also, some Intel | |||||
# versions had trouble with output in subdirs | |||||
am__obj=sub/conftest.${OBJEXT-o} | |||||
am__minus_obj="-o $am__obj" | |||||
case $depmode in | case $depmode in | ||||
gcc) | |||||
# This depmode causes a compiler race in universal mode. | |||||
test "$am__universal" = false || continue | |||||
;; | |||||
nosideeffect) | nosideeffect) | ||||
# after this tag, mechanisms are not by side-effect, so they'll | # after this tag, mechanisms are not by side-effect, so they'll | ||||
# only be used when explicitly requested | # only be used when explicitly requested | ||||
@@ -207,18 +262,23 @@ AC_CACHE_CHECK([dependency style of $depcc], | |||||
break | break | ||||
fi | fi | ||||
;; | ;; | ||||
msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |||||
# This compiler won't grok `-c -o', but also, the minuso test has | |||||
# not run yet. These depmodes are late enough in the game, and | |||||
# so weak that their functioning should not be impacted. | |||||
am__obj=conftest.${OBJEXT-o} | |||||
am__minus_obj= | |||||
;; | |||||
none) break ;; | none) break ;; | ||||
esac | esac | ||||
# We check with `-c' and `-o' for the sake of the "dashmstdout" | |||||
# mode. It turns out that the SunPro C++ compiler does not properly | |||||
# handle `-M -o', and we need to detect this. | |||||
if depmode=$depmode \ | if depmode=$depmode \ | ||||
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |||||
source=sub/conftest.c object=$am__obj \ | |||||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||||
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |||||
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |||||
>/dev/null 2>conftest.err && | >/dev/null 2>conftest.err && | ||||
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |||||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||||
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |||||
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |||||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||||
# icc doesn't choke on unknown options, it will just issue warnings | # icc doesn't choke on unknown options, it will just issue warnings | ||||
# or remarks (even with -Werror). So we grep stderr for any message | # or remarks (even with -Werror). So we grep stderr for any message | ||||
@@ -267,63 +327,79 @@ AC_DEFUN([AM_DEP_TRACK], | |||||
if test "x$enable_dependency_tracking" != xno; then | if test "x$enable_dependency_tracking" != xno; then | ||||
am_depcomp="$ac_aux_dir/depcomp" | am_depcomp="$ac_aux_dir/depcomp" | ||||
AMDEPBACKSLASH='\' | AMDEPBACKSLASH='\' | ||||
am__nodep='_no' | |||||
fi | fi | ||||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | ||||
AC_SUBST([AMDEPBACKSLASH]) | |||||
AC_SUBST([AMDEPBACKSLASH])dnl | |||||
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |||||
AC_SUBST([am__nodep])dnl | |||||
_AM_SUBST_NOTMAKE([am__nodep])dnl | |||||
]) | ]) | ||||
# Generate code to set up dependency tracking. -*- Autoconf -*- | # Generate code to set up dependency tracking. -*- Autoconf -*- | ||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 | |||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |||||
# Free Software Foundation, Inc. | # Free Software Foundation, Inc. | ||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
#serial 3 | |||||
#serial 5 | |||||
# _AM_OUTPUT_DEPENDENCY_COMMANDS | # _AM_OUTPUT_DEPENDENCY_COMMANDS | ||||
# ------------------------------ | # ------------------------------ | ||||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | ||||
[for mf in $CONFIG_FILES; do | |||||
# Strip MF so we end up with the name of the file. | |||||
mf=`echo "$mf" | sed -e 's/:.*$//'` | |||||
# Check whether this is an Automake generated Makefile or not. | |||||
# We used to match only the files named `Makefile.in', but | |||||
# some people rename them; so instead we look at the file content. | |||||
# Grep'ing the first line is not enough: some people post-process | |||||
# each Makefile.in and add a new line on top of each file to say so. | |||||
# So let's grep whole file. | |||||
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |||||
dirpart=`AS_DIRNAME("$mf")` | |||||
else | |||||
continue | |||||
fi | |||||
# Extract the definition of DEPDIR, am__include, and am__quote | |||||
# from the Makefile without running `make'. | |||||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |||||
test -z "$DEPDIR" && continue | |||||
am__include=`sed -n 's/^am__include = //p' < "$mf"` | |||||
test -z "am__include" && continue | |||||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |||||
# When using ansi2knr, U may be empty or an underscore; expand it | |||||
U=`sed -n 's/^U = //p' < "$mf"` | |||||
# Find all dependency output files, they are included files with | |||||
# $(DEPDIR) in their names. We invoke sed twice because it is the | |||||
# simplest approach to changing $(DEPDIR) to its actual value in the | |||||
# expansion. | |||||
for file in `sed -n " | |||||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |||||
# Make sure the directory exists. | |||||
test -f "$dirpart/$file" && continue | |||||
fdir=`AS_DIRNAME(["$file"])` | |||||
AS_MKDIR_P([$dirpart/$fdir]) | |||||
# echo "creating $dirpart/$file" | |||||
echo '# dummy' > "$dirpart/$file" | |||||
[{ | |||||
# Autoconf 2.62 quotes --file arguments for eval, but not when files | |||||
# are listed without --file. Let's play safe and only enable the eval | |||||
# if we detect the quoting. | |||||
case $CONFIG_FILES in | |||||
*\'*) eval set x "$CONFIG_FILES" ;; | |||||
*) set x $CONFIG_FILES ;; | |||||
esac | |||||
shift | |||||
for mf | |||||
do | |||||
# Strip MF so we end up with the name of the file. | |||||
mf=`echo "$mf" | sed -e 's/:.*$//'` | |||||
# Check whether this is an Automake generated Makefile or not. | |||||
# We used to match only the files named `Makefile.in', but | |||||
# some people rename them; so instead we look at the file content. | |||||
# Grep'ing the first line is not enough: some people post-process | |||||
# each Makefile.in and add a new line on top of each file to say so. | |||||
# Grep'ing the whole file is not good either: AIX grep has a line | |||||
# limit of 2048, but all sed's we know have understand at least 4000. | |||||
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |||||
dirpart=`AS_DIRNAME("$mf")` | |||||
else | |||||
continue | |||||
fi | |||||
# Extract the definition of DEPDIR, am__include, and am__quote | |||||
# from the Makefile without running `make'. | |||||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |||||
test -z "$DEPDIR" && continue | |||||
am__include=`sed -n 's/^am__include = //p' < "$mf"` | |||||
test -z "am__include" && continue | |||||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |||||
# When using ansi2knr, U may be empty or an underscore; expand it | |||||
U=`sed -n 's/^U = //p' < "$mf"` | |||||
# Find all dependency output files, they are included files with | |||||
# $(DEPDIR) in their names. We invoke sed twice because it is the | |||||
# simplest approach to changing $(DEPDIR) to its actual value in the | |||||
# expansion. | |||||
for file in `sed -n " | |||||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |||||
# Make sure the directory exists. | |||||
test -f "$dirpart/$file" && continue | |||||
fdir=`AS_DIRNAME(["$file"])` | |||||
AS_MKDIR_P([$dirpart/$fdir]) | |||||
# echo "creating $dirpart/$file" | |||||
echo '# dummy' > "$dirpart/$file" | |||||
done | |||||
done | done | ||||
done | |||||
} | |||||
])# _AM_OUTPUT_DEPENDENCY_COMMANDS | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | ||||
@@ -342,14 +418,14 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |||||
# Do all the work for Automake. -*- Autoconf -*- | # Do all the work for Automake. -*- Autoconf -*- | ||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | |||||
# Free Software Foundation, Inc. | |||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |||||
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 12 | |||||
# serial 16 | |||||
# This macro actually does too much. Some checks are only needed if | # This macro actually does too much. Some checks are only needed if | ||||
# your package does certain things. But this isn't really a big deal. | # your package does certain things. But this isn't really a big deal. | ||||
@@ -366,16 +442,20 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |||||
# arguments mandatory, and then we can depend on a new Autoconf | # arguments mandatory, and then we can depend on a new Autoconf | ||||
# release and drop the old call support. | # release and drop the old call support. | ||||
AC_DEFUN([AM_INIT_AUTOMAKE], | AC_DEFUN([AM_INIT_AUTOMAKE], | ||||
[AC_PREREQ([2.58])dnl | |||||
[AC_PREREQ([2.62])dnl | |||||
dnl Autoconf wants to disallow AM_ names. We explicitly allow | dnl Autoconf wants to disallow AM_ names. We explicitly allow | ||||
dnl the ones we care about. | dnl the ones we care about. | ||||
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | ||||
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | ||||
AC_REQUIRE([AC_PROG_INSTALL])dnl | AC_REQUIRE([AC_PROG_INSTALL])dnl | ||||
# test to see if srcdir already configured | |||||
if test "`cd $srcdir && pwd`" != "`pwd`" && | |||||
test -f $srcdir/config.status; then | |||||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |||||
if test "`cd $srcdir && pwd`" != "`pwd`"; then | |||||
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |||||
# is not polluted with repeated "-I." | |||||
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |||||
# test to see if srcdir already configured | |||||
if test -f $srcdir/config.status; then | |||||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |||||
fi | |||||
fi | fi | ||||
# test whether we have cygpath | # test whether we have cygpath | ||||
@@ -395,6 +475,9 @@ m4_ifval([$2], | |||||
AC_SUBST([PACKAGE], [$1])dnl | AC_SUBST([PACKAGE], [$1])dnl | ||||
AC_SUBST([VERSION], [$2])], | AC_SUBST([VERSION], [$2])], | ||||
[_AM_SET_OPTIONS([$1])dnl | [_AM_SET_OPTIONS([$1])dnl | ||||
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |||||
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |||||
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |||||
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | ||||
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | ||||
@@ -410,8 +493,8 @@ AM_MISSING_PROG(AUTOCONF, autoconf) | |||||
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | ||||
AM_MISSING_PROG(AUTOHEADER, autoheader) | AM_MISSING_PROG(AUTOHEADER, autoheader) | ||||
AM_MISSING_PROG(MAKEINFO, makeinfo) | AM_MISSING_PROG(MAKEINFO, makeinfo) | ||||
AM_PROG_INSTALL_SH | |||||
AM_PROG_INSTALL_STRIP | |||||
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |||||
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |||||
AC_REQUIRE([AM_PROG_MKDIR_P])dnl | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | ||||
# We need awk for the "check" target. The system "awk" is bad on | # We need awk for the "check" target. The system "awk" is bad on | ||||
# some platforms. | # some platforms. | ||||
@@ -419,20 +502,37 @@ AC_REQUIRE([AC_PROG_AWK])dnl | |||||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | ||||
AC_REQUIRE([AM_SET_LEADING_DOT])dnl | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | ||||
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | ||||
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |||||
[_AM_PROG_TAR([v7])])]) | |||||
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |||||
[_AM_PROG_TAR([v7])])]) | |||||
_AM_IF_OPTION([no-dependencies],, | _AM_IF_OPTION([no-dependencies],, | ||||
[AC_PROVIDE_IFELSE([AC_PROG_CC], | [AC_PROVIDE_IFELSE([AC_PROG_CC], | ||||
[_AM_DEPENDENCIES(CC)], | |||||
[define([AC_PROG_CC], | |||||
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |||||
[_AM_DEPENDENCIES(CC)], | |||||
[define([AC_PROG_CC], | |||||
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |||||
AC_PROVIDE_IFELSE([AC_PROG_CXX], | AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||||
[_AM_DEPENDENCIES(CXX)], | |||||
[define([AC_PROG_CXX], | |||||
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |||||
[_AM_DEPENDENCIES(CXX)], | |||||
[define([AC_PROG_CXX], | |||||
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |||||
AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |||||
[_AM_DEPENDENCIES(OBJC)], | |||||
[define([AC_PROG_OBJC], | |||||
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |||||
]) | ]) | ||||
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |||||
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |||||
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |||||
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |||||
AC_CONFIG_COMMANDS_PRE(dnl | |||||
[m4_provide_if([_AM_COMPILER_EXEEXT], | |||||
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |||||
]) | ]) | ||||
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |||||
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |||||
dnl mangled by Autoconf and run in a shell conditional statement. | |||||
m4_define([_AC_COMPILER_EXEEXT], | |||||
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |||||
# When config.status generates a header, we must update the stamp-h file. | # When config.status generates a header, we must update the stamp-h file. | ||||
# This file resides in the same directory as the config header | # This file resides in the same directory as the config header | ||||
@@ -443,29 +543,40 @@ AC_PROVIDE_IFELSE([AC_PROG_CXX], | |||||
# our stamp files there. | # our stamp files there. | ||||
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | ||||
[# Compute $1's index in $config_headers. | [# Compute $1's index in $config_headers. | ||||
_am_arg=$1 | |||||
_am_stamp_count=1 | _am_stamp_count=1 | ||||
for _am_header in $config_headers :; do | for _am_header in $config_headers :; do | ||||
case $_am_header in | case $_am_header in | ||||
$1 | $1:* ) | |||||
$_am_arg | $_am_arg:* ) | |||||
break ;; | break ;; | ||||
* ) | * ) | ||||
_am_stamp_count=`expr $_am_stamp_count + 1` ;; | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||||
esac | esac | ||||
done | done | ||||
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | |||||
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |||||
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, | |||||
# Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 1 | |||||
# AM_PROG_INSTALL_SH | # AM_PROG_INSTALL_SH | ||||
# ------------------ | # ------------------ | ||||
# Define $install_sh. | # Define $install_sh. | ||||
AC_DEFUN([AM_PROG_INSTALL_SH], | AC_DEFUN([AM_PROG_INSTALL_SH], | ||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||||
install_sh=${install_sh-"$am_aux_dir/install-sh"} | |||||
if test x"${install_sh}" != xset; then | |||||
case $am_aux_dir in | |||||
*\ * | *\ *) | |||||
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |||||
*) | |||||
install_sh="\${SHELL} $am_aux_dir/install-sh" | |||||
esac | |||||
fi | |||||
AC_SUBST(install_sh)]) | AC_SUBST(install_sh)]) | ||||
# Copyright (C) 2003, 2005 Free Software Foundation, Inc. | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | ||||
@@ -491,13 +602,13 @@ AC_SUBST([am__leading_dot])]) | |||||
# Check to see how 'make' treats includes. -*- Autoconf -*- | # Check to see how 'make' treats includes. -*- Autoconf -*- | ||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | |||||
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 3 | |||||
# serial 4 | |||||
# AM_MAKE_INCLUDE() | # AM_MAKE_INCLUDE() | ||||
# ----------------- | # ----------------- | ||||
@@ -506,7 +617,7 @@ AC_DEFUN([AM_MAKE_INCLUDE], | |||||
[am_make=${MAKE-make} | [am_make=${MAKE-make} | ||||
cat > confinc << 'END' | cat > confinc << 'END' | ||||
am__doit: | am__doit: | ||||
@echo done | |||||
@echo this is the am__doit target | |||||
.PHONY: am__doit | .PHONY: am__doit | ||||
END | END | ||||
# If we don't find an include directive, just comment out the code. | # If we don't find an include directive, just comment out the code. | ||||
@@ -516,24 +627,24 @@ am__quote= | |||||
_am_result=none | _am_result=none | ||||
# First try GNU make style include. | # First try GNU make style include. | ||||
echo "include confinc" > confmf | echo "include confinc" > confmf | ||||
# We grep out `Entering directory' and `Leaving directory' | |||||
# messages which can occur if `w' ends up in MAKEFLAGS. | |||||
# In particular we don't look at `^make:' because GNU make might | |||||
# be invoked under some other name (usually "gmake"), in which | |||||
# case it prints its new name instead of `make'. | |||||
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |||||
am__include=include | |||||
am__quote= | |||||
_am_result=GNU | |||||
fi | |||||
# Ignore all kinds of additional output from `make'. | |||||
case `$am_make -s -f confmf 2> /dev/null` in #( | |||||
*the\ am__doit\ target*) | |||||
am__include=include | |||||
am__quote= | |||||
_am_result=GNU | |||||
;; | |||||
esac | |||||
# Now try BSD make style include. | # Now try BSD make style include. | ||||
if test "$am__include" = "#"; then | if test "$am__include" = "#"; then | ||||
echo '.include "confinc"' > confmf | echo '.include "confinc"' > confmf | ||||
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |||||
am__include=.include | |||||
am__quote="\"" | |||||
_am_result=BSD | |||||
fi | |||||
case `$am_make -s -f confmf 2> /dev/null` in #( | |||||
*the\ am__doit\ target*) | |||||
am__include=.include | |||||
am__quote="\"" | |||||
_am_result=BSD | |||||
;; | |||||
esac | |||||
fi | fi | ||||
AC_SUBST([am__include]) | AC_SUBST([am__include]) | ||||
AC_SUBST([am__quote]) | AC_SUBST([am__quote]) | ||||
@@ -543,14 +654,14 @@ rm -f confinc confmf | |||||
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | ||||
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 | |||||
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |||||
# Free Software Foundation, Inc. | # Free Software Foundation, Inc. | ||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 4 | |||||
# serial 6 | |||||
# AM_MISSING_PROG(NAME, PROGRAM) | # AM_MISSING_PROG(NAME, PROGRAM) | ||||
# ------------------------------ | # ------------------------------ | ||||
@@ -566,7 +677,15 @@ AC_SUBST($1)]) | |||||
# If it does, set am_missing_run to use it, otherwise, to nothing. | # If it does, set am_missing_run to use it, otherwise, to nothing. | ||||
AC_DEFUN([AM_MISSING_HAS_RUN], | AC_DEFUN([AM_MISSING_HAS_RUN], | ||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||||
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |||||
AC_REQUIRE_AUX_FILE([missing])dnl | |||||
if test x"${MISSING+set}" != xset; then | |||||
case $am_aux_dir in | |||||
*\ * | *\ *) | |||||
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |||||
*) | |||||
MISSING="\${SHELL} $am_aux_dir/missing" ;; | |||||
esac | |||||
fi | |||||
# Use eval to expand $SHELL | # Use eval to expand $SHELL | ||||
if eval "$MISSING --run true"; then | if eval "$MISSING --run true"; then | ||||
am_missing_run="$MISSING --run " | am_missing_run="$MISSING --run " | ||||
@@ -576,78 +695,45 @@ else | |||||
fi | fi | ||||
]) | ]) | ||||
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. | |||||
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, | |||||
# Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 1 | |||||
# AM_PROG_MKDIR_P | # AM_PROG_MKDIR_P | ||||
# --------------- | # --------------- | ||||
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. | |||||
# | |||||
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories | |||||
# created by `make install' are always world readable, even if the | |||||
# installer happens to have an overly restrictive umask (e.g. 077). | |||||
# This was a mistake. There are at least two reasons why we must not | |||||
# use `-m 0755': | |||||
# - it causes special bits like SGID to be ignored, | |||||
# - it may be too restrictive (some setups expect 775 directories). | |||||
# | |||||
# Do not use -m 0755 and let people choose whatever they expect by | |||||
# setting umask. | |||||
# | |||||
# We cannot accept any implementation of `mkdir' that recognizes `-p'. | |||||
# Some implementations (such as Solaris 8's) are not thread-safe: if a | |||||
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' | |||||
# concurrently, both version can detect that a/ is missing, but only | |||||
# one can create it and the other will error out. Consequently we | |||||
# restrict ourselves to GNU make (using the --version option ensures | |||||
# this.) | |||||
# Check for `mkdir -p'. | |||||
AC_DEFUN([AM_PROG_MKDIR_P], | AC_DEFUN([AM_PROG_MKDIR_P], | ||||
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |||||
# We used to keeping the `.' as first argument, in order to | |||||
# allow $(mkdir_p) to be used without argument. As in | |||||
# $(mkdir_p) $(somedir) | |||||
# where $(somedir) is conditionally defined. However this is wrong | |||||
# for two reasons: | |||||
# 1. if the package is installed by a user who cannot write `.' | |||||
# make install will fail, | |||||
# 2. the above comment should most certainly read | |||||
# $(mkdir_p) $(DESTDIR)$(somedir) | |||||
# so it does not work when $(somedir) is undefined and | |||||
# $(DESTDIR) is not. | |||||
# To support the latter case, we have to write | |||||
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |||||
# so the `.' trick is pointless. | |||||
mkdir_p='mkdir -p --' | |||||
else | |||||
# On NextStep and OpenStep, the `mkdir' command does not | |||||
# recognize any option. It will interpret all options as | |||||
# directories to create, and then abort because `.' already | |||||
# exists. | |||||
for d in ./-p ./--version; | |||||
do | |||||
test -d $d && rmdir $d | |||||
done | |||||
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |||||
if test -f "$ac_aux_dir/mkinstalldirs"; then | |||||
mkdir_p='$(mkinstalldirs)' | |||||
else | |||||
mkdir_p='$(install_sh) -d' | |||||
fi | |||||
fi | |||||
AC_SUBST([mkdir_p])]) | |||||
[AC_PREREQ([2.60])dnl | |||||
AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |||||
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |||||
dnl while keeping a definition of mkdir_p for backward compatibility. | |||||
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |||||
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |||||
dnl Makefile.ins that do not define MKDIR_P, so we do our own | |||||
dnl adjustment using top_builddir (which is defined more often than | |||||
dnl MKDIR_P). | |||||
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |||||
case $mkdir_p in | |||||
[[\\/$]]* | ?:[[\\/]]*) ;; | |||||
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |||||
esac | |||||
]) | |||||
# Helper functions for option handling. -*- Autoconf -*- | # Helper functions for option handling. -*- Autoconf -*- | ||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | |||||
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software | |||||
# Foundation, Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 3 | |||||
# serial 5 | |||||
# _AM_MANGLE_OPTION(NAME) | # _AM_MANGLE_OPTION(NAME) | ||||
# ----------------------- | # ----------------------- | ||||
@@ -655,16 +741,16 @@ AC_DEFUN([_AM_MANGLE_OPTION], | |||||
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | ||||
# _AM_SET_OPTION(NAME) | # _AM_SET_OPTION(NAME) | ||||
# ------------------------------ | |||||
# -------------------- | |||||
# Set option NAME. Presently that only means defining a flag for this option. | # Set option NAME. Presently that only means defining a flag for this option. | ||||
AC_DEFUN([_AM_SET_OPTION], | AC_DEFUN([_AM_SET_OPTION], | ||||
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | ||||
# _AM_SET_OPTIONS(OPTIONS) | # _AM_SET_OPTIONS(OPTIONS) | ||||
# ---------------------------------- | |||||
# ------------------------ | |||||
# OPTIONS is a space-separated list of Automake options. | # OPTIONS is a space-separated list of Automake options. | ||||
AC_DEFUN([_AM_SET_OPTIONS], | AC_DEFUN([_AM_SET_OPTIONS], | ||||
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |||||
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |||||
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | ||||
# ------------------------------------------- | # ------------------------------------------- | ||||
@@ -674,14 +760,14 @@ AC_DEFUN([_AM_IF_OPTION], | |||||
# Check to make sure that the build environment is sane. -*- Autoconf -*- | # Check to make sure that the build environment is sane. -*- Autoconf -*- | ||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | |||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |||||
# Free Software Foundation, Inc. | # Free Software Foundation, Inc. | ||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 4 | |||||
# serial 5 | |||||
# AM_SANITY_CHECK | # AM_SANITY_CHECK | ||||
# --------------- | # --------------- | ||||
@@ -690,16 +776,29 @@ AC_DEFUN([AM_SANITY_CHECK], | |||||
# Just in case | # Just in case | ||||
sleep 1 | sleep 1 | ||||
echo timestamp > conftest.file | echo timestamp > conftest.file | ||||
# Reject unsafe characters in $srcdir or the absolute working directory | |||||
# name. Accept space and tab only in the latter. | |||||
am_lf=' | |||||
' | |||||
case `pwd` in | |||||
*[[\\\"\#\$\&\'\`$am_lf]]*) | |||||
AC_MSG_ERROR([unsafe absolute working directory name]);; | |||||
esac | |||||
case $srcdir in | |||||
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |||||
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |||||
esac | |||||
# Do `set' in a subshell so we don't clobber the current shell's | # Do `set' in a subshell so we don't clobber the current shell's | ||||
# arguments. Must try -L first in case configure is actually a | # arguments. Must try -L first in case configure is actually a | ||||
# symlink; some systems play weird games with the mod time of symlinks | # symlink; some systems play weird games with the mod time of symlinks | ||||
# (eg FreeBSD returns the mod time of the symlink's containing | # (eg FreeBSD returns the mod time of the symlink's containing | ||||
# directory). | # directory). | ||||
if ( | if ( | ||||
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |||||
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |||||
if test "$[*]" = "X"; then | if test "$[*]" = "X"; then | ||||
# -L didn't work. | # -L didn't work. | ||||
set X `ls -t $srcdir/configure conftest.file` | |||||
set X `ls -t "$srcdir/configure" conftest.file` | |||||
fi | fi | ||||
rm -f conftest.file | rm -f conftest.file | ||||
if test "$[*]" != "X $srcdir/configure conftest.file" \ | if test "$[*]" != "X $srcdir/configure conftest.file" \ | ||||
@@ -724,12 +823,14 @@ Check your system clock]) | |||||
fi | fi | ||||
AC_MSG_RESULT(yes)]) | AC_MSG_RESULT(yes)]) | ||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |||||
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
# serial 1 | |||||
# AM_PROG_INSTALL_STRIP | # AM_PROG_INSTALL_STRIP | ||||
# --------------------- | # --------------------- | ||||
# One issue with vendor `install' (even GNU) is that you can't | # One issue with vendor `install' (even GNU) is that you can't | ||||
@@ -749,12 +850,31 @@ dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |||||
if test "$cross_compiling" != no; then | if test "$cross_compiling" != no; then | ||||
AC_CHECK_TOOL([STRIP], [strip], :) | AC_CHECK_TOOL([STRIP], [strip], :) | ||||
fi | fi | ||||
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |||||
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |||||
AC_SUBST([INSTALL_STRIP_PROGRAM])]) | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | ||||
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. | |||||
# | |||||
# This file is free software; the Free Software Foundation | |||||
# gives unlimited permission to copy and/or distribute it, | |||||
# with or without modifications, as long as this notice is preserved. | |||||
# serial 3 | |||||
# _AM_SUBST_NOTMAKE(VARIABLE) | |||||
# --------------------------- | |||||
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |||||
# This macro is traced by Automake. | |||||
AC_DEFUN([_AM_SUBST_NOTMAKE]) | |||||
# AM_SUBST_NOTMAKE(VARIABLE) | |||||
# -------------------------- | |||||
# Public sister of _AM_SUBST_NOTMAKE. | |||||
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |||||
# Check how to create a tarball. -*- Autoconf -*- | # Check how to create a tarball. -*- Autoconf -*- | ||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |||||
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. | |||||
# | # | ||||
# This file is free software; the Free Software Foundation | # This file is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
@@ -776,10 +896,11 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |||||
# a tarball read from stdin. | # a tarball read from stdin. | ||||
# $(am__untar) < result.tar | # $(am__untar) < result.tar | ||||
AC_DEFUN([_AM_PROG_TAR], | AC_DEFUN([_AM_PROG_TAR], | ||||
[# Always define AMTAR for backward compatibility. | |||||
AM_MISSING_PROG([AMTAR], [tar]) | |||||
[# Always define AMTAR for backward compatibility. Yes, it's still used | |||||
# in the wild :-( We should find a proper way to deprecate it ... | |||||
AC_SUBST([AMTAR], ['$${TAR-tar}']) | |||||
m4_if([$1], [v7], | m4_if([$1], [v7], | ||||
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |||||
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |||||
[m4_case([$1], [ustar],, [pax],, | [m4_case([$1], [ustar],, [pax],, | ||||
[m4_fatal([Unknown tar format])]) | [m4_fatal([Unknown tar format])]) | ||||
AC_MSG_CHECKING([how to create a $1 tar archive]) | AC_MSG_CHECKING([how to create a $1 tar archive]) | ||||
@@ -2,7 +2,7 @@ | |||||
# Process this file with autoconf to produce a configure script. | # Process this file with autoconf to produce a configure script. | ||||
AC_PREREQ([2.67]) | AC_PREREQ([2.67]) | ||||
AC_INIT([nife], [0.47], [nife@seriane.fr]) | |||||
AC_INIT([nife], [0.49], [nife@seriane.fr]) | |||||
AM_INIT_AUTOMAKE | AM_INIT_AUTOMAKE | ||||
AC_CONFIG_SRCDIR([src/tasks.c]) | AC_CONFIG_SRCDIR([src/tasks.c]) | ||||
@@ -1,8 +1,9 @@ | |||||
# Makefile.in generated by automake 1.9.6 from Makefile.am. | |||||
# Makefile.in generated by automake 1.11.6 from Makefile.am. | |||||
# @configure_input@ | # @configure_input@ | ||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||||
# 2003, 2004, 2005 Free Software Foundation, Inc. | |||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |||||
# Foundation, Inc. | |||||
# This Makefile.in is free software; the Free Software Foundation | # This Makefile.in is free software; the Free Software Foundation | ||||
# gives unlimited permission to copy and/or distribute it, | # gives unlimited permission to copy and/or distribute it, | ||||
# with or without modifications, as long as this notice is preserved. | # with or without modifications, as long as this notice is preserved. | ||||
@@ -18,15 +19,29 @@ | |||||
# Makefile.am for nife project # | # Makefile.am for nife project # | ||||
################################ | ################################ | ||||
srcdir = @srcdir@ | |||||
top_srcdir = @top_srcdir@ | |||||
VPATH = @srcdir@ | VPATH = @srcdir@ | ||||
am__make_dryrun = \ | |||||
{ \ | |||||
am__dry=no; \ | |||||
case $$MAKEFLAGS in \ | |||||
*\\[\ \ ]*) \ | |||||
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |||||
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |||||
*) \ | |||||
for am__flg in $$MAKEFLAGS; do \ | |||||
case $$am__flg in \ | |||||
*=*|--*) ;; \ | |||||
*n*) am__dry=yes; break;; \ | |||||
esac; \ | |||||
done;; \ | |||||
esac; \ | |||||
test $$am__dry = yes; \ | |||||
} | |||||
pkgdatadir = $(datadir)/@PACKAGE@ | pkgdatadir = $(datadir)/@PACKAGE@ | ||||
pkglibdir = $(libdir)/@PACKAGE@ | |||||
pkgincludedir = $(includedir)/@PACKAGE@ | pkgincludedir = $(includedir)/@PACKAGE@ | ||||
top_builddir = .. | |||||
pkglibdir = $(libdir)/@PACKAGE@ | |||||
pkglibexecdir = $(libexecdir)/@PACKAGE@ | |||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||||
INSTALL = @INSTALL@ | |||||
install_sh_DATA = $(install_sh) -c -m 644 | install_sh_DATA = $(install_sh) -c -m 644 | ||||
install_sh_PROGRAM = $(install_sh) -c | install_sh_PROGRAM = $(install_sh) -c | ||||
install_sh_SCRIPT = $(install_sh) -c | install_sh_SCRIPT = $(install_sh) -c | ||||
@@ -48,8 +63,8 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |||||
mkinstalldirs = $(install_sh) -d | mkinstalldirs = $(install_sh) -d | ||||
CONFIG_HEADER = $(top_builddir)/config.h | CONFIG_HEADER = $(top_builddir)/config.h | ||||
CONFIG_CLEAN_FILES = | CONFIG_CLEAN_FILES = | ||||
CONFIG_CLEAN_VPATH_FILES = | |||||
am__installdirs = "$(DESTDIR)$(bindir)" | am__installdirs = "$(DESTDIR)$(bindir)" | ||||
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | |||||
PROGRAMS = $(bin_PROGRAMS) | PROGRAMS = $(bin_PROGRAMS) | ||||
am_nife_OBJECTS = nife.$(OBJEXT) mth.$(OBJEXT) err.$(OBJEXT) \ | am_nife_OBJECTS = nife.$(OBJEXT) mth.$(OBJEXT) err.$(OBJEXT) \ | ||||
histo.$(OBJEXT) lib.$(OBJEXT) foncs.$(OBJEXT) stackN.$(OBJEXT) \ | histo.$(OBJEXT) lib.$(OBJEXT) foncs.$(OBJEXT) stackN.$(OBJEXT) \ | ||||
@@ -60,21 +75,25 @@ am_nife_OBJECTS = nife.$(OBJEXT) mth.$(OBJEXT) err.$(OBJEXT) \ | |||||
debug.$(OBJEXT) | debug.$(OBJEXT) | ||||
nife_OBJECTS = $(am_nife_OBJECTS) | nife_OBJECTS = $(am_nife_OBJECTS) | ||||
nife_LDADD = $(LDADD) | nife_LDADD = $(LDADD) | ||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) | |||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | |||||
depcomp = $(SHELL) $(top_srcdir)/depcomp | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||||
am__depfiles_maybe = depfiles | am__depfiles_maybe = depfiles | ||||
am__mv = mv -f | |||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||||
CCLD = $(CC) | CCLD = $(CC) | ||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||||
SOURCES = $(nife_SOURCES) | SOURCES = $(nife_SOURCES) | ||||
DIST_SOURCES = $(nife_SOURCES) | DIST_SOURCES = $(nife_SOURCES) | ||||
am__can_run_installinfo = \ | |||||
case $$AM_UPDATE_INFO_DIR in \ | |||||
n|no|NO) false;; \ | |||||
*) (install-info --version) >/dev/null 2>&1;; \ | |||||
esac | |||||
ETAGS = etags | ETAGS = etags | ||||
CTAGS = ctags | CTAGS = ctags | ||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||||
ACLOCAL = @ACLOCAL@ | ACLOCAL = @ACLOCAL@ | ||||
AMDEP_FALSE = @AMDEP_FALSE@ | |||||
AMDEP_TRUE = @AMDEP_TRUE@ | |||||
AMTAR = @AMTAR@ | AMTAR = @AMTAR@ | ||||
AUTOCONF = @AUTOCONF@ | AUTOCONF = @AUTOCONF@ | ||||
AUTOHEADER = @AUTOHEADER@ | AUTOHEADER = @AUTOHEADER@ | ||||
@@ -94,6 +113,7 @@ ECHO_T = @ECHO_T@ | |||||
EGREP = @EGREP@ | EGREP = @EGREP@ | ||||
EXEEXT = @EXEEXT@ | EXEEXT = @EXEEXT@ | ||||
GREP = @GREP@ | GREP = @GREP@ | ||||
INSTALL = @INSTALL@ | |||||
INSTALL_DATA = @INSTALL_DATA@ | INSTALL_DATA = @INSTALL_DATA@ | ||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@ | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||||
@@ -103,6 +123,7 @@ LIBOBJS = @LIBOBJS@ | |||||
LIBS = @LIBS@ | LIBS = @LIBS@ | ||||
LTLIBOBJS = @LTLIBOBJS@ | LTLIBOBJS = @LTLIBOBJS@ | ||||
MAKEINFO = @MAKEINFO@ | MAKEINFO = @MAKEINFO@ | ||||
MKDIR_P = @MKDIR_P@ | |||||
OBJEXT = @OBJEXT@ | OBJEXT = @OBJEXT@ | ||||
PACKAGE = @PACKAGE@ | PACKAGE = @PACKAGE@ | ||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||||
@@ -117,9 +138,11 @@ SET_MAKE = @SET_MAKE@ | |||||
SHELL = @SHELL@ | SHELL = @SHELL@ | ||||
STRIP = @STRIP@ | STRIP = @STRIP@ | ||||
VERSION = @VERSION@ | VERSION = @VERSION@ | ||||
abs_builddir = @abs_builddir@ | |||||
abs_srcdir = @abs_srcdir@ | |||||
abs_top_builddir = @abs_top_builddir@ | |||||
abs_top_srcdir = @abs_top_srcdir@ | |||||
ac_ct_CC = @ac_ct_CC@ | ac_ct_CC = @ac_ct_CC@ | ||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | |||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | |||||
am__include = @am__include@ | am__include = @am__include@ | ||||
am__leading_dot = @am__leading_dot@ | am__leading_dot = @am__leading_dot@ | ||||
am__quote = @am__quote@ | am__quote = @am__quote@ | ||||
@@ -127,6 +150,7 @@ am__tar = @am__tar@ | |||||
am__untar = @am__untar@ | am__untar = @am__untar@ | ||||
bindir = @bindir@ | bindir = @bindir@ | ||||
build_alias = @build_alias@ | build_alias = @build_alias@ | ||||
builddir = @builddir@ | |||||
datadir = @datadir@ | datadir = @datadir@ | ||||
datarootdir = @datarootdir@ | datarootdir = @datarootdir@ | ||||
docdir = @docdir@ | docdir = @docdir@ | ||||
@@ -150,8 +174,12 @@ program_transform_name = @program_transform_name@ | |||||
psdir = @psdir@ | psdir = @psdir@ | ||||
sbindir = @sbindir@ | sbindir = @sbindir@ | ||||
sharedstatedir = @sharedstatedir@ | sharedstatedir = @sharedstatedir@ | ||||
srcdir = @srcdir@ | |||||
sysconfdir = @sysconfdir@ | sysconfdir = @sysconfdir@ | ||||
target_alias = @target_alias@ | target_alias = @target_alias@ | ||||
top_build_prefix = @top_build_prefix@ | |||||
top_builddir = @top_builddir@ | |||||
top_srcdir = @top_srcdir@ | |||||
nife_SOURCES = nife.c nife.h conf.h \ | nife_SOURCES = nife.c nife.h conf.h \ | ||||
mth.c mth.h \ | mth.c mth.h \ | ||||
err.c err.h \ | err.c err.h \ | ||||
@@ -182,14 +210,14 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |||||
@for dep in $?; do \ | @for dep in $?; do \ | ||||
case '$(am__configure_deps)' in \ | case '$(am__configure_deps)' in \ | ||||
*$$dep*) \ | *$$dep*) \ | ||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | |||||
&& exit 0; \ | |||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | |||||
&& { if test -f $@; then exit 0; else break; fi; }; \ | |||||
exit 1;; \ | exit 1;; \ | ||||
esac; \ | esac; \ | ||||
done; \ | done; \ | ||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ | |||||
cd $(top_srcdir) && \ | |||||
$(AUTOMAKE) --gnu src/Makefile | |||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ | |||||
$(am__cd) $(top_srcdir) && \ | |||||
$(AUTOMAKE) --gnu src/Makefile | |||||
.PRECIOUS: Makefile | .PRECIOUS: Makefile | ||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||||
@case '$?' in \ | @case '$?' in \ | ||||
@@ -207,32 +235,50 @@ $(top_srcdir)/configure: $(am__configure_deps) | |||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps) | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||||
$(am__aclocal_m4_deps): | |||||
install-binPROGRAMS: $(bin_PROGRAMS) | install-binPROGRAMS: $(bin_PROGRAMS) | ||||
@$(NORMAL_INSTALL) | @$(NORMAL_INSTALL) | ||||
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" | |||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \ | |||||
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | |||||
if test -f $$p \ | |||||
; then \ | |||||
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ | |||||
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ | |||||
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ | |||||
else :; fi; \ | |||||
done | |||||
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | |||||
if test -n "$$list"; then \ | |||||
echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ | |||||
$(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ | |||||
fi; \ | |||||
for p in $$list; do echo "$$p $$p"; done | \ | |||||
sed 's/$(EXEEXT)$$//' | \ | |||||
while read p p1; do if test -f $$p; \ | |||||
then echo "$$p"; echo "$$p"; else :; fi; \ | |||||
done | \ | |||||
sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | |||||
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ | |||||
sed 'N;N;N;s,\n, ,g' | \ | |||||
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ | |||||
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ | |||||
if ($$2 == $$4) files[d] = files[d] " " $$1; \ | |||||
else { print "f", $$3 "/" $$4, $$1; } } \ | |||||
END { for (d in files) print "f", d, files[d] }' | \ | |||||
while read type dir files; do \ | |||||
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ | |||||
test -z "$$files" || { \ | |||||
echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ | |||||
$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ | |||||
} \ | |||||
; done | |||||
uninstall-binPROGRAMS: | uninstall-binPROGRAMS: | ||||
@$(NORMAL_UNINSTALL) | @$(NORMAL_UNINSTALL) | ||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \ | |||||
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ | |||||
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ | |||||
rm -f "$(DESTDIR)$(bindir)/$$f"; \ | |||||
done | |||||
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | |||||
files=`for p in $$list; do echo "$$p"; done | \ | |||||
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ | |||||
-e 's/$$/$(EXEEXT)/' `; \ | |||||
test -n "$$list" || exit 0; \ | |||||
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ | |||||
cd "$(DESTDIR)$(bindir)" && rm -f $$files | |||||
clean-binPROGRAMS: | clean-binPROGRAMS: | ||||
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | ||||
nife$(EXEEXT): $(nife_OBJECTS) $(nife_DEPENDENCIES) | |||||
nife$(EXEEXT): $(nife_OBJECTS) $(nife_DEPENDENCIES) $(EXTRA_nife_DEPENDENCIES) | |||||
@rm -f nife$(EXEEXT) | @rm -f nife$(EXEEXT) | ||||
$(LINK) $(nife_LDFLAGS) $(nife_OBJECTS) $(nife_LDADD) $(LIBS) | |||||
$(LINK) $(nife_OBJECTS) $(nife_LDADD) $(LIBS) | |||||
mostlyclean-compile: | mostlyclean-compile: | ||||
-rm -f *.$(OBJEXT) | -rm -f *.$(OBJEXT) | ||||
@@ -263,92 +309,98 @@ distclean-compile: | |||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tasks.Po@am__quote@ | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tasks.Po@am__quote@ | ||||
.c.o: | .c.o: | ||||
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ | |||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi | |||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |||||
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||||
@am__fastdepCC_FALSE@ $(COMPILE) -c $< | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||||
.c.obj: | .c.obj: | ||||
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ | |||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi | |||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |||||
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||||
uninstall-info-am: | |||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||||
unique=`for i in $$list; do \ | unique=`for i in $$list; do \ | ||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||||
done | \ | done | \ | ||||
$(AWK) ' { files[$$0] = 1; } \ | |||||
END { for (i in files) print i; }'`; \ | |||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |||||
END { if (nonempty) { for (i in files) print i; }; }'`; \ | |||||
mkid -fID $$unique | mkid -fID $$unique | ||||
tags: TAGS | tags: TAGS | ||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||||
$(TAGS_FILES) $(LISP) | $(TAGS_FILES) $(LISP) | ||||
tags=; \ | |||||
set x; \ | |||||
here=`pwd`; \ | here=`pwd`; \ | ||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||||
unique=`for i in $$list; do \ | unique=`for i in $$list; do \ | ||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||||
done | \ | done | \ | ||||
$(AWK) ' { files[$$0] = 1; } \ | |||||
END { for (i in files) print i; }'`; \ | |||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | |||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |||||
END { if (nonempty) { for (i in files) print i; }; }'`; \ | |||||
shift; \ | |||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |||||
test -n "$$unique" || unique=$$empty_fix; \ | test -n "$$unique" || unique=$$empty_fix; \ | ||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |||||
$$tags $$unique; \ | |||||
if test $$# -gt 0; then \ | |||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |||||
"$$@" $$unique; \ | |||||
else \ | |||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |||||
$$unique; \ | |||||
fi; \ | |||||
fi | fi | ||||
ctags: CTAGS | ctags: CTAGS | ||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||||
$(TAGS_FILES) $(LISP) | $(TAGS_FILES) $(LISP) | ||||
tags=; \ | |||||
here=`pwd`; \ | |||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||||
unique=`for i in $$list; do \ | unique=`for i in $$list; do \ | ||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||||
done | \ | done | \ | ||||
$(AWK) ' { files[$$0] = 1; } \ | |||||
END { for (i in files) print i; }'`; \ | |||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \ | |||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |||||
END { if (nonempty) { for (i in files) print i; }; }'`; \ | |||||
test -z "$(CTAGS_ARGS)$$unique" \ | |||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||||
$$tags $$unique | |||||
$$unique | |||||
GTAGS: | GTAGS: | ||||
here=`$(am__cd) $(top_builddir) && pwd` \ | here=`$(am__cd) $(top_builddir) && pwd` \ | ||||
&& cd $(top_srcdir) \ | |||||
&& gtags -i $(GTAGS_ARGS) $$here | |||||
&& $(am__cd) $(top_srcdir) \ | |||||
&& gtags -i $(GTAGS_ARGS) "$$here" | |||||
distclean-tags: | distclean-tags: | ||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||||
distdir: $(DISTFILES) | distdir: $(DISTFILES) | ||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | |||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | |||||
list='$(DISTFILES)'; for file in $$list; do \ | |||||
case $$file in \ | |||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | |||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | |||||
esac; \ | |||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |||||
list='$(DISTFILES)'; \ | |||||
dist_files=`for file in $$list; do echo $$file; done | \ | |||||
sed -e "s|^$$srcdirstrip/||;t" \ | |||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |||||
case $$dist_files in \ | |||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \ | |||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |||||
sort -u` ;; \ | |||||
esac; \ | |||||
for file in $$dist_files; do \ | |||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | |||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | |||||
dir="/$$dir"; \ | |||||
$(mkdir_p) "$(distdir)$$dir"; \ | |||||
else \ | |||||
dir=''; \ | |||||
fi; \ | |||||
if test -d $$d/$$file; then \ | if test -d $$d/$$file; then \ | ||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |||||
if test -d "$(distdir)/$$file"; then \ | |||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |||||
fi; \ | |||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | |||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |||||
fi; \ | fi; \ | ||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | |||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |||||
else \ | else \ | ||||
test -f $(distdir)/$$file \ | |||||
|| cp -p $$d/$$file $(distdir)/$$file \ | |||||
test -f "$(distdir)/$$file" \ | |||||
|| cp -p $$d/$$file "$(distdir)/$$file" \ | |||||
|| exit 1; \ | || exit 1; \ | ||||
fi; \ | fi; \ | ||||
done | done | ||||
@@ -357,7 +409,7 @@ check: check-am | |||||
all-am: Makefile $(PROGRAMS) | all-am: Makefile $(PROGRAMS) | ||||
installdirs: | installdirs: | ||||
for dir in "$(DESTDIR)$(bindir)"; do \ | for dir in "$(DESTDIR)$(bindir)"; do \ | ||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \ | |||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | |||||
done | done | ||||
install: install-am | install: install-am | ||||
install-exec: install-exec-am | install-exec: install-exec-am | ||||
@@ -369,16 +421,22 @@ install-am: all-am | |||||
installcheck: installcheck-am | installcheck: installcheck-am | ||||
install-strip: | install-strip: | ||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |||||
`test -z '$(STRIP)' || \ | |||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |||||
if test -z '$(STRIP)'; then \ | |||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |||||
install; \ | |||||
else \ | |||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |||||
fi | |||||
mostlyclean-generic: | mostlyclean-generic: | ||||
clean-generic: | clean-generic: | ||||
distclean-generic: | distclean-generic: | ||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |||||
maintainer-clean-generic: | maintainer-clean-generic: | ||||
@echo "This command is intended for maintainers to use" | @echo "This command is intended for maintainers to use" | ||||
@@ -399,18 +457,38 @@ dvi-am: | |||||
html: html-am | html: html-am | ||||
html-am: | |||||
info: info-am | info: info-am | ||||
info-am: | info-am: | ||||
install-data-am: | install-data-am: | ||||
install-dvi: install-dvi-am | |||||
install-dvi-am: | |||||
install-exec-am: install-binPROGRAMS | install-exec-am: install-binPROGRAMS | ||||
install-html: install-html-am | |||||
install-html-am: | |||||
install-info: install-info-am | install-info: install-info-am | ||||
install-info-am: | |||||
install-man: | install-man: | ||||
install-pdf: install-pdf-am | |||||
install-pdf-am: | |||||
install-ps: install-ps-am | |||||
install-ps-am: | |||||
installcheck-am: | installcheck-am: | ||||
maintainer-clean: maintainer-clean-am | maintainer-clean: maintainer-clean-am | ||||
@@ -430,20 +508,25 @@ ps: ps-am | |||||
ps-am: | ps-am: | ||||
uninstall-am: uninstall-binPROGRAMS uninstall-info-am | |||||
uninstall-am: uninstall-binPROGRAMS | |||||
.MAKE: install-am install-strip | |||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ | ||||
clean-generic ctags distclean distclean-compile \ | clean-generic ctags distclean distclean-compile \ | ||||
distclean-generic distclean-tags distdir dvi dvi-am html \ | distclean-generic distclean-tags distdir dvi dvi-am html \ | ||||
html-am info info-am install install-am install-binPROGRAMS \ | html-am info info-am install install-am install-binPROGRAMS \ | ||||
install-data install-data-am install-exec install-exec-am \ | |||||
install-info install-info-am install-man install-strip \ | |||||
install-data install-data-am install-dvi install-dvi-am \ | |||||
install-exec install-exec-am install-html install-html-am \ | |||||
install-info install-info-am install-man install-pdf \ | |||||
install-pdf-am install-ps install-ps-am install-strip \ | |||||
installcheck installcheck-am installdirs maintainer-clean \ | installcheck installcheck-am installdirs maintainer-clean \ | ||||
maintainer-clean-generic mostlyclean mostlyclean-compile \ | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||||
mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ | mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ | ||||
uninstall-am uninstall-binPROGRAMS uninstall-info-am | |||||
uninstall-am uninstall-binPROGRAMS | |||||
# nife_LDADD = libm.a | # nife_LDADD = libm.a | ||||
# Tell versions [3.59,3.63) of GNU make to not export all variables. | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||||
# Otherwise a system limit (for SysV at least) may be exceeded. | # Otherwise a system limit (for SysV at least) may be exceeded. | ||||
.NOEXPORT: | .NOEXPORT: |
@@ -34,7 +34,7 @@ void D_Reset(void) | |||||
{ | { | ||||
int fd; | int fd; | ||||
char NF[24]; | char NF[24]; | ||||
chdir(".nife"); | |||||
chdir(".nife"); | |||||
if (Debug) { | if (Debug) { | ||||
sprintf(NF,".nife_%d.log",getpid()); | sprintf(NF,".nife_%d.log",getpid()); | ||||
if ((fd=open(NF,O_CREAT|O_RDWR|O_TRUNC,0644)) < 0) perror(NF); | if ((fd=open(NF,O_CREAT|O_RDWR|O_TRUNC,0644)) < 0) perror(NF); | ||||
@@ -116,9 +116,12 @@ static char *TabErr[] = { | |||||
"value out of range", | "value out of range", | ||||
"I2C write failed", | "I2C write failed", | ||||
"I2C read failed", | "I2C read failed", | ||||
"binary dump error", | |||||
"binary restore error", | |||||
"-", /* 60 */ | |||||
"-" | "-" | ||||
}; | }; | ||||
#define ERR_MAX 57 | |||||
#define ERR_MAX 59 | |||||
void stopErr(char *M, char *F) | void stopErr(char *M, char *F) | ||||
{ | { | ||||
@@ -52,13 +52,13 @@ static void *stackGP = VIDE; | |||||
/* file manipulations */ | /* file manipulations */ | ||||
static void GPF_init(char *f) | static void GPF_init(char *f) | ||||
{ | { | ||||
int fd; | |||||
chdir(".nife"); | |||||
int fd, r; | |||||
r = chdir(".nife"); | |||||
if ((fd = creat(f,0600)) != -1) { | if ((fd = creat(f,0600)) != -1) { | ||||
write(fd,"# Nife auto-generated GNUplot file !\n",37); | write(fd,"# Nife auto-generated GNUplot file !\n",37); | ||||
close(fd); | close(fd); | ||||
} | } | ||||
chdir(".."); | |||||
if (r==0) chdir(".."); | |||||
} | } | ||||
static void GPF_del(char *f) | static void GPF_del(char *f) | ||||
@@ -22,15 +22,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/> | |||||
#define LHLP 200 /* longueur MAX des lignes du fichier hlp */ | #define LHLP 200 /* longueur MAX des lignes du fichier hlp */ | ||||
static char buf[LHLP]; | static char buf[LHLP]; | ||||
void helpStd(char * L) | |||||
static void helpShow(char * L) | |||||
{ | { | ||||
FILE * fd; | FILE * fd; | ||||
int debut=0,l; | int debut=0,l; | ||||
dropTrSuite(); | |||||
if ((fd = fopen("nife.hlp","r")) == NULL) { | if ((fd = fopen("nife.hlp","r")) == NULL) { | ||||
perror("help file"); | perror("help file"); | ||||
return; | return; | ||||
} else { | } else { | ||||
if (L == NULL) { | |||||
debut=1; | |||||
while (fgets(buf,LHLP,fd) != NULL) { | |||||
if (buf[0] != ' ') break; | |||||
printf("%s",buf); | |||||
} | |||||
} else { | |||||
while (fgets(buf,LHLP,fd) != NULL) { | while (fgets(buf,LHLP,fd) != NULL) { | ||||
if (debut) { | if (debut) { | ||||
if (buf[0] != ' ') break; | if (buf[0] != ' ') break; | ||||
@@ -43,13 +50,25 @@ int debut=0,l; | |||||
} | } | ||||
printf("%s",buf); | printf("%s",buf); | ||||
} | } | ||||
} | |||||
} | } | ||||
if (debut==0) printf("No help find !\n"); | if (debut==0) printf("No help find !\n"); | ||||
fclose(fd); | fclose(fd); | ||||
} | } | ||||
void helpStd(char * L) | |||||
{ | |||||
dropTrSuite(); | |||||
helpShow(L); | |||||
} | |||||
void IF_help(void) | void IF_help(void) | ||||
{ | { | ||||
putTrSuite(helpStd); | putTrSuite(helpStd); | ||||
} | } | ||||
void IF_helpS(void) | |||||
{ | |||||
helpShow(NULL); | |||||
} |
@@ -19,5 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/> | |||||
#define __NIFE_HELP_H__ | #define __NIFE_HELP_H__ | ||||
extern void IF_help(void); | extern void IF_help(void); | ||||
extern void IF_helpS(void); | |||||
#endif | #endif |
@@ -168,10 +168,13 @@ void termInit(void) | |||||
t1.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | t1.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | ||||
| INLCR | IGNCR | ICRNL | IXON); | | INLCR | IGNCR | ICRNL | IXON); | ||||
/* t1.c_oflag &= ~OPOST; */ | /* t1.c_oflag &= ~OPOST; */ | ||||
t1.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); | |||||
/* t1.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); */ | |||||
t1.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN); | |||||
t1.c_cflag &= ~(CSIZE | PARENB); | t1.c_cflag &= ~(CSIZE | PARENB); | ||||
t1.c_cflag |= CS8; | t1.c_cflag |= CS8; | ||||
if (tcsetattr(iTERM, TCSAFLUSH, &t1) == -1) perror("tcsetattr"); /* raw */ | if (tcsetattr(iTERM, TCSAFLUSH, &t1) == -1) perror("tcsetattr"); /* raw */ | ||||
/* clear screen */ | |||||
system("clear"); | |||||
} | } | ||||
void termReset(void) | void termReset(void) | ||||
@@ -234,6 +237,10 @@ unsigned int j; | |||||
d++; | d++; | ||||
} else { | } else { | ||||
switch (c) { | switch (c) { | ||||
/* Ctrl C | |||||
case '\003' : | |||||
kill(getpid(), SIGINT); | |||||
break; */ | |||||
case '\t': /* tab */ | case '\t': /* tab */ | ||||
if (d>b) { | if (d>b) { | ||||
*d='\0'; | *d='\0'; | ||||
@@ -124,6 +124,20 @@ static void addInst(char *l, void (*f)(void)) | |||||
static char **ListFonc = (char**)NULL; | static char **ListFonc = (char**)NULL; | ||||
static void show_lib_addr (void) | |||||
{ | |||||
int i,j=0; | |||||
for (i=0;i<NBFonc;i++) { | |||||
printf("%-13s 0x%.8lx ",Fonctions[i].nam,(unsigned long)Fonctions[i].fct); | |||||
j++; | |||||
if (j == 3) { | |||||
j=0; | |||||
printf("\n"); | |||||
} | |||||
} | |||||
if (j) printf("\n"); | |||||
} | |||||
static void Show_library(int NbF) | static void Show_library(int NbF) | ||||
{ | { | ||||
int i,j=0; | int i,j=0; | ||||
@@ -342,6 +356,7 @@ void initLib(void) | |||||
addFonP("df_stop",IF_DF_STOP); | addFonP("df_stop",IF_DF_STOP); | ||||
addFonc("?ls",IF_show_stackL); | addFonc("?ls",IF_show_stackL); | ||||
addFonc("?s",IF_show_stack); | addFonc("?s",IF_show_stack); | ||||
/* addFonc("?libX",show_lib_addr); for debugging */ | |||||
addFonc("?libs",IF_show_liball); | addFonc("?libs",IF_show_liball); | ||||
addFonc("?lib",IF_show_libstd); | addFonc("?lib",IF_show_libstd); | ||||
addFonc("?libM",IF_show_libmath); | addFonc("?libM",IF_show_libmath); | ||||
@@ -358,6 +373,10 @@ void initLib(void) | |||||
addFonc("cs_clear",IF_stackC_clear); | addFonc("cs_clear",IF_stackC_clear); | ||||
addFonc("REAL",IF_REAL); | addFonc("REAL",IF_REAL); | ||||
addFonc("INTEGER",IF_INTEGER); | addFonc("INTEGER",IF_INTEGER); | ||||
addFonc("DEC",IF_DEC); | |||||
addFonc("HEX",IF_HEX); | |||||
addFonc("OCT",IF_OCT); | |||||
addFonc("BIN",IF_BIN); | |||||
addFonc("echo_on",IF_ECHOON); | addFonc("echo_on",IF_ECHOON); | ||||
addFonc("echo_off",IF_ECHOFF); | addFonc("echo_off",IF_ECHOFF); | ||||
addFonc("DEBUG_I/O",D_Update); | addFonc("DEBUG_I/O",D_Update); | ||||
@@ -421,6 +440,8 @@ void initLib(void) | |||||
addFonc("about",IF_about); | addFonc("about",IF_about); | ||||
addFonc("vers",IF_vers); | addFonc("vers",IF_vers); | ||||
addFonE("load",IF_Load, F_PROG); | addFonE("load",IF_Load, F_PROG); | ||||
addFonE("dump",IF_Dump, F_PROG); | |||||
addFonE("restore",IF_Restore, F_PROG); | |||||
addFonP("\"load",IF_LoadCS); | addFonP("\"load",IF_LoadCS); | ||||
addFonP("\"exec",IF_ExecCS); | addFonP("\"exec",IF_ExecCS); | ||||
addFonP("\"execf",IF_ExecCSf); | addFonP("\"execf",IF_ExecCSf); | ||||
@@ -38,6 +38,7 @@ struct TH_Base { | |||||
short NbTab; | short NbTab; | ||||
short Vars; | short Vars; | ||||
short FcType; | short FcType; | ||||
short ModePr; | |||||
bool stk_L[LSTACKL]; | bool stk_L[LSTACKL]; | ||||
bool Double; | bool Double; | ||||
bool EchoOff; | bool EchoOff; | ||||
@@ -74,6 +75,7 @@ pthread_key_t | |||||
k_Vars, /* VARS */ | k_Vars, /* VARS */ | ||||
k_FTyp, /* FCT_TYP */ | k_FTyp, /* FCT_TYP */ | ||||
k_Doub, /* Double On/Off */ | k_Doub, /* Double On/Off */ | ||||
k_modPr, /* Mode Print Integer (Dec=0, Hex=1, Oct=2, Bin=3) */ | |||||
k_Run, /* RUN On/Off */ | k_Run, /* RUN On/Off */ | ||||
k_WPid, /* WAITPID On/Off */ | k_WPid, /* WAITPID On/Off */ | ||||
k_fEnC, /* fctEnCours On/Off */ | k_fEnC, /* fctEnCours On/Off */ | ||||
@@ -104,6 +106,7 @@ static void make_keys() | |||||
pthread_key_create(&k_Vars, NULL); | pthread_key_create(&k_Vars, NULL); | ||||
pthread_key_create(&k_FTyp, NULL); | pthread_key_create(&k_FTyp, NULL); | ||||
pthread_key_create(&k_Doub, NULL); | pthread_key_create(&k_Doub, NULL); | ||||
pthread_key_create(&k_modPr, NULL); | |||||
pthread_key_create(&k_Run, NULL); | pthread_key_create(&k_Run, NULL); | ||||
pthread_key_create(&k_WPid, NULL); | pthread_key_create(&k_WPid, NULL); | ||||
pthread_key_create(&k_fEnC, NULL); | pthread_key_create(&k_fEnC, NULL); | ||||
@@ -133,6 +136,7 @@ struct TH_Base * A; | |||||
A->FcType = 0; | A->FcType = 0; | ||||
A->EchoOff = 0; | A->EchoOff = 0; | ||||
A->Double = 0; | A->Double = 0; | ||||
A->ModePr = 0; | |||||
A->Run = 1; | A->Run = 1; | ||||
A->WaitPid = 0; | A->WaitPid = 0; | ||||
A->fctEnC = 0; | A->fctEnC = 0; | ||||
@@ -151,6 +155,7 @@ struct TH_Base * A; | |||||
pthread_setspecific(k_FTyp, (void*)&(A->FcType)); | pthread_setspecific(k_FTyp, (void*)&(A->FcType)); | ||||
pthread_setspecific(k_Echo, (void*)&(A->EchoOff)); | pthread_setspecific(k_Echo, (void*)&(A->EchoOff)); | ||||
pthread_setspecific(k_Doub, (void*)&(A->Double)); | pthread_setspecific(k_Doub, (void*)&(A->Double)); | ||||
pthread_setspecific(k_modPr, (void*)&(A->ModePr)); | |||||
pthread_setspecific(k_StkL, (void*)(A->stk_L)); | pthread_setspecific(k_StkL, (void*)(A->stk_L)); | ||||
pthread_setspecific(k_iStL, (void*)&(A->i_stkL)); | pthread_setspecific(k_iStL, (void*)&(A->i_stkL)); | ||||
pthread_setspecific(k_StkC, (void*)(A->stk_C)); | pthread_setspecific(k_StkC, (void*)(A->stk_C)); | ||||
@@ -184,7 +189,8 @@ int G_EchoOff=0; /* 0 si echo on, 1 si echo off */ | |||||
int G_NBTAB=6; /* nb d'elements de tableau affiches */ | int G_NBTAB=6; /* nb d'elements de tableau affiches */ | ||||
int G_NBLIG=10; /* nb de lignes du stack affichees */ | int G_NBLIG=10; /* nb de lignes du stack affichees */ | ||||
short G_VARS=1, /* 0 VAR_OFF , 1 VAR_DOWN (default), 2 VAR_UP */ | short G_VARS=1, /* 0 VAR_OFF , 1 VAR_DOWN (default), 2 VAR_UP */ | ||||
G_FCT_TYP=0; /* 0 None (default) , 1 Lib Fct , 2 User Fct */ | |||||
G_ModePr=0, /* 0 DEC(default), 1 HEX, 2 OCT, 3 BIN */ | |||||
G_FCT_TYP=0; /* 0 None (default) , 1 Lib Fct , 2 User Fct */ | |||||
void * G_F_INS=VIDE; /* fct lib ou usr a installer */ | void * G_F_INS=VIDE; /* fct lib ou usr a installer */ | ||||
uint32_t G_NetKey=0; | uint32_t G_NetKey=0; | ||||
bool G_stackL[LSTACKL]; | bool G_stackL[LSTACKL]; | ||||
@@ -37,7 +37,7 @@ extern void TH_init(void); | |||||
extern pthread_key_t k_Base, k_StkN, k_FIns, k_NetK, k_NLig, k_NTab, k_Vars, | extern pthread_key_t k_Base, k_StkN, k_FIns, k_NetK, k_NLig, k_NTab, k_Vars, | ||||
k_FTyp, k_Doub, k_Echo, k_StkL, k_iStL, k_StkC, k_iStC, k_bufC, k_Run, | k_FTyp, k_Doub, k_Echo, k_StkL, k_iStL, k_StkC, k_iStC, k_bufC, k_Run, | ||||
k_WPid, k_fEnC, k_sEnC, k_inSP, k_iTs, k_FdIn, k_bufP, k_bufP2, k_trSu, | k_WPid, k_fEnC, k_sEnC, k_inSP, k_iTs, k_FdIn, k_bufP, k_bufP2, k_trSu, | ||||
k_EnvI; | |||||
k_EnvI, k_modPr; | |||||
#define StackN *((void**)pthread_getspecific(k_StkN)) | #define StackN *((void**)pthread_getspecific(k_StkN)) | ||||
#define _MODIF_STACKN_(x) *((void**)pthread_getspecific(k_StkN))=x | #define _MODIF_STACKN_(x) *((void**)pthread_getspecific(k_StkN))=x | ||||
@@ -46,6 +46,9 @@ extern pthread_key_t k_Base, k_StkN, k_FIns, k_NetK, k_NLig, k_NTab, k_Vars, | |||||
#define DOUBLE *((bool*)pthread_getspecific(k_Doub)) | #define DOUBLE *((bool*)pthread_getspecific(k_Doub)) | ||||
#define _MODIF_DOUBLE_(x) *((bool*)pthread_getspecific(k_Doub))=x | #define _MODIF_DOUBLE_(x) *((bool*)pthread_getspecific(k_Doub))=x | ||||
#define MODEPR *((bool*)pthread_getspecific(k_modPr)) | |||||
#define _MODIF_MODEPR_(x) *((bool*)pthread_getspecific(k_modPr))=x | |||||
#define ECHOOFF *((bool*)pthread_getspecific(k_Echo)) | #define ECHOOFF *((bool*)pthread_getspecific(k_Echo)) | ||||
#define _MODIF_ECHOOFF_(x) *((bool*)pthread_getspecific(k_Echo))=x | #define _MODIF_ECHOOFF_(x) *((bool*)pthread_getspecific(k_Echo))=x | ||||
@@ -110,6 +113,7 @@ extern pthread_key_t k_Base, k_StkN, k_FIns, k_NetK, k_NLig, k_NTab, k_Vars, | |||||
extern void * G_StackN; | extern void * G_StackN; | ||||
extern int G_Double; | extern int G_Double; | ||||
extern short G_ModePr; | |||||
extern int G_EchoOff; | extern int G_EchoOff; | ||||
extern int G_NBTAB; | extern int G_NBTAB; | ||||
extern int G_NBLIG; | extern int G_NBLIG; | ||||
@@ -179,6 +183,9 @@ extern jmp_buf G_ENV_INT; | |||||
#define DOUBLE G_Double | #define DOUBLE G_Double | ||||
#define _MODIF_DOUBLE_(x) G_Double=(x) | #define _MODIF_DOUBLE_(x) G_Double=(x) | ||||
#define MODEPR G_ModePr | |||||
#define _MODIF_MODEPR_(x) G_ModePr=(x) | |||||
#define ECHOOFF G_EchoOff | #define ECHOOFF G_EchoOff | ||||
#define _MODIF_ECHOOFF_(x) G_EchoOff=(x) | #define _MODIF_ECHOOFF_(x) G_EchoOff=(x) | ||||
@@ -31,14 +31,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/> | |||||
#include "err.h" | #include "err.h" | ||||
#include "lib.h" | #include "lib.h" | ||||
#include "stackC.h" | #include "stackC.h" | ||||
#include "stackV.h" | |||||
#include "stackF.h" | #include "stackF.h" | ||||
#include "histo.h" | #include "histo.h" | ||||
#include "tasks.h" | #include "tasks.h" | ||||
#include "debug.h" | #include "debug.h" | ||||
#include "help.h" | |||||
#include "net.h" | #include "net.h" | ||||
#include "gplot.h" | #include "gplot.h" | ||||
static char sepa[] = " \t\n"; | static char sepa[] = " \t\n"; | ||||
static int SigOn=0; /* only for interractive task */ | |||||
void putTrSuite(void (*f)(char*)) | void putTrSuite(void (*f)(char*)) | ||||
{ | { | ||||
@@ -81,7 +84,8 @@ int status; | |||||
break; | break; | ||||
case SIGSEGV : | case SIGSEGV : | ||||
printf("Segmentation Error !!\n"); | printf("Segmentation Error !!\n"); | ||||
exit(1); | |||||
termReset(); | |||||
_exit(1); | |||||
break; | break; | ||||
case SIGPIPE : | case SIGPIPE : | ||||
printf("Pipe is broken"); | printf("Pipe is broken"); | ||||
@@ -92,8 +96,10 @@ int status; | |||||
case SIGALRM : | case SIGALRM : | ||||
printf("Compilation"); | printf("Compilation"); | ||||
break; | break; | ||||
case SIGINT : | |||||
if (!SigOn) return; | |||||
default : | default : | ||||
printf("Signal %d",S); | |||||
printf("Signal %d !\n",S); | |||||
break; | break; | ||||
} | } | ||||
siglongjmp(ENV_INT,1); | siglongjmp(ENV_INT,1); | ||||
@@ -127,12 +133,14 @@ PFC tS; | |||||
interInfos("traiteMot",M); | interInfos("traiteMot",M); | ||||
return 1; | return 1; | ||||
} | } | ||||
if (!ITASK) SigOn=1; | |||||
/* printf("traiteMot <%s> iTS=%d\n",M,iTS); */ | /* printf("traiteMot <%s> iTS=%d\n",M,iTS); */ | ||||
tS = getTrSuite(); | tS = getTrSuite(); | ||||
if (tS != (PFC)NULL) tS(M); | if (tS != (PFC)NULL) tS(M); | ||||
else | else | ||||
if (! execLib(M)) { Err=1; messErr2(10,M); } | if (! execLib(M)) { Err=1; messErr2(10,M); } | ||||
if (ITASK) exit(0); /* non interpretation in task ! */ | if (ITASK) exit(0); /* non interpretation in task ! */ | ||||
if (!ITASK) SigOn=0; | |||||
return Err; | return Err; | ||||
} | } | ||||
@@ -198,6 +206,58 @@ int i=0; | |||||
} | } | ||||
} | } | ||||
struct DumpEnt { | |||||
double V; | |||||
char L[4]; | |||||
long Scs; | |||||
}; | |||||
/* Dump and Restore Nblf : Nife Binary Linkable Format */ | |||||
static void restoreFic(char *L) | |||||
{ | |||||
int fd; | |||||
struct DumpEnt E; | |||||
dropTrSuite(); | |||||
if ((fd = open(L,O_RDONLY)) == -1) { | |||||
perror(L); | |||||
messErr(43); | |||||
} else { | |||||
if (read(fd,(void*)&E, sizeof(E)) != sizeof(E)) { | |||||
printf("File too small !\n"); | |||||
messErr(59); | |||||
} else { | |||||
if (strncmp(E.L,"Nblf", 4) == 0) { | |||||
if (E.V == atof(VERSION)) { | |||||
restore_stackV(fd); | |||||
restore_stackF(fd); | |||||
} else printf("This file is just available for Nife v %g !\n",E.V); | |||||
} else printf("Not a NBLF File !\n"); | |||||
close(fd); | |||||
} | |||||
} | |||||
} | |||||
static void dumpFic(char *L) | |||||
{ | |||||
int fd; | |||||
struct DumpEnt E; | |||||
dropTrSuite(); | |||||
if ((fd = open(L,O_CREAT|O_WRONLY,0600)) == -1) { | |||||
perror(L); | |||||
messErr(58); | |||||
} else { | |||||
strncpy(E.L,"Nblf", 4); | |||||
E.V=atof(VERSION); | |||||
E.Scs=(long)getScs(); | |||||
write(fd,(void*)&E, sizeof(E)); | |||||
dump_stackV(fd); | |||||
dump_stackF(fd); | |||||
close(fd); | |||||
} | |||||
} | |||||
static void lectFic(char *L) | static void lectFic(char *L) | ||||
{ | { | ||||
int fd; | int fd; | ||||
@@ -259,6 +319,16 @@ void *C; | |||||
} | } | ||||
} | } | ||||
void IF_Dump(void) | |||||
{ | |||||
putTrSuite(dumpFic); | |||||
} | |||||
void IF_Restore(void) | |||||
{ | |||||
putTrSuite(restoreFic); | |||||
} | |||||
void IF_Load(void) | void IF_Load(void) | ||||
{ | { | ||||
putTrSuite(lectFic); | putTrSuite(lectFic); | ||||
@@ -277,7 +347,12 @@ char *dirW = ".nife"; | |||||
fprintf(stderr,"Nife open-source don't runs on these machine !\n"); | fprintf(stderr,"Nife open-source don't runs on these machine !\n"); | ||||
return(2); | return(2); | ||||
} | } | ||||
signal(SIGQUIT,SIG_IGN); | |||||
signal(SIGABRT,SIG_IGN); | |||||
signal(SIGUSR1,SIG_IGN); | signal(SIGUSR1,SIG_IGN); | ||||
signal(SIGCONT,SIG_IGN); | |||||
signal(SIGSTOP,SIG_IGN); | |||||
signal(SIGTSTP,SIG_IGN); | |||||
signal(SIGINT,Interrupt); | signal(SIGINT,Interrupt); | ||||
signal(SIGTERM,Interrupt); | signal(SIGTERM,Interrupt); | ||||
signal(SIGPIPE,Interrupt); | signal(SIGPIPE,Interrupt); | ||||
@@ -302,8 +377,10 @@ char *dirW = ".nife"; | |||||
if (N==2) { | if (N==2) { | ||||
IF_Load(); | IF_Load(); | ||||
lectFic(P[1]); | lectFic(P[1]); | ||||
} else | |||||
} else { | |||||
printf("Welcome to Nife : Just stack it !\n"); | printf("Welcome to Nife : Just stack it !\n"); | ||||
IF_helpS(); | |||||
} | |||||
while (RUN) { | while (RUN) { | ||||
if ((FD_IN+iTERM) == 0) { | if ((FD_IN+iTERM) == 0) { | ||||
printf("> "); | printf("> "); | ||||
@@ -31,6 +31,8 @@ typedef unsigned char bool; | |||||
extern int isSepa(char c, int m); | extern int isSepa(char c, int m); | ||||
extern void IF_about(void); | extern void IF_about(void); | ||||
extern void IF_Dump(void); | |||||
extern void IF_Restore(void); | |||||
extern void IF_Load(void); | extern void IF_Load(void); | ||||
extern void IF_LoadCS(void); | extern void IF_LoadCS(void); | ||||
extern void * makeFunction(char *S); | extern void * makeFunction(char *S); | ||||
@@ -1,3 +1,4 @@ | |||||
Try "help help" to learn more about Nife. | |||||
" { -- string } | " { -- string } | ||||
begins a string wich is terminated by itself. The first blank is a separator. | begins a string wich is terminated by itself. The first blank is a separator. | ||||
The character \ masks the character " as end of string. | The character \ masks the character " as end of string. | ||||
@@ -195,6 +196,14 @@ | |||||
display the list of constants of the system environment. | display the list of constants of the system environment. | ||||
DEBUG_I/O : | DEBUG_I/O : | ||||
toggle to set debug mode on or off. | toggle to set debug mode on or off. | ||||
DEC : | |||||
sets the default print mode for integers to decimal. | |||||
HEX : | |||||
sets the default print mode for integers to hexadecimal. | |||||
OCT : | |||||
sets the default print mode for integers to octal. | |||||
BIN : | |||||
sets the default print mode for integers to binary. | |||||
INTEGER : | INTEGER : | ||||
sets the default type to INTEGER. | sets the default type to INTEGER. | ||||
NBLIG : [ n -- ] | NBLIG : [ n -- ] | ||||
@@ -260,6 +269,15 @@ false : ( -- false ) | |||||
puts false on the top of the logical stack. | puts false on the top of the logical stack. | ||||
help : | help : | ||||
this help !! Need a word following. | this help !! Need a word following. | ||||
All the words available in Nife are listed with "?libs" command. | |||||
See also "?lib", "?libP", ... for more details. | |||||
For each instruction this help tell you exactly what happens on the stacks : | |||||
[ -- ] for numeric values, | |||||
{ -- } for strings or character alone, | |||||
( -- ) for booleans. | |||||
The "--" represents the execution. So before it, what it's necessary for the | |||||
function (used during execution), and after it what the function products. | |||||
If a stack is not used there is nothing about it. Here, "help" use no stack. | |||||
ls_clear : ( bool1 bool2 ... boolN -- ) | ls_clear : ( bool1 bool2 ... boolN -- ) | ||||
clears the logical stack. | clears the logical stack. | ||||
cs_clear : { str1 ... strn -- } | cs_clear : { str1 ... strn -- } | ||||
@@ -649,5 +667,14 @@ i2c_write : [ Value Offset Address I2C-ID -- ] | |||||
i2c_read : [ Offset Address I2C-ID -- Value ] | i2c_read : [ Offset Address I2C-ID -- Value ] | ||||
read at data-address Offset for chip-address Address of I2C interface I2C-ID. | read at data-address Offset for chip-address Address of I2C interface I2C-ID. | ||||
If Offset equal -1, the read is done directly at Address. | If Offset equal -1, the read is done directly at Address. | ||||
dump : | |||||
dumps all things in Nife. The name of the file must follow this instruction. | |||||
The contents is not in Nife code, but in Nife Binary Linkable Format (NBLF). | |||||
This format depends on Scs key and the version of Nife. That's mean that a such | |||||
file can be used in an environment with same Scs and same Nife version. It does | |||||
not depend on architecture (Intel, ARM, ...) or processor size (32 or 64 bits). | |||||
restore : | |||||
restores a dumped file. The name of the file must follow this instruction. | |||||
See dump for more details. | |||||
@@ -571,7 +571,7 @@ struct Fct * FR; | |||||
switch((Code)*C) { | switch((Code)*C) { | ||||
case T_ONER : | case T_ONER : | ||||
if (noErr()==0) { /* jmp end: */ | if (noErr()==0) { /* jmp end: */ | ||||
if (Ea) C = D+Ea; | |||||
if (Ea>ea) C = D+Ea; | |||||
else C = F; /* to break */ | else C = F; /* to break */ | ||||
} else { | } else { | ||||
if (OnErr==0) { | if (OnErr==0) { | ||||
@@ -1330,4 +1330,58 @@ void IF_debBackC1(void) | |||||
putTrSuite(suiteBackC1); | putTrSuite(suiteBackC1); | ||||
} | } | ||||
void dump_stackF(int fd) | |||||
{ | |||||
long n=0, i, j, v, vi; | |||||
int *av; | |||||
void *Next, *A; | |||||
struct Fct * N; | |||||
char * C, *F, *D; | |||||
Next = stackF; | |||||
while (Next != VIDE) { | |||||
N = (struct Fct*) Next; | |||||
n++; | |||||
Next = N->n; | |||||
} | |||||
write(fd, (void*)&n, sizeof(n)); | |||||
for (i=n; i>0; i--) { | |||||
Next = stackF; | |||||
j=0; | |||||
while (Next != VIDE) { | |||||
N = (struct Fct*) Next; | |||||
j++; | |||||
if (i==j) break; | |||||
Next = N->n; | |||||
} | |||||
write(fd, (void*)&(N->typ), sizeof(N->typ)); | |||||
write(fd, (void*)(N->l), strlen(N->l)+1); | |||||
A = N->c; | |||||
av = (int*)A; | |||||
vi = (long)*av++; /* i */ | |||||
write(fd, (void*)&v, sizeof(v)); | |||||
v = (long)*av++; /* ea */ | |||||
write(fd, (void*)&v, sizeof(v)); | |||||
v = (long)*av++; /* Ea */ | |||||
write(fd, (void*)&v, sizeof(v)); | |||||
C = (char*)A+(3*sizeof(int)); | |||||
D = C; | |||||
F = C+vi; | |||||
} | |||||
} | |||||
void restore_stackF(int fd) | |||||
{ | |||||
long n=0, i; | |||||
short typ; | |||||
char Lib[LDFLT+2], *b; | |||||
if (read(fd, (void*)&n, sizeof(n)) != sizeof(n)) return; | |||||
/* printf("Il y a %ld fonctions !\n",n); */ | |||||
for (i=0; i<n; i++) { | |||||
read(fd, (void*)&typ, sizeof(typ)); | |||||
b=Lib; | |||||
while(*b != '\0') read(fd,++b,1); | |||||
/* printf("Fct %s (%d)\n", Lib+1, typ); */ | |||||
} | |||||
} | |||||
@@ -117,4 +117,7 @@ extern void IF_EXEK(void); | |||||
extern void IF_debBackC(void); | extern void IF_debBackC(void); | ||||
extern void IF_debBackC1(void); | extern void IF_debBackC1(void); | ||||
extern void dump_stackV(int fd); | |||||
extern void restore_stackV(int fd); | |||||
#endif | #endif |
@@ -45,6 +45,21 @@ char * L; | |||||
if (Debug) printf("ON"); else printf("OFF"); | if (Debug) printf("ON"); else printf("OFF"); | ||||
printf("\nDefault type="); | printf("\nDefault type="); | ||||
if (DOUBLE) printf("REAL"); else printf("INTEGER"); | if (DOUBLE) printf("REAL"); else printf("INTEGER"); | ||||
printf("\nPRINT MODE : "); | |||||
switch(MODEPR) { | |||||
case 1 : | |||||
printf("HEX"); | |||||
break; | |||||
case 2 : | |||||
printf("OCT"); | |||||
break; | |||||
case 3 : | |||||
printf("BIN"); | |||||
break; | |||||
default : | |||||
printf("DEC"); | |||||
break; | |||||
} | |||||
printf("\nDefault echo="); | printf("\nDefault echo="); | ||||
if (ECHOOFF) printf("OFF"); else printf("ON"); | if (ECHOOFF) printf("OFF"); else printf("ON"); | ||||
printf("\nNetServer : \"%s\"",NetServer); | printf("\nNetServer : \"%s\"",NetServer); | ||||
@@ -77,6 +92,11 @@ char * L; | |||||
void IF_REAL(void) { _MODIF_DOUBLE_(1); } | void IF_REAL(void) { _MODIF_DOUBLE_(1); } | ||||
void IF_INTEGER(void) { _MODIF_DOUBLE_(0); } | void IF_INTEGER(void) { _MODIF_DOUBLE_(0); } | ||||
void IF_DEC(void) { _MODIF_MODEPR_(0); } | |||||
void IF_HEX(void) { _MODIF_MODEPR_(1); } | |||||
void IF_OCT(void) { _MODIF_MODEPR_(2); } | |||||
void IF_BIN(void) { _MODIF_MODEPR_(3); } | |||||
void IF_ECHOFF(void) { _MODIF_ECHOOFF_(1); } | void IF_ECHOFF(void) { _MODIF_ECHOOFF_(1); } | ||||
void IF_ECHOON(void) { _MODIF_ECHOOFF_(0); } | void IF_ECHOON(void) { _MODIF_ECHOOFF_(0); } | ||||
@@ -313,6 +333,46 @@ void IF_stack_clear(void) | |||||
while (StackN != VIDE) dropElt(); | while (StackN != VIDE) dropElt(); | ||||
} | } | ||||
static printLL(char * F, long long l) | |||||
{ | |||||
char c, buf[68]; | |||||
unsigned long long v; | |||||
int i; | |||||
switch(MODEPR) { | |||||
case 1 : | |||||
c='x'; | |||||
printf("0x"); | |||||
break; | |||||
case 2 : | |||||
c='o'; | |||||
printf("0"); | |||||
break; | |||||
case 3 : | |||||
c='b'; | |||||
break; | |||||
default : | |||||
c='d'; | |||||
} | |||||
if (c =='b') { | |||||
if (l) { | |||||
v = (unsigned long long)l; | |||||
buf[67]='\0'; | |||||
i = 67; | |||||
while (v) { | |||||
i--; | |||||
if (v & 1) buf[i]='1'; | |||||
else buf[i]='0'; | |||||
v >>= 1; | |||||
} | |||||
printf("%s ",buf+i); | |||||
} else printf("0 "); | |||||
} else { | |||||
strcpy(buf,F); | |||||
buf[3]=c; | |||||
printf(buf,l); | |||||
} | |||||
} | |||||
#define ELT_POINT -9 | #define ELT_POINT -9 | ||||
static void printElt(struct Num * N, long I) | static void printElt(struct Num * N, long I) | ||||
{ | { | ||||
@@ -341,13 +401,16 @@ double *d; | |||||
printf("%g (REAL)[%ld]",*(&N->d+(n-1)),n); | printf("%g (REAL)[%ld]",*(&N->d+(n-1)),n); | ||||
} | } | ||||
} else { | } else { | ||||
if (n==1) printf("%lld (INTEGER)",N->l); | |||||
else { | |||||
if (n==1) { | |||||
printLL("%lld ",N->l); | |||||
printf("(INTEGER)"); | |||||
} else { | |||||
l = &N->l; | l = &N->l; | ||||
for(i=0;i<m;i++) printf("%lld ",*l++); | |||||
for(i=0;i<m;i++) printLL("%lld ",*l++); | |||||
if (I==ELT_POINT) return; | if (I==ELT_POINT) return; | ||||
if (n > nt) printf("... "); | if (n > nt) printf("... "); | ||||
printf("%lld (INTEGER)[%ld]",*(&N->l+(n-1)),n); | |||||
printLL("%lld ",*(&N->l+(n-1))); | |||||
printf("(INTEGER)[%ld]",n); | |||||
} | } | ||||
} | } | ||||
if ((IB>0) && (N->t&MSK_V)) printf(" Var. %s",varByAddrA((void*)N)); | if ((IB>0) && (N->t&MSK_V)) printf(" Var. %s",varByAddrA((void*)N)); | ||||
@@ -39,6 +39,10 @@ extern void * duplicateNum(void * S, int vSoff); | |||||
extern void IF_show_stack(void); | extern void IF_show_stack(void); | ||||
extern void IF_ramp(void); | extern void IF_ramp(void); | ||||
extern void IF_dramp(void); | extern void IF_dramp(void); | ||||
extern void IF_DEC(void); | |||||
extern void IF_HEX(void); | |||||
extern void IF_OCT(void); | |||||
extern void IF_BIN(void); | |||||
extern void IF_REAL(void); | extern void IF_REAL(void); | ||||
extern void IF_INTEGER(void); | extern void IF_INTEGER(void); | ||||
extern void IF_ECHOFF(void); | extern void IF_ECHOFF(void); | ||||
@@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/> | |||||
/* stackV.c */ | /* stackV.c */ | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <unistd.h> | |||||
#include <string.h> | #include <string.h> | ||||
#include <strings.h> | #include <strings.h> | ||||
@@ -153,6 +154,44 @@ struct Var * N; | |||||
printf("<end of variable list>\n"); | printf("<end of variable list>\n"); | ||||
} | } | ||||
void dump_stackV(int fd) | |||||
{ | |||||
void * Next, *A; | |||||
char * noms, *pn; | |||||
struct Var * N; | |||||
long n, l, i; | |||||
n=l=0; | |||||
Next = stackV; | |||||
while (Next != VIDE) { | |||||
N = (struct Var*) Next; | |||||
n++; | |||||
l += (strlen(N->l)+1); | |||||
Next = N->n; | |||||
} | |||||
l++; | |||||
write(fd, (void*)&n, sizeof(n)); | |||||
if (n>0) { | |||||
if ((A = malloc(l)) == NULL) stopErr("dump_stackV","malloc"); | |||||
noms = (char*)A; | |||||
pn = noms; | |||||
Next = stackV; | |||||
while (Next != VIDE) { | |||||
N = (struct Var*) Next; | |||||
strcpy(pn,N->l); | |||||
pn += (strlen(N->l)+1); | |||||
Next = N->n; | |||||
} | |||||
/* on remonte la liste */ | |||||
while (pn > noms) { | |||||
pn -= 2; | |||||
while (*pn != '\0') pn--; | |||||
pn++; | |||||
write (fd,pn,strlen(pn)+1); | |||||
} | |||||
free(A); | |||||
} | |||||
} | |||||
static void newVar(char * S) | static void newVar(char * S) | ||||
{ | { | ||||
char Lib[LDFLT+1]; | char Lib[LDFLT+1]; | ||||
@@ -162,6 +201,19 @@ char Lib[LDFLT+1]; | |||||
dropTrSuite(); | dropTrSuite(); | ||||
} | } | ||||
void restore_stackV(int fd) | |||||
{ | |||||
long n=0, i; | |||||
char Lib[LDFLT+2], *b; | |||||
if (read(fd, (void*)&n, sizeof(n)) != sizeof(n)) return; | |||||
*Lib=' '; | |||||
for (i=0; i<n; i++) { | |||||
b=Lib; | |||||
while(*b != '\0') read(fd,++b,1); | |||||
initVar(Lib+1); | |||||
} | |||||
} | |||||
void IF_debVar(void) | void IF_debVar(void) | ||||
{ | { | ||||
putTrSuite(newVar); | putTrSuite(newVar); | ||||
@@ -22,6 +22,8 @@ extern void IF_debVar(void); | |||||
extern void IF_debVarCS(void); | extern void IF_debVarCS(void); | ||||
extern void IF_show_stackV(void); | extern void IF_show_stackV(void); | ||||
extern void IF_delVar(void); | extern void IF_delVar(void); | ||||
extern void dump_stackV(int fd); | |||||
extern void restore_stackV(int fd); | |||||
extern void rmLastVar(void); | extern void rmLastVar(void); | ||||
extern int IF_execVar(char *L); | extern int IF_execVar(char *L); | ||||
extern int isVarChar(void *A); | extern int isVarChar(void *A); | ||||