vgrabbj-0.9.8/0000755000175000017500000000000012226561300010143 500000000000000vgrabbj-0.9.8/NEWS0000644000175000017500000000000012211642746010560 00000000000000vgrabbj-0.9.8/Makefile.in0000644000175000017500000007410512226561260012144 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Copyright (C) 2000, 2001, 2002 Jens Gecius, Hannover, Germany # eMail: devel@gecius.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at you option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, # USA VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/configure $(am__configure_deps) \ $(srcdir)/config.h.in COPYING THANKS TODO compile install-sh \ missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-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 \ tags-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 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" man5dir = $(mandir)/man5 NROFF = nroff MANS = $(man_MANS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_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__post_remove_distdir = $(am__remove_distdir) 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 GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBV4L1_CFLAGS = @LIBV4L1_CFLAGS@ LIBV4L1_LIBS = @LIBV4L1_LIBS@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ 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@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = src #sysconf_DATA = vgrabbj.conf.default EXTRA_DIST = vgrabbj.conf.default $(man_MANS) \ examples/webcam.sh examples/vgrabbj.conf.dexxa \ ChangeLog.svn man_MANS = vgrabbj.1 vgrabbj.conf.5 all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-man5: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man5dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man5dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man5dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.5[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \ done; } uninstall-man5: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man5dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.5[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man5dir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) 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 -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 \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(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) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @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:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(MANS) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: 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: clean-generic: distclean-generic: -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: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-data-local install-man install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-man1 install-man5 install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-local uninstall-man uninstall-man: uninstall-man1 uninstall-man5 .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip 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-data-local install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-man1 install-man5 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-am uninstall uninstall-am \ uninstall-local uninstall-man uninstall-man1 uninstall-man5 install-data-local: #install-sysconfDATA @if test -f $(DESTDIR)$(sysconfdir)/vgrabbj.conf ; then \ echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/vgrabbj.conf" ; \ else \ if ! test -d $(DESTDIR)$(sysconfdir); then \ mkdir $(DESTDIR)$(sysconfdir); \ fi; \ echo "$(INSTALL_DATA) $(srcdir)/vgrabbj.conf.default $(DESTDIR)$(sysconfdir)/vgrabbj.conf" ;\ $(INSTALL_DATA) $(srcdir)/vgrabbj.conf.default $(DESTDIR)$(sysconfdir)/vgrabbj.conf; \ fi uninstall-local: -rm $(DESTDIR)$(sysconfdir)/vgrabbj.conf ChangeLog.svn: -svn2cl --group-by-day --stdout --include-rev --reparagraph | perl -pe \ 's/ ludov/ Ludovic Rousseau/; \ s/ gmaniac/ Jens Gecius/;' \ > $@ # 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. .NOEXPORT: vgrabbj-0.9.8/COPYING0000644000175000017500000004311012211642744011123 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. vgrabbj-0.9.8/configure.ac0000644000175000017500000000657412226561136012374 00000000000000 dnl Copyright (C) 2000, 2001, 2002 Jens Gecius, Hannover, Germany dnl eMail: devel@gecius.de dnl Copyright (C) 2013 Ludovic Rousseau dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at you option) any later version. dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, dnl USA dnl Process this file with autoconf to produce a configure script. AC_INIT([vgrabbj], [0.9.8]) AC_CONFIG_SRCDIR([src/vgrabbj.c]) # For automake AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE AC_ARG_PROGRAM m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) dnl Options AC_ARG_ENABLE(timestamp, [ --enable-timestamp timestamp support]) AC_ARG_ENABLE(ftp, [ --enable-ftp ftp support (automatic upload)]) dnl Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AM_PROG_CC_C_O dnl Checks for libraries and appropriate headers. AC_CHECK_LIB(jpeg, jpeg_set_defaults,, AC_MSG_ERROR([*** jpeg library not found! Please install the appropriate library ***])) AC_CHECK_HEADERS(jpeglib.h,, AC_MSG_ERROR([*** jpeglib.h not found! Please install the appropriate header file ***])) AC_CHECK_LIB(m, main,, AC_MSG_ERROR([*** libm library not found! Please install the appropriate library ***])) AC_CHECK_LIB(png, png_create_info_struct,, AC_MSG_ERROR([*** libpng library not found! Please install the appropriate library ***])) AC_CHECK_HEADERS(png.h,, AC_MSG_ERROR([*** png.h not found! Please install the appropriate header file ***])) if test "$enable_timestamp" != "no"; then AC_CHECK_LIB(ttf, TT_Open_Face,, AC_MSG_WARN([*** libttf library not found! Disabled timestamp feature ***])) AC_CHECK_HEADERS(freetype/freetype.h freetype1/freetype.h,ttf_h=1;break) if test "$ttf_h" != "1"; then AC_MSG_WARN([*** freetype.h not found! Timestamp may be disabled ***]) fi else echo "*** Timestamp disabled" fi AC_CHECK_LIB(z, crc32,, AC_MSG_ERROR([*** libz library not found! Please install the appropriate library ***])) if test "$enable_ftp" != "no"; then AC_CHECK_LIB(ftp, FtpInit,, AC_MSG_WARN([*** ftp library not found! Disabled ftp feature ***])) AC_CHECK_HEADERS(ftplib.h,, AC_MSG_WARN([*** ftplib.h not found! Disabled ftp feature ***])) else echo "*** ftp disabled" fi dnl Checks for other header files. AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h sys/ioctl.h syslog.h unistd.h linux/videodev.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_STRUCT_TM dnl Checks for library functions. AC_PROG_GCC_TRADITIONAL AC_FUNC_STRFTIME PKG_CHECK_MODULES([LIBV4L1], [libv4l1]) AC_DEFINE([SYSCONF_DIR], [], [default configuration file]) if test \"x${prefix}\" = \"xNONE\"; then AC_DEFINE_UNQUOTED(SYSCONF_DIR,"${ac_default_prefix}/etc/vgrabbj.conf") else AC_DEFINE_UNQUOTED(SYSCONF_DIR,"${sysconfdir}/vgrabbj.conf") fi AC_CONFIG_FILES([ Makefile src/Makefile]) AC_OUTPUT vgrabbj-0.9.8/configure0000755000175000017500000057157412226561260012022 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for vgrabbj 0.9.8. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='vgrabbj' PACKAGE_TARNAME='vgrabbj' PACKAGE_VERSION='0.9.8' PACKAGE_STRING='vgrabbj 0.9.8' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="src/vgrabbj.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS LIBV4L1_LIBS LIBV4L1_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG EGREP GREP CPP LN_S am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_timestamp enable_ftp enable_dependency_tracking ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR LIBV4L1_CFLAGS LIBV4L1_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures vgrabbj 0.9.8 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/vgrabbj] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of vgrabbj 0.9.8:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-timestamp timestamp support --enable-ftp ftp support (automatic upload) --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path LIBV4L1_CFLAGS C compiler flags for LIBV4L1, overriding pkg-config LIBV4L1_LIBS linker flags for LIBV4L1, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF vgrabbj configure 0.9.8 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by vgrabbj $as_me 0.9.8, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # For automake ac_config_headers="$ac_config_headers config.h" am__api_version='1.14' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # 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]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # 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 # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` 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 if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi 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 # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='vgrabbj' VERSION='0.9.8' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' # Check whether --enable-timestamp was given. if test "${enable_timestamp+set}" = set; then : enableval=$enable_timestamp; fi # Check whether --enable-ftp was given. if test "${enable_ftp+set}" = set; then : enableval=$enable_ftp; fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # 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. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # 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 # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done 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 gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break 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 ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/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 $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5 $as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; } if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ljpeg $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char jpeg_set_defaults (); int main () { return jpeg_set_defaults (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_jpeg_jpeg_set_defaults=yes else ac_cv_lib_jpeg_jpeg_set_defaults=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5 $as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; } if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBJPEG 1 _ACEOF LIBS="-ljpeg $LIBS" else as_fn_error $? "*** jpeg library not found! Please install the appropriate library ***" "$LINENO" 5 fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in jpeglib.h do : ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" if test "x$ac_cv_header_jpeglib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_JPEGLIB_H 1 _ACEOF else as_fn_error $? "*** jpeglib.h not found! Please install the appropriate header file ***" "$LINENO" 5 fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 $as_echo_n "checking for main in -lm... " >&6; } if ${ac_cv_lib_m_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_main=yes else ac_cv_lib_m_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 $as_echo "$ac_cv_lib_m_main" >&6; } if test "x$ac_cv_lib_m_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" else as_fn_error $? "*** libm library not found! Please install the appropriate library ***" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_info_struct in -lpng" >&5 $as_echo_n "checking for png_create_info_struct in -lpng... " >&6; } if ${ac_cv_lib_png_png_create_info_struct+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpng $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char png_create_info_struct (); int main () { return png_create_info_struct (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_png_png_create_info_struct=yes else ac_cv_lib_png_png_create_info_struct=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_info_struct" >&5 $as_echo "$ac_cv_lib_png_png_create_info_struct" >&6; } if test "x$ac_cv_lib_png_png_create_info_struct" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPNG 1 _ACEOF LIBS="-lpng $LIBS" else as_fn_error $? "*** libpng library not found! Please install the appropriate library ***" "$LINENO" 5 fi for ac_header in png.h do : ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" if test "x$ac_cv_header_png_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PNG_H 1 _ACEOF else as_fn_error $? "*** png.h not found! Please install the appropriate header file ***" "$LINENO" 5 fi done if test "$enable_timestamp" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TT_Open_Face in -lttf" >&5 $as_echo_n "checking for TT_Open_Face in -lttf... " >&6; } if ${ac_cv_lib_ttf_TT_Open_Face+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lttf $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char TT_Open_Face (); int main () { return TT_Open_Face (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ttf_TT_Open_Face=yes else ac_cv_lib_ttf_TT_Open_Face=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ttf_TT_Open_Face" >&5 $as_echo "$ac_cv_lib_ttf_TT_Open_Face" >&6; } if test "x$ac_cv_lib_ttf_TT_Open_Face" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBTTF 1 _ACEOF LIBS="-lttf $LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libttf library not found! Disabled timestamp feature ***" >&5 $as_echo "$as_me: WARNING: *** libttf library not found! Disabled timestamp feature ***" >&2;} fi for ac_header in freetype/freetype.h freetype1/freetype.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF ttf_h=1;break fi done if test "$ttf_h" != "1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** freetype.h not found! Timestamp may be disabled ***" >&5 $as_echo "$as_me: WARNING: *** freetype.h not found! Timestamp may be disabled ***" >&2;} fi else echo "*** Timestamp disabled" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 $as_echo_n "checking for crc32 in -lz... " >&6; } if ${ac_cv_lib_z_crc32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char crc32 (); int main () { return crc32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_z_crc32=yes else ac_cv_lib_z_crc32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 $as_echo "$ac_cv_lib_z_crc32" >&6; } if test "x$ac_cv_lib_z_crc32" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBZ 1 _ACEOF LIBS="-lz $LIBS" else as_fn_error $? "*** libz library not found! Please install the appropriate library ***" "$LINENO" 5 fi if test "$enable_ftp" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FtpInit in -lftp" >&5 $as_echo_n "checking for FtpInit in -lftp... " >&6; } if ${ac_cv_lib_ftp_FtpInit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lftp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char FtpInit (); int main () { return FtpInit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ftp_FtpInit=yes else ac_cv_lib_ftp_FtpInit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftp_FtpInit" >&5 $as_echo "$ac_cv_lib_ftp_FtpInit" >&6; } if test "x$ac_cv_lib_ftp_FtpInit" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBFTP 1 _ACEOF LIBS="-lftp $LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ftp library not found! Disabled ftp feature ***" >&5 $as_echo "$as_me: WARNING: *** ftp library not found! Disabled ftp feature ***" >&2;} fi for ac_header in ftplib.h do : ac_fn_c_check_header_mongrel "$LINENO" "ftplib.h" "ac_cv_header_ftplib_h" "$ac_includes_default" if test "x$ac_cv_header_ftplib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FTPLIB_H 1 _ACEOF else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ftplib.h not found! Disabled ftp feature ***" >&5 $as_echo "$as_me: WARNING: *** ftplib.h not found! Disabled ftp feature ***" >&2;} fi done else echo "*** ftp disabled" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in fcntl.h sys/ioctl.h syslog.h unistd.h linux/videodev.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } if ${ac_cv_struct_tm+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_struct_tm=time.h else ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 $as_echo "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h fi if test $ac_cv_c_compiler_gnu = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 $as_echo_n "checking whether $CC needs -traditional... " >&6; } if ${ac_cv_prog_gcc_traditional+:} false; then : $as_echo_n "(cached) " >&6 else ac_pattern="Autoconf.*'x'" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes else ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi for ac_func in strftime do : ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" if test "x$ac_cv_func_strftime" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRFTIME 1 _ACEOF else # strftime is in -lintl on SCO UNIX. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 $as_echo_n "checking for strftime in -lintl... " >&6; } if ${ac_cv_lib_intl_strftime+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strftime (); int main () { return strftime (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_strftime=yes else ac_cv_lib_intl_strftime=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 $as_echo "$ac_cv_lib_intl_strftime" >&6; } if test "x$ac_cv_lib_intl_strftime" = xyes; then : $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h LIBS="-lintl $LIBS" fi fi done if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBV4L1" >&5 $as_echo_n "checking for LIBV4L1... " >&6; } if test -n "$LIBV4L1_CFLAGS"; then pkg_cv_LIBV4L1_CFLAGS="$LIBV4L1_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1\""; } >&5 ($PKG_CONFIG --exists --print-errors "libv4l1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBV4L1_CFLAGS=`$PKG_CONFIG --cflags "libv4l1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LIBV4L1_LIBS"; then pkg_cv_LIBV4L1_LIBS="$LIBV4L1_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1\""; } >&5 ($PKG_CONFIG --exists --print-errors "libv4l1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBV4L1_LIBS=`$PKG_CONFIG --libs "libv4l1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LIBV4L1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libv4l1" 2>&1` else LIBV4L1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libv4l1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LIBV4L1_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libv4l1) were not met: $LIBV4L1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBV4L1_CFLAGS and LIBV4L1_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LIBV4L1_CFLAGS and LIBV4L1_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else LIBV4L1_CFLAGS=$pkg_cv_LIBV4L1_CFLAGS LIBV4L1_LIBS=$pkg_cv_LIBV4L1_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi $as_echo "#define SYSCONF_DIR /**/" >>confdefs.h if test \"x${prefix}\" = \"xNONE\"; then cat >>confdefs.h <<_ACEOF #define SYSCONF_DIR "${ac_default_prefix}/etc/vgrabbj.conf" _ACEOF else cat >>confdefs.h <<_ACEOF #define SYSCONF_DIR "${sysconfdir}/vgrabbj.conf" _ACEOF fi ac_config_files="$ac_config_files Makefile src/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by vgrabbj $as_me 0.9.8, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ vgrabbj config.status 0.9.8 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf 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" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` 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"` # 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'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi vgrabbj-0.9.8/src/0000755000175000017500000000000012226561300010732 500000000000000vgrabbj-0.9.8/src/Makefile.in0000644000175000017500000010046612226561261012734 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Copyright (C) 2000, 2001, 2002 Jens Gecius, Hannover, Germany # eMail: devel@gecius.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at you option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, # USA VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = vgrabbj$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_vgrabbj_OBJECTS = vgrabbj-vgrabbj.$(OBJEXT) \ vgrabbj-v_config.$(OBJEXT) vgrabbj-font.$(OBJEXT) \ vgrabbj-ccvt_c.$(OBJEXT) vgrabbj-v_ftp.$(OBJEXT) \ vgrabbj-v_writer.$(OBJEXT) vgrabbj-v_utils.$(OBJEXT) \ vgrabbj-v_stamp.$(OBJEXT) vgrabbj_OBJECTS = $(am_vgrabbj_OBJECTS) vgrabbj_DEPENDENCIES = vgrabbj_LINK = $(CCLD) $(vgrabbj_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(vgrabbj_SOURCES) DIST_SOURCES = $(vgrabbj_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBV4L1_CFLAGS = @LIBV4L1_CFLAGS@ LIBV4L1_LIBS = @LIBV4L1_LIBS@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ 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@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ vgrabbj_SOURCES = vgrabbj.c vgrabbj.h v_config.c v_config.h font.c ccvt_c.c ccvt.h v_ftp.c v_ftp.h v_writer.c v_writer.h v_utils.c v_utils.h v_stamp.c v_stamp.h v_plist.h v_options.h vgrabbj_CFLAGS = @LIBV4L1_CFLAGS@ vgrabbj_LDADD = @LIBV4L1_LIBS@ all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @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: @$(NORMAL_UNINSTALL) @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: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) vgrabbj$(EXEEXT): $(vgrabbj_OBJECTS) $(vgrabbj_DEPENDENCIES) $(EXTRA_vgrabbj_DEPENDENCIES) @rm -f vgrabbj$(EXEEXT) $(AM_V_CCLD)$(vgrabbj_LINK) $(vgrabbj_OBJECTS) $(vgrabbj_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vgrabbj-ccvt_c.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vgrabbj-font.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vgrabbj-v_config.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vgrabbj-v_ftp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vgrabbj-v_stamp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vgrabbj-v_utils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vgrabbj-v_writer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vgrabbj-vgrabbj.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` vgrabbj-vgrabbj.o: vgrabbj.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-vgrabbj.o -MD -MP -MF $(DEPDIR)/vgrabbj-vgrabbj.Tpo -c -o vgrabbj-vgrabbj.o `test -f 'vgrabbj.c' || echo '$(srcdir)/'`vgrabbj.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-vgrabbj.Tpo $(DEPDIR)/vgrabbj-vgrabbj.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgrabbj.c' object='vgrabbj-vgrabbj.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-vgrabbj.o `test -f 'vgrabbj.c' || echo '$(srcdir)/'`vgrabbj.c vgrabbj-vgrabbj.obj: vgrabbj.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-vgrabbj.obj -MD -MP -MF $(DEPDIR)/vgrabbj-vgrabbj.Tpo -c -o vgrabbj-vgrabbj.obj `if test -f 'vgrabbj.c'; then $(CYGPATH_W) 'vgrabbj.c'; else $(CYGPATH_W) '$(srcdir)/vgrabbj.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-vgrabbj.Tpo $(DEPDIR)/vgrabbj-vgrabbj.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgrabbj.c' object='vgrabbj-vgrabbj.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-vgrabbj.obj `if test -f 'vgrabbj.c'; then $(CYGPATH_W) 'vgrabbj.c'; else $(CYGPATH_W) '$(srcdir)/vgrabbj.c'; fi` vgrabbj-v_config.o: v_config.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_config.o -MD -MP -MF $(DEPDIR)/vgrabbj-v_config.Tpo -c -o vgrabbj-v_config.o `test -f 'v_config.c' || echo '$(srcdir)/'`v_config.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_config.Tpo $(DEPDIR)/vgrabbj-v_config.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_config.c' object='vgrabbj-v_config.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_config.o `test -f 'v_config.c' || echo '$(srcdir)/'`v_config.c vgrabbj-v_config.obj: v_config.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_config.obj -MD -MP -MF $(DEPDIR)/vgrabbj-v_config.Tpo -c -o vgrabbj-v_config.obj `if test -f 'v_config.c'; then $(CYGPATH_W) 'v_config.c'; else $(CYGPATH_W) '$(srcdir)/v_config.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_config.Tpo $(DEPDIR)/vgrabbj-v_config.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_config.c' object='vgrabbj-v_config.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_config.obj `if test -f 'v_config.c'; then $(CYGPATH_W) 'v_config.c'; else $(CYGPATH_W) '$(srcdir)/v_config.c'; fi` vgrabbj-font.o: font.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-font.o -MD -MP -MF $(DEPDIR)/vgrabbj-font.Tpo -c -o vgrabbj-font.o `test -f 'font.c' || echo '$(srcdir)/'`font.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-font.Tpo $(DEPDIR)/vgrabbj-font.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='font.c' object='vgrabbj-font.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-font.o `test -f 'font.c' || echo '$(srcdir)/'`font.c vgrabbj-font.obj: font.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-font.obj -MD -MP -MF $(DEPDIR)/vgrabbj-font.Tpo -c -o vgrabbj-font.obj `if test -f 'font.c'; then $(CYGPATH_W) 'font.c'; else $(CYGPATH_W) '$(srcdir)/font.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-font.Tpo $(DEPDIR)/vgrabbj-font.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='font.c' object='vgrabbj-font.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-font.obj `if test -f 'font.c'; then $(CYGPATH_W) 'font.c'; else $(CYGPATH_W) '$(srcdir)/font.c'; fi` vgrabbj-ccvt_c.o: ccvt_c.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-ccvt_c.o -MD -MP -MF $(DEPDIR)/vgrabbj-ccvt_c.Tpo -c -o vgrabbj-ccvt_c.o `test -f 'ccvt_c.c' || echo '$(srcdir)/'`ccvt_c.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-ccvt_c.Tpo $(DEPDIR)/vgrabbj-ccvt_c.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ccvt_c.c' object='vgrabbj-ccvt_c.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-ccvt_c.o `test -f 'ccvt_c.c' || echo '$(srcdir)/'`ccvt_c.c vgrabbj-ccvt_c.obj: ccvt_c.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-ccvt_c.obj -MD -MP -MF $(DEPDIR)/vgrabbj-ccvt_c.Tpo -c -o vgrabbj-ccvt_c.obj `if test -f 'ccvt_c.c'; then $(CYGPATH_W) 'ccvt_c.c'; else $(CYGPATH_W) '$(srcdir)/ccvt_c.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-ccvt_c.Tpo $(DEPDIR)/vgrabbj-ccvt_c.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ccvt_c.c' object='vgrabbj-ccvt_c.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-ccvt_c.obj `if test -f 'ccvt_c.c'; then $(CYGPATH_W) 'ccvt_c.c'; else $(CYGPATH_W) '$(srcdir)/ccvt_c.c'; fi` vgrabbj-v_ftp.o: v_ftp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_ftp.o -MD -MP -MF $(DEPDIR)/vgrabbj-v_ftp.Tpo -c -o vgrabbj-v_ftp.o `test -f 'v_ftp.c' || echo '$(srcdir)/'`v_ftp.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_ftp.Tpo $(DEPDIR)/vgrabbj-v_ftp.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_ftp.c' object='vgrabbj-v_ftp.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_ftp.o `test -f 'v_ftp.c' || echo '$(srcdir)/'`v_ftp.c vgrabbj-v_ftp.obj: v_ftp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_ftp.obj -MD -MP -MF $(DEPDIR)/vgrabbj-v_ftp.Tpo -c -o vgrabbj-v_ftp.obj `if test -f 'v_ftp.c'; then $(CYGPATH_W) 'v_ftp.c'; else $(CYGPATH_W) '$(srcdir)/v_ftp.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_ftp.Tpo $(DEPDIR)/vgrabbj-v_ftp.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_ftp.c' object='vgrabbj-v_ftp.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_ftp.obj `if test -f 'v_ftp.c'; then $(CYGPATH_W) 'v_ftp.c'; else $(CYGPATH_W) '$(srcdir)/v_ftp.c'; fi` vgrabbj-v_writer.o: v_writer.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_writer.o -MD -MP -MF $(DEPDIR)/vgrabbj-v_writer.Tpo -c -o vgrabbj-v_writer.o `test -f 'v_writer.c' || echo '$(srcdir)/'`v_writer.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_writer.Tpo $(DEPDIR)/vgrabbj-v_writer.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_writer.c' object='vgrabbj-v_writer.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_writer.o `test -f 'v_writer.c' || echo '$(srcdir)/'`v_writer.c vgrabbj-v_writer.obj: v_writer.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_writer.obj -MD -MP -MF $(DEPDIR)/vgrabbj-v_writer.Tpo -c -o vgrabbj-v_writer.obj `if test -f 'v_writer.c'; then $(CYGPATH_W) 'v_writer.c'; else $(CYGPATH_W) '$(srcdir)/v_writer.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_writer.Tpo $(DEPDIR)/vgrabbj-v_writer.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_writer.c' object='vgrabbj-v_writer.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_writer.obj `if test -f 'v_writer.c'; then $(CYGPATH_W) 'v_writer.c'; else $(CYGPATH_W) '$(srcdir)/v_writer.c'; fi` vgrabbj-v_utils.o: v_utils.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_utils.o -MD -MP -MF $(DEPDIR)/vgrabbj-v_utils.Tpo -c -o vgrabbj-v_utils.o `test -f 'v_utils.c' || echo '$(srcdir)/'`v_utils.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_utils.Tpo $(DEPDIR)/vgrabbj-v_utils.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_utils.c' object='vgrabbj-v_utils.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_utils.o `test -f 'v_utils.c' || echo '$(srcdir)/'`v_utils.c vgrabbj-v_utils.obj: v_utils.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_utils.obj -MD -MP -MF $(DEPDIR)/vgrabbj-v_utils.Tpo -c -o vgrabbj-v_utils.obj `if test -f 'v_utils.c'; then $(CYGPATH_W) 'v_utils.c'; else $(CYGPATH_W) '$(srcdir)/v_utils.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_utils.Tpo $(DEPDIR)/vgrabbj-v_utils.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_utils.c' object='vgrabbj-v_utils.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_utils.obj `if test -f 'v_utils.c'; then $(CYGPATH_W) 'v_utils.c'; else $(CYGPATH_W) '$(srcdir)/v_utils.c'; fi` vgrabbj-v_stamp.o: v_stamp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_stamp.o -MD -MP -MF $(DEPDIR)/vgrabbj-v_stamp.Tpo -c -o vgrabbj-v_stamp.o `test -f 'v_stamp.c' || echo '$(srcdir)/'`v_stamp.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_stamp.Tpo $(DEPDIR)/vgrabbj-v_stamp.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_stamp.c' object='vgrabbj-v_stamp.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_stamp.o `test -f 'v_stamp.c' || echo '$(srcdir)/'`v_stamp.c vgrabbj-v_stamp.obj: v_stamp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -MT vgrabbj-v_stamp.obj -MD -MP -MF $(DEPDIR)/vgrabbj-v_stamp.Tpo -c -o vgrabbj-v_stamp.obj `if test -f 'v_stamp.c'; then $(CYGPATH_W) 'v_stamp.c'; else $(CYGPATH_W) '$(srcdir)/v_stamp.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vgrabbj-v_stamp.Tpo $(DEPDIR)/vgrabbj-v_stamp.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='v_stamp.c' object='vgrabbj-v_stamp.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vgrabbj_CFLAGS) $(CFLAGS) -c -o vgrabbj-v_stamp.obj `if test -f 'v_stamp.c'; then $(CYGPATH_W) 'v_stamp.c'; else $(CYGPATH_W) '$(srcdir)/v_stamp.c'; fi` ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @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 -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 \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: 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: clean-generic: distclean-generic: -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: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS 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 maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS # 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. .NOEXPORT: vgrabbj-0.9.8/src/vgrabbj.c0000644000175000017500000002740612217631217012451 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Copyright (C) 2000, 2001, 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ #include #include int signal_terminate=0; void cleanup(struct vconfig *vconf) { int tmp=vconf->loop; v_update_ptr(vconf); if (vconf->openonce) { free_mmap(vconf); close_device(vconf); } #ifdef LIBTTF if ( vconf->use_ts && vconf->ttinit ) { Face_Done(vconf->ttinit->instance, vconf->ttinit->face); TT_Done_FreeType(vconf->ttinit->engine); } if ( vconf->ttinit ) { vconf->ttinit->properties=free_ptr(vconf->ttinit->properties); vconf->ttinit=free_ptr(vconf->ttinit); } vconf->timestamp=free_ptr(vconf->timestamp); vconf->font=free_ptr(vconf->font); v_error(vconf, LOG_DEBUG, "TrueType engine ended, vars freed"); #endif vconf->buffer=free_ptr(vconf->buffer); vconf->o_buffer=free_ptr(vconf->o_buffer); v_error(vconf, LOG_DEBUG, "Buffers freed"); vconf->tmpout=free_ptr(vconf->tmpout); vconf->in=free_ptr(vconf->in); vconf->out=free_ptr(vconf->out); vconf->conf_file=free_ptr(vconf->conf_file); v_error(vconf, LOG_DEBUG, "vars freed"); vconf=free_ptr(vconf); if ( tmp ) { closelog(); _exit(1); } } /* Event handler for SIGHUP */ /* to re-read the configuration file */ void v_error(struct vconfig *vconf, int msg, const char *fmt, ...) { va_list arg_ptr; static char buf[MAX_ERRORMSG_LENGTH]; /* Loglevels: 0 silent (NONE) 2 severe errors which cause vgrabbj to exit in daemon mode (LOG_CRIT) 3 critical errors which cause vgrabbj to exit in non-daemon mode and retry forever in daemon-mode (with a sleep(1) inbetween) (LOG_ERR) 4 warning conditions (LOG_WARNING) 6 normal information (LOG_INFO) 7 debug information (LOG_DEBUG) Every log-message with a loglevel equal-smaller than LOGLEVEL-Level (supplied via command line, otherwise default=4) will be a) displayed on screen (stderr) if non-daemon b) written to syslog if daemon One exception: In daemon mode, every message before successful fork into background will be written to stderr (if any). */ if ( msg <= vconf->debug ) { va_start(arg_ptr, fmt); vsprintf(buf, fmt, arg_ptr); strcat(buf, "\n"); va_end(arg_ptr); if (vconf->loop && vconf->init_done) { syslog(msg, "%s", buf); if (msg == 3) { sleep(1); } } else { fprintf(stderr, "%s", buf); fflush(stderr); } } /* Decision about exiting is independent of log or not to log */ if ( (vconf->loop && msg < 3) || (msg==3 && vconf->err_count++ > 3600) ) { syslog(LOG_ERR, "Fatal Error (daemon), exiting...\n"); // exit cleanup(vconf); closelog(); _exit(1); } else if ( !vconf->loop && msg < 4 ) { fprintf(stderr, "Fatal Error (non-daemon), exiting...\n"); // exit cleanup(vconf); exit(1); } } /* Get information from v4l device and show them */ void show_capabilities(char *in, char *pname) { struct video_capability cap; struct video_window win; struct video_picture pic; int dev; if ( (dev = v4l1_open(in, O_RDONLY)) < 0 ) { fprintf(stderr, "Can't open device %s\n", in); exit(1); } if (v4l1_ioctl(dev, VIDIOCGCAP, &cap) < 0) { fprintf(stderr, "Can't get capabilities of device %s\n", in); exit(1); } if (v4l1_ioctl(dev, VIDIOCGPICT, &pic) < 0) { fprintf(stderr, "Can't get picture properties of device %s\n", in); exit(1); } if (v4l1_ioctl(dev, VIDIOCGWIN, &win) < 0) { fprintf(stderr, "Can't get overlay values of device %s\n", in); exit(1); } fprintf(stderr,"%s, Version %s\n" "Videodevice name: %s (%s)\n" "Capabilities\n" "Type : %d\tValues can be looked up at videodev.h\n" "Channels : %d\n" "Audio : %d\n" "MaxWidth : %d\n" "MaxHeight: %d\n" "MinWidth : %d\n" "MinHeigth: %d\n" "\nCurrent Settings:\n" "Brightness: %d\n" "Hue : %d\n" "Color : %d\n" "Contrast : %d\n" "Whiteness : %d\n" "Depth : %d\n" "Palette : %s (%d)\n" "Width : %d\n" "Height : %d\n" "Chromakey : %d\n", basename(pname), VERSION, in, cap.name, cap.type, cap.channels, cap.audios, cap.maxwidth, cap.maxheight, cap.minwidth, cap.minheight, pic.brightness, pic.hue, pic.colour, pic.contrast, pic.whiteness, pic.depth, plist[pic.palette].name, pic.palette, win.width, win.height, win.chromakey); dev=v4l1_close(dev); if (dev) fprintf(stderr, "Error occured while closing %s\n", in); exit(0); } /* Read the image from device, adjust brightness, if wanted, for RGB24 */ static char *read_image(struct vconfig *vconf, int size) { int f, newbright; int err_count; int discard=vconf->discard; v_error(vconf, LOG_DEBUG, "Palette to be used: %s (%d), size: %d", plist[vconf->vpic.palette].name, vconf->vpic.palette, img_size(vconf, vconf->vpic.palette)); /* Opening input device */ if ( !vconf->openonce ) { open_device(vconf); /* and Re-initialize the palette, in case someone changed it meanwhile */ while (v4l1_ioctl(vconf->dev, VIDIOCSPICT, &vconf->vpic) < 0 ) v_error(vconf, LOG_ERR, "Device %s couldn't be reset to known palette %s", vconf->in, vconf->vpic.palette); if (vconf->windowsize) while (v4l1_ioctl(vconf->dev, VIDIOCSWIN, &vconf->win) ) v_error(vconf, LOG_ERR, "Problem setting window size"); // exit set_picture_parms(vconf); } /* Read image via read() */ if (!vconf->usemmap) { if (vconf->autobrightness) v_error(vconf, LOG_INFO, "Forced to use brightness adj. - using read()"); else v_error(vconf, LOG_INFO, "Could not get mmap-buffer - Falling back to read()"); do { err_count=0; if (vconf->autobrightness && vconf->vpic.palette==VIDEO_PALETTE_RGB24) { v_error(vconf, LOG_INFO, "Doing brightness adjustment"); do { while (v4l1_read(vconf->dev, vconf->buffer, size) < size) v_error(vconf, LOG_ERR, "Error reading from %s", vconf->in); f = brightness_adj(vconf, &newbright); if (f) { vconf->vpic.brightness += (newbright << 8); if (v4l1_ioctl(vconf->dev, VIDIOCSPICT, &vconf->vpic)==-1) v_error(vconf, LOG_WARNING, "Problem setting brightness"); err_count++; if (err_count>100) { v_error(vconf, LOG_WARNING, "Brightness not optimal"); break; } } } while (f); v_error(vconf, LOG_INFO, "Brightness adjusted"); } else { v_error(vconf, LOG_DEBUG, "Using normal read for image grabbing"); v4l1_read(vconf->dev, vconf->buffer, size); } } while (discard--); /* We're reading the image via a mmap'd area of the driver */ } else { v_error(vconf, LOG_DEBUG, "Using mmap for image grabbing"); if (!vconf->openonce) init_mmap(vconf); do { err_count=0; do { if (err_count++>100) { v_error(vconf, LOG_ERR, "Could not grab frame (100 tries)"); break; } } while (v4l1_ioctl(vconf->dev, VIDIOCMCAPTURE, &vconf->vmap) < 0); err_count=0; do { if (err_count++>100) { v_error(vconf, LOG_ERR, "Could not sync with frame (100 tries)"); break; } } while (v4l1_ioctl(vconf->dev, VIDIOCSYNC, &vconf->vmap.frame) < 0); vconf->buffer=memcpy(vconf->buffer, vconf->map+vconf->vbuf.offsets[vconf->vmap.frame], size); if (discard) v_error(vconf, LOG_DEBUG, "%d frames to discard", discard); } while (discard--); if (!vconf->openonce) free_mmap(vconf); } v_error(vconf, LOG_DEBUG, "Image successfully read"); if (!vconf->openonce) close_device(vconf); return vconf->buffer; } static char *conv_image(struct vconfig *vconf) { unsigned long i,j; switch (vconf->vpic.palette) { case VIDEO_PALETTE_RGB24: vconf->o_buffer=memcpy(vconf->o_buffer, vconf->buffer, vconf->win.width * vconf->win.height * 3); v_error(vconf, LOG_DEBUG, "No conversion, we have RGB24"); break; case VIDEO_PALETTE_GREY: for(i=0 ;i<(vconf->win.width * vconf->win.height * 1) ;i++) { for(j=0 ;j<3 ;j++) { vconf->o_buffer[(3*i)+j] = vconf->buffer[i]; } } v_error(vconf, LOG_DEBUG, "Got GREY, converting..."); break; case VIDEO_PALETTE_RGB32: v_error(vconf, LOG_INFO, "Got RGB32, converting..."); vconf->o_buffer=conv_rgb32_rgb24(vconf); break; case VIDEO_PALETTE_YUV420P: v_error(vconf, LOG_INFO, "Got YUV420p, converting..."); ccvt_420p_bgr24(vconf->win.width, vconf->win.height, vconf->buffer, vconf->buffer + (vconf->win.width * vconf->win.height), vconf->buffer + (vconf->win.width * vconf->win.height)+ (vconf->win.width * vconf->win.height / 4), vconf->o_buffer); break; case VIDEO_PALETTE_YUV420: v_error(vconf, LOG_INFO, "Got YUV420, converting..."); ccvt_420i_rgb24(vconf->win.width, vconf->win.height, vconf->buffer, vconf->o_buffer); break; case VIDEO_PALETTE_YUYV: case VIDEO_PALETTE_YUV422: v_error(vconf, LOG_INFO, "Got YUYV, converting..."); ccvt_yuyv_bgr24(vconf->win.width, vconf->win.height, vconf->buffer, vconf->o_buffer); break; case VIDEO_PALETTE_UYVY: v_error(vconf, LOG_INFO, "Got UYVY, converting..."); ccvt_uyvy_bgr24(vconf->win.width, vconf->win.height, vconf->buffer, vconf->o_buffer); break; default: v_error(vconf, LOG_CRIT, "Should not happen - Unknown input image format"); break; } if (vconf->vpic.palette!=VIDEO_PALETTE_RGB24) v_error(vconf, LOG_DEBUG, "converted to RGB24"); if (vconf->switch_bgr) { vconf->o_buffer=switch_color(vconf); v_error(vconf, LOG_DEBUG, "Switched from BGR to RGB - or vice versa"); } return vconf->o_buffer; } /* Main loop */ int main(int argc, char *argv[]) { struct vconfig *vconf=NULL; #ifdef DEBUGGING mtrace(); #endif vconf=v_init(vconf, argc, argv); if (vconf->loop && (!vconf->nofork) ) daemonize(vconf, basename(argv[0])); else v_error(vconf, LOG_WARNING, "Reading image from %s", vconf->in); // now start the loop (if daemon), read image and convert it, if necessary do { vconf->buffer=read_image(vconf, img_size(vconf, vconf->vpic.palette)); vconf->o_buffer = conv_image(vconf); if (vconf->swaprl) vconf->o_buffer=swap_left_right(vconf->o_buffer, vconf->win.width, vconf->win.height); if (vconf->swaptb) vconf->o_buffer=swap_top_bottom(vconf->o_buffer, vconf->win.width, vconf->win.height); #ifdef LIBTTF if (vconf->use_ts) vconf->o_buffer=inserttext(vconf->ttinit, vconf->o_buffer, vconf); #endif write_image(vconf); vconf->err_count=0; usleep(vconf->loop); // We got a signal, we do have to... switch (signal_terminate) { case 0: // No signal received break; case SIGTERM: // We got sigkill, cleanup (for daemon mode) and exit signal_terminate=0; cleanup(vconf); break; case SIGHUP: // We got sighup, re-read the config-file (do NOT parse commandline) signal_terminate=0; vconf=v_reinit(vconf); break; default: v_error(vconf, LOG_DEBUG, "Unknown signal received, ignoring."); break; } } while (vconf->loop); cleanup(vconf); exit(0); } vgrabbj-0.9.8/src/font.c0000644000175000017500000001557012217631217012001 00000000000000/* * font.c * * Copyright (C) 2000 Rasca, Berlin * EMail: thron@gmx.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * USA. */ #ifdef HAVE_CONFIG_H #include #endif #include #ifdef LIBTTF #define ERROR -1 #define DPI 76 #define TT_VALID(x) ((x).z != NULL) typedef struct _ttfont { TT_Face face; TT_Face_Properties props; TT_Instance inst; int smooth; } ttfont; static unsigned char bounded_palette[8] = {0, 1, 2, 3, 4, 4, 4, 4}; /* */ int Face_Open (char *file, TT_Engine engine, TT_Face *face, TT_Face_Properties *prop, TT_Instance *inst, int ptsize) { if (TT_Open_Face (engine, file, face)) { return ERROR; } TT_Get_Face_Properties (*face, prop); TT_New_Instance (*face, inst); TT_Set_Instance_Resolutions (*inst, DPI, DPI); TT_Set_Instance_CharSize (*inst, ptsize*64); return 0; } /* * release the resources for the instance and the face */ void Face_Done (TT_Instance inst, TT_Face face) { TT_Done_Instance (inst); TT_Close_Face (face); } /* */ TT_Glyph * Glyphs_Load (TT_Face face, TT_Face_Properties *prop, TT_Instance inst, char *str, int len) { unsigned short n, i; unsigned short platform, encoding; unsigned short num_glyphs = 0, num_cmap = 0; unsigned short load_flags, j, code; TT_CharMap char_map; TT_Glyph *gl; n = prop->num_CharMaps; for (i = 0; i < n; i++) { TT_Get_CharMap_ID (face, i, &platform, &encoding); if ((platform == 3 && encoding == 1) || (platform == 0 && encoding == 0)) { TT_Get_CharMap (face, i, &char_map); break; } } if (i == n) { num_cmap = 1; num_glyphs = prop->num_Glyphs; } gl = (TT_Glyph *) malloc (256 * sizeof (TT_Glyph)); memset (gl, 0, 256 * sizeof (TT_Glyph)); load_flags = TTLOAD_SCALE_GLYPH; for (i = 0; i < len; i++) { j = str[i]; if (TT_VALID(gl[j])) continue; if (num_cmap) { code = (j - ' ' + 1) < 0? 0 : (j - ' ' + 1); if (code >= num_glyphs) code = 0; } else { code = TT_Char_Index (char_map, j); } TT_New_Glyph (face, &gl[j]); TT_Load_Glyph (inst, gl[j], code, load_flags); } return gl; } /* */ void Glyphs_Done (TT_Glyph *gl) { int i; if (!gl) return; for (i = 0; i < 256; i++) { TT_Done_Glyph (gl[i]); } free (gl); } /* */ void Raster_Init (TT_Face face, TT_Face_Properties *prop, TT_Instance inst, char *str, int len, int border, TT_Glyph *gl, TT_Raster_Map *bit) { TT_Instance_Metrics imetrics; int upm, ascent, descent; int width, height, i, j; TT_Glyph_Metrics gmetrics; TT_Get_Instance_Metrics (inst, &imetrics); upm = prop->header->Units_Per_EM; ascent = (prop->horizontal->Ascender * imetrics.y_ppem) / upm; descent= (prop->horizontal->Descender * imetrics.y_ppem) / upm; width = 2 * border; height= 2 * border + ascent - descent; for (i = 0; i < len; i++) { j = str[i]; if (!TT_VALID(gl[j])) continue; TT_Get_Glyph_Metrics (gl[j], &gmetrics); width += gmetrics.advance / 64; } bit->rows = height; bit->width= width; bit->cols= (width + 3) & -4; /* for pixmap, must be 32-bits aligned */ bit->flow = TT_Flow_Down; bit->size = bit->rows * bit->cols; bit->bitmap = malloc (bit->size); if (bit->bitmap) memset (bit->bitmap, 0, bit->size); } /* */ void Raster_Done (TT_Raster_Map *bit) { free (bit->bitmap); bit->bitmap = NULL; } /* */ void Raster_Small_Init (TT_Raster_Map *map, TT_Instance *inst) { TT_Instance_Metrics metrics; TT_Get_Instance_Metrics (*inst, &metrics); map->rows = metrics.y_ppem + 32; map->width= metrics.x_ppem + 32; map->cols = (map->width + 3) & -4; map->flow = TT_Flow_Up; map->size = (long)map->rows * map->cols; map->bitmap = malloc ((int)map->size); } /* */ void Bitmap_Clear (TT_Raster_Map *map) { if (map && map->bitmap) memset (map->bitmap, 0, map->size); } /* */ void Render_Glyph (TT_Glyph g, TT_Glyph_Metrics *gm, int x_offset, int y_offset, TT_Raster_Map *bit, TT_Raster_Map *sbit) { TT_F26Dot6 x, y, xmin, ymin, xmax, ymax; int ioff, iread; char *off, *read, *off2, *read2; xmin = gm->bbox.xMin & -64; ymin = gm->bbox.yMin & -64; xmax = (gm->bbox.xMax+63) & -64; ymax = (gm->bbox.yMax+63) & -64; Bitmap_Clear (sbit); if (TT_Get_Glyph_Pixmap (g, sbit, -xmin, -ymin)) return; xmin = (xmin >> 6) + x_offset; ymin = (ymin >> 6) + y_offset; xmax = (xmax >> 6) + x_offset; ymax = (ymax >> 6) + y_offset; if (xmin >= (int)bit->width || ymin >= (int)bit->rows || xmax < 0 || ymax < 0) return; if (xmax - xmin + 1 > sbit->width) xmax = xmin + sbit->width - 1; if (ymax - ymin + 1 > sbit->rows) ymax = ymin + sbit->rows - 1; iread = 0; if (ymin < 0) { iread -= ymin * sbit->cols; ioff = 0; ymin = 0; } else { ioff = ymin * bit->cols; } if (ymax >= bit->rows) ymax = bit->rows-1; if (xmin < 0) { iread -= xmin; xmin = 0; } else { ioff += xmin; } if (xmax >= bit->width) xmax = bit->width - 1; read2 = (char *)sbit->bitmap + iread; off2 = (char *)bit->bitmap + ioff; for (y = ymin; y <= ymax; y++) { read = read2; off = off2; for (x = xmin; x <= xmax; x++) { *off = bounded_palette[*off | *read]; off++; read++; } read2 += sbit->cols; off2 += bit->cols; } } /* */ unsigned char * Render_String (TT_Glyph *gl, char *str, int len, TT_Raster_Map *bit, TT_Raster_Map *sbit, int border) { int i, j; TT_F26Dot6 x, y, z, min_x, min_y, max_x, max_y; TT_Glyph_Metrics gmetrics; min_x = min_y = 0; max_x = max_y = 0; x = 0; y = 0; for (i = 0; i < len; i++) { j = str[i]; if (!TT_VALID(gl[j])) continue; TT_Get_Glyph_Metrics (gl[j], &gmetrics); z = x + gmetrics.bbox.xMin; if (min_x > z) min_x = z; z = x + gmetrics.bbox.xMax; if (max_x < z) max_x = z; z = y + gmetrics.bbox.yMin; if (min_y > z) min_y = z; z = y + gmetrics.bbox.yMax; if (max_y < z) max_y = z; x += gmetrics.advance & -64; } min_x = (min_x & -64) >> 6; min_y = (min_y & -64) >> 6; max_x = ((max_x + 63) & -64) >> 6; max_y = ((max_y + 63) & -64) >> 6; max_x -= min_x; max_y -= min_y; min_x = (bit->width - max_x + 2) / 2; min_y = (bit->rows - max_y + 4) / 2; max_x += min_x; max_y += min_y; /* */ x = min_x; y = min_y; for (i = 0; i < len; i++) { j = str[i]; if (!TT_VALID(gl[j])) continue; TT_Get_Glyph_Metrics (gl[j], &gmetrics); Render_Glyph (gl[j], &gmetrics, x, y, bit, sbit); x += gmetrics.advance / 64; } return NULL; } #endif vgrabbj-0.9.8/src/v_ftp.c0000644000175000017500000001003412217631217012137 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Copyright (C) 2000, 2001 Robert Wessels, Hengelo, The Netherlands * eMail: techie@GrassAndCows.eu.org * Certain Changes (C) 2001 Jens Gecius, devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ #include "v_ftp.h" #ifdef LIBFTP static char mode = 'I'; static netbuf *conn = NULL; void ftp_upload(struct vconfig *vconf){ switch(vconf->ftp.state){ case STATE_UNINITIALIZED: FtpInit(); vconf->ftp.state = STATE_CONNECT; v_error(vconf, LOG_INFO, "ftp state 0: upload initialized"); ftp_upload(vconf); break; case STATE_CONNECT: if(conn) FtpClose(conn); if(FtpConnect( vconf->ftp.remoteHost, &conn)){ if (vconf->ftp.passive) { FtpOptions(FTPLIB_CONNMODE, FTPLIB_PASSIVE, conn); } else { FtpOptions(FTPLIB_CONNMODE, FTPLIB_PORT, conn); } vconf->ftp.state = STATE_LOGIN; v_error(vconf, LOG_INFO, "ftp state 1: connection successfull"); } else { v_error(vconf, LOG_WARNING, "ftp state 1: connection failed with reason: %s", FtpLastResponse(conn)); return; } ftp_upload(vconf); break; case STATE_LOGIN: if(FtpLogin( vconf->ftp.username, vconf->ftp.password, conn)){ vconf->ftp.state = STATE_CHDIR; v_error(vconf, LOG_INFO, "ftp state 2: login successfull"); } else { v_error(vconf, LOG_WARNING, "ftp state 2: login failed with reason: %s", FtpLastResponse(conn)); return; } ftp_upload(vconf); break; case STATE_CHDIR: if (vconf->ftp.remoteDir) { if(FtpChdir(vconf->ftp.remoteDir, conn)){ vconf->ftp.state = STATE_PUT; v_error(vconf, LOG_INFO, "ftp state 3: chdir successfull"); } else { v_error(vconf, LOG_WARNING, "ftp state 3: chdir failed with reason: %s", FtpLastResponse(conn)); return; } } else { vconf->ftp.state = STATE_PUT; v_error(vconf, LOG_INFO, "fpt state 3: no chdir"); } ftp_upload(vconf); break; case STATE_PUT: if(FtpPut(vconf->out, "vgrabbj.tmp", mode, conn)){ vconf->ftp.state = STATE_RENAME; v_error(vconf, LOG_INFO, "ftp state 4: image upload successfull"); } else { v_error(vconf, LOG_WARNING, "ftp state 4: image upload failed with reason: %s", FtpLastResponse(conn)); return; } ftp_upload(vconf); break; case STATE_RENAME: if(FtpDelete(vconf->ftp.remoteImageName, conn)){ v_error(vconf, LOG_INFO, "ftp state 5: delete previous image completed"); } else { v_error(vconf, LOG_WARNING, "ftp state 5: delete previous image failed"); } if(FtpRename("vgrabbj.tmp", vconf->ftp.remoteImageName, conn)){ vconf->ftp.state = STATE_FINISH; v_error(vconf, LOG_INFO, "ftp state 5: rename image successfull"); } else { v_error(vconf, LOG_WARNING, "ftp state 5: rename image failed with reason %s",FtpLastResponse(conn)); return; } ftp_upload(vconf); break; case STATE_FINISH: if(vconf->loop && vconf->ftp.keepalive){ vconf->ftp.state = STATE_PUT; } else { if (conn) FtpClose(conn); vconf->ftp.state = STATE_CONNECT; } v_error(vconf, LOG_INFO, "ftp state 6: upload complete"); break; default: /* this should never happen */ if(conn) FtpClose(conn); vconf->ftp.state = STATE_CONNECT; break; } return; } #endif vgrabbj-0.9.8/src/v_config.c0000644000175000017500000006245112217631217012625 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Copyright (C) 2001, 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ /* Functions to parse the (optional) config file, or command */ /* line options, print out help information */ #include "v_config.h" /* Usage information */ static void usage (char *pname) { fprintf(stderr, "%s, Version %s\n" "Usage: %s [options]\n" " -h This screen\n" " -c parse as config file\n" " -l Daemonize & sleep (min. 1!) between images\n" " -L Daemonize & sleep between images\n" " -a Switch vgrabbj's auto brightness adjustment (default: off)\n" " You might need to set -F 4, too, if it doesn't work\n" " -q Quality setting (%d-%d, default: %d), JPEG only\n" " -i \n" " Sets the imagesize of input device to sqcif=128x96,\n" " qsif=160x120, qcif=176x144, sif=320x240, cif=352x288,\n" " vga=640x480, svga=800x600, xga=1024x768, sxga=1280x1024, or\n" " uxga=1600x1200 (default: %dx%d)\n" " -w Set imagesize to individual width (needs -H)\n" " -H Set imagesize to individual height (needs -W)\n" " Be careful! These settings supersede any other setting of\n" " the imagesize and may damage your hardware!!\n" " The values are NOT checked to be valid!!!!\n" " -o Output format (default: jpg)\n" " -f Write to (default: %s)\n" " -d Read from as input (default: %s)\n" " -C Open device permanently instead of opening for each image\n" " -g Disable setting of image-size, necessary for certain cams\n" " (e.g. IBM USB-Cam, QuickCam)\n" " -s See capabilities of \n" " -S Switch BGR colormap to RGB colormap (try if colors are odd)\n" #ifdef LIBTTF " -t Full path to the font file\n" " (default: %s)\n" " -T Font-size (min. %d, max. %d, default: %d)\n" " -p Definable timestamp format (see man strftime)\n" " (default: \"%s\")\n" " *MUST* be with \" and \" !\n" " -P <0|1|2|3|4|5> Alignment of timestamp: 0=upper left, 1=upper right,\n" " 2=lower left, 3=lower right, 4=upper center, 5=lower center\n" " you still have to enable the timestamp (default: %d) \n" " -m Blending of timestamp on original image (%d-%d, default: %d)\n" " %d = most original, %d = no original image \"behind\" timestamp\n" " -B Border of timestamp to be blended around string in pixel\n" " (%d-%d, default: %d)\n" " -e enable timestamp with defaults (default: disabled)\n" " if any other timestamp option is given, it is enabled\n" #endif " -D <0|2|3|4|6|7> Set log/debug-level (%d=silent, %d=debug, default: %d)\n" " -n Do write directly to the output file (if not %s)\n" " instead of using a tmp-file and copying it to the output file\n" " -V Display version information and exit\n" " -F Force usage of specified palette (see videodev.h for values)\n" " (Fallback to supported palette, if this one is not supported\n" " Value 4 refers to RGB24, you need this for the brightness\n" " adjustment.\n" " -z Discards frames before the actual picture is taken\n" " and written to the output. Only works in mmap'ed mode.\n" " -A Path and filename to write archive images. See man strftime\n" " for possible tokens.\n" " -M Maximum number of images to keep in archive.\n" " -E Take a snapshot for the archive each image.\n" " -R Swap left/right like a mirror.\n" " -U Swap top/bottom like a mirror.\n" " -G Do not use mmap'ed memory - needed only for certain cams\n" " -X Do not fork in daemon mode, good for testing/debbuging\n" " -Z 'commands' Execute after each image.\n" " First occurence of %%s will be replaced by filename.\n" "\n" "Example: %s -l 5 -f /usr/local/image.jpg\n" " Would write a single jpeg-image to image.jpg approx. every five seconds\n" "\n" "The video stream has to be one of RGB24, RGB32, YUV420, YUV420P, YUYV or UYVY.\n", basename(pname), VERSION, basename(pname), MIN_QUALITY, MAX_QUALITY, DEFAULT_QUALITY, DEFAULT_WIDTH, DEFAULT_HEIGHT, DEFAULT_OUTPUT, DEFAULT_VIDEO_DEV, #ifdef LIBTTF DEFAULT_FONT, MIN_FONTSIZE, MAX_FONTSIZE, DEFAULT_FONTSIZE, DEFAULT_TIMESTAMP, DEFAULT_ALIGN, MIN_BLEND, MAX_BLEND, DEFAULT_BLEND, MIN_BLEND, MAX_BLEND, MIN_BORDER, MAX_BORDER, DEFAULT_BORDER, #endif MIN_DEBUG, MAX_DEBUG, LOGLEVEL, DEFAULT_OUTPUT, basename(pname)); exit (1); } #if DEBUGGING void debug_vconf(struct vconfig *vconf) { fprintf(stderr, "Values of char* in vconf:\n" "vconf->in :%s*\nvconf->out :%s*\n" "vconf->timestamp :%s*\nvconf->font :%s*\n" "vconf->ftp.remoteHost :%s*\nvconf->ftp.remoteDir :%s*\n" "vconf->ftp.remoteImageName:%s*\nvconf->ftp.username :%s*\n" "vconf->ftp.password :%s*\nvconf->commands :%s*\n", vconf->in, vconf->out, vconf->timestamp, vconf->font, vconf->ftp.remoteHost, vconf->ftp.remoteDir, vconf->ftp.remoteImageName, vconf->ftp.username, vconf->ftp.password); } #endif /* struct v_options *init_conf_list(struct v_options *conf) { struct v_options *list; struct v_options *list_start; int i; list=malloc(sizeof(list)); list_start=list; for (i=0; l_opt[i].name||l_opt[i].shortname; i++) { list.name=l_opt[i].name; list.short_name=l_opt[i].short_name; list.has_arg=l_opt[i].has_arg; list.var=decode_options(struct vconfig *vconf, char *option, char *value, int o, int n) //decode default options!!! list.var=l_opt[i].default; list.var_type=l_opt[i].var_type; list.min_value=l_opt[i].min_value; list.max_value=l_opt[i].max_value; list.max_length=l_opt[i].max_length; list.default=l_opt[i].default; list.next=malloc(sizeof(list)); list=list.next; } free(list.next); list.next=list_start; return (list_start); } Some development, not release-ready... */ static struct vconfig *init_defaults(struct vconfig *vconf) { int idx = 0; /* Set defaults */ memset(vconf, 0, sizeof(*vconf)); vconf->debug = LOGLEVEL; vconf->quality = DEFAULT_QUALITY; vconf->in = strcpy(malloc(strlen(DEFAULT_VIDEO_DEV)+1),DEFAULT_VIDEO_DEV); vconf->out = strcpy(malloc(strlen(DEFAULT_OUTPUT)+1),DEFAULT_OUTPUT); vconf->conf_file = strcpy(malloc(strlen(DEFAULT_CONFIG)+1),DEFAULT_CONFIG); vconf->win.height = DEFAULT_HEIGHT; vconf->win.width = DEFAULT_WIDTH; vconf->outformat = DEFAULT_OUTFORMAT; vconf->autobrightness = DEFAULT_BRIGHTNESS; vconf->switch_bgr = FALSE; vconf->windowsize = TRUE; vconf->loop = 0; vconf->use_ts = FALSE; vconf->init_done = FALSE; vconf->err_count = 0; vconf->dev = 0; vconf->forcepal = 0; vconf->discard = 0; vconf->usemmap = TRUE; vconf->openonce = TRUE; vconf->usetmpout = TRUE; vconf->swaprl = FALSE; vconf->swaptb = FALSE; vconf->nousemmap = FALSE; vconf->tmpout = NULL; vconf->buffer = NULL; vconf->o_buffer = NULL; vconf->map = NULL; l_opt[idx++].var = &vconf->debug; l_opt[idx++].var = &vconf->loop; l_opt[idx++].var = &vconf->loop; l_opt[idx++].var = &vconf->autobrightness; l_opt[idx++].var = &vconf->quality; idx += 1; /* Image Size */ l_opt[idx++].var = &vconf->win.width; l_opt[idx++].var = &vconf->win.height; l_opt[idx++].var = &vconf->outformat; l_opt[idx++].var = (char *)vconf->out; l_opt[idx++].var = (char *)vconf->in; l_opt[idx++].var = &vconf->openonce; l_opt[idx++].var = &vconf->switch_bgr; l_opt[idx++].var = &vconf->windowsize; l_opt[idx++].var = &vconf->discard; l_opt[idx++].var = &vconf->forcepal; l_opt[idx++].var = &vconf->usetmpout; l_opt[idx++].var = &vconf->use_ts; #ifdef LIBTTF vconf->ttinit = NULL; vconf->font = strcpy(malloc(strlen(DEFAULT_FONT)+1),DEFAULT_FONT); vconf->timestamp = strcpy(malloc(strlen(DEFAULT_TIMESTAMP)+1),DEFAULT_TIMESTAMP); vconf->font_size = DEFAULT_FONTSIZE; vconf->border = DEFAULT_BORDER; vconf->align = DEFAULT_ALIGN; vconf->blend = DEFAULT_BLEND; l_opt[idx++].var = (char *)vconf->font; l_opt[idx++].var = (char *)vconf->timestamp; l_opt[idx++].var = &vconf->font_size; l_opt[idx++].var = &vconf->align; l_opt[idx++].var = &vconf->blend; l_opt[idx++].var = &vconf->border; #endif #ifdef LIBFTP vconf->ftp.enable = FALSE; vconf->ftp.state = 0; vconf->ftp.keepalive = FALSE; vconf->ftp.remoteHost = NULL; vconf->ftp.remoteDir = NULL; vconf->ftp.remoteImageName = NULL; vconf->ftp.username = NULL; vconf->ftp.password = NULL; vconf->ftp.tryharder = 0; vconf->ftp.passive = FALSE; l_opt[idx++].var = &vconf->ftp.enable; l_opt[idx++].var = (char *)vconf->ftp.remoteHost; l_opt[idx++].var = (char *)vconf->ftp.remoteImageName; l_opt[idx++].var = (char *)vconf->ftp.username; l_opt[idx++].var = (char *)vconf->ftp.password; l_opt[idx++].var = &vconf->ftp.keepalive; l_opt[idx++].var = &vconf->ftp.tryharder; l_opt[idx++].var = (char *)vconf->ftp.remoteDir; l_opt[idx++].var = &vconf->ftp.passive; #endif idx += 4; vconf->hue = -1; l_opt[idx++].var = &vconf->hue; vconf->brightness = -1; l_opt[idx++].var = &vconf->brightness; vconf->contrast = -1; l_opt[idx++].var = &vconf->contrast; vconf->colour = -1; l_opt[idx++].var = &vconf->colour; vconf->whiteness = -1; l_opt[idx++].var = &vconf->whiteness; vconf->archive = NULL; l_opt[idx++].var = (char *)vconf->archive; vconf->arch = malloc(sizeof(struct s_arch)); vconf->arch->filename = NULL; vconf->arch->next = NULL; vconf->archiveeach = 0; vconf->archivemax = 0; l_opt[idx++].var = &vconf->archiveeach; l_opt[idx++].var = &vconf->archivemax; l_opt[idx++].var = &vconf->swaprl; l_opt[idx++].var = &vconf->nousemmap; l_opt[idx++].var = &vconf->swaptb; vconf->nofork = FALSE; l_opt[idx++].var = &vconf->nofork; vconf->commands = NULL; l_opt[idx++].var = (char *)vconf->commands; if ( idx != sizeof(l_opt)/sizeof(l_opt[0])-1 ) { v_error(vconf, LOG_CRIT, "Bug in l_opt - contact developer with full debug details."); } return vconf; } static void check_files(struct vconfig *vconf) { /* This function is for checking to make sure that all the file * information in vconf is right. It's called after all configs are * done. Input from Michael Janssen. */ int dev; FILE *x; if ( (dev=v4l1_open(vconf->in, O_RDONLY)) < 0) { v_error(vconf, LOG_CRIT, "Can't open \"%s\" as VideoDevice!: %s", vconf->in, strerror(errno)); } else { v4l1_close(dev); } if ( !(x=fopen(vconf->out, "w+"))) { v_error(vconf, LOG_CRIT, "Can't open \"%s\" as OutputFile: %s", vconf->out, strerror(errno)); } else { fclose(x); } #ifdef LIBTTF if (vconf->use_ts) { if (!(x=fopen(vconf->font, "r"))) { v_error(vconf, LOG_CRIT, "Can't open \"%s\" as FontFile!: %s", vconf->font, strerror(errno)); } else { fclose(x); } } #endif } #ifdef LIBFTP static void check_ftpconf(struct vconfig *vconf) { /* This function checks for proper settings if ftp-enable is set to on In case any essential setting is not set to a proper value, ftp-enable will be disabled automagically */ if (vconf->ftp.enable) { if ( (!vconf->ftp.remoteHost) | (!vconf->ftp.remoteImageName) | (!vconf->ftp.username) ) { v_error(vconf, LOG_ERR, "ftp settings do not meet minimum requirements"); v_error(vconf, LOG_ERR, "check remoteHost, remoteImageName, and Username in config"); v_error(vconf, LOG_ERR, "ftp-upload disabled"); vconf->ftp.enable=FALSE; } } } #endif /* Initialize/Reinitialize pointers for archive-filenames */ static struct s_arch *init_archive(struct vconfig *vconf, struct s_arch *archive, int count) { archive=realloc(archive, sizeof(struct s_arch)); archive->filename=NULL; archive->next=NULL; // v_error(vconf, LOG_DEBUG, "setup of archive structure (%s)",vconf->arch); if ( count-->1 ) archive->next=init_archive(vconf, archive->next, count); else archive->next=vconf->arch; return archive; } /* Check if palette is supported by v4l device */ static int try_palette(struct vconfig *vconf, int palette, int dev) { v_error(vconf, LOG_INFO, "Trying palette %s", plist[palette].name); vconf->vpic.palette=palette; if (v4l1_ioctl(dev, VIDIOCSPICT, &vconf->vpic) < 0) { v_error(vconf, LOG_WARNING, "Unable to set palette"); return 0; } if (v4l1_ioctl(dev, VIDIOCGPICT, &vconf->vpic) < 0) { v_error(vconf, LOG_WARNING, "Unable to get palette info"); return 0; } if (vconf->vpic.palette == palette) return palette; return 0; } /* Check and set v4l device */ static struct vconfig *check_device(struct vconfig *vconf) { struct video_window twin; open_device(vconf); v_error(vconf, LOG_INFO, "Checking settings of device %s", vconf->in); while (v4l1_ioctl(vconf->dev, VIDIOCGCAP, &vconf->vcap) < 0) v_error(vconf, LOG_ERR, "Problem getting video capabilities"); if ( (vconf->vcap.maxwidth < (int)vconf->win.width) || (vconf->vcap.minwidth > (int)vconf->win.width) || (vconf->vcap.maxheight < (int)vconf->win.height) || (vconf->vcap.minheight > (int)vconf->win.height) ) { v_error(vconf, LOG_NOTICE, "Device %d <= width <= %d, %d <= height <= %d, desired image size = %dx%d\n", vconf->vcap.minwidth, vconf->vcap.maxwidth, vconf->vcap.minheight, vconf->vcap.maxheight, vconf->win.width, vconf->win.height); v_error(vconf, LOG_CRIT, "Device doesn't support width/height"); } while (v4l1_ioctl(vconf->dev, VIDIOCGWIN, &twin)) v_error(vconf, LOG_ERR, "Problem getting window information"); vconf->win.flags=0;/*twin.flags;*/ vconf->win.x=twin.x; vconf->win.y=twin.y; vconf->win.chromakey=twin.chromakey; if (vconf->windowsize) while (v4l1_ioctl(vconf->dev, VIDIOCSWIN, &vconf->win) ) v_error(vconf, LOG_ERR, "Problem setting window size"); while (v4l1_ioctl(vconf->dev, VIDIOCGWIN, &vconf->win) <0) v_error(vconf, LOG_ERR, "Problem getting window size"); while (v4l1_ioctl(vconf->dev, VIDIOCGPICT, &vconf->vpic) < 0) v_error(vconf, LOG_ERR, "Problem getting picture properties"); /* HERE we actually TRY to get a palette the device delivers. * PROBLEM is that V4L does NOT provide a function to query available * palettes for the device! Hence, this util has to rely on try-and-error * to find a palette suitable. * Currently, only palettes below are supported directly. * If it is a different one, it has to be one of those tested below - simply because * I have no other conversion routines on hand. * If this prog does not work with your device, please blame someone else for * an insufficient V4L implementation. * Sorry for the inconvenience! */ if (vconf->forcepal) if ( (vconf->vpic.palette=try_palette(vconf, vconf->forcepal, vconf->dev)) ) v_error(vconf, LOG_INFO, "Set palette successfully to %s", plist[vconf->vpic.palette].name); switch(vconf->vpic.palette) { case VIDEO_PALETTE_RGB24: case VIDEO_PALETTE_YUV420P: case VIDEO_PALETTE_YUV420: case VIDEO_PALETTE_YUYV: case VIDEO_PALETTE_YUV422: /* equal to YUYV with my cam */ case VIDEO_PALETTE_GREY: case VIDEO_PALETTE_RGB32: case VIDEO_PALETTE_UYVY: break; default: if ( (vconf->vpic.palette=try_palette(vconf, VIDEO_PALETTE_RGB24, vconf->dev)) || (vconf->vpic.palette=try_palette(vconf, VIDEO_PALETTE_RGB32, vconf->dev)) || (vconf->vpic.palette=try_palette(vconf, VIDEO_PALETTE_YUYV, vconf->dev)) || (vconf->vpic.palette=try_palette(vconf, VIDEO_PALETTE_YUV420, vconf->dev)) || (vconf->vpic.palette=try_palette(vconf, VIDEO_PALETTE_YUV420P, vconf->dev))|| (vconf->vpic.palette=try_palette(vconf, VIDEO_PALETTE_UYVY, vconf->dev)) ) ; else v_error(vconf, LOG_CRIT, "Unable to set supported video-palette"); break; } v_error(vconf, LOG_DEBUG, "Set palette successfully to %s", plist[vconf->vpic.palette].name); if ( (v4l1_ioctl(vconf->dev, VIDIOCGMBUF, &vconf->vbuf) < 0) || ((vconf->autobrightness) && (vconf->vpic.palette==VIDEO_PALETTE_RGB24)) || (vconf->nousemmap) ) vconf->usemmap=FALSE; set_picture_parms(vconf); if (!vconf->openonce) close_device(vconf); return vconf; } void v_update_ptr(struct vconfig *vconf) { int i=9; vconf->out=(char *)l_opt[i++].var; vconf->in=(char *)l_opt[i++].var; i=i+7; #ifdef LIBTTF vconf->font=(char *)l_opt[i++].var; vconf->timestamp=(char *)l_opt[i++].var; i=i+4; #endif #ifdef LIBFTP i++; vconf->ftp.remoteHost=(char *)l_opt[i++].var; vconf->ftp.remoteImageName=(char *)l_opt[i++].var; vconf->ftp.username=(char *)l_opt[i++].var; vconf->ftp.password=(char *)l_opt[i++].var; i++;i++; vconf->ftp.remoteDir=(char *)l_opt[i++].var; i++; #endif i+=9; vconf->archive=(char *)l_opt[i++].var; i+=6; vconf->commands=(char *)l_opt[i].var; v_error(vconf, LOG_DEBUG, "Updated pointers to new allocated memory."); } /* Decode options */ static void decode_options(struct vconfig *vconf, char *option, char *value, int o, int n) { int i; for (i=0;l_opt[i].name || l_opt[i].short_name; i++) { if ( (l_opt[i].name && !strcasecmp(option, l_opt[i].name) && !o) || (l_opt[i].short_name && o==*l_opt[i].short_name) ) { switch (l_opt[i].var_type) { case opt_int: *(int *)l_opt[i].var=(int)check_minmax(vconf, value, get_int(value), n, l_opt[i]); break; case opt_longint: *(long *)l_opt[i].var=check_minmax(vconf, value, get_int(value), n, l_opt[i]); break; case opt_int_s: *(long *)l_opt[i].var=check_minmax(vconf, value, get_int(value), n, l_opt[i])*1000000; break; case opt_bool: *(boolean *)l_opt[i].var=check_minmax(vconf, value, n?get_bool(value):!*(boolean *)l_opt[i].var, n, l_opt[i]) ? TRUE : FALSE; break; case opt_charptr: l_opt[i].var=check_maxlen(vconf, get_str(value, (char *)l_opt[i].var), l_opt[i], n); break; case opt_format: *(int *)l_opt[i].var=(int)check_minmax(vconf, value, get_format(value), n, l_opt[i]); break; case opt_size: vconf->win.width= (int)check_minmax(vconf, value, get_width(value), n, l_opt[i]); vconf->win.height=(int)check_minmax(vconf, value, get_height(value),n, l_opt[i]); break; case opt_position: *(int *)l_opt[i].var=(int)check_minmax(vconf, value, get_position(value), n, l_opt[i]); break; case opt_conf: if (vconf->conf_file) v_error(vconf, LOG_DEBUG, "Overwriting old conf (%s) settings with new conf (%s)", vconf->conf_file, optarg); vconf->conf_file=get_str(optarg, vconf->conf_file); parse_config(vconf); break; case opt_version: fprintf(stderr, "%s %s\n", option, VERSION); exit(0); break; case opt_help: usage (option); break; case opt_setting: vconf->in=get_str(optarg, vconf->in); open_device(vconf); close_device(vconf); show_capabilities(vconf->in, option); break; default: v_error(vconf, LOG_WARNING, "Unknown option %s (line %d), shouldn't happen", value, n); break; } } } } /* Parse a config-file for options */ struct vconfig *parse_config(struct vconfig *vconf){ int n=0;//, i=0; char line[MAX_LINE]; char *option=NULL, *value=NULL, *p=NULL; FILE *fd; /* Check for config file */ if (! (fd = fopen(vconf->conf_file, "r") ) ) { v_error(vconf, LOG_WARNING, "Could not open configfile %s, ignoring: %s", vconf->conf_file, strerror(errno)); return vconf; } /* read every line */ v_error(vconf, LOG_INFO, "Starting to read arguments from file %s", vconf->conf_file); while (fgets(line, sizeof(line), fd)) { n++; p=line; /* hide comments */ line[strcspn(line, "#")]='\0'; line[strcspn(line, ";")]='\0'; line[strcspn(line, "\n")]='\0'; option=strcpy(malloc(strlen(line)+1), line); if ( (strlen(option)>1) && (p=strpbrk(option," \t")) ) { *p='\0'; p++; /* Strip whitespace */ value=strip_white(strcpy(malloc(strlen(p)+1),p)); decode_options(vconf, option, value, 0, n); } free_ptr(option); } v_update_ptr(vconf); fclose(fd); #if DEBUGGING debug_vconf(vconf); #endif v_error(vconf, LOG_INFO, "Done parsing config file %s", vconf->conf_file); return(vconf); } static char *build_opt(struct v_options ll_opt[]) { int i, n=0; char string[255]; for (i=0; ll_opt[i].name || ll_opt[i].short_name; i++ ) { if (ll_opt[i].short_name) { string[n++]=*ll_opt[i].short_name; if (ll_opt[i].has_arg==req) string[n++]=':'; } } string[n]='\0'; return (strcpy(malloc(strlen(string)+1), string)); } /* Parse the commandline */ static struct vconfig *parse_commandline(struct vconfig *vconf, int argc, char *argv[]) { int n; //, i; char *opt_str; opt_str=build_opt(l_opt); while ( (n = getopt (argc, argv, opt_str) ) !=EOF ) { decode_options(vconf, argv[0], optarg, n, 0); } free_ptr(opt_str); v_update_ptr(vconf); v_error(vconf, LOG_INFO, "Done parsing commandline"); return vconf; } struct vconfig *v_init(struct vconfig *vconf, int argc, char *argv[]) { if (!vconf) { vconf=malloc(sizeof(*vconf)); vconf=init_defaults(vconf); } else if (vconf->openonce) { free_mmap(vconf); close_device(vconf); } if (!vconf->init_done) { signal(SIGTERM,sigterm); signal(SIGHUP,sighup); } vconf=parse_config(vconf); if ( !vconf->init_done ) { vconf=parse_commandline(vconf, argc, argv); } if ( (strcasecmp(vconf->out, DEFAULT_OUTPUT)) && vconf->usetmpout ) { vconf->tmpout=free_ptr(vconf->tmpout); vconf->tmpout=malloc(strlen(vconf->out)+6); sprintf(vconf->tmpout, "%s.tmp", vconf->out); v_error(vconf, LOG_DEBUG, "Setting tmpout file to %s", vconf->tmpout); } else { vconf->usetmpout=FALSE; } check_files(vconf); #ifdef LIBFTP check_ftpconf(vconf); #endif vconf=check_device(vconf); /* re/initialize appropriate memory */ if (vconf->init_done) v_error(vconf, LOG_DEBUG, "Reinitializing memory"); else v_error(vconf, LOG_DEBUG, "Initializing memory"); vconf->buffer=free_ptr(vconf->buffer); vconf->o_buffer=free_ptr(vconf->o_buffer); vconf->buffer=malloc(img_size(vconf, vconf->vpic.palette)); /* depending on palette */ vconf->o_buffer=malloc(img_size(vconf, VIDEO_PALETTE_RGB24)); /* RGB24 (3 byte/pixel) */ if (!vconf->buffer || !vconf->o_buffer) v_error(vconf, LOG_CRIT, "Out of memory! Exiting..."); if (vconf->archive && vconf->archivemax) { vconf->arch->next=init_archive(vconf, vconf->arch->next, vconf->archivemax-1); vconf->archivecount=vconf->archiveeach; } v_error(vconf, LOG_DEBUG, "Memory initialized, size: %d (in), %d (out)", img_size(vconf, vconf->vpic.palette), img_size(vconf, VIDEO_PALETTE_RGB24)); vconf->vmap.height=vconf->win.height; vconf->vmap.width=vconf->win.width; vconf->vmap.frame=0; vconf->vmap.format=vconf->vpic.palette; if (vconf->openonce) { init_mmap(vconf); } #ifdef LIBTTF if ( vconf->init_done ) { if ( vconf->use_ts ) { Face_Done(vconf->ttinit->instance, vconf->ttinit->face); } } else { vconf->ttinit = malloc(sizeof(*vconf->ttinit)); vconf->ttinit->properties = malloc(sizeof(*vconf->ttinit->properties)); if ( !vconf->ttinit->properties || !vconf->ttinit ) { v_error(vconf, LOG_WARNING, "No memory for timestamp, disabled!"); vconf->use_ts=FALSE; } else v_error(vconf, LOG_DEBUG, "Allocated memory for TT-engine"); } if (vconf->use_ts && !vconf->init_done) if (TT_Init_FreeType(&vconf->ttinit->engine)) { v_error(vconf, LOG_WARNING, "Could not initialize Font-Engine, timestamp disabled"); vconf->use_ts=FALSE; } if (vconf->use_ts) { #if DEBUGGING debug_vconf(vconf); #endif OpenFace(vconf); } #endif return vconf; } vgrabbj-0.9.8/src/v_ftp.h0000644000175000017500000000157612217631217012157 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Copyright (C) 2002, Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ #include "vgrabbj.h" vgrabbj-0.9.8/src/Makefile.am0000644000175000017500000000205512217631217012715 00000000000000# # Copyright (C) 2000, 2001, 2002 Jens Gecius, Hannover, Germany # eMail: devel@gecius.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at you option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, # USA bin_PROGRAMS = vgrabbj vgrabbj_SOURCES = vgrabbj.c vgrabbj.h v_config.c v_config.h font.c ccvt_c.c ccvt.h v_ftp.c v_ftp.h v_writer.c v_writer.h v_utils.c v_utils.h v_stamp.c v_stamp.h v_plist.h v_options.h vgrabbj_CFLAGS = @LIBV4L1_CFLAGS@ vgrabbj_LDADD = @LIBV4L1_LIBS@ vgrabbj-0.9.8/src/v_writer.c0000644000175000017500000002000212217631217012656 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Copyright (C) 2001, 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ /* Functions to write the output to something */ #include "v_writer.h" /* Function to write output data to a temporary file and then copy * it to the final location via system-call to avoid problems with * "same-time" access to the output file */ /* Write image as jpeg to FILE */ static int write_jpeg(struct vconfig *vconf, char *buffer, FILE *x) { char *line; int n, i, line_width; unsigned int y; struct jpeg_compress_struct cjpeg; struct jpeg_error_mgr jerr; JSAMPROW row_ptr[1]; line=malloc(vconf->win.width * 3); if (!line) v_error(vconf, LOG_CRIT, "OUT OF MEMORY, Exiting..."); // exit cjpeg.err = jpeg_std_error(&jerr); jpeg_create_compress (&cjpeg); cjpeg.image_width = vconf->win.width; cjpeg.image_height= vconf->win.height; cjpeg.input_components = 3; cjpeg.in_color_space = JCS_RGB; jpeg_set_defaults (&cjpeg); jpeg_set_quality (&cjpeg, vconf->quality, TRUE); cjpeg.dct_method = JDCT_FASTEST; jpeg_stdio_dest (&cjpeg, x); jpeg_start_compress (&cjpeg, TRUE); row_ptr[0]=(JSAMPROW)line; line_width=vconf->win.width * 3; n=0; for (y = 0; y < vconf->win.height; y++) { for (i = 0; i< line_width; i+=3) { line[i] = buffer[n+2]; line[i+1] = buffer[n+1]; line[i+2] = buffer[n]; n+=3; } jpeg_write_scanlines (&cjpeg, row_ptr, 1); } jpeg_finish_compress (&cjpeg); jpeg_destroy_compress (&cjpeg); free(line); return(0); } /* Write image as png to FILE */ static int write_png(struct vconfig *vconf, char *image, FILE *x) { unsigned int y; png_bytep rowpointers[vconf->win.height]; png_infop info_ptr; png_structp png_ptr = png_create_write_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (!png_ptr) return(1); info_ptr = png_create_info_struct (png_ptr); if (!info_ptr) { png_destroy_write_struct(&png_ptr, (png_infopp)NULL); return(1); } if (setjmp(png_jmpbuf(png_ptr))) { /* If we get here, we had a problem reading the file */ png_destroy_write_struct(&png_ptr, &info_ptr); return (1); } png_init_io (png_ptr, x); png_set_IHDR (png_ptr, info_ptr, vconf->win.width, vconf->win.height, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); png_write_info (png_ptr, info_ptr); for (y = 0; y < vconf->win.height; y++) { rowpointers[y] = (png_bytep)(image + y*vconf->win.width*3); } png_write_image(png_ptr, rowpointers); png_write_end (png_ptr, info_ptr); png_destroy_write_struct (&png_ptr, &info_ptr); return(0); } /* Write image as ppm to FILE */ static int write_ppm(struct vconfig *vconf, char *image, FILE *x) { fprintf(x,"P6\n%d %d\n255\n",vconf->win.width,vconf->win.height); fwrite(image,vconf->win.height,3*vconf->win.width,x); return(0); } FILE *open_outfile(char *filename) { FILE * x; int err_count=0; while ( (!(x = fopen(filename, "w+"))) && (!(err_count++ > 200)) ) usleep(25000); if (err_count>200) { return 0; } return x; } static int copy_file(char *source_name, char *dest_name) { FILE *source, *dest; char buffer[1024]; size_t nitems; dest = open_outfile(dest_name); source = fopen (source_name, "r"); if (NULL == source || NULL == dest){ return -1; } while (!feof(source)) { nitems = fread(buffer, 1, sizeof buffer, source); if (fwrite(buffer, 1, nitems, dest) != nitems) return -1; } /* And now, close the files */ fclose (source); fclose (dest); return 0; } /* Function to write an image, called by main */ void write_image(struct vconfig *vconf) { FILE *x; char *commands; char *cmd_file; int err; // v_error(vconf, LOG_DEBUG, "vconf->out = %s", vconf->out); if ( (x = open_outfile(vconf->usetmpout?vconf->tmpout:vconf->out)) ) { switch (vconf->outformat) { case 1: while (write_jpeg(vconf, vconf->o_buffer, x)) v_error(vconf, LOG_ERR, "Could not write outputfile %s", vconf->out); break; case 2: while (write_png(vconf, vconf->o_buffer, x)) v_error(vconf, LOG_ERR, "Could not write outputfile %s", vconf->out); break; case 3: while (write_ppm(vconf, vconf->o_buffer, x)) v_error(vconf, LOG_ERR, "Could not write outputfile %s", vconf->out); break; default: // should never happen v_error(vconf, LOG_CRIT, "Unknown outformat %d (should not happen!!)", vconf->outformat); break; } fclose(x); if (vconf->commands) { cmd_file=strstr(vconf->commands,"%s"); if (cmd_file != NULL) { char * out = vconf->usetmpout ? vconf->tmpout : vconf->out; commands = malloc(strlen(vconf->commands)+strlen(out)+1); if (commands) { strcpy(commands,vconf->commands); strcpy(strstr(commands,"%s"),out); strcpy((char *)commands+strlen(commands),(char *)cmd_file+1); sprintf(commands,vconf->commands,out); v_error(vconf, LOG_DEBUG, "User command expanded to (%s)", commands); } else { v_error(vconf, LOG_ERR, "Memory error: User command (%s) not run", vconf->commands); } } else { commands = vconf->commands; } err = system(commands); v_error(vconf, err ? LOG_WARNING : LOG_DEBUG, "User command (%s) exit with error %i", commands, err); if (commands && (commands != vconf->commands)) { free(commands); commands = NULL; } } if ( vconf->usetmpout ) { /* Handle rename to final output */ v_error(vconf, LOG_DEBUG, "Temporary outputfile %s closed", vconf->tmpout); if (unlink(vconf->out)) v_error(vconf, LOG_ERR, "Couldn't delete %s: %s", vconf->out, strerror(errno)); if (-1 == link(vconf->tmpout, vconf->out)) v_error(vconf, LOG_ERR, "Couldn't link %s to %s: %s", vconf->tmpout, vconf->out, strerror(errno)); else v_error(vconf, LOG_DEBUG, "Temporary output %s moved to final destination %s", vconf->tmpout, vconf->out); if (unlink(vconf->tmpout)) v_error(vconf, LOG_ERR, "Couldn't delete %s: %s", vconf->tmpout, strerror(errno)); } else { v_error(vconf, LOG_DEBUG, "Outputfile %s closed", vconf->out); } if ((--vconf->archivecount==0) && (vconf->archive)) { /* vconf->archive is a strftime format string, make the final path * to archive_path */ char *ts; if (-1 == copy_file(vconf->out, (ts=timestring(vconf->archive))) ) v_error(vconf, LOG_ERR, "Couldn't link to archive file %s", ts); else v_error(vconf, LOG_DEBUG, "Archiving %s to %s", vconf->out, ts); if (vconf->arch->filename) { v_error(vconf, LOG_DEBUG, "Have to delete %s", vconf->arch->filename); if (unlink(vconf->arch->filename)) v_error(vconf, LOG_ERR, "Couldn't delete %s: %s", vconf->arch->filename, strerror(errno)); } vconf->arch->filename=strcpy(realloc(vconf->arch->filename, strlen(ts)+1),ts); v_error(vconf, LOG_DEBUG, "Unlinked old arch-file, realocated new one (%s)", vconf->arch->filename); free_ptr(ts); vconf->archivecount=vconf->archiveeach; vconf->arch=vconf->arch->next; v_error(vconf, LOG_DEBUG, "Changed ptr to next filename (%s)", vconf->arch->filename); } #ifdef LIBFTP if(vconf->ftp.enable == TRUE) ftp_upload(vconf); #endif } else v_error(vconf, LOG_ERR, "Could not open outfile %s", vconf->usetmpout?vconf->tmpout:vconf->out); return; } vgrabbj-0.9.8/src/ccvt_c.c0000644000175000017500000002705412217631217012274 00000000000000/* Colour conversion routines (RGB <-> YUV) in plain C (C) 2000 Nemosoft Unv. nemosoft@smcc.demon.nl (C) 2001 added 420p, LIMIT(x) jens@gecius.de This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "ccvt.h" #define PUSH_RGB24 1 #define PUSH_BGR24 2 #define PUSH_RGB32 3 #define PUSH_BGR32 4 /* this is a shameless copy from ov511.c to limit the resulting rgb-values to [0..255]. */ #define LIMIT(x) ( (x) > 0xffff ? 0xff : ( (x) <= 0xff ? 0 : ( (x) >> 8 ) ) ) /* This is a really simplistic approach. Speedups are welcomed. */ static void ccvt_420i(int width, int height, unsigned char *src, unsigned char *dst, int push) { int line, col, linewidth; int y, u, v, yy, vr, ug, vg, ub; int r, g, b; unsigned char *py, *pu, *pv; linewidth = width + (width >> 1); py = src; pu = py + 4; pv = pu + linewidth; y = *py; yy = y << 8; u = *pu - 128; ug = 88 * u; ub = 454 * u; v = *pv - 128; vg = 183 * v; vr = 359 * v; /* The biggest problem is the interlaced data, and the fact that odd and even lines have V and U data, resp. */ for (line = 0; line < height; line++) { for (col = 0; col < width; col++) { r = LIMIT(yy + vr); g = LIMIT(yy - ug - vg); b = LIMIT(yy + ub ); switch(push) { case PUSH_RGB24: *dst++ = r; *dst++ = g; *dst++ = b; break; case PUSH_BGR24: *dst++ = b; *dst++ = g; *dst++ = r; break; case PUSH_RGB32: *dst++ = r; *dst++ = g; *dst++ = b; *dst++ = 0; break; case PUSH_BGR32: *dst++ = b; *dst++ = g; *dst++ = r; *dst++ = 0; break; } y = *py++; yy = y << 8; if ((col & 3) == 3) py += 2; // skip u/v if (col & 1) { if ((col & 3) == 3) { pu += 4; // skip y pv += 4; } else { pu++; pv++; } u = *pu - 128; ug = 88 * u; ub = 454 * u; v = *pv - 128; vg = 183 * v; vr = 359 * v; } } /* ..for col */ if (line & 1) { // odd line: go to next band pu += linewidth; pv += linewidth; } else { // rewind u/v pointers pu -= linewidth; pv -= linewidth; } } /* ..for line */ } void ccvt_420i_rgb24(int width, int height, void *src, void *dst) { ccvt_420i(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_RGB24); } void ccvt_420i_bgr24(int width, int height, void *src, void *dst) { ccvt_420i(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_BGR24); } void ccvt_420i_rgb32(int width, int height, void *src, void *dst) { ccvt_420i(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_RGB32); } void ccvt_420i_bgr32(int width, int height, void *src, void *dst) { ccvt_420i(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_BGR32); } /* This is a really simplistic approach. Speedups are welcomed. */ /* Derived this from the above 420i for 4:2:0 planar */ static void ccvt_420p(int width, int height, unsigned char *src, unsigned char *srcu, unsigned char *srcv, unsigned char *dst, int push) { int line, col, linewidth; int y, yy; int u, v; int vr, ug, vg, ub; int r, g, b; unsigned char *py, *pu, *pv; linewidth = width - (width >> 1); py = src; pu = srcu; pv = srcv; y = *py; yy = y << 8; u = *pu - 128; ug = 88 * u; ub = 454 * u; v = *pv - 128; vg = 183 * v; vr = 359 * v; for (line = 0; line < height; line++) { for (col = 0; col < width; col++) { r = LIMIT(yy + vr); g = LIMIT(yy - ug - vg); b = LIMIT(yy + ub ); switch(push) { case PUSH_RGB24: *dst++ = r; *dst++ = g; *dst++ = b; break; case PUSH_BGR24: *dst++ = b; *dst++ = g; *dst++ = r; break; case PUSH_RGB32: *dst++ = r; *dst++ = g; *dst++ = b; *dst++ = 0; break; case PUSH_BGR32: *dst++ = b; *dst++ = g; *dst++ = r; *dst++ = 0; break; } y = *py++; yy = y << 8; if ( (col & 1) == 1) { pu++; // increase u/v every second y pv++; } u = *pu - 128; ug = 88 * u; ub = 454 * u; v = *pv - 128; vg = 183 * v; vr = 359 * v; } // ..for col if ( line & 1 ) { // even line: rewind u/v pu -= linewidth; pv -= linewidth; } } /* ..for line */ } void ccvt_420p_rgb24(int width, int height, void *src, void *srcu, void *srcv, void *dst) { ccvt_420p(width, height, (unsigned char *)src, (unsigned char *)srcu, (unsigned char *)srcv, (unsigned char *)dst, PUSH_RGB24); } void ccvt_420p_bgr24(int width, int height, void *src, void *srcu, void *srcv, void *dst) { ccvt_420p(width, height, (unsigned char *)src, (unsigned char *)srcu, (unsigned char *)srcv, (unsigned char *)dst, PUSH_BGR24); } void ccvt_420p_rgb32(int width, int height, void *src, void *srcu, void *srcv, void *dst) { ccvt_420p(width, height, (unsigned char *)src, (unsigned char *)srcu, (unsigned char *)srcv, (unsigned char *)dst, PUSH_RGB32); } void ccvt_420p_bgr32(int width, int height, void *src, void *srcu, void *srcv, void *dst) { ccvt_420p(width, height, (unsigned char *)src, (unsigned char *)srcu, (unsigned char *)srcv, (unsigned char *)dst, PUSH_BGR32); } /* This is a really simplistic approach. Speedups are welcomed. */ /* Derived this from the above 4:2:0 planar for yuyv */ /* Format: YUYV YUYV YUYV YUYV... */ static void ccvt_yuyv(int width, int height, unsigned char *src, unsigned char *dst, int push) { int line, col; int y, yy; int u, v; int vr, ug, vg, ub; int r, g, b; unsigned char *py, *pu, *pv; py = src; pu = src + 1; pv = src + 3; y = *py; yy = y << 8; u = *pu - 128; ug = 88 * u; ub = 454 * u; v = *pv - 128; vg = 183 * v; vr = 359 * v; for (line = 0; line < height; line++) { for (col = 0; col < width; col++) { r = LIMIT(yy + vr); g = LIMIT(yy - ug - vg); b = LIMIT(yy + ub ); switch(push) { case PUSH_RGB24: *dst++ = r; *dst++ = g; *dst++ = b; break; case PUSH_BGR24: *dst++ = b; *dst++ = g; *dst++ = r; break; case PUSH_RGB32: *dst++ = r; *dst++ = g; *dst++ = b; *dst++ = 0; break; case PUSH_BGR32: *dst++ = b; *dst++ = g; *dst++ = r; *dst++ = 0; break; } py += 2; y = *py; yy = y << 8; if ( (col & 1) == 1) { pu += 4; // skip yvy every second y pv += 4; // skip yuy every second y } u = *pu - 128; ug = 88 * u; ub = 454 * u; v = *pv - 128; vg = 183 * v; vr = 359 * v; } // ..for col } /* ..for line */ } void ccvt_yuyv_rgb24(int width, int height, void *src, void *dst) { ccvt_yuyv(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_RGB24); } void ccvt_yuyv_bgr24(int width, int height, void *src, void *dst) { ccvt_yuyv(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_BGR24); } void ccvt_yuyv_rgb32(int width, int height, void *src, void *dst) { ccvt_yuyv(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_RGB32); } void ccvt_yuyv_bgr32(int width, int height, void *src, void *dst) { ccvt_yuyv(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_BGR32); } /* This is a really simplistic approach. Speedups are welcomed. */ /* Derived this from the above yuyv converter */ /* Format: UYVY UYVY UYVY UYVY... */ static void ccvt_uyvy(int width, int height, unsigned char *src, unsigned char *dst, int push) { int line, col; int y, yy; int u, v; int vr, ug, vg, ub; int r, g, b; unsigned char *py, *pu, *pv; py = src + 1; pu = src; pv = src + 2; y = *py; yy = y << 8; u = *pu - 128; ug = 88 * u; ub = 454 * u; v = *pv - 128; vg = 183 * v; vr = 359 * v; for (line = 0; line < height; line++) { for (col = 0; col < width; col++) { r = LIMIT(yy + vr); g = LIMIT(yy - ug - vg); b = LIMIT(yy + ub ); switch(push) { case PUSH_RGB24: *dst++ = r; *dst++ = g; *dst++ = b; break; case PUSH_BGR24: *dst++ = b; *dst++ = g; *dst++ = r; break; case PUSH_RGB32: *dst++ = r; *dst++ = g; *dst++ = b; *dst++ = 0; break; case PUSH_BGR32: *dst++ = b; *dst++ = g; *dst++ = r; *dst++ = 0; break; } py += 2; y = *py; yy = y << 8; if ( (col & 1) == 1) { pu += 4; // skip yvy every second y pv += 4; // skip yuy every second y } u = *pu - 128; ug = 88 * u; ub = 454 * u; v = *pv - 128; vg = 183 * v; vr = 359 * v; } // ..for col } /* ..for line */ } void ccvt_uyvy_rgb24(int width, int height, void *src, void *dst) { ccvt_uyvy(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_RGB24); } void ccvt_uyvy_bgr24(int width, int height, void *src, void *dst) { ccvt_uyvy(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_BGR24); } void ccvt_uyvy_rgb32(int width, int height, void *src, void *dst) { ccvt_uyvy(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_RGB32); } void ccvt_uyvy_bgr32(int width, int height, void *src, void *dst) { ccvt_uyvy(width, height, (unsigned char *)src, (unsigned char *)dst, PUSH_BGR32); } void ccvt_420i_420p(int width, int height, void *src, void *dsty, void *dstu, void *dstv) { short *s, *dy, *du, *dv; int line, col; s = (short *)src; dy = (short *)dsty; du = (short *)dstu; dv = (short *)dstv; for (line = 0; line < height; line++) { for (col = 0; col < width; col += 4) { *dy++ = *s++; *dy++ = *s++; if (line & 1) *dv++ = *s++; else *du++ = *s++; } /* ..for col */ } /* ..for line */ } void ccvt_420i_yuyv(int width, int height, void *src, void *dst) { int line, col, linewidth; unsigned char *py, *pu, *pv, *d; linewidth = width + (width >> 1); py = (unsigned char *)src; pu = src; pu += 4; pv = pu + linewidth; d = (unsigned char *)dst; for (line = 0; line < height; line++) { for (col = 0; col < width; col += 4) { /* four pixels in one go */ *d++ = *py++; *d++ = *pu++; *d++ = *py++; *d++ = *pv++; *d++ = *py++; *d++ = *pu++; *d++ = *py++; *d++ = *pv++; py += 2; pu += 4; pv += 4; } /* ..for col */ if (line & 1) { // odd line: go to next band pu += linewidth; pv += linewidth; } else { // rewind u/v pointers pu -= linewidth; pv -= linewidth; } } /* ..for line */ } void ccvt_420i_uyvy(int width, int height, void *src, void *dst) { int line, col, linewidth; unsigned char *py, *pu, *pv, *d; linewidth = width + (width >> 1); py = (unsigned char *)src; pu = src; pu += 4; pv = pu + linewidth; d = (unsigned char *)dst; for (line = 0; line < height; line++) { for (col = 0; col < width; col += 4) { /* four pixels in one go */ *d++ = *pu++; *d++ = *py++; *d++ = *pv++; *d++ = *py++; *d++ = *pu++; *d++ = *py++; *d++ = *pv++; *d++ = *py++; py += 2; pu += 4; pv += 4; } /* ..for col */ if (line & 1) { // odd line: go to next band pu += linewidth; pv += linewidth; } else { // rewind u/v pointers pu -= linewidth; pv -= linewidth; } } /* ..for line */ } vgrabbj-0.9.8/src/v_plist.h0000644000175000017500000000325012217631217012510 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Copyright (C) 2000, 2001, 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ /* Includes */ static struct palette_list plist[] = { { 0, NULL, 0, 0 }, { VIDEO_PALETTE_GREY, "GREY", 1, 1 }, { VIDEO_PALETTE_HI240, "HI240", 0, 1 }, { VIDEO_PALETTE_RGB565, "RGB565", 0, 1 }, { VIDEO_PALETTE_RGB24, "RGB24", 3, 1 }, { VIDEO_PALETTE_RGB32, "RGB32", 4, 1 }, { VIDEO_PALETTE_RGB555, "RGB555", 0, 1 }, { VIDEO_PALETTE_YUV422, "YUV422", 2, 1 }, { VIDEO_PALETTE_YUYV, "YUYV", 2, 1 }, { VIDEO_PALETTE_UYVY, "UYVY", 2, 1 }, { VIDEO_PALETTE_YUV420, "YUV420", 3, 2 }, { VIDEO_PALETTE_YUV411, "YUV411", 0, 1 }, { VIDEO_PALETTE_RAW, "RAW", 0, 1 }, { VIDEO_PALETTE_YUV422P,"YUV422P", 0, 1 }, { VIDEO_PALETTE_YUV411P,"YUV411P", 0, 1 }, { VIDEO_PALETTE_YUV420P,"YUV420P", 3, 2 }, { VIDEO_PALETTE_YUV410P,"YUV410P", 0, 1 }, { -1, NULL, 0, 0 } }; vgrabbj-0.9.8/src/v_utils.c0000644000175000017500000002614112217631217012514 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Definition of options * * Copyright (C) 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ #include "v_utils.h" /* Initializes the mapping of driver memory to vgrabbj */ void init_mmap(struct vconfig *vconf) { if (vconf->usemmap) { vconf->map = v4l1_mmap(0, vconf->vbuf.size, PROT_READ, MAP_SHARED, vconf->dev, 0); if ( MAP_FAILED == vconf->map ) v_error(vconf, LOG_CRIT, "Could not get mmap-area of size %d", vconf->vbuf.size); if ( v4l1_ioctl(vconf->dev, VIDIOCGMBUF, &vconf->vbuf) < 0 ) v_error(vconf, LOG_CRIT, "Could not initialize mmap-vars"); v_error(vconf, LOG_DEBUG, "Size allocated for framebuffer: %d", vconf->vbuf.size); if (!vconf->map) v_error(vconf, LOG_CRIT, "mmap'ed area not allocated"); } } /* Free's allocated mmap (if it exists) */ void free_mmap(struct vconfig *vconf) { if (vconf->map) { if (!v4l1_munmap(vconf->map, vconf->vbuf.size)) { v_error(vconf, LOG_DEBUG, "mmap'ed area 'freed'"); vconf->map=NULL; } else v_error(vconf, LOG_ERR, "Error %d occured while unmapping map", errno); } else v_error(vconf, LOG_WARNING, "There was no map allocated to be freed..."); } /* Open Input Device */ void open_device(struct vconfig *vconf) { int err_count=0; while ( ((vconf->dev=v4l1_open(vconf->in, O_RDONLY)) < 0) && (!(err_count++>200)) ) usleep(25000); if (err_count>200) v_error(vconf, LOG_ERR, "Problem opening input-device %s: %s", vconf->in, strerror(errno)); else v_error(vconf, LOG_DEBUG, "Device %s successfully opened", vconf->in); } /* Closing Input Device */ void close_device(struct vconfig *vconf) { if(vconf->dev >= 0) { if ( (vconf->dev=v4l1_close(vconf->dev)) ) v_error(vconf, LOG_ERR, "Error while closing %s: %s", vconf->in, strerror(errno)); else v_error(vconf, LOG_DEBUG, "Device %s closed", vconf->in); } else v_error(vconf, LOG_WARNING, "Device %s was already closed...", vconf->in); } /* following code thanks to David Austin */ int set_picture_parms(struct vconfig *vconf) { if ((vconf->hue < 0) && (vconf->brightness < 0) && (vconf->colour < 0) && (vconf->contrast < 0) && (vconf->whiteness < 0)) { return 0; } fprintf(stderr, "Setting picture params %i %i %i %i %i\n", vconf->hue, vconf->brightness, vconf->colour, vconf->contrast, vconf->whiteness); if (v4l1_ioctl(vconf->dev, VIDIOCGPICT, &(vconf->vpic)) == -1) { perror ("PICTURE"); return (-1); } if (vconf->hue > -1) vconf->vpic.hue = vconf->hue; if (vconf->contrast > -1) vconf->vpic.contrast = vconf->contrast; if (vconf->brightness > -1) vconf->vpic.brightness = vconf->brightness; if (vconf->colour > -1) vconf->vpic.colour = vconf->colour; if (vconf->whiteness > -1) vconf->vpic.whiteness = vconf->whiteness; if (v4l1_ioctl(vconf->dev, VIDIOCSPICT, &(vconf->vpic)) == -1) { perror ("PICTURE"); return (-1); } return 0; } /* Returns the actual byte-size of the image */ int img_size(struct vconfig *vconf, int palette) { return ( (plist[palette].mul * vconf->win.width * vconf->win.height) >> (plist[palette].div==2?1:0) ); } /* Turns RGB into BGR (or vice versa) */ char *switch_color(struct vconfig *vconf) { char a; unsigned long int y; v_error(vconf, LOG_DEBUG, "width: %d, heigth: %d", vconf->win.width, vconf->win.height); for (y = 0; y < (vconf->win.width * vconf->win.height); y++) { memcpy(&a, vconf->o_buffer+(y*3),1); memcpy(vconf->o_buffer+(y*3), vconf->o_buffer+(y*3)+2, 1); memcpy(vconf->o_buffer+(y*3)+2, &a, 1); } return vconf->o_buffer; } /* Strips last byte of RGB32 to convert to RGB24 - breaks picture if alpha is used! */ char *conv_rgb32_rgb24(struct vconfig *vconf) { unsigned long int y; for (y = 0; y < (vconf->win.width * vconf->win.height); y++) memcpy(vconf->o_buffer+(y*3), vconf->buffer+(y*4), 3); return vconf->o_buffer; } /* Swap Left to Right (like a mirror) */ char *swap_left_right(char *buffer, int width, int height) { char a, b, c; int i, j; for (j=0;j < height;j++) { for (i=0;i < (width>>1);i++) { a = buffer[(j*width*3)+(i*3)]; b = buffer[(j*width*3)+(i*3)+1]; c = buffer[(j*width*3)+(i*3)+2]; buffer[(j*width*3)+(i*3)] = buffer[(j*width*3)+(width-i)*3]; buffer[(j*width*3)+(i*3)+1] = buffer[(j*width*3)+(width-i)*3+1]; buffer[(j*width*3)+(i*3)+2] = buffer[(j*width*3)+(width-i)*3+2]; buffer[(j*width*3)+(width-i)*3] = a; buffer[(j*width*3)+(width-i)*3+1] = b; buffer[(j*width*3)+(width-i)*3+2] = c; } } return buffer; } /* Swap Top to Bottom (like a mirror) */ /* Thanks to Koos van den Hout and Arthur van Leeuwen */ char *swap_top_bottom(char *buffer, int width, int height) { char a, b, c; int i, j; for (j=0;j < (height>>1);j++) { for (i=0;i < width;i++) { a = buffer[(j*width*3)+(i*3)]; b = buffer[(j*width*3)+(i*3)+1]; c = buffer[(j*width*3)+(i*3)+2]; buffer[(j*width*3)+(i*3)] = buffer[((height-j)*width*3)+(i*3)]; buffer[(j*width*3)+(i*3)+1] = buffer[((height-j)*width*3)+(i*3)+1]; buffer[(j*width*3)+(i*3)+2] = buffer[((height-j)*width*3)+(i*3)+2]; buffer[((height-j)*width*3)+(i*3)] = a; buffer[((height-j)*width*3)+(i*3)+1] = b; buffer[((height-j)*width*3)+(i*3)+2] = c; } } return buffer; } /* Adjustment of brightness of picture */ int brightness_adj(struct vconfig *vconf, int *brightness) { long i, tot = 0; long size = vconf->win.width * vconf->win.height; for ( i = 0; i < size * 3; i++ ) tot += vconf->buffer[i]; *brightness = (128 - tot/(size*3))/3; return !((tot/(size*3)) >= 126 && (tot/(size*3)) <= 130); } /* Event handler for SIGKILL */ /* to properly clean up on externally requested termination */ void sigterm(int sig) { (void)sig; signal(SIGTERM,sigterm); /* reset signal */ syslog(LOG_WARNING, "Caught sigterm, cleaning up..."); signal_terminate=SIGTERM; } /* Event handler for SIGHUP */ /* to re-read the configuration file */ void sighup(int sig) { (void)sig; signal(SIGHUP,sighup); /* reset signal */ syslog(LOG_WARNING, "Caught sighup, re-reading config-file..."); signal_terminate=SIGHUP; } /* Checks whether a ptr is allocated, if so, free it */ void *free_ptr(void *buf) { if (buf) free(buf); return NULL; } /* Daemonize vgrabbj only if in daemon-mode */ int daemonize(struct vconfig *vconf, char *progname) { openlog(progname, LOG_DEBUG, LOG_DAEMON); v_error(vconf, LOG_WARNING, "Forking for daemon mode"); switch( fork() ) { case 0: // Child v_error(vconf, LOG_DEBUG, "I'm the child process and are going to read images..."); closelog(); vconf->init_done=TRUE; break; case -1: /* Error */ v_error(vconf, LOG_CRIT, "Can't fork, exiting..."); // exit break; default: /* Parent */ v_error(vconf, LOG_DEBUG, "I'm the parent and exiting now" "(child takes care of the rest)."); closelog(); cleanup(vconf); exit(0); } openlog(progname, LOG_PID, LOG_DAEMON); v_error(vconf, LOG_WARNING, "%s started, reading from %s", progname, vconf->in); return(1); } /* These are more or less self-explanatory */ char *timestring(char *format) { time_t td; struct tm *tm; int i=1; char archive[512]; /* for stamp and archive strftime format strings are used, make the final path * to archive_path */ time(&td); tm = localtime(&td); while (i<512) { archive[i++]='0'; } archive[sizeof(archive)-1]='\0'; i=strftime(archive, sizeof(archive)-1, format, tm); // fprintf(stdout, "ts=%s.%d\n", archive,i); return (strcpy(malloc(++i),archive)); } char *strip_white(char *value) { long int tmp=0; /* eliminate whitespaces in value */ while ((value[0]==' ') || (value[0]=='\t') || (value[0]=='"')) value++; tmp=strlen(value); while ((value[--tmp]==' ') || (value[tmp]=='\t') || (value[tmp]=='"')) value[tmp]='\0'; return value; } long int check_minmax(struct vconfig *vconf, char *value, long int tmp, int n, struct v_options ll_opt) { if (ll_opt.max_value || tmp < 0) if ( (ll_opt.min_value > tmp) || (tmp > ll_opt.max_value) ) v_error(vconf, LOG_CRIT, "Wrong value \"%s\" for %s (line %d, %s, min %d, max %d)", value, ll_opt.name, n, n?vconf->conf_file:"command-line", ll_opt.min_value, ll_opt.max_value); v_error(vconf, LOG_DEBUG, "Set option %s to value %d (value: %s)", ll_opt.name, tmp, value); return tmp; } char *check_maxlen(struct vconfig *vconf, char *value, struct v_options ll_opt, int n) { // value=strip_white(value); if ( (ll_opt.max_length) && (strlen((value)) > ll_opt.max_length) ) v_error(vconf, LOG_CRIT, "Value \"%s\" too long (max. %d, line %d, %s)", value, ll_opt.max_length, n, n?vconf->conf_file:"command-line"); v_error(vconf, LOG_DEBUG, "Set option %s to value \"%s\"", ll_opt.name, value); return value; } char *get_str(char *value, char *var) { int t; if (var) free (var); if ( (t=strlen(value))<1 ) return NULL; value=strip_white(value); var=strcpy(malloc(t+1),value); return var; } long int get_int(char *value) { long tmp; if ( sscanf(value, "%ld", &tmp) != 1 ) return -1; return tmp; } int get_bool(char *value) { if ( !(strcasecmp(value, "oN")) || !(strcasecmp(value, "Yes"))) return 1; else if ( !(strcasecmp(value, "Off")) || !(strcasecmp(value, "No")) ) return 0; return -1; } int get_format(char *value) { int i; for (i=0; output_list[i].name; i++) { if ( !(strcasecmp(value, output_list[i].name)) ) return output_list[i].type; } return -1; } int get_position(char *value) { int i; if ((i=get_int(value))!=-1) return i; for (i=0; position_list[i].name; i++) { if ( !(strcasecmp(value, position_list[i].name)) ) return position_list[i].type; } return -1; } int decode_size(char *value) { int i; for (i=0; size_list[i].name; i++) { if ( !(strcasecmp(value, size_list[i].name)) ) return size_list[i].type; } return 0; } int get_width(char *value) { return (16 * decode_size(value)); } int get_height(char *value) { if ( decode_size(value) == 11 ) return 144; else if ( decode_size(value) == 22 ) return 288; else if ( decode_size(value) == 80 ) return 1024; return (12 * decode_size(value)); } /* If a SIGHUP was caught, do only re-initialisation */ struct vconfig *v_reinit(struct vconfig *vconf) { return (vconf=v_init(vconf, 0, '\0')); } vgrabbj-0.9.8/src/v_stamp.h0000644000175000017500000000163012217631217012501 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Definition of options * * Copyright (C) 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ #include "vgrabbj.h" vgrabbj-0.9.8/src/v_options.h0000644000175000017500000001317112217631217013053 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Definition of options * * Copyright (C) 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ /* Includes */ struct v_options l_opt[] = { /* Here's the whole definition of options of vgrabbj with needed information: (it fits MY screen ;-) * * arg_type: 1=int, 2=longint, 3=bool, 4=char, 0=unspecified * art_req: 1=required, 2=none, 3=optional, 0=unspecified * * Long Option, short,argreq,which var,arg_type,Min, Max,MaxLen,Default */ {"DebugLevel", "D", req, NULL, opt_int, 0, 7, 0, "4", NULL}, {"Daemon", "L", req, NULL, opt_longint, 0, 0, 0, "0", NULL}, {"DaemonSeconds", "l", req, NULL, opt_int_s, 0, 0, 0, "0", NULL}, {"AutoBrightness", "a", none, NULL, opt_bool, 0, 1, 0, "Off", NULL}, {"ImageQuality", "q", req, NULL, opt_int, 0, 100, 0, "75", NULL}, {"ImageSize", "i", req, NULL, opt_size, 0, 0, 0, "cif", NULL}, {"ImageWidth", "w", req, NULL, opt_int, 0, 65535, 0, "352", NULL}, {"ImageHeight", "H", req, NULL, opt_int, 0, 65535, 0, "288", NULL}, {"OutputFormat", "o", req, NULL, opt_format, 0, 3, 0, "jpg", NULL}, {"OutputFile", "f", req, NULL, opt_charptr, 0, 0, 255, "/dev/stdout", NULL}, {"VideoDevice", "d", req, NULL, opt_charptr, 0, 0, 255, "/dev/video", NULL}, {"OpenOnce", "C", none, NULL, opt_bool, 0, 1, 0, "On", NULL}, {"SwitchColor", "S", none, NULL, opt_bool, 0, 1, 0, "Off", NULL}, {"SetImageSize", "g", none, NULL, opt_bool, 0, 1, 0, "On", NULL}, {"DiscardFrames", "z", req, NULL, opt_int, 0, 255, 0, "Off", NULL}, {"ForcePalette", "F", req, NULL, opt_int, 1, 16, 0, "0", NULL}, {"UseTmpOut", "n", none, NULL, opt_bool, 0, 1, 0, "On", NULL}, {"UseTimeStamp", "e", none, NULL, opt_bool, 0, 1, 0, "Off", NULL}, #ifdef LIBTTF {"FontFile", "t", req, NULL, opt_charptr, 0, 0, 255, "/usr/share/fonts/truetype/Arialn.ttf", NULL}, {"TimeStamp", "p", req, NULL, opt_charptr, 0, 0, 255, "%A, %e. %B %Y - %T", NULL}, {"FontSize", "T", req, NULL, opt_int, 3, 100, 0, "12", NULL}, {"Position", "P", req, NULL, opt_position,0, 5, 0, "upperright", NULL}, {"Blend", "m", req, NULL, opt_int, 1, 100, 0, "60", NULL}, {"BorderSize", "B", req, NULL, opt_int, 0, 255, 0, "2", NULL}, #endif #ifdef LIBFTP {"EnableFtp", NULL,none, NULL, opt_bool, 0, 1, 0, "Off", NULL}, {"RemoteHost", NULL,none, NULL, opt_charptr, 0, 0, 255, "ftp.foo.bar", NULL}, {"RemoteImageName", NULL,none, NULL, opt_charptr, 0, 0, 255, "camimage.jpg", NULL}, {"Username", NULL,none, NULL, opt_charptr, 0, 0, 255, "foo", NULL}, {"Password", NULL,none, NULL, opt_charptr, 0, 0, 255, "bar", NULL}, {"KeepAlive", NULL,none, NULL, opt_bool, 0, 1, 0, "Off", NULL}, {"TryHarder", NULL,none, NULL, opt_int, 0, 0, 0, "2", NULL}, {"RemoteDir", NULL,none, NULL, opt_charptr, 0, 0, 255, "/", NULL}, {"Passive", NULL,none, NULL, opt_bool, MIN_BOOL, MAX_BOOL, 0, NULL, NULL }, #endif /* and here's the commandline options which have no conf-file equivalent */ {NULL, "c", req, NULL, opt_conf, 0, 0, 0, NULL, NULL}, {NULL, "V", none, NULL, opt_version, 0, 0, 0, NULL, NULL}, {NULL, "s", req, NULL, opt_setting, 0, 0, 255, NULL, NULL}, {NULL, "h", none, NULL, opt_help, 0, 0, 0, NULL, NULL}, {"Hue", "u", req, NULL, opt_int, -1, 65535, 0, "-1", NULL}, {"Brightness", "b", req, NULL, opt_int, -1, 65535, 0, "-1", NULL}, {"Contrast", "x", req, NULL, opt_int, -1, 65535, 0, "-1", NULL}, {"Colour", "r", req, NULL, opt_int, -1, 65535, 0, "-1", NULL}, {"Whiteness", "W", req, NULL, opt_int, -1, 65535, 0, "-1", NULL}, /* New options are to be added in front of this line, which serves as a */ /* marker for the config-parser (no long- and no short-option) */ {"Archive", "A", req, NULL, opt_charptr, 0, 0, 255, "/tmp/arch/cam-%Y-%d-%m-%H-%M-%S.jpg", NULL}, {"ArchiveEach", "E", req, NULL, opt_int, 0, 65535, 0, "10", NULL}, {"ArchiveMax", "M", req, NULL, opt_int, 0, 65535, 0, "100", NULL}, {"SwapRL", "R", none, NULL, opt_bool, 0, 1, 0, "Off", NULL}, {"NoUseMmap", "G", none, NULL, opt_bool, 0, 1, 0, "Off", NULL}, {"SwapTB", "U", none, NULL, opt_bool, 0, 1, 0, "Off", NULL}, {NULL, "X", none, NULL, opt_bool, 0, 1, 0, "Off", NULL}, {"Exec", "Z", req, NULL, opt_charptr, 0, 0, 255, "", NULL}, {NULL, NULL, none, NULL, 0, 0, 0, 0, NULL, NULL} }; vgrabbj-0.9.8/src/v_writer.h0000644000175000017500000000165512217631217012700 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Copyright (C) 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ /* Functions to write the output to something */ #include "vgrabbj.h" vgrabbj-0.9.8/src/v_utils.h0000644000175000017500000000276712217631217012531 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Copyright (C) 2000, 2001, 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ /* Includes */ #include "vgrabbj.h" #include "v_plist.h" static struct v_out_type output_list[] = { {1, "jpeg"}, {1, "jpg"}, {2, "png"}, {3, "ppm"}, {0, NULL} }; static struct v_pos_type position_list[] = { {0, "UL"}, {0, "upperleft"}, {1, "UR"}, {1, "upperright"}, {2, "LL"}, {2, "lowerleft"}, {3, "LR"}, {3, "lowerright"}, {4, "UC"}, {4, "uppercenter"}, {5, "LC"}, {5, "lowercenter"}, {-1, NULL} }; static struct v_size_type size_list[] = { {8, "sqcif"}, {10, "qsif"}, {11, "qcif"}, {20, "sif"}, {22, "cif"}, {40, "vga"}, {50, "svga"}, {64, "xga"}, {80, "sxga"}, {100, "uxga"}, {0, NULL} }; vgrabbj-0.9.8/src/vgrabbj.h0000644000175000017500000002142612217631217012452 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Copyright (C) 2000, 2001, 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ /* Includes */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined(HAVE_LIBTTF) #if defined(HAVE_FREETYPE_FREETYPE_H) #define LIBTTF 1 #define TTF_H_LOC #else #if defined(HAVE_FREETYPE1_FREETYPE_H) #define LIBTTF 1 #define TTF_H_LOC #else #undef LIBTTF #endif #endif #else #undef LIBTTF #endif #ifdef LIBTTF #include TTF_H_LOC #endif #if defined(HAVE_LIBFTP) && defined(HAVE_FTPLIB_H) #define LIBFTP 1 #define STATE_UNINITIALIZED 0 #define STATE_CONNECT 1 #define STATE_LOGIN 2 #define STATE_CHDIR 3 #define STATE_PUT 4 #define STATE_RENAME 5 #define STATE_FINISH 6 #include #else #undef LIBFTP #endif #ifndef DEBUGGING #define DEBUGGING 0 #endif /* Defines, defaults */ //#define boolean int //#define TRUE 1 //#define FALSE 0 #define __u32 int #define DEFAULT_QUALITY 75 #define MIN_QUALITY 0 #define MAX_QUALITY 100 #define DEFAULT_WIDTH 352 #define DEFAULT_HEIGHT 288 #define MIN_SIZE 0 #define MAX_SIZE 65535 #define RGB_DEFAULT 24 #define MIN_PALETTE 1 #define MAX_PALETTE 16 #define MIN_DISCARD 0 #define MAX_DISCARD 255 #define MIN_BOOL 0 #define MAX_BOOL 1 #define MIN_LOOP 0 #define MIN_ARCHIVE 0 #define MAX_ARCHIVE 65535 #define DEFAULT_VIDEO_DEV "/dev/video0" #define DEFAULT_OUTPUT "/dev/stdout" #define DEFAULT_OUTFORMAT 1 // 1=jpeg, 2=png, 3=ppm #define MIN_FORMAT 1 #define MAX_FORMAT 3 #define DEFAULT_BRIGHTNESS FALSE #define MAX_ERRORMSG_LENGTH 1024 #define DEFAULT_CONFIG SYSCONF_DIR #define LOGLEVEL 4 #define MIN_DEBUG 0 #define MAX_DEBUG 7 #ifdef LIBTTF #define DEFAULT_FONT "/usr/share/fonts/truetype/Arialn.ttf" #define DEFAULT_TIMESTAMP "%a, %e. %B %Y - %T" #define DEFAULT_FONTSIZE 12 #define MIN_FONTSIZE 3 #define MAX_FONTSIZE 100 #define DEFAULT_BORDER 2 #define MIN_BORDER 1 #define MAX_BORDER 255 #define DEFAULT_BLEND 60 #define MIN_BLEND 1 #define MAX_BLEND 100 #define DEFAULT_ALIGN 1 #define MIN_ALIGN 0 #define MAX_ALIGN 5 #endif #define TS_MAX 128 #define MAX_LINE 1024 /* Structure definitions */ #ifdef LIBTTF struct ttneed { TT_Engine engine; TT_Face face; TT_Face_Properties *properties; TT_Instance instance; boolean use; }; #endif struct s_arch { char *filename; struct s_arch *next; }; struct vconfig { long int loop; int debug; int err_count; int quality; int outformat; int dev; int discard; int archiveeach; int archivemax; int archivecount; char *in; char *out; char *tmpout; char *conf_file; char *buffer; char *o_buffer; char *archive; struct s_arch *arch; boolean usemmap; boolean usetmpout; boolean windowsize; boolean switch_bgr; boolean use_ts; boolean autobrightness; boolean init_done; boolean swaprl; boolean swaptb; boolean nousemmap; int inputnorm; int channel; int forcepal; #ifdef LIBTTF char *font; char *timestamp; int font_size; int align; int border; int blend; struct ttneed *ttinit; #endif boolean openonce; struct video_window win; struct video_picture vpic; struct video_capability vcap; struct video_mmap vmap; struct video_mbuf vbuf; int hue; int brightness; int contrast; int colour; int whiteness; char *map; boolean nofork; char *commands; #ifdef LIBFTP struct FTP { boolean enable; boolean keepalive; char *remoteHost; char *remoteDir; char *remoteImageName; char *username; char *password; unsigned int state; unsigned int tryharder; boolean passive; }ftp; #endif }; struct palette_list { int num; const char *name; int mul; int div; }; struct v_options { const char *name; const char *short_name; int has_arg; void *var; int var_type; int min_value; int max_value; size_t max_length; const char *standard; struct v_options *next; }; struct v_out_type { int type; const char *name; }; struct v_pos_type { int type; const char *name; }; struct v_size_type { int type; const char *name; }; enum { opt_void, opt_int, opt_longint, opt_char, opt_bool, opt_format, opt_size, opt_charptr, opt_position, opt_int_s, opt_conf, opt_setting, opt_help, opt_version }; enum { none, req, opt }; /* External functions */ extern char *basename (const char *); extern struct vconfig *v_init(struct vconfig *vconf, int argc, char *argv[]); extern struct vconfig *v_reinit(struct vconfig *vconf); extern void show_capabilities(char *in, char *pname); extern void ftp_upload(struct vconfig *vconf); extern void write_image(struct vconfig *vconf); extern void v_error(struct vconfig *vconf, int msg, const char *fmt, ...); extern int img_size(struct vconfig *vconf, int palette); extern void *free_ptr(void *buf); extern int get_height(char *value); extern int get_width(char *value); extern int decode_size(char *value); extern int get_position(char *value); extern int get_format(char *value); extern int get_bool(char *value); extern char *get_str(char *value, char *var); extern long int get_int(char *value); extern int daemonize(struct vconfig *vconf, char *progname); extern void sighup(int sig); extern void sigterm(int sig); extern int brightness_adj(struct vconfig *vconf, int *brightness); extern char *conv_rgb32_rgb24(struct vconfig *vconf); extern char *switch_color(struct vconfig *vconf); extern void init_mmap(struct vconfig *vconf); extern void free_mmap(struct vconfig *vconf); extern void open_device(struct vconfig *vconf); extern int set_picture_parms(struct vconfig *vconf); extern void close_device(struct vconfig *vconf); extern void cleanup(struct vconfig *vconf); extern int signal_terminate; extern struct v_options l_opt[]; extern char *strip_white(char *value); extern long int check_minmax(struct vconfig *vconf, char *value, long int tmp, int n, struct v_options l_opt); extern void v_update_ptr(struct vconfig *vconf); extern char *check_maxlen(struct vconfig *vconf, char *value, struct v_options l_opt, int n); extern FILE *open_outfile(char *filename); extern char *timestring(char *format); extern struct vconfig *parse_config(struct vconfig *vconf); extern char *swap_left_right(char *buffer, int width, int height); extern char *swap_top_bottom(char *buffer, int width, int height); #ifdef LIBTTF extern void Face_Done (TT_Instance inst, TT_Face face); extern int Face_Open (char *file, TT_Engine engine, TT_Face *face, TT_Face_Properties *prop, TT_Instance *inst, int ptsize); extern TT_Glyph *Glyphs_Load (TT_Face face, TT_Face_Properties *prop, TT_Instance inst, char *str, int len); extern void Glyphs_Done (TT_Glyph *gl); extern void Raster_Init (TT_Face face, TT_Face_Properties *prop, TT_Instance inst, char *str, int len, int border, TT_Glyph *gl, TT_Raster_Map *bit); extern void Raster_Done (TT_Raster_Map *bit); extern void Raster_Small_Init (TT_Raster_Map *map, TT_Instance *inst); extern unsigned char *Render_String (TT_Glyph *gl, char *str, int len, TT_Raster_Map *bit, TT_Raster_Map *sbit, int border); extern char *inserttext (struct ttneed *ttinit, unsigned char *buffer, struct vconfig *vconf); extern struct ttneed *OpenFace(struct vconfig *vconf); #endif vgrabbj-0.9.8/src/ccvt.h0000644000175000017500000001033712217631217011773 00000000000000/* (C) 2000 Nemosoft Unv. nemosoft@smcc.demon.nl This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef CCVT_H #define CCVT_H #include #ifdef __cplusplus extern "C" { #endif /* Colour ConVerT: going from one colour space to another Format descriptions: 420i = "4:2:0 interlaced" YYYY UU YYYY UU even lines YYYY VV YYYY VV odd lines U/V data is subsampled by 2 both in horizontal and vertical directions, and intermixed with the Y values. 420p = "4:2:0 planar" YYYYYYYY N lines UUUU N/2 lines VVVV N/2 lines U/V is again subsampled, but all the Ys, Us and Vs are placed together in separate buffers. The buffers may be placed in one piece of contiguous memory though, with Y buffer first, followed by U, followed by V. yuyv = "4:2:2 interlaced" YUYV YUYV YUYV ... N lines The U/V data is subsampled by 2 in horizontal direction only. uyvy = UYVY UYVY UYVY ... N lines bgr24 = 3 bytes per pixel, in the order Blue Green Red (whoever came up with that idea...) rgb24 = 3 bytes per pixel, in the order Red Green Blue (which is sensible) rgb32 = 4 bytes per pixel, in the order Red Green Blue Alpha, with Alpha really being a filler byte (0) bgr32 = last but not least, 4 bytes per pixel, in the order Blue Green Red Alpha, Alpha again a filler byte (0) */ /* Functions in ccvt_c.c */ /* 4:2:0 YUV interlaced to RGB/BGR */ void ccvt_420i_bgr24(int width, int height, void *src, void *dst); void ccvt_420i_rgb24(int width, int height, void *src, void *dst); void ccvt_420i_bgr32(int width, int height, void *src, void *dst); void ccvt_420i_rgb32(int width, int height, void *src, void *dst); /* 4:2:0 YUV planar to RGB/BGR */ void ccvt_420p_bgr24(int width, int height, void *src, void *srcu, void *srcv, void *dst); void ccvt_420p_rgb24(int width, int height, void *src, void *srcu, void *srcv, void *dst); void ccvt_420p_bgr32(int width, int height, void *src, void *srcu, void *srcv, void *dst); void ccvt_420p_rgb32(int width, int height, void *src, void *srcu, void *srcv, void *dst); /* 4:2:2 YUYV interlaced to RGB/BGR */ void ccvt_yuyv_rgb32(int width, int height, void *src, void *dst); void ccvt_yuyv_bgr32(int width, int height, void *src, void *dst); void ccvt_yuyv_rgb24(int width, int height, void *src, void *dst); void ccvt_yuyv_bgr24(int width, int height, void *src, void *dst); /* 4:2:2 UYVY interlaced to RGB/BGR */ void ccvt_uyvy_rgb32(int width, int height, void *src, void *dst); void ccvt_uyvy_bgr32(int width, int height, void *src, void *dst); void ccvt_uyvy_rgb24(int width, int height, void *src, void *dst); void ccvt_uyvy_bgr24(int width, int height, void *src, void *dst); /* 4:2:0 YUV planar to RGB/BGR */ //void ccvt_420p_rgb32(int width, int height, void *srcy, void *srcu, void *srcv, void *dst); //void ccvt_420p_bgr32(int width, int height, void *srcy, void *srcu, void *srcv, void *dst); /* RGB/BGR to 4:2:0 YUV interlaced */ /* RGB/BGR to 4:2:0 YUV planar */ void ccvt_rgb24_420p(int width, int height, void *src, void *dsty, void *dstu, void *dstv); void ccvt_bgr24_420p(int width, int height, void *src, void *dsty, void *dstu, void *dstv); /* Go from 420i to other yuv formats */ void ccvt_420i_420p(int width, int height, void *src, void *dsty, void *dstu, void *dstv); void ccvt_420i_yuyv(int width, int height, void *src, void *dst); void ccvt_420i_uyvy(int width, int height, void *src, void *dst); #ifdef __cplusplus } #endif #endif vgrabbj-0.9.8/src/v_config.h0000644000175000017500000000174412217631217012630 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Definition of options * * Copyright (C) 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ /* Includes */ #include "vgrabbj.h" #include "v_plist.h" #include "v_options.h" /* Globals */ vgrabbj-0.9.8/src/v_stamp.c0000644000175000017500000001132312217631217012474 00000000000000/* Simple Video4Linux image grabber. Made for my Philips Vesta Pro * * Definition of options * * Copyright (C) 2002 Jens Gecius, Hannover, Germany * eMail: devel@gecius.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, * USA */ #include "vgrabbj.h" #ifdef LIBTTF /* Open Face via routine found in font.c */ struct ttneed *OpenFace(struct vconfig *vconf) { int i, j; v_error(vconf, LOG_INFO, "Initializing Font-Engine"); if (vconf->debug) { TT_FreeType_Version( &i, &j); v_error(vconf, LOG_DEBUG, "FreeType, Version %d.%d", i, j); } if (Face_Open (vconf->font, vconf->ttinit->engine, &vconf->ttinit->face, vconf->ttinit->properties, &vconf->ttinit->instance, vconf->font_size)) { v_error(vconf, LOG_WARNING, "Font not found: %s, timestamp disabled", vconf->font); return(NULL); } v_error(vconf, LOG_DEBUG, "Font-Engine initialized"); return(vconf->ttinit); } /* Manipulate image to show timestamp string and return manipulated buffer */ char *inserttext(struct ttneed *ttinit, unsigned char *buffer, struct vconfig *vconf) { char *ts_buff; int ts_len; TT_Glyph *glyphs = NULL; TT_Raster_Map bit; TT_Raster_Map sbit; v_error(vconf, LOG_DEBUG, "Getting all values for the timestamp. ts=%s.", vconf->timestamp); ts_len = strlen(ts_buff=timestring(vconf->timestamp)); v_error(vconf, LOG_DEBUG, "Stamp: %s, length: %d", ts_buff, ts_len); glyphs = Glyphs_Load(ttinit->face, ttinit->properties, ttinit->instance, ts_buff, ts_len); v_error(vconf, LOG_DEBUG, "Glyphs loaded"); Raster_Init(ttinit->face, ttinit->properties, ttinit->instance, ts_buff, ts_len, vconf->border, glyphs, &bit); v_error(vconf, LOG_DEBUG, "Returned from Raster_Init"); Raster_Small_Init (&sbit, &ttinit->instance); v_error(vconf, LOG_DEBUG, "Returned from Raster_Small_Init"); Render_String(glyphs, ts_buff, ts_len, &bit, &sbit, vconf->border); free_ptr(ts_buff); v_error(vconf, LOG_DEBUG, "Returned from Render_String"); if (bit.bitmap) { int x, y, psize, i, x_off, y_off; unsigned char *p; v_error(vconf, LOG_DEBUG, "Now performing calculation of position..."); if (bit.rows>vconf->win.height) bit.rows=vconf->win.height; if (bit.width>vconf->win.width) bit.width=vconf->win.width; psize = 3; switch (vconf->align) { case 1: x_off = (vconf->win.width - bit.width) * psize; y_off = 0; break; case 2: x_off = 0; y_off = vconf->win.height - bit.rows; break; case 3: x_off = (vconf->win.width - bit.width) * psize; y_off = vconf->win.height - bit.rows; break; case 4: x_off = (vconf->win.width/2 - bit.width/2) * psize; y_off = 0; break; case 5: x_off = (vconf->win.width/2 - bit.width/2) * psize; y_off = vconf->win.height - bit.rows; break; default: x_off = y_off = 0; break; } v_error(vconf, LOG_DEBUG, "Done. Now we change the image with the string."); for (y = 0; y < bit.rows; y++) { p = buffer + (y + y_off) * (vconf->win.width * psize) + x_off; for (x = 0; x < bit.width; x++) { switch (((unsigned char *)bit.bitmap) [((bit.rows-y-1)*bit.cols)+x]) { case 0: for (i = 0; i < psize; i++) { *p = (255 * vconf->blend + *p * (100 - vconf->blend))/100; p++; } break; case 1: for (i = 0; i < psize; i++) { *p = (220 * vconf->blend + *p * (100 - vconf->blend))/100; p++; } break; case 2: for (i = 0; i < psize; i++) { *p = (162 * vconf->blend + *p * (100 - vconf->blend))/100; p++; } break; case 3: for (i = 0; i < psize; i++) { *p = (64 * vconf->blend + *p * (100 - vconf->blend))/100; p++; } break; default: for (i = 0; i < psize; i++) { *p = (0 * vconf->blend + *p * (100 - vconf->blend))/100; p++; } break; } } } } v_error(vconf, LOG_DEBUG, "Image manipulated, now closing..."); Raster_Done (&sbit); Raster_Done (&bit); Glyphs_Done (glyphs); glyphs = NULL; v_error(vconf, LOG_INFO, "Stamp inserted into image"); return buffer; } #endif vgrabbj-0.9.8/vgrabbj.conf.50000644000175000017500000003111112217631217012514 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH VGRABBJ.CONF 5 "February 24, 2002" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME \fBvgrabbj.conf\fP \- configuration file for vgrabbj .SH OVERVIEW vgrabbj purpose is to read data from a v4l-device and put it in a file, formatted as jpeg, png, or pnm. Except for the ftp-options described below everything can also handled on the commandline. Here the configuration statements are described. .P Syntax is . Comments start with a ';' or '#'. Those lines are ignored by vgrabbj. Case of the keywords and named options doesn't matter except for the timestamp option as well as any filename. .P The configuration file is parsed line by line. If any keyword appears twice or more often, the last one is the one used. .P On startup, the pre-defined configuration file /etc/vgrabbj.conf is read. Then, commandline parameters are evaluated one by one, the last is the most significant, if one option is provide twice or more often. Same applies for the commandline parameter \-c . .SH GENERAL OPTIONS .TP \fBDaemonSeconds\fP \fIseconds\fP Daemonize & loop with \fIseconds\fP intervals (min. 1). .TP \fBDaemon\fP \fImicroseconds\fP Daemonize & loop \fImicroseconds\fP intervals (min. 1). Same as \fB\-l\fP except you can control it more precisely. .TP \fBAutoBrightness\fP \fIOn\fP|\fIOff\fP Defines if vgrabbj's brightness adjustment is used. This option works only if the device supports data fetch via read and RGB24 videopalette. See \fBForcePalette\fP on how-to set RGB24. Some device do not support RGB24, hence, \fBBrightness\fP is ignored. .TP \fBImageQuality\fP \fIquality\fP Sets the quality of a jpeg output to \fIquality\fP (1-100, default: 75). .TP \fBImageSize\fP \fIimagesize\fP Sets the imagesize of input device, where \fIimagesize\fP is one of: .IP .nf .ta sqcif= 128x96, qsif = 160x120, qcif = 176x144, sif = 320x240, cif = 352x288, vga = 640x480, svga = 800x600, xga = 1024x768, sxga = 1280x1024, uxga = 1600x1200, .fi .IP (default: cif) .TP \fBImageWidth\fP \fIwidth\fP Sets the width of the image to \fIwidth\fP. Needs \fB\-H\fP. The v4l-device has to support the image width you set with this option. .TP \fBImageHeight\fP \fIheight\fP Sets the height of the image to \fIheight\fP. Needs \fB\-w\fP. The v4l-device has to support the image height you set with this option. .TP \fBOutputFormat\fP \fIformat\fP Sets the output to \fIformat\fP (either \fBjpeg\fP, \fBpng\fP, or \fBpnm\fP, default: jpeg). Alternative, you may provide jpg for jpeg. .TP \fBOutputFile\fP <\fIfilename\fP> Output is written to \fIfilename\fP (default: \fI/dev/stdout\fP) .TP \fBArchive\fP <\fIpath/filename\fP> Additional output is written to \fIpath/filename\fP (default: \fInot set\fP), whereas the path-filename can include any strftime component. The path- filename must not be on a different filesystem as the output defined above. Additionally, you need to take care of the number of files stored. There is no upper ceiling for archiving. .TP \fBVideoDevice\fP <\fIdevice\fP> Sets the input device to \fIdevice\fP (default: \fI/dev/video\fP) .TP \fBOpenOnce\fP \fIOn\fP|\fIOff\fP Defines if \fBvgrabbj\fP opens the device only while image data is grabbed (\fIOff\fP) or keeps it opened while it is running (\fIOn\fP). Setting it to \fIOff\fP is helpful if you need access to the device besides vgrabbj. This use is discouraged though, due to possible problems with memory fragmentation. Default is \fIOn\fP. .TP \fBSetImageSize\fP \fIOn\fP|\fIOff\fP Defines if the image size (see \fB\-i\fP, \fB\-H\fP, and \fB\-w\fP) of the device is set by vgrabbj. Necessary for certain v4l-devices which do not support to be set to a particular image size (e.g. IBM-usb-cam, QuickCam). For these devices you have to specify the size at module load time. Default is \fIOn\fP. .TP \fBSwitchColor\fP \fIOn\fP|\fIOff\fP Switches colormap from BGR to RGB (or vice versa) if set to \fIOn\fP. Default is \fIOff\fP. Use if you have odd colors. .TP \fBSwapRL\fP \fIOn\fP|\fIOff\fP Swaps left and right of the image like a mirror. Default: Off. is \fIOff\fP. .TP \fBSwapTB\fP \fIOn\fP|\fIOff\fP Swaps top and bottom of the image like a mirror. Default: Off. is \fIOff\fP. .TP \fBNoUseMmap\fP \fIOn\fP|\fIOff\fP Turns off the use of mmap'ed (better) memory allocation for grabbing frames. Some (very rare) cams cannot use mmap'ed memory and have to use read. If you want to switch easily, use this switch. If you don't know what I'm talking about, leafe it like it is: Default is \fIOff\fP. .TP \fBDebugLevel\fP \fIvalue\fP Sets the loglevel of vgrabbj. Valid for \fIvalue\fP are 0, 2, 3, 4, 6, 7 (default: 4). 0 means no messages at all, 7 is debug. Don't use 7 if you are running vgrabbj in daemon mode, it'll surely fill your syslog. Be aware, that loglevel 7 will also post you ftp-password (if defined) in the logfile! .TP \fBUseTmpOut\fP \fIOn\fP|\fIOff\fP Sets the use of the temporary outputfile. Default is \fIOn\fP. Ignored in case the default output (\fI/dev/stdout\fP) is used. If set to \fIOff\fP, the data is written directly to the file defined by \fBOutputFile\fP. .sp If \fIfilename\fP is different from \fI/dev/stdout\fP (given via \fB-f\fP parameter or \fIOutputFile\fP, vgrabbj defaults to use a temporary file called \fIfilename\fP.tmp to write the image. This file is then renamed to \fIfilename\fP to shorten the time period corrupt data may be read from \fIfilename\fP. .TP \fBExec\fP \fIcommands\fP Ask vgrabbj to launch an external program. May be used to pass the picture through ImageMagick or others filters. The first '%s' instance in the command line will be replaced with filename. If \fBUseTmpOut\fP is \fIOn\fP, \fIcommands\fP will be run before the file is renamed. .TP \fBForcePalette\fP \fIpalette\fP Force the usage of the specified \fIpalette\fP. If \fIpalette\fP is not supported by either \fBvgrabbj\fP or the v4l-device, fallback to a palette supported by both is provided. If no common denominator is available, vgrabbj exits. Supported palettes are marked with * below. Possible values are (copy from videodev.h): .IP .nf .ta 1 VIDEO_PALETTE_GREY Linear greyscale 2 VIDEO_PALETTE_HI240 High 240 cube (BT848) 3 VIDEO_PALETTE_RGB565 565 16 bit RGB 4 *VIDEO_PALETTE_RGB24 24bit RGB 5 *VIDEO_PALETTE_RGB32 32bit RGB 6 VIDEO_PALETTE_RGB555 555 15bit RGB 7 *VIDEO_PALETTE_YUV422 YUV422 capture 8 *VIDEO_PALETTE_YUYV 9 *VIDEO_PALETTE_UYVY 10*VIDEO_PALETTE_YUV420 10 VIDEO_PALETTE_YUV411 YUV411 capture 11 VIDEO_PALETTE_RAW RAW capture (BT848) 12 VIDEO_PALETTE_YUV422P YUV 4:2:2 Planar 13 VIDEO_PALETTE_YUV411P YUV 4:1:1 Planar 14*VIDEO_PALETTE_YUV420P YUV 4:2:0 Planar 15 VIDEO_PALETTE_YUV410P YUV 4:1:0 Planar 16 VIDEO_PALETTE_PLANAR 17 VIDEO_PALETTE_COMPONENT .fi .IP (no default, depends on v4l-device). .TP \fBDiscardFrames\fP \fIvalue\fP \fIvalue\fP images are grabbed and immediately discarded. Only the last image is written to the output. This might be helpful if your v4l-device needs to take a couple of images to auto-adjust to the current light. .SH ARCHIVE OPTIONS The following options are useful if you want to keep a certain amount of images in an archive. Currently, the archive is only supported if kept on the same filesystem as the images taken. .TP \fBArchive\fP <\fIarchive-filename-pattern\fP> The \fIarchive-filename-pattern\fP is evaluated as a timestring, hence the same applies as to \fBTimeStamp\fP (see below, default: /tmp/arch/cam-%Y-%d-%m-%H-%M-%S.jpg) .TP \fBArchiveEach\fP <\fIvalue\fP> Defines how many images have to be taken before a copy is made for the archive. E.g. if defined 1, each image is put in the archive; if defined 5 every fifth image is put in the archive. .TP \fBArchiveMax\fP <\fIvalue\fP> Sets the maximum number of images to be put in the archive. .SH TIMESTAMP OPTIONS The following options are available only if vgrabbj was compiled with the freetype library available. The timestamp will only be enabled if all values evaluated (inlcuding defaults) lead to a valid configuration and UseTimestamp is set to On. .TP \fBUseTimestamp\fP \fIOn\fP|\fIOff\fP This is the essential setting to enable timestamps if defined in the config file. Without this being set to On, it just won't work (although, if there are options set to have an invalid configuration, it won't work either). This is different to the handling on the commandline. .TP \fBFontFile\fP \fIfilename\fP The TrueType font to be used for the timestamp (default \fI/usr/X11R6/lib/X11/fonts/TrueType/Arialn.ttf\fP). .TP \fBFontSize\fP \fIsize\fP Set the fontsize to \fIsize\fP for timestamp (3-100, default: 12). .TP \fBTimeStamp\fP \fIformat-str\fP Defines the timestamp. \fIformat-str\fP can be plain text or any strftime format. Any '""' at the beginning or the end will be eliminated for compatibility reasons, i.e. they are not necessary (default: "%a, %e. %B %Y \- %T" \- see \fBstrftime\fP(3) for details). .TP \fBPosition\fP \fIvalue\fP Alignment of the timestamp in the image. Possible \fIvalue\fP: .IP .nf .ta ul = upper left, ur = upper right, ll = lower left, lr = lower right, uc = upper center, lc = lower center .fi .IP (default: upper right). You can use either the short or the long version. .TP \fBBlend\fP \fIvalue\fP Defines the blend between font background and image (1-100, default: 60). .TP \fBBorderSize\fP \fIvalue\fP \fIvalue\fP pixels will be used as border around the timestamp string (1-255, default: 2). .SH FTP OPTIONS .P There are no options for ftp-upload on the command line. This is due to the need to provide a password which would be visible via the \fBps\fP(1) command. .TP \fBEnableFtp\fP \fIOn\fP|\fIOff\fP Ftp-Connection will only be opened if set to \fIOn\fP. Be aware that this might bring up a dial-up connection. See also \fBKeepAlive\fP. (default: Off) .TP \fBRemoteHost\fP \fIhostname\fP Host to which a ftp-connection will be established everytime an image has been written (see also: \fBDaemon\fP, \fBDaemonSeconds\fP, \fBKeepAlive\fP, default: camimage.jpg). .TP \fBRemoteDir\fP \fIpath\fP The \fIpath\fP consists of the full path on the remote host defined by \fBRemoteHost\fP (default: /). .TP \fBRemoteImageName\fP \fIfilename\fP The \fIfilename\fP consists of the full path and filename on the remote host defined by \fBRemoteHost\fP (default: foo.bar.com). .TP \fBUsername\fP \fIusername\fP The name of the user to log on the remote ftp-server (default: foo). .TP \fBPassword\fP \fIpassword\fP The password of the user to log on the remote ftp-server (default: bar). Be aware, that the password is kept unencrypted in memory, it might be read by others. .TP \fBKeepAlive\fP \fIOn\fP|\fIOff\fP If set to \fIOn\fP, the connection will be kept. This will cause a dial-up line to be up all the time, which in turn may cost a lot of money! If set to \fIOff\fP, the connection will be established after an image was written to the \fBOutputFile\fP. After transmission, the ftp-connection will be ended. This may also result in phone charges, for which Author takes no responsibility. See License. .TP \fBPassive\fP \fIOn\fP|\fIOff\fP If set to \fIOn\fP, passive ftp will be used. This can help connecting to ftp servers from the inside of a NAT-ed network. .TP \fBTryHarder\fP \fIOn\fP|\fIOff\fP Not implemented, yet. .SH HARDWARE SETTINGS With the following options you may alter the settings of your hardware (the cam), if supported by the cam. Be aware, this might break your hardware, as there are no checks if the values supplied are valid, allowed, or supported! .TP \fB\-W\fP <\fIvalue\fP> Whiteness definition. .TP \fB\-r\fP <\fIvalue\fP> Color definition. .TP \fB\-x\fP <\fIvalue\fP> Contrast definition. .TP \fB\-b\fP <\fIvalue\fP> Brightness definition. .TP \fB\-u\fP <\fIvalue\fP> Hue definition. .SH BUGS .P At my own machine running vgrabbj, the %F in a Archive-Filename causes memory corruption. This is not validated by any other machine. No further bugs are known at this time. .SH SEE ALSO \fBvgrabbj\fP(1), \fBstrftime\fP(3), \fBps\fP(1) .SH AUTHOR This manual page was originally written by Michael Janssen , for the Debian GNU/Linux system and enhanced by Jens Gecius . vgrabbj-0.9.8/vgrabbj.10000644000175000017500000002602712217631217011576 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH VGRABBJ 1 "February 24, 2002" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME vgrabbj \- grab images from a v4l-compatible webcam .SH SYNOPSIS .B vgrabbj .RI [ options ] .br .SH DESCRIPTION This manual page documents briefly the .B vgrabbj command. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBvgrabbj\fP is a program that will grab images from any v4l-capable device which supports one of the rgb24, rgb32, yuv420, yuv420p, yuyv, uyvy, or yuv422 palettes and saves the image as a .jpg, .png, or .pnm file. .PP Optional, it can timestamp the resulting image, and/or upload it to a ftp-server. Additionally, a daemon-mode is available to do the above regularly. .PP On startup, the default configuration file \fI/etc/vgrabbj.conf\fP is read and evaluated. If a configuration file is specified via the \fB-c\fP parameter (see below), that file is read and parsed. Values which are present in the default config file keep their values. Finally, the commandline is evaluated. If an option is presented more than once, the last in the commandline is taken. If no options given, vgrabbj tries to open the default v4l-device \fI/dev/video0\fP, grab an image and return it on \fI/dev/stdout\fP. So be aware. .SH OPTIONS All options are either numeric values, strings, or booleans. If it is a boolean switch (e.g. no value/string shown after the switch), it plainly switches the current setting of that particular option. Remember, vgrabbj.conf is read first, so any option set to on or off there will be toggled by the commandline switch. .TP \fB\-h\fP Show summary of options and version number. \fB\-c\fP <\fIfilename\fP> Specifies \fIfilename\fP as alternative configuration file. .TP \fB\-l\fP <\fIseconds\fP> Daemonize & loop with \fIseconds\fP intervals (min. 1). .TP \fB\-L\fP <\fImicroseconds\fP> Daemonize & loop \fImicroseconds\fP intervals (min. 1). Same as \fB\-l\fP except you can control it more precisely. .TP \fB\-a\fP Enable vgrabbj's brightness adjustment (default: disabled). To use \fBvgrabbj\fP's brightness adjustment, RGB24 support of the device is necessary. You may have to provide it to your device via the \fB-F\fP parameter (see below). If your device does not support RGB24, this setting is silently ignored. .TP \fB\-q\fP <\fIquality\fP> Sets the quality of a jpeg output to \fIquality\fP (1-100, default: 75). .TP \fB\-i\fP <\fIimagesize\fP> Sets the imagesize of input device, where \fIimagesize\fP is one of: .IP .nf .ta sqcif= 128x96, qsif = 160x120, qcif = 176x144, sif = 320x240, cif = 352x288, vga = 640x480, svga = 800x600, xga = 1024x768, sxga = 1280x1024, uxga = 1600x1200, .fi .IP (default: cif) .TP \fB\-w\fP <\fIwidth\fP> Sets the width of the image to \fIwidth\fP. Needs \fB\-H\fP. The v4l-device has to support the image width you set with this option. .TP \fB\-H\fP <\fIheight\fP> Sets the height of the image to \fIheight\fP. Needs \fB\-w\fP. The v4l-device has to support the image height you set with this option. .TP \fB\-o\fP <\fIformat\fP> Sets the output to \fIformat\fP (either \fBjpeg\fP, \fBpng\fP, or \fBpnm\fP, default: jpeg) .TP \fB\-f\fP <\fIfilename\fP> Output is written to \fIfilename\fP (default: \fI/dev/stdout\fP) .TP \fB\-A\fP <\fIpath+filename\fP> Additional to the output of \fB-f\fP another file is written to the named \fIpath+filename\fP, whereas the whole may be formatted according to \fBstrftime\fP(2). This enables the creation of an archive of images. Currently, the output is only supported on the same filesystem as the original output. .TP \fB\-E\fP <\fIvalue\fP> Defines how many images shall be read until a copy for the archive is made. E.g. 1 means each image taken is also put in the archive. 5 would mean every fifth image taken is put in the archive. .TP \fB\-M\fP <\fIvalue\fP> Sets the maximum number of images kept in the archive. If you defined 5 seconds for daemon mode, archive every image, you collect 720 images per hour. If you set this switch to 720 you would keep an hour of images in the archive. .TP \fB\-d\fP <\fIdevice\fP> Sets the input device to \fIdevice\fP (default: \fI/dev/video0\fP) .TP \fB\-s\fP <\fIdevice\fP> This flag causes vgrabbj to print the v4l capabilities of <\fIdevice\fP> and exit. .TP \fB\-C\fP Causes vgrabbj to open the device only while image data is grabbed. This is helpful if you need access to the device besides vgrabbj. It's use is discouraged due to possible problems with memory fragmentation. Default is to keep the v4l-device open while \fBvgrabbj\fP is running. .TP \fB\-g\fP Disables setting of the image size (see \fB\-i\fP, \fB\-H\fP, and \fB\-w\fP. Necessary for certain v4l-devices which do not support to be set to a particular image size (e.g. IBM-usb-cam, QuickCam). For these devices you have to specify the size at module load time. .TP \fB\-S\fP Switches colormap from BGR to RGB (or vice versa). Use if you have odd colors. .TP \fB\-R\fP Swaps left and right of the image like a mirror. .TP \fB\-U\fP Swaps top and bottom of the image like a mirror (e.g. for upside-down montage of the cam). .TP \fB\-G\fP Turns off use of mmap'ed memory. see \fIvgrabbj.conf\fP(5) for details. .TP \fB\-D\fP <\fIvalue\fP> Sets the loglevel of \fBvgrabbj\fP. Valid for \fIvalue\fP are 0, 2, 3, 4, 6, 7 (default: 4). 0 means no messages at all, 7 is debug. Don't use 7 if you are running \fBvgrabbj\fP in daemon mode, it'll surely fill your syslog. Be aware, that loglevel 7 will also write your ftp-password (if defined in \fBvgrabbj.conf\fP(5)) in the logfile! .TP \fB\-n\fP Disable the use of the temporary outputfile and write directly to the output-file specified with \fB-f\fP. Output to \fI/dev/stdout\fP is always written directly without the use of a temporary file. .sp If a \fIfilename\fP different from \fI/dev/stdout\fP was given with the \fB-f\fP parameter, \fBvgrabbj\fP defaults to use a temporary file called \fIfilename\fP.tmp to write the image. This file is then renamed to \fIfilename\fP to shorten the time period corrupt data may be read from \fIfilename\fP. .TP \fB-Z\fP \fI'commands'\fP Ask vgrabbj to launch an external program. May be used to pass the picture through ImageMagick or others filters. The first '%s' instance in the command line will be replaced with filename. If \fBUseTmpOut\fP is \fIOn\fP, \fI'commands'\fP will be run before the file is renamed. .TP \fB\-F\fP <\fIpalette\fP> Force the usage of the specified \fIpalette\fP. If \fIpalette\fP is not supported by either \fBvgrabbj\fP or the v4l-device, fallback to a palette supported by both is provided. If no common denominator is available, \fBvgrabbj\fP exits. See \fBDESCRIPTION\fP for details on palettes supported by \fBvgrabbj\fP. Possible values are (copy from videodev.h): .IP .nf .ta 1 VIDEO_PALETTE_GREY Linear greyscale 2 VIDEO_PALETTE_HI240 High 240 cube (BT848) 3 VIDEO_PALETTE_RGB565 565 16 bit RGB 4 VIDEO_PALETTE_RGB24 24bit RGB 5 VIDEO_PALETTE_RGB32 32bit RGB 6 VIDEO_PALETTE_RGB555 555 15bit RGB 7 VIDEO_PALETTE_YUV422 YUV422 capture 8 VIDEO_PALETTE_YUYV 9 VIDEO_PALETTE_UYVY 10 VIDEO_PALETTE_YUV420 10 VIDEO_PALETTE_YUV411 YUV411 capture 11 VIDEO_PALETTE_RAW RAW capture (BT848) 12 VIDEO_PALETTE_YUV422P YUV 4:2:2 Planar 13 VIDEO_PALETTE_YUV411P YUV 4:1:1 Planar 14 VIDEO_PALETTE_YUV420P YUV 4:2:0 Planar 15 VIDEO_PALETTE_YUV410P YUV 4:1:0 Planar 16 VIDEO_PALETTE_PLANAR 17 VIDEO_PALETTE_COMPONENT .fi .IP (no default, depends on v4l-device) .TP \fB\-z\fP <\fIvalue\fP> \fIvalue\fP images are grabbed and immediately discarded. Only the last image is written to the output. This might be helpful if your v4l-device needs to take a couple of images to auto-adjust to the current light. .TP \fB\-X\fP Does not fork daemon process and keeps vgrabbj in daemon mode in foreground, attached to the terminal. Useful for debugging purpose. Not available in config file. .SH HARDWARE CONTROL OPTIONS .sp With the following options you can control the hardware settings of your cam - if it is supported by your cam. Be aware that these options might break your hardware, as there is no check on what values are available, allowed, and supported by your hardware. .TP \fB\-W\fP <\fIvalue\fP> Whiteness definition. .TP \fB\-r\fP <\fIvalue\fP> Color definition. .TP \fB\-x\fP <\fIvalue\fP> Contrast definition. .TP \fB\-b\fP <\fIvalue\fP> Brightness definition. .TP \fB\-u\fP <\fIvalue\fP> Hue definition. .SH TIMESTAMP OPTIONS .sp The following options are available only if \fBvgrabbj\fP was compiled with the freetype library available. If you set any one of these options on the commandline timestamp will be enabled with default values for all other options. .TP \fB\-e\fP Switches timestamp to be used or not. Default is off, but may be overridden by config-file, so just try to enable this switch if there is no timestamp in the resulting image. .TP \fB\-t\fP <\fIfilename\fP> The TrueType font to be used for the timestamp (default \fI/usr/X11R6/lib/X11/fonts/TrueType/Arialn.ttf\fP) .TP \fB\-T\fP <\fIsize\fP> Set the fontsize to \fIsize\fP for timestamp (3-100, default: 12). .TP \fB\-p\fP "<\fIformat-str\fP>" Defines the timestamp. \fIformat-str\fP can be plain text or any strftime format and has to be enclosed with '""' (default: "%a, %e. %B %Y \- %T" \- see \fBstrftime\fP(3) for details) .TP \fB\-P\fP <\fIvalue\fP> Alignment of the timestamp in the image. Possible \fIvalue\fP: .IP .nf .ta 0 = upper left, 1 = upper right, 2 = lower left, 3 = lower right, 4 = upper center, 5 = lower center .fi .IP (default: 1). .TP \fB\-m\fP <\fIvalue\fP> Defines the blend between font background and image (1-100, default: 60). .TP \fB\-B\fP <\fIvalue\fP> \fIvalue\fP pixels will be used as border around the timestamp string (1-255, default: 2). .SH FTP OPTIONS .P There are no options for ftp-upload on the command line. This is due to the need to provide a password which would be visible via the \fBps\fP(1) command. See \fBvgrabbj.conf\fP for details on how to set-up the ftp-upload option. Additionally, vgrabbj has to be compiled with libftp support. .SH BUGS .P %F in the archive time-string (year with century) causes memory corruption at a pentium-machine running vgrabbj (not validated). No further bugs are known at this time. .SH SEE ALSO \fBvgrabbj.conf\fP(4), \fBstrftime\fP(3), \fBps\fP(1) .SH AUTHOR This manual page was originally written by Michael Janssen , for the Debian GNU/Linux system and enhanced by Jens Gecius . vgrabbj-0.9.8/TODO0000644000175000017500000000074512211642746010571 000000000000002000-11-12 * NTSC/PAL/SECAM and channel selector for various tv-cards * man-page (sigh) * let vgrabbj re-read config-file on SIGHUP? * archive of output images * output stream (e.g. mpeg), also archivable 2000-05-22 * First To Do List. (obviously done) * ability to select colormode (currently only rgb) (done) * COMPLETE argument/device check BEFORE forking (mostly - need anything? Otherwise I consider this done) * did I forget anything? (no) :-) vgrabbj-0.9.8/ChangeLog.svn0000644000175000017500000007514212226550457012466 000000000000002013-09-22 Ludovic Rousseau * [r218] Makefile.am, ccvt.h, ccvt_c.c, configure.ac, font.c, font.h, src, src/Makefile.am, src/ccvt.h, src/ccvt_c.c, src/font.c, src/font.h, src/v_config.c, src/v_config.h, src/v_ftp.c, src/v_ftp.h, src/v_options.h, src/v_plist.h, src/v_stamp.c, src/v_stamp.h, src/v_utils.c, src/v_utils.h, src/v_writer.c, src/v_writer.h, src/vcvt.h, src/vcvt_c.c, src/vgrabbj.c, src/vgrabbj.h, v_config.c, v_config.h, v_ftp.c, v_ftp.h, v_options.h, v_plist.h, v_stamp.c, v_stamp.h, v_utils.c, v_utils.h, v_writer.c, v_writer.h, vcvt.h, vcvt_c.c, vgrabbj.c, vgrabbj.h: Move source code in src/ subdirectory * [r217] configure.ac: Do not check for libz _two_ times Only one check is enough * [r216] configure.ac: Do not add -Wall Let the user select its own CFLAGS configuration 2013-09-21 Ludovic Rousseau * [r215] v_writer.c: Use a copy instead of a link for archived images Closes patch #4 "Bugfix for archive not working" https://sourceforge.net/p/vgrabbj/patches/4/ Thanks to Vikram Aggarwal for the patch 2013-09-18 Ludovic Rousseau * [r214] v_config.c: More system error logging * [r213] v_utils.c: An invalid vconf->dev is -1 not 0 If v4l1_open() failed then vconf->dev is set to -1 So we must check this value and not than vconf->dev is not zero * [r212] v_utils.c: Log v4l1_close() error * [r211] v_utils.c: Log the error message if opening the video device fails 2013-09-07 Ludovic Rousseau * [r210] v_ftp.c: ftp file overwrite patch Thanks to András for the patch Closes sourceforge patch #5 https://sourceforge.net/p/vgrabbj/patches/5/ "This patch allowes to overwrite a taken picture on the FTP server. Firstly deletes the remote filename, then rename tmp file to the filename described in the config." * [r209] v_ftp.c: Fix typo Thanks to András for the patch https://sourceforge.net/p/vgrabbj/patches/5/ * [r208] v_config.c, v_options.h, v_writer.c, vgrabbj.1, vgrabbj.conf.5, vgrabbj.h: Add -Z 'commands' option Thanks to Olivier for the patch Closes sourceforge patch #2 https://sourceforge.net/p/vgrabbj/patches/2/ "I need to make a lot of operations before sending the picture to the ftp server (rotation, incrustation, etc). So I add an option to run all needed tools from the inside of vgrabbj, via a system() call. From the man page -Z 'commands' Ask vgrabbj to launch an external program. May be used to pass the picture through ImageMagick or others filters. The first '%s' instance in the command line will be replaced with filename. If UseTmpOut is On, 'commands' will be run before the file is renamed." 2013-09-06 Ludovic Rousseau * [r207] v_config.c: Fix usage(): Alignment of timestamp is -P not -a 2013-09-04 Ludovic Rousseau * [r205] .deps: Remove autogenerated files * [r204] vgrabbj.1, vgrabbj.conf.default, vgrabbj.h: Use /dev/video0 by default instead of /dev/video You can change the device to use with: - the configuration file /etc/vgrabbj.conf - the command line argument -d * [r203] Makefile.am: Revert change in revision 191 * [r202] vgrabbj.1: Fix the use of .ta macro I am not sure the new syntax if the correct one. At least I do not have any warning using: $ MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z vgrabbj.1 > /dev/null * [r201] vgrabbj.conf.5: Fix the use of .ta macro I am not sure the new syntax if the correct one. At least I do not have any warning using: $ MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z vgrabbj.conf.5 > /dev/null * [r200] vgrabbj.conf.5: Use \- for a minus sign Bug reported by Debian lintian tool I: vgrabbj: hyphen-used-as-minus-sign usr/share/man/man5/vgrabbj.conf.5.gz:36 * [r199] vgrabbj.conf.5: Use .sp instead of .Sp :140: warning: macro `Sp' not defined * [r198] vgrabbj.1: Fix typo Reported by Debian lintian tool I: vgrabbj: spelling-error-in-manpage usr/share/man/man1/vgrabbj.1.gz overriden overridden * [r197] vgrabbj.1: Do not use .Sp but .sp :50: warning: macro `Sp' not defined * [r196] ChangeLog: release 0.9.7 * [r195] configure.ac: Release 0.9.7 * [r194] README, configure.ac: Add my copyrigth * [r193] configure.ac: Use AM_INIT_AUTOMAKE: with no argument configure.ac:27: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.ac:27: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation@ * [r192] configure.ac, configure.in: Rename configure.in in configure.ac aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' * [r191] Makefile.am: Do not install the vgrabbj.conf.default file Defaults values should already be used by the program. * [r190] Makefile.am: Remove useless line defining DEFAULT_CONFIG_FILE * [r189] configure.in: Use ${sysconfdir} if prefix is set ${sysconfdir} default to ${prefix}/etc but can be overwrittent by --sysconfdir=dir * [r188] configure.in: Fix autoheader warning autoheader: warning: missing template: SYSCONF_DIR autoheader: Use AC_DEFINE([SYSCONF_DIR], [], [Description]) * [r187] configure.in: Add missing AM_PROG_CC_C_O Makefile.am:21: compiling `vgrabbj.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.in' * [r186] ccvt.h, ccvt_c.c, font.c, font.h, v_config.c, v_config.h, v_ftp.c, v_ftp.h, v_options.h, v_plist.h, v_stamp.c, v_stamp.h, v_utils.c, v_utils.h, v_writer.c, v_writer.h, vcvt.h, vcvt_c.c, vgrabbj.c, vgrabbj.h: Remove extra spaces * [r185] ccvt_c.c: Fix compiler warnings ccvt_c.c: In function ‘ccvt_420i_yuyv’: ccvt_c.c:471:11: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] ccvt_c.c: In function ‘ccvt_420i_uyvy’: ccvt_c.c:510:11: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] * [r184] ccvt_c.c: Fix compiler warnings ccvt_c.c: In function ‘ccvt_yuyv’: ccvt_c.c:256:17: warning: variable ‘linewidth’ set but not used [-Wunused-but-set-variable] ccvt_c.c: In function ‘ccvt_uyvy’: ccvt_c.c:353:17: warning: variable ‘linewidth’ set but not used [-Wunused-but-set-variable] * [r183] v_writer.c: Fix compiler warnings v_writer.c: In function ‘write_jpeg’: v_writer.c:63:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] v_writer.c: In function ‘write_png’: v_writer.c:108:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] * [r182] v_writer.c: Fix compiler warnings v_writer.c: In function ‘write_jpeg’: v_writer.c:59:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] v_writer.c: In function ‘write_png’: v_writer.c:110:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] * [r181] vgrabbj.h: Fix compiler warning v_utils.c: In function ‘check_maxlen’: v_utils.c:324:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] * [r180] v_utils.c: Fix compiler warnings v_utils.c: In function ‘switch_color’: v_utils.c:135:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] v_utils.c: In function ‘conv_rgb32_rgb24’: v_utils.c:148:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] * [r179] v_utils.c: Correctly check v4l1_mmap() returned value v_utils.c: In function ‘init_mmap’: v_utils.c:30:94: warning: ordered comparison of pointer with integer zero [-Wextra] * [r178] v_utils.c: Fix compiler warnings v_utils.c: In function ‘check_minmax’: v_utils.c:310:97: warning: declaration of ‘l_opt’ shadows a global declaration [-Wshadow] In file included from v_utils.h:24:0, from v_utils.c:24: vgrabbj.h:309:25: warning: shadowed declaration is here [-Wshadow] v_utils.c: In function ‘check_maxlen’: v_utils.c:321:73: warning: declaration of ‘l_opt’ shadows a global declaration [-Wshadow] In file included from v_utils.h:24:0, from v_utils.c:24: vgrabbj.h:309:25: warning: shadowed declaration is here [-Wshadow] * [r177] v_utils.c, vgrabbj.h: Fix compiler warnings vgrabbj.c: In function ‘conv_image’: vgrabbj.c:314:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] vgrabbj.c:350:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] vgrabbj.c: In function ‘main’: vgrabbj.c:380:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] vgrabbj.c:383:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] * [r176] vgrabbj.c: Fix compiler warning vgrabbj.c: In function ‘conv_image’: vgrabbj.c:302:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] * [r175] vgrabbj.c: Fix compiler warning vgrabbj.c: In function ‘conv_image’: vgrabbj.c:353:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] * [r174] vgrabbj.c: Fix compiler warning vgrabbj.c: In function ‘read_image’: vgrabbj.c:287:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] * [r173] v_config.c: Fix compiler warnings v_config.c: In function ‘check_device’: v_config.c:371:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] v_config.c:372:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] v_config.c:373:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] v_config.c:374:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] * [r172] v_config.c: Fix compiler warning v_config.c: In function ‘build_opt’: v_config.c:592:41: warning: declaration of ‘l_opt’ shadows a global declaration [-Wshadow] In file included from v_config.h:28:0, from v_config.c:26: v_options.h:26:18: warning: shadowed declaration is here [-Wshadow] Rename the parameter l_opt into ll_opt * [r171] v_config.c: Fix compiler warning v_config.c: In function ‘decode_options’: v_config.c:500:15: warning: cast from function call of type ‘char *’ to non-matching type ‘int’ [-Wbad-function-cast] * [r170] vgrabbj.c: Fix compiler warning vgrabbj.c: In function ‘v_error’: vgrabbj.c:104:7: warning: format not a string literal and no format arguments [-Wformat-security] vgrabbj.c:109:7: warning: format not a string literal and no format arguments [-Wformat-security] * [r169] v_utils.c: Fix compiler warning v_utils.c: In function ‘sigterm’: v_utils.c:221:18: warning: unused parameter ‘sig’ [-Wunused-parameter] v_utils.c: In function ‘sighup’: v_utils.c:231:17: warning: unused parameter ‘sig’ [-Wunused-parameter] * [r168] v_options.h: Fix compiler warning v_options.h:69:3: warning: missing initializer [-Wmissing-field-initializers] v_options.h:69:3: warning: (near initialization for ‘l_opt[26].standard’) [-Wmissing-field-initializers] v_options.h:90:3: warning: missing initializer [-Wmissing-field-initializers] v_options.h:90:3: warning: (near initialization for ‘l_opt[43].next’) [-Wmissing-field-initializers] * [r167] v_plist.h: Fix compiler warning ./v_plist.h:25:3: warning: missing initializer [-Wmissing-field-initializers] ./v_plist.h:25:3: warning: (near initialization for ‘plist[0].mul’) [-Wmissing-field-initializers] ./v_plist.h:42:3: warning: missing initializer [-Wmissing-field-initializers] ./v_plist.h:42:3: warning: (near initialization for ‘plist[17].mul’) [-Wmissing-field-initializers] * [r166] v_config.c, v_writer.c, vgrabbj.c: Declare local functions as static functions Fix compiler warnings: warning: no previous prototype for ‘foobar’ [-Wmissing-prototypes] * [r165] vgrabbj.h: Use const char * for constant C-strings Fix compiler warnings: v_plist.h:26:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default] v_plist.h:27:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default] etc. * [r164] v_utils.c, vgrabbj.h: Ue the correct type for signal handlers Fix compilere warnings: v_utils.c:236:3: warning: passing argument 2 of ‘signal’ from incompatible pointer type [enabled by default] In file included from vgrabbj.h:48:0, from v_utils.h:24, from v_utils.c:24: /usr/include/signal.h:101:23: note: expected ‘__sighandler_t’ but argument is of type ‘void (*)(void)’ * [r163] v_config.h: Remove a redundant declaration Fix compiler warning: In file included from v_config.c:26:0: v_config.h:32:12: warning: redundant redeclaration of ‘signal_terminate’ [-Wredundant-decls] In file included from v_config.h:26:0, from v_config.c:26: vgrabbj.h:308:24: note: previous declaration of ‘signal_terminate’ was here * [r162] vgrabbj.h: Fix compiler warnings vgrabbj.h:297:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] vgrabbj.h:298:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] * [r161] vgrabbj.c, vgrabbj.h: Use const char * for constant strings Fix compiler warnings: v_utils.c:328:3: warning: passing argument 3 of ‘v_error’ discards ‘const’ qualifier from pointer target type [enabled by default] In file included from v_utils.h:24:0, from v_utils.c:24: vgrabbj.h:285:24: note: expected ‘char *’ but argument is of type ‘const char *’ * [r160] Makefile.am: Include the examples/* files in the distribution * [r159] examples, examples/vgrabbj.conf.dexxa, examples/webcam.sh: Add example configuration Thanks to Amaya Rodrigo sastre for the patches Patch from Debian bug #129190 "vgrabbj: Better support for Dexxa/Logitech USB webcams" * [r158] v_config.c: Finish port to libv4l1 * [r157] v_config.c: Print out possible grab sizes on error. Thanks to Bodo Eggert for the patch Patch from Debian package http://sources.debian.net/src/vgrabbj/0.9.6-5.1/debian/patches/show-size-limits-error * [r156] vgrabbj.h: Switch to libv4l-videodev.h Thanks to Daniel Polehn for the patch Patch from Debian bug #621965 "vgrabbj: FTBFS: ./vgrabbj.h:45:28: fatal error: linux/videodev.h: No such file or directory" http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621965 * [r155] v_config.c: Initialise all configuration variables in init_defaults() Thanks to Petter Reinholdtsen for the patch Patch from Debian bug #494939 " vgrabbj: Should initialize vconf->map during startup" http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494939 * [r154] Makefile.am, configure.in, v_config.c, v_utils.c, vgrabbj.c, vgrabbj.h: Port from V4L1 API to libv4l1 Thanks to Ben Hutchings for the patch Patch from Debian bug #569092 " Uses obsolete V4L1 API" http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569092 * [r153] v_options.h: Fix compiler error In file included from v_config.h:28:0, from v_config.c:26: v_options.h:26:25: error: static declaration of ‘l_opt’ follows non-static declaration In file included from v_config.h:26:0, from v_config.c:26: vgrabbj.h:308:25: note: previous declaration of ‘l_opt’ was here In file included from v_config.h:28:0, from v_config.c:26: * [r152] v_config.c: Fix compilation error: lvalue required as unary ‘&’ operand * [r151] v_writer.c: Fix off-by-one error in v_writer.c Thanks to Sebastián Ortega Torres for the patch Patch from Debian bug #366987 " vgrabbj: dynamic memory problem - wrong size on allocation" http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=366987 * [r150] configure.in: Compile in silent mode by default Use "make V=1" to disable the silent mode 2013-09-02 Ludovic Rousseau * [r149] reconf: Do not hardcode the autotools versions * [r148] config.guess, config.sub, install-sh, missing, mkinstalldirs: Remove more files generated by autotools * [r147] acconfig.h: Remove deprecated acconfig.h file autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader: WARNING: is deprecated and discouraged. * [r146] configure.in: Run autoupdate * [r145] Makefile.in, aclocal.m4, config.h.in, configure: Remove files generated by autotools 2006-01-15 youngelf * [r143] ChangeLog, Makefile.in, aclocal.m4, ccvt.h, ccvt_c.c, config.h.in, configure, configure.in, v_config.c, v_plist.h, vgrabbj.1, vgrabbj.c, vgrabbj.conf.5: Bringing the cvs to the 0.9.6 version. Incorporated the uyvy patch and the patch by Boegl, Michael. Hopefully this is correct -- Vikram 2004-08-09 Jens Gecius * [r142] ChangeLog, Makefile.in, aclocal.m4, config.h.in, configure, configure.in, reconf: Changed minor issues (order of lib-checks, usage of sysconfdir) 2004-03-23 Jens Gecius * [r141] configure.in: Changed version to 0.9.7 (preparation) * [r140] ChangeLog: Updated Changelog on recent fix in ccvt_c.c including proper credit 2004-03-20 Jens Gecius * [r139] ccvt_c.c: 3 fixes for ccvt_420p from Olaf Hartmann (Credit) 2004-03-09 Jens Gecius * [r138] v_config.c: ? 2004-01-03 Jens Gecius * [r137] ChangeLog, vgrabbj.1, vgrabbj.conf.5: Final adjustments for 0.9.6 release 2004-01-01 Jens Gecius * [r136] v_utils.c: removed debug-codeline * [r135] configure, v_config.c, v_options.h, v_stamp.c, v_utils.c, v_writer.c, vgrabbj.c, vgrabbj.h: various changes to hunt a bug in archive-function 2003-12-31 Jens Gecius * [r134] ChangeLog, configure.in, v_config.c, v_ftp.c, v_writer.c, vgrabbj.conf.5: Fixed pointer handling, corrected archiving 2003-10-15 Jens Gecius * [r133] configure, configure.in: changed version to 0.9.5 * [r132] ChangeLog, THANKS, v_config.c, v_ftp.c, v_options.h, vgrabbj.conf.5, vgrabbj.conf.default, vgrabbj.h: Added patch for passive ftp (robert van der meulen) 2003-09-10 Jens Gecius * [r131] THANKS, v_utils.c: Proper acknowledgement for contributors * [r130] ChangeLog, v_config.c, v_utils.c, vgrabbj.c, vgrabbj.h: Applied two patches for top-bottom mirroring and setting cam hw-parameters * [r129] v_options.h: Added new options definitions 2003-07-28 Jens Gecius * [r128] v_config.c: fixed missing increase of var idx * [r127] v_config.c, vgrabbj.h: Remove some development code * [r126] ChangeLog, Makefile.in, aclocal.m4, configure, configure.in, v_config.c: Fixed segfault if libs missing and typo in help screen 2002-10-19 Jens Gecius * [r125] v_config.c, v_options.h, vgrabbj.h: Moving to linked list for conf-options due to probs when libs missing * [r124] Makefile.am, Makefile.in, configure.in, v_config.c, v_config.h, v_ftp.h, v_options.h, v_plist.h, v_stamp.c, v_stamp.h, v_utils.c, v_utils.h, v_writer.c, v_writer.h, vgrabbj.c, vgrabbj.conf.default, vgrabbj.h: Update Location in (C) * [r123] v_utils.c: changed from /2 to >>1 (correctly, this time) * [r122] v_utils.c: Changing /2 by >>2 and proper paranthesis * [r121] ChangeLog, configure, configure.in, v_config.c, v_options.h, v_plist.h, v_utils.c, vgrabbj.1, vgrabbj.conf.5, vgrabbj.conf.default, vgrabbj.h: dunno 2002-10-14 Jens Gecius * [r120] Makefile.in, aclocal.m4, configure, configure.in, vgrabbj.1, vgrabbj.conf.5, vgrabbj.conf.default: Updated man-files * [r119] ChangeLog, v_config.c, v_options.h, v_utils.c, vgrabbj.c, vgrabbj.h: Fixed bug parsing commandline (boolean's), added swapRL 2002-04-13 Jens Gecius * [r118] AUTHORS, ChangeLog, configure, configure.in, v_config.c: Fixed bug for boolean commandline switches 2002-03-30 Jens Gecius * [r117] configure, v_config.c, v_writer.c: archive now in preliminary working stage * [r116] ChangeLog, v_config.c, v_writer.c, vgrabbj.1, vgrabbj.conf.5, vgrabbj.h: Enhanced archive handling (still alpha) 2002-03-29 Jens Gecius * [r115] configure.in, v_config.c, v_options.h, v_utils.c, v_writer.c, vgrabbj.c, vgrabbj.h: enhanced archiving, untested... 2002-03-28 Jens Gecius * [r114] ChangeLog, v_config.c, v_options.h, v_stamp.c, v_utils.c, v_writer.c, vgrabbj.h: Changed further internals, fixed bugs... (sigh) 2002-03-27 Jens Gecius * [r113] ChangeLog: update * [r112] vgrabbj.1, vgrabbj.conf.5: Put man's in cvs * [r111] configure, configure.in: Update of man for new option?\024w * [r110] ChangeLog, v_config.c, v_options.h, v_writer.c, vgrabbj.conf.default, vgrabbj.h: Added archive - experimental! * [r109] ChangeLog, v_config.c, v_ftp.c, v_options.h, v_utils.c, v_writer.c, vgrabbj.h: Fixed severe bug in ftp-code 2002-03-03 Jens Gecius * [r108] v_config.h, v_ftp.h, v_stamp.h, v_utils.h, v_writer.h: missing files... * [r107] ChangeLog, Makefile.am, Makefile.in, v_config.c, vgrabbj.texinfo: Further updates on config 2002-02-19 Jens Gecius * [r106] ChangeLog, Makefile.am, Makefile.in, v_config.c, v_ftp.c, v_options.h, v_plist.h, v_utils.c, v_writer.c, vgrabbj.c, vgrabbj.h: Finished parser and other rewrites 2002-02-13 Jens Gecius * [r105] ChangeLog, v_config.c, v_options.h, v_utils.c, vgrabbj.c, vgrabbj.h: Work in progress: universal config-parser 2002-02-12 Jens Gecius * [r104] v_stamp.c, v_utils.c: Split of files * [r103] ChangeLog, Makefile.am, Makefile.in, configure, v_config.c, v_writer.c, vgrabbj.c, vgrabbj.conf.default, vgrabbj.h: Various... * [r102] v_options.h: Definition of options * [r101] ChangeLog, Makefile.am, Makefile.in, configure.in, v_config.c, v_plist.h, v_writer.c, vgrabbj.c, vgrabbj.conf.default, vgrabbj.h: Working towards universal config... 2002-02-09 Jens Gecius * [r96] ChangeLog, configure, configure.in, v_config.c, vgrabbj.c, vgrabbj.conf.default, vgrabbj.h: Added ability to discard x frames before shot is taken * [r95] configure: *** empty log message *** * [r94] configure.in: Forgot to change version no. * [r93] Makefile.am, Makefile.in, config.h.in, configure, configure.in, font.c, v_config.c, vgrabbj.c, vgrabbj.h: Fixed various freetype.h places... * [r92] configure, configure.in: Version update * [r91] ChangeLog, configure, configure.in, v_config.c: Fixed compile bug (if ttf not avail), added ttf-check 2002-02-07 Jens Gecius * [r90] Makefile.am, Makefile.in, README, THANKS, configure.in, v_config.c, v_writer.c, vgrabbj.c, vgrabbj.conf.default, vgrabbj.h: Clarified docs and help in case you want to use brightness adjustment * [r89] ChangeLog, v_config.c: Closing memory hole in config-re-read * [r88] vgrabbj.conf.default: Changed default of setimagesize to on 2002-02-06 Jens Gecius * [r87] ChangeLog, configure, configure.in, v_config.c, vgrabbj.c, vgrabbj.h: Added conf re-read signal handling, partial rewrite init 2002-02-04 Jens Gecius * [r86] ChangeLog: Better warning for switch-changes * [r85] ChangeLog, configure, configure.in, v_config.c, v_writer.c, vgrabbj.c, vgrabbj.conf.default, vgrabbj.h: Various bug fixes (reported on bugs.debian.org/vgrabbj) Changed two command line switches !!!! May break your config!!! 2001-12-23 Jens Gecius * [r84] ChangeLog, v_config.c, v_ftp.c, v_writer.c, vgrabbj.c, vgrabbj.h: Final Changes for functioning 0.8.2 release - make everything work 2001-12-10 Jens Gecius * [r83] vgrabbj.conf.default, vgrabbj.h: Added very little documentation to default configfile 2001-12-06 Jens Gecius * [r82] ChangeLog, v_writer.c, vgrabbj.c, vgrabbj.h: Changed to system() instead of execv() to avoid exit of vgrabbj in daemon mode Added cpyline as conf-var to avoid repeated calculation of that value 2001-12-05 Jens Gecius * [r81] ChangeLog, README, configure, configure.in, v_ftp.c, v_writer.c, vgrabbj.c, vgrabbj.h: Changes in configure b/c option were not options Other changes to implement tmp-file output, then copy (not finished!) 2001-11-13 Jens Gecius * [r80] vgrabbj.c: Two typos regarding imagesize (svga and individual height) 2001-11-12 Jens Gecius * [r79] ChangeLog, Makefile.am, Makefile.in, TODO, config.h.in, configure, configure.in, ftplib.c, ftplib.h, v_config.c, v_writer.c, vgrabbj.c, vgrabbj.conf.default, vgrabbj.h: Added ppm support, remove ftplib (now dependency), continuing restructure of source 2001-11-12 rwessels * [r78] vgrabbj.conf.default: Added KeepAlive option to config file 2001-11-12 Jens Gecius * [r77] ChangeLog: Release 0.8.0 * [r76] AUTHORS, ChangeLog, Makefile.am, Makefile.in, README, TODO, vgrabbj.c, vgrabbj.conf.default: Final fixes updates for 0.8.0 * [r75] vgrabbj.conf: Changed due to handling via autoconf * [r74] Makefile.am, Makefile.in, configure, configure.in, vgrabbj.conf.default, vgrabbj.h: Problems with autoconf solved * [r73] ChangeLog, Makefile.am, Makefile.in, acconfig.h, aclocal.m4, config.h.in, configure, configure.in, v_config.c, vgrabbj.c, vgrabbj.conf, vgrabbj.h: Various additions, bugfixes, changes 2001-11-11 Jens Gecius * [r72] ChangeLog: Changes in code implemented * [r71] .deps/vgrabbj.P, config.h.in, ftplib.c, ftplib.h, v_config.c, v_ftp.c, vgrabbj.c: Added ftpcode (incl lib), added options, bugfix * [r70] Makefile.am, Makefile.in, aclocal.m4, ccvt_i386.S, config.h.in, configure, v_config.c, vcvt_i386.S, vgrabbj.c, vgrabbj.h: Added ftp-code, changes to various options, added various options see ChangeLog 2001-08-02 Jens Gecius * [r69] vgrabbj.h: lowered ftp in struct definition * [r68] v_config.c: minor change to the tokenizing, seems to work for test purpose 2001-08-01 Jens Gecius * [r67] v_config.c: Getting there. far from perfect, but somewhat working * [r66] vgrabbj.h: Added vconfig->ftp.keepalive for future enhancements... 2001-08-01 rwessels * [r65] vconf.c: obsolete 2001-08-01 Jens Gecius * [r64] v_config.c: Update, almost working... * [r63] vgrabbj.h: Update b/c parser * [r62] vgrabbj.c: Update b/c parser - NOT working, yet * [r61] vgrabbj.conf: Updated conf for parser 2001-07-31 Jens Gecius * [r60] vgrabbj.conf: Standardoptions according to the parser (changed several options) * [r59] v_config.c: Further work, not ready, yet * [r58] vgrabbj.c: Further work on the parser, not ready, yet 2001-07-30 Jens Gecius * [r57] Makefile.am: Missing vgrabbj.conf for Automake... * [r56] vgrabbj.conf: First Import of example conf file * [r55] v_config.c: First import of config parser * [r54] configure.in: Preparation for new release - NOT READY YET!! * [r53] Makefile.am: Addition for configfile parser * [r52] vgrabbj.c: Additions for configfile parser, unfinished, does not work!! * [r51] vgrabbj.h: Additions for external configfile 2001-07-29 Jens Gecius * [r50] vgrabbj.h: missing close bracket... * [r49] vgrabbj.h: Added some code to enable ftp-upload option (comes later...) 2001-07-29 rwessels * [r48] vconf.c: first import 2001-07-23 Jens Gecius * [r47] ChangeLog: Release-Update * [r46] README: update * [r45] vgrabbj.c: oops, had some experimental code in... * [r44] Makefile.in: New version release * [r43] configure.in: New Version release * [r42] vgrabbj.c: Changed back to c-conversion only (no more asm) * [r41] vgrabbj.h: updated due to different default of BRIGHTNESS * [r40] ChangeLog: Update * [r39] ccvt_c.c: Added further c-conversion routines * [r38] Makefile.am: New version update 2001-07-22 Jens Gecius * [r37] ChangeLog: Update * [r36] vgrabbj.c: Minor changes, added YUV422 routine (which is YUYV?) * [r35] ccvt_c.c: Added YUYV->rgb, YUV420P->rgb routines * [r34] ccvt.h: Updated to show new routines 2001-07-21 Jens Gecius * [r33] ChangeLog: update * [r32] vgrabbj.h: more code cleanup... * [r31] vgrabbj.h: more code cleanup * [r30] vgrabbj.c: more code cleanup, see ChangeLog 2001-07-19 Jens Gecius * [r29] configure.in: Added header files to check for compilation * [r28] ChangeLog: Update, info regarding i386 only for the conversion routines * [r27] README: Updated usage info for IBM Cam and the like (not setting windowsize) * [r26] vgrabbj.c: Fixed windowsize bug. Now it should work with IBM Cam 2001-07-14 Jens Gecius * [r25] configure.in: updated version * [r24] vgrabbj.h: certain values changed, see changelog * [r23] README: Finally, this one got updated, too * [r22] ChangeLog: update * [r21] vgrabbj.c: Fixed nasty memory leak while using timestamp 2001-07-13 Jens Gecius * [r20] vgrabbj.c: More memory holes fixed 2001-07-12 Jens Gecius * [r19] vgrabbj.c: Failed to remove some testing code * [r18] ChangeLog: Update * [r17] vgrabbj.c: Fixed missing free() for one buffer (box will run out of memory and kill vgrabbj) Fixed conv_rgb32_rgb24 (inverted the factor for conversion) 2001-07-10 Jens Gecius * [r16] config.h.in, font.c, stamp-h.in, vgrabbj.c: First import to cvs due to changes in distrib structure * [r15] README, THANKS, aclocal.m4, ccvt.h, ccvt_c.c, ccvt_i386.S, config.guess, config.sub, configure, reconf, vcvt.h, vcvt_c.c, vcvt_i386.S, vgrabbj.h: First import to sf due to reorg of distrib * [r14] Makefile.am, Makefile.in, configure.in: Updated on new distrib organization * [r13] ChangeLog: Updated on changes... * [r12] vgrabbj.c: Major rewrite, enhanced device support, better logging etc. 2001-06-17 Jens Gecius * [r11] Makefile, config.cache, config.h.in, config.log, config.status: *** empty log message *** * [r10] vgrabbj.c: Fixed duplicate setting of variable vpic * [r9] AUTHORS, ChangeLog, Makefile, config.cache, config.log, config.status, configure, configure.in: Correction of email-address * [r8] vgrabbj.c: Fixed bug with vpic setting of V4L device to mode RGB24 2001-04-26 Jens Gecius * [r6] Makefile.in, configure: This commit was generated by cvs2svn to compensate for changes in r5, which included commits to RCS files with non-trunk default branches. * [r4] ., .deps, .deps/font.pp, .deps/vgrabbj.P, AUTHORS, COPYING, ChangeLog, INSTALL, LICENSE, Makefile, Makefile.am, Makefile.in, NEWS, README, TODO, aclocal.m4, config.cache, config.h.in, config.log, config.status, configure, configure.in, font.h, install-sh, missing, mkinstalldirs, vgrabbj.c, vgrabbj.info, vgrabbj.texinfo: This commit was generated by cvs2svn to compensate for changes in r3, which included commits to RCS files with non-trunk default branches. vgrabbj-0.9.8/vgrabbj.conf.default0000644000175000017500000002200112211661475013775 00000000000000; * Copyright (C) 2000, 2001, 2002 Jens Gecius, Hannover, Germany ; * eMail: devel@gecius.de ; * ; * This program is free software; you can redistribute it and/or modify ; * it under the terms of the GNU General Public License as published by ; * the Free Software Foundation; either version 2 of the License, or ; * (at you option) any later version. ; * ; * This program is distributed in the hope that it will be useful, ; * but WITHOUT ANY WARRANTY; without even the implied warranty of ; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; * GNU General Public License for more details. ; * ; * You should have received a copy of the GNU General Public License ; * along with this program; if not, write to the Free Software ; * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, ; * USA ; ; This is an example config file for the vgrabbj video grabber ; ; All values in here represent the defaults of vgrabbj if called without ; any config-file, so modifying these values is equal with adding an ; option on the command line. ; Except one: ftp. The ftp-code does not work on the command line, because ; this would expose the password for the ftp-server to the command ps. ; The password would be readable for every user on that machine and we don't ; want that. ; ; So, go ahead, check the values and place something meaningful in here. ; Brightness Off ; Brightness adjustment to be performed by vgrabbj, default Off ; if set to off, image from cam is taken without adjustment ; If you set this to On, the input has to be handled as RGB24 and ; via normal read(). To enable this, you might need to set ForcePalette ; to 4 (for RGB24). Without, it might not work (depends on your cam's ; default palette). DebugLevel 4 ; Valid Debuglevels are between 0 and 7, with 7 babbling all the time, ; 0 saying nothing; defaults to 4 ImageQuality 75 ; Quality setting for jpeg image; default 75 SetImageSize On ; To turn off imagesize setting of vgrabbj, needed for some webcams ; default On ImageSize cif ; Imagesize can be sqcif|qsif|qcif|sif|cif|vga|svga|xga|sxga|uxga; ; default cif, being: ; sqcif 128x96 ; qsif 160x120 ; qcif 176x144 ; sif 320x240 ; cif 352x288 ; vga 640x480 ; svga 800x600 ; xga 1024x768 ; sxga 1280x1024 ; uxga 1600x1200 ; ImageWidth 640 ; ImageHeight 480 ; BE CAREFUL! These values are not checked if valid! ; They supersede any ImageSize defined in here, only ; commandline arguments have higher priority; no defaults SwitchColor Off ; If your output has red and green swapped, turn this switch ; it swaps red and green; default: Off SwitchRL Off ; If you would like to get a mirrored image (left-right), turn ; this switch on; default: Off NoUseMmap Off ; Set to yes if your cam cannot do RGB24 and cannot use mmap'ed ; memory. Rarely needed. If you don't know what I'm talking about, ; leave at default: Off ;DiscardFrames 0 ; You can discard x frames before the actual picture is taken ; This might be helpful if your image is over- or underexposed ; (too bright/dark). vgrabbj tries to force the cam to adjust ; its exposure setting via multiple reads (only if mmap'ed ; transfer is possible on your cam - if your cam can't do this, ; the option is silently ignored). ; This costs a lot of time because x images are fully read before ; vgrabbj continues. ;ForcePalette 0 ; Force vgrabbj to use the specified palette; if that one is ; not supported by your driver, vgrabbj falls back to a ; supported one, therefor its just the first "try" on the device ; default order is: RGB24, RGB32, YUYV (which is here equal to YUV422), ; YUV420, YUV420P ; ; Being (from /usr/include/linux/videodev.h): ; 1 VIDEO_PALETTE_GREY not supported ; 2 VIDEO_PALETTE_HI240 not supported ; 3 VIDEO_PALETTE_RGB565 not supported ; 4 VIDEO_PALETTE_RGB24 ; 5 VIDEO_PALETTE_RGB32 ; 6 VIDEO_PALETTE_RGB555 not supported ; 7 VIDEO_PALETTE_YUV422, VIDEO_PALETTE_COMPONENT ; 8 VIDEO_PALETTE_YUYV ; 9 VIDEO_PALETTE_UYV not supported ; 10 VIDEO_PALETTE_YUV420 ; 11 VIDEO_PALETTE_YUV411 not supported ; 12 VIDEO_PALETTE_RAW not supported ; 13 VIDEO_PALETTE_YUV422P, VIDEO_PALETTE_PLANAR not supported ; 14 VIDEO_PALETTE_YUV411P not supported ; 15 VIDEO_PALETTE_YUV420P ; 16 VIDEO_PALETTE_YUV410P not supported ; ; You might need to set this to 4 (RGB24) if the brightness adjustment ; does not seem to work. OutputFormat jpg ; Options are jpg, png, or ppm; default: jpg OutputFile /dev/stdout ; Where to write the grabbed image. This file must be read/writeable by ; the user running vgrabbj; default: /dev/stdout ; If you don't pipe the output someplace else, this WILL mess up you ; current console/terminal! Set it to something useful, especially for ; daemon mode ;Archive /tmp/archive/webcam-%Y-%d-%m-%H-%M-%S.jpg ; Archive images to strftime formatted filenames. Default: Off ; This archives the grabbed images to the specified path. The path ; is first processed with strftime to get the actual filename, see ; man 3 strftime for details. ; Be aware: this option might fill your harddrive because there is ; no upper limit for the archive, yet!! VideoDevice /dev/video0 ; Where to get the data from. This device must be read/writeable by the ; user running vgrabbj OpenOnce On ; OpenOnce set to on lets vgrabbj open the VideoDevice only once after ; all configuration is checked and closes it only when it ends. Hence, ; it is a useful option in daemon mode only, if you suspect the ; open/close calls on VideoDevice for each image to be a problem with ; your driver. Be aware, that no other application can use VideoDevice ; even while vgrabbj sits idling, waiting it defined sleeptime. ; To avoid memory fragmentation I strongly advise to set it to On. ; Default: On Daemon 0 ; Use vgrabbj in daemon mode, set the sleeptime in microseconds ; 1000000 equals a waiting time of 1 second (!). Daemon 0 (zero) means ; that daemon mode is disabled (default). With 1 (one) as the smallest ; value to enable daemon operation, you should be aware that this means ; you box is under constant load from vgrabbj and the file might not be ; readable by any other app because it's constantly rewritten! ; If not set, daemon mode is not enabled (default) DaemonSeconds 0 ; Same as Daemon, but value is taken as a value of seconds. Use if you're ; to lazy to write that many zeros and don't need that fine resolution. UseTmpOut On ; Images taken are written to a temporary file (named /tmp/t) ; in case is not /dev/stdout. After this is done, the file ; is copied via system call to the final destination. This tends to ; better the situation if the outputfile is read directly by a webserver. ; If you want to write the image data directly to the destination file, ; set this switch to Off. ; ; Timestamping of the image UseTimeStamp Off ; Timestamp the image with a defineable string, default: Off ; The handling between commandline and configfile is currently different! ; In the configfile you HAVE TO set this option to On if you want the ; string in the image. On the commandline, ANY option related to the ; timestamp feature set on the commandline enables it! So you can safely ; set all other timestamp values ;;;;;;; CHANGE THIS SETTING AND UNCOMMENT IT TO USE TIMESTAMPING ; FontFile /usr/share/fonts/truetype/Arialn.ttf ; Font to be used for timestamping the image ; default: /usr/share/fonts/truetype/Arialn.ttf TimeStamp "%A, %e. %B %Y - %T" ; String to be put in the image ; default: "%a, %e. %B %Y - %T", see man 3 strftime for details ; being: , . ; -